golden-logic-ui 1.0.135 → 1.0.137
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 +828 -743
- package/dist/golden-logic-ui.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as t, createCommentVNode as g, createStaticVNode as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as t, createCommentVNode as g, createStaticVNode as tt, inject as xe, watch as H, effectScope as rt, computed as L, reactive as Te, resolveComponent as z, Fragment as v, createVNode as R, normalizeClass as p, toDisplayString as f, withModifiers as F, withDirectives as A, vModelText as G, renderList as S, normalizeStyle as st, renderSlot as M, ref as C, onMounted as q, createTextVNode as $, vShow as Q, nextTick as Le, createBlock as Z, resolveDynamicComponent as le, mergeProps as ae, withCtx as ie, vModelDynamic as at, provide as Me, pushScopeId as nt, popScopeId as ot, vModelCheckbox as lt, toHandlers as be, TransitionGroup as it, unref as dt, resolveDirective as Ie, markRaw as ut } from "vue";
|
|
2
2
|
const O = (e, r) => {
|
|
3
3
|
const s = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of r)
|
|
@@ -26,7 +26,7 @@ const O = (e, r) => {
|
|
|
26
26
|
}, null, -1), mt = /* @__PURE__ */ t("span", {
|
|
27
27
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
|
-
}, "", -1), bt = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, pt = /* @__PURE__ */
|
|
29
|
+
}, "", -1), bt = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, pt = /* @__PURE__ */ tt('<div class="px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4"><div class="sm:flex sm:items-start"><div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"><h3 class="text-lg font-medium leading-6 text-gray-900" id="modal-title"> Confirm Deletion </h3><div class="mt-2"><p class="text-sm text-gray-500"> Are you sure you want to delete this item? This action cannot be undone. </p></div></div></div></div>', 1), yt = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
30
|
function _t(e, r, s, n, o, a) {
|
|
31
31
|
return s.isOpen ? (d(), u("div", gt, [
|
|
32
32
|
t("div", ft, [
|
|
@@ -50,11 +50,11 @@ function _t(e, r, s, n, o, a) {
|
|
|
50
50
|
])
|
|
51
51
|
])) : g("", !0);
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const we = /* @__PURE__ */ O(ct, [["render", _t]]);
|
|
54
54
|
function vt() {
|
|
55
|
-
return
|
|
55
|
+
return Ne().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Ne() {
|
|
58
58
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
59
59
|
}
|
|
60
60
|
const xt = typeof Proxy == "function", wt = "devtools-plugin:setup", kt = "plugin:settings:set";
|
|
@@ -111,11 +111,11 @@ class St {
|
|
|
111
111
|
args: c,
|
|
112
112
|
resolve: () => {
|
|
113
113
|
}
|
|
114
|
-
}), this.fallbacks[l](...c)) : (...c) => new Promise((
|
|
114
|
+
}), this.fallbacks[l](...c)) : (...c) => new Promise((h) => {
|
|
115
115
|
this.targetQueue.push({
|
|
116
116
|
method: l,
|
|
117
117
|
args: c,
|
|
118
|
-
resolve:
|
|
118
|
+
resolve: h
|
|
119
119
|
});
|
|
120
120
|
})
|
|
121
121
|
});
|
|
@@ -129,7 +129,7 @@ class St {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function Dt(e, r) {
|
|
132
|
-
const s = e, n =
|
|
132
|
+
const s = e, n = Ne(), o = vt(), a = xt && s.enableEarlyProxy;
|
|
133
133
|
if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
134
134
|
o.emit(wt, e, r);
|
|
135
135
|
else {
|
|
@@ -146,16 +146,16 @@ function Dt(e, r) {
|
|
|
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 Ve = "store";
|
|
150
|
+
function Be(e) {
|
|
151
|
+
return e === void 0 && (e = null), xe(e !== null ? e : Ve);
|
|
152
152
|
}
|
|
153
153
|
function K(e, r) {
|
|
154
154
|
Object.keys(e).forEach(function(s) {
|
|
155
155
|
return r(e[s], s);
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ge(e) {
|
|
159
159
|
return e !== null && typeof e == "object";
|
|
160
160
|
}
|
|
161
161
|
function Ot(e) {
|
|
@@ -170,24 +170,24 @@ function Pt(e, r) {
|
|
|
170
170
|
return e(r);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Ue(e, r, s) {
|
|
174
174
|
return r.indexOf(e) < 0 && (s && s.prepend ? r.unshift(e) : r.push(e)), function() {
|
|
175
175
|
var n = r.indexOf(e);
|
|
176
176
|
n > -1 && r.splice(n, 1);
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Fe(e, r) {
|
|
180
180
|
e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
|
|
181
181
|
var s = e.state;
|
|
182
|
-
ue(e, s, [], e._modules.root, !0),
|
|
182
|
+
ue(e, s, [], e._modules.root, !0), ke(e, s, r);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function ke(e, r, s) {
|
|
185
185
|
var n = e._state, o = e._scope;
|
|
186
186
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
187
|
-
var a = e._wrappedGetters, i = {}, l = {}, c =
|
|
187
|
+
var a = e._wrappedGetters, i = {}, l = {}, c = rt(!0);
|
|
188
188
|
c.run(function() {
|
|
189
|
-
K(a, function(
|
|
190
|
-
i[m] = Pt(
|
|
189
|
+
K(a, function(h, m) {
|
|
190
|
+
i[m] = Pt(h, e), l[m] = L(function() {
|
|
191
191
|
return i[m]();
|
|
192
192
|
}), Object.defineProperty(e.getters, m, {
|
|
193
193
|
get: function() {
|
|
@@ -197,32 +197,32 @@ function we(e, r, s) {
|
|
|
197
197
|
// for local getters
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
|
-
}), e._state =
|
|
200
|
+
}), e._state = Te({
|
|
201
201
|
data: r
|
|
202
|
-
}), e._scope = c, e.strict &&
|
|
202
|
+
}), e._scope = c, e.strict && Lt(e), n && s && e._withCommit(function() {
|
|
203
203
|
n.data = null;
|
|
204
204
|
}), o && o.stop();
|
|
205
205
|
}
|
|
206
206
|
function ue(e, r, s, n, o) {
|
|
207
207
|
var a = !s.length, i = e._modules.getNamespace(s);
|
|
208
208
|
if (n.namespaced && (e._modulesNamespaceMap[i] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + i + " for the namespaced module " + s.join("/")), e._modulesNamespaceMap[i] = n), !a && !o) {
|
|
209
|
-
var l =
|
|
209
|
+
var l = $e(r, s.slice(0, -1)), c = s[s.length - 1];
|
|
210
210
|
e._withCommit(function() {
|
|
211
211
|
process.env.NODE_ENV !== "production" && c in l && console.warn(
|
|
212
212
|
'[vuex] state field "' + c + '" was overridden by a module with the same name at "' + s.join(".") + '"'
|
|
213
213
|
), l[c] = n.state;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var h = n.context = At(e, i, s);
|
|
217
217
|
n.forEachMutation(function(m, _) {
|
|
218
|
-
var
|
|
219
|
-
jt(e,
|
|
218
|
+
var x = i + _;
|
|
219
|
+
jt(e, x, m, h);
|
|
220
220
|
}), n.forEachAction(function(m, _) {
|
|
221
|
-
var
|
|
222
|
-
Et(e,
|
|
221
|
+
var x = m.root ? _ : i + _, D = m.handler || m;
|
|
222
|
+
Et(e, x, D, h);
|
|
223
223
|
}), n.forEachGetter(function(m, _) {
|
|
224
|
-
var
|
|
225
|
-
|
|
224
|
+
var x = i + _;
|
|
225
|
+
Tt(e, x, m, h);
|
|
226
226
|
}), n.forEachChild(function(m, _) {
|
|
227
227
|
ue(e, r, s.concat(_), m, o);
|
|
228
228
|
});
|
|
@@ -230,20 +230,20 @@ function ue(e, r, s, n, o) {
|
|
|
230
230
|
function At(e, r, s) {
|
|
231
231
|
var n = r === "", o = {
|
|
232
232
|
dispatch: n ? e.dispatch : function(a, i, l) {
|
|
233
|
-
var c = de(a, i, l),
|
|
233
|
+
var c = de(a, i, l), h = c.payload, m = c.options, _ = c.type;
|
|
234
234
|
if ((!m || !m.root) && (_ = r + _, process.env.NODE_ENV !== "production" && !e._actions[_])) {
|
|
235
235
|
console.error("[vuex] unknown local action type: " + c.type + ", global type: " + _);
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
|
-
return e.dispatch(_,
|
|
238
|
+
return e.dispatch(_, h);
|
|
239
239
|
},
|
|
240
240
|
commit: n ? e.commit : function(a, i, l) {
|
|
241
|
-
var c = de(a, i, l),
|
|
241
|
+
var c = de(a, i, l), h = c.payload, m = c.options, _ = c.type;
|
|
242
242
|
if ((!m || !m.root) && (_ = r + _, process.env.NODE_ENV !== "production" && !e._mutations[_])) {
|
|
243
243
|
console.error("[vuex] unknown local mutation type: " + c.type + ", global type: " + _);
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
|
-
e.commit(_,
|
|
246
|
+
e.commit(_, h, m);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
return Object.defineProperties(o, {
|
|
@@ -251,17 +251,17 @@ function At(e, r, s) {
|
|
|
251
251
|
get: n ? function() {
|
|
252
252
|
return e.getters;
|
|
253
253
|
} : function() {
|
|
254
|
-
return
|
|
254
|
+
return Re(e, r);
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
state: {
|
|
258
258
|
get: function() {
|
|
259
|
-
return
|
|
259
|
+
return $e(e.state, s);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
}), o;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Re(e, r) {
|
|
265
265
|
if (!e._makeLocalGettersCache[r]) {
|
|
266
266
|
var s = {}, n = r.length;
|
|
267
267
|
Object.keys(e.getters).forEach(function(o) {
|
|
@@ -300,7 +300,7 @@ function Et(e, r, s, n) {
|
|
|
300
300
|
}) : l;
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Tt(e, r, s, n) {
|
|
304
304
|
if (e._wrappedGetters[r]) {
|
|
305
305
|
process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + r);
|
|
306
306
|
return;
|
|
@@ -318,22 +318,22 @@ function Lt(e, r, s, n) {
|
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
|
|
321
|
+
function Lt(e) {
|
|
322
|
+
H(function() {
|
|
323
323
|
return e._state.data;
|
|
324
324
|
}, function() {
|
|
325
325
|
process.env.NODE_ENV !== "production" && V(e._committing, "do not mutate vuex store state outside mutation handlers.");
|
|
326
326
|
}, { deep: !0, flush: "sync" });
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function $e(e, r) {
|
|
329
329
|
return r.reduce(function(s, n) {
|
|
330
330
|
return s[n];
|
|
331
331
|
}, e);
|
|
332
332
|
}
|
|
333
333
|
function de(e, r, s) {
|
|
334
|
-
return
|
|
334
|
+
return Ge(e) && e.type && (s = r, r = e, e = e.type), process.env.NODE_ENV !== "production" && V(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: r, options: s };
|
|
335
335
|
}
|
|
336
|
-
var
|
|
336
|
+
var Mt = "vuex bindings", Oe = "vuex:mutations", pe = "vuex:actions", J = "vuex", It = 0;
|
|
337
337
|
function Nt(e, r) {
|
|
338
338
|
Dt(
|
|
339
339
|
{
|
|
@@ -343,17 +343,17 @@ function Nt(e, r) {
|
|
|
343
343
|
homepage: "https://next.vuex.vuejs.org/",
|
|
344
344
|
logo: "https://vuejs.org/images/icons/favicon-96x96.png",
|
|
345
345
|
packageName: "vuex",
|
|
346
|
-
componentStateTypes: [
|
|
346
|
+
componentStateTypes: [Mt]
|
|
347
347
|
},
|
|
348
348
|
function(s) {
|
|
349
349
|
s.addTimelineLayer({
|
|
350
|
-
id:
|
|
350
|
+
id: Oe,
|
|
351
351
|
label: "Vuex Mutations",
|
|
352
|
-
color:
|
|
352
|
+
color: Pe
|
|
353
353
|
}), s.addTimelineLayer({
|
|
354
354
|
id: pe,
|
|
355
355
|
label: "Vuex Actions",
|
|
356
|
-
color:
|
|
356
|
+
color: Pe
|
|
357
357
|
}), s.addInspector({
|
|
358
358
|
id: J,
|
|
359
359
|
label: "Vuex",
|
|
@@ -363,7 +363,7 @@ function Nt(e, r) {
|
|
|
363
363
|
if (n.app === e && n.inspectorId === J)
|
|
364
364
|
if (n.filter) {
|
|
365
365
|
var o = [];
|
|
366
|
-
|
|
366
|
+
Ze(o, r._modules.root, n.filter, ""), n.rootNodes = o;
|
|
367
367
|
} else
|
|
368
368
|
n.rootNodes = [
|
|
369
369
|
ze(r._modules.root, "")
|
|
@@ -371,7 +371,7 @@ function Nt(e, r) {
|
|
|
371
371
|
}), s.on.getInspectorState(function(n) {
|
|
372
372
|
if (n.app === e && n.inspectorId === J) {
|
|
373
373
|
var o = n.nodeId;
|
|
374
|
-
|
|
374
|
+
Re(r, o), n.state = Gt(
|
|
375
375
|
Ft(r._modules, o),
|
|
376
376
|
o === "root" ? r.getters : r._makeLocalGettersCache,
|
|
377
377
|
o
|
|
@@ -387,7 +387,7 @@ function Nt(e, r) {
|
|
|
387
387
|
}), r.subscribe(function(n, o) {
|
|
388
388
|
var a = {};
|
|
389
389
|
n.payload && (a.payload = n.payload), a.state = o, s.notifyComponentUpdate(), s.sendInspectorTree(J), s.sendInspectorState(J), s.addTimelineEvent({
|
|
390
|
-
layerId:
|
|
390
|
+
layerId: Oe,
|
|
391
391
|
event: {
|
|
392
392
|
time: Date.now(),
|
|
393
393
|
title: n.type,
|
|
@@ -397,7 +397,7 @@ function Nt(e, r) {
|
|
|
397
397
|
}), r.subscribeAction({
|
|
398
398
|
before: function(n, o) {
|
|
399
399
|
var a = {};
|
|
400
|
-
n.payload && (a.payload = n.payload), n._id =
|
|
400
|
+
n.payload && (a.payload = n.payload), n._id = It++, n._time = Date.now(), a.state = o, s.addTimelineEvent({
|
|
401
401
|
layerId: pe,
|
|
402
402
|
event: {
|
|
403
403
|
time: n._time,
|
|
@@ -432,12 +432,12 @@ function Nt(e, r) {
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var Pe = 8702998, Vt = 6710886, Bt = 16777215, qe = {
|
|
436
436
|
label: "namespaced",
|
|
437
437
|
textColor: Bt,
|
|
438
438
|
backgroundColor: Vt
|
|
439
439
|
};
|
|
440
|
-
function
|
|
440
|
+
function He(e) {
|
|
441
441
|
return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
|
|
442
442
|
}
|
|
443
443
|
function ze(e, r) {
|
|
@@ -446,8 +446,8 @@ function ze(e, r) {
|
|
|
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: He(r),
|
|
450
|
+
tags: e.namespaced ? [qe] : [],
|
|
451
451
|
children: Object.keys(e._children).map(
|
|
452
452
|
function(s) {
|
|
453
453
|
return ze(
|
|
@@ -458,13 +458,13 @@ function ze(e, r) {
|
|
|
458
458
|
)
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Ze(e, r, s, n) {
|
|
462
462
|
n.includes(s) && e.push({
|
|
463
463
|
id: n || "root",
|
|
464
464
|
label: n.endsWith("/") ? n.slice(0, n.length - 1) : n || "Root",
|
|
465
|
-
tags: r.namespaced ? [
|
|
465
|
+
tags: r.namespaced ? [qe] : []
|
|
466
466
|
}), Object.keys(r._children).forEach(function(o) {
|
|
467
|
-
|
|
467
|
+
Ze(e, r._children[o], s, n + o + "/");
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
function Gt(e, r, s) {
|
|
@@ -482,7 +482,7 @@ function Gt(e, r, s) {
|
|
|
482
482
|
var a = Ut(r);
|
|
483
483
|
o.getters = Object.keys(a).map(function(i) {
|
|
484
484
|
return {
|
|
485
|
-
key: i.endsWith("/") ?
|
|
485
|
+
key: i.endsWith("/") ? He(i) : i,
|
|
486
486
|
editable: !1,
|
|
487
487
|
value: _e(function() {
|
|
488
488
|
return a[i];
|
|
@@ -541,8 +541,8 @@ var B = function(r, s) {
|
|
|
541
541
|
this.runtime = s, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = r;
|
|
542
542
|
var n = r.state;
|
|
543
543
|
this.state = (typeof n == "function" ? n() : n) || {};
|
|
544
|
-
},
|
|
545
|
-
|
|
544
|
+
}, Ke = { namespaced: { configurable: !0 } };
|
|
545
|
+
Ke.namespaced.get = function() {
|
|
546
546
|
return !!this._rawModule.namespaced;
|
|
547
547
|
};
|
|
548
548
|
B.prototype.addChild = function(r, s) {
|
|
@@ -572,7 +572,7 @@ B.prototype.forEachAction = function(r) {
|
|
|
572
572
|
B.prototype.forEachMutation = function(r) {
|
|
573
573
|
this._rawModule.mutations && K(this._rawModule.mutations, r);
|
|
574
574
|
};
|
|
575
|
-
Object.defineProperties(B.prototype,
|
|
575
|
+
Object.defineProperties(B.prototype, Ke);
|
|
576
576
|
var W = function(r) {
|
|
577
577
|
this.register([], r, !1);
|
|
578
578
|
};
|
|
@@ -588,11 +588,11 @@ W.prototype.getNamespace = function(r) {
|
|
|
588
588
|
}, "");
|
|
589
589
|
};
|
|
590
590
|
W.prototype.update = function(r) {
|
|
591
|
-
|
|
591
|
+
We([], this.root, r);
|
|
592
592
|
};
|
|
593
593
|
W.prototype.register = function(r, s, n) {
|
|
594
594
|
var o = this;
|
|
595
|
-
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" &&
|
|
595
|
+
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Ye(r, s);
|
|
596
596
|
var a = new B(s, n);
|
|
597
597
|
if (r.length === 0)
|
|
598
598
|
this.root = a;
|
|
@@ -618,8 +618,8 @@ W.prototype.isRegistered = function(r) {
|
|
|
618
618
|
var s = this.get(r.slice(0, -1)), n = r[r.length - 1];
|
|
619
619
|
return s ? s.hasChild(n) : !1;
|
|
620
620
|
};
|
|
621
|
-
function
|
|
622
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
621
|
+
function We(e, r, s) {
|
|
622
|
+
if (process.env.NODE_ENV !== "production" && Ye(e, s), r.update(s), s.modules)
|
|
623
623
|
for (var n in s.modules) {
|
|
624
624
|
if (!r.getChild(n)) {
|
|
625
625
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -627,14 +627,14 @@ function Ke(e, r, s) {
|
|
|
627
627
|
);
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
|
-
|
|
630
|
+
We(
|
|
631
631
|
e.concat(n),
|
|
632
632
|
r.getChild(n),
|
|
633
633
|
s.modules[n]
|
|
634
634
|
);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
var
|
|
637
|
+
var Ae = {
|
|
638
638
|
assert: function(e) {
|
|
639
639
|
return typeof e == "function";
|
|
640
640
|
},
|
|
@@ -644,15 +644,15 @@ var Pe = {
|
|
|
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:
|
|
647
|
+
}, je = {
|
|
648
|
+
getters: Ae,
|
|
649
|
+
mutations: Ae,
|
|
650
650
|
actions: Rt
|
|
651
651
|
};
|
|
652
|
-
function
|
|
653
|
-
Object.keys(
|
|
652
|
+
function Ye(e, r) {
|
|
653
|
+
Object.keys(je).forEach(function(s) {
|
|
654
654
|
if (r[s]) {
|
|
655
|
-
var n =
|
|
655
|
+
var n = je[s];
|
|
656
656
|
K(r[s], function(o, a) {
|
|
657
657
|
V(
|
|
658
658
|
n.assert(o),
|
|
@@ -675,40 +675,40 @@ var I = function e(r) {
|
|
|
675
675
|
o === void 0 && (o = !1);
|
|
676
676
|
var a = r.devtools;
|
|
677
677
|
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new W(r), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
678
|
-
var i = this, l = this, c = l.dispatch,
|
|
679
|
-
this.dispatch = function(
|
|
680
|
-
return c.call(i,
|
|
681
|
-
}, this.commit = function(
|
|
682
|
-
return
|
|
678
|
+
var i = this, l = this, c = l.dispatch, h = l.commit;
|
|
679
|
+
this.dispatch = function(x, D) {
|
|
680
|
+
return c.call(i, x, D);
|
|
681
|
+
}, this.commit = function(x, D, N) {
|
|
682
|
+
return h.call(i, x, D, N);
|
|
683
683
|
}, this.strict = o;
|
|
684
684
|
var m = this._modules.root.state;
|
|
685
|
-
ue(this, m, [], this._modules.root),
|
|
685
|
+
ue(this, m, [], this._modules.root), ke(this, m), n.forEach(function(_) {
|
|
686
686
|
return _(s);
|
|
687
687
|
});
|
|
688
|
-
},
|
|
688
|
+
}, Ce = { state: { configurable: !0 } };
|
|
689
689
|
I.prototype.install = function(r, s) {
|
|
690
|
-
r.provide(s ||
|
|
690
|
+
r.provide(s || Ve, this), r.config.globalProperties.$store = this;
|
|
691
691
|
var n = this._devtools !== void 0 ? this._devtools : process.env.NODE_ENV !== "production" || !1;
|
|
692
692
|
n && Nt(r, this);
|
|
693
693
|
};
|
|
694
|
-
|
|
694
|
+
Ce.state.get = function() {
|
|
695
695
|
return this._state.data;
|
|
696
696
|
};
|
|
697
|
-
|
|
697
|
+
Ce.state.set = function(e) {
|
|
698
698
|
process.env.NODE_ENV !== "production" && V(!1, "use store.replaceState() to explicit replace store state.");
|
|
699
699
|
};
|
|
700
700
|
I.prototype.commit = function(r, s, n) {
|
|
701
|
-
var o = this, a = de(r, s, n), i = a.type, l = a.payload, c = a.options,
|
|
701
|
+
var o = this, a = de(r, s, n), i = a.type, l = a.payload, c = a.options, h = { type: i, payload: l }, m = this._mutations[i];
|
|
702
702
|
if (!m) {
|
|
703
703
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + i);
|
|
704
704
|
return;
|
|
705
705
|
}
|
|
706
706
|
this._withCommit(function() {
|
|
707
|
-
m.forEach(function(
|
|
708
|
-
|
|
707
|
+
m.forEach(function(x) {
|
|
708
|
+
x(l);
|
|
709
709
|
});
|
|
710
710
|
}), this._subscribers.slice().forEach(function(_) {
|
|
711
|
-
return _(
|
|
711
|
+
return _(h, o.state);
|
|
712
712
|
}), process.env.NODE_ENV !== "production" && c && c.silent && console.warn(
|
|
713
713
|
"[vuex] mutation type: " + i + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
|
|
714
714
|
);
|
|
@@ -728,45 +728,45 @@ I.prototype.dispatch = function(r, s) {
|
|
|
728
728
|
} catch (m) {
|
|
729
729
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(m));
|
|
730
730
|
}
|
|
731
|
-
var
|
|
731
|
+
var h = c.length > 1 ? Promise.all(c.map(function(m) {
|
|
732
732
|
return m(i);
|
|
733
733
|
})) : c[0](i);
|
|
734
734
|
return new Promise(function(m, _) {
|
|
735
|
-
|
|
735
|
+
h.then(function(x) {
|
|
736
736
|
try {
|
|
737
|
-
n._actionSubscribers.filter(function(
|
|
738
|
-
return
|
|
739
|
-
}).forEach(function(
|
|
740
|
-
return
|
|
737
|
+
n._actionSubscribers.filter(function(D) {
|
|
738
|
+
return D.after;
|
|
739
|
+
}).forEach(function(D) {
|
|
740
|
+
return D.after(l, n.state);
|
|
741
741
|
});
|
|
742
|
-
} catch (
|
|
743
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(
|
|
742
|
+
} catch (D) {
|
|
743
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(D));
|
|
744
744
|
}
|
|
745
|
-
m(
|
|
746
|
-
}, function(
|
|
745
|
+
m(x);
|
|
746
|
+
}, function(x) {
|
|
747
747
|
try {
|
|
748
|
-
n._actionSubscribers.filter(function(
|
|
749
|
-
return
|
|
750
|
-
}).forEach(function(
|
|
751
|
-
return
|
|
748
|
+
n._actionSubscribers.filter(function(D) {
|
|
749
|
+
return D.error;
|
|
750
|
+
}).forEach(function(D) {
|
|
751
|
+
return D.error(l, 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 (D) {
|
|
754
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(D));
|
|
755
755
|
}
|
|
756
|
-
_(
|
|
756
|
+
_(x);
|
|
757
757
|
});
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
I.prototype.subscribe = function(r, s) {
|
|
761
|
-
return
|
|
761
|
+
return Ue(r, this._subscribers, s);
|
|
762
762
|
};
|
|
763
763
|
I.prototype.subscribeAction = function(r, s) {
|
|
764
764
|
var n = typeof r == "function" ? { before: r } : r;
|
|
765
|
-
return
|
|
765
|
+
return Ue(n, this._actionSubscribers, s);
|
|
766
766
|
};
|
|
767
767
|
I.prototype.watch = function(r, s, n) {
|
|
768
768
|
var o = this;
|
|
769
|
-
return process.env.NODE_ENV !== "production" && V(typeof r == "function", "store.watch only accepts a function."),
|
|
769
|
+
return process.env.NODE_ENV !== "production" && V(typeof r == "function", "store.watch only accepts a function."), H(function() {
|
|
770
770
|
return r(o.state, o.getters);
|
|
771
771
|
}, s, Object.assign({}, n));
|
|
772
772
|
};
|
|
@@ -777,81 +777,81 @@ I.prototype.replaceState = function(r) {
|
|
|
777
777
|
});
|
|
778
778
|
};
|
|
779
779
|
I.prototype.registerModule = function(r, s, n) {
|
|
780
|
-
n === void 0 && (n = {}), typeof r == "string" && (r = [r]), process.env.NODE_ENV !== "production" && (V(Array.isArray(r), "module path must be a string or an Array."), V(r.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(r, s), ue(this, this.state, r, this._modules.get(r), n.preserveState),
|
|
780
|
+
n === void 0 && (n = {}), typeof r == "string" && (r = [r]), process.env.NODE_ENV !== "production" && (V(Array.isArray(r), "module path must be a string or an Array."), V(r.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(r, s), ue(this, this.state, r, this._modules.get(r), n.preserveState), ke(this, this.state);
|
|
781
781
|
};
|
|
782
782
|
I.prototype.unregisterModule = function(r) {
|
|
783
783
|
var s = this;
|
|
784
784
|
typeof r == "string" && (r = [r]), process.env.NODE_ENV !== "production" && V(Array.isArray(r), "module path must be a string or an Array."), this._modules.unregister(r), this._withCommit(function() {
|
|
785
|
-
var n =
|
|
785
|
+
var n = $e(s.state, r.slice(0, -1));
|
|
786
786
|
delete n[r[r.length - 1]];
|
|
787
|
-
}),
|
|
787
|
+
}), Fe(this);
|
|
788
788
|
};
|
|
789
789
|
I.prototype.hasModule = function(r) {
|
|
790
790
|
return typeof r == "string" && (r = [r]), process.env.NODE_ENV !== "production" && V(Array.isArray(r), "module path must be a string or an Array."), this._modules.isRegistered(r);
|
|
791
791
|
};
|
|
792
792
|
I.prototype.hotUpdate = function(r) {
|
|
793
|
-
this._modules.update(r),
|
|
793
|
+
this._modules.update(r), Fe(this, !0);
|
|
794
794
|
};
|
|
795
795
|
I.prototype._withCommit = function(r) {
|
|
796
796
|
var s = this._committing;
|
|
797
797
|
this._committing = !0, r(), this._committing = s;
|
|
798
798
|
};
|
|
799
|
-
Object.defineProperties(I.prototype,
|
|
800
|
-
var
|
|
799
|
+
Object.defineProperties(I.prototype, Ce);
|
|
800
|
+
var Ht = Je(function(e, r) {
|
|
801
801
|
var s = {};
|
|
802
|
-
return process.env.NODE_ENV !== "production" && !
|
|
802
|
+
return process.env.NODE_ENV !== "production" && !Se(r) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Xe(r).forEach(function(n) {
|
|
803
803
|
var o = n.key, a = n.val;
|
|
804
804
|
s[o] = function() {
|
|
805
805
|
var l = this.$store.state, c = this.$store.getters;
|
|
806
806
|
if (e) {
|
|
807
|
-
var
|
|
808
|
-
if (!
|
|
807
|
+
var h = Qe(this.$store, "mapState", e);
|
|
808
|
+
if (!h)
|
|
809
809
|
return;
|
|
810
|
-
l =
|
|
810
|
+
l = h.context.state, c = h.context.getters;
|
|
811
811
|
}
|
|
812
812
|
return typeof a == "function" ? a.call(this, l, c) : l[a];
|
|
813
813
|
}, s[o].vuex = !0;
|
|
814
814
|
}), s;
|
|
815
|
-
}),
|
|
815
|
+
}), zt = Je(function(e, r) {
|
|
816
816
|
var s = {};
|
|
817
|
-
return process.env.NODE_ENV !== "production" && !
|
|
817
|
+
return process.env.NODE_ENV !== "production" && !Se(r) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Xe(r).forEach(function(n) {
|
|
818
818
|
var o = n.key, a = n.val;
|
|
819
819
|
s[o] = function() {
|
|
820
820
|
for (var l = [], c = arguments.length; c--; )
|
|
821
821
|
l[c] = arguments[c];
|
|
822
|
-
var
|
|
822
|
+
var h = 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
|
+
h = m.context.commit;
|
|
828
828
|
}
|
|
829
|
-
return typeof a == "function" ? a.apply(this, [
|
|
829
|
+
return typeof a == "function" ? a.apply(this, [h].concat(l)) : h.apply(this.$store, [a].concat(l));
|
|
830
830
|
};
|
|
831
831
|
}), s;
|
|
832
832
|
});
|
|
833
|
-
function
|
|
834
|
-
return
|
|
833
|
+
function Xe(e) {
|
|
834
|
+
return Se(e) ? Array.isArray(e) ? e.map(function(r) {
|
|
835
835
|
return { key: r, val: r };
|
|
836
836
|
}) : Object.keys(e).map(function(r) {
|
|
837
837
|
return { key: r, val: e[r] };
|
|
838
838
|
}) : [];
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
return Array.isArray(e) ||
|
|
840
|
+
function Se(e) {
|
|
841
|
+
return Array.isArray(e) || Ge(e);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Je(e) {
|
|
844
844
|
return function(r, s) {
|
|
845
845
|
return typeof r != "string" ? (s = r, r = "") : r.charAt(r.length - 1) !== "/" && (r += "/"), e(r, s);
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Qe(e, r, s) {
|
|
849
849
|
var n = e._modulesNamespaceMap[s];
|
|
850
850
|
return process.env.NODE_ENV !== "production" && !n && console.error("[vuex] module namespace not found in " + r + "(): " + s), n;
|
|
851
851
|
}
|
|
852
852
|
const Zt = {
|
|
853
853
|
components: {
|
|
854
|
-
DeleteConfirmationModal:
|
|
854
|
+
DeleteConfirmationModal: we
|
|
855
855
|
},
|
|
856
856
|
props: {
|
|
857
857
|
is_required: {
|
|
@@ -1026,8 +1026,8 @@ const Zt = {
|
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
1027
|
}, null, -1), pr = { class: "flex flex-col ml-3" }, yr = { class: "text-xs" }, _r = { class: "text-xs" }, vr = { class: "flex gap-2" }, xr = ["href"], wr = ["onClick"];
|
|
1028
1028
|
function kr(e, r, s, n, o, a) {
|
|
1029
|
-
const i =
|
|
1030
|
-
return d(), u(
|
|
1029
|
+
const i = z("DeleteConfirmationModal");
|
|
1030
|
+
return d(), u(v, null, [
|
|
1031
1031
|
R(i, {
|
|
1032
1032
|
isOpen: o.open_delete_modal,
|
|
1033
1033
|
onConfirmDelete: a.deleteAction,
|
|
@@ -1045,7 +1045,7 @@ function kr(e, r, s, n, o, a) {
|
|
|
1045
1045
|
"gl-label-form-invalid": o.error_message_data !== "",
|
|
1046
1046
|
required: s.is_required
|
|
1047
1047
|
})
|
|
1048
|
-
},
|
|
1048
|
+
}, f(s.label_name), 3),
|
|
1049
1049
|
t("div", {
|
|
1050
1050
|
onDragover: r[3] || (r[3] = F((...l) => a.onDragOver && a.onDragOver(...l), ["prevent"])),
|
|
1051
1051
|
onDragleave: r[4] || (r[4] = F((...l) => a.onDragLeave && a.onDragLeave(...l), ["prevent"])),
|
|
@@ -1074,32 +1074,32 @@ function kr(e, r, s, n, o, a) {
|
|
|
1074
1074
|
}, Qt))
|
|
1075
1075
|
])
|
|
1076
1076
|
], 32),
|
|
1077
|
-
t("span", sr,
|
|
1078
|
-
t("small", ar,
|
|
1077
|
+
t("span", sr, f(o.error_message_data), 1),
|
|
1078
|
+
t("small", ar, f(s.description), 1),
|
|
1079
1079
|
o.files.length > 0 ? (d(), u("section", nr, [
|
|
1080
|
-
(d(!0), u(
|
|
1080
|
+
(d(!0), u(v, null, S(o.files, (l, c) => (d(), u("li", or, [
|
|
1081
1081
|
lr,
|
|
1082
1082
|
t("div", ir, [
|
|
1083
1083
|
t("div", dr, [
|
|
1084
|
-
t("span", ur,
|
|
1085
|
-
t("span", cr,
|
|
1084
|
+
t("span", ur, f(a.getFileName(l.file_name)), 1),
|
|
1085
|
+
t("span", cr, f(l.loading), 1)
|
|
1086
1086
|
]),
|
|
1087
1087
|
t("div", gr, [
|
|
1088
1088
|
t("div", {
|
|
1089
1089
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
1090
|
-
style:
|
|
1090
|
+
style: st({ width: l.loading + "%" })
|
|
1091
1091
|
}, null, 4)
|
|
1092
1092
|
])
|
|
1093
1093
|
])
|
|
1094
1094
|
]))), 256))
|
|
1095
1095
|
])) : g("", !0),
|
|
1096
1096
|
t("section", fr, [
|
|
1097
|
-
(d(!0), u(
|
|
1097
|
+
(d(!0), u(v, null, S(o.uploadFileList, (l, c) => (d(), u("li", hr, [
|
|
1098
1098
|
t("div", mr, [
|
|
1099
1099
|
br,
|
|
1100
1100
|
t("div", pr, [
|
|
1101
|
-
t("span", yr,
|
|
1102
|
-
t("span", _r,
|
|
1101
|
+
t("span", yr, f(a.getFileName(l.file_name)), 1),
|
|
1102
|
+
t("span", _r, f(a.formatFileSize(l.size)), 1)
|
|
1103
1103
|
])
|
|
1104
1104
|
]),
|
|
1105
1105
|
t("div", vr, [
|
|
@@ -1110,7 +1110,7 @@ function kr(e, r, s, n, o, a) {
|
|
|
1110
1110
|
}, null, 8, xr),
|
|
1111
1111
|
s.is_enable_delete ? (d(), u("i", {
|
|
1112
1112
|
key: 0,
|
|
1113
|
-
onClick: (
|
|
1113
|
+
onClick: (h) => {
|
|
1114
1114
|
o.media_id = l.id, o.open_delete_modal = !0;
|
|
1115
1115
|
},
|
|
1116
1116
|
class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
|
|
@@ -1121,9 +1121,9 @@ function kr(e, r, s, n, o, a) {
|
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const pc = /* @__PURE__ */ O(Zt, [["render", kr]]), $r = {
|
|
1125
1125
|
computed: {
|
|
1126
|
-
...
|
|
1126
|
+
...Ht("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
1128
1128
|
switch (this.notification.type) {
|
|
1129
1129
|
case "info":
|
|
@@ -1158,7 +1158,7 @@ const sc = /* @__PURE__ */ O(Zt, [["render", kr]]), $r = {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
},
|
|
1160
1160
|
methods: {
|
|
1161
|
-
...
|
|
1161
|
+
...zt("notification", ["HIDE_NOTIFICATION"]),
|
|
1162
1162
|
dismiss() {
|
|
1163
1163
|
this.HIDE_NOTIFICATION();
|
|
1164
1164
|
}
|
|
@@ -1204,7 +1204,7 @@ function jr(e, r, s, n, o, a) {
|
|
|
1204
1204
|
}, [
|
|
1205
1205
|
Cr,
|
|
1206
1206
|
Sr,
|
|
1207
|
-
t("div", Dr,
|
|
1207
|
+
t("div", Dr, f(e.notification.message), 1),
|
|
1208
1208
|
t("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
1210
|
onClick: r[0] || (r[0] = (...i) => a.dismiss && a.dismiss(...i)),
|
|
@@ -1213,7 +1213,7 @@ function jr(e, r, s, n, o, a) {
|
|
|
1213
1213
|
}, Ar, 2)
|
|
1214
1214
|
], 2)) : g("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const yc = /* @__PURE__ */ O($r, [["render", jr]]), Er = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1248,10 +1248,10 @@ const ac = /* @__PURE__ */ O($r, [["render", jr]]), Er = {
|
|
|
1248
1248
|
},
|
|
1249
1249
|
mounted() {
|
|
1250
1250
|
}
|
|
1251
|
-
},
|
|
1252
|
-
function
|
|
1253
|
-
return d(), u("ul",
|
|
1254
|
-
(d(!0), u(
|
|
1251
|
+
}, Tr = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Lr = ["name", "value", "id", "checked"], Mr = ["for"];
|
|
1252
|
+
function Ir(e, r, s, n, o, a) {
|
|
1253
|
+
return d(), u("ul", Tr, [
|
|
1254
|
+
(d(!0), u(v, null, S(o.locals, (i, l) => (d(), u("li", null, [
|
|
1255
1255
|
t("input", {
|
|
1256
1256
|
type: "radio",
|
|
1257
1257
|
name: s.trans_selector_name,
|
|
@@ -1260,7 +1260,7 @@ function Mr(e, r, s, n, o, a) {
|
|
|
1260
1260
|
id: i + "_" + s.field_name,
|
|
1261
1261
|
autocomplete: "off",
|
|
1262
1262
|
checked: i === o.default_language
|
|
1263
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, Lr),
|
|
1264
1264
|
t("label", {
|
|
1265
1265
|
for: i + "_" + s.field_name,
|
|
1266
1266
|
class: p([{
|
|
@@ -1268,14 +1268,14 @@ function Mr(e, r, s, n, o, a) {
|
|
|
1268
1268
|
"border md:!rounded-e-lg": l === o.locals.length - 1,
|
|
1269
1269
|
"border-t border-b": l !== 0 && l !== o.locals.length - 1
|
|
1270
1270
|
}, "w-full p-1 font-bold text-center text-gray-500 uppercase bg-white border-gray-200 rounded-lg cursor-pointer md:rounded-none dark:hover:text-gray-300 dark:border-gray-700 dark:peer-checked:text-blue-500 peer-checked:border-blue-600 peer-checked:text-blue-600 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:bg-gray-800 dark:hover:bg-gray-700"])
|
|
1271
|
-
},
|
|
1271
|
+
}, f(i), 11, Mr)
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const _c = /* @__PURE__ */ O(Er, [["render", Ir]]), 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" }, Br = { class: "font-semibold text-black dark:text-white" }, Gr = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
|
-
},
|
|
1278
|
+
}, vc = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1284,23 +1284,23 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1284
1284
|
}
|
|
1285
1285
|
},
|
|
1286
1286
|
setup(e) {
|
|
1287
|
-
const r = e, s =
|
|
1287
|
+
const r = e, s = L(() => r.class);
|
|
1288
1288
|
return (n, o) => (d(), u("div", {
|
|
1289
1289
|
class: p(["flex flex-col gap-9", s.value])
|
|
1290
1290
|
}, [
|
|
1291
1291
|
t("div", Nr, [
|
|
1292
1292
|
t("div", Vr, [
|
|
1293
1293
|
t("h3", Br, [
|
|
1294
|
-
|
|
1294
|
+
M(n.$slots, "header")
|
|
1295
1295
|
])
|
|
1296
1296
|
]),
|
|
1297
1297
|
n.$slots.body ? (d(), u("div", Gr, [
|
|
1298
|
-
|
|
1298
|
+
M(n.$slots, "body")
|
|
1299
1299
|
])) : g("", !0)
|
|
1300
1300
|
])
|
|
1301
1301
|
], 2));
|
|
1302
1302
|
}
|
|
1303
|
-
}, Ur = { class: "font-bold ptext-lg dark:text-white" }, Fr = { class: "mt-3 mb-4" }, Rr = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-3 py-1 rounded dark:bg-blue-900 dark:text-blue-300" }, qr = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1),
|
|
1303
|
+
}, Ur = { class: "font-bold ptext-lg dark:text-white" }, Fr = { class: "mt-3 mb-4" }, Rr = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-3 py-1 rounded dark:bg-blue-900 dark:text-blue-300" }, qr = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Hr = ["name", "value"], zr = {
|
|
1304
1304
|
key: 0,
|
|
1305
1305
|
class: "dropdown"
|
|
1306
1306
|
}, Zr = { class: "border border-gray-200 rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, Kr = { class: "relative" }, Wr = ["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" }, Xr = { class: "p-1" }, Jr = /* @__PURE__ */ t("label", {
|
|
@@ -1322,7 +1322,7 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1322
1322
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
1323
1323
|
})
|
|
1324
1324
|
])
|
|
1325
|
-
], -1), ts = ["id"], rs = { class: "overflow-y-auto max-h-64" }, ss = ["onClick", "onMousedown", "id"],
|
|
1325
|
+
], -1), ts = ["id"], rs = { class: "overflow-y-auto max-h-64" }, ss = ["onClick", "onMousedown", "id"], xc = {
|
|
1326
1326
|
__name: "GlMultiSelectDropdown",
|
|
1327
1327
|
props: {
|
|
1328
1328
|
modelValue: {
|
|
@@ -1382,7 +1382,7 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1382
1382
|
},
|
|
1383
1383
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
1384
1384
|
setup(e, { emit: r }) {
|
|
1385
|
-
const s = e, n = r, o = C(null), a = C([]), i = C([]), l = C(0), c = C(!1),
|
|
1385
|
+
const s = e, n = r, o = C(null), a = C([]), i = C([]), l = C(0), c = C(!1), h = C(""), m = C("");
|
|
1386
1386
|
q(() => {
|
|
1387
1387
|
m.value = ee(), s.show || (document.body.addEventListener("click", (b) => {
|
|
1388
1388
|
ne(b);
|
|
@@ -1390,15 +1390,15 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1390
1390
|
b.key === "Enter" && b.target.form && b.preventDefault();
|
|
1391
1391
|
}));
|
|
1392
1392
|
});
|
|
1393
|
-
const _ =
|
|
1394
|
-
const b = [],
|
|
1393
|
+
const _ = L(() => y()), x = L(() => P()), D = L(() => {
|
|
1394
|
+
const b = [], w = new RegExp(h.value, "ig");
|
|
1395
1395
|
for (const k of _.value) {
|
|
1396
1396
|
const E = String(k.name);
|
|
1397
|
-
(
|
|
1397
|
+
(h.value.length < 1 || E.match(w)) && b.length < s.maxItem && b.push(k);
|
|
1398
1398
|
}
|
|
1399
1399
|
return b;
|
|
1400
1400
|
});
|
|
1401
|
-
function
|
|
1401
|
+
function N(b) {
|
|
1402
1402
|
if ([
|
|
1403
1403
|
"ArrowLeft",
|
|
1404
1404
|
"ArrowUp",
|
|
@@ -1422,13 +1422,13 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1422
1422
|
);
|
|
1423
1423
|
}
|
|
1424
1424
|
function te(b) {
|
|
1425
|
-
return Array.isArray(b) && b.length > 0 && b.every((
|
|
1425
|
+
return Array.isArray(b) && b.length > 0 && b.every((w) => typeof w == "object" && w !== null);
|
|
1426
1426
|
}
|
|
1427
1427
|
function re(b) {
|
|
1428
|
-
return b.every((
|
|
1428
|
+
return b.every((w) => typeof w == "object" && w !== null);
|
|
1429
1429
|
}
|
|
1430
1430
|
function ce(b) {
|
|
1431
|
-
return a.value.findIndex((
|
|
1431
|
+
return a.value.findIndex((w) => w.id === b) !== -1;
|
|
1432
1432
|
}
|
|
1433
1433
|
function ge() {
|
|
1434
1434
|
a.value = y();
|
|
@@ -1437,55 +1437,55 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1437
1437
|
a.value = [], n("update:modelValue", []), n("selected", []), n("selectionChanged", []);
|
|
1438
1438
|
}
|
|
1439
1439
|
function he(b) {
|
|
1440
|
-
let
|
|
1441
|
-
|
|
1440
|
+
let w = a.value.findIndex((k) => k.id === b.id);
|
|
1441
|
+
w !== -1 && a.value.splice(w, 1), i.value = a.value.map((k) => k.id), n("update:modelValue", i.value), n("selected", a.value), n("selectionChanged", a.value);
|
|
1442
1442
|
}
|
|
1443
1443
|
function ne(b) {
|
|
1444
1444
|
b.target.id != s.field_name + "search" + m.value && b.target.id != s.field_name && !b.target.classList.contains("showOptions") && (se(), l.value = 0);
|
|
1445
1445
|
}
|
|
1446
1446
|
function Y(b) {
|
|
1447
|
-
const
|
|
1447
|
+
const w = `${b}${m.value}`, k = document.getElementById(w);
|
|
1448
1448
|
k && k.scrollIntoView();
|
|
1449
1449
|
}
|
|
1450
1450
|
function me(b) {
|
|
1451
|
-
const
|
|
1451
|
+
const w = `${b}${m.value}`, k = document.getElementById(w);
|
|
1452
1452
|
k && k.click();
|
|
1453
1453
|
}
|
|
1454
1454
|
function oe(b) {
|
|
1455
|
-
b === "ArrowDown" && l.value <
|
|
1455
|
+
b === "ArrowDown" && l.value < D.value.length && (l.value++, Y(l.value)), b === "ArrowUp" && l.value > 1 && (l.value--, Y(l.value)), b === "Enter" && me(l.value);
|
|
1456
1456
|
}
|
|
1457
1457
|
function y() {
|
|
1458
|
-
return s.options.map((b,
|
|
1458
|
+
return s.options.map((b, w) => typeof b == "object" ? b : { id: b, name: b });
|
|
1459
1459
|
}
|
|
1460
1460
|
function P() {
|
|
1461
1461
|
if (console.log("selected.value", a.value), console.log("isArrayObjectNotEmpty", te(a.value)), te(a.value))
|
|
1462
1462
|
return re(a.value) ? _.value.filter(
|
|
1463
1463
|
(b) => a.value.some(
|
|
1464
|
-
(
|
|
1464
|
+
(w) => String(w.id) === String(b.id)
|
|
1465
1465
|
)
|
|
1466
1466
|
) || [] : _.value.filter(
|
|
1467
1467
|
(b) => a.value.some(
|
|
1468
|
-
(
|
|
1468
|
+
(w) => String(w) === String(b.id)
|
|
1469
1469
|
)
|
|
1470
1470
|
) || [];
|
|
1471
1471
|
if (s.modelValue)
|
|
1472
1472
|
return re(s.modelValue) ? a.value = _.value.filter(
|
|
1473
1473
|
(b) => s.modelValue.some(
|
|
1474
|
-
(
|
|
1474
|
+
(w) => String(w.id) === String(b.id)
|
|
1475
1475
|
)
|
|
1476
1476
|
) || [] : a.value = _.value.filter(
|
|
1477
1477
|
(b) => s.modelValue.some(
|
|
1478
|
-
(
|
|
1478
|
+
(w) => String(w) === String(b.id)
|
|
1479
1479
|
)
|
|
1480
1480
|
) || [];
|
|
1481
1481
|
}
|
|
1482
1482
|
function j(b) {
|
|
1483
1483
|
console.log("selectOption", b);
|
|
1484
|
-
let
|
|
1485
|
-
|
|
1484
|
+
let w = a.value.findIndex((k) => k.id === b.id);
|
|
1485
|
+
w !== -1 ? a.value.splice(w, 1) : a.value.push(b), console.log("selectOption selected", a.value), c.value = !1, i.value = a.value.map((k) => k.id), n("update:modelValue", i.value), n("selected", a.value), n("selectionChanged", a.value);
|
|
1486
1486
|
}
|
|
1487
1487
|
function U() {
|
|
1488
|
-
s.show || (
|
|
1488
|
+
s.show || (h.value = "", c.value = !0, Le(() => {
|
|
1489
1489
|
var b = document.getElementById(
|
|
1490
1490
|
`${s.field_name}search${m.value}`
|
|
1491
1491
|
);
|
|
@@ -1493,20 +1493,20 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1493
1493
|
}));
|
|
1494
1494
|
}
|
|
1495
1495
|
function se() {
|
|
1496
|
-
|
|
1496
|
+
h.value = "", n("selected", a.value), c.value = !1;
|
|
1497
1497
|
}
|
|
1498
|
-
return
|
|
1499
|
-
|
|
1500
|
-
}),
|
|
1501
|
-
te(a.value) && (i.value = a.value.map((
|
|
1502
|
-
}), (b,
|
|
1498
|
+
return H(h, () => {
|
|
1499
|
+
D.value.length === 0 && (a.value = []);
|
|
1500
|
+
}), H(a, (b) => {
|
|
1501
|
+
te(a.value) && (i.value = a.value.map((w) => w.id), n("update:modelValue", i.value));
|
|
1502
|
+
}), (b, w) => (d(), u(v, null, [
|
|
1503
1503
|
e.show ? (d(), u("div", {
|
|
1504
1504
|
key: 0,
|
|
1505
1505
|
class: p(e.field_name)
|
|
1506
1506
|
}, [
|
|
1507
|
-
t("h3", Ur,
|
|
1507
|
+
t("h3", Ur, f(e.label_name), 1),
|
|
1508
1508
|
t("p", Fr, [
|
|
1509
|
-
(d(!0), u(
|
|
1509
|
+
(d(!0), u(v, null, S(x.value, (k, E) => (d(), u("span", Rr, f(k == null ? void 0 : k.name), 1))), 256))
|
|
1510
1510
|
]),
|
|
1511
1511
|
qr
|
|
1512
1512
|
], 2)) : g("", !0),
|
|
@@ -1514,20 +1514,20 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1514
1514
|
key: 1,
|
|
1515
1515
|
class: p(e.field_name)
|
|
1516
1516
|
}, [
|
|
1517
|
-
(d(!0), u(
|
|
1517
|
+
(d(!0), u(v, null, S(i.value, (k, E) => (d(), u("input", {
|
|
1518
1518
|
type: "hidden",
|
|
1519
1519
|
name: e.field_name + "[]",
|
|
1520
1520
|
key: E,
|
|
1521
1521
|
value: k
|
|
1522
|
-
}, null, 8,
|
|
1523
|
-
e.options ? (d(), u("div",
|
|
1522
|
+
}, null, 8, Hr))), 128)),
|
|
1523
|
+
e.options ? (d(), u("div", zr, [
|
|
1524
1524
|
t("label", {
|
|
1525
1525
|
class: p({
|
|
1526
1526
|
"gl-label-form": e.error_message == "",
|
|
1527
1527
|
"gl-label-form-invalid": e.error_message !== "",
|
|
1528
1528
|
required: e.is_required
|
|
1529
1529
|
})
|
|
1530
|
-
},
|
|
1530
|
+
}, f(e.label_name), 3),
|
|
1531
1531
|
t("div", {
|
|
1532
1532
|
class: "inline-flex ml-2 rounded-md shadow-sm",
|
|
1533
1533
|
role: "group"
|
|
@@ -1547,15 +1547,15 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1547
1547
|
t("div", Kr, [
|
|
1548
1548
|
t("div", {
|
|
1549
1549
|
class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
|
|
1550
|
-
onClick:
|
|
1550
|
+
onClick: w[0] || (w[0] = (k) => U())
|
|
1551
1551
|
}, [
|
|
1552
|
-
(d(!0), u(
|
|
1552
|
+
(d(!0), u(v, null, S(x.value, (k, E) => (d(), u("span", {
|
|
1553
1553
|
key: E,
|
|
1554
1554
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded pointer-events-none dark:bg-blue-900 dark:text-blue-300"
|
|
1555
1555
|
}, [
|
|
1556
|
-
$(
|
|
1556
|
+
$(f(k == null ? void 0 : k.name) + " ", 1),
|
|
1557
1557
|
t("i", {
|
|
1558
|
-
onClick: F((
|
|
1558
|
+
onClick: F((De) => he(k), ["stop"]),
|
|
1559
1559
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
|
|
1560
1560
|
}, null, 8, Wr)
|
|
1561
1561
|
]))), 128))
|
|
@@ -1572,30 +1572,30 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1572
1572
|
es,
|
|
1573
1573
|
A(t("input", {
|
|
1574
1574
|
type: "search",
|
|
1575
|
-
"onUpdate:modelValue":
|
|
1575
|
+
"onUpdate:modelValue": w[1] || (w[1] = (k) => h.value = k),
|
|
1576
1576
|
ref: o.value,
|
|
1577
1577
|
id: `${e.field_name}search${m.value}`,
|
|
1578
|
-
onKeydown:
|
|
1579
|
-
onBlur:
|
|
1578
|
+
onKeydown: N,
|
|
1579
|
+
onBlur: w[2] || (w[2] = (k) => se()),
|
|
1580
1580
|
autocomplete: "off",
|
|
1581
1581
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
1582
1582
|
placeholder: "Search ..."
|
|
1583
1583
|
}, null, 40, ts), [
|
|
1584
|
-
[G,
|
|
1584
|
+
[G, h.value]
|
|
1585
1585
|
])
|
|
1586
1586
|
])
|
|
1587
1587
|
]),
|
|
1588
1588
|
t("div", rs, [
|
|
1589
|
-
(d(!0), u(
|
|
1589
|
+
(d(!0), u(v, null, S(D.value, (k, E) => (d(), u("div", {
|
|
1590
1590
|
class: p([
|
|
1591
1591
|
"block px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
1592
1592
|
E + 1 == l.value || ce(k.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
1593
1593
|
]),
|
|
1594
|
-
onClick: (
|
|
1595
|
-
onMousedown: (
|
|
1594
|
+
onClick: (De) => j(k),
|
|
1595
|
+
onMousedown: (De) => j(k),
|
|
1596
1596
|
key: E,
|
|
1597
1597
|
id: `${E + 1}${m.value}`
|
|
1598
|
-
},
|
|
1598
|
+
}, f(k.name || k.id || "-"), 43, ss))), 128))
|
|
1599
1599
|
])
|
|
1600
1600
|
], 512), [
|
|
1601
1601
|
[Q, c.value]
|
|
@@ -1702,12 +1702,12 @@ function os(e, r, s, n, o, a) {
|
|
|
1702
1702
|
key: 0,
|
|
1703
1703
|
class: p([s.icon, "text-base"])
|
|
1704
1704
|
}, null, 2)) : g("", !0),
|
|
1705
|
-
|
|
1705
|
+
M(e.$slots, "default")
|
|
1706
1706
|
]),
|
|
1707
1707
|
_: 3
|
|
1708
1708
|
}, 16, ["type", "disabled", "href", "class"]));
|
|
1709
1709
|
}
|
|
1710
|
-
const
|
|
1710
|
+
const wc = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold ptext-lg dark:text-white" }, is = ["name", "id"], ds = ["id"], us = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), cs = ["for"], gs = /* @__PURE__ */ t("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), fs = ["name", "id"], hs = ["required", "name", "id", "type"], ms = { class: "gl-span-form-error" }, bs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, kc = {
|
|
1711
1711
|
__name: "GlTextareaTranslate",
|
|
1712
1712
|
props: {
|
|
1713
1713
|
is_required: {
|
|
@@ -1776,12 +1776,12 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1776
1776
|
}).catch((l) => {
|
|
1777
1777
|
console.log(l);
|
|
1778
1778
|
});
|
|
1779
|
-
}), r({ focus: () => a.value.focus() }), (l, c) => (d(), u(
|
|
1779
|
+
}), r({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
1780
1780
|
e.show ? (d(), u("div", {
|
|
1781
1781
|
key: 0,
|
|
1782
1782
|
class: p(e.field_name)
|
|
1783
1783
|
}, [
|
|
1784
|
-
t("h3", ls,
|
|
1784
|
+
t("h3", ls, f(e.label_name), 1),
|
|
1785
1785
|
A(t("input", {
|
|
1786
1786
|
type: "hidden",
|
|
1787
1787
|
"data-i18n": "true",
|
|
@@ -1789,14 +1789,14 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1789
1789
|
id: e.field_name + "_i18n",
|
|
1790
1790
|
ref_key: "input_translate",
|
|
1791
1791
|
ref: i,
|
|
1792
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1792
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
1793
1793
|
}, null, 8, is), [
|
|
1794
1794
|
[G, l.inputTranslateValue]
|
|
1795
1795
|
]),
|
|
1796
1796
|
t("p", {
|
|
1797
1797
|
id: e.field_name,
|
|
1798
1798
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1799
|
-
},
|
|
1799
|
+
}, f(e.model_value), 9, ds),
|
|
1800
1800
|
us
|
|
1801
1801
|
], 2)) : g("", !0),
|
|
1802
1802
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -1810,7 +1810,7 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1810
1810
|
required: e.is_required
|
|
1811
1811
|
}),
|
|
1812
1812
|
for: e.field_name
|
|
1813
|
-
},
|
|
1813
|
+
}, f(e.label_name), 11, cs),
|
|
1814
1814
|
gs,
|
|
1815
1815
|
t("input", {
|
|
1816
1816
|
class: "mb-4",
|
|
@@ -1818,7 +1818,7 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1818
1818
|
"data-i18n": "true",
|
|
1819
1819
|
name: e.field_name + "_i18n",
|
|
1820
1820
|
id: e.field_name + "_i18n",
|
|
1821
|
-
onInput: c[1] || (c[1] = (
|
|
1821
|
+
onInput: c[1] || (c[1] = (h) => l.$emit("update:modelValueTranslate", h.target.value)),
|
|
1822
1822
|
ref_key: "input_translate",
|
|
1823
1823
|
ref: i
|
|
1824
1824
|
}, null, 40, fs),
|
|
@@ -1831,19 +1831,19 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1831
1831
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1832
1832
|
}),
|
|
1833
1833
|
type: e.type,
|
|
1834
|
-
onInput: c[2] || (c[2] = (
|
|
1835
|
-
onKeydown: c[3] || (c[3] = (
|
|
1834
|
+
onInput: c[2] || (c[2] = (h) => l.$emit("update:modelValue", h.target.value)),
|
|
1835
|
+
onKeydown: c[3] || (c[3] = (h) => l.$emit("keydown", h)),
|
|
1836
1836
|
ref_key: "input",
|
|
1837
1837
|
ref: a,
|
|
1838
1838
|
rows: "4"
|
|
1839
1839
|
}, `
|
|
1840
1840
|
`, 42, hs),
|
|
1841
|
-
t("span", ms,
|
|
1842
|
-
t("small", bs,
|
|
1841
|
+
t("span", ms, f(e.error_message), 1),
|
|
1842
|
+
t("small", bs, f(e.description), 1)
|
|
1843
1843
|
], 2))
|
|
1844
1844
|
], 64));
|
|
1845
1845
|
}
|
|
1846
|
-
}, ps = { class: "font-bold ptext-lg dark:text-white" }, ys = ["name", "id"], _s = ["id"], vs = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), xs = ["for"], ws = /* @__PURE__ */ t("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), ks = ["name", "id"], $s = ["name", "id", "type"], Cs = { class: "gl-span-form-error" }, Ss = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
1846
|
+
}, ps = { class: "font-bold ptext-lg dark:text-white" }, ys = ["name", "id"], _s = ["id"], vs = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), xs = ["for"], ws = /* @__PURE__ */ t("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), ks = ["name", "id"], $s = ["name", "id", "type"], Cs = { class: "gl-span-form-error" }, Ss = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, $c = {
|
|
1847
1847
|
__name: "GlTinymceTranslate",
|
|
1848
1848
|
props: {
|
|
1849
1849
|
is_required: {
|
|
@@ -1916,12 +1916,12 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1916
1916
|
}).catch((l) => {
|
|
1917
1917
|
console.log(l);
|
|
1918
1918
|
});
|
|
1919
|
-
}), r({ focus: () => a.value.focus() }), (l, c) => (d(), u(
|
|
1919
|
+
}), r({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
1920
1920
|
e.show ? (d(), u("div", {
|
|
1921
1921
|
key: 0,
|
|
1922
1922
|
class: p(e.field_name)
|
|
1923
1923
|
}, [
|
|
1924
|
-
t("h3", ps,
|
|
1924
|
+
t("h3", ps, f(e.label_name), 1),
|
|
1925
1925
|
A(t("input", {
|
|
1926
1926
|
type: "hidden",
|
|
1927
1927
|
"data-i18n": "true",
|
|
@@ -1929,14 +1929,14 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1929
1929
|
id: e.field_name + "_i18n",
|
|
1930
1930
|
ref_key: "input_translate",
|
|
1931
1931
|
ref: i,
|
|
1932
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1932
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
1933
1933
|
}, null, 8, ys), [
|
|
1934
1934
|
[G, l.inputTranslateValue]
|
|
1935
1935
|
]),
|
|
1936
1936
|
t("p", {
|
|
1937
1937
|
id: e.field_name,
|
|
1938
1938
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1939
|
-
},
|
|
1939
|
+
}, f(e.model_value), 9, _s),
|
|
1940
1940
|
vs
|
|
1941
1941
|
], 2)) : g("", !0),
|
|
1942
1942
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -1950,7 +1950,7 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1950
1950
|
required: e.is_required
|
|
1951
1951
|
}),
|
|
1952
1952
|
for: e.field_name
|
|
1953
|
-
},
|
|
1953
|
+
}, f(e.label_name), 11, xs),
|
|
1954
1954
|
ws,
|
|
1955
1955
|
t("input", {
|
|
1956
1956
|
class: "mb-4",
|
|
@@ -1958,7 +1958,7 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1958
1958
|
"data-i18n": "true",
|
|
1959
1959
|
name: e.field_name + "_i18n",
|
|
1960
1960
|
id: e.field_name + "_i18n",
|
|
1961
|
-
onInput: c[1] || (c[1] = (
|
|
1961
|
+
onInput: c[1] || (c[1] = (h) => l.$emit("update:modelValueTranslate", h.target.value)),
|
|
1962
1962
|
ref_key: "input_translate",
|
|
1963
1963
|
ref: i
|
|
1964
1964
|
}, null, 40, ks),
|
|
@@ -1970,19 +1970,19 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
1970
1970
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1971
1971
|
}]),
|
|
1972
1972
|
type: e.type,
|
|
1973
|
-
onInput: c[2] || (c[2] = (
|
|
1974
|
-
onKeydown: c[3] || (c[3] = (
|
|
1973
|
+
onInput: c[2] || (c[2] = (h) => l.$emit("update:modelValue", h.target.value)),
|
|
1974
|
+
onKeydown: c[3] || (c[3] = (h) => l.$emit("keydown", h)),
|
|
1975
1975
|
ref_key: "input",
|
|
1976
1976
|
ref: a,
|
|
1977
1977
|
rows: "4"
|
|
1978
1978
|
}, `
|
|
1979
1979
|
`, 42, $s),
|
|
1980
|
-
t("span", Cs,
|
|
1981
|
-
t("small", Ss,
|
|
1980
|
+
t("span", Cs, f(e.error_message), 1),
|
|
1981
|
+
t("small", Ss, f(e.description), 1)
|
|
1982
1982
|
], 2))
|
|
1983
1983
|
], 64));
|
|
1984
1984
|
}
|
|
1985
|
-
}, Ds = { class: "font-bold ptext-lg dark:text-white" }, Os = ["name", "id"], Ps = ["id"], As = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), js = ["for"], Es = /* @__PURE__ */ t("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),
|
|
1985
|
+
}, Ds = { class: "font-bold ptext-lg dark:text-white" }, Os = ["name", "id"], Ps = ["id"], As = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), js = ["for"], Es = /* @__PURE__ */ t("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), Ts = ["name", "id"], Ls = ["required", "name", "id", "type"], Ms = { class: "gl-span-form-error" }, Is = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Cc = {
|
|
1986
1986
|
__name: "GlTextTranslate",
|
|
1987
1987
|
props: {
|
|
1988
1988
|
is_required: {
|
|
@@ -2051,26 +2051,26 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
2051
2051
|
}).catch((l) => {
|
|
2052
2052
|
console.log(l);
|
|
2053
2053
|
});
|
|
2054
|
-
}), r({ focus: () => a.value.focus() }), (l, c) => (d(), u(
|
|
2054
|
+
}), r({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
2055
2055
|
e.show ? (d(), u("div", {
|
|
2056
2056
|
key: 0,
|
|
2057
2057
|
class: p(e.field_name)
|
|
2058
2058
|
}, [
|
|
2059
|
-
t("h3", Ds,
|
|
2059
|
+
t("h3", Ds, f(e.label_name), 1),
|
|
2060
2060
|
A(t("input", {
|
|
2061
2061
|
type: "hidden",
|
|
2062
2062
|
"data-i18n": "true",
|
|
2063
2063
|
name: e.field_name + "_i18n",
|
|
2064
2064
|
id: e.field_name + "_i18n",
|
|
2065
2065
|
ref: "input_translate_s",
|
|
2066
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2066
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
2067
2067
|
}, null, 8, Os), [
|
|
2068
2068
|
[G, l.inputTranslateValue]
|
|
2069
2069
|
]),
|
|
2070
2070
|
t("p", {
|
|
2071
2071
|
id: e.field_name,
|
|
2072
2072
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
2073
|
-
},
|
|
2073
|
+
}, f(e.model_value), 9, Ps),
|
|
2074
2074
|
As
|
|
2075
2075
|
], 2)) : g("", !0),
|
|
2076
2076
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -2084,7 +2084,7 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
2084
2084
|
required: e.is_required
|
|
2085
2085
|
}),
|
|
2086
2086
|
for: e.field_name
|
|
2087
|
-
},
|
|
2087
|
+
}, f(e.label_name), 11, js),
|
|
2088
2088
|
Es,
|
|
2089
2089
|
t("input", {
|
|
2090
2090
|
class: "mb-4",
|
|
@@ -2092,10 +2092,10 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
2092
2092
|
"data-i18n": "true",
|
|
2093
2093
|
name: e.field_name + "_i18n",
|
|
2094
2094
|
id: e.field_name + "_i18n",
|
|
2095
|
-
onInput: c[1] || (c[1] = (
|
|
2095
|
+
onInput: c[1] || (c[1] = (h) => l.$emit("update:modelValueTranslate", h.target.value)),
|
|
2096
2096
|
ref_key: "input_translate",
|
|
2097
2097
|
ref: i
|
|
2098
|
-
}, null, 40,
|
|
2098
|
+
}, null, 40, Ts),
|
|
2099
2099
|
t("input", {
|
|
2100
2100
|
required: e.is_required,
|
|
2101
2101
|
name: e.field_name,
|
|
@@ -2105,17 +2105,17 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
2105
2105
|
" gl-input-form-invalid form-input-translation mt-2 ": e.error_message !== ""
|
|
2106
2106
|
}),
|
|
2107
2107
|
type: e.type,
|
|
2108
|
-
onInput: c[2] || (c[2] = (
|
|
2109
|
-
onKeydown: c[3] || (c[3] = (
|
|
2108
|
+
onInput: c[2] || (c[2] = (h) => l.$emit("update:modelValue", h.target.value)),
|
|
2109
|
+
onKeydown: c[3] || (c[3] = (h) => l.$emit("keydown", h)),
|
|
2110
2110
|
ref_key: "input",
|
|
2111
2111
|
ref: a
|
|
2112
|
-
}, null, 42,
|
|
2113
|
-
t("span",
|
|
2114
|
-
t("small",
|
|
2112
|
+
}, null, 42, Ls),
|
|
2113
|
+
t("span", Ms, f(e.error_message), 1),
|
|
2114
|
+
t("small", Is, f(e.description), 1)
|
|
2115
2115
|
], 2))
|
|
2116
2116
|
], 64));
|
|
2117
2117
|
}
|
|
2118
|
-
}, Ns = { class: "font-bold ptext-lg dark:text-white" }, Vs = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Bs = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Gs = ["for"], Us = ["required", "name", "id", "type", "placeholder"], Fs = { class: "gl-span-form-error" }, Rs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2118
|
+
}, Ns = { class: "font-bold ptext-lg dark:text-white" }, Vs = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Bs = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Gs = ["for"], Us = ["required", "name", "id", "type", "placeholder"], Fs = { class: "gl-span-form-error" }, Rs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Sc = {
|
|
2119
2119
|
__name: "GlTextInput",
|
|
2120
2120
|
props: {
|
|
2121
2121
|
is_required: {
|
|
@@ -2165,7 +2165,7 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
2165
2165
|
q(() => {
|
|
2166
2166
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
2167
2167
|
});
|
|
2168
|
-
const i =
|
|
2168
|
+
const i = L({
|
|
2169
2169
|
get() {
|
|
2170
2170
|
return n.modelValue;
|
|
2171
2171
|
},
|
|
@@ -2173,13 +2173,13 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
2173
2173
|
o("update:modelValue", l);
|
|
2174
2174
|
}
|
|
2175
2175
|
});
|
|
2176
|
-
return r({ focus: () => a.value.focus() }), (l, c) => (d(), u(
|
|
2176
|
+
return r({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
2177
2177
|
e.show ? (d(), u("div", {
|
|
2178
2178
|
key: 0,
|
|
2179
2179
|
class: p(e.field_name)
|
|
2180
2180
|
}, [
|
|
2181
|
-
t("h3", Ns,
|
|
2182
|
-
t("p", Vs,
|
|
2181
|
+
t("h3", Ns, f(e.label_name), 1),
|
|
2182
|
+
t("p", Vs, f(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
2183
2183
|
Bs
|
|
2184
2184
|
], 2)) : g("", !0),
|
|
2185
2185
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -2193,7 +2193,7 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
2193
2193
|
required: e.is_required
|
|
2194
2194
|
}),
|
|
2195
2195
|
for: e.field_name
|
|
2196
|
-
},
|
|
2196
|
+
}, f(e.label_name), 11, Gs),
|
|
2197
2197
|
A(t("input", {
|
|
2198
2198
|
required: e.is_required,
|
|
2199
2199
|
name: e.field_name,
|
|
@@ -2203,34 +2203,34 @@ const ic = /* @__PURE__ */ O(as, [["render", os]]), ls = { class: "font-bold pte
|
|
|
2203
2203
|
"gl-input-form-invalid": e.error_message !== ""
|
|
2204
2204
|
}),
|
|
2205
2205
|
type: e.type,
|
|
2206
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2207
|
-
onKeydown: c[1] || (c[1] = (
|
|
2206
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.value = h),
|
|
2207
|
+
onKeydown: c[1] || (c[1] = (h) => l.$emit("keydown", h)),
|
|
2208
2208
|
ref_key: "input",
|
|
2209
2209
|
ref: a,
|
|
2210
2210
|
placeholder: e.placeholder
|
|
2211
2211
|
}, null, 42, Us), [
|
|
2212
|
-
[
|
|
2212
|
+
[at, i.value]
|
|
2213
2213
|
]),
|
|
2214
|
-
t("span", Fs,
|
|
2215
|
-
t("small", Rs,
|
|
2214
|
+
t("span", Fs, f(e.error_message), 1),
|
|
2215
|
+
t("small", Rs, f(e.description), 1)
|
|
2216
2216
|
], 2))
|
|
2217
2217
|
], 64));
|
|
2218
2218
|
}
|
|
2219
2219
|
}, qs = {
|
|
2220
2220
|
setup(e, { slots: r }) {
|
|
2221
2221
|
const s = C(r.default().map((o) => o.props)), n = C(s.value[0].title);
|
|
2222
|
-
return
|
|
2222
|
+
return Me("selectedTitle", n), {
|
|
2223
2223
|
tabs: s,
|
|
2224
2224
|
selectedTitle: n
|
|
2225
2225
|
};
|
|
2226
2226
|
}
|
|
2227
|
-
},
|
|
2227
|
+
}, Hs = { class: "flex flex-wrap" }, zs = { class: "w-full" }, Zs = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, Ks = ["onClick"], Ws = { 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" }, Ys = { class: "flex-auto px-4 py-5" }, Xs = { class: "tab-content tab-space" };
|
|
2228
2228
|
function Js(e, r, s, n, o, a) {
|
|
2229
|
-
return d(), u(
|
|
2230
|
-
t("div",
|
|
2231
|
-
t("div",
|
|
2229
|
+
return d(), u(v, null, [
|
|
2230
|
+
t("div", Hs, [
|
|
2231
|
+
t("div", zs, [
|
|
2232
2232
|
t("ul", Zs, [
|
|
2233
|
-
(d(!0), u(
|
|
2233
|
+
(d(!0), u(v, null, S(n.tabs, (i) => (d(), u("li", {
|
|
2234
2234
|
key: i.title,
|
|
2235
2235
|
onClick: (l) => n.selectedTitle = i.title,
|
|
2236
2236
|
class: "flex-auto -mb-px text-center"
|
|
@@ -2241,7 +2241,7 @@ function Js(e, r, s, n, o, a) {
|
|
|
2241
2241
|
t("i", {
|
|
2242
2242
|
class: p([i.icon, "mr-1 text-base"])
|
|
2243
2243
|
}, null, 2),
|
|
2244
|
-
$(" " +
|
|
2244
|
+
$(" " + f(i.title), 1)
|
|
2245
2245
|
], 2)
|
|
2246
2246
|
], 8, Ks))), 128))
|
|
2247
2247
|
])
|
|
@@ -2250,17 +2250,17 @@ function Js(e, r, s, n, o, a) {
|
|
|
2250
2250
|
t("div", Ws, [
|
|
2251
2251
|
t("div", Ys, [
|
|
2252
2252
|
t("div", Xs, [
|
|
2253
|
-
|
|
2253
|
+
M(e.$slots, "default")
|
|
2254
2254
|
])
|
|
2255
2255
|
])
|
|
2256
2256
|
])
|
|
2257
2257
|
], 64);
|
|
2258
2258
|
}
|
|
2259
|
-
const
|
|
2259
|
+
const Dc = /* @__PURE__ */ O(qs, [["render", Js]]), Qs = {
|
|
2260
2260
|
props: ["title"],
|
|
2261
2261
|
setup() {
|
|
2262
2262
|
return {
|
|
2263
|
-
selectedTitle:
|
|
2263
|
+
selectedTitle: xe("selectedTitle")
|
|
2264
2264
|
};
|
|
2265
2265
|
}
|
|
2266
2266
|
}, ea = {
|
|
@@ -2269,10 +2269,10 @@ const fc = /* @__PURE__ */ O(qs, [["render", Js]]), Qs = {
|
|
|
2269
2269
|
};
|
|
2270
2270
|
function ta(e, r, s, n, o, a) {
|
|
2271
2271
|
return s.title == n.selectedTitle ? (d(), u("div", ea, [
|
|
2272
|
-
|
|
2272
|
+
M(e.$slots, "default")
|
|
2273
2273
|
])) : g("", !0);
|
|
2274
2274
|
}
|
|
2275
|
-
const
|
|
2275
|
+
const Oc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
2276
2276
|
props: {
|
|
2277
2277
|
elements_to_show_prop: {
|
|
2278
2278
|
type: Number,
|
|
@@ -2334,7 +2334,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2334
2334
|
const s = (o) => {
|
|
2335
2335
|
r.style.cursor = "grabbing";
|
|
2336
2336
|
const a = (l) => {
|
|
2337
|
-
const c = l.clientX || l.touches && l.touches[0] && l.touches[0].clientX,
|
|
2337
|
+
const c = l.clientX || l.touches && l.touches[0] && l.touches[0].clientX, h = l.clientY || l.touches && l.touches[0] && l.touches[0].clientY, m = c - e.initialX, _ = h - e.initialY;
|
|
2338
2338
|
Math.abs(m) > Math.abs(_) ? (l.preventDefault(), Math.abs(m) >= 70 && (m < 0 ? e.next() : e.prev(), e.initialX = c)) : r.style.cursor = "grab", Math.abs(_) > Math.abs(m) && (r.style.cursor = "grab");
|
|
2339
2339
|
}, i = () => {
|
|
2340
2340
|
document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup", i), document.removeEventListener("touchend", i), r.style.cursor = "grab";
|
|
@@ -2371,7 +2371,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2371
2371
|
this.direction_property == "rtl" ? r.style.marginRight = -this.dotsNavigation[e - 1] + "px" : r.style.marginLeft = -this.dotsNavigation[e - 1] + "px", this.currentDot = e;
|
|
2372
2372
|
}
|
|
2373
2373
|
}
|
|
2374
|
-
},
|
|
2374
|
+
}, T = (e) => (nt("data-v-a94f16a9"), e = e(), ot(), e), sa = ["id"], aa = {
|
|
2375
2375
|
key: 0,
|
|
2376
2376
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2377
2377
|
}, na = { class: "w-full" }, oa = {
|
|
@@ -2382,7 +2382,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2382
2382
|
viewBox: "0 0 24 24",
|
|
2383
2383
|
stroke: "currentColor",
|
|
2384
2384
|
"stroke-width": "2"
|
|
2385
|
-
}, la = /* @__PURE__ */
|
|
2385
|
+
}, la = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2386
2386
|
"stroke-linecap": "round",
|
|
2387
2387
|
"stroke-linejoin": "round",
|
|
2388
2388
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
@@ -2396,7 +2396,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2396
2396
|
viewBox: "0 0 24 24",
|
|
2397
2397
|
stroke: "currentColor",
|
|
2398
2398
|
"stroke-width": "2"
|
|
2399
|
-
}, ua = /* @__PURE__ */
|
|
2399
|
+
}, ua = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2400
2400
|
"stroke-linecap": "round",
|
|
2401
2401
|
"stroke-linejoin": "round",
|
|
2402
2402
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
@@ -2410,7 +2410,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2410
2410
|
viewBox: "0 0 24 24",
|
|
2411
2411
|
stroke: "currentColor",
|
|
2412
2412
|
"stroke-width": "2"
|
|
2413
|
-
}, ba = /* @__PURE__ */
|
|
2413
|
+
}, ba = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2414
2414
|
"stroke-linecap": "round",
|
|
2415
2415
|
"stroke-linejoin": "round",
|
|
2416
2416
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
@@ -2424,7 +2424,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2424
2424
|
viewBox: "0 0 24 24",
|
|
2425
2425
|
stroke: "currentColor",
|
|
2426
2426
|
"stroke-width": "2"
|
|
2427
|
-
}, _a = /* @__PURE__ */
|
|
2427
|
+
}, _a = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2428
2428
|
"stroke-linecap": "round",
|
|
2429
2429
|
"stroke-linejoin": "round",
|
|
2430
2430
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
@@ -2438,7 +2438,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2438
2438
|
viewBox: "0 0 24 24",
|
|
2439
2439
|
stroke: "currentColor",
|
|
2440
2440
|
"stroke-width": "2"
|
|
2441
|
-
}, ka = /* @__PURE__ */
|
|
2441
|
+
}, ka = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2442
2442
|
"stroke-linecap": "round",
|
|
2443
2443
|
"stroke-linejoin": "round",
|
|
2444
2444
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
@@ -2452,23 +2452,23 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2452
2452
|
viewBox: "0 0 24 24",
|
|
2453
2453
|
stroke: "currentColor",
|
|
2454
2454
|
"stroke-width": "2"
|
|
2455
|
-
}, Sa = /* @__PURE__ */
|
|
2455
|
+
}, Sa = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2456
2456
|
"stroke-linecap": "round",
|
|
2457
2457
|
"stroke-linejoin": "round",
|
|
2458
2458
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2459
2459
|
}, null, -1)), Da = [
|
|
2460
2460
|
Sa
|
|
2461
|
-
], Oa = ["onClick"], Pa = /* @__PURE__ */
|
|
2461
|
+
], Oa = ["onClick"], Pa = /* @__PURE__ */ T(() => /* @__PURE__ */ t("span", null, null, -1)), Aa = [
|
|
2462
2462
|
Pa
|
|
2463
2463
|
], ja = {
|
|
2464
2464
|
key: 1,
|
|
2465
2465
|
class: "flex justify-between pl-5 pr-5"
|
|
2466
|
-
}, Ea = ["onClick"],
|
|
2467
|
-
|
|
2468
|
-
],
|
|
2466
|
+
}, Ea = ["onClick"], Ta = /* @__PURE__ */ T(() => /* @__PURE__ */ t("span", null, null, -1)), La = [
|
|
2467
|
+
Ta
|
|
2468
|
+
], Ma = {
|
|
2469
2469
|
key: 0,
|
|
2470
2470
|
class: "flex"
|
|
2471
|
-
},
|
|
2471
|
+
}, Ia = { class: "flex items-center" }, Na = { class: "w-full" }, Va = {
|
|
2472
2472
|
key: 0,
|
|
2473
2473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2474
2474
|
class: "w-6 h-6",
|
|
@@ -2476,7 +2476,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2476
2476
|
viewBox: "0 0 24 24",
|
|
2477
2477
|
stroke: "currentColor",
|
|
2478
2478
|
"stroke-width": "2"
|
|
2479
|
-
}, Ba = /* @__PURE__ */
|
|
2479
|
+
}, Ba = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2480
2480
|
"stroke-linecap": "round",
|
|
2481
2481
|
"stroke-linejoin": "round",
|
|
2482
2482
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
@@ -2490,13 +2490,13 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2490
2490
|
viewBox: "0 0 24 24",
|
|
2491
2491
|
stroke: "currentColor",
|
|
2492
2492
|
"stroke-width": "2"
|
|
2493
|
-
}, Fa = /* @__PURE__ */
|
|
2493
|
+
}, Fa = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2494
2494
|
"stroke-linecap": "round",
|
|
2495
2495
|
"stroke-linejoin": "round",
|
|
2496
2496
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2497
2497
|
}, null, -1)), Ra = [
|
|
2498
2498
|
Fa
|
|
2499
|
-
], qa = { class: "flex items-center" },
|
|
2499
|
+
], qa = { class: "flex items-center" }, Ha = { class: "w-full" }, za = {
|
|
2500
2500
|
key: 0,
|
|
2501
2501
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2502
2502
|
class: "w-6 h-6",
|
|
@@ -2504,7 +2504,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2504
2504
|
viewBox: "0 0 24 24",
|
|
2505
2505
|
stroke: "currentColor",
|
|
2506
2506
|
"stroke-width": "2"
|
|
2507
|
-
}, Za = /* @__PURE__ */
|
|
2507
|
+
}, Za = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2508
2508
|
"stroke-linecap": "round",
|
|
2509
2509
|
"stroke-linejoin": "round",
|
|
2510
2510
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
@@ -2518,7 +2518,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2518
2518
|
viewBox: "0 0 24 24",
|
|
2519
2519
|
stroke: "currentColor",
|
|
2520
2520
|
"stroke-width": "2"
|
|
2521
|
-
}, Ya = /* @__PURE__ */
|
|
2521
|
+
}, Ya = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2522
2522
|
"stroke-linecap": "round",
|
|
2523
2523
|
"stroke-linejoin": "round",
|
|
2524
2524
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
@@ -2535,7 +2535,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2535
2535
|
viewBox: "0 0 24 24",
|
|
2536
2536
|
stroke: "currentColor",
|
|
2537
2537
|
"stroke-width": "2"
|
|
2538
|
-
}, tn = /* @__PURE__ */
|
|
2538
|
+
}, tn = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2539
2539
|
"stroke-linecap": "round",
|
|
2540
2540
|
"stroke-linejoin": "round",
|
|
2541
2541
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
@@ -2549,7 +2549,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2549
2549
|
viewBox: "0 0 24 24",
|
|
2550
2550
|
stroke: "currentColor",
|
|
2551
2551
|
"stroke-width": "2"
|
|
2552
|
-
}, an = /* @__PURE__ */
|
|
2552
|
+
}, an = /* @__PURE__ */ T(() => /* @__PURE__ */ t("path", {
|
|
2553
2553
|
"stroke-linecap": "round",
|
|
2554
2554
|
"stroke-linejoin": "round",
|
|
2555
2555
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
@@ -2595,7 +2595,7 @@ function on(e, r, s, n, o, a) {
|
|
|
2595
2595
|
])
|
|
2596
2596
|
])
|
|
2597
2597
|
], 2)) : g("", !0),
|
|
2598
|
-
|
|
2598
|
+
M(e.$slots, "default", {}, void 0, !0),
|
|
2599
2599
|
e.dotsNum > 0 && !s.hide_arrow && s.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2600
2600
|
key: 1,
|
|
2601
2601
|
class: p(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", s.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
@@ -2615,7 +2615,7 @@ function on(e, r, s, n, o, a) {
|
|
|
2615
2615
|
key: 0,
|
|
2616
2616
|
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2617
2617
|
}, [
|
|
2618
|
-
(d(!0), u(
|
|
2618
|
+
(d(!0), u(v, null, S(e.dotsNum, (i) => (d(), u("button", {
|
|
2619
2619
|
role: "button",
|
|
2620
2620
|
class: p(["gl-dot", { active: e.currentDot == i }]),
|
|
2621
2621
|
key: i,
|
|
@@ -2626,15 +2626,15 @@ function on(e, r, s, n, o, a) {
|
|
|
2626
2626
|
t("div", {
|
|
2627
2627
|
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2628
2628
|
}, [
|
|
2629
|
-
(d(!0), u(
|
|
2629
|
+
(d(!0), u(v, null, S(e.dotsNum, (i) => (d(), u("button", {
|
|
2630
2630
|
role: "button",
|
|
2631
2631
|
class: p(["gl-dot", { active: e.currentDot == i }]),
|
|
2632
2632
|
key: i,
|
|
2633
2633
|
onClick: (l) => a.setDot(i)
|
|
2634
|
-
},
|
|
2634
|
+
}, La, 10, Ea))), 128))
|
|
2635
2635
|
], 2),
|
|
2636
|
-
e.dotsNum > 0 ? (d(), u("div",
|
|
2637
|
-
t("div",
|
|
2636
|
+
e.dotsNum > 0 ? (d(), u("div", Ma, [
|
|
2637
|
+
t("div", Ia, [
|
|
2638
2638
|
t("div", Na, [
|
|
2639
2639
|
t("button", {
|
|
2640
2640
|
class: p(["p-3 rounded-full arrow_button_styles", s.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
@@ -2646,12 +2646,12 @@ function on(e, r, s, n, o, a) {
|
|
|
2646
2646
|
])
|
|
2647
2647
|
]),
|
|
2648
2648
|
t("div", qa, [
|
|
2649
|
-
t("div",
|
|
2649
|
+
t("div", Ha, [
|
|
2650
2650
|
t("button", {
|
|
2651
2651
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2652
2652
|
onClick: r[4] || (r[4] = (i) => a.next())
|
|
2653
2653
|
}, [
|
|
2654
|
-
s.direction_property == "ltr" ? (d(), u("svg",
|
|
2654
|
+
s.direction_property == "ltr" ? (d(), u("svg", za, Ka)) : g("", !0),
|
|
2655
2655
|
s.direction_property == "rtl" ? (d(), u("svg", Wa, Xa)) : g("", !0)
|
|
2656
2656
|
])
|
|
2657
2657
|
])
|
|
@@ -2673,7 +2673,7 @@ function on(e, r, s, n, o, a) {
|
|
|
2673
2673
|
], 10, sa)
|
|
2674
2674
|
]);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2676
|
+
const Pc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9"]]), ln = {
|
|
2677
2677
|
class: "fixed left-0 top-13 z-[1055] h-full w-full overflow-y-auto overflow-x-hidden outline-none inset-0 bg-black bg-opacity-80",
|
|
2678
2678
|
tabindex: "-1",
|
|
2679
2679
|
"aria-hidden": "true"
|
|
@@ -2693,7 +2693,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2693
2693
|
])
|
|
2694
2694
|
], -1), fn = [
|
|
2695
2695
|
gn
|
|
2696
|
-
], hn = { 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" },
|
|
2696
|
+
], hn = { 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" }, Ac = {
|
|
2697
2697
|
__name: "GlModal",
|
|
2698
2698
|
props: {
|
|
2699
2699
|
is_open: {
|
|
@@ -2722,7 +2722,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2722
2722
|
}, i = () => {
|
|
2723
2723
|
n("closeModal"), a();
|
|
2724
2724
|
};
|
|
2725
|
-
return
|
|
2725
|
+
return H(
|
|
2726
2726
|
() => s.is_open,
|
|
2727
2727
|
(l, c) => {
|
|
2728
2728
|
l ? o() : a();
|
|
@@ -2734,7 +2734,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2734
2734
|
}, [
|
|
2735
2735
|
t("div", dn, [
|
|
2736
2736
|
t("div", un, [
|
|
2737
|
-
t("h5", cn,
|
|
2737
|
+
t("h5", cn, f(e.title), 1),
|
|
2738
2738
|
t("button", {
|
|
2739
2739
|
type: "button",
|
|
2740
2740
|
class: "box-content border-none rounded-none text-neutral-500 hover:text-neutral-800 hover:no-underline focus:text-neutral-800 focus:opacity-100 focus:shadow-none focus:outline-none dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
|
|
@@ -2745,10 +2745,10 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2745
2745
|
t("div", {
|
|
2746
2746
|
class: p(["relative overflow-y-auto", e.bodyClass])
|
|
2747
2747
|
}, [
|
|
2748
|
-
|
|
2748
|
+
M(l.$slots, "body")
|
|
2749
2749
|
], 2),
|
|
2750
2750
|
t("div", hn, [
|
|
2751
|
-
|
|
2751
|
+
M(l.$slots, "buttons"),
|
|
2752
2752
|
t("button", {
|
|
2753
2753
|
onClick: i,
|
|
2754
2754
|
type: "button",
|
|
@@ -2764,7 +2764,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2764
2764
|
}, mn = { class: "flex justify-between p-2 -mb-px border border-gray-300 no-underlin" }, bn = { class: "relative inline-flex items-center cursor-pointer" }, pn = ["name", "id", "checked"], yn = /* @__PURE__ */ t("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), _n = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), vn = {
|
|
2765
2765
|
key: 0,
|
|
2766
2766
|
class: "flex justify-between items-center"
|
|
2767
|
-
}, xn = { class: "gl-label-form" }, wn = { class: "flex justify-between p-2 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, kn = { class: "relative inline-flex items-center cursor-pointer" }, $n = ["name", "id"], Cn = /* @__PURE__ */ t("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), Sn = { class: "gl-span-form-error" }, Dn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2767
|
+
}, xn = { class: "gl-label-form" }, wn = { class: "flex justify-between p-2 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, kn = { class: "relative inline-flex items-center cursor-pointer" }, $n = ["name", "id"], Cn = /* @__PURE__ */ t("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), Sn = { class: "gl-span-form-error" }, Dn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, jc = {
|
|
2768
2768
|
__name: "GlToggleBox",
|
|
2769
2769
|
props: {
|
|
2770
2770
|
is_required: {
|
|
@@ -2810,7 +2810,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2810
2810
|
},
|
|
2811
2811
|
emits: ["update:modelValue"],
|
|
2812
2812
|
setup(e, { emit: r }) {
|
|
2813
|
-
const s = e, n = r, o = C(null), a =
|
|
2813
|
+
const s = e, n = r, o = C(null), a = L({
|
|
2814
2814
|
get() {
|
|
2815
2815
|
return s.modelValue;
|
|
2816
2816
|
},
|
|
@@ -2818,14 +2818,14 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2818
2818
|
n("update:modelValue", i);
|
|
2819
2819
|
}
|
|
2820
2820
|
});
|
|
2821
|
-
return (i, l) => (d(), u(
|
|
2821
|
+
return (i, l) => (d(), u(v, null, [
|
|
2822
2822
|
e.show ? (d(), u("div", {
|
|
2823
2823
|
key: 0,
|
|
2824
2824
|
class: p(e.field_name)
|
|
2825
2825
|
}, [
|
|
2826
2826
|
t("div", null, [
|
|
2827
2827
|
t("li", mn, [
|
|
2828
|
-
$(
|
|
2828
|
+
$(f(e.label_name) + " ", 1),
|
|
2829
2829
|
t("label", bn, [
|
|
2830
2830
|
t("input", {
|
|
2831
2831
|
type: "checkbox",
|
|
@@ -2850,10 +2850,10 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2850
2850
|
class: p(e.field_name)
|
|
2851
2851
|
}, [
|
|
2852
2852
|
e.has_label_up ? (d(), u("div", vn, [
|
|
2853
|
-
t("label", xn,
|
|
2853
|
+
t("label", xn, f(e.label_name), 1)
|
|
2854
2854
|
])) : g("", !0),
|
|
2855
2855
|
t("li", wn, [
|
|
2856
|
-
$(
|
|
2856
|
+
$(f(e.label_name) + " ", 1),
|
|
2857
2857
|
t("label", kn, [
|
|
2858
2858
|
A(t("input", {
|
|
2859
2859
|
type: "checkbox",
|
|
@@ -2871,15 +2871,15 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2871
2871
|
Cn
|
|
2872
2872
|
])
|
|
2873
2873
|
]),
|
|
2874
|
-
t("span", Sn,
|
|
2875
|
-
t("small", Dn,
|
|
2874
|
+
t("span", Sn, f(e.error_message), 1),
|
|
2875
|
+
t("small", Dn, f(e.description), 1)
|
|
2876
2876
|
], 2))
|
|
2877
2877
|
], 64));
|
|
2878
2878
|
}
|
|
2879
|
-
}, On = { class: "font-bold ptext-lg dark:text-white" }, Pn = { class: "mt-3 mb-4" }, An = { 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" }, jn = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), En = ["name", "id", "value"],
|
|
2879
|
+
}, On = { class: "font-bold ptext-lg dark:text-white" }, Pn = { class: "mt-3 mb-4" }, An = { 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" }, jn = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), En = ["name", "id", "value"], Tn = {
|
|
2880
2880
|
key: 0,
|
|
2881
2881
|
class: "dropdown"
|
|
2882
|
-
},
|
|
2882
|
+
}, Ln = { class: "focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, Mn = { class: "relative showOptions" }, In = ["value", "placeholder"], Nn = { class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l absolute w-full z-[999999999]" }, Vn = { class: "p-1" }, Bn = /* @__PURE__ */ t("label", {
|
|
2883
2883
|
for: "default-search",
|
|
2884
2884
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
2885
2885
|
}, "Search", -1), Gn = { class: "relative" }, Un = /* @__PURE__ */ t("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
@@ -2898,7 +2898,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2898
2898
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
2899
2899
|
})
|
|
2900
2900
|
])
|
|
2901
|
-
], -1), Fn = ["id"], Rn = { class: "overflow-y-auto max-h-64" }, qn = ["onClick", "onMousedown", "id"],
|
|
2901
|
+
], -1), Fn = ["id"], Rn = { class: "overflow-y-auto max-h-64" }, qn = ["onClick", "onMousedown", "id"], Hn = { class: "flex items-center py-2 pl-10 pr-4" }, zn = {
|
|
2902
2902
|
key: 0,
|
|
2903
2903
|
class: "absolute flex items-center flex-shrink-0 w-4 h-4 text-green-500 left-2 dark:text-green-400",
|
|
2904
2904
|
"aria-hidden": "true",
|
|
@@ -2913,7 +2913,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2913
2913
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
2914
2914
|
}, null, -1), Kn = [
|
|
2915
2915
|
Zn
|
|
2916
|
-
], Wn = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Yn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2916
|
+
], Wn = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Yn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Ec = {
|
|
2917
2917
|
__name: "GlDropdown",
|
|
2918
2918
|
props: {
|
|
2919
2919
|
modelValue: {
|
|
@@ -2973,15 +2973,15 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2973
2973
|
},
|
|
2974
2974
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2975
2975
|
setup(e, { emit: r }) {
|
|
2976
|
-
const s = e, n = r, o = C(null), a = C({}), i = C(0), l = C(!1), c = C(""),
|
|
2976
|
+
const s = e, n = r, o = C(null), a = C({}), i = C(0), l = C(!1), c = C(""), h = C("");
|
|
2977
2977
|
q(() => {
|
|
2978
|
-
|
|
2978
|
+
h.value = N(), s.show || (document.body.addEventListener("click", (y) => {
|
|
2979
2979
|
te(y);
|
|
2980
2980
|
}), document.addEventListener("keypress", (y) => {
|
|
2981
2981
|
y.key === "Enter" && y.target.form && y.preventDefault();
|
|
2982
2982
|
}));
|
|
2983
2983
|
});
|
|
2984
|
-
const m =
|
|
2984
|
+
const m = L(() => fe()), _ = L(() => he()), x = L(() => {
|
|
2985
2985
|
const y = [], P = new RegExp(c.value, "ig");
|
|
2986
2986
|
for (const j of m.value) {
|
|
2987
2987
|
const U = String(j.name);
|
|
@@ -2989,7 +2989,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
2989
2989
|
}
|
|
2990
2990
|
return y;
|
|
2991
2991
|
});
|
|
2992
|
-
function
|
|
2992
|
+
function D(y) {
|
|
2993
2993
|
if ([
|
|
2994
2994
|
"ArrowLeft",
|
|
2995
2995
|
"ArrowUp",
|
|
@@ -3002,7 +3002,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3002
3002
|
ge(y.key);
|
|
3003
3003
|
}
|
|
3004
3004
|
}
|
|
3005
|
-
function
|
|
3005
|
+
function N() {
|
|
3006
3006
|
let y = (/* @__PURE__ */ new Date()).getTime();
|
|
3007
3007
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
3008
3008
|
/[xy]/g,
|
|
@@ -3016,18 +3016,18 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3016
3016
|
return y !== null && typeof y == "object" && Object.keys(y).length > 0;
|
|
3017
3017
|
}
|
|
3018
3018
|
function te(y) {
|
|
3019
|
-
y.target.id != s.field_name + "search" +
|
|
3019
|
+
y.target.id != s.field_name + "search" + h.value && y.target.id != s.field_name && !y.target.classList.contains("showOptions") && (oe(), i.value = 0);
|
|
3020
3020
|
}
|
|
3021
3021
|
function re(y) {
|
|
3022
|
-
const P = `${y}${
|
|
3022
|
+
const P = `${y}${h.value}`, j = document.getElementById(P);
|
|
3023
3023
|
j && j.scrollIntoView();
|
|
3024
3024
|
}
|
|
3025
3025
|
function ce(y) {
|
|
3026
|
-
const P = `${y}${
|
|
3026
|
+
const P = `${y}${h.value}`, j = document.getElementById(P);
|
|
3027
3027
|
j && j.click();
|
|
3028
3028
|
}
|
|
3029
3029
|
function ge(y) {
|
|
3030
|
-
y === "ArrowDown" && i.value <
|
|
3030
|
+
y === "ArrowDown" && i.value < x.value.length && (i.value++, re(i.value)), y === "ArrowUp" && i.value > 1 && (i.value--, re(i.value)), y === "Enter" && ce(i.value);
|
|
3031
3031
|
}
|
|
3032
3032
|
function fe() {
|
|
3033
3033
|
return s.options.map((y, P) => typeof y == "object" ? y : { id: y, name: y });
|
|
@@ -3050,9 +3050,9 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3050
3050
|
a.value = y, l.value = !1, n("update:modelValue", a.value.id), n("selected", a.value), n("selectionChanged", a.value);
|
|
3051
3051
|
}
|
|
3052
3052
|
function Y() {
|
|
3053
|
-
s.show || (c.value = "", l.value = !0,
|
|
3053
|
+
s.show || (c.value = "", l.value = !0, Le(() => {
|
|
3054
3054
|
var y = document.getElementById(
|
|
3055
|
-
`${s.field_name}search${
|
|
3055
|
+
`${s.field_name}search${h.value}`
|
|
3056
3056
|
);
|
|
3057
3057
|
y && y.focus();
|
|
3058
3058
|
}));
|
|
@@ -3063,20 +3063,20 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3063
3063
|
function oe() {
|
|
3064
3064
|
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), l.value = !1;
|
|
3065
3065
|
}
|
|
3066
|
-
return
|
|
3067
|
-
|
|
3068
|
-
}),
|
|
3066
|
+
return H(c, () => {
|
|
3067
|
+
x.value.length === 0 && (a.value = {});
|
|
3068
|
+
}), H(a, (y) => {
|
|
3069
3069
|
ee(y) && n("update:modelValue", y.id);
|
|
3070
3070
|
}), (y, P) => {
|
|
3071
3071
|
var j, U, se;
|
|
3072
|
-
return d(), u(
|
|
3072
|
+
return d(), u(v, null, [
|
|
3073
3073
|
e.show ? (d(), u("div", {
|
|
3074
3074
|
key: 0,
|
|
3075
3075
|
class: p(e.field_name)
|
|
3076
3076
|
}, [
|
|
3077
|
-
t("h3", On,
|
|
3077
|
+
t("h3", On, f(e.label_name), 1),
|
|
3078
3078
|
t("p", Pn, [
|
|
3079
|
-
t("span", An,
|
|
3079
|
+
t("span", An, f((j = _.value) == null ? void 0 : j.name), 1)
|
|
3080
3080
|
]),
|
|
3081
3081
|
jn
|
|
3082
3082
|
], 2)) : g("", !0),
|
|
@@ -3090,7 +3090,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3090
3090
|
id: e.field_name,
|
|
3091
3091
|
value: (U = _.value) == null ? void 0 : U.id
|
|
3092
3092
|
}, null, 8, En),
|
|
3093
|
-
e.options ? (d(), u("div",
|
|
3093
|
+
e.options ? (d(), u("div", Tn, [
|
|
3094
3094
|
e.label_name ? (d(), u("label", {
|
|
3095
3095
|
key: 0,
|
|
3096
3096
|
class: p({
|
|
@@ -3098,9 +3098,9 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3098
3098
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3099
3099
|
required: e.is_required
|
|
3100
3100
|
})
|
|
3101
|
-
},
|
|
3102
|
-
t("div",
|
|
3103
|
-
t("div",
|
|
3101
|
+
}, f(e.label_name), 3)) : g("", !0),
|
|
3102
|
+
t("div", Ln, [
|
|
3103
|
+
t("div", Mn, [
|
|
3104
3104
|
t("input", {
|
|
3105
3105
|
class: p([{
|
|
3106
3106
|
"gl-input-form": e.error_message == "",
|
|
@@ -3112,7 +3112,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3112
3112
|
placeholder: e.placeholder,
|
|
3113
3113
|
autocomplete: "off",
|
|
3114
3114
|
readonly: ""
|
|
3115
|
-
}, null, 10,
|
|
3115
|
+
}, null, 10, In),
|
|
3116
3116
|
A(t("i", {
|
|
3117
3117
|
onClick: P[1] || (P[1] = F((b) => me(), ["stop"])),
|
|
3118
3118
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
@@ -3135,8 +3135,8 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3135
3135
|
type: "search",
|
|
3136
3136
|
"onUpdate:modelValue": P[3] || (P[3] = (b) => c.value = b),
|
|
3137
3137
|
ref: o.value,
|
|
3138
|
-
id: `${e.field_name}search${
|
|
3139
|
-
onKeydown:
|
|
3138
|
+
id: `${e.field_name}search${h.value}`,
|
|
3139
|
+
onKeydown: D,
|
|
3140
3140
|
onBlur: P[4] || (P[4] = (b) => oe()),
|
|
3141
3141
|
autocomplete: "off",
|
|
3142
3142
|
class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-frontend ps-10 bg-gray-50 focus:border-frontend dark:bg-gray-700 dark:border-frontenddark dark:placeholder-frontenddark dark:text-white dark:focus:border-frontenddark",
|
|
@@ -3147,18 +3147,18 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3147
3147
|
])
|
|
3148
3148
|
]),
|
|
3149
3149
|
t("div", Rn, [
|
|
3150
|
-
(d(!0), u(
|
|
3150
|
+
(d(!0), u(v, null, S(x.value, (b, w) => {
|
|
3151
3151
|
var k;
|
|
3152
3152
|
return d(), u("div", {
|
|
3153
|
-
class: p(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
3153
|
+
class: p(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", w + 1 == i.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3154
3154
|
onClick: (E) => ne(b),
|
|
3155
3155
|
onMousedown: (E) => ne(b),
|
|
3156
|
-
key:
|
|
3157
|
-
id: `${
|
|
3156
|
+
key: w,
|
|
3157
|
+
id: `${w + 1}${h.value}`
|
|
3158
3158
|
}, [
|
|
3159
|
-
t("div",
|
|
3160
|
-
((k = _.value) == null ? void 0 : k.id) === b.id ? (d(), u("svg",
|
|
3161
|
-
t("span", null,
|
|
3159
|
+
t("div", Hn, [
|
|
3160
|
+
((k = _.value) == null ? void 0 : k.id) === b.id ? (d(), u("svg", zn, Kn)) : g("", !0),
|
|
3161
|
+
t("span", null, f(b.name || b.id || "-"), 1)
|
|
3162
3162
|
])
|
|
3163
3163
|
], 42, qn);
|
|
3164
3164
|
}), 128))
|
|
@@ -3168,13 +3168,13 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3168
3168
|
])
|
|
3169
3169
|
])
|
|
3170
3170
|
])) : g("", !0),
|
|
3171
|
-
t("span", Wn,
|
|
3172
|
-
t("small", Yn,
|
|
3171
|
+
t("span", Wn, f(e.error_message), 1),
|
|
3172
|
+
t("small", Yn, f(e.description), 1)
|
|
3173
3173
|
], 2))
|
|
3174
3174
|
], 64);
|
|
3175
3175
|
};
|
|
3176
3176
|
}
|
|
3177
|
-
}, Xn = { class: "font-bold ptext-lg dark:text-white" }, Jn = ["id"], Qn = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), eo = ["for"], to = ["required", "name", "id", "type", "placeholder"], ro = { class: "gl-span-form-error" }, so = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
3177
|
+
}, Xn = { class: "font-bold ptext-lg dark:text-white" }, Jn = ["id"], Qn = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), eo = ["for"], to = ["required", "name", "id", "type", "placeholder"], ro = { class: "gl-span-form-error" }, so = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Tc = {
|
|
3178
3178
|
__name: "GlTextarea",
|
|
3179
3179
|
props: {
|
|
3180
3180
|
is_required: {
|
|
@@ -3224,7 +3224,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3224
3224
|
q(() => {
|
|
3225
3225
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
3226
3226
|
});
|
|
3227
|
-
const i =
|
|
3227
|
+
const i = L({
|
|
3228
3228
|
get() {
|
|
3229
3229
|
return n.modelValue;
|
|
3230
3230
|
},
|
|
@@ -3232,16 +3232,16 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3232
3232
|
o("update:modelValue", l);
|
|
3233
3233
|
}
|
|
3234
3234
|
});
|
|
3235
|
-
return r({ focus: () => a.value.focus() }), (l, c) => (d(), u(
|
|
3235
|
+
return r({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
3236
3236
|
e.show ? (d(), u("div", {
|
|
3237
3237
|
key: 0,
|
|
3238
3238
|
class: p(e.field_name)
|
|
3239
3239
|
}, [
|
|
3240
|
-
t("h3", Xn,
|
|
3240
|
+
t("h3", Xn, f(e.label_name), 1),
|
|
3241
3241
|
t("p", {
|
|
3242
3242
|
id: e.field_name,
|
|
3243
3243
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
3244
|
-
},
|
|
3244
|
+
}, f(e.model_value), 9, Jn),
|
|
3245
3245
|
Qn
|
|
3246
3246
|
], 2)) : g("", !0),
|
|
3247
3247
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -3255,7 +3255,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3255
3255
|
required: e.is_required
|
|
3256
3256
|
}),
|
|
3257
3257
|
for: e.field_name
|
|
3258
|
-
},
|
|
3258
|
+
}, f(e.label_name), 11, eo),
|
|
3259
3259
|
A(t("textarea", {
|
|
3260
3260
|
required: e.is_required,
|
|
3261
3261
|
name: e.field_name,
|
|
@@ -3265,8 +3265,8 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3265
3265
|
" gl-textarea-form-invalid mt-4 ": e.error_message !== ""
|
|
3266
3266
|
}),
|
|
3267
3267
|
type: e.type,
|
|
3268
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
3269
|
-
onKeydown: c[1] || (c[1] = (
|
|
3268
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.value = h),
|
|
3269
|
+
onKeydown: c[1] || (c[1] = (h) => l.$emit("keydown", h)),
|
|
3270
3270
|
ref_key: "input",
|
|
3271
3271
|
ref: a,
|
|
3272
3272
|
rows: "4",
|
|
@@ -3274,8 +3274,8 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3274
3274
|
}, null, 42, to), [
|
|
3275
3275
|
[G, i.value]
|
|
3276
3276
|
]),
|
|
3277
|
-
t("span", ro,
|
|
3278
|
-
t("small", so,
|
|
3277
|
+
t("span", ro, f(e.error_message), 1),
|
|
3278
|
+
t("small", so, f(e.description), 1)
|
|
3279
3279
|
], 2))
|
|
3280
3280
|
], 64));
|
|
3281
3281
|
}
|
|
@@ -3333,8 +3333,8 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3333
3333
|
return this.lastPage;
|
|
3334
3334
|
for (var e = this.currentPage, r = this.lastPage, s = this.limit, n = e - s, o = e + s + 1, a = [], i = [], l, c = 1; c <= r; c++)
|
|
3335
3335
|
(c === 1 || c === r || c >= n && c < o) && a.push(c);
|
|
3336
|
-
return a.forEach(function(
|
|
3337
|
-
l && (
|
|
3336
|
+
return a.forEach(function(h) {
|
|
3337
|
+
l && (h - l === 2 ? i.push(l + 1) : h - l !== 1 && i.push("...")), i.push(h), l = h;
|
|
3338
3338
|
}), i;
|
|
3339
3339
|
}
|
|
3340
3340
|
},
|
|
@@ -3458,7 +3458,7 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3458
3458
|
})
|
|
3459
3459
|
], -1);
|
|
3460
3460
|
function _o(e, r, s, n, o, a) {
|
|
3461
|
-
const i =
|
|
3461
|
+
const i = z("RenderlessPagination");
|
|
3462
3462
|
return d(), Z(i, {
|
|
3463
3463
|
data: s.data,
|
|
3464
3464
|
limit: s.limit,
|
|
@@ -3468,11 +3468,11 @@ function _o(e, r, s, n, o, a) {
|
|
|
3468
3468
|
t("div", oo, [
|
|
3469
3469
|
l.computed.total > l.computed.perPage ? (d(), u("span", lo, [
|
|
3470
3470
|
$(" Showing "),
|
|
3471
|
-
t("span", io,
|
|
3471
|
+
t("span", io, f(l.computed.from), 1),
|
|
3472
3472
|
$(" to "),
|
|
3473
|
-
t("span", uo,
|
|
3473
|
+
t("span", uo, f(l.computed.to), 1),
|
|
3474
3474
|
$(" of "),
|
|
3475
|
-
t("span", co,
|
|
3475
|
+
t("span", co, f(l.computed.total), 1),
|
|
3476
3476
|
$(" Entries ")
|
|
3477
3477
|
])) : g("", !0),
|
|
3478
3478
|
l.computed.total > l.computed.perPage ? (d(), u("ul", ae({ key: 1 }, e.$attrs, {
|
|
@@ -3493,15 +3493,15 @@ function _o(e, r, s, n, o, a) {
|
|
|
3493
3493
|
"aria-label": "Previous",
|
|
3494
3494
|
tabindex: !l.computed.prevPageUrl && -1
|
|
3495
3495
|
}, be(l.prevButtonEvents, !0)), [
|
|
3496
|
-
|
|
3496
|
+
M(e.$slots, "prev-nav", {}, () => [
|
|
3497
3497
|
fo,
|
|
3498
3498
|
ho
|
|
3499
3499
|
])
|
|
3500
3500
|
], 16, go)
|
|
3501
3501
|
], 2)) : g("", !0),
|
|
3502
|
-
(d(!0), u(
|
|
3502
|
+
(d(!0), u(v, null, S(l.computed.pageRange, (c, h) => (d(), u("li", {
|
|
3503
3503
|
class: p(["", { active: c == l.computed.currentPage }]),
|
|
3504
|
-
key:
|
|
3504
|
+
key: h
|
|
3505
3505
|
}, [
|
|
3506
3506
|
t("a", ae({
|
|
3507
3507
|
class: "",
|
|
@@ -3509,7 +3509,7 @@ function _o(e, r, s, n, o, a) {
|
|
|
3509
3509
|
}, be(l.pageButtonEvents(c), !0), {
|
|
3510
3510
|
"aria-current": c == l.computed.currentPage ? "page" : null,
|
|
3511
3511
|
class: c == l.computed.currentPage ? "z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white" : "flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3512
|
-
}),
|
|
3512
|
+
}), f(c), 17, mo)
|
|
3513
3513
|
], 2))), 128)),
|
|
3514
3514
|
l.computed.nextPageUrl || s.showDisabled ? (d(), u("li", {
|
|
3515
3515
|
key: 1,
|
|
@@ -3521,7 +3521,7 @@ function _o(e, r, s, n, o, a) {
|
|
|
3521
3521
|
"aria-label": "Next",
|
|
3522
3522
|
tabindex: !l.computed.nextPageUrl && -1
|
|
3523
3523
|
}, be(l.nextButtonEvents, !0)), [
|
|
3524
|
-
|
|
3524
|
+
M(e.$slots, "next-nav", {}, () => [
|
|
3525
3525
|
po,
|
|
3526
3526
|
yo
|
|
3527
3527
|
])
|
|
@@ -3533,8 +3533,8 @@ function _o(e, r, s, n, o, a) {
|
|
|
3533
3533
|
_: 3
|
|
3534
3534
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3535
3535
|
}
|
|
3536
|
-
const
|
|
3537
|
-
components: { TailwindPagination:
|
|
3536
|
+
const et = /* @__PURE__ */ O(no, [["render", _o]]), vo = {
|
|
3537
|
+
components: { TailwindPagination: et },
|
|
3538
3538
|
props: {
|
|
3539
3539
|
data: Array,
|
|
3540
3540
|
columns: Array,
|
|
@@ -3630,13 +3630,13 @@ const Qe = /* @__PURE__ */ O(no, [["render", _o]]), vo = {
|
|
|
3630
3630
|
"clip-rule": "evenodd"
|
|
3631
3631
|
})
|
|
3632
3632
|
])
|
|
3633
|
-
], -1), Ao = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, jo = { class: "w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark" }, Eo = { class: "hidden text-sm font-normal text-center text-gray-500 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" },
|
|
3633
|
+
], -1), Ao = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, jo = { class: "w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark" }, Eo = { class: "hidden text-sm font-normal text-center text-gray-500 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, To = ["onClick"], Lo = {
|
|
3634
3634
|
key: 0,
|
|
3635
3635
|
class: "ml-2"
|
|
3636
|
-
},
|
|
3636
|
+
}, Mo = {
|
|
3637
3637
|
key: 0,
|
|
3638
3638
|
class: "fa fa-arrow-up"
|
|
3639
|
-
},
|
|
3639
|
+
}, Io = {
|
|
3640
3640
|
key: 1,
|
|
3641
3641
|
class: "fa fa-arrow-down"
|
|
3642
3642
|
}, No = { key: 0 }, Vo = ["colspan"], Bo = /* @__PURE__ */ t("div", {
|
|
@@ -3683,7 +3683,7 @@ const Qe = /* @__PURE__ */ O(no, [["render", _o]]), vo = {
|
|
|
3683
3683
|
Bo
|
|
3684
3684
|
], Uo = ["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" };
|
|
3685
3685
|
function qo(e, r, s, n, o, a) {
|
|
3686
|
-
const i =
|
|
3686
|
+
const i = z("dropdown"), l = z("TailwindPagination");
|
|
3687
3687
|
return d(), u("div", xo, [
|
|
3688
3688
|
t("div", wo, [
|
|
3689
3689
|
t("div", ko, [
|
|
@@ -3722,16 +3722,16 @@ function qo(e, r, s, n, o, a) {
|
|
|
3722
3722
|
t("table", jo, [
|
|
3723
3723
|
t("thead", Eo, [
|
|
3724
3724
|
t("tr", null, [
|
|
3725
|
-
(d(!0), u(
|
|
3726
|
-
key:
|
|
3725
|
+
(d(!0), u(v, null, S(s.columns, (c, h) => (d(), u("th", {
|
|
3726
|
+
key: h,
|
|
3727
3727
|
onClick: (m) => a.updateSortColumn(c.field_name, c.sortable),
|
|
3728
3728
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3729
3729
|
}, [
|
|
3730
|
-
$(
|
|
3731
|
-
o.sortField === c.field_name ? (d(), u("span",
|
|
3732
|
-
o.sortOrder === "asc" ? (d(), u("i",
|
|
3730
|
+
$(f(c.field_label) + " ", 1),
|
|
3731
|
+
o.sortField === c.field_name ? (d(), u("span", Lo, [
|
|
3732
|
+
o.sortOrder === "asc" ? (d(), u("i", Mo)) : (d(), u("i", Io))
|
|
3733
3733
|
])) : g("", !0)
|
|
3734
|
-
], 8,
|
|
3734
|
+
], 8, To))), 128))
|
|
3735
3735
|
])
|
|
3736
3736
|
]),
|
|
3737
3737
|
t("tbody", null, [
|
|
@@ -3740,11 +3740,11 @@ function qo(e, r, s, n, o, a) {
|
|
|
3740
3740
|
colspan: s.columns.length
|
|
3741
3741
|
}, Go, 8, Vo)
|
|
3742
3742
|
])) : g("", !0),
|
|
3743
|
-
o.isLoading ? g("", !0) : (d(!0), u(
|
|
3744
|
-
key:
|
|
3743
|
+
o.isLoading ? g("", !0) : (d(!0), u(v, { key: 1 }, S(o.itemLists.data, (c, h) => (d(), u("tr", {
|
|
3744
|
+
key: h,
|
|
3745
3745
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
3746
3746
|
}, [
|
|
3747
|
-
(d(!0), u(
|
|
3747
|
+
(d(!0), u(v, null, S(s.columns, (m, _) => (d(), u("td", {
|
|
3748
3748
|
key: _,
|
|
3749
3749
|
"data-label": m.field_label,
|
|
3750
3750
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-2.5 lg:px-4 border dark:border-gray-700"
|
|
@@ -3756,10 +3756,10 @@ function qo(e, r, s, n, o, a) {
|
|
|
3756
3756
|
field: m.field_name,
|
|
3757
3757
|
xprops: s.xprops,
|
|
3758
3758
|
tdProps: m.tdProps,
|
|
3759
|
-
onDeleteAction: r[3] || (r[3] = (
|
|
3760
|
-
onEditAction: (
|
|
3761
|
-
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (d(), u(
|
|
3762
|
-
$(
|
|
3759
|
+
onDeleteAction: r[3] || (r[3] = (x) => a.GetItemLists()),
|
|
3760
|
+
onEditAction: (x) => a.editAction(c)
|
|
3761
|
+
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (d(), u(v, { key: 1 }, [
|
|
3762
|
+
$(f(c[m.field_name]), 1)
|
|
3763
3763
|
], 64))
|
|
3764
3764
|
])
|
|
3765
3765
|
], 8, Uo))), 128))
|
|
@@ -3779,8 +3779,8 @@ function qo(e, r, s, n, o, a) {
|
|
|
3779
3779
|
])
|
|
3780
3780
|
]);
|
|
3781
3781
|
}
|
|
3782
|
-
const
|
|
3783
|
-
components: { TailwindPagination:
|
|
3782
|
+
const Lc = /* @__PURE__ */ O(vo, [["render", qo]]), Ho = {
|
|
3783
|
+
components: { TailwindPagination: et },
|
|
3784
3784
|
props: {
|
|
3785
3785
|
data: Array,
|
|
3786
3786
|
columns: Array,
|
|
@@ -3871,7 +3871,7 @@ const vc = /* @__PURE__ */ O(vo, [["render", qo]]), zo = {
|
|
|
3871
3871
|
this.isMounted && e !== r && this.GetItemLists();
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
|
-
},
|
|
3874
|
+
}, zo = { class: "p-2" }, Zo = { class: "flex flex-col flex-wrap pb-4 space-y-4 xl:flex-row xl:items-center xl:justify-between flex-column sm:space-y-0" }, Ko = { class: "flex items-center gap-2" }, Wo = /* @__PURE__ */ t("span", { class: "font-medium" }, " Show ", -1), Yo = { style: { "margin-top": "9px" } }, Xo = /* @__PURE__ */ t("span", { class: "font-medium" }, " Entries ", -1), Jo = /* @__PURE__ */ t("label", {
|
|
3875
3875
|
for: "table-search",
|
|
3876
3876
|
class: "sr-only"
|
|
3877
3877
|
}, "Search", -1), Qo = { class: "relative" }, el = /* @__PURE__ */ t("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
@@ -3941,8 +3941,8 @@ const vc = /* @__PURE__ */ O(vo, [["render", qo]]), zo = {
|
|
|
3941
3941
|
ul
|
|
3942
3942
|
], gl = { class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500" }, fl = ["colspan"], hl = ["data-label"], ml = { class: "overflow-auto max-h-40" }, bl = { 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" };
|
|
3943
3943
|
function pl(e, r, s, n, o, a) {
|
|
3944
|
-
const i =
|
|
3945
|
-
return d(), u("div",
|
|
3944
|
+
const i = z("dropdown"), l = z("TailwindPagination");
|
|
3945
|
+
return d(), u("div", zo, [
|
|
3946
3946
|
t("div", Zo, [
|
|
3947
3947
|
t("div", Ko, [
|
|
3948
3948
|
Wo,
|
|
@@ -3980,12 +3980,12 @@ function pl(e, r, s, n, o, a) {
|
|
|
3980
3980
|
t("table", rl, [
|
|
3981
3981
|
t("thead", sl, [
|
|
3982
3982
|
t("tr", null, [
|
|
3983
|
-
(d(!0), u(
|
|
3984
|
-
key:
|
|
3983
|
+
(d(!0), u(v, null, S(s.columns, (c, h) => (d(), u("th", {
|
|
3984
|
+
key: h,
|
|
3985
3985
|
onClick: (m) => a.updateSortColumn(c.field_name, c.sortable),
|
|
3986
3986
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3987
3987
|
}, [
|
|
3988
|
-
$(
|
|
3988
|
+
$(f(c.field_label) + " ", 1),
|
|
3989
3989
|
o.sortField === c.field_name ? (d(), u("span", nl, [
|
|
3990
3990
|
o.sortOrder === "asc" ? (d(), u("i", ol)) : (d(), u("i", ll))
|
|
3991
3991
|
])) : g("", !0)
|
|
@@ -3998,33 +3998,33 @@ function pl(e, r, s, n, o, a) {
|
|
|
3998
3998
|
colspan: s.columns.length
|
|
3999
3999
|
}, cl, 8, dl)
|
|
4000
4000
|
])) : g("", !0),
|
|
4001
|
-
o.isLoading ? g("", !0) : (d(!0), u(
|
|
4001
|
+
o.isLoading ? g("", !0) : (d(!0), u(v, { key: 1 }, S(a.groupedItems, (c, h) => (d(), u(v, null, [
|
|
4002
4002
|
t("tr", gl, [
|
|
4003
4003
|
t("td", {
|
|
4004
4004
|
colspan: s.columns.length,
|
|
4005
4005
|
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-3 lg:px-4 border dark:border-gray-700"
|
|
4006
|
-
}, h
|
|
4006
|
+
}, f(h), 9, fl)
|
|
4007
4007
|
]),
|
|
4008
|
-
(d(!0), u(
|
|
4008
|
+
(d(!0), u(v, null, S(c, (m, _) => (d(), u("tr", {
|
|
4009
4009
|
key: _,
|
|
4010
4010
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
4011
4011
|
}, [
|
|
4012
|
-
(d(!0), u(
|
|
4013
|
-
key:
|
|
4014
|
-
"data-label":
|
|
4012
|
+
(d(!0), u(v, null, S(s.columns, (x, D) => (d(), u("td", {
|
|
4013
|
+
key: D,
|
|
4014
|
+
"data-label": x.field_label,
|
|
4015
4015
|
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-3 lg:px-4 border dark:border-gray-700"
|
|
4016
4016
|
}, [
|
|
4017
4017
|
t("div", ml, [
|
|
4018
|
-
|
|
4018
|
+
x.tdComp ? (d(), Z(le(a.forDynCompIs(x.tdComp)), {
|
|
4019
4019
|
key: 0,
|
|
4020
4020
|
row: m,
|
|
4021
|
-
field:
|
|
4021
|
+
field: x.field_name,
|
|
4022
4022
|
xprops: s.xprops,
|
|
4023
|
-
tdProps:
|
|
4024
|
-
onDeleteAction: r[3] || (r[3] = (
|
|
4025
|
-
onEditAction: (
|
|
4026
|
-
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (d(), u(
|
|
4027
|
-
$(
|
|
4023
|
+
tdProps: x.tdProps,
|
|
4024
|
+
onDeleteAction: r[3] || (r[3] = (N) => a.GetItemLists()),
|
|
4025
|
+
onEditAction: (N) => a.editAction(m)
|
|
4026
|
+
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (d(), u(v, { key: 1 }, [
|
|
4027
|
+
$(f(m[x.field_name]), 1)
|
|
4028
4028
|
], 64))
|
|
4029
4029
|
])
|
|
4030
4030
|
], 8, hl))), 128))
|
|
@@ -4045,7 +4045,7 @@ function pl(e, r, s, n, o, a) {
|
|
|
4045
4045
|
])
|
|
4046
4046
|
]);
|
|
4047
4047
|
}
|
|
4048
|
-
const
|
|
4048
|
+
const Mc = /* @__PURE__ */ O(Ho, [["render", pl]]), yl = {
|
|
4049
4049
|
components: {},
|
|
4050
4050
|
props: {
|
|
4051
4051
|
data: Array,
|
|
@@ -4145,16 +4145,16 @@ const xc = /* @__PURE__ */ O(zo, [["render", pl]]), yl = {
|
|
|
4145
4145
|
], -1), Ol = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Pl = { 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" }, Al = { class: "hidden text-sm font-normal text-center text-gray-700 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, jl = ["onClick"], El = {
|
|
4146
4146
|
key: 0,
|
|
4147
4147
|
class: "ml-2"
|
|
4148
|
-
},
|
|
4148
|
+
}, Tl = {
|
|
4149
4149
|
key: 0,
|
|
4150
4150
|
class: "fa fa-arrow-up"
|
|
4151
|
-
},
|
|
4151
|
+
}, Ll = {
|
|
4152
4152
|
key: 1,
|
|
4153
4153
|
class: "fa fa-arrow-down"
|
|
4154
|
-
},
|
|
4154
|
+
}, Ml = ["data-label"], Il = ["innerHTML"], Nl = {
|
|
4155
4155
|
key: 0,
|
|
4156
4156
|
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"
|
|
4157
|
-
}, Vl = { class: "flex justify-between flex-1 sm:hidden" }, Bl = ["disabled"], Gl = ["disabled"], Ul = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, Fl = { class: "text-sm text-gray-700 dark:text-gray-400" }, Rl = { class: "font-medium" }, ql = { class: "font-medium" },
|
|
4157
|
+
}, Vl = { class: "flex justify-between flex-1 sm:hidden" }, Bl = ["disabled"], Gl = ["disabled"], Ul = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, Fl = { class: "text-sm text-gray-700 dark:text-gray-400" }, Rl = { class: "font-medium" }, ql = { class: "font-medium" }, Hl = { class: "font-medium" }, zl = { "aria-label": "Page navigation" }, Zl = { class: "flex items-center h-8 -space-x-px text-sm" }, Kl = ["disabled"], Wl = /* @__PURE__ */ t("span", { class: "sr-only" }, "Previous", -1), Yl = /* @__PURE__ */ t("svg", {
|
|
4158
4158
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
4159
4159
|
"aria-hidden": "true",
|
|
4160
4160
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4190,7 +4190,7 @@ const xc = /* @__PURE__ */ O(zo, [["render", pl]]), yl = {
|
|
|
4190
4190
|
ri
|
|
4191
4191
|
];
|
|
4192
4192
|
function ai(e, r, s, n, o, a) {
|
|
4193
|
-
const i =
|
|
4193
|
+
const i = z("dropdown");
|
|
4194
4194
|
return d(), u("div", _l, [
|
|
4195
4195
|
t("div", vl, [
|
|
4196
4196
|
t("div", xl, [
|
|
@@ -4228,33 +4228,33 @@ function ai(e, r, s, n, o, a) {
|
|
|
4228
4228
|
t("table", Pl, [
|
|
4229
4229
|
t("thead", Al, [
|
|
4230
4230
|
t("tr", null, [
|
|
4231
|
-
(d(!0), u(
|
|
4231
|
+
(d(!0), u(v, null, S(s.columns, (l, c) => (d(), u("th", {
|
|
4232
4232
|
key: c,
|
|
4233
|
-
onClick: (
|
|
4233
|
+
onClick: (h) => a.sort(l),
|
|
4234
4234
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
4235
4235
|
}, [
|
|
4236
|
-
$(
|
|
4236
|
+
$(f(l) + " ", 1),
|
|
4237
4237
|
o.sortKey === l ? (d(), u("span", El, [
|
|
4238
|
-
o.sortOrder === "asc" ? (d(), u("i",
|
|
4238
|
+
o.sortOrder === "asc" ? (d(), u("i", Tl)) : (d(), u("i", Ll))
|
|
4239
4239
|
])) : g("", !0)
|
|
4240
4240
|
], 8, jl))), 128))
|
|
4241
4241
|
])
|
|
4242
4242
|
]),
|
|
4243
4243
|
t("tbody", null, [
|
|
4244
|
-
(d(!0), u(
|
|
4244
|
+
(d(!0), u(v, null, S(a.paginatedData, (l, c) => (d(), u("tr", {
|
|
4245
4245
|
key: c,
|
|
4246
4246
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
4247
4247
|
}, [
|
|
4248
|
-
(d(!0), u(
|
|
4248
|
+
(d(!0), u(v, null, S(s.columns, (h, m) => (d(), u("td", {
|
|
4249
4249
|
key: m,
|
|
4250
|
-
"data-label":
|
|
4250
|
+
"data-label": h,
|
|
4251
4251
|
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"
|
|
4252
4252
|
}, [
|
|
4253
4253
|
t("p", {
|
|
4254
4254
|
class: "text-pretty",
|
|
4255
4255
|
innerHTML: l[m]
|
|
4256
|
-
}, null, 8,
|
|
4257
|
-
], 8,
|
|
4256
|
+
}, null, 8, Il)
|
|
4257
|
+
], 8, Ml))), 128))
|
|
4258
4258
|
]))), 128))
|
|
4259
4259
|
])
|
|
4260
4260
|
])
|
|
@@ -4278,16 +4278,16 @@ function ai(e, r, s, n, o, a) {
|
|
|
4278
4278
|
t("div", null, [
|
|
4279
4279
|
t("p", Fl, [
|
|
4280
4280
|
$(" Showing "),
|
|
4281
|
-
t("span", Rl,
|
|
4281
|
+
t("span", Rl, f(a.firstItemIndex), 1),
|
|
4282
4282
|
$(" to "),
|
|
4283
|
-
t("span", ql,
|
|
4283
|
+
t("span", ql, f(a.lastItemIndex), 1),
|
|
4284
4284
|
$(" of "),
|
|
4285
|
-
t("span",
|
|
4285
|
+
t("span", Hl, f(a.filteredData.length), 1),
|
|
4286
4286
|
$(" entries ")
|
|
4287
4287
|
])
|
|
4288
4288
|
]),
|
|
4289
4289
|
t("div", null, [
|
|
4290
|
-
t("nav",
|
|
4290
|
+
t("nav", zl, [
|
|
4291
4291
|
t("ul", Zl, [
|
|
4292
4292
|
t("li", null, [
|
|
4293
4293
|
t("a", {
|
|
@@ -4297,14 +4297,14 @@ function ai(e, r, s, n, o, a) {
|
|
|
4297
4297
|
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"
|
|
4298
4298
|
}, Xl, 8, Kl)
|
|
4299
4299
|
]),
|
|
4300
|
-
(d(!0), u(
|
|
4300
|
+
(d(!0), u(v, null, S(a.displayedPageNumbers, (l) => (d(), u(v, { key: l }, [
|
|
4301
4301
|
t("li", null, [
|
|
4302
4302
|
o.currentPage !== l ? (d(), u("a", {
|
|
4303
4303
|
key: 0,
|
|
4304
4304
|
href: "#",
|
|
4305
4305
|
onClick: (c) => a.goToPage(l),
|
|
4306
4306
|
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"
|
|
4307
|
-
},
|
|
4307
|
+
}, f(l), 9, Jl)) : g("", !0)
|
|
4308
4308
|
]),
|
|
4309
4309
|
t("li", null, [
|
|
4310
4310
|
o.currentPage === l ? (d(), u("a", {
|
|
@@ -4313,7 +4313,7 @@ function ai(e, r, s, n, o, a) {
|
|
|
4313
4313
|
onClick: (c) => a.goToPage(l),
|
|
4314
4314
|
"aria-current": "page",
|
|
4315
4315
|
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"
|
|
4316
|
-
},
|
|
4316
|
+
}, f(l), 9, Ql)) : g("", !0)
|
|
4317
4317
|
])
|
|
4318
4318
|
], 64))), 128)),
|
|
4319
4319
|
t("li", null, [
|
|
@@ -4331,13 +4331,96 @@ function ai(e, r, s, n, o, a) {
|
|
|
4331
4331
|
])) : g("", !0)
|
|
4332
4332
|
]);
|
|
4333
4333
|
}
|
|
4334
|
-
const
|
|
4334
|
+
const Ic = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
4335
|
+
setup(e, { slots: r }) {
|
|
4336
|
+
const s = C(r.default().map((o) => o.props)), n = C(s.value.length > 0 ? s.value[0].title : "");
|
|
4337
|
+
return Me("selectedTitle", n), watch(
|
|
4338
|
+
() => r.default(),
|
|
4339
|
+
(o) => {
|
|
4340
|
+
s.value = o.map((a) => a.props), s.value.some((a) => a.title === n.value) || (n.value = s.value.length > 0 ? s.value[0].title : "");
|
|
4341
|
+
}
|
|
4342
|
+
), {
|
|
4343
|
+
tabs: s,
|
|
4344
|
+
selectedTitle: n
|
|
4345
|
+
};
|
|
4346
|
+
}
|
|
4347
|
+
}, oi = ["onClick"], li = { class: "flex items-center" }, ii = {
|
|
4348
|
+
key: 0,
|
|
4349
|
+
class: "w-3 h-3 rotate-180 shrink-0",
|
|
4350
|
+
"aria-hidden": "true",
|
|
4351
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4352
|
+
fill: "none",
|
|
4353
|
+
viewBox: "0 0 10 6"
|
|
4354
|
+
}, di = /* @__PURE__ */ t("path", {
|
|
4355
|
+
stroke: "currentColor",
|
|
4356
|
+
"stroke-linecap": "round",
|
|
4357
|
+
"stroke-linejoin": "round",
|
|
4358
|
+
"stroke-width": "2",
|
|
4359
|
+
d: "M9 5 5 1 1 5"
|
|
4360
|
+
}, null, -1), ui = [
|
|
4361
|
+
di
|
|
4362
|
+
], ci = {
|
|
4363
|
+
key: 1,
|
|
4364
|
+
class: "w-3 h-3 shrink-0",
|
|
4365
|
+
"aria-hidden": "true",
|
|
4366
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4367
|
+
fill: "none",
|
|
4368
|
+
viewBox: "0 0 10 6"
|
|
4369
|
+
}, gi = /* @__PURE__ */ t("path", {
|
|
4370
|
+
stroke: "currentColor",
|
|
4371
|
+
"stroke-linecap": "round",
|
|
4372
|
+
"stroke-linejoin": "round",
|
|
4373
|
+
"stroke-width": "2",
|
|
4374
|
+
d: "M9 5 5 1 1 5"
|
|
4375
|
+
}, null, -1), fi = [
|
|
4376
|
+
gi
|
|
4377
|
+
], hi = { key: 0 };
|
|
4378
|
+
function mi(e, r, s, n, o, a) {
|
|
4379
|
+
return d(), u("div", null, [
|
|
4380
|
+
(d(!0), u(v, null, S(n.tabs, (i) => (d(), u("div", {
|
|
4381
|
+
key: i.title
|
|
4382
|
+
}, [
|
|
4383
|
+
t("h2", null, [
|
|
4384
|
+
t("button", {
|
|
4385
|
+
onClick: (l) => n.selectedTitle = i.title,
|
|
4386
|
+
type: "button",
|
|
4387
|
+
class: "flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3",
|
|
4388
|
+
"aria-expanded": "true"
|
|
4389
|
+
}, [
|
|
4390
|
+
t("span", li, f(i.title), 1),
|
|
4391
|
+
n.selectedTitle != i.title ? (d(), u("svg", ii, ui)) : g("", !0),
|
|
4392
|
+
n.selectedTitle === i.title ? (d(), u("svg", ci, fi)) : g("", !0)
|
|
4393
|
+
], 8, oi)
|
|
4394
|
+
]),
|
|
4395
|
+
n.selectedTitle === i.title ? (d(), u("div", hi, [
|
|
4396
|
+
M(e.$slots, "default")
|
|
4397
|
+
])) : g("", !0)
|
|
4398
|
+
]))), 128))
|
|
4399
|
+
]);
|
|
4400
|
+
}
|
|
4401
|
+
const Nc = /* @__PURE__ */ O(ni, [["render", mi]]), bi = {
|
|
4402
|
+
props: ["title"],
|
|
4403
|
+
setup() {
|
|
4404
|
+
return {
|
|
4405
|
+
selectedTitle: xe("selectedTitle")
|
|
4406
|
+
};
|
|
4407
|
+
}
|
|
4408
|
+
}, pi = {
|
|
4409
|
+
key: 0,
|
|
4410
|
+
class: "p-5 border border-b-0 border-gray-200 dark:border-gray-700 dark:bg-gray-900"
|
|
4411
|
+
};
|
|
4412
|
+
function yi(e, r, s, n, o, a) {
|
|
4413
|
+
return s.title == n.selectedTitle ? (d(), u("div", pi, [
|
|
4414
|
+
M(e.$slots, "default")
|
|
4415
|
+
])) : g("", !0);
|
|
4416
|
+
}
|
|
4417
|
+
const Vc = /* @__PURE__ */ O(bi, [["render", yi]]), _i = {
|
|
4335
4418
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
4336
4419
|
role: "alert"
|
|
4337
|
-
},
|
|
4420
|
+
}, vi = {
|
|
4338
4421
|
key: 0,
|
|
4339
4422
|
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"
|
|
4340
|
-
},
|
|
4423
|
+
}, xi = /* @__PURE__ */ t("svg", {
|
|
4341
4424
|
class: "w-5 h-5",
|
|
4342
4425
|
"aria-hidden": "true",
|
|
4343
4426
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4345,13 +4428,13 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4345
4428
|
viewBox: "0 0 20 20"
|
|
4346
4429
|
}, [
|
|
4347
4430
|
/* @__PURE__ */ t("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" })
|
|
4348
|
-
], -1),
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
],
|
|
4431
|
+
], -1), wi = /* @__PURE__ */ t("span", { class: "sr-only" }, "Check icon", -1), ki = [
|
|
4432
|
+
xi,
|
|
4433
|
+
wi
|
|
4434
|
+
], $i = {
|
|
4352
4435
|
key: 1,
|
|
4353
4436
|
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"
|
|
4354
|
-
},
|
|
4437
|
+
}, Ci = /* @__PURE__ */ t("svg", {
|
|
4355
4438
|
class: "w-5 h-5",
|
|
4356
4439
|
"aria-hidden": "true",
|
|
4357
4440
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4359,13 +4442,13 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4359
4442
|
viewBox: "0 0 20 20"
|
|
4360
4443
|
}, [
|
|
4361
4444
|
/* @__PURE__ */ t("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" })
|
|
4362
|
-
], -1),
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
],
|
|
4445
|
+
], -1), Si = /* @__PURE__ */ t("span", { class: "sr-only" }, "Error icon", -1), Di = [
|
|
4446
|
+
Ci,
|
|
4447
|
+
Si
|
|
4448
|
+
], Oi = {
|
|
4366
4449
|
key: 2,
|
|
4367
4450
|
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"
|
|
4368
|
-
},
|
|
4451
|
+
}, Pi = /* @__PURE__ */ t("svg", {
|
|
4369
4452
|
class: "w-5 h-5",
|
|
4370
4453
|
"aria-hidden": "true",
|
|
4371
4454
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4373,10 +4456,10 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4373
4456
|
viewBox: "0 0 20 20"
|
|
4374
4457
|
}, [
|
|
4375
4458
|
/* @__PURE__ */ t("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" })
|
|
4376
|
-
], -1),
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
],
|
|
4459
|
+
], -1), Ai = /* @__PURE__ */ t("span", { class: "sr-only" }, "Warning icon", -1), ji = [
|
|
4460
|
+
Pi,
|
|
4461
|
+
Ai
|
|
4462
|
+
], Ei = { class: "ml-3 text-sm font-normal" }, Ti = /* @__PURE__ */ t("span", { class: "sr-only" }, "Close", -1), Li = /* @__PURE__ */ t("svg", {
|
|
4380
4463
|
"aria-hidden": "true",
|
|
4381
4464
|
class: "w-5 h-5",
|
|
4382
4465
|
fill: "currentColor",
|
|
@@ -4388,10 +4471,10 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4388
4471
|
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",
|
|
4389
4472
|
"clip-rule": "evenodd"
|
|
4390
4473
|
})
|
|
4391
|
-
], -1),
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
],
|
|
4474
|
+
], -1), Mi = [
|
|
4475
|
+
Ti,
|
|
4476
|
+
Li
|
|
4477
|
+
], Ii = {
|
|
4395
4478
|
__name: "ToastListItem",
|
|
4396
4479
|
props: {
|
|
4397
4480
|
message: String,
|
|
@@ -4411,23 +4494,23 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4411
4494
|
setTimeout(() => n("remove"), s.duration);
|
|
4412
4495
|
});
|
|
4413
4496
|
const n = r;
|
|
4414
|
-
return (o, a) => (d(), u("div",
|
|
4415
|
-
s.type === "success" ? (d(), u("div",
|
|
4416
|
-
s.type === "error" ? (d(), u("div",
|
|
4417
|
-
s.type === "warning" ? (d(), u("div",
|
|
4418
|
-
t("div",
|
|
4497
|
+
return (o, a) => (d(), u("div", _i, [
|
|
4498
|
+
s.type === "success" ? (d(), u("div", vi, ki)) : g("", !0),
|
|
4499
|
+
s.type === "error" ? (d(), u("div", $i, Di)) : g("", !0),
|
|
4500
|
+
s.type === "warning" ? (d(), u("div", Oi, ji)) : g("", !0),
|
|
4501
|
+
t("div", Ei, f(s.message), 1),
|
|
4419
4502
|
t("button", {
|
|
4420
4503
|
onClick: a[0] || (a[0] = (i) => n("remove")),
|
|
4421
4504
|
type: "button",
|
|
4422
4505
|
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",
|
|
4423
4506
|
"data-dismiss-target": "#toast-default",
|
|
4424
4507
|
"aria-label": "Close"
|
|
4425
|
-
},
|
|
4508
|
+
}, Mi)
|
|
4426
4509
|
]));
|
|
4427
4510
|
}
|
|
4428
|
-
}, ve =
|
|
4511
|
+
}, ve = Te({
|
|
4429
4512
|
items: []
|
|
4430
|
-
}),
|
|
4513
|
+
}), Ni = {
|
|
4431
4514
|
add(e) {
|
|
4432
4515
|
ve.items.unshift({
|
|
4433
4516
|
key: Symbol(),
|
|
@@ -4439,14 +4522,14 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4439
4522
|
remove(e) {
|
|
4440
4523
|
ve.items.splice(e, 1);
|
|
4441
4524
|
}
|
|
4442
|
-
},
|
|
4525
|
+
}, Ee = {
|
|
4443
4526
|
state: ve,
|
|
4444
|
-
methods:
|
|
4445
|
-
},
|
|
4527
|
+
methods: Ni
|
|
4528
|
+
}, Bc = {
|
|
4446
4529
|
__name: "GlToastList",
|
|
4447
4530
|
setup(e) {
|
|
4448
4531
|
function r(s) {
|
|
4449
|
-
|
|
4532
|
+
Ee.methods.remove(s);
|
|
4450
4533
|
}
|
|
4451
4534
|
return (s, n) => (d(), Z(it, {
|
|
4452
4535
|
tag: "div",
|
|
@@ -4457,7 +4540,7 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4457
4540
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4458
4541
|
}, {
|
|
4459
4542
|
default: ie(() => [
|
|
4460
|
-
(d(!0), u(
|
|
4543
|
+
(d(!0), u(v, null, S(dt(Ee).state.items, (o, a) => (d(), Z(Ii, {
|
|
4461
4544
|
key: o.key,
|
|
4462
4545
|
message: o.message,
|
|
4463
4546
|
type: o.type,
|
|
@@ -4468,10 +4551,10 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4468
4551
|
_: 1
|
|
4469
4552
|
}));
|
|
4470
4553
|
}
|
|
4471
|
-
},
|
|
4554
|
+
}, Vi = {
|
|
4472
4555
|
key: 0,
|
|
4473
4556
|
class: "flex justify-center"
|
|
4474
|
-
},
|
|
4557
|
+
}, Bi = /* @__PURE__ */ t("svg", {
|
|
4475
4558
|
class: "w-5 h-5",
|
|
4476
4559
|
"aria-hidden": "true",
|
|
4477
4560
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4479,12 +4562,12 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4479
4562
|
viewBox: "0 0 4 15"
|
|
4480
4563
|
}, [
|
|
4481
4564
|
/* @__PURE__ */ t("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" })
|
|
4482
|
-
], -1),
|
|
4483
|
-
|
|
4484
|
-
],
|
|
4565
|
+
], -1), Gi = [
|
|
4566
|
+
Bi
|
|
4567
|
+
], Ui = { class: "absolute right-0 z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, Fi = {
|
|
4485
4568
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4486
4569
|
"aria-labelledby": "dropdownDividerButton"
|
|
4487
|
-
},
|
|
4570
|
+
}, Ri = { key: 0 }, qi = ["href"], Hi = /* @__PURE__ */ t("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), zi = { key: 1 }, Zi = /* @__PURE__ */ t("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Gc = {
|
|
4488
4571
|
__name: "DatatableAction",
|
|
4489
4572
|
props: {
|
|
4490
4573
|
field: {
|
|
@@ -4510,13 +4593,13 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4510
4593
|
},
|
|
4511
4594
|
emits: ["deleteAction"],
|
|
4512
4595
|
setup(e, { emit: r }) {
|
|
4513
|
-
const s =
|
|
4596
|
+
const s = Be(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4514
4597
|
o.value = !1;
|
|
4515
4598
|
}, l = () => {
|
|
4516
4599
|
o.value = !0;
|
|
4517
4600
|
}, c = () => {
|
|
4518
4601
|
a.value = !1;
|
|
4519
|
-
},
|
|
4602
|
+
}, h = () => {
|
|
4520
4603
|
a.value = !0;
|
|
4521
4604
|
}, m = r, _ = () => {
|
|
4522
4605
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4525,42 +4608,42 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4525
4608
|
type: "success",
|
|
4526
4609
|
duration: 5e3
|
|
4527
4610
|
});
|
|
4528
|
-
}).catch((
|
|
4529
|
-
console.log(
|
|
4611
|
+
}).catch((x) => {
|
|
4612
|
+
console.log(x);
|
|
4530
4613
|
});
|
|
4531
4614
|
};
|
|
4532
|
-
return (
|
|
4533
|
-
const
|
|
4534
|
-
return d(), u(
|
|
4535
|
-
R(
|
|
4615
|
+
return (x, D) => {
|
|
4616
|
+
const N = Ie("click-outside");
|
|
4617
|
+
return d(), u(v, null, [
|
|
4618
|
+
R(we, {
|
|
4536
4619
|
isOpen: a.value,
|
|
4537
4620
|
onConfirmDelete: _,
|
|
4538
4621
|
onCancelDelete: c
|
|
4539
4622
|
}, null, 8, ["isOpen"]),
|
|
4540
|
-
e.row &&
|
|
4623
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? A((d(), u("div", Vi, [
|
|
4541
4624
|
t("button", {
|
|
4542
4625
|
onClick: l,
|
|
4543
4626
|
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",
|
|
4544
4627
|
type: "button"
|
|
4545
|
-
},
|
|
4546
|
-
A(t("div",
|
|
4547
|
-
t("ul",
|
|
4548
|
-
|
|
4628
|
+
}, Gi),
|
|
4629
|
+
A(t("div", Ui, [
|
|
4630
|
+
t("ul", Fi, [
|
|
4631
|
+
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li", Ri, [
|
|
4549
4632
|
t("a", {
|
|
4550
4633
|
href: e.xprops.route + "/" + e.row.id + "/edit",
|
|
4551
4634
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4552
4635
|
}, [
|
|
4553
|
-
|
|
4636
|
+
Hi,
|
|
4554
4637
|
$(" Edit")
|
|
4555
|
-
], 8,
|
|
4638
|
+
], 8, qi)
|
|
4556
4639
|
])) : g("", !0),
|
|
4557
|
-
|
|
4640
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", zi, [
|
|
4558
4641
|
t("a", {
|
|
4559
4642
|
href: "#",
|
|
4560
|
-
onClick: F(
|
|
4643
|
+
onClick: F(h, ["prevent"]),
|
|
4561
4644
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4562
4645
|
}, [
|
|
4563
|
-
|
|
4646
|
+
Zi,
|
|
4564
4647
|
$(" Remove")
|
|
4565
4648
|
])
|
|
4566
4649
|
])) : g("", !0)
|
|
@@ -4569,15 +4652,15 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4569
4652
|
[Q, o.value]
|
|
4570
4653
|
])
|
|
4571
4654
|
])), [
|
|
4572
|
-
[
|
|
4655
|
+
[N, i]
|
|
4573
4656
|
]) : g("", !0)
|
|
4574
4657
|
], 64);
|
|
4575
4658
|
};
|
|
4576
4659
|
}
|
|
4577
|
-
},
|
|
4660
|
+
}, Ki = {
|
|
4578
4661
|
key: 0,
|
|
4579
4662
|
class: "flex justify-center"
|
|
4580
|
-
},
|
|
4663
|
+
}, Wi = /* @__PURE__ */ t("svg", {
|
|
4581
4664
|
class: "w-5 h-5",
|
|
4582
4665
|
"aria-hidden": "true",
|
|
4583
4666
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4585,12 +4668,12 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4585
4668
|
viewBox: "0 0 4 15"
|
|
4586
4669
|
}, [
|
|
4587
4670
|
/* @__PURE__ */ t("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" })
|
|
4588
|
-
], -1),
|
|
4589
|
-
|
|
4590
|
-
],
|
|
4671
|
+
], -1), Yi = [
|
|
4672
|
+
Wi
|
|
4673
|
+
], Xi = { class: "absolute right-0 z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, Ji = {
|
|
4591
4674
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4592
4675
|
"aria-labelledby": "dropdownDividerButton"
|
|
4593
|
-
},
|
|
4676
|
+
}, Qi = { key: 0 }, ed = /* @__PURE__ */ t("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Uc = {
|
|
4594
4677
|
__name: "DatatableDeleteAction",
|
|
4595
4678
|
props: {
|
|
4596
4679
|
field: {
|
|
@@ -4616,13 +4699,13 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4616
4699
|
},
|
|
4617
4700
|
emits: ["deleteAction"],
|
|
4618
4701
|
setup(e, { emit: r }) {
|
|
4619
|
-
const s =
|
|
4702
|
+
const s = Be(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4620
4703
|
o.value = !1;
|
|
4621
4704
|
}, l = () => {
|
|
4622
4705
|
o.value = !0;
|
|
4623
4706
|
}, c = () => {
|
|
4624
4707
|
a.value = !1;
|
|
4625
|
-
},
|
|
4708
|
+
}, h = () => {
|
|
4626
4709
|
a.value = !0;
|
|
4627
4710
|
}, m = r, _ = () => {
|
|
4628
4711
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4631,33 +4714,33 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4631
4714
|
type: "success",
|
|
4632
4715
|
duration: 5e3
|
|
4633
4716
|
});
|
|
4634
|
-
}).catch((
|
|
4635
|
-
console.log(
|
|
4717
|
+
}).catch((x) => {
|
|
4718
|
+
console.log(x);
|
|
4636
4719
|
});
|
|
4637
4720
|
};
|
|
4638
|
-
return (
|
|
4639
|
-
const
|
|
4640
|
-
return d(), u(
|
|
4641
|
-
R(
|
|
4721
|
+
return (x, D) => {
|
|
4722
|
+
const N = Ie("click-outside");
|
|
4723
|
+
return d(), u(v, null, [
|
|
4724
|
+
R(we, {
|
|
4642
4725
|
isOpen: a.value,
|
|
4643
4726
|
onConfirmDelete: _,
|
|
4644
4727
|
onCancelDelete: c
|
|
4645
4728
|
}, null, 8, ["isOpen"]),
|
|
4646
|
-
e.row &&
|
|
4729
|
+
e.row && x.can(`delete_${e.xprops.permission}`) ? A((d(), u("div", Ki, [
|
|
4647
4730
|
t("button", {
|
|
4648
4731
|
onClick: l,
|
|
4649
4732
|
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",
|
|
4650
4733
|
type: "button"
|
|
4651
|
-
},
|
|
4652
|
-
A(t("div",
|
|
4653
|
-
t("ul",
|
|
4654
|
-
|
|
4734
|
+
}, Yi),
|
|
4735
|
+
A(t("div", Xi, [
|
|
4736
|
+
t("ul", Ji, [
|
|
4737
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", Qi, [
|
|
4655
4738
|
t("a", {
|
|
4656
4739
|
href: "#",
|
|
4657
|
-
onClick: F(
|
|
4740
|
+
onClick: F(h, ["prevent"]),
|
|
4658
4741
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4659
4742
|
}, [
|
|
4660
|
-
|
|
4743
|
+
ed,
|
|
4661
4744
|
$(" Remove")
|
|
4662
4745
|
])
|
|
4663
4746
|
])) : g("", !0)
|
|
@@ -4666,12 +4749,12 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4666
4749
|
[Q, o.value]
|
|
4667
4750
|
])
|
|
4668
4751
|
])), [
|
|
4669
|
-
[
|
|
4752
|
+
[N, i]
|
|
4670
4753
|
]) : g("", !0)
|
|
4671
4754
|
], 64);
|
|
4672
4755
|
};
|
|
4673
4756
|
}
|
|
4674
|
-
},
|
|
4757
|
+
}, td = {
|
|
4675
4758
|
props: ["field", "row"],
|
|
4676
4759
|
computed: {
|
|
4677
4760
|
isArray() {
|
|
@@ -4686,7 +4769,7 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4686
4769
|
},
|
|
4687
4770
|
mounted() {
|
|
4688
4771
|
}
|
|
4689
|
-
},
|
|
4772
|
+
}, rd = ["href", "title"], sd = /* @__PURE__ */ t("svg", {
|
|
4690
4773
|
class: "w-3 h-3 text-white me-2",
|
|
4691
4774
|
"aria-hidden": "true",
|
|
4692
4775
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4703,10 +4786,10 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4703
4786
|
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",
|
|
4704
4787
|
"clip-rule": "evenodd"
|
|
4705
4788
|
})
|
|
4706
|
-
], -1),
|
|
4789
|
+
], -1), ad = {
|
|
4707
4790
|
key: 1,
|
|
4708
4791
|
class: "m-1 d-inline-block"
|
|
4709
|
-
},
|
|
4792
|
+
}, nd = ["href", "title"], od = /* @__PURE__ */ t("svg", {
|
|
4710
4793
|
class: "w-3 h-3 text-white me-2",
|
|
4711
4794
|
"aria-hidden": "true",
|
|
4712
4795
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4724,9 +4807,9 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4724
4807
|
"clip-rule": "evenodd"
|
|
4725
4808
|
})
|
|
4726
4809
|
], -1);
|
|
4727
|
-
function
|
|
4810
|
+
function ld(e, r, s, n, o, a) {
|
|
4728
4811
|
return d(), u("div", null, [
|
|
4729
|
-
a.isArray ? (d(!0), u(
|
|
4812
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, S(s.row, (i, l) => (d(), u("div", {
|
|
4730
4813
|
key: l,
|
|
4731
4814
|
class: "m-1 d-inline-block"
|
|
4732
4815
|
}, [
|
|
@@ -4736,23 +4819,23 @@ function Zi(e, r, s, n, o, a) {
|
|
|
4736
4819
|
target: "_blank",
|
|
4737
4820
|
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"
|
|
4738
4821
|
}, [
|
|
4739
|
-
|
|
4822
|
+
sd,
|
|
4740
4823
|
$(" Download ")
|
|
4741
|
-
], 8,
|
|
4742
|
-
]))), 128)) : a.isString ? (d(), u("div",
|
|
4824
|
+
], 8, rd)
|
|
4825
|
+
]))), 128)) : a.isString ? (d(), u("div", ad, [
|
|
4743
4826
|
t("a", {
|
|
4744
4827
|
href: s.row,
|
|
4745
4828
|
title: s.row,
|
|
4746
4829
|
target: "_blank",
|
|
4747
4830
|
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"
|
|
4748
4831
|
}, [
|
|
4749
|
-
|
|
4832
|
+
od,
|
|
4750
4833
|
$(" Download ")
|
|
4751
|
-
], 8,
|
|
4834
|
+
], 8, nd)
|
|
4752
4835
|
])) : g("", !0)
|
|
4753
4836
|
]);
|
|
4754
4837
|
}
|
|
4755
|
-
const
|
|
4838
|
+
const Fc = /* @__PURE__ */ O(td, [["render", ld]]), id = {
|
|
4756
4839
|
props: ["field", "row"],
|
|
4757
4840
|
computed: {
|
|
4758
4841
|
isArray() {
|
|
@@ -4762,7 +4845,7 @@ const Sc = /* @__PURE__ */ O(Ui, [["render", Zi]]), Ki = {
|
|
|
4762
4845
|
return typeof this.row[this.field] == "object";
|
|
4763
4846
|
}
|
|
4764
4847
|
}
|
|
4765
|
-
},
|
|
4848
|
+
}, dd = ["href", "title"], ud = /* @__PURE__ */ t("svg", {
|
|
4766
4849
|
class: "w-3 h-3 text-white me-2",
|
|
4767
4850
|
"aria-hidden": "true",
|
|
4768
4851
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4779,10 +4862,10 @@ const Sc = /* @__PURE__ */ O(Ui, [["render", Zi]]), Ki = {
|
|
|
4779
4862
|
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",
|
|
4780
4863
|
"clip-rule": "evenodd"
|
|
4781
4864
|
})
|
|
4782
|
-
], -1),
|
|
4865
|
+
], -1), cd = {
|
|
4783
4866
|
key: 1,
|
|
4784
4867
|
class: "m-1 d-inline-block"
|
|
4785
|
-
},
|
|
4868
|
+
}, gd = ["href", "title"], fd = /* @__PURE__ */ t("svg", {
|
|
4786
4869
|
class: "w-3 h-3 text-white me-2",
|
|
4787
4870
|
"aria-hidden": "true",
|
|
4788
4871
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4800,9 +4883,9 @@ const Sc = /* @__PURE__ */ O(Ui, [["render", Zi]]), Ki = {
|
|
|
4800
4883
|
"clip-rule": "evenodd"
|
|
4801
4884
|
})
|
|
4802
4885
|
], -1);
|
|
4803
|
-
function
|
|
4886
|
+
function hd(e, r, s, n, o, a) {
|
|
4804
4887
|
return d(), u("div", null, [
|
|
4805
|
-
a.isArray ? (d(!0), u(
|
|
4888
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, S(s.row[s.field], (i) => (d(), u("div", {
|
|
4806
4889
|
key: i.id,
|
|
4807
4890
|
class: "m-1 d-inline-block"
|
|
4808
4891
|
}, [
|
|
@@ -4812,34 +4895,34 @@ function ed(e, r, s, n, o, a) {
|
|
|
4812
4895
|
target: "_blank",
|
|
4813
4896
|
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"
|
|
4814
4897
|
}, [
|
|
4815
|
-
|
|
4898
|
+
ud,
|
|
4816
4899
|
$(" Download ")
|
|
4817
|
-
], 8,
|
|
4818
|
-
]))), 128)) : a.isObject ? (d(), u("div",
|
|
4900
|
+
], 8, dd)
|
|
4901
|
+
]))), 128)) : a.isObject ? (d(), u("div", cd, [
|
|
4819
4902
|
t("a", {
|
|
4820
4903
|
href: s.row[s.field].url,
|
|
4821
4904
|
title: s.row[s.field].name,
|
|
4822
4905
|
target: "_blank",
|
|
4823
4906
|
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"
|
|
4824
4907
|
}, [
|
|
4825
|
-
|
|
4908
|
+
fd,
|
|
4826
4909
|
$(" Download ")
|
|
4827
|
-
], 8,
|
|
4910
|
+
], 8, gd)
|
|
4828
4911
|
])) : g("", !0)
|
|
4829
4912
|
]);
|
|
4830
4913
|
}
|
|
4831
|
-
const
|
|
4914
|
+
const Rc = /* @__PURE__ */ O(id, [["render", hd]]), md = {
|
|
4832
4915
|
props: ["field", "row", "tdProps"]
|
|
4833
|
-
},
|
|
4834
|
-
function
|
|
4835
|
-
return s.row[s.field] ? (d(), u("div",
|
|
4916
|
+
}, bd = { key: 0 }, pd = ["innerHTML"];
|
|
4917
|
+
function yd(e, r, s, n, o, a) {
|
|
4918
|
+
return s.row[s.field] ? (d(), u("div", bd, [
|
|
4836
4919
|
t("div", {
|
|
4837
4920
|
class: "w-full",
|
|
4838
4921
|
innerHTML: s.row[s.field]
|
|
4839
|
-
}, null, 8,
|
|
4922
|
+
}, null, 8, pd)
|
|
4840
4923
|
])) : g("", !0);
|
|
4841
4924
|
}
|
|
4842
|
-
const
|
|
4925
|
+
const qc = /* @__PURE__ */ O(md, [["render", yd]]), _d = {
|
|
4843
4926
|
props: ["field", "row", "tdProps"],
|
|
4844
4927
|
computed: {
|
|
4845
4928
|
entry() {
|
|
@@ -4853,24 +4936,24 @@ const Oc = /* @__PURE__ */ O(td, [["render", ad]]), nd = {
|
|
|
4853
4936
|
return typeof this.row[this.entry.key] == "object";
|
|
4854
4937
|
}
|
|
4855
4938
|
}
|
|
4856
|
-
},
|
|
4939
|
+
}, vd = { class: "flex flex-wrap gap-2" }, xd = {
|
|
4857
4940
|
key: 1,
|
|
4858
4941
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4859
4942
|
};
|
|
4860
|
-
function
|
|
4861
|
-
return d(), u("div",
|
|
4862
|
-
a.isArray ? (d(!0), u(
|
|
4943
|
+
function wd(e, r, s, n, o, a) {
|
|
4944
|
+
return d(), u("div", vd, [
|
|
4945
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, S(s.row[a.entry.key], (i, l) => (d(), u("span", {
|
|
4863
4946
|
key: l,
|
|
4864
4947
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4865
|
-
},
|
|
4948
|
+
}, f(i[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", xd, f(s.row[a.entry.key][a.entry.field]), 1)) : g("", !0)
|
|
4866
4949
|
]);
|
|
4867
4950
|
}
|
|
4868
|
-
const
|
|
4951
|
+
const Hc = /* @__PURE__ */ O(_d, [["render", wd]]), kd = {
|
|
4869
4952
|
props: ["field", "row", "tdProps"]
|
|
4870
|
-
},
|
|
4871
|
-
function
|
|
4872
|
-
return s.row[s.field] ? (d(), u("div",
|
|
4873
|
-
t("div",
|
|
4953
|
+
}, $d = { key: 0 }, Cd = { class: "m-1 d-inline-block" }, Sd = ["href", "title"], Dd = ["src", "alt", "title"];
|
|
4954
|
+
function Od(e, r, s, n, o, a) {
|
|
4955
|
+
return s.row[s.field] ? (d(), u("div", $d, [
|
|
4956
|
+
t("div", Cd, [
|
|
4874
4957
|
t("a", {
|
|
4875
4958
|
href: s.row[s.field].url,
|
|
4876
4959
|
title: s.row[s.field].name,
|
|
@@ -4880,37 +4963,37 @@ function hd(e, r, s, n, o, a) {
|
|
|
4880
4963
|
src: s.row[s.field].thumbnail,
|
|
4881
4964
|
alt: s.row[s.field].name,
|
|
4882
4965
|
title: s.row[s.field].name
|
|
4883
|
-
}, null, 8,
|
|
4884
|
-
], 8,
|
|
4966
|
+
}, null, 8, Dd)
|
|
4967
|
+
], 8, Sd)
|
|
4885
4968
|
])
|
|
4886
4969
|
])) : g("", !0);
|
|
4887
4970
|
}
|
|
4888
|
-
const
|
|
4971
|
+
const zc = /* @__PURE__ */ O(kd, [["render", Od], ["__scopeId", "data-v-3a28c02c"]]), Pd = {
|
|
4889
4972
|
props: ["field", "row", "tdProps"],
|
|
4890
4973
|
computed: {
|
|
4891
4974
|
isActive() {
|
|
4892
4975
|
return this.row[this.field] === 1;
|
|
4893
4976
|
}
|
|
4894
4977
|
}
|
|
4895
|
-
},
|
|
4978
|
+
}, Ad = { class: "flex flex-wrap gap-2 text-nowrap" }, jd = {
|
|
4896
4979
|
key: 0,
|
|
4897
4980
|
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"
|
|
4898
|
-
},
|
|
4981
|
+
}, Ed = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Td = {
|
|
4899
4982
|
key: 1,
|
|
4900
4983
|
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"
|
|
4901
|
-
},
|
|
4902
|
-
function
|
|
4903
|
-
return d(), u("div",
|
|
4904
|
-
a.isActive ? (d(), u("span",
|
|
4905
|
-
|
|
4984
|
+
}, Ld = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
4985
|
+
function Md(e, r, s, n, o, a) {
|
|
4986
|
+
return d(), u("div", Ad, [
|
|
4987
|
+
a.isActive ? (d(), u("span", jd, [
|
|
4988
|
+
Ed,
|
|
4906
4989
|
$(" Active ")
|
|
4907
|
-
])) : a.isActive ? g("", !0) : (d(), u("span",
|
|
4908
|
-
|
|
4990
|
+
])) : a.isActive ? g("", !0) : (d(), u("span", Td, [
|
|
4991
|
+
Ld,
|
|
4909
4992
|
$(" Inactive ")
|
|
4910
4993
|
]))
|
|
4911
4994
|
]);
|
|
4912
4995
|
}
|
|
4913
|
-
const
|
|
4996
|
+
const Zc = /* @__PURE__ */ O(Pd, [["render", Md]]), Id = {
|
|
4914
4997
|
props: ["field", "row", "tdProps"],
|
|
4915
4998
|
computed: {
|
|
4916
4999
|
hasLabelColor(e) {
|
|
@@ -4920,50 +5003,50 @@ const jc = /* @__PURE__ */ O(md, [["render", xd]]), wd = {
|
|
|
4920
5003
|
return r ? r.class : "";
|
|
4921
5004
|
}
|
|
4922
5005
|
}
|
|
4923
|
-
},
|
|
5006
|
+
}, Nd = { class: "flex flex-wrap gap-2 text-nowrap" }, Vd = {
|
|
4924
5007
|
key: 0,
|
|
4925
5008
|
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"
|
|
4926
|
-
},
|
|
5009
|
+
}, Bd = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Gd = {
|
|
4927
5010
|
key: 1,
|
|
4928
5011
|
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"
|
|
4929
|
-
},
|
|
5012
|
+
}, Ud = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), Fd = {
|
|
4930
5013
|
key: 2,
|
|
4931
5014
|
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"
|
|
4932
|
-
},
|
|
5015
|
+
}, Rd = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), qd = {
|
|
4933
5016
|
key: 3,
|
|
4934
5017
|
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"
|
|
4935
|
-
},
|
|
5018
|
+
}, Hd = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1), zd = {
|
|
4936
5019
|
key: 4,
|
|
4937
5020
|
class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
|
|
4938
|
-
},
|
|
5021
|
+
}, Zd = /* @__PURE__ */ t("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
4939
5022
|
/* @__PURE__ */ t("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
4940
5023
|
/* @__PURE__ */ t("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
4941
5024
|
], -1);
|
|
4942
|
-
function
|
|
4943
|
-
return d(), u("div",
|
|
4944
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
4945
|
-
|
|
4946
|
-
$(" " +
|
|
5025
|
+
function Kd(e, r, s, n, o, a) {
|
|
5026
|
+
return d(), u("div", Nd, [
|
|
5027
|
+
a.hasLabelColor == "green" ? (d(), u("span", Vd, [
|
|
5028
|
+
Bd,
|
|
5029
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4947
5030
|
])) : g("", !0),
|
|
4948
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
4949
|
-
|
|
4950
|
-
$(" " +
|
|
5031
|
+
a.hasLabelColor == "red" ? (d(), u("span", Gd, [
|
|
5032
|
+
Ud,
|
|
5033
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4951
5034
|
])) : g("", !0),
|
|
4952
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
4953
|
-
|
|
4954
|
-
$(" " +
|
|
5035
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", Fd, [
|
|
5036
|
+
Rd,
|
|
5037
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4955
5038
|
])) : g("", !0),
|
|
4956
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
4957
|
-
|
|
4958
|
-
$(" " +
|
|
5039
|
+
a.hasLabelColor == "default" ? (d(), u("span", qd, [
|
|
5040
|
+
Hd,
|
|
5041
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4959
5042
|
])) : g("", !0),
|
|
4960
|
-
a.hasLabelColor == "animate" ? (d(), u("span",
|
|
4961
|
-
|
|
4962
|
-
$(" " +
|
|
5043
|
+
a.hasLabelColor == "animate" ? (d(), u("span", zd, [
|
|
5044
|
+
Zd,
|
|
5045
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4963
5046
|
])) : g("", !0)
|
|
4964
5047
|
]);
|
|
4965
5048
|
}
|
|
4966
|
-
const
|
|
5049
|
+
const Kc = /* @__PURE__ */ O(Id, [["render", Kd]]), Wd = {
|
|
4967
5050
|
props: ["field", "row", "tdProps"],
|
|
4968
5051
|
computed: {
|
|
4969
5052
|
hasLabelColor() {
|
|
@@ -4984,44 +5067,44 @@ const Ec = /* @__PURE__ */ O(wd, [["render", Td]]), Id = {
|
|
|
4984
5067
|
}
|
|
4985
5068
|
}
|
|
4986
5069
|
}
|
|
4987
|
-
},
|
|
4988
|
-
function
|
|
4989
|
-
return d(), u("div",
|
|
5070
|
+
}, Yd = { class: "flex flex-wrap gap-2 text-nowrap justify-center" };
|
|
5071
|
+
function Xd(e, r, s, n, o, a) {
|
|
5072
|
+
return d(), u("div", Yd, [
|
|
4990
5073
|
a.hasLabelColor == "Default" ? (d(), u("span", {
|
|
4991
5074
|
key: 0,
|
|
4992
5075
|
class: p(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400", a.badgeType])
|
|
4993
|
-
},
|
|
5076
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
4994
5077
|
a.hasLabelColor == "Dark" ? (d(), u("span", {
|
|
4995
5078
|
key: 1,
|
|
4996
5079
|
class: p(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500", a.badgeType])
|
|
4997
|
-
},
|
|
5080
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
4998
5081
|
a.hasLabelColor == "Red" ? (d(), u("span", {
|
|
4999
5082
|
key: 2,
|
|
5000
5083
|
class: p(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400", a.badgeType])
|
|
5001
|
-
},
|
|
5084
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5002
5085
|
a.hasLabelColor == "Green" ? (d(), u("span", {
|
|
5003
5086
|
key: 3,
|
|
5004
5087
|
class: p(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400", a.badgeType])
|
|
5005
|
-
},
|
|
5088
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5006
5089
|
a.hasLabelColor == "Yellow" ? (d(), u("span", {
|
|
5007
5090
|
key: 4,
|
|
5008
5091
|
class: p(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300", a.badgeType])
|
|
5009
|
-
},
|
|
5092
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5010
5093
|
a.hasLabelColor == "Indigo" ? (d(), u("span", {
|
|
5011
5094
|
key: 5,
|
|
5012
5095
|
class: p(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400", a.badgeType])
|
|
5013
|
-
},
|
|
5096
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5014
5097
|
a.hasLabelColor == "Purple" ? (d(), u("span", {
|
|
5015
5098
|
key: 6,
|
|
5016
5099
|
class: p(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400", a.badgeType])
|
|
5017
|
-
},
|
|
5100
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5018
5101
|
a.hasLabelColor == "Pink" ? (d(), u("span", {
|
|
5019
5102
|
key: 7,
|
|
5020
5103
|
class: p(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400", a.badgeType])
|
|
5021
|
-
},
|
|
5104
|
+
}, f(this.row[this.field]), 3)) : g("", !0)
|
|
5022
5105
|
]);
|
|
5023
5106
|
}
|
|
5024
|
-
const
|
|
5107
|
+
const Wc = /* @__PURE__ */ O(Wd, [["render", Xd]]), Jd = {
|
|
5025
5108
|
props: ["field", "row", "tdProps"],
|
|
5026
5109
|
computed: {
|
|
5027
5110
|
hasLabelColor(e) {
|
|
@@ -5037,50 +5120,50 @@ const Lc = /* @__PURE__ */ O(Id, [["render", Nd]]), Vd = {
|
|
|
5037
5120
|
return e ? e.label : "";
|
|
5038
5121
|
}
|
|
5039
5122
|
}
|
|
5040
|
-
},
|
|
5123
|
+
}, Qd = { class: "flex flex-wrap gap-2 text-nowrap" }, eu = {
|
|
5041
5124
|
key: 0,
|
|
5042
5125
|
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"
|
|
5043
|
-
},
|
|
5126
|
+
}, tu = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), ru = {
|
|
5044
5127
|
key: 1,
|
|
5045
5128
|
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"
|
|
5046
|
-
},
|
|
5129
|
+
}, su = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), au = {
|
|
5047
5130
|
key: 2,
|
|
5048
5131
|
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"
|
|
5049
|
-
},
|
|
5132
|
+
}, nu = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), ou = {
|
|
5050
5133
|
key: 3,
|
|
5051
5134
|
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"
|
|
5052
|
-
},
|
|
5135
|
+
}, lu = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1), iu = {
|
|
5053
5136
|
key: 4,
|
|
5054
5137
|
class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
|
|
5055
|
-
},
|
|
5138
|
+
}, du = /* @__PURE__ */ t("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
5056
5139
|
/* @__PURE__ */ t("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
5057
5140
|
/* @__PURE__ */ t("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
5058
5141
|
], -1);
|
|
5059
|
-
function
|
|
5060
|
-
return d(), u("div",
|
|
5061
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
5062
|
-
|
|
5063
|
-
$(" " +
|
|
5142
|
+
function uu(e, r, s, n, o, a) {
|
|
5143
|
+
return d(), u("div", Qd, [
|
|
5144
|
+
a.hasLabelColor == "green" ? (d(), u("span", eu, [
|
|
5145
|
+
tu,
|
|
5146
|
+
$(" " + f(a.getLabel), 1)
|
|
5064
5147
|
])) : g("", !0),
|
|
5065
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
5066
|
-
|
|
5067
|
-
$(" " +
|
|
5148
|
+
a.hasLabelColor == "red" ? (d(), u("span", ru, [
|
|
5149
|
+
su,
|
|
5150
|
+
$(" " + f(a.getLabel), 1)
|
|
5068
5151
|
])) : g("", !0),
|
|
5069
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
5070
|
-
|
|
5071
|
-
$(" " +
|
|
5152
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", au, [
|
|
5153
|
+
nu,
|
|
5154
|
+
$(" " + f(a.getLabel), 1)
|
|
5072
5155
|
])) : g("", !0),
|
|
5073
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
5074
|
-
|
|
5075
|
-
$(" " +
|
|
5156
|
+
a.hasLabelColor == "default" ? (d(), u("span", ou, [
|
|
5157
|
+
lu,
|
|
5158
|
+
$(" " + f(a.getLabel), 1)
|
|
5076
5159
|
])) : g("", !0),
|
|
5077
|
-
a.hasLabelColor == "animate" ? (d(), u("span",
|
|
5078
|
-
|
|
5079
|
-
$(" " +
|
|
5160
|
+
a.hasLabelColor == "animate" ? (d(), u("span", iu, [
|
|
5161
|
+
du,
|
|
5162
|
+
$(" " + f(a.getLabel), 1)
|
|
5080
5163
|
])) : g("", !0)
|
|
5081
5164
|
]);
|
|
5082
5165
|
}
|
|
5083
|
-
const
|
|
5166
|
+
const Yc = /* @__PURE__ */ O(Jd, [["render", uu]]), cu = {
|
|
5084
5167
|
props: ["field", "row", "tdProps"],
|
|
5085
5168
|
computed: {
|
|
5086
5169
|
formattedDate() {
|
|
@@ -5095,54 +5178,54 @@ const Tc = /* @__PURE__ */ O(Vd, [["render", Yd]]), Xd = {
|
|
|
5095
5178
|
return this.row[this.field] === 1;
|
|
5096
5179
|
}
|
|
5097
5180
|
}
|
|
5098
|
-
},
|
|
5099
|
-
function
|
|
5100
|
-
return d(), u("div",
|
|
5181
|
+
}, gu = { class: "w-full" };
|
|
5182
|
+
function fu(e, r, s, n, o, a) {
|
|
5183
|
+
return d(), u("div", gu, f(a.formattedDate), 1);
|
|
5101
5184
|
}
|
|
5102
|
-
const
|
|
5185
|
+
const Xc = /* @__PURE__ */ O(cu, [["render", fu]]), hu = {
|
|
5103
5186
|
props: ["field", "row", "tdProps"]
|
|
5104
|
-
},
|
|
5187
|
+
}, mu = { class: "flex flex-wrap gap-2 text-nowrap" }, bu = {
|
|
5105
5188
|
key: 0,
|
|
5106
5189
|
class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
|
|
5107
|
-
},
|
|
5190
|
+
}, pu = /* @__PURE__ */ t("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
5108
5191
|
/* @__PURE__ */ t("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
5109
5192
|
/* @__PURE__ */ t("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
5110
|
-
], -1),
|
|
5193
|
+
], -1), yu = {
|
|
5111
5194
|
key: 1,
|
|
5112
5195
|
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"
|
|
5113
|
-
},
|
|
5196
|
+
}, _u = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), vu = {
|
|
5114
5197
|
key: 2,
|
|
5115
5198
|
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"
|
|
5116
|
-
},
|
|
5117
|
-
function
|
|
5118
|
-
return d(), u("div",
|
|
5119
|
-
s.row[s.field] === 0 ? (d(), u("span",
|
|
5120
|
-
|
|
5199
|
+
}, xu = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
5200
|
+
function wu(e, r, s, n, o, a) {
|
|
5201
|
+
return d(), u("div", mu, [
|
|
5202
|
+
s.row[s.field] === 0 ? (d(), u("span", bu, [
|
|
5203
|
+
pu,
|
|
5121
5204
|
$(" Provisioning")
|
|
5122
5205
|
])) : g("", !0),
|
|
5123
|
-
s.row[s.field] === 2 ? (d(), u("span",
|
|
5124
|
-
|
|
5206
|
+
s.row[s.field] === 2 ? (d(), u("span", yu, [
|
|
5207
|
+
_u,
|
|
5125
5208
|
$(" Paused ")
|
|
5126
5209
|
])) : g("", !0),
|
|
5127
|
-
s.row[s.field] === 1 ? (d(), u("span",
|
|
5128
|
-
|
|
5210
|
+
s.row[s.field] === 1 ? (d(), u("span", vu, [
|
|
5211
|
+
xu,
|
|
5129
5212
|
$(" Active ")
|
|
5130
5213
|
])) : g("", !0)
|
|
5131
5214
|
]);
|
|
5132
5215
|
}
|
|
5133
|
-
const
|
|
5216
|
+
const Jc = /* @__PURE__ */ O(hu, [["render", wu]]), ku = {
|
|
5134
5217
|
props: ["field", "row", "tdProps"]
|
|
5135
|
-
},
|
|
5218
|
+
}, $u = {
|
|
5136
5219
|
key: 0,
|
|
5137
5220
|
class: "text-nowrap"
|
|
5138
|
-
},
|
|
5139
|
-
function
|
|
5140
|
-
return s.row[s.field] ? (d(), u("div",
|
|
5141
|
-
t("pre",
|
|
5221
|
+
}, Cu = { class: "w-full h-full p-3 mx-0 mt-0 overflow-auto font-mono text-left break-words rounded cursor-default whitespace-nowrap console_styles" };
|
|
5222
|
+
function Su(e, r, s, n, o, a) {
|
|
5223
|
+
return s.row[s.field] ? (d(), u("div", $u, [
|
|
5224
|
+
t("pre", Cu, " " + f(s.row[s.field]) + `
|
|
5142
5225
|
`, 1)
|
|
5143
5226
|
])) : g("", !0);
|
|
5144
5227
|
}
|
|
5145
|
-
const
|
|
5228
|
+
const Qc = /* @__PURE__ */ O(ku, [["render", Su]]), Du = {
|
|
5146
5229
|
props: ["isOpen", "title", "button_text"],
|
|
5147
5230
|
methods: {
|
|
5148
5231
|
confirmAction() {
|
|
@@ -5152,40 +5235,40 @@ const Nc = /* @__PURE__ */ O(du, [["render", gu]]), fu = {
|
|
|
5152
5235
|
this.$emit("cancel-action");
|
|
5153
5236
|
}
|
|
5154
5237
|
}
|
|
5155
|
-
},
|
|
5238
|
+
}, Ou = {
|
|
5156
5239
|
key: 0,
|
|
5157
5240
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
5158
5241
|
role: "dialog",
|
|
5159
5242
|
"aria-modal": "true"
|
|
5160
|
-
},
|
|
5243
|
+
}, Pu = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, Au = /* @__PURE__ */ t("div", {
|
|
5161
5244
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
5162
5245
|
"aria-hidden": "true"
|
|
5163
|
-
}, null, -1),
|
|
5246
|
+
}, null, -1), ju = /* @__PURE__ */ t("span", {
|
|
5164
5247
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
5165
5248
|
"aria-hidden": "true"
|
|
5166
|
-
}, "", -1),
|
|
5167
|
-
function
|
|
5168
|
-
return s.isOpen ? (d(), u("div",
|
|
5169
|
-
t("div",
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
t("div",
|
|
5173
|
-
t("div",
|
|
5174
|
-
t("div",
|
|
5175
|
-
t("div",
|
|
5176
|
-
t("h3",
|
|
5177
|
-
t("div",
|
|
5178
|
-
|
|
5249
|
+
}, "", -1), Eu = { 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" }, Tu = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, Lu = { class: "sm:flex sm:items-start" }, Mu = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Iu = { class: "text-lg font-medium leading-6 text-gray-900" }, Nu = { class: "mt-2" }, Vu = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
5250
|
+
function Bu(e, r, s, n, o, a) {
|
|
5251
|
+
return s.isOpen ? (d(), u("div", Ou, [
|
|
5252
|
+
t("div", Pu, [
|
|
5253
|
+
Au,
|
|
5254
|
+
ju,
|
|
5255
|
+
t("div", Eu, [
|
|
5256
|
+
t("div", Tu, [
|
|
5257
|
+
t("div", Lu, [
|
|
5258
|
+
t("div", Mu, [
|
|
5259
|
+
t("h3", Iu, f(s.title), 1),
|
|
5260
|
+
t("div", Nu, [
|
|
5261
|
+
M(e.$slots, "default")
|
|
5179
5262
|
])
|
|
5180
5263
|
])
|
|
5181
5264
|
])
|
|
5182
5265
|
]),
|
|
5183
|
-
t("div",
|
|
5266
|
+
t("div", Vu, [
|
|
5184
5267
|
t("button", {
|
|
5185
5268
|
onClick: r[0] || (r[0] = (...i) => a.confirmAction && a.confirmAction(...i)),
|
|
5186
5269
|
type: "button",
|
|
5187
5270
|
class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
5188
|
-
},
|
|
5271
|
+
}, f(s.button_text), 1),
|
|
5189
5272
|
t("button", {
|
|
5190
5273
|
onClick: r[1] || (r[1] = (...i) => a.cancelAction && a.cancelAction(...i)),
|
|
5191
5274
|
type: "button",
|
|
@@ -5196,10 +5279,10 @@ function Cu(e, r, s, n, o, a) {
|
|
|
5196
5279
|
])
|
|
5197
5280
|
])) : g("", !0);
|
|
5198
5281
|
}
|
|
5199
|
-
const
|
|
5282
|
+
const e0 = /* @__PURE__ */ O(Du, [["render", Bu]]), Gu = { class: "w-full" }, Uu = { class: "mb-2 flex justify-between items-center" }, Fu = { class: "text-sm font-medium text-gray-900 dark:text-white" }, Ru = { class: "relative bg-gray-50 rounded-lg dark:bg-gray-700 p-4 h-auto" }, qu = { class: "overflow-auto max-h-32" }, Hu = { class: "text-sm text-gray-500 dark:text-gray-400" }, zu = { class: "absolute top-2 end-2 bg-gray-50 dark:bg-gray-700" }, Zu = {
|
|
5200
5283
|
key: 0,
|
|
5201
5284
|
class: "inline-flex items-center"
|
|
5202
|
-
},
|
|
5285
|
+
}, Ku = /* @__PURE__ */ t("svg", {
|
|
5203
5286
|
class: "w-3 h-3 me-2",
|
|
5204
5287
|
"aria-hidden": "true",
|
|
5205
5288
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5207,13 +5290,13 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5207
5290
|
viewBox: "0 0 18 20"
|
|
5208
5291
|
}, [
|
|
5209
5292
|
/* @__PURE__ */ t("path", { d: "M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z" })
|
|
5210
|
-
], -1),
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
],
|
|
5293
|
+
], -1), Wu = /* @__PURE__ */ t("span", { class: "text-xs font-semibold" }, "Copy", -1), Yu = [
|
|
5294
|
+
Ku,
|
|
5295
|
+
Wu
|
|
5296
|
+
], Xu = {
|
|
5214
5297
|
key: 1,
|
|
5215
5298
|
class: "inline-flex items-center"
|
|
5216
|
-
},
|
|
5299
|
+
}, Ju = /* @__PURE__ */ t("svg", {
|
|
5217
5300
|
class: "w-3 h-3 text-blue-700 dark:text-blue-500 me-2",
|
|
5218
5301
|
"aria-hidden": "true",
|
|
5219
5302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5227,10 +5310,10 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5227
5310
|
"stroke-width": "2",
|
|
5228
5311
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
5229
5312
|
})
|
|
5230
|
-
], -1),
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
],
|
|
5313
|
+
], -1), Qu = /* @__PURE__ */ t("span", { class: "text-xs font-semibold text-blue-700 dark:text-blue-500" }, "Copied", -1), ec = [
|
|
5314
|
+
Ju,
|
|
5315
|
+
Qu
|
|
5316
|
+
], tc = { class: "mt-2 text-sm text-gray-500 dark:text-gray-400" }, t0 = {
|
|
5234
5317
|
__name: "GlCodeCopy",
|
|
5235
5318
|
props: {
|
|
5236
5319
|
label_name: {
|
|
@@ -5255,29 +5338,29 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5255
5338
|
}).catch(function(i) {
|
|
5256
5339
|
console.error("Error copying to clipboard: ", i);
|
|
5257
5340
|
});
|
|
5258
|
-
}, o =
|
|
5259
|
-
return (a, i) => (d(), u("div",
|
|
5260
|
-
t("div",
|
|
5261
|
-
t("p",
|
|
5341
|
+
}, o = L(() => r.code);
|
|
5342
|
+
return (a, i) => (d(), u("div", Gu, [
|
|
5343
|
+
t("div", Uu, [
|
|
5344
|
+
t("p", Fu, f(e.label_name), 1)
|
|
5262
5345
|
]),
|
|
5263
|
-
t("div",
|
|
5264
|
-
t("div",
|
|
5265
|
-
t("code",
|
|
5346
|
+
t("div", Ru, [
|
|
5347
|
+
t("div", qu, [
|
|
5348
|
+
t("code", Hu, f(o.value), 1)
|
|
5266
5349
|
]),
|
|
5267
|
-
t("div",
|
|
5350
|
+
t("div", zu, [
|
|
5268
5351
|
t("button", {
|
|
5269
5352
|
onClick: i[0] || (i[0] = (l) => n(o.value)),
|
|
5270
5353
|
class: "text-gray-900 dark:text-gray-400 m-1 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-3 inline-flex items-center justify-center bg-white border-gray-200 border"
|
|
5271
5354
|
}, [
|
|
5272
|
-
s.value ? g("", !0) : (d(), u("span",
|
|
5273
|
-
s.value ? (d(), u("span",
|
|
5355
|
+
s.value ? g("", !0) : (d(), u("span", Zu, Yu)),
|
|
5356
|
+
s.value ? (d(), u("span", Xu, ec)) : g("", !0)
|
|
5274
5357
|
])
|
|
5275
5358
|
])
|
|
5276
5359
|
]),
|
|
5277
|
-
t("p",
|
|
5360
|
+
t("p", tc, f(e.description), 1)
|
|
5278
5361
|
]));
|
|
5279
5362
|
}
|
|
5280
|
-
},
|
|
5363
|
+
}, rc = { class: "w-full" }, sc = { class: "flex justify-between items-center" }, ac = { class: "gl-label-form" }, nc = { class: "flex items-center" }, oc = { class: "flex-shrink-0 z-10 inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-gray-100 border border-gray-300 rounded-s-lg dark:bg-gray-600 dark:text-white dark:border-gray-600" }, lc = { class: "relative w-full" }, ic = ["value"], dc = { key: 0 }, uc = /* @__PURE__ */ t("svg", {
|
|
5281
5364
|
class: "w-4 h-4",
|
|
5282
5365
|
"aria-hidden": "true",
|
|
5283
5366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5285,12 +5368,12 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5285
5368
|
viewBox: "0 0 18 20"
|
|
5286
5369
|
}, [
|
|
5287
5370
|
/* @__PURE__ */ t("path", { d: "M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z" })
|
|
5288
|
-
], -1),
|
|
5289
|
-
|
|
5290
|
-
],
|
|
5371
|
+
], -1), cc = [
|
|
5372
|
+
uc
|
|
5373
|
+
], gc = {
|
|
5291
5374
|
key: 1,
|
|
5292
5375
|
class: "inline-flex items-center"
|
|
5293
|
-
},
|
|
5376
|
+
}, fc = /* @__PURE__ */ t("svg", {
|
|
5294
5377
|
class: "w-4 h-4",
|
|
5295
5378
|
"aria-hidden": "true",
|
|
5296
5379
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5304,9 +5387,9 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5304
5387
|
"stroke-width": "2",
|
|
5305
5388
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
5306
5389
|
})
|
|
5307
|
-
], -1),
|
|
5308
|
-
|
|
5309
|
-
],
|
|
5390
|
+
], -1), hc = [
|
|
5391
|
+
fc
|
|
5392
|
+
], mc = { class: "mt-2 text-sm text-gray-500 dark:text-gray-400" }, r0 = {
|
|
5310
5393
|
__name: "GlTextCopy",
|
|
5311
5394
|
props: {
|
|
5312
5395
|
label_name: {
|
|
@@ -5335,14 +5418,14 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5335
5418
|
}).catch(function(i) {
|
|
5336
5419
|
console.error("Error copying to clipboard: ", i);
|
|
5337
5420
|
});
|
|
5338
|
-
}, o =
|
|
5339
|
-
return (a, i) => (d(), u("div",
|
|
5340
|
-
t("div",
|
|
5341
|
-
t("label",
|
|
5421
|
+
}, o = L(() => r.code);
|
|
5422
|
+
return (a, i) => (d(), u("div", rc, [
|
|
5423
|
+
t("div", sc, [
|
|
5424
|
+
t("label", ac, f(e.label_name), 1)
|
|
5342
5425
|
]),
|
|
5343
|
-
t("div",
|
|
5344
|
-
t("span",
|
|
5345
|
-
t("div",
|
|
5426
|
+
t("div", nc, [
|
|
5427
|
+
t("span", oc, f(e.text_name), 1),
|
|
5428
|
+
t("div", lc, [
|
|
5346
5429
|
t("input", {
|
|
5347
5430
|
type: "text",
|
|
5348
5431
|
"aria-describedby": "helper-text-explanation",
|
|
@@ -5350,7 +5433,7 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5350
5433
|
value: o.value,
|
|
5351
5434
|
readonly: "",
|
|
5352
5435
|
disabled: ""
|
|
5353
|
-
}, null, 8,
|
|
5436
|
+
}, null, 8, ic)
|
|
5354
5437
|
]),
|
|
5355
5438
|
t("button", {
|
|
5356
5439
|
style: { padding: ".61rem" },
|
|
@@ -5358,54 +5441,56 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5358
5441
|
class: "flex-shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-blue-700 rounded-e-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 border border-blue-700 dark:border-blue-600 hover:border-blue-800 dark:hover:border-blue-700",
|
|
5359
5442
|
type: "button"
|
|
5360
5443
|
}, [
|
|
5361
|
-
s.value ? g("", !0) : (d(), u("span",
|
|
5362
|
-
s.value ? (d(), u("span",
|
|
5444
|
+
s.value ? g("", !0) : (d(), u("span", dc, cc)),
|
|
5445
|
+
s.value ? (d(), u("span", gc, hc)) : g("", !0)
|
|
5363
5446
|
])
|
|
5364
5447
|
]),
|
|
5365
|
-
t("p",
|
|
5448
|
+
t("p", mc, f(e.description), 1)
|
|
5366
5449
|
]));
|
|
5367
5450
|
}
|
|
5368
5451
|
};
|
|
5369
5452
|
export {
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5453
|
+
Yc as DatatableStatusTextLabelGeneral,
|
|
5454
|
+
Qc as GLDatatableCommand,
|
|
5455
|
+
Xc as GLDatatableDateTime,
|
|
5456
|
+
Jc as GLDatatableStatusServer,
|
|
5457
|
+
Vc as GlAccordion,
|
|
5458
|
+
Nc as GlAccordionsWrapper,
|
|
5459
|
+
wc as GlButton,
|
|
5460
|
+
vc as GlCard,
|
|
5461
|
+
t0 as GlCodeCopy,
|
|
5462
|
+
e0 as GlConfirmationModal,
|
|
5463
|
+
Ic as GlDataTable,
|
|
5464
|
+
Lc as GlDataTableServerSide,
|
|
5465
|
+
Mc as GlDataTableServerSideGroupBy,
|
|
5466
|
+
Gc as GlDatatableAction,
|
|
5467
|
+
Uc as GlDatatableDeleteAction,
|
|
5468
|
+
Fc as GlDatatableFileDownload,
|
|
5469
|
+
Rc as GlDatatableFiles,
|
|
5470
|
+
qc as GlDatatableHtml,
|
|
5471
|
+
Hc as GlDatatableList,
|
|
5472
|
+
zc as GlDatatablePicture,
|
|
5473
|
+
Zc as GlDatatableStatus,
|
|
5474
|
+
Kc as GlDatatableStatusGeneral,
|
|
5475
|
+
Wc as GlDatatableStatusSpecficColor,
|
|
5476
|
+
we as GlDeleteConfirmationModal,
|
|
5477
|
+
Ec as GlDropdown,
|
|
5478
|
+
pc as GlFilesUpload,
|
|
5479
|
+
_c as GlLanguageSelector,
|
|
5480
|
+
Ac as GlModal,
|
|
5481
|
+
Pc as GlMultiItemSlide,
|
|
5482
|
+
xc as GlMultiSelectDropdown,
|
|
5483
|
+
yc as GlNotify,
|
|
5484
|
+
Oc as GlTab,
|
|
5485
|
+
Dc as GlTabsWrapper,
|
|
5486
|
+
et as GlTailwindPagination,
|
|
5487
|
+
r0 as GlTextCopy,
|
|
5488
|
+
Sc as GlTextInput,
|
|
5489
|
+
Cc as GlTextTranslate,
|
|
5490
|
+
Tc as GlTextarea,
|
|
5491
|
+
kc as GlTextareaTranslate,
|
|
5492
|
+
$c as GlTinymceTranslate,
|
|
5493
|
+
Ee as GlToast,
|
|
5494
|
+
Bc as GlToastList,
|
|
5495
|
+
jc as GlToggleBox
|
|
5411
5496
|
};
|