golden-logic-ui 1.0.134 → 1.0.136
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 +881 -769
- 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 M, reactive as Te, resolveComponent as z, Fragment as v, createVNode as R, normalizeClass as p, toDisplayString as f, withModifiers as F, withDirectives as j, vModelText as G, renderList as S, normalizeStyle as st, renderSlot as T, 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] = M(function() {
|
|
191
191
|
return i[m]();
|
|
192
192
|
}), Object.defineProperty(e.getters, m, {
|
|
193
193
|
get: function() {
|
|
@@ -197,53 +197,53 @@ 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 = jt(e, i, s);
|
|
217
217
|
n.forEachMutation(function(m, _) {
|
|
218
|
-
var
|
|
219
|
-
|
|
218
|
+
var x = i + _;
|
|
219
|
+
At(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
|
});
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function jt(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) {
|
|
@@ -278,7 +278,7 @@ function Fe(e, r) {
|
|
|
278
278
|
}
|
|
279
279
|
return e._makeLocalGettersCache[r];
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function At(e, r, s, n) {
|
|
282
282
|
var o = e._mutations[r] || (e._mutations[r] = []);
|
|
283
283
|
o.push(function(i) {
|
|
284
284
|
s.call(e, n.state, i);
|
|
@@ -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 je = {
|
|
638
638
|
assert: function(e) {
|
|
639
639
|
return typeof e == "function";
|
|
640
640
|
},
|
|
@@ -645,11 +645,11 @@ var Pe = {
|
|
|
645
645
|
},
|
|
646
646
|
expected: 'function or object with "handler" function'
|
|
647
647
|
}, Ae = {
|
|
648
|
-
getters:
|
|
649
|
-
mutations:
|
|
648
|
+
getters: je,
|
|
649
|
+
mutations: je,
|
|
650
650
|
actions: Rt
|
|
651
651
|
};
|
|
652
|
-
function
|
|
652
|
+
function Ye(e, r) {
|
|
653
653
|
Object.keys(Ae).forEach(function(s) {
|
|
654
654
|
if (r[s]) {
|
|
655
655
|
var n = Ae[s];
|
|
@@ -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"])),
|
|
@@ -1060,7 +1060,7 @@ function kr(e, r, s, n, o, a) {
|
|
|
1060
1060
|
multiple: s.has_multiple_file,
|
|
1061
1061
|
onChange: r[0] || (r[0] = (...l) => a.uploadFiles && a.uploadFiles(...l))
|
|
1062
1062
|
}, null, 40, Wt),
|
|
1063
|
-
|
|
1063
|
+
j(t("input", {
|
|
1064
1064
|
type: "hidden",
|
|
1065
1065
|
name: s.field_name,
|
|
1066
1066
|
"onUpdate:modelValue": r[1] || (r[1] = (l) => a.uploadedFileIds = l)
|
|
@@ -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 $c = /* @__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
|
}
|
|
@@ -1192,11 +1192,11 @@ const sc = /* @__PURE__ */ O(Zt, [["render", kr]]), $r = {
|
|
|
1192
1192
|
"stroke-width": "2",
|
|
1193
1193
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
1194
1194
|
})
|
|
1195
|
-
], -1),
|
|
1195
|
+
], -1), jr = [
|
|
1196
1196
|
Or,
|
|
1197
1197
|
Pr
|
|
1198
1198
|
];
|
|
1199
|
-
function
|
|
1199
|
+
function Ar(e, r, s, n, o, a) {
|
|
1200
1200
|
return e.notification.show ? (d(), u("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
1202
|
class: p(["fixed right-0 z-50 flex items-center p-4 m-5 mb-4 rounded-lg shadow-lg", a.alertClasses]),
|
|
@@ -1204,16 +1204,16 @@ 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)),
|
|
1211
1211
|
class: p(["inline-flex items-center justify-center w-6 h-6 p-1 -mx-1 -my-1 rounded-lg ms-auto focus:ring-2 hover:bg-opacity-50", a.buttonClasses]),
|
|
1212
1212
|
"aria-label": "Close"
|
|
1213
|
-
},
|
|
1213
|
+
}, jr, 2)
|
|
1214
1214
|
], 2)) : g("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const Cc = /* @__PURE__ */ O($r, [["render", Ar]]), 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 Sc = /* @__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
|
+
}, Dc = {
|
|
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 = M(() => 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
|
+
T(n.$slots, "header")
|
|
1295
1295
|
])
|
|
1296
1296
|
]),
|
|
1297
1297
|
n.$slots.body ? (d(), u("div", Gr, [
|
|
1298
|
-
|
|
1298
|
+
T(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-
|
|
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"], Oc = {
|
|
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 _ = M(() => y()), x = M(() => P()), D = M(() => {
|
|
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
|
-
function
|
|
1482
|
+
function A(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,41 +1493,41 @@ 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),
|
|
1513
1513
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1514
1514
|
key: 1,
|
|
1515
|
-
class: p(
|
|
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))
|
|
@@ -1565,37 +1565,37 @@ const nc = /* @__PURE__ */ O(Er, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1565
1565
|
style: { top: "11px" }
|
|
1566
1566
|
}, null, 2)
|
|
1567
1567
|
]),
|
|
1568
|
-
|
|
1568
|
+
j(t("div", Yr, [
|
|
1569
1569
|
t("div", Xr, [
|
|
1570
1570
|
Jr,
|
|
1571
1571
|
t("div", Qr, [
|
|
1572
1572
|
es,
|
|
1573
|
-
|
|
1573
|
+
j(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) => A(k),
|
|
1595
|
+
onMousedown: (De) => A(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
|
+
T(e.$slots, "default")
|
|
1706
1706
|
]),
|
|
1707
1707
|
_: 3
|
|
1708
1708
|
}, 16, ["type", "disabled", "href", "class"]));
|
|
1709
1709
|
}
|
|
1710
|
-
const
|
|
1710
|
+
const Pc = /* @__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" }, jc = {
|
|
1711
1711
|
__name: "GlTextareaTranslate",
|
|
1712
1712
|
props: {
|
|
1713
1713
|
is_required: {
|
|
@@ -1776,27 +1776,27 @@ 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,
|
|
1785
|
-
|
|
1784
|
+
t("h3", ls, f(e.label_name), 1),
|
|
1785
|
+
j(t("input", {
|
|
1786
1786
|
type: "hidden",
|
|
1787
1787
|
"data-i18n": "true",
|
|
1788
1788
|
name: e.field_name + "_i18n",
|
|
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" }, Ac = {
|
|
1847
1847
|
__name: "GlTinymceTranslate",
|
|
1848
1848
|
props: {
|
|
1849
1849
|
is_required: {
|
|
@@ -1916,27 +1916,27 @@ 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,
|
|
1925
|
-
|
|
1924
|
+
t("h3", ps, f(e.label_name), 1),
|
|
1925
|
+
j(t("input", {
|
|
1926
1926
|
type: "hidden",
|
|
1927
1927
|
"data-i18n": "true",
|
|
1928
1928
|
name: e.field_name + "_i18n",
|
|
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"],
|
|
1985
|
+
}, Ds = { class: "font-bold ptext-lg dark:text-white" }, Os = ["name", "id"], Ps = ["id"], js = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), As = ["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" }, Ec = {
|
|
1986
1986
|
__name: "GlTextTranslate",
|
|
1987
1987
|
props: {
|
|
1988
1988
|
is_required: {
|
|
@@ -2051,27 +2051,27 @@ 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,
|
|
2060
|
-
|
|
2059
|
+
t("h3", Ds, f(e.label_name), 1),
|
|
2060
|
+
j(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
|
-
},
|
|
2074
|
-
|
|
2073
|
+
}, f(e.model_value), 9, Ps),
|
|
2074
|
+
js
|
|
2075
2075
|
], 2)) : g("", !0),
|
|
2076
2076
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2077
2077
|
key: 1,
|
|
@@ -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, As),
|
|
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" }, Tc = {
|
|
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 = M({
|
|
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,8 +2193,8 @@ 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
|
-
},
|
|
2197
|
-
|
|
2196
|
+
}, f(e.label_name), 11, Gs),
|
|
2197
|
+
j(t("input", {
|
|
2198
2198
|
required: e.is_required,
|
|
2199
2199
|
name: e.field_name,
|
|
2200
2200
|
id: 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
|
+
T(e.$slots, "default")
|
|
2254
2254
|
])
|
|
2255
2255
|
])
|
|
2256
2256
|
])
|
|
2257
2257
|
], 64);
|
|
2258
2258
|
}
|
|
2259
|
-
const
|
|
2259
|
+
const Lc = /* @__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
|
+
T(e.$slots, "default")
|
|
2273
2273
|
])) : g("", !0);
|
|
2274
2274
|
}
|
|
2275
|
-
const
|
|
2275
|
+
const Mc = /* @__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";
|
|
@@ -2458,17 +2458,17 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
2458
2458
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2459
2459
|
}, null, -1)), Da = [
|
|
2460
2460
|
Sa
|
|
2461
|
-
], Oa = ["onClick"], Pa = /* @__PURE__ */ L(() => /* @__PURE__ */ t("span", null, null, -1)),
|
|
2461
|
+
], Oa = ["onClick"], Pa = /* @__PURE__ */ L(() => /* @__PURE__ */ t("span", null, null, -1)), ja = [
|
|
2462
2462
|
Pa
|
|
2463
|
-
],
|
|
2463
|
+
], Aa = {
|
|
2464
2464
|
key: 1,
|
|
2465
2465
|
class: "flex justify-between pl-5 pr-5"
|
|
2466
|
-
}, Ea = ["onClick"],
|
|
2467
|
-
|
|
2468
|
-
],
|
|
2466
|
+
}, Ea = ["onClick"], Ta = /* @__PURE__ */ L(() => /* @__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",
|
|
@@ -2496,7 +2496,7 @@ const hc = /* @__PURE__ */ O(Qs, [["render", ta]]), ra = {
|
|
|
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",
|
|
@@ -2595,7 +2595,7 @@ function on(e, r, s, n, o, a) {
|
|
|
2595
2595
|
])
|
|
2596
2596
|
])
|
|
2597
2597
|
], 2)) : g("", !0),
|
|
2598
|
-
|
|
2598
|
+
T(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,26 +2615,26 @@ 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,
|
|
2622
2622
|
onClick: (l) => a.setDot(i)
|
|
2623
|
-
},
|
|
2623
|
+
}, ja, 10, Oa))), 128))
|
|
2624
2624
|
], 2)) : g("", !0),
|
|
2625
|
-
s.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div",
|
|
2625
|
+
s.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Aa, [
|
|
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 Ic = /* @__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" }, Nc = {
|
|
2697
2697
|
__name: "GlModal",
|
|
2698
2698
|
props: {
|
|
2699
2699
|
is_open: {
|
|
@@ -2722,19 +2722,19 @@ 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();
|
|
2729
2729
|
},
|
|
2730
2730
|
{ immediate: !0, deep: !0 }
|
|
2731
|
-
), (l, c) =>
|
|
2731
|
+
), (l, c) => j((d(), u("div", ln, [
|
|
2732
2732
|
t("div", {
|
|
2733
2733
|
class: p(["pointer-events-none relative h-[calc(100%-1rem)] w-auto translate-y-[-50px] transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:h-[calc(100%-3.5rem)]", e.max_width])
|
|
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
|
+
T(l.$slots, "body")
|
|
2749
2749
|
], 2),
|
|
2750
2750
|
t("div", hn, [
|
|
2751
|
-
|
|
2751
|
+
T(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" }, Vc = {
|
|
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 = M({
|
|
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,12 +2850,12 @@ 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
|
+
j(t("input", {
|
|
2859
2859
|
type: "checkbox",
|
|
2860
2860
|
class: "sr-only peer",
|
|
2861
2861
|
name: e.field_name,
|
|
@@ -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" },
|
|
2879
|
+
}, On = { class: "font-bold ptext-lg dark:text-white" }, Pn = { class: "mt-3 mb-4" }, jn = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, An = /* @__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" }, Bc = {
|
|
2917
2917
|
__name: "GlDropdown",
|
|
2918
2918
|
props: {
|
|
2919
2919
|
modelValue: {
|
|
@@ -2973,23 +2973,23 @@ 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 = M(() => fe()), _ = M(() => he()), x = M(() => {
|
|
2985
2985
|
const y = [], P = new RegExp(c.value, "ig");
|
|
2986
|
-
for (const
|
|
2987
|
-
const U = String(
|
|
2988
|
-
(c.value.length < 1 || U.match(P)) && y.length < s.maxItem && y.push(
|
|
2986
|
+
for (const A of m.value) {
|
|
2987
|
+
const U = String(A.name);
|
|
2988
|
+
(c.value.length < 1 || U.match(P)) && y.length < s.maxItem && y.push(A);
|
|
2989
2989
|
}
|
|
2990
2990
|
return y;
|
|
2991
2991
|
});
|
|
2992
|
-
function
|
|
2992
|
+
function D(y) {
|
|
2993
2993
|
if ([
|
|
2994
2994
|
"ArrowLeft",
|
|
2995
2995
|
"ArrowUp",
|
|
@@ -3002,13 +3002,13 @@ 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,
|
|
3009
|
-
function(
|
|
3009
|
+
function(A) {
|
|
3010
3010
|
const U = (y + Math.random() * 16) % 16 | 0;
|
|
3011
|
-
return y = Math.floor(y / 16), (
|
|
3011
|
+
return y = Math.floor(y / 16), (A === "x" ? U : U & 3 | 8).toString(16);
|
|
3012
3012
|
}
|
|
3013
3013
|
);
|
|
3014
3014
|
}
|
|
@@ -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}${
|
|
3023
|
-
|
|
3022
|
+
const P = `${y}${h.value}`, A = document.getElementById(P);
|
|
3023
|
+
A && A.scrollIntoView();
|
|
3024
3024
|
}
|
|
3025
3025
|
function ce(y) {
|
|
3026
|
-
const P = `${y}${
|
|
3027
|
-
|
|
3026
|
+
const P = `${y}${h.value}`, A = document.getElementById(P);
|
|
3027
|
+
A && A.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,26 +3063,26 @@ 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
|
-
var
|
|
3072
|
-
return d(), u(
|
|
3071
|
+
var A, U, se;
|
|
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",
|
|
3079
|
+
t("span", jn, f((A = _.value) == null ? void 0 : A.name), 1)
|
|
3080
3080
|
]),
|
|
3081
|
-
|
|
3081
|
+
An
|
|
3082
3082
|
], 2)) : g("", !0),
|
|
3083
3083
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3084
3084
|
key: 1,
|
|
3085
|
-
class: p(
|
|
3085
|
+
class: p(e.field_name)
|
|
3086
3086
|
}, [
|
|
3087
3087
|
t("input", {
|
|
3088
3088
|
type: "hidden",
|
|
@@ -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,8 +3112,8 @@ 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,
|
|
3116
|
-
|
|
3115
|
+
}, null, 10, In),
|
|
3116
|
+
j(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",
|
|
3119
3119
|
style: { top: "13px" }
|
|
@@ -3126,17 +3126,17 @@ const mc = /* @__PURE__ */ O(ra, [["render", on], ["__scopeId", "data-v-a94f16a9
|
|
|
3126
3126
|
style: { top: "11px" }
|
|
3127
3127
|
}, null, 2)
|
|
3128
3128
|
]),
|
|
3129
|
-
|
|
3129
|
+
j(t("div", Nn, [
|
|
3130
3130
|
t("div", Vn, [
|
|
3131
3131
|
Bn,
|
|
3132
3132
|
t("div", Gn, [
|
|
3133
3133
|
Un,
|
|
3134
|
-
|
|
3134
|
+
j(t("input", {
|
|
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" }, Gc = {
|
|
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 = M({
|
|
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,8 +3255,8 @@ 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
|
-
},
|
|
3259
|
-
|
|
3258
|
+
}, f(e.label_name), 11, eo),
|
|
3259
|
+
j(t("textarea", {
|
|
3260
3260
|
required: e.is_required,
|
|
3261
3261
|
name: e.field_name,
|
|
3262
3262
|
id: 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
|
+
T(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
|
+
T(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),
|
|
3633
|
+
], -1), jo = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Ao = { 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, [
|
|
@@ -3707,7 +3707,7 @@ function qo(e, r, s, n, o, a) {
|
|
|
3707
3707
|
Do,
|
|
3708
3708
|
t("div", Oo, [
|
|
3709
3709
|
Po,
|
|
3710
|
-
|
|
3710
|
+
j(t("input", {
|
|
3711
3711
|
type: "text",
|
|
3712
3712
|
"onUpdate:modelValue": r[1] || (r[1] = (c) => o.search = c),
|
|
3713
3713
|
onInput: r[2] || (r[2] = (c) => a.handleSearch()),
|
|
@@ -3718,20 +3718,20 @@ function qo(e, r, s, n, o, a) {
|
|
|
3718
3718
|
])
|
|
3719
3719
|
])
|
|
3720
3720
|
]),
|
|
3721
|
-
t("div",
|
|
3722
|
-
t("table",
|
|
3721
|
+
t("div", jo, [
|
|
3722
|
+
t("table", Ao, [
|
|
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 Uc = /* @__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,
|
|
@@ -3965,7 +3965,7 @@ function pl(e, r, s, n, o, a) {
|
|
|
3965
3965
|
Jo,
|
|
3966
3966
|
t("div", Qo, [
|
|
3967
3967
|
el,
|
|
3968
|
-
|
|
3968
|
+
j(t("input", {
|
|
3969
3969
|
type: "text",
|
|
3970
3970
|
"onUpdate:modelValue": r[1] || (r[1] = (c) => o.search = c),
|
|
3971
3971
|
onInput: r[2] || (r[2] = (c) => a.handleSearch()),
|
|
@@ -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 Fc = /* @__PURE__ */ O(Ho, [["render", pl]]), yl = {
|
|
4049
4049
|
components: {},
|
|
4050
4050
|
props: {
|
|
4051
4051
|
data: Array,
|
|
@@ -4142,19 +4142,19 @@ const xc = /* @__PURE__ */ O(zo, [["render", pl]]), yl = {
|
|
|
4142
4142
|
"clip-rule": "evenodd"
|
|
4143
4143
|
})
|
|
4144
4144
|
])
|
|
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" },
|
|
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" }, jl = { class: "hidden text-sm font-normal text-center text-gray-700 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, Al = ["onClick"], 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, [
|
|
@@ -4214,7 +4214,7 @@ function ai(e, r, s, n, o, a) {
|
|
|
4214
4214
|
Cl,
|
|
4215
4215
|
t("div", Sl, [
|
|
4216
4216
|
Dl,
|
|
4217
|
-
|
|
4217
|
+
j(t("input", {
|
|
4218
4218
|
type: "text",
|
|
4219
4219
|
"onUpdate:modelValue": r[1] || (r[1] = (l) => o.search = l),
|
|
4220
4220
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
@@ -4226,35 +4226,35 @@ function ai(e, r, s, n, o, a) {
|
|
|
4226
4226
|
]),
|
|
4227
4227
|
t("div", Ol, [
|
|
4228
4228
|
t("table", Pl, [
|
|
4229
|
-
t("thead",
|
|
4229
|
+
t("thead", jl, [
|
|
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
|
-
], 8,
|
|
4240
|
+
], 8, Al))), 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,123 @@ function ai(e, r, s, n, o, a) {
|
|
|
4331
4331
|
])) : g("", !0)
|
|
4332
4332
|
]);
|
|
4333
4333
|
}
|
|
4334
|
-
const
|
|
4334
|
+
const Rc = /* @__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[0].title);
|
|
4337
|
+
return Me("selectedTitle", n), {
|
|
4338
|
+
tabs: s,
|
|
4339
|
+
selectedTitle: n
|
|
4340
|
+
};
|
|
4341
|
+
}
|
|
4342
|
+
}, oi = ["onClick"], li = { class: "flex items-center" }, ii = {
|
|
4343
|
+
key: 0,
|
|
4344
|
+
class: "w-3 h-3 rotate-180 shrink-0",
|
|
4345
|
+
"aria-hidden": "true",
|
|
4346
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4347
|
+
fill: "none",
|
|
4348
|
+
viewBox: "0 0 10 6"
|
|
4349
|
+
}, di = /* @__PURE__ */ t("path", {
|
|
4350
|
+
stroke: "currentColor",
|
|
4351
|
+
"stroke-linecap": "round",
|
|
4352
|
+
"stroke-linejoin": "round",
|
|
4353
|
+
"stroke-width": "2",
|
|
4354
|
+
d: "M9 5 5 1 1 5"
|
|
4355
|
+
}, null, -1), ui = [
|
|
4356
|
+
di
|
|
4357
|
+
], ci = {
|
|
4358
|
+
key: 1,
|
|
4359
|
+
class: "w-3 h-3 shrink-0",
|
|
4360
|
+
"aria-hidden": "true",
|
|
4361
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4362
|
+
fill: "none",
|
|
4363
|
+
viewBox: "0 0 10 6"
|
|
4364
|
+
}, gi = /* @__PURE__ */ t("path", {
|
|
4365
|
+
stroke: "currentColor",
|
|
4366
|
+
"stroke-linecap": "round",
|
|
4367
|
+
"stroke-linejoin": "round",
|
|
4368
|
+
"stroke-width": "2",
|
|
4369
|
+
d: "M9 5 5 1 1 5"
|
|
4370
|
+
}, null, -1), fi = [
|
|
4371
|
+
gi
|
|
4372
|
+
], hi = { key: 0 }, mi = { class: "flex flex-wrap" }, bi = { class: "w-full" }, pi = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, yi = ["onClick"], _i = { 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" }, vi = { class: "flex-auto px-4 py-5" }, xi = { class: "tab-content tab-space" };
|
|
4373
|
+
function wi(e, r, s, n, o, a) {
|
|
4374
|
+
return d(), u(v, null, [
|
|
4375
|
+
t("div", null, [
|
|
4376
|
+
(d(!0), u(v, null, S(n.tabs, (i) => (d(), u("div", {
|
|
4377
|
+
key: i.title
|
|
4378
|
+
}, [
|
|
4379
|
+
t("h2", null, [
|
|
4380
|
+
t("button", {
|
|
4381
|
+
onClick: (l) => n.selectedTitle = i.title,
|
|
4382
|
+
type: "button",
|
|
4383
|
+
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",
|
|
4384
|
+
"aria-expanded": "true"
|
|
4385
|
+
}, [
|
|
4386
|
+
t("span", li, f(i.title), 1),
|
|
4387
|
+
n.selectedTitle != i.title ? (d(), u("svg", ii, ui)) : g("", !0),
|
|
4388
|
+
n.selectedTitle === i.title ? (d(), u("svg", ci, fi)) : g("", !0)
|
|
4389
|
+
], 8, oi)
|
|
4390
|
+
]),
|
|
4391
|
+
n.selectedTitle === i.title ? (d(), u("div", hi, [
|
|
4392
|
+
T(e.$slots, "default")
|
|
4393
|
+
])) : g("", !0)
|
|
4394
|
+
]))), 128))
|
|
4395
|
+
]),
|
|
4396
|
+
t("div", mi, [
|
|
4397
|
+
t("div", bi, [
|
|
4398
|
+
t("ul", pi, [
|
|
4399
|
+
(d(!0), u(v, null, S(n.tabs, (i) => (d(), u("li", {
|
|
4400
|
+
key: i.title,
|
|
4401
|
+
onClick: (l) => n.selectedTitle = i.title,
|
|
4402
|
+
class: "flex-auto -mb-px text-center"
|
|
4403
|
+
}, [
|
|
4404
|
+
t("a", {
|
|
4405
|
+
class: p([{
|
|
4406
|
+
"text-slate-600 bg-white dark:bg-meta-4": n.selectedTitle != i.title,
|
|
4407
|
+
"text-white bg-slate-600 dark:bg-primary": n.selectedTitle === i.title
|
|
4408
|
+
}, "block px-5 py-3 text-xs font-bold leading-normal rounded shadow-lg hover:text-white tex hover:bg-slate-600 dark:hover:bg-primary dark:text-white tabs_buttons"])
|
|
4409
|
+
}, [
|
|
4410
|
+
t("i", {
|
|
4411
|
+
class: p([i.icon, "mr-1 text-base"])
|
|
4412
|
+
}, null, 2),
|
|
4413
|
+
$(" " + f(i.title), 1)
|
|
4414
|
+
], 2)
|
|
4415
|
+
], 8, yi))), 128))
|
|
4416
|
+
])
|
|
4417
|
+
])
|
|
4418
|
+
]),
|
|
4419
|
+
t("div", _i, [
|
|
4420
|
+
t("div", vi, [
|
|
4421
|
+
t("div", xi, [
|
|
4422
|
+
T(e.$slots, "default")
|
|
4423
|
+
])
|
|
4424
|
+
])
|
|
4425
|
+
])
|
|
4426
|
+
], 64);
|
|
4427
|
+
}
|
|
4428
|
+
const qc = /* @__PURE__ */ O(ni, [["render", wi]]), ki = {
|
|
4429
|
+
props: ["title"],
|
|
4430
|
+
setup() {
|
|
4431
|
+
return {
|
|
4432
|
+
selectedTitle: xe("selectedTitle")
|
|
4433
|
+
};
|
|
4434
|
+
}
|
|
4435
|
+
}, $i = {
|
|
4436
|
+
key: 0,
|
|
4437
|
+
class: "p-5 border border-b-0 border-gray-200 dark:border-gray-700 dark:bg-gray-900"
|
|
4438
|
+
};
|
|
4439
|
+
function Ci(e, r, s, n, o, a) {
|
|
4440
|
+
return s.title == n.selectedTitle ? (d(), u("div", $i, [
|
|
4441
|
+
T(e.$slots, "default")
|
|
4442
|
+
])) : g("", !0);
|
|
4443
|
+
}
|
|
4444
|
+
const Hc = /* @__PURE__ */ O(ki, [["render", Ci]]), Si = {
|
|
4335
4445
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
4336
4446
|
role: "alert"
|
|
4337
|
-
},
|
|
4447
|
+
}, Di = {
|
|
4338
4448
|
key: 0,
|
|
4339
4449
|
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
|
-
},
|
|
4450
|
+
}, Oi = /* @__PURE__ */ t("svg", {
|
|
4341
4451
|
class: "w-5 h-5",
|
|
4342
4452
|
"aria-hidden": "true",
|
|
4343
4453
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4345,13 +4455,13 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4345
4455
|
viewBox: "0 0 20 20"
|
|
4346
4456
|
}, [
|
|
4347
4457
|
/* @__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
|
-
],
|
|
4458
|
+
], -1), Pi = /* @__PURE__ */ t("span", { class: "sr-only" }, "Check icon", -1), ji = [
|
|
4459
|
+
Oi,
|
|
4460
|
+
Pi
|
|
4461
|
+
], Ai = {
|
|
4352
4462
|
key: 1,
|
|
4353
4463
|
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
|
-
},
|
|
4464
|
+
}, Ei = /* @__PURE__ */ t("svg", {
|
|
4355
4465
|
class: "w-5 h-5",
|
|
4356
4466
|
"aria-hidden": "true",
|
|
4357
4467
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4359,13 +4469,13 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4359
4469
|
viewBox: "0 0 20 20"
|
|
4360
4470
|
}, [
|
|
4361
4471
|
/* @__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
|
-
],
|
|
4472
|
+
], -1), Ti = /* @__PURE__ */ t("span", { class: "sr-only" }, "Error icon", -1), Li = [
|
|
4473
|
+
Ei,
|
|
4474
|
+
Ti
|
|
4475
|
+
], Mi = {
|
|
4366
4476
|
key: 2,
|
|
4367
4477
|
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
|
-
},
|
|
4478
|
+
}, Ii = /* @__PURE__ */ t("svg", {
|
|
4369
4479
|
class: "w-5 h-5",
|
|
4370
4480
|
"aria-hidden": "true",
|
|
4371
4481
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4373,10 +4483,10 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4373
4483
|
viewBox: "0 0 20 20"
|
|
4374
4484
|
}, [
|
|
4375
4485
|
/* @__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
|
-
],
|
|
4486
|
+
], -1), Ni = /* @__PURE__ */ t("span", { class: "sr-only" }, "Warning icon", -1), Vi = [
|
|
4487
|
+
Ii,
|
|
4488
|
+
Ni
|
|
4489
|
+
], Bi = { class: "ml-3 text-sm font-normal" }, Gi = /* @__PURE__ */ t("span", { class: "sr-only" }, "Close", -1), Ui = /* @__PURE__ */ t("svg", {
|
|
4380
4490
|
"aria-hidden": "true",
|
|
4381
4491
|
class: "w-5 h-5",
|
|
4382
4492
|
fill: "currentColor",
|
|
@@ -4388,10 +4498,10 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4388
4498
|
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
4499
|
"clip-rule": "evenodd"
|
|
4390
4500
|
})
|
|
4391
|
-
], -1),
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
],
|
|
4501
|
+
], -1), Fi = [
|
|
4502
|
+
Gi,
|
|
4503
|
+
Ui
|
|
4504
|
+
], Ri = {
|
|
4395
4505
|
__name: "ToastListItem",
|
|
4396
4506
|
props: {
|
|
4397
4507
|
message: String,
|
|
@@ -4411,23 +4521,23 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4411
4521
|
setTimeout(() => n("remove"), s.duration);
|
|
4412
4522
|
});
|
|
4413
4523
|
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",
|
|
4524
|
+
return (o, a) => (d(), u("div", Si, [
|
|
4525
|
+
s.type === "success" ? (d(), u("div", Di, ji)) : g("", !0),
|
|
4526
|
+
s.type === "error" ? (d(), u("div", Ai, Li)) : g("", !0),
|
|
4527
|
+
s.type === "warning" ? (d(), u("div", Mi, Vi)) : g("", !0),
|
|
4528
|
+
t("div", Bi, f(s.message), 1),
|
|
4419
4529
|
t("button", {
|
|
4420
4530
|
onClick: a[0] || (a[0] = (i) => n("remove")),
|
|
4421
4531
|
type: "button",
|
|
4422
4532
|
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
4533
|
"data-dismiss-target": "#toast-default",
|
|
4424
4534
|
"aria-label": "Close"
|
|
4425
|
-
},
|
|
4535
|
+
}, Fi)
|
|
4426
4536
|
]));
|
|
4427
4537
|
}
|
|
4428
|
-
}, ve =
|
|
4538
|
+
}, ve = Te({
|
|
4429
4539
|
items: []
|
|
4430
|
-
}),
|
|
4540
|
+
}), qi = {
|
|
4431
4541
|
add(e) {
|
|
4432
4542
|
ve.items.unshift({
|
|
4433
4543
|
key: Symbol(),
|
|
@@ -4439,14 +4549,14 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4439
4549
|
remove(e) {
|
|
4440
4550
|
ve.items.splice(e, 1);
|
|
4441
4551
|
}
|
|
4442
|
-
},
|
|
4552
|
+
}, Ee = {
|
|
4443
4553
|
state: ve,
|
|
4444
|
-
methods:
|
|
4445
|
-
},
|
|
4554
|
+
methods: qi
|
|
4555
|
+
}, zc = {
|
|
4446
4556
|
__name: "GlToastList",
|
|
4447
4557
|
setup(e) {
|
|
4448
4558
|
function r(s) {
|
|
4449
|
-
|
|
4559
|
+
Ee.methods.remove(s);
|
|
4450
4560
|
}
|
|
4451
4561
|
return (s, n) => (d(), Z(it, {
|
|
4452
4562
|
tag: "div",
|
|
@@ -4457,7 +4567,7 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4457
4567
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4458
4568
|
}, {
|
|
4459
4569
|
default: ie(() => [
|
|
4460
|
-
(d(!0), u(
|
|
4570
|
+
(d(!0), u(v, null, S(dt(Ee).state.items, (o, a) => (d(), Z(Ri, {
|
|
4461
4571
|
key: o.key,
|
|
4462
4572
|
message: o.message,
|
|
4463
4573
|
type: o.type,
|
|
@@ -4468,10 +4578,10 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4468
4578
|
_: 1
|
|
4469
4579
|
}));
|
|
4470
4580
|
}
|
|
4471
|
-
},
|
|
4581
|
+
}, Hi = {
|
|
4472
4582
|
key: 0,
|
|
4473
4583
|
class: "flex justify-center"
|
|
4474
|
-
},
|
|
4584
|
+
}, zi = /* @__PURE__ */ t("svg", {
|
|
4475
4585
|
class: "w-5 h-5",
|
|
4476
4586
|
"aria-hidden": "true",
|
|
4477
4587
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4479,12 +4589,12 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4479
4589
|
viewBox: "0 0 4 15"
|
|
4480
4590
|
}, [
|
|
4481
4591
|
/* @__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
|
-
],
|
|
4592
|
+
], -1), Zi = [
|
|
4593
|
+
zi
|
|
4594
|
+
], Ki = { 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" }, Wi = {
|
|
4485
4595
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4486
4596
|
"aria-labelledby": "dropdownDividerButton"
|
|
4487
|
-
},
|
|
4597
|
+
}, Yi = { key: 0 }, Xi = ["href"], Ji = /* @__PURE__ */ t("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), Qi = { key: 1 }, ed = /* @__PURE__ */ t("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Zc = {
|
|
4488
4598
|
__name: "DatatableAction",
|
|
4489
4599
|
props: {
|
|
4490
4600
|
field: {
|
|
@@ -4510,13 +4620,13 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4510
4620
|
},
|
|
4511
4621
|
emits: ["deleteAction"],
|
|
4512
4622
|
setup(e, { emit: r }) {
|
|
4513
|
-
const s =
|
|
4623
|
+
const s = Be(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4514
4624
|
o.value = !1;
|
|
4515
4625
|
}, l = () => {
|
|
4516
4626
|
o.value = !0;
|
|
4517
4627
|
}, c = () => {
|
|
4518
4628
|
a.value = !1;
|
|
4519
|
-
},
|
|
4629
|
+
}, h = () => {
|
|
4520
4630
|
a.value = !0;
|
|
4521
4631
|
}, m = r, _ = () => {
|
|
4522
4632
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4525,42 +4635,42 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4525
4635
|
type: "success",
|
|
4526
4636
|
duration: 5e3
|
|
4527
4637
|
});
|
|
4528
|
-
}).catch((
|
|
4529
|
-
console.log(
|
|
4638
|
+
}).catch((x) => {
|
|
4639
|
+
console.log(x);
|
|
4530
4640
|
});
|
|
4531
4641
|
};
|
|
4532
|
-
return (
|
|
4533
|
-
const
|
|
4534
|
-
return d(), u(
|
|
4535
|
-
R(
|
|
4642
|
+
return (x, D) => {
|
|
4643
|
+
const N = Ie("click-outside");
|
|
4644
|
+
return d(), u(v, null, [
|
|
4645
|
+
R(we, {
|
|
4536
4646
|
isOpen: a.value,
|
|
4537
4647
|
onConfirmDelete: _,
|
|
4538
4648
|
onCancelDelete: c
|
|
4539
4649
|
}, null, 8, ["isOpen"]),
|
|
4540
|
-
e.row &&
|
|
4650
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? j((d(), u("div", Hi, [
|
|
4541
4651
|
t("button", {
|
|
4542
4652
|
onClick: l,
|
|
4543
4653
|
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
4654
|
type: "button"
|
|
4545
|
-
},
|
|
4546
|
-
|
|
4547
|
-
t("ul",
|
|
4548
|
-
|
|
4655
|
+
}, Zi),
|
|
4656
|
+
j(t("div", Ki, [
|
|
4657
|
+
t("ul", Wi, [
|
|
4658
|
+
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li", Yi, [
|
|
4549
4659
|
t("a", {
|
|
4550
4660
|
href: e.xprops.route + "/" + e.row.id + "/edit",
|
|
4551
4661
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4552
4662
|
}, [
|
|
4553
|
-
|
|
4663
|
+
Ji,
|
|
4554
4664
|
$(" Edit")
|
|
4555
|
-
], 8,
|
|
4665
|
+
], 8, Xi)
|
|
4556
4666
|
])) : g("", !0),
|
|
4557
|
-
|
|
4667
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", Qi, [
|
|
4558
4668
|
t("a", {
|
|
4559
4669
|
href: "#",
|
|
4560
|
-
onClick: F(
|
|
4670
|
+
onClick: F(h, ["prevent"]),
|
|
4561
4671
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4562
4672
|
}, [
|
|
4563
|
-
|
|
4673
|
+
ed,
|
|
4564
4674
|
$(" Remove")
|
|
4565
4675
|
])
|
|
4566
4676
|
])) : g("", !0)
|
|
@@ -4569,15 +4679,15 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4569
4679
|
[Q, o.value]
|
|
4570
4680
|
])
|
|
4571
4681
|
])), [
|
|
4572
|
-
[
|
|
4682
|
+
[N, i]
|
|
4573
4683
|
]) : g("", !0)
|
|
4574
4684
|
], 64);
|
|
4575
4685
|
};
|
|
4576
4686
|
}
|
|
4577
|
-
},
|
|
4687
|
+
}, td = {
|
|
4578
4688
|
key: 0,
|
|
4579
4689
|
class: "flex justify-center"
|
|
4580
|
-
},
|
|
4690
|
+
}, rd = /* @__PURE__ */ t("svg", {
|
|
4581
4691
|
class: "w-5 h-5",
|
|
4582
4692
|
"aria-hidden": "true",
|
|
4583
4693
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4585,12 +4695,12 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4585
4695
|
viewBox: "0 0 4 15"
|
|
4586
4696
|
}, [
|
|
4587
4697
|
/* @__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
|
-
],
|
|
4698
|
+
], -1), sd = [
|
|
4699
|
+
rd
|
|
4700
|
+
], ad = { 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" }, nd = {
|
|
4591
4701
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4592
4702
|
"aria-labelledby": "dropdownDividerButton"
|
|
4593
|
-
},
|
|
4703
|
+
}, od = { key: 0 }, ld = /* @__PURE__ */ t("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Kc = {
|
|
4594
4704
|
__name: "DatatableDeleteAction",
|
|
4595
4705
|
props: {
|
|
4596
4706
|
field: {
|
|
@@ -4616,13 +4726,13 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4616
4726
|
},
|
|
4617
4727
|
emits: ["deleteAction"],
|
|
4618
4728
|
setup(e, { emit: r }) {
|
|
4619
|
-
const s =
|
|
4729
|
+
const s = Be(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4620
4730
|
o.value = !1;
|
|
4621
4731
|
}, l = () => {
|
|
4622
4732
|
o.value = !0;
|
|
4623
4733
|
}, c = () => {
|
|
4624
4734
|
a.value = !1;
|
|
4625
|
-
},
|
|
4735
|
+
}, h = () => {
|
|
4626
4736
|
a.value = !0;
|
|
4627
4737
|
}, m = r, _ = () => {
|
|
4628
4738
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4631,33 +4741,33 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4631
4741
|
type: "success",
|
|
4632
4742
|
duration: 5e3
|
|
4633
4743
|
});
|
|
4634
|
-
}).catch((
|
|
4635
|
-
console.log(
|
|
4744
|
+
}).catch((x) => {
|
|
4745
|
+
console.log(x);
|
|
4636
4746
|
});
|
|
4637
4747
|
};
|
|
4638
|
-
return (
|
|
4639
|
-
const
|
|
4640
|
-
return d(), u(
|
|
4641
|
-
R(
|
|
4748
|
+
return (x, D) => {
|
|
4749
|
+
const N = Ie("click-outside");
|
|
4750
|
+
return d(), u(v, null, [
|
|
4751
|
+
R(we, {
|
|
4642
4752
|
isOpen: a.value,
|
|
4643
4753
|
onConfirmDelete: _,
|
|
4644
4754
|
onCancelDelete: c
|
|
4645
4755
|
}, null, 8, ["isOpen"]),
|
|
4646
|
-
e.row &&
|
|
4756
|
+
e.row && x.can(`delete_${e.xprops.permission}`) ? j((d(), u("div", td, [
|
|
4647
4757
|
t("button", {
|
|
4648
4758
|
onClick: l,
|
|
4649
4759
|
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
4760
|
type: "button"
|
|
4651
|
-
},
|
|
4652
|
-
|
|
4653
|
-
t("ul",
|
|
4654
|
-
|
|
4761
|
+
}, sd),
|
|
4762
|
+
j(t("div", ad, [
|
|
4763
|
+
t("ul", nd, [
|
|
4764
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", od, [
|
|
4655
4765
|
t("a", {
|
|
4656
4766
|
href: "#",
|
|
4657
|
-
onClick: F(
|
|
4767
|
+
onClick: F(h, ["prevent"]),
|
|
4658
4768
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4659
4769
|
}, [
|
|
4660
|
-
|
|
4770
|
+
ld,
|
|
4661
4771
|
$(" Remove")
|
|
4662
4772
|
])
|
|
4663
4773
|
])) : g("", !0)
|
|
@@ -4666,12 +4776,12 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4666
4776
|
[Q, o.value]
|
|
4667
4777
|
])
|
|
4668
4778
|
])), [
|
|
4669
|
-
[
|
|
4779
|
+
[N, i]
|
|
4670
4780
|
]) : g("", !0)
|
|
4671
4781
|
], 64);
|
|
4672
4782
|
};
|
|
4673
4783
|
}
|
|
4674
|
-
},
|
|
4784
|
+
}, id = {
|
|
4675
4785
|
props: ["field", "row"],
|
|
4676
4786
|
computed: {
|
|
4677
4787
|
isArray() {
|
|
@@ -4686,7 +4796,7 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4686
4796
|
},
|
|
4687
4797
|
mounted() {
|
|
4688
4798
|
}
|
|
4689
|
-
},
|
|
4799
|
+
}, dd = ["href", "title"], ud = /* @__PURE__ */ t("svg", {
|
|
4690
4800
|
class: "w-3 h-3 text-white me-2",
|
|
4691
4801
|
"aria-hidden": "true",
|
|
4692
4802
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4703,10 +4813,10 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4703
4813
|
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
4814
|
"clip-rule": "evenodd"
|
|
4705
4815
|
})
|
|
4706
|
-
], -1),
|
|
4816
|
+
], -1), cd = {
|
|
4707
4817
|
key: 1,
|
|
4708
4818
|
class: "m-1 d-inline-block"
|
|
4709
|
-
},
|
|
4819
|
+
}, gd = ["href", "title"], fd = /* @__PURE__ */ t("svg", {
|
|
4710
4820
|
class: "w-3 h-3 text-white me-2",
|
|
4711
4821
|
"aria-hidden": "true",
|
|
4712
4822
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4724,9 +4834,9 @@ const wc = /* @__PURE__ */ O(yl, [["render", ai]]), ni = {
|
|
|
4724
4834
|
"clip-rule": "evenodd"
|
|
4725
4835
|
})
|
|
4726
4836
|
], -1);
|
|
4727
|
-
function
|
|
4837
|
+
function hd(e, r, s, n, o, a) {
|
|
4728
4838
|
return d(), u("div", null, [
|
|
4729
|
-
a.isArray ? (d(!0), u(
|
|
4839
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, S(s.row, (i, l) => (d(), u("div", {
|
|
4730
4840
|
key: l,
|
|
4731
4841
|
class: "m-1 d-inline-block"
|
|
4732
4842
|
}, [
|
|
@@ -4736,23 +4846,23 @@ function Zi(e, r, s, n, o, a) {
|
|
|
4736
4846
|
target: "_blank",
|
|
4737
4847
|
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
4848
|
}, [
|
|
4739
|
-
|
|
4849
|
+
ud,
|
|
4740
4850
|
$(" Download ")
|
|
4741
|
-
], 8,
|
|
4742
|
-
]))), 128)) : a.isString ? (d(), u("div",
|
|
4851
|
+
], 8, dd)
|
|
4852
|
+
]))), 128)) : a.isString ? (d(), u("div", cd, [
|
|
4743
4853
|
t("a", {
|
|
4744
4854
|
href: s.row,
|
|
4745
4855
|
title: s.row,
|
|
4746
4856
|
target: "_blank",
|
|
4747
4857
|
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
4858
|
}, [
|
|
4749
|
-
|
|
4859
|
+
fd,
|
|
4750
4860
|
$(" Download ")
|
|
4751
|
-
], 8,
|
|
4861
|
+
], 8, gd)
|
|
4752
4862
|
])) : g("", !0)
|
|
4753
4863
|
]);
|
|
4754
4864
|
}
|
|
4755
|
-
const
|
|
4865
|
+
const Wc = /* @__PURE__ */ O(id, [["render", hd]]), md = {
|
|
4756
4866
|
props: ["field", "row"],
|
|
4757
4867
|
computed: {
|
|
4758
4868
|
isArray() {
|
|
@@ -4762,7 +4872,7 @@ const Sc = /* @__PURE__ */ O(Ui, [["render", Zi]]), Ki = {
|
|
|
4762
4872
|
return typeof this.row[this.field] == "object";
|
|
4763
4873
|
}
|
|
4764
4874
|
}
|
|
4765
|
-
},
|
|
4875
|
+
}, bd = ["href", "title"], pd = /* @__PURE__ */ t("svg", {
|
|
4766
4876
|
class: "w-3 h-3 text-white me-2",
|
|
4767
4877
|
"aria-hidden": "true",
|
|
4768
4878
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4779,10 +4889,10 @@ const Sc = /* @__PURE__ */ O(Ui, [["render", Zi]]), Ki = {
|
|
|
4779
4889
|
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
4890
|
"clip-rule": "evenodd"
|
|
4781
4891
|
})
|
|
4782
|
-
], -1),
|
|
4892
|
+
], -1), yd = {
|
|
4783
4893
|
key: 1,
|
|
4784
4894
|
class: "m-1 d-inline-block"
|
|
4785
|
-
},
|
|
4895
|
+
}, _d = ["href", "title"], vd = /* @__PURE__ */ t("svg", {
|
|
4786
4896
|
class: "w-3 h-3 text-white me-2",
|
|
4787
4897
|
"aria-hidden": "true",
|
|
4788
4898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4800,9 +4910,9 @@ const Sc = /* @__PURE__ */ O(Ui, [["render", Zi]]), Ki = {
|
|
|
4800
4910
|
"clip-rule": "evenodd"
|
|
4801
4911
|
})
|
|
4802
4912
|
], -1);
|
|
4803
|
-
function
|
|
4913
|
+
function xd(e, r, s, n, o, a) {
|
|
4804
4914
|
return d(), u("div", null, [
|
|
4805
|
-
a.isArray ? (d(!0), u(
|
|
4915
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, S(s.row[s.field], (i) => (d(), u("div", {
|
|
4806
4916
|
key: i.id,
|
|
4807
4917
|
class: "m-1 d-inline-block"
|
|
4808
4918
|
}, [
|
|
@@ -4812,34 +4922,34 @@ function ed(e, r, s, n, o, a) {
|
|
|
4812
4922
|
target: "_blank",
|
|
4813
4923
|
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
4924
|
}, [
|
|
4815
|
-
|
|
4925
|
+
pd,
|
|
4816
4926
|
$(" Download ")
|
|
4817
|
-
], 8,
|
|
4818
|
-
]))), 128)) : a.isObject ? (d(), u("div",
|
|
4927
|
+
], 8, bd)
|
|
4928
|
+
]))), 128)) : a.isObject ? (d(), u("div", yd, [
|
|
4819
4929
|
t("a", {
|
|
4820
4930
|
href: s.row[s.field].url,
|
|
4821
4931
|
title: s.row[s.field].name,
|
|
4822
4932
|
target: "_blank",
|
|
4823
4933
|
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
4934
|
}, [
|
|
4825
|
-
|
|
4935
|
+
vd,
|
|
4826
4936
|
$(" Download ")
|
|
4827
|
-
], 8,
|
|
4937
|
+
], 8, _d)
|
|
4828
4938
|
])) : g("", !0)
|
|
4829
4939
|
]);
|
|
4830
4940
|
}
|
|
4831
|
-
const
|
|
4941
|
+
const Yc = /* @__PURE__ */ O(md, [["render", xd]]), wd = {
|
|
4832
4942
|
props: ["field", "row", "tdProps"]
|
|
4833
|
-
},
|
|
4834
|
-
function
|
|
4835
|
-
return s.row[s.field] ? (d(), u("div",
|
|
4943
|
+
}, kd = { key: 0 }, $d = ["innerHTML"];
|
|
4944
|
+
function Cd(e, r, s, n, o, a) {
|
|
4945
|
+
return s.row[s.field] ? (d(), u("div", kd, [
|
|
4836
4946
|
t("div", {
|
|
4837
4947
|
class: "w-full",
|
|
4838
4948
|
innerHTML: s.row[s.field]
|
|
4839
|
-
}, null, 8,
|
|
4949
|
+
}, null, 8, $d)
|
|
4840
4950
|
])) : g("", !0);
|
|
4841
4951
|
}
|
|
4842
|
-
const
|
|
4952
|
+
const Xc = /* @__PURE__ */ O(wd, [["render", Cd]]), Sd = {
|
|
4843
4953
|
props: ["field", "row", "tdProps"],
|
|
4844
4954
|
computed: {
|
|
4845
4955
|
entry() {
|
|
@@ -4853,24 +4963,24 @@ const Oc = /* @__PURE__ */ O(td, [["render", ad]]), nd = {
|
|
|
4853
4963
|
return typeof this.row[this.entry.key] == "object";
|
|
4854
4964
|
}
|
|
4855
4965
|
}
|
|
4856
|
-
},
|
|
4966
|
+
}, Dd = { class: "flex flex-wrap gap-2" }, Od = {
|
|
4857
4967
|
key: 1,
|
|
4858
4968
|
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
4969
|
};
|
|
4860
|
-
function
|
|
4861
|
-
return d(), u("div",
|
|
4862
|
-
a.isArray ? (d(!0), u(
|
|
4970
|
+
function Pd(e, r, s, n, o, a) {
|
|
4971
|
+
return d(), u("div", Dd, [
|
|
4972
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, S(s.row[a.entry.key], (i, l) => (d(), u("span", {
|
|
4863
4973
|
key: l,
|
|
4864
4974
|
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
|
-
},
|
|
4975
|
+
}, f(i[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Od, f(s.row[a.entry.key][a.entry.field]), 1)) : g("", !0)
|
|
4866
4976
|
]);
|
|
4867
4977
|
}
|
|
4868
|
-
const
|
|
4978
|
+
const Jc = /* @__PURE__ */ O(Sd, [["render", Pd]]), jd = {
|
|
4869
4979
|
props: ["field", "row", "tdProps"]
|
|
4870
|
-
},
|
|
4871
|
-
function
|
|
4872
|
-
return s.row[s.field] ? (d(), u("div",
|
|
4873
|
-
t("div",
|
|
4980
|
+
}, Ad = { key: 0 }, Ed = { class: "m-1 d-inline-block" }, Td = ["href", "title"], Ld = ["src", "alt", "title"];
|
|
4981
|
+
function Md(e, r, s, n, o, a) {
|
|
4982
|
+
return s.row[s.field] ? (d(), u("div", Ad, [
|
|
4983
|
+
t("div", Ed, [
|
|
4874
4984
|
t("a", {
|
|
4875
4985
|
href: s.row[s.field].url,
|
|
4876
4986
|
title: s.row[s.field].name,
|
|
@@ -4880,37 +4990,37 @@ function hd(e, r, s, n, o, a) {
|
|
|
4880
4990
|
src: s.row[s.field].thumbnail,
|
|
4881
4991
|
alt: s.row[s.field].name,
|
|
4882
4992
|
title: s.row[s.field].name
|
|
4883
|
-
}, null, 8,
|
|
4884
|
-
], 8,
|
|
4993
|
+
}, null, 8, Ld)
|
|
4994
|
+
], 8, Td)
|
|
4885
4995
|
])
|
|
4886
4996
|
])) : g("", !0);
|
|
4887
4997
|
}
|
|
4888
|
-
const
|
|
4998
|
+
const Qc = /* @__PURE__ */ O(jd, [["render", Md], ["__scopeId", "data-v-3a28c02c"]]), Id = {
|
|
4889
4999
|
props: ["field", "row", "tdProps"],
|
|
4890
5000
|
computed: {
|
|
4891
5001
|
isActive() {
|
|
4892
5002
|
return this.row[this.field] === 1;
|
|
4893
5003
|
}
|
|
4894
5004
|
}
|
|
4895
|
-
},
|
|
5005
|
+
}, Nd = { class: "flex flex-wrap gap-2 text-nowrap" }, Vd = {
|
|
4896
5006
|
key: 0,
|
|
4897
5007
|
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
|
-
},
|
|
5008
|
+
}, Bd = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Gd = {
|
|
4899
5009
|
key: 1,
|
|
4900
5010
|
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
|
-
|
|
5011
|
+
}, Ud = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
5012
|
+
function Fd(e, r, s, n, o, a) {
|
|
5013
|
+
return d(), u("div", Nd, [
|
|
5014
|
+
a.isActive ? (d(), u("span", Vd, [
|
|
5015
|
+
Bd,
|
|
4906
5016
|
$(" Active ")
|
|
4907
|
-
])) : a.isActive ? g("", !0) : (d(), u("span",
|
|
4908
|
-
|
|
5017
|
+
])) : a.isActive ? g("", !0) : (d(), u("span", Gd, [
|
|
5018
|
+
Ud,
|
|
4909
5019
|
$(" Inactive ")
|
|
4910
5020
|
]))
|
|
4911
5021
|
]);
|
|
4912
5022
|
}
|
|
4913
|
-
const
|
|
5023
|
+
const e0 = /* @__PURE__ */ O(Id, [["render", Fd]]), Rd = {
|
|
4914
5024
|
props: ["field", "row", "tdProps"],
|
|
4915
5025
|
computed: {
|
|
4916
5026
|
hasLabelColor(e) {
|
|
@@ -4920,50 +5030,50 @@ const jc = /* @__PURE__ */ O(md, [["render", xd]]), wd = {
|
|
|
4920
5030
|
return r ? r.class : "";
|
|
4921
5031
|
}
|
|
4922
5032
|
}
|
|
4923
|
-
},
|
|
5033
|
+
}, qd = { class: "flex flex-wrap gap-2 text-nowrap" }, Hd = {
|
|
4924
5034
|
key: 0,
|
|
4925
5035
|
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
|
-
},
|
|
5036
|
+
}, zd = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Zd = {
|
|
4927
5037
|
key: 1,
|
|
4928
5038
|
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
|
-
},
|
|
5039
|
+
}, Kd = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), Wd = {
|
|
4930
5040
|
key: 2,
|
|
4931
5041
|
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
|
-
},
|
|
5042
|
+
}, Yd = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), Xd = {
|
|
4933
5043
|
key: 3,
|
|
4934
5044
|
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
|
-
},
|
|
5045
|
+
}, Jd = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1), Qd = {
|
|
4936
5046
|
key: 4,
|
|
4937
5047
|
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
|
-
},
|
|
5048
|
+
}, eu = /* @__PURE__ */ t("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
4939
5049
|
/* @__PURE__ */ t("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
4940
5050
|
/* @__PURE__ */ t("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
4941
5051
|
], -1);
|
|
4942
|
-
function
|
|
4943
|
-
return d(), u("div",
|
|
4944
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
4945
|
-
|
|
4946
|
-
$(" " +
|
|
5052
|
+
function tu(e, r, s, n, o, a) {
|
|
5053
|
+
return d(), u("div", qd, [
|
|
5054
|
+
a.hasLabelColor == "green" ? (d(), u("span", Hd, [
|
|
5055
|
+
zd,
|
|
5056
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4947
5057
|
])) : g("", !0),
|
|
4948
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
4949
|
-
|
|
4950
|
-
$(" " +
|
|
5058
|
+
a.hasLabelColor == "red" ? (d(), u("span", Zd, [
|
|
5059
|
+
Kd,
|
|
5060
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4951
5061
|
])) : g("", !0),
|
|
4952
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
4953
|
-
|
|
4954
|
-
$(" " +
|
|
5062
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", Wd, [
|
|
5063
|
+
Yd,
|
|
5064
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4955
5065
|
])) : g("", !0),
|
|
4956
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
4957
|
-
|
|
4958
|
-
$(" " +
|
|
5066
|
+
a.hasLabelColor == "default" ? (d(), u("span", Xd, [
|
|
5067
|
+
Jd,
|
|
5068
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4959
5069
|
])) : g("", !0),
|
|
4960
|
-
a.hasLabelColor == "animate" ? (d(), u("span",
|
|
4961
|
-
|
|
4962
|
-
$(" " +
|
|
5070
|
+
a.hasLabelColor == "animate" ? (d(), u("span", Qd, [
|
|
5071
|
+
eu,
|
|
5072
|
+
$(" " + f(this.row[this.field]), 1)
|
|
4963
5073
|
])) : g("", !0)
|
|
4964
5074
|
]);
|
|
4965
5075
|
}
|
|
4966
|
-
const
|
|
5076
|
+
const t0 = /* @__PURE__ */ O(Rd, [["render", tu]]), ru = {
|
|
4967
5077
|
props: ["field", "row", "tdProps"],
|
|
4968
5078
|
computed: {
|
|
4969
5079
|
hasLabelColor() {
|
|
@@ -4984,44 +5094,44 @@ const Ec = /* @__PURE__ */ O(wd, [["render", Td]]), Id = {
|
|
|
4984
5094
|
}
|
|
4985
5095
|
}
|
|
4986
5096
|
}
|
|
4987
|
-
},
|
|
4988
|
-
function
|
|
4989
|
-
return d(), u("div",
|
|
5097
|
+
}, su = { class: "flex flex-wrap gap-2 text-nowrap justify-center" };
|
|
5098
|
+
function au(e, r, s, n, o, a) {
|
|
5099
|
+
return d(), u("div", su, [
|
|
4990
5100
|
a.hasLabelColor == "Default" ? (d(), u("span", {
|
|
4991
5101
|
key: 0,
|
|
4992
5102
|
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
|
-
},
|
|
5103
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
4994
5104
|
a.hasLabelColor == "Dark" ? (d(), u("span", {
|
|
4995
5105
|
key: 1,
|
|
4996
5106
|
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
|
-
},
|
|
5107
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
4998
5108
|
a.hasLabelColor == "Red" ? (d(), u("span", {
|
|
4999
5109
|
key: 2,
|
|
5000
5110
|
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
|
-
},
|
|
5111
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5002
5112
|
a.hasLabelColor == "Green" ? (d(), u("span", {
|
|
5003
5113
|
key: 3,
|
|
5004
5114
|
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
|
-
},
|
|
5115
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5006
5116
|
a.hasLabelColor == "Yellow" ? (d(), u("span", {
|
|
5007
5117
|
key: 4,
|
|
5008
5118
|
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
|
-
},
|
|
5119
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5010
5120
|
a.hasLabelColor == "Indigo" ? (d(), u("span", {
|
|
5011
5121
|
key: 5,
|
|
5012
5122
|
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
|
-
},
|
|
5123
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5014
5124
|
a.hasLabelColor == "Purple" ? (d(), u("span", {
|
|
5015
5125
|
key: 6,
|
|
5016
5126
|
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
|
-
},
|
|
5127
|
+
}, f(this.row[this.field]), 3)) : g("", !0),
|
|
5018
5128
|
a.hasLabelColor == "Pink" ? (d(), u("span", {
|
|
5019
5129
|
key: 7,
|
|
5020
5130
|
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
|
-
},
|
|
5131
|
+
}, f(this.row[this.field]), 3)) : g("", !0)
|
|
5022
5132
|
]);
|
|
5023
5133
|
}
|
|
5024
|
-
const
|
|
5134
|
+
const r0 = /* @__PURE__ */ O(ru, [["render", au]]), nu = {
|
|
5025
5135
|
props: ["field", "row", "tdProps"],
|
|
5026
5136
|
computed: {
|
|
5027
5137
|
hasLabelColor(e) {
|
|
@@ -5037,50 +5147,50 @@ const Lc = /* @__PURE__ */ O(Id, [["render", Nd]]), Vd = {
|
|
|
5037
5147
|
return e ? e.label : "";
|
|
5038
5148
|
}
|
|
5039
5149
|
}
|
|
5040
|
-
},
|
|
5150
|
+
}, ou = { class: "flex flex-wrap gap-2 text-nowrap" }, lu = {
|
|
5041
5151
|
key: 0,
|
|
5042
5152
|
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
|
-
},
|
|
5153
|
+
}, iu = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), du = {
|
|
5044
5154
|
key: 1,
|
|
5045
5155
|
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
|
-
},
|
|
5156
|
+
}, uu = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), cu = {
|
|
5047
5157
|
key: 2,
|
|
5048
5158
|
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
|
-
},
|
|
5159
|
+
}, gu = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), fu = {
|
|
5050
5160
|
key: 3,
|
|
5051
5161
|
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
|
-
},
|
|
5162
|
+
}, hu = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1), mu = {
|
|
5053
5163
|
key: 4,
|
|
5054
5164
|
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
|
-
},
|
|
5165
|
+
}, bu = /* @__PURE__ */ t("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
5056
5166
|
/* @__PURE__ */ t("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
5057
5167
|
/* @__PURE__ */ t("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
5058
5168
|
], -1);
|
|
5059
|
-
function
|
|
5060
|
-
return d(), u("div",
|
|
5061
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
5062
|
-
|
|
5063
|
-
$(" " +
|
|
5169
|
+
function pu(e, r, s, n, o, a) {
|
|
5170
|
+
return d(), u("div", ou, [
|
|
5171
|
+
a.hasLabelColor == "green" ? (d(), u("span", lu, [
|
|
5172
|
+
iu,
|
|
5173
|
+
$(" " + f(a.getLabel), 1)
|
|
5064
5174
|
])) : g("", !0),
|
|
5065
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
5066
|
-
|
|
5067
|
-
$(" " +
|
|
5175
|
+
a.hasLabelColor == "red" ? (d(), u("span", du, [
|
|
5176
|
+
uu,
|
|
5177
|
+
$(" " + f(a.getLabel), 1)
|
|
5068
5178
|
])) : g("", !0),
|
|
5069
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
5070
|
-
|
|
5071
|
-
$(" " +
|
|
5179
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", cu, [
|
|
5180
|
+
gu,
|
|
5181
|
+
$(" " + f(a.getLabel), 1)
|
|
5072
5182
|
])) : g("", !0),
|
|
5073
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
5074
|
-
|
|
5075
|
-
$(" " +
|
|
5183
|
+
a.hasLabelColor == "default" ? (d(), u("span", fu, [
|
|
5184
|
+
hu,
|
|
5185
|
+
$(" " + f(a.getLabel), 1)
|
|
5076
5186
|
])) : g("", !0),
|
|
5077
|
-
a.hasLabelColor == "animate" ? (d(), u("span",
|
|
5078
|
-
|
|
5079
|
-
$(" " +
|
|
5187
|
+
a.hasLabelColor == "animate" ? (d(), u("span", mu, [
|
|
5188
|
+
bu,
|
|
5189
|
+
$(" " + f(a.getLabel), 1)
|
|
5080
5190
|
])) : g("", !0)
|
|
5081
5191
|
]);
|
|
5082
5192
|
}
|
|
5083
|
-
const
|
|
5193
|
+
const s0 = /* @__PURE__ */ O(nu, [["render", pu]]), yu = {
|
|
5084
5194
|
props: ["field", "row", "tdProps"],
|
|
5085
5195
|
computed: {
|
|
5086
5196
|
formattedDate() {
|
|
@@ -5095,54 +5205,54 @@ const Tc = /* @__PURE__ */ O(Vd, [["render", Yd]]), Xd = {
|
|
|
5095
5205
|
return this.row[this.field] === 1;
|
|
5096
5206
|
}
|
|
5097
5207
|
}
|
|
5098
|
-
},
|
|
5099
|
-
function
|
|
5100
|
-
return d(), u("div",
|
|
5208
|
+
}, _u = { class: "w-full" };
|
|
5209
|
+
function vu(e, r, s, n, o, a) {
|
|
5210
|
+
return d(), u("div", _u, f(a.formattedDate), 1);
|
|
5101
5211
|
}
|
|
5102
|
-
const
|
|
5212
|
+
const a0 = /* @__PURE__ */ O(yu, [["render", vu]]), xu = {
|
|
5103
5213
|
props: ["field", "row", "tdProps"]
|
|
5104
|
-
},
|
|
5214
|
+
}, wu = { class: "flex flex-wrap gap-2 text-nowrap" }, ku = {
|
|
5105
5215
|
key: 0,
|
|
5106
5216
|
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
|
-
},
|
|
5217
|
+
}, $u = /* @__PURE__ */ t("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
5108
5218
|
/* @__PURE__ */ t("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
5109
5219
|
/* @__PURE__ */ t("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
5110
|
-
], -1),
|
|
5220
|
+
], -1), Cu = {
|
|
5111
5221
|
key: 1,
|
|
5112
5222
|
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
|
-
},
|
|
5223
|
+
}, Su = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), Du = {
|
|
5114
5224
|
key: 2,
|
|
5115
5225
|
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
|
-
|
|
5226
|
+
}, Ou = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
5227
|
+
function Pu(e, r, s, n, o, a) {
|
|
5228
|
+
return d(), u("div", wu, [
|
|
5229
|
+
s.row[s.field] === 0 ? (d(), u("span", ku, [
|
|
5230
|
+
$u,
|
|
5121
5231
|
$(" Provisioning")
|
|
5122
5232
|
])) : g("", !0),
|
|
5123
|
-
s.row[s.field] === 2 ? (d(), u("span",
|
|
5124
|
-
|
|
5233
|
+
s.row[s.field] === 2 ? (d(), u("span", Cu, [
|
|
5234
|
+
Su,
|
|
5125
5235
|
$(" Paused ")
|
|
5126
5236
|
])) : g("", !0),
|
|
5127
|
-
s.row[s.field] === 1 ? (d(), u("span",
|
|
5128
|
-
|
|
5237
|
+
s.row[s.field] === 1 ? (d(), u("span", Du, [
|
|
5238
|
+
Ou,
|
|
5129
5239
|
$(" Active ")
|
|
5130
5240
|
])) : g("", !0)
|
|
5131
5241
|
]);
|
|
5132
5242
|
}
|
|
5133
|
-
const
|
|
5243
|
+
const n0 = /* @__PURE__ */ O(xu, [["render", Pu]]), ju = {
|
|
5134
5244
|
props: ["field", "row", "tdProps"]
|
|
5135
|
-
},
|
|
5245
|
+
}, Au = {
|
|
5136
5246
|
key: 0,
|
|
5137
5247
|
class: "text-nowrap"
|
|
5138
|
-
},
|
|
5139
|
-
function
|
|
5140
|
-
return s.row[s.field] ? (d(), u("div",
|
|
5141
|
-
t("pre",
|
|
5248
|
+
}, Eu = { 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" };
|
|
5249
|
+
function Tu(e, r, s, n, o, a) {
|
|
5250
|
+
return s.row[s.field] ? (d(), u("div", Au, [
|
|
5251
|
+
t("pre", Eu, " " + f(s.row[s.field]) + `
|
|
5142
5252
|
`, 1)
|
|
5143
5253
|
])) : g("", !0);
|
|
5144
5254
|
}
|
|
5145
|
-
const
|
|
5255
|
+
const o0 = /* @__PURE__ */ O(ju, [["render", Tu]]), Lu = {
|
|
5146
5256
|
props: ["isOpen", "title", "button_text"],
|
|
5147
5257
|
methods: {
|
|
5148
5258
|
confirmAction() {
|
|
@@ -5152,40 +5262,40 @@ const Nc = /* @__PURE__ */ O(du, [["render", gu]]), fu = {
|
|
|
5152
5262
|
this.$emit("cancel-action");
|
|
5153
5263
|
}
|
|
5154
5264
|
}
|
|
5155
|
-
},
|
|
5265
|
+
}, Mu = {
|
|
5156
5266
|
key: 0,
|
|
5157
5267
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
5158
5268
|
role: "dialog",
|
|
5159
5269
|
"aria-modal": "true"
|
|
5160
|
-
},
|
|
5270
|
+
}, Iu = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, Nu = /* @__PURE__ */ t("div", {
|
|
5161
5271
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
5162
5272
|
"aria-hidden": "true"
|
|
5163
|
-
}, null, -1),
|
|
5273
|
+
}, null, -1), Vu = /* @__PURE__ */ t("span", {
|
|
5164
5274
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
5165
5275
|
"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
|
-
|
|
5276
|
+
}, "", -1), Bu = { 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" }, Gu = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, Uu = { class: "sm:flex sm:items-start" }, Fu = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Ru = { class: "text-lg font-medium leading-6 text-gray-900" }, qu = { class: "mt-2" }, Hu = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
5277
|
+
function zu(e, r, s, n, o, a) {
|
|
5278
|
+
return s.isOpen ? (d(), u("div", Mu, [
|
|
5279
|
+
t("div", Iu, [
|
|
5280
|
+
Nu,
|
|
5281
|
+
Vu,
|
|
5282
|
+
t("div", Bu, [
|
|
5283
|
+
t("div", Gu, [
|
|
5284
|
+
t("div", Uu, [
|
|
5285
|
+
t("div", Fu, [
|
|
5286
|
+
t("h3", Ru, f(s.title), 1),
|
|
5287
|
+
t("div", qu, [
|
|
5288
|
+
T(e.$slots, "default")
|
|
5179
5289
|
])
|
|
5180
5290
|
])
|
|
5181
5291
|
])
|
|
5182
5292
|
]),
|
|
5183
|
-
t("div",
|
|
5293
|
+
t("div", Hu, [
|
|
5184
5294
|
t("button", {
|
|
5185
5295
|
onClick: r[0] || (r[0] = (...i) => a.confirmAction && a.confirmAction(...i)),
|
|
5186
5296
|
type: "button",
|
|
5187
5297
|
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
|
-
},
|
|
5298
|
+
}, f(s.button_text), 1),
|
|
5189
5299
|
t("button", {
|
|
5190
5300
|
onClick: r[1] || (r[1] = (...i) => a.cancelAction && a.cancelAction(...i)),
|
|
5191
5301
|
type: "button",
|
|
@@ -5196,10 +5306,10 @@ function Cu(e, r, s, n, o, a) {
|
|
|
5196
5306
|
])
|
|
5197
5307
|
])) : g("", !0);
|
|
5198
5308
|
}
|
|
5199
|
-
const
|
|
5309
|
+
const l0 = /* @__PURE__ */ O(Lu, [["render", zu]]), Zu = { class: "w-full" }, Ku = { class: "mb-2 flex justify-between items-center" }, Wu = { class: "text-sm font-medium text-gray-900 dark:text-white" }, Yu = { class: "relative bg-gray-50 rounded-lg dark:bg-gray-700 p-4 h-auto" }, Xu = { class: "overflow-auto max-h-32" }, Ju = { class: "text-sm text-gray-500 dark:text-gray-400" }, Qu = { class: "absolute top-2 end-2 bg-gray-50 dark:bg-gray-700" }, ec = {
|
|
5200
5310
|
key: 0,
|
|
5201
5311
|
class: "inline-flex items-center"
|
|
5202
|
-
},
|
|
5312
|
+
}, tc = /* @__PURE__ */ t("svg", {
|
|
5203
5313
|
class: "w-3 h-3 me-2",
|
|
5204
5314
|
"aria-hidden": "true",
|
|
5205
5315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5207,13 +5317,13 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5207
5317
|
viewBox: "0 0 18 20"
|
|
5208
5318
|
}, [
|
|
5209
5319
|
/* @__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
|
-
],
|
|
5320
|
+
], -1), rc = /* @__PURE__ */ t("span", { class: "text-xs font-semibold" }, "Copy", -1), sc = [
|
|
5321
|
+
tc,
|
|
5322
|
+
rc
|
|
5323
|
+
], ac = {
|
|
5214
5324
|
key: 1,
|
|
5215
5325
|
class: "inline-flex items-center"
|
|
5216
|
-
},
|
|
5326
|
+
}, nc = /* @__PURE__ */ t("svg", {
|
|
5217
5327
|
class: "w-3 h-3 text-blue-700 dark:text-blue-500 me-2",
|
|
5218
5328
|
"aria-hidden": "true",
|
|
5219
5329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5227,10 +5337,10 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5227
5337
|
"stroke-width": "2",
|
|
5228
5338
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
5229
5339
|
})
|
|
5230
|
-
], -1),
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
],
|
|
5340
|
+
], -1), oc = /* @__PURE__ */ t("span", { class: "text-xs font-semibold text-blue-700 dark:text-blue-500" }, "Copied", -1), lc = [
|
|
5341
|
+
nc,
|
|
5342
|
+
oc
|
|
5343
|
+
], ic = { class: "mt-2 text-sm text-gray-500 dark:text-gray-400" }, i0 = {
|
|
5234
5344
|
__name: "GlCodeCopy",
|
|
5235
5345
|
props: {
|
|
5236
5346
|
label_name: {
|
|
@@ -5255,29 +5365,29 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5255
5365
|
}).catch(function(i) {
|
|
5256
5366
|
console.error("Error copying to clipboard: ", i);
|
|
5257
5367
|
});
|
|
5258
|
-
}, o =
|
|
5259
|
-
return (a, i) => (d(), u("div",
|
|
5260
|
-
t("div",
|
|
5261
|
-
t("p",
|
|
5368
|
+
}, o = M(() => r.code);
|
|
5369
|
+
return (a, i) => (d(), u("div", Zu, [
|
|
5370
|
+
t("div", Ku, [
|
|
5371
|
+
t("p", Wu, f(e.label_name), 1)
|
|
5262
5372
|
]),
|
|
5263
|
-
t("div",
|
|
5264
|
-
t("div",
|
|
5265
|
-
t("code",
|
|
5373
|
+
t("div", Yu, [
|
|
5374
|
+
t("div", Xu, [
|
|
5375
|
+
t("code", Ju, f(o.value), 1)
|
|
5266
5376
|
]),
|
|
5267
|
-
t("div",
|
|
5377
|
+
t("div", Qu, [
|
|
5268
5378
|
t("button", {
|
|
5269
5379
|
onClick: i[0] || (i[0] = (l) => n(o.value)),
|
|
5270
5380
|
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
5381
|
}, [
|
|
5272
|
-
s.value ? g("", !0) : (d(), u("span",
|
|
5273
|
-
s.value ? (d(), u("span",
|
|
5382
|
+
s.value ? g("", !0) : (d(), u("span", ec, sc)),
|
|
5383
|
+
s.value ? (d(), u("span", ac, lc)) : g("", !0)
|
|
5274
5384
|
])
|
|
5275
5385
|
])
|
|
5276
5386
|
]),
|
|
5277
|
-
t("p",
|
|
5387
|
+
t("p", ic, f(e.description), 1)
|
|
5278
5388
|
]));
|
|
5279
5389
|
}
|
|
5280
|
-
},
|
|
5390
|
+
}, dc = { class: "w-full" }, uc = { class: "flex justify-between items-center" }, cc = { class: "gl-label-form" }, gc = { class: "flex items-center" }, fc = { 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" }, hc = { class: "relative w-full" }, mc = ["value"], bc = { key: 0 }, pc = /* @__PURE__ */ t("svg", {
|
|
5281
5391
|
class: "w-4 h-4",
|
|
5282
5392
|
"aria-hidden": "true",
|
|
5283
5393
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5285,12 +5395,12 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5285
5395
|
viewBox: "0 0 18 20"
|
|
5286
5396
|
}, [
|
|
5287
5397
|
/* @__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
|
-
],
|
|
5398
|
+
], -1), yc = [
|
|
5399
|
+
pc
|
|
5400
|
+
], _c = {
|
|
5291
5401
|
key: 1,
|
|
5292
5402
|
class: "inline-flex items-center"
|
|
5293
|
-
},
|
|
5403
|
+
}, vc = /* @__PURE__ */ t("svg", {
|
|
5294
5404
|
class: "w-4 h-4",
|
|
5295
5405
|
"aria-hidden": "true",
|
|
5296
5406
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5304,9 +5414,9 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5304
5414
|
"stroke-width": "2",
|
|
5305
5415
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
5306
5416
|
})
|
|
5307
|
-
], -1),
|
|
5308
|
-
|
|
5309
|
-
],
|
|
5417
|
+
], -1), xc = [
|
|
5418
|
+
vc
|
|
5419
|
+
], wc = { class: "mt-2 text-sm text-gray-500 dark:text-gray-400" }, d0 = {
|
|
5310
5420
|
__name: "GlTextCopy",
|
|
5311
5421
|
props: {
|
|
5312
5422
|
label_name: {
|
|
@@ -5335,14 +5445,14 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5335
5445
|
}).catch(function(i) {
|
|
5336
5446
|
console.error("Error copying to clipboard: ", i);
|
|
5337
5447
|
});
|
|
5338
|
-
}, o =
|
|
5339
|
-
return (a, i) => (d(), u("div",
|
|
5340
|
-
t("div",
|
|
5341
|
-
t("label",
|
|
5448
|
+
}, o = M(() => r.code);
|
|
5449
|
+
return (a, i) => (d(), u("div", dc, [
|
|
5450
|
+
t("div", uc, [
|
|
5451
|
+
t("label", cc, f(e.label_name), 1)
|
|
5342
5452
|
]),
|
|
5343
|
-
t("div",
|
|
5344
|
-
t("span",
|
|
5345
|
-
t("div",
|
|
5453
|
+
t("div", gc, [
|
|
5454
|
+
t("span", fc, f(e.text_name), 1),
|
|
5455
|
+
t("div", hc, [
|
|
5346
5456
|
t("input", {
|
|
5347
5457
|
type: "text",
|
|
5348
5458
|
"aria-describedby": "helper-text-explanation",
|
|
@@ -5350,7 +5460,7 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5350
5460
|
value: o.value,
|
|
5351
5461
|
readonly: "",
|
|
5352
5462
|
disabled: ""
|
|
5353
|
-
}, null, 8,
|
|
5463
|
+
}, null, 8, mc)
|
|
5354
5464
|
]),
|
|
5355
5465
|
t("button", {
|
|
5356
5466
|
style: { padding: ".61rem" },
|
|
@@ -5358,54 +5468,56 @@ const Vc = /* @__PURE__ */ O(fu, [["render", Cu]]), Su = { class: "w-full" }, Du
|
|
|
5358
5468
|
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
5469
|
type: "button"
|
|
5360
5470
|
}, [
|
|
5361
|
-
s.value ? g("", !0) : (d(), u("span",
|
|
5362
|
-
s.value ? (d(), u("span",
|
|
5471
|
+
s.value ? g("", !0) : (d(), u("span", bc, yc)),
|
|
5472
|
+
s.value ? (d(), u("span", _c, xc)) : g("", !0)
|
|
5363
5473
|
])
|
|
5364
5474
|
]),
|
|
5365
|
-
t("p",
|
|
5475
|
+
t("p", wc, f(e.description), 1)
|
|
5366
5476
|
]));
|
|
5367
5477
|
}
|
|
5368
5478
|
};
|
|
5369
5479
|
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
|
-
|
|
5480
|
+
s0 as DatatableStatusTextLabelGeneral,
|
|
5481
|
+
o0 as GLDatatableCommand,
|
|
5482
|
+
a0 as GLDatatableDateTime,
|
|
5483
|
+
n0 as GLDatatableStatusServer,
|
|
5484
|
+
Hc as GlAccordion,
|
|
5485
|
+
qc as GlAccordionsWrapper,
|
|
5486
|
+
Pc as GlButton,
|
|
5487
|
+
Dc as GlCard,
|
|
5488
|
+
i0 as GlCodeCopy,
|
|
5489
|
+
l0 as GlConfirmationModal,
|
|
5490
|
+
Rc as GlDataTable,
|
|
5491
|
+
Uc as GlDataTableServerSide,
|
|
5492
|
+
Fc as GlDataTableServerSideGroupBy,
|
|
5493
|
+
Zc as GlDatatableAction,
|
|
5494
|
+
Kc as GlDatatableDeleteAction,
|
|
5495
|
+
Wc as GlDatatableFileDownload,
|
|
5496
|
+
Yc as GlDatatableFiles,
|
|
5497
|
+
Xc as GlDatatableHtml,
|
|
5498
|
+
Jc as GlDatatableList,
|
|
5499
|
+
Qc as GlDatatablePicture,
|
|
5500
|
+
e0 as GlDatatableStatus,
|
|
5501
|
+
t0 as GlDatatableStatusGeneral,
|
|
5502
|
+
r0 as GlDatatableStatusSpecficColor,
|
|
5503
|
+
we as GlDeleteConfirmationModal,
|
|
5504
|
+
Bc as GlDropdown,
|
|
5505
|
+
$c as GlFilesUpload,
|
|
5506
|
+
Sc as GlLanguageSelector,
|
|
5507
|
+
Nc as GlModal,
|
|
5508
|
+
Ic as GlMultiItemSlide,
|
|
5509
|
+
Oc as GlMultiSelectDropdown,
|
|
5510
|
+
Cc as GlNotify,
|
|
5511
|
+
Mc as GlTab,
|
|
5512
|
+
Lc as GlTabsWrapper,
|
|
5513
|
+
et as GlTailwindPagination,
|
|
5514
|
+
d0 as GlTextCopy,
|
|
5515
|
+
Tc as GlTextInput,
|
|
5516
|
+
Ec as GlTextTranslate,
|
|
5517
|
+
Gc as GlTextarea,
|
|
5518
|
+
jc as GlTextareaTranslate,
|
|
5519
|
+
Ac as GlTinymceTranslate,
|
|
5520
|
+
Ee as GlToast,
|
|
5521
|
+
zc as GlToastList,
|
|
5522
|
+
Vc as GlToggleBox
|
|
5411
5523
|
};
|