golden-logic-ui 1.0.49 → 1.0.50
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 +42 -41
- package/dist/golden-logic-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -57,7 +57,7 @@ function mt() {
|
|
|
57
57
|
function $e() {
|
|
58
58
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const _t = typeof Proxy == "function", pt = "devtools-plugin:setup", bt = "plugin:settings:set";
|
|
61
61
|
let q, ne;
|
|
62
62
|
function yt() {
|
|
63
63
|
var e;
|
|
@@ -129,9 +129,9 @@ class xt {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function wt(e, t) {
|
|
132
|
-
const r = e, n = $e(), a = mt(), o =
|
|
132
|
+
const r = e, n = $e(), a = mt(), o = _t && r.enableEarlyProxy;
|
|
133
133
|
if (a && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !o))
|
|
134
|
-
a.emit(
|
|
134
|
+
a.emit(pt, e, t);
|
|
135
135
|
else {
|
|
136
136
|
const l = o ? new xt(r, a) : null;
|
|
137
137
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
@@ -333,7 +333,7 @@ function de(e, t) {
|
|
|
333
333
|
function J(e, t, r) {
|
|
334
334
|
return Oe(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && I(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: r };
|
|
335
335
|
}
|
|
336
|
-
var Et = "vuex bindings",
|
|
336
|
+
var Et = "vuex bindings", _e = "vuex:mutations", re = "vuex:actions", z = "vuex", jt = 0;
|
|
337
337
|
function At(e, t) {
|
|
338
338
|
wt(
|
|
339
339
|
{
|
|
@@ -347,13 +347,13 @@ function At(e, t) {
|
|
|
347
347
|
},
|
|
348
348
|
function(r) {
|
|
349
349
|
r.addTimelineLayer({
|
|
350
|
-
id:
|
|
350
|
+
id: _e,
|
|
351
351
|
label: "Vuex Mutations",
|
|
352
|
-
color:
|
|
352
|
+
color: pe
|
|
353
353
|
}), r.addTimelineLayer({
|
|
354
354
|
id: re,
|
|
355
355
|
label: "Vuex Actions",
|
|
356
|
-
color:
|
|
356
|
+
color: pe
|
|
357
357
|
}), r.addInspector({
|
|
358
358
|
id: z,
|
|
359
359
|
label: "Vuex",
|
|
@@ -387,7 +387,7 @@ function At(e, t) {
|
|
|
387
387
|
}), t.subscribe(function(n, a) {
|
|
388
388
|
var o = {};
|
|
389
389
|
n.payload && (o.payload = n.payload), o.state = a, r.notifyComponentUpdate(), r.sendInspectorTree(z), r.sendInspectorState(z), r.addTimelineEvent({
|
|
390
|
-
layerId:
|
|
390
|
+
layerId: _e,
|
|
391
391
|
event: {
|
|
392
392
|
time: Date.now(),
|
|
393
393
|
title: n.type,
|
|
@@ -432,7 +432,7 @@ function At(e, t) {
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var pe = 8702998, It = 6710886, Tt = 16777215, je = {
|
|
436
436
|
label: "namespaced",
|
|
437
437
|
textColor: Tt,
|
|
438
438
|
backgroundColor: It
|
|
@@ -1024,7 +1024,7 @@ const Rt = {
|
|
|
1024
1024
|
}, tr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, rr = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), sr = { class: "w-full ml-3" }, nr = { class: "flex items-center justify-between mb-1" }, or = { class: "text-xs text-black dark:text-white" }, ar = { class: "text-xs text-black dark:text-white" }, ir = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, lr = { class: "overflow-x-scroll max-h-56" }, dr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, ur = { class: "flex items-center" }, cr = /* @__PURE__ */ s("i", {
|
|
1025
1025
|
class: "text-3xl fas fa-file-alt",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
|
-
}, null, -1), fr = { class: "flex flex-col ml-3" }, hr = { class: "text-xs" }, gr = { class: "text-xs" }, mr = { class: "flex gap-2" },
|
|
1027
|
+
}, null, -1), fr = { class: "flex flex-col ml-3" }, hr = { class: "text-xs" }, gr = { class: "text-xs" }, mr = { class: "flex gap-2" }, _r = ["href"], pr = ["onClick"];
|
|
1028
1028
|
function br(e, t, r, n, a, o) {
|
|
1029
1029
|
const l = X("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
@@ -1107,14 +1107,14 @@ function br(e, t, r, n, a, o) {
|
|
|
1107
1107
|
href: i.url,
|
|
1108
1108
|
target: "_blank",
|
|
1109
1109
|
class: "text-lg text-blue-600 cursor-pointer dark:text-blue-400 fas fa-download"
|
|
1110
|
-
}, null, 8,
|
|
1110
|
+
}, null, 8, _r),
|
|
1111
1111
|
r.is_enable_delete ? (d(), u("i", {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
onClick: (f) => {
|
|
1114
1114
|
a.media_id = i.id, a.open_delete_modal = !0;
|
|
1115
1115
|
},
|
|
1116
1116
|
class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
|
|
1117
|
-
}, null, 8,
|
|
1117
|
+
}, null, 8, pr)) : g("", !0)
|
|
1118
1118
|
])
|
|
1119
1119
|
]))), 256))
|
|
1120
1120
|
])
|
|
@@ -1275,7 +1275,7 @@ function jr(e, t, r, n, a, o) {
|
|
|
1275
1275
|
const md = /* @__PURE__ */ D(Or, [["render", jr]]), Ar = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, Ir = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, Tr = { class: "font-semibold text-black dark:text-white" }, Mr = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
|
-
},
|
|
1278
|
+
}, _d = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1586,7 +1586,7 @@ function ts(e, t, r, n, a, o) {
|
|
|
1586
1586
|
], 2))
|
|
1587
1587
|
], 64);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const pd = /* @__PURE__ */ D(Nr, [["render", ts]]), rs = {
|
|
1590
1590
|
props: {
|
|
1591
1591
|
button_type: {
|
|
1592
1592
|
type: String,
|
|
@@ -1819,7 +1819,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
1819
1819
|
], 2))
|
|
1820
1820
|
], 64));
|
|
1821
1821
|
}
|
|
1822
|
-
}, ms = { class: "font-bold ptext-lg dark:text-white" },
|
|
1822
|
+
}, ms = { class: "font-bold ptext-lg dark:text-white" }, _s = ["name", "id"], ps = ["id"], bs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ys = ["for"], vs = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), xs = ["name", "id"], ws = ["name", "id", "type"], ks = { class: "gl-span-form-error" }, $s = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, vd = {
|
|
1823
1823
|
__name: "GlTinymceTranslate",
|
|
1824
1824
|
props: {
|
|
1825
1825
|
is_required: {
|
|
@@ -1906,13 +1906,13 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
1906
1906
|
ref_key: "input_translate",
|
|
1907
1907
|
ref: l,
|
|
1908
1908
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.inputTranslateValue = f)
|
|
1909
|
-
}, null, 8,
|
|
1909
|
+
}, null, 8, _s), [
|
|
1910
1910
|
[V, i.inputTranslateValue]
|
|
1911
1911
|
]),
|
|
1912
1912
|
s("p", {
|
|
1913
1913
|
id: e.field_name,
|
|
1914
1914
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1915
|
-
}, h(e.model_value), 9,
|
|
1915
|
+
}, h(e.model_value), 9, ps),
|
|
1916
1916
|
bs
|
|
1917
1917
|
], 2)) : g("", !0),
|
|
1918
1918
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -2384,9 +2384,9 @@ const $d = /* @__PURE__ */ D(Ys, [["render", Qs]]), en = {
|
|
|
2384
2384
|
"stroke-linecap": "round",
|
|
2385
2385
|
"stroke-linejoin": "round",
|
|
2386
2386
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2387
|
-
}, null, -1)),
|
|
2387
|
+
}, null, -1)), _n = [
|
|
2388
2388
|
mn
|
|
2389
|
-
],
|
|
2389
|
+
], pn = {
|
|
2390
2390
|
key: 1,
|
|
2391
2391
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2392
2392
|
class: "w-6 h-6",
|
|
@@ -2560,8 +2560,8 @@ function oo(e, t, r, n, a, o) {
|
|
|
2560
2560
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2561
2561
|
onClick: t[1] || (t[1] = M((l) => o.prev(), ["stop"]))
|
|
2562
2562
|
}, [
|
|
2563
|
-
r.direction_property == "ltr" ? (d(), u("svg", gn,
|
|
2564
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2563
|
+
r.direction_property == "ltr" ? (d(), u("svg", gn, _n)) : g("", !0),
|
|
2564
|
+
r.direction_property == "rtl" ? (d(), u("svg", pn, yn)) : g("", !0)
|
|
2565
2565
|
])
|
|
2566
2566
|
])
|
|
2567
2567
|
], 2)) : g("", !0),
|
|
@@ -2725,7 +2725,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2725
2725
|
[G, e.is_open]
|
|
2726
2726
|
]);
|
|
2727
2727
|
}
|
|
2728
|
-
}, mo = { class: "mb-4" },
|
|
2728
|
+
}, mo = { class: "mb-4" }, _o = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, po = { class: "relative inline-flex items-center cursor-pointer" }, bo = ["name", "id", "checked"], yo = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), vo = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), xo = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, wo = { class: "relative inline-flex items-center cursor-pointer" }, ko = ["name", "id"], $o = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), Co = { class: "gl-span-form-error" }, So = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Od = {
|
|
2729
2729
|
__name: "GlToggleBox",
|
|
2730
2730
|
props: {
|
|
2731
2731
|
is_required: {
|
|
@@ -2781,9 +2781,9 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2781
2781
|
class: p(e.field_name)
|
|
2782
2782
|
}, [
|
|
2783
2783
|
s("div", mo, [
|
|
2784
|
-
s("li",
|
|
2784
|
+
s("li", _o, [
|
|
2785
2785
|
w(h(e.label_name) + " ", 1),
|
|
2786
|
-
s("label",
|
|
2786
|
+
s("label", po, [
|
|
2787
2787
|
s("input", {
|
|
2788
2788
|
type: "checkbox",
|
|
2789
2789
|
class: "sr-only peer",
|
|
@@ -2978,8 +2978,8 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2978
2978
|
return r.options.map((b, k) => typeof b == "object" ? b : { id: b, name: b });
|
|
2979
2979
|
}
|
|
2980
2980
|
function ze() {
|
|
2981
|
-
var b = o || r.modelValue;
|
|
2982
|
-
if (b)
|
|
2981
|
+
var b = o.value || r.modelValue;
|
|
2982
|
+
if (console.log(o, " - ", r.modelValue, " - ", b), b)
|
|
2983
2983
|
return typeof b == "object" ? y.value.find((k) => String(k.id) === String(b.id)) || {} : y.value.find((k) => String(k.id) === String(b)) || {};
|
|
2984
2984
|
}
|
|
2985
2985
|
function ge(b) {
|
|
@@ -2987,7 +2987,8 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2987
2987
|
}
|
|
2988
2988
|
function ee() {
|
|
2989
2989
|
r.show || (c.value = "", i.value = !0, rt(() => {
|
|
2990
|
-
|
|
2990
|
+
var b = document.getElementById(`${r.field_name}search${f.value}`);
|
|
2991
|
+
b && b.focus();
|
|
2991
2992
|
}));
|
|
2992
2993
|
}
|
|
2993
2994
|
function He() {
|
|
@@ -3357,7 +3358,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3357
3358
|
"stroke-width": "2",
|
|
3358
3359
|
d: "M5 1 1 5l4 4"
|
|
3359
3360
|
})
|
|
3360
|
-
], -1), ha = ["aria-current"], ga = ["tabindex"], ma = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1),
|
|
3361
|
+
], -1), ha = ["aria-current"], ga = ["tabindex"], ma = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), _a = /* @__PURE__ */ s("svg", {
|
|
3361
3362
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3362
3363
|
"aria-hidden": "true",
|
|
3363
3364
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3372,7 +3373,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3372
3373
|
d: "m1 9 4-4-4-4"
|
|
3373
3374
|
})
|
|
3374
3375
|
], -1);
|
|
3375
|
-
function
|
|
3376
|
+
function pa(e, t, r, n, a, o) {
|
|
3376
3377
|
const l = X("RenderlessPagination");
|
|
3377
3378
|
return d(), Z(l, {
|
|
3378
3379
|
data: r.data,
|
|
@@ -3438,7 +3439,7 @@ function _a(e, t, r, n, a, o) {
|
|
|
3438
3439
|
}, te(i.nextButtonEvents, !0)), [
|
|
3439
3440
|
A(e.$slots, "next-nav", {}, () => [
|
|
3440
3441
|
ma,
|
|
3441
|
-
|
|
3442
|
+
_a
|
|
3442
3443
|
])
|
|
3443
3444
|
], 16, ga)
|
|
3444
3445
|
], 2)) : g("", !0)
|
|
@@ -3448,7 +3449,7 @@ function _a(e, t, r, n, a, o) {
|
|
|
3448
3449
|
_: 3
|
|
3449
3450
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3450
3451
|
}
|
|
3451
|
-
const ba = /* @__PURE__ */ D(na, [["render",
|
|
3452
|
+
const ba = /* @__PURE__ */ D(na, [["render", pa]]), ya = {
|
|
3452
3453
|
components: { TailwindPagination: ba },
|
|
3453
3454
|
props: {
|
|
3454
3455
|
data: Array,
|
|
@@ -3760,7 +3761,7 @@ const Ed = /* @__PURE__ */ D(ya, [["render", Ba]]), Ga = {
|
|
|
3760
3761
|
], -1), Xa = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Ya = { 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" }, Ja = { class: "hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, Qa = ["onClick"], ei = {
|
|
3761
3762
|
key: 0,
|
|
3762
3763
|
class: "ml-2"
|
|
3763
|
-
}, ti = ["data-label"], ri = ["innerHTML"], si = { 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" }, ni = { class: "flex justify-between flex-1 sm:hidden" }, oi = ["disabled"], ai = ["disabled"], ii = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, li = { class: "text-sm text-gray-700 dark:text-gray-400" }, di = { class: "font-medium" }, ui = { class: "font-medium" }, ci = { class: "font-medium" }, fi = { "aria-label": "Page navigation" }, hi = { class: "flex items-center h-8 -space-x-px text-sm" }, gi = ["disabled"], mi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1),
|
|
3764
|
+
}, ti = ["data-label"], ri = ["innerHTML"], si = { 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" }, ni = { class: "flex justify-between flex-1 sm:hidden" }, oi = ["disabled"], ai = ["disabled"], ii = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, li = { class: "text-sm text-gray-700 dark:text-gray-400" }, di = { class: "font-medium" }, ui = { class: "font-medium" }, ci = { class: "font-medium" }, fi = { "aria-label": "Page navigation" }, hi = { class: "flex items-center h-8 -space-x-px text-sm" }, gi = ["disabled"], mi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), _i = /* @__PURE__ */ s("svg", {
|
|
3764
3765
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3765
3766
|
"aria-hidden": "true",
|
|
3766
3767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3774,9 +3775,9 @@ const Ed = /* @__PURE__ */ D(ya, [["render", Ba]]), Ga = {
|
|
|
3774
3775
|
"stroke-width": "2",
|
|
3775
3776
|
d: "M5 1 1 5l4 4"
|
|
3776
3777
|
})
|
|
3777
|
-
], -1),
|
|
3778
|
+
], -1), pi = [
|
|
3778
3779
|
mi,
|
|
3779
|
-
|
|
3780
|
+
_i
|
|
3780
3781
|
], bi = ["onClick"], yi = ["onClick"], vi = ["disabled"], xi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), wi = /* @__PURE__ */ s("svg", {
|
|
3781
3782
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3782
3783
|
"aria-hidden": "true",
|
|
@@ -3899,7 +3900,7 @@ function $i(e, t, r, n, a, o) {
|
|
|
3899
3900
|
onClick: t[4] || (t[4] = (...i) => o.previousPage && o.previousPage(...i)),
|
|
3900
3901
|
disabled: a.currentPage === 1,
|
|
3901
3902
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3902
|
-
},
|
|
3903
|
+
}, pi, 8, gi)
|
|
3903
3904
|
]),
|
|
3904
3905
|
(d(!0), u(v, null, $(o.displayedPageNumbers, (i) => (d(), u(v, { key: i }, [
|
|
3905
3906
|
s("li", null, [
|
|
@@ -4367,7 +4368,7 @@ const Md = /* @__PURE__ */ D(il, [["render", hl]]), gl = {
|
|
|
4367
4368
|
return typeof this.row[this.field] == "object";
|
|
4368
4369
|
}
|
|
4369
4370
|
}
|
|
4370
|
-
}, ml = ["href", "title"],
|
|
4371
|
+
}, ml = ["href", "title"], _l = /* @__PURE__ */ s("svg", {
|
|
4371
4372
|
class: "w-3 h-3 text-white me-2",
|
|
4372
4373
|
"aria-hidden": "true",
|
|
4373
4374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4384,7 +4385,7 @@ const Md = /* @__PURE__ */ D(il, [["render", hl]]), gl = {
|
|
|
4384
4385
|
d: "M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z",
|
|
4385
4386
|
"clip-rule": "evenodd"
|
|
4386
4387
|
})
|
|
4387
|
-
], -1),
|
|
4388
|
+
], -1), pl = {
|
|
4388
4389
|
key: 1,
|
|
4389
4390
|
class: "m-1 d-inline-block"
|
|
4390
4391
|
}, bl = ["href", "title"], yl = /* @__PURE__ */ s("svg", {
|
|
@@ -4417,10 +4418,10 @@ function vl(e, t, r, n, a, o) {
|
|
|
4417
4418
|
target: "_blank",
|
|
4418
4419
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4419
4420
|
}, [
|
|
4420
|
-
|
|
4421
|
+
_l,
|
|
4421
4422
|
w(" Download ")
|
|
4422
4423
|
], 8, ml)
|
|
4423
|
-
]))), 128)) : o.isObject ? (d(), u("div",
|
|
4424
|
+
]))), 128)) : o.isObject ? (d(), u("div", pl, [
|
|
4424
4425
|
s("a", {
|
|
4425
4426
|
href: r.row[r.field].url,
|
|
4426
4427
|
title: r.row[r.field].name,
|
|
@@ -4613,7 +4614,7 @@ function cd(e, t, r, n, a, o) {
|
|
|
4613
4614
|
const Rd = /* @__PURE__ */ D(Ql, [["render", cd]]);
|
|
4614
4615
|
export {
|
|
4615
4616
|
bd as GlButton,
|
|
4616
|
-
|
|
4617
|
+
_d as GlCard,
|
|
4617
4618
|
Rd as GlConfirmationModal,
|
|
4618
4619
|
jd as GlDataTable,
|
|
4619
4620
|
Ed as GlDataTableServerSide,
|
|
@@ -4632,7 +4633,7 @@ export {
|
|
|
4632
4633
|
md as GlLanguageSelector,
|
|
4633
4634
|
Sd as GlModal,
|
|
4634
4635
|
Cd as GlMultiItemSlide,
|
|
4635
|
-
|
|
4636
|
+
pd as GlMultiSelectDropdown,
|
|
4636
4637
|
gd as GlNotify,
|
|
4637
4638
|
$d as GlTab,
|
|
4638
4639
|
kd as GlTabsWrapper,
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/var q="store";function H(t){return t===void 0&&(t=null),e.inject(t!==null?t:q)}function B(t,r){Object.keys(t).forEach(function(o){return r(t[o],o)})}function Z(t){return t!==null&&typeof t=="object"}function Te(t){return t&&typeof t.then=="function"}function E(t,r){if(!t)throw new Error("[vuex] "+r)}function je(t,r){return function(){return t(r)}}function K(t,r,o){return r.indexOf(t)<0&&(o&&o.prepend?r.unshift(t):r.push(t)),function(){var n=r.indexOf(t);n>-1&&r.splice(n,1)}}function W(t,r){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var o=t.state;P(t,o,[],t._modules.root,!0),M(t,o,r)}function M(t,r,o){var n=t._state,l=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var a=t._wrappedGetters,i={},s={},d=e.effectScope(!0);d.run(function(){B(a,function(c,m){i[m]=je(c,t),s[m]=e.computed(function(){return i[m]()}),Object.defineProperty(t.getters,m,{get:function(){return s[m].value},enumerable:!0})})}),t._state=e.reactive({data:r}),t._scope=d,t.strict&&Fe(t),n&&o&&t._withCommit(function(){n.data=null}),l&&l.stop()}function P(t,r,o,n,l){var a=!o.length,i=t._modules.getNamespace(o);if(n.namespaced&&(t._modulesNamespaceMap[i]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+i+" for the namespaced module "+o.join("/")),t._modulesNamespaceMap[i]=n),!a&&!l){var s=A(r,o.slice(0,-1)),d=o[o.length-1];t._withCommit(function(){process.env.NODE_ENV!=="production"&&d in s&&console.warn('[vuex] state field "'+d+'" was overridden by a module with the same name at "'+o.join(".")+'"'),s[d]=n.state})}var c=n.context=Me(t,i,o);n.forEachMutation(function(m,g){var u=i+g;Ae(t,u,m,c)}),n.forEachAction(function(m,g){var u=m.root?g:i+g,b=m.handler||m;Ie(t,u,b,c)}),n.forEachGetter(function(m,g){var u=i+g;Le(t,u,m,c)}),n.forEachChild(function(m,g){P(t,r,o.concat(g),m,l)})}function Me(t,r,o){var n=r==="",l={dispatch:n?t.dispatch:function(a,i,s){var d=T(a,i,s),c=d.payload,m=d.options,g=d.type;if((!m||!m.root)&&(g=r+g,process.env.NODE_ENV!=="production"&&!t._actions[g])){console.error("[vuex] unknown local action type: "+d.type+", global type: "+g);return}return t.dispatch(g,c)},commit:n?t.commit:function(a,i,s){var d=T(a,i,s),c=d.payload,m=d.options,g=d.type;if((!m||!m.root)&&(g=r+g,process.env.NODE_ENV!=="production"&&!t._mutations[g])){console.error("[vuex] unknown local mutation type: "+d.type+", global type: "+g);return}t.commit(g,c,m)}};return Object.defineProperties(l,{getters:{get:n?function(){return t.getters}:function(){return X(t,r)}},state:{get:function(){return A(t.state,o)}}}),l}function X(t,r){if(!t._makeLocalGettersCache[r]){var o={},n=r.length;Object.keys(t.getters).forEach(function(l){if(l.slice(0,n)===r){var a=l.slice(n);Object.defineProperty(o,a,{get:function(){return t.getters[l]},enumerable:!0})}}),t._makeLocalGettersCache[r]=o}return t._makeLocalGettersCache[r]}function Ae(t,r,o,n){var l=t._mutations[r]||(t._mutations[r]=[]);l.push(function(i){o.call(t,n.state,i)})}function Ie(t,r,o,n){var l=t._actions[r]||(t._actions[r]=[]);l.push(function(i){var s=o.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},i);return Te(s)||(s=Promise.resolve(s)),t._devtoolHook?s.catch(function(d){throw t._devtoolHook.emit("vuex:error",d),d}):s})}function Le(t,r,o,n){if(t._wrappedGetters[r]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+r);return}t._wrappedGetters[r]=function(a){return o(n.state,n.getters,a.state,a.getters)}}function Fe(t){e.watch(function(){return t._state.data},function(){process.env.NODE_ENV!=="production"&&E(t._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function A(t,r){return r.reduce(function(o,n){return o[n]},t)}function T(t,r,o){return Z(t)&&t.type&&(o=r,r=t,t=t.type),process.env.NODE_ENV!=="production"&&E(typeof t=="string","expects string as the type, but found "+typeof t+"."),{type:t,payload:r,options:o}}var ze="vuex bindings",Y="vuex:mutations",I="vuex:actions",D="vuex",Ge=0;function ve(t,r){Pe({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[ze]},function(o){o.addTimelineLayer({id:Y,label:"Vuex Mutations",color:J}),o.addTimelineLayer({id:I,label:"Vuex Actions",color:J}),o.addInspector({id:D,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(n){if(n.app===t&&n.inspectorId===D)if(n.filter){var l=[];re(l,r._modules.root,n.filter,""),n.rootNodes=l}else n.rootNodes=[te(r._modules.root,"")]}),o.on.getInspectorState(function(n){if(n.app===t&&n.inspectorId===D){var l=n.nodeId;X(r,l),n.state=qe(Ze(r._modules,l),l==="root"?r.getters:r._makeLocalGettersCache,l)}}),o.on.editInspectorState(function(n){if(n.app===t&&n.inspectorId===D){var l=n.nodeId,a=n.path;l!=="root"&&(a=l.split("/").filter(Boolean).concat(a)),r._withCommit(function(){n.set(r._state.data,a,n.state.value)})}}),r.subscribe(function(n,l){var a={};n.payload&&(a.payload=n.payload),a.state=l,o.notifyComponentUpdate(),o.sendInspectorTree(D),o.sendInspectorState(D),o.addTimelineEvent({layerId:Y,event:{time:Date.now(),title:n.type,data:a}})}),r.subscribeAction({before:function(n,l){var a={};n.payload&&(a.payload=n.payload),n._id=Ge++,n._time=Date.now(),a.state=l,o.addTimelineEvent({layerId:I,event:{time:n._time,title:n.type,groupId:n._id,subtitle:"start",data:a}})},after:function(n,l){var a={},i=Date.now()-n._time;a.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},n.payload&&(a.payload=n.payload),a.state=l,o.addTimelineEvent({layerId:I,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:a}})}})})}var J=8702998,Re=6710886,Ue=16777215,Q={label:"namespaced",textColor:Ue,backgroundColor:Re};function ee(t){return t&&t!=="root"?t.split("/").slice(-2,-1)[0]:"Root"}function te(t,r){return{id:r||"root",label:ee(r),tags:t.namespaced?[Q]:[],children:Object.keys(t._children).map(function(o){return te(t._children[o],r+o+"/")})}}function re(t,r,o,n){n.includes(o)&&t.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:r.namespaced?[Q]:[]}),Object.keys(r._children).forEach(function(l){re(t,r._children[l],o,n+l+"/")})}function qe(t,r,o){r=o==="root"?r:r[o];var n=Object.keys(r),l={state:Object.keys(t.state).map(function(i){return{key:i,editable:!0,value:t.state[i]}})};if(n.length){var a=He(r);l.getters=Object.keys(a).map(function(i){return{key:i.endsWith("/")?ee(i):i,editable:!1,value:L(function(){return a[i]})}})}return l}function He(t){var r={};return Object.keys(t).forEach(function(o){var n=o.split("/");if(n.length>1){var l=r,a=n.pop();n.forEach(function(i){l[i]||(l[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),l=l[i]._custom.value}),l[a]=L(function(){return t[o]})}else r[o]=L(function(){return t[o]})}),r}function Ze(t,r){var o=r.split("/").filter(function(n){return n});return o.reduce(function(n,l,a){var i=n[l];if(!i)throw new Error('Missing module "'+l+'" for path "'+r+'".');return a===o.length-1?i:i._children},r==="root"?t:t.root._children)}function L(t){try{return t()}catch(r){return r}}var N=function(r,o){this.runtime=o,this._children=Object.create(null),this._rawModule=r;var n=r.state;this.state=(typeof n=="function"?n():n)||{}},oe={namespaced:{configurable:!0}};oe.namespaced.get=function(){return!!this._rawModule.namespaced},N.prototype.addChild=function(r,o){this._children[r]=o},N.prototype.removeChild=function(r){delete this._children[r]},N.prototype.getChild=function(r){return this._children[r]},N.prototype.hasChild=function(r){return r in this._children},N.prototype.update=function(r){this._rawModule.namespaced=r.namespaced,r.actions&&(this._rawModule.actions=r.actions),r.mutations&&(this._rawModule.mutations=r.mutations),r.getters&&(this._rawModule.getters=r.getters)},N.prototype.forEachChild=function(r){B(this._children,r)},N.prototype.forEachGetter=function(r){this._rawModule.getters&&B(this._rawModule.getters,r)},N.prototype.forEachAction=function(r){this._rawModule.actions&&B(this._rawModule.actions,r)},N.prototype.forEachMutation=function(r){this._rawModule.mutations&&B(this._rawModule.mutations,r)},Object.defineProperties(N.prototype,oe);var C=function(r){this.register([],r,!1)};C.prototype.get=function(r){return r.reduce(function(o,n){return o.getChild(n)},this.root)},C.prototype.getNamespace=function(r){var o=this.root;return r.reduce(function(n,l){return o=o.getChild(l),n+(o.namespaced?l+"/":"")},"")},C.prototype.update=function(r){ne([],this.root,r)},C.prototype.register=function(r,o,n){var l=this;n===void 0&&(n=!0),process.env.NODE_ENV!=="production"&&se(r,o);var a=new N(o,n);if(r.length===0)this.root=a;else{var i=this.get(r.slice(0,-1));i.addChild(r[r.length-1],a)}o.modules&&B(o.modules,function(s,d){l.register(r.concat(d),s,n)})},C.prototype.unregister=function(r){var o=this.get(r.slice(0,-1)),n=r[r.length-1],l=o.getChild(n);if(!l){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+n+"', which is not registered");return}l.runtime&&o.removeChild(n)},C.prototype.isRegistered=function(r){var o=this.get(r.slice(0,-1)),n=r[r.length-1];return o?o.hasChild(n):!1};function ne(t,r,o){if(process.env.NODE_ENV!=="production"&&se(t,o),r.update(o),o.modules)for(var n in o.modules){if(!r.getChild(n)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");return}ne(t.concat(n),r.getChild(n),o.modules[n])}}var ae={assert:function(t){return typeof t=="function"},expected:"function"},Ke={assert:function(t){return typeof t=="function"||typeof t=="object"&&typeof t.handler=="function"},expected:'function or object with "handler" function'},le={getters:ae,mutations:ae,actions:Ke};function se(t,r){Object.keys(le).forEach(function(o){if(r[o]){var n=le[o];B(r[o],function(l,a){E(n.assert(l),We(t,o,a,l,n.expected))})}})}function We(t,r,o,n,l){var a=r+" should be "+l+' but "'+r+"."+o+'"';return t.length>0&&(a+=' in module "'+t.join(".")+'"'),a+=" is "+JSON.stringify(n)+".",a}var w=function t(r){var o=this;r===void 0&&(r={}),process.env.NODE_ENV!=="production"&&(E(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),E(this instanceof t,"store must be called with the new operator."));var n=r.plugins;n===void 0&&(n=[]);var l=r.strict;l===void 0&&(l=!1);var a=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new C(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;var i=this,s=this,d=s.dispatch,c=s.commit;this.dispatch=function(u,b){return d.call(i,u,b)},this.commit=function(u,b,S){return c.call(i,u,b,S)},this.strict=l;var m=this._modules.root.state;P(this,m,[],this._modules.root),M(this,m),n.forEach(function(g){return g(o)})},F={state:{configurable:!0}};w.prototype.install=function(r,o){r.provide(o||q,this),r.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;n&&ve(r,this)},F.state.get=function(){return this._state.data},F.state.set=function(t){process.env.NODE_ENV!=="production"&&E(!1,"use store.replaceState() to explicit replace store state.")},w.prototype.commit=function(r,o,n){var l=this,a=T(r,o,n),i=a.type,s=a.payload,d=a.options,c={type:i,payload:s},m=this._mutations[i];if(!m){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+i);return}this._withCommit(function(){m.forEach(function(u){u(s)})}),this._subscribers.slice().forEach(function(g){return g(c,l.state)}),process.env.NODE_ENV!=="production"&&d&&d.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")},w.prototype.dispatch=function(r,o){var n=this,l=T(r,o),a=l.type,i=l.payload,s={type:a,payload:i},d=this._actions[a];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+a);return}try{this._actionSubscribers.slice().filter(function(m){return m.before}).forEach(function(m){return m.before(s,n.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(m))}var c=d.length>1?Promise.all(d.map(function(m){return m(i)})):d[0](i);return new Promise(function(m,g){c.then(function(u){try{n._actionSubscribers.filter(function(b){return b.after}).forEach(function(b){return b.after(s,n.state)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(b))}m(u)},function(u){try{n._actionSubscribers.filter(function(b){return b.error}).forEach(function(b){return b.error(s,n.state,u)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(b))}g(u)})})},w.prototype.subscribe=function(r,o){return K(r,this._subscribers,o)},w.prototype.subscribeAction=function(r,o){var n=typeof r=="function"?{before:r}:r;return K(n,this._actionSubscribers,o)},w.prototype.watch=function(r,o,n){var l=this;return process.env.NODE_ENV!=="production"&&E(typeof r=="function","store.watch only accepts a function."),e.watch(function(){return r(l.state,l.getters)},o,Object.assign({},n))},w.prototype.replaceState=function(r){var o=this;this._withCommit(function(){o._state.data=r})},w.prototype.registerModule=function(r,o,n){n===void 0&&(n={}),typeof r=="string"&&(r=[r]),process.env.NODE_ENV!=="production"&&(E(Array.isArray(r),"module path must be a string or an Array."),E(r.length>0,"cannot register the root module by using registerModule.")),this._modules.register(r,o),P(this,this.state,r,this._modules.get(r),n.preserveState),M(this,this.state)},w.prototype.unregisterModule=function(r){var o=this;typeof r=="string"&&(r=[r]),process.env.NODE_ENV!=="production"&&E(Array.isArray(r),"module path must be a string or an Array."),this._modules.unregister(r),this._withCommit(function(){var n=A(o.state,r.slice(0,-1));delete n[r[r.length-1]]}),W(this)},w.prototype.hasModule=function(r){return typeof r=="string"&&(r=[r]),process.env.NODE_ENV!=="production"&&E(Array.isArray(r),"module path must be a string or an Array."),this._modules.isRegistered(r)},w.prototype.hotUpdate=function(r){this._modules.update(r),W(this,!0)},w.prototype._withCommit=function(r){var o=this._committing;this._committing=!0,r(),this._committing=o},Object.defineProperties(w.prototype,F);var Xe=de(function(t,r){var o={};return process.env.NODE_ENV!=="production"&&!z(r)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),ie(r).forEach(function(n){var l=n.key,a=n.val;o[l]=function(){var s=this.$store.state,d=this.$store.getters;if(t){var c=ce(this.$store,"mapState",t);if(!c)return;s=c.context.state,d=c.context.getters}return typeof a=="function"?a.call(this,s,d):s[a]},o[l].vuex=!0}),o}),Ye=de(function(t,r){var o={};return process.env.NODE_ENV!=="production"&&!z(r)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),ie(r).forEach(function(n){var l=n.key,a=n.val;o[l]=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var c=this.$store.commit;if(t){var m=ce(this.$store,"mapMutations",t);if(!m)return;c=m.context.commit}return typeof a=="function"?a.apply(this,[c].concat(s)):c.apply(this.$store,[a].concat(s))}}),o});function ie(t){return z(t)?Array.isArray(t)?t.map(function(r){return{key:r,val:r}}):Object.keys(t).map(function(r){return{key:r,val:t[r]}}):[]}function z(t){return Array.isArray(t)||Z(t)}function de(t){return function(r,o){return typeof r!="string"?(o=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),t(r,o)}}function ce(t,r,o){var n=t._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!n&&console.error("[vuex] module namespace not found in "+r+"(): "+o),n}const Je={components:{DeleteConfirmationModal:O},props:{is_required:{type:Boolean,default:!1},error_message:{type:String,default:""},description:{type:String,default:""},show:{type:Boolean,default:!1},has_multiple_file:{show:Boolean,default:!1},field_name:{type:String,default:""},label_name:{type:String,default:""},route_url:{type:String,default:""},model_value:{type:Array,default:[]},file_config:{type:Object,default:{}},is_enable_delete:{type:Boolean,default:!0}},emits:["uploaded"],data(){return{media_id:"",error_message_data:"",open_delete_modal:!1,files:[],uploadFileList:[],isDragging:!1}},methods:{closeDeleteModal(){this.open_delete_modal=!1},deleteAction(){axios.delete(this.route_url+"/destroyMedia/"+this.media_id).then(t=>{let r=this.uploadFileList.findIndex(o=>o.id===this.media_id);r!==-1&&this.uploadFileList.splice(r,1),this.closeDeleteModal(),this.$store.commit("notification/SHOW_NOTIFICATION",{message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(t=>{console.error(t),this.is_loading=!1})},getFileName(t){return t.length>12?t.substring(0,13)+"... ."+t.split(".")[1]:t},formatFileSize(t){if(t===0)return"0 Bytes";const r=1024,o=["Bytes","KB","MB","GB","TB"],n=Math.floor(Math.log(t)/Math.log(r));return parseFloat((t/Math.pow(r,n)).toFixed(2))+" "+o[n]},onDragOver(t){t.preventDefault(),this.isDragging=!0,t.dataTransfer.dropEffect="copy"},onDragLeave(t){t.preventDefault(),this.isDragging=!1},onDrop(t){t.preventDefault(),this.isDragging=!1;const r=t.dataTransfer.files;Array.from(r).forEach(o=>{this.uploadFile(o)})},async uploadFiles(t){const r=t.target.files,o=Array.from(r).map(n=>this.uploadFile(n));await Promise.all(o),this.$emit("uploaded")},getFirstError(t,r){return t.hasOwnProperty(r)?t[r][0]:""},async uploadFile(t){return new Promise((r,o)=>{t||r();const n=new FormData;n.append("file",t),Object.entries(this.file_config).forEach(([l,a])=>{n.append(l,a)}),this.files.push({file_name:t.name,loading:0}),axios.post(this.route_url+"/media",n,{onUploadProgress:l=>{this.files[this.files.length-1].loading=Math.floor(l.loaded/l.total*100)}}).then(l=>{let a=this.files.findIndex(i=>i.file_name===t.name);a!==-1&&this.files.splice(a,1),this.uploadFileList.push({file_name:l.data.file_name,size:l.data.size,id:l.data.id,url:l.data.url}),this.error_message_data="",r()}).catch(l=>{l.response.status===422?this.error_message_data=this.getFirstError(l.response.data.errors,"file"):console.error("An error occurred:",l);let a=this.files.findIndex(i=>i.file_name===t.name);a!==-1&&this.files.splice(a,1),console.log(l),r()})})}},computed:{uploadedFileIds(){var t;return this.has_multiple_file?this.uploadFileList.map(r=>r.id):((t=this.uploadFileList[0])==null?void 0:t.id)||null}},mounted(){console.log(this.model_value),this.model_value?Array.isArray(this.model_value)?this.uploadFileList=this.model_value:this.uploadFileList=[this.model_value]:this.uploadFileList=[],this.error_message_data=this.error_message}},Qe={class:"flex flex-col items-center justify-center pt-5 pb-6"},et=["multiple"],tt=["name"],rt=[e.createElementVNode("svg",{class:"w-8 h-8 mb-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"})],-1),e.createElementVNode("p",{class:"text-sm text-gray-500 dark:text-gray-400"}," Drag & drop files or browse ",-1)],ot={key:1},nt=[e.createElementVNode("p",{class:"text-sm text-gray-500 dark:text-gray-400"},"Drop files here",-1)],at={class:"mt-2 gl-span-form-error"},lt={class:"block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500"},st={key:0,class:""},it={class:"flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white"},dt=e.createElementVNode("i",{class:"text-3xl fas fa-file-alt"},null,-1),ct={class:"w-full ml-3"},mt={class:"flex items-center justify-between mb-1"},ft={class:"text-xs text-black dark:text-white"},gt={class:"text-xs text-black dark:text-white"},ht={class:"w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800"},ut={class:"overflow-x-scroll max-h-56"},pt={class:"flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white"},_t={class:"flex items-center"},yt=e.createElementVNode("i",{class:"text-3xl fas fa-file-alt","aria-hidden":"true"},null,-1),bt={class:"flex flex-col ml-3"},kt={class:"text-xs"},xt={class:"text-xs"},wt={class:"flex gap-2"},Et=["href"],Nt=["onClick"];function Vt(t,r,o,n,l,a){const i=e.resolveComponent("DeleteConfirmationModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{isOpen:l.open_delete_modal,onConfirmDelete:a.deleteAction,onCancelDelete:a.closeDeleteModal},null,8,["isOpen","onConfirmDelete","onCancelDelete"]),e.createElementVNode("div",{class:e.normalizeClass([{"border-red-500 dark:border-red-500":l.error_message_data!=="","border-gray-200 dark:border-gray-700":l.error_message_data==""},"w-full p-4 bg-white border rounded-lg shadow dark:bg-gray-800"])},[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-form":l.error_message_data=="","gl-label-form-invalid":l.error_message_data!=="",required:o.is_required})},e.toDisplayString(o.label_name),3),e.createElementVNode("div",{onDragover:r[3]||(r[3]=e.withModifiers((...s)=>a.onDragOver&&a.onDragOver(...s),["prevent"])),onDragleave:r[4]||(r[4]=e.withModifiers((...s)=>a.onDragLeave&&a.onDragLeave(...s),["prevent"])),onDrop:r[5]||(r[5]=e.withModifiers((...s)=>a.onDrop&&a.onDrop(...s),["prevent"])),class:"flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"},[e.createElementVNode("div",Qe,[e.createElementVNode("input",{type:"file",ref:"file_input"+o.field_name,hidden:"",multiple:o.has_multiple_file,onChange:r[0]||(r[0]=(...s)=>a.uploadFiles&&a.uploadFiles(...s))},null,40,et),e.withDirectives(e.createElementVNode("input",{type:"hidden",name:o.field_name,"onUpdate:modelValue":r[1]||(r[1]=s=>a.uploadedFileIds=s)},null,8,tt),[[e.vModelText,a.uploadedFileIds]]),l.isDragging?(e.openBlock(),e.createElementBlock("div",ot,nt)):(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex flex-col items-center justify-center",onClick:r[2]||(r[2]=s=>t.$refs["file_input"+this.field_name].click())},rt))])],32),e.createElementVNode("span",at,e.toDisplayString(l.error_message_data),1),e.createElementVNode("small",lt,e.toDisplayString(o.description),1),l.files.length>0?(e.openBlock(),e.createElementBlock("section",st,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.files,(s,d)=>(e.openBlock(),e.createElementBlock("li",it,[dt,e.createElementVNode("div",ct,[e.createElementVNode("div",mt,[e.createElementVNode("span",ft,e.toDisplayString(a.getFileName(s.file_name)),1),e.createElementVNode("span",gt,e.toDisplayString(s.loading),1)]),e.createElementVNode("div",ht,[e.createElementVNode("div",{class:"h-full bg-gray-500 rounded-full dark:bg-gray-400",style:e.normalizeStyle({width:s.loading+"%"})},null,4)])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("section",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.uploadFileList,(s,d)=>(e.openBlock(),e.createElementBlock("li",pt,[e.createElementVNode("div",_t,[yt,e.createElementVNode("div",bt,[e.createElementVNode("span",kt,e.toDisplayString(a.getFileName(s.file_name)),1),e.createElementVNode("span",xt,e.toDisplayString(a.formatFileSize(s.size)),1)])]),e.createElementVNode("div",wt,[e.createElementVNode("a",{href:s.url,target:"_blank",class:"text-lg text-blue-600 cursor-pointer dark:text-blue-400 fas fa-download"},null,8,Et),o.is_enable_delete?(e.openBlock(),e.createElementBlock("i",{key:0,onClick:c=>{l.media_id=s.id,l.open_delete_modal=!0},class:"text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"},null,8,Nt)):e.createCommentVNode("",!0)])]))),256))])],2)],64)}const Bt=k(Je,[["render",Vt]]),Ct={computed:{...Xe("notification",["notification"]),alertClasses(){switch(this.notification.type){case"info":return"text-blue-800 bg-blue-50 dark:bg-gray-800 dark:text-blue-400";case"error":return"text-red-800 bg-red-50 dark:bg-gray-800 dark:text-red-400";case"success":return"text-green-800 bg-green-50 dark:bg-gray-800 dark:text-green-400";case"warning":return"text-yellow-800 bg-yellow-50 dark:bg-gray-800 dark:text-yellow-300";case"dark":return"text-gray-800 bg-gray-50 dark:bg-gray-800 dark:text-gray-300";default:return""}},buttonClasses(){switch(this.notification.type){case"info":return"bg-blue-50 text-blue-500 focus:ring-blue-400 hover:bg-blue-200 dark:hover:bg-gray-700";case"error":return"bg-red-50 text-red-500 focus:ring-red-400 hover:bg-red-200 dark:hover:bg-gray-700";case"success":return"bg-green-50 text-green-500 focus:ring-green-400 hover:bg-green-200 dark:hover:bg-gray-700";case"warning":return"bg-yellow-50 text-yellow-500 focus:ring-yellow-400 hover:bg-yellow-200 dark:hover:bg-gray-700";case"dark":return"bg-gray-50 text-gray-500 focus:ring-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700";default:return""}}},methods:{...Ye("notification",["HIDE_NOTIFICATION"]),dismiss(){this.HIDE_NOTIFICATION()}},watch:{"notification.show":function(t){t&&setTimeout(()=>{this.dismiss()},this.notification.duration)}}},St=e.createElementVNode("svg",{class:"flex-shrink-0 w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[e.createElementVNode("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"})],-1),$t=e.createElementVNode("span",{class:"sr-only"},"Info",-1),Dt={class:"mr-3 text-sm font-medium ms-3"},Ot=[e.createElementVNode("span",{class:"sr-only"},"Close",-1),e.createElementVNode("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)];function Pt(t,r,o,n,l,a){return t.notification.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["fixed right-0 z-50 flex items-center p-4 m-5 mb-4 rounded-lg shadow-lg",a.alertClasses]),role:"alert"},[St,$t,e.createElementVNode("div",Dt,e.toDisplayString(t.notification.message),1),e.createElementVNode("button",{type:"button",onClick:r[0]||(r[0]=(...i)=>a.dismiss&&a.dismiss(...i)),class:e.normalizeClass(["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]),"aria-label":"Close"},Ot,2)],2)):e.createCommentVNode("",!0)}const Tt=k(Ct,[["render",Pt]]),jt={components:{},props:{field_name:{type:String,default:""},trans_selector_name:{type:String,default:"i18n_selector"}},data(){return{locals:[],default_language:""}},methods:{getLocals(){const t={id:this.menu_id};axios.get("/admin/get_locals",{params:t}).then(r=>{this.locals=r.data.locals,this.default_language=r.data.default_language,console.log("default_language",this.default_language)}).catch(r=>{console.error(r)})}},created(){this.getLocals()},mounted(){}},Mt={class:"grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector"},At=["name","value","id","checked"],It=["for"];function Lt(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("ul",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.locals,(i,s)=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("input",{type:"radio",name:o.trans_selector_name,value:i,class:"hidden peer",id:i+"_"+o.field_name,autocomplete:"off",checked:i===l.default_language},null,8,At),e.createElementVNode("label",{for:i+"_"+o.field_name,class:e.normalizeClass([{"border md:!rounded-s-lg":s===0,"border md:!rounded-e-lg":s===l.locals.length-1,"border-t border-b":s!==0&&s!==l.locals.length-1},"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"])},e.toDisplayString(i),11,It)]))),256))])}const Ft=k(jt,[["render",Lt]]),zt={class:"bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark"},Gt={class:"px-3 py-4 border-b border-stroke dark:border-strokedark"},vt={class:"font-semibold text-black dark:text-white"},Rt={key:0,class:"p-6"},Ut={__name:"GlCard",props:{class:{type:String,default:""}},setup(t){const r=t,o=e.computed(()=>r.class);return(n,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-col gap-9",o.value])},[e.createElementVNode("div",zt,[e.createElementVNode("div",Gt,[e.createElementVNode("h3",vt,[e.renderSlot(n.$slots,"header")])]),n.$slots.body?(e.openBlock(),e.createElementBlock("div",Rt,[e.renderSlot(n.$slots,"body")])):e.createCommentVNode("",!0)])],2))}},qt={name:"MultiSelectDropdown",template:"MultiSelectDropdown",props:{modelValue:{type:[String,Number],default:""},default_value:{type:Array,default:[]},field_name:{type:String,default:""},is_required:{type:Boolean,default:!1},has_cancel:{type:Boolean,default:!0},label_name:{type:String,default:""},options:{type:Array,required:!0,default:[],note:"Options of dropdown. An array of options with id and name"},placeholder:{type:String,required:!1,default:"Please select an option",note:"Placeholder of dropdown"},maxItem:{type:Number,required:!1,default:100,note:"Max items showing"},show:{type:Boolean,default:!1},error_message:{type:String,default:""}},data(){return{selected:[],count:0,optionsShown:!1,searchFilter:"",selectedIds:[]}},created(){this.$emit("selected",this.selected)},mounted(){self=this;var t=this.convertedOptionsDefault();this.selected=this.options_values.filter(r=>t.includes(r.id+"")),this.show||(document.body.addEventListener("click",function(r){self.clearData(r)}),document.getElementById(this.field_name+"search").addEventListener("keydown",function(r){if(_.includes([37,38,39,40,13],r.keyCode)){if((r.keyCode===38||r.keyCode===40)&&r.preventDefault(),r.keyCode===40&&self.posts=="")return;self.selectItem(r.keyCode)}}),document.addEventListener("keypress",function(r){r.key==="Enter"&&r.target.form&&r.preventDefault()}))},computed:{options_values(){return this.convertedOptions()},filteredOptions(){const t=[],r=new RegExp(this.searchFilter,"ig");for(const o of this.options_values){const n=String(o.name);(this.searchFilter.length<1||n.match(r))&&t.length<this.maxItem&&t.push(o)}return t}},emits:["update:modelValue","selected","selectionChanged"],methods:{selectAll(){this.selected=this.convertedOptions()},deselectAll(){this.selected=[]},isOptionSelected(t){return this.selected.findIndex(r=>r.id===t)!==-1},clearData:function(t){t.target.id!=this.field_name+"search"&&t.target.id!=this.field_name&&!t.target.classList.contains("showOptions")&&(this.exit(),this.count=0)},selectItem:function(t){t==40&&this.count<this.filteredOptions.length&&(this.count++,document.getElementById(this.count).scrollIntoView()),t==38&&this.count>1&&(this.count--,document.getElementById(this.count).scrollIntoView()),t==13&&document.getElementById(this.count).click()},convertedOptions(){return this.options.map((t,r)=>typeof t=="object"?t:{id:t,name:t})},convertedOptionsDefault(){return this.default_value.map((t,r)=>typeof t=="object"?t.id+"":t+"")},clearOption(t){let r=this.selected.findIndex(o=>o.id===t.id);r!==-1&&this.selected.splice(r,1),this.selectedIds=this.selected.map(o=>o.id),this.$emit("update:modelValue",this.selectedIds),this.$emit("selected",this.selectedIds)},selectOption(t){let r=this.selected.findIndex(o=>o.id===t.id);r!==-1?this.selected.splice(r,1):this.selected.push(t),this.selectedIds=this.selected.map(o=>o.id),this.$emit("update:modelValue",this.selectedIds),this.$emit("selected",this.selectedIds)},showOptions(){this.show||(this.searchFilter="",this.optionsShown=!0,this.$nextTick(()=>{this.$refs[this.field_name+"search"].focus()}))},ClearInput(){this.show||(this.selected=[],this.searchFilter="",this.showOptions())},exit(){this.selected||(this.selected=[],this.searchFilter=""),this.optionsShown=!1},keyMonitor:function(t){if(_.includes([37,38,39,40,13],t.keyCode)){if((t.keyCode===38||t.keyCode===40)&&t.preventDefault(),t.keyCode===40&&self.posts=="")return;this.selectItem(t.keyCode)}}},watch:{searchFilter(){this.filteredOptions.length},selected(t){this.selectedIds=t.map(r=>r.id),this.$emit("update:modelValue",this.selectedIds),this.$emit("selected",this.selectedIds),this.$emit("selectionChanged",this.selectedIds)}}},Ht={class:"font-bold ptext-lg dark:text-white"},Zt={class:"mt-3 mb-4"},Kt={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"},Wt=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),Xt=["name","value"],Yt={key:0,class:"dropdown"},Jt={class:"inline-flex ml-2 rounded-md shadow-sm",role:"group"},Qt={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"},er={class:"relative"},tr=["onClick"],rr={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"},or={class:"p-1"},nr=e.createElementVNode("label",{for:"default-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1),ar={class:"relative"},lr=e.createElementVNode("div",{class:"absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3"},[e.createElementVNode("svg",{class:"w-4 h-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})])],-1),sr=["id"],ir={class:"overflow-y-auto max-h-64"},dr=["onClick","onMousedown","id"];function cr(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.field_name)},[e.createElementVNode("h3",Ht,e.toDisplayString(o.label_name),1),e.createElementVNode("p",Zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.selected,(i,s)=>(e.openBlock(),e.createElementBlock("span",Kt,e.toDisplayString(i.name),1))),256))]),Wt],2)):e.createCommentVNode("",!0),o.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",o.field_name])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.selectedIds,(i,s)=>(e.openBlock(),e.createElementBlock("input",{type:"hidden",name:o.field_name+"[]",key:s,value:i},null,8,Xt))),128)),o.options?(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-form":o.error_message=="","gl-label-form-invalid":o.error_message!=="",required:o.is_required})},e.toDisplayString(o.label_name),3),e.createElementVNode("div",Jt,[e.createElementVNode("button",{onClick:r[0]||(r[0]=(...i)=>a.selectAll&&a.selectAll(...i)),type:"button",class:"px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 rounded-s-md hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"}," Select all "),e.createElementVNode("button",{onClick:r[1]||(r[1]=(...i)=>a.deselectAll&&a.deselectAll(...i)),type:"button",class:"px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 rounded-e-md hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"}," Deselect all ")]),e.createElementVNode("div",Qt,[e.createElementVNode("div",er,[e.createElementVNode("div",{class:"flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",onClick:r[2]||(r[2]=i=>a.showOptions())},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.selected,(i,s)=>(e.openBlock(),e.createElementBlock("span",{key:s,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"},[e.createTextVNode(e.toDisplayString(i.name)+" ",1),e.createElementVNode("i",{onClick:e.withModifiers(d=>a.clearOption(i),["stop"]),class:"cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"},null,8,tr)]))),128))]),e.createElementVNode("i",{class:e.normalizeClass([l.optionsShown?"fa-angle-up":"fa-angle-down","absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700"]),style:{top:"11px"}},null,2)]),e.withDirectives(e.createElementVNode("div",rr,[e.createElementVNode("div",or,[nr,e.createElementVNode("div",ar,[lr,e.withDirectives(e.createElementVNode("input",{type:"search","onUpdate:modelValue":r[3]||(r[3]=i=>l.searchFilter=i),id:o.field_name+"search",ref:o.field_name+"search",onBlur:r[4]||(r[4]=i=>a.exit()),autocomplete:"off",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",placeholder:"Search ..."},null,40,sr),[[e.vModelText,l.searchFilter]])])]),e.createElementVNode("div",ir,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.filteredOptions,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["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",s+1==l.count||a.isOptionSelected(i.id)?"bg-gray-100 dark:bg-gray-600":""]),onClick:d=>a.selectOption(i),onMousedown:d=>a.selectOption(i),key:s,id:s+1},e.toDisplayString(i.name||i.id||"-"),43,dr))),128))])],512),[[e.vShow,l.optionsShown]])])])):e.createCommentVNode("",!0)],2))],64)}const mr=k(qt,[["render",cr]]),fr={props:{button_type:{type:String,default:"default"},is_submit:{type:Boolean,default:!1},icon:{type:String,default:""},is_loading:{type:Boolean,default:!1},tag:{type:String,default:"button"},href:{type:String,default:""}},computed:{buttonTypeClass(){switch(this.button_type){case"default":return"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800";case"alternative":return" text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700";case"dark":return"text-white bg-gray-800 hover:bg-gray-900 focus:ring-4 focus:ring-gray-300 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-700 dark:border-gray-700";case"light":return"text-gray-900 bg-white border border-gray-300 hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 dark:bg-gray-800 dark:text-white dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-600 dark:focus:ring-gray-700";case"green":return" text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800";case"red":return" text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900";case"yellow":return" text-white bg-yellow-400 hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300 dark:focus:ring-yellow-900";case"purple":return" text-white bg-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-900";default:return""}}},methods:{}},gr=e.createElementVNode("svg",{"aria-hidden":"true",role:"status",class:"inline w-4 h-4 me-3 animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"#1C64F2"})],-1);function hr(t,r,o,n,l,a){return o.is_loading?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("button"),{key:1,disabled:"",class:e.normalizeClass(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`)},{default:e.withCtx(()=>[gr,e.createTextVNode(" Loading... ")]),_:1},8,["class"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),e.mergeProps({key:0,type:o.is_submit},{type:o.is_submit?"submit":void 0},{href:o.tag==="a"?o.href:void 0,class:`flex items-center gap-2 focus:outline-none text-sm px-5 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`}),{default:e.withCtx(()=>[o.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([o.icon,"text-base"])},null,2)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")]),_:3},16,["type","href","class"]))}const ur=k(fr,[["render",hr]]),pr={class:"font-bold ptext-lg dark:text-white"},_r=["name","id"],yr=["id"],br=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),kr=["for"],xr=e.createElementVNode("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),wr=["name","id"],Er=["required","name","id","type"],Nr={class:"gl-span-form-error"},Vr={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},Br={__name:"GlTextareaTranslate",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:[String,Number],default:null},modelValue:{type:[String,Number],default:""},model_value_translate:{type:[String,Object],default:null},modelValueTranslate:{type:[String,Object],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},get_field_translations:{type:String,default:""},description:{type:String,default:""},translatable:{type:Object,default:null}},emits:["update:modelValue","update:modelValueTranslate","keydown"],setup(t,{expose:r,emit:o}){const n=t,l=o,a=e.ref(null),i=e.ref(null);return e.onMounted(()=>{a.value!==null&&a.value.hasAttribute("autofocus")&&a.value.focus(),n.model_value&&(l("update:modelValue",n.model_value),a.value.value=n.model_value),n.model_value_translate,n.translatable&&axios.post("/admin/get_field_translations",{model:n.translatable.model,row_id:n.translatable.row_id,field:n.translatable.field}).then(s=>{i.value.value=JSON.stringify(s.data),l("update:modelValueTranslate",JSON.stringify(s.data)),console.log("input_translate",i.value.value)}).catch(s=>{console.log(s)})}),r({focus:()=>a.value.focus()}),(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",pr,e.toDisplayString(t.label_name),1),e.withDirectives(e.createElementVNode("input",{type:"hidden","data-i18n":"true",name:t.field_name+"_i18n",id:t.field_name+"_i18n",ref_key:"input_translate",ref:i,"onUpdate:modelValue":d[0]||(d[0]=c=>s.inputTranslateValue=c)},null,8,_r),[[e.vModelText,s.inputTranslateValue]]),e.createElementVNode("p",{id:t.field_name,class:"mb-4 text-base text-gray-900 input_tr_show dark:text-white"},e.toDisplayString(t.model_value),9,yr),br],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-translation-form":t.error_message=="","gl-label-translation-form-invalid":t.error_message!=="",required:t.is_required}),for:t.field_name},e.toDisplayString(t.label_name),11,kr),xr,e.createElementVNode("input",{class:"mb-4",type:"hidden","data-i18n":"true",name:t.field_name+"_i18n",id:t.field_name+"_i18n",onInput:d[1]||(d[1]=c=>s.$emit("update:modelValueTranslate",c.target.value)),ref_key:"input_translate",ref:i},null,40,wr),e.createElementVNode("textarea",{required:t.is_required,name:t.field_name,id:t.field_name,class:e.normalizeClass({" gl-textarea-form form-input-translation mt-4 ":t.error_message==""," gl-textarea-form-invalid form-input-translation mt-4 ":t.error_message!==""}),type:t.type,onInput:d[2]||(d[2]=c=>s.$emit("update:modelValue",c.target.value)),onKeydown:d[3]||(d[3]=c=>s.$emit("keydown",c)),ref_key:"input",ref:a,rows:"4"},`
|
|
6
6
|
`,42,Er),e.createElementVNode("span",Nr,e.toDisplayString(t.error_message),1),e.createElementVNode("small",Vr,e.toDisplayString(t.description),1)],2))],64))}},Cr={class:"font-bold ptext-lg dark:text-white"},Sr=["name","id"],$r=["id"],Dr=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),Or=["for"],Pr=e.createElementVNode("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),Tr=["name","id"],jr=["name","id","type"],Mr={class:"gl-span-form-error"},Ar={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},Ir={__name:"GlTinymceTranslate",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:[String,Number],default:null},modelValue:{type:[String,Number],default:""},model_value_translate:{type:[String,Object],default:null},modelValueTranslate:{type:[String,Object],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},get_field_translations:{type:String,default:""},description:{type:String,default:""},translatable:{type:Object,default:null}},emits:["update:modelValue","update:modelValueTranslate","keydown"],setup(t,{expose:r,emit:o}){const n=t,l=o,a=e.ref(null),i=e.ref(null);return e.onMounted(()=>{tinymce.init({selector:"#"+n.field_name,width:"100%",height:300}),console.log("tinymce ",n.model_value),a.value!==null&&a.value.hasAttribute("autofocus")&&a.value.focus(),n.model_value&&(l("update:modelValue",n.model_value),a.value.value=n.model_value),n.model_value_translate,n.translatable&&axios.post("/admin/get_field_translations",{model:n.translatable.model,row_id:n.translatable.row_id,field:n.translatable.field}).then(s=>{i.value.value=JSON.stringify(s.data),l("update:modelValueTranslate",JSON.stringify(s.data))}).catch(s=>{console.log(s)})}),r({focus:()=>a.value.focus()}),(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",Cr,e.toDisplayString(t.label_name),1),e.withDirectives(e.createElementVNode("input",{type:"hidden","data-i18n":"true",name:t.field_name+"_i18n",id:t.field_name+"_i18n",ref_key:"input_translate",ref:i,"onUpdate:modelValue":d[0]||(d[0]=c=>s.inputTranslateValue=c)},null,8,Sr),[[e.vModelText,s.inputTranslateValue]]),e.createElementVNode("p",{id:t.field_name,class:"mb-4 text-base text-gray-900 input_tr_show dark:text-white"},e.toDisplayString(t.model_value),9,$r),Dr],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-translation-form":t.error_message=="","gl-label-translation-form-invalid":t.error_message!=="",required:t.is_required}),for:t.field_name},e.toDisplayString(t.label_name),11,Or),Pr,e.createElementVNode("input",{class:"mb-4",type:"hidden","data-i18n":"true",name:t.field_name+"_i18n",id:t.field_name+"_i18n",onInput:d[1]||(d[1]=c=>s.$emit("update:modelValueTranslate",c.target.value)),ref_key:"input_translate",ref:i},null,40,Tr),e.createElementVNode("textarea",{name:t.field_name,id:t.field_name,class:e.normalizeClass(["tiny",{" gl-textarea-form form-input-translation mt-4 ":t.error_message==""," gl-textarea-form-invalid form-input-translation mt-4 ":t.error_message!==""}]),type:t.type,onInput:d[2]||(d[2]=c=>s.$emit("update:modelValue",c.target.value)),onKeydown:d[3]||(d[3]=c=>s.$emit("keydown",c)),ref_key:"input",ref:a,rows:"4"},`
|
|
7
|
-
`,42,jr),e.createElementVNode("span",Mr,e.toDisplayString(t.error_message),1),e.createElementVNode("small",Ar,e.toDisplayString(t.description),1)],2))],64))}},Lr={class:"font-bold ptext-lg dark:text-white"},Fr=["name","id"],zr=["id"],Gr=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),vr=["for"],Rr=e.createElementVNode("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),Ur=["name","id"],qr=["required","name","id","type"],Hr={class:"gl-span-form-error"},Zr={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},Kr={__name:"GlTextTranslate",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:[String,Number],default:null},modelValue:{type:[String,Number],default:""},model_value_translate:{type:[String,Object],default:null},modelValueTranslate:{type:[String,Object],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},get_field_translations:{type:String,default:""},description:{type:String,default:""},translatable:{type:Object,default:null}},emits:["update:modelValue","update:modelValueTranslate","keydown"],setup(t,{expose:r,emit:o}){const n=t,l=o,a=e.ref(null),i=e.ref(null);return e.onMounted(()=>{a.value!==null&&a.value.hasAttribute("autofocus")&&a.value.focus(),n.model_value&&(l("update:modelValue",n.model_value),a.value.value=n.model_value),n.model_value_translate,n.translatable&&axios.post("/admin/get_field_translations",{model:n.translatable.model,row_id:n.translatable.row_id,field:n.translatable.field}).then(s=>{i.value.value=JSON.stringify(s.data),l("update:modelValueTranslate",JSON.stringify(s.data))}).catch(s=>{console.log(s)})}),r({focus:()=>a.value.focus()}),(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",Lr,e.toDisplayString(t.label_name),1),e.withDirectives(e.createElementVNode("input",{type:"hidden","data-i18n":"true",name:t.field_name+"_i18n",id:t.field_name+"_i18n",ref:"input_translate_s","onUpdate:modelValue":d[0]||(d[0]=c=>s.inputTranslateValue=c)},null,8,Fr),[[e.vModelText,s.inputTranslateValue]]),e.createElementVNode("p",{id:t.field_name,class:"mb-4 text-base text-gray-900 input_tr_show dark:text-white"},e.toDisplayString(t.model_value),9,zr),Gr],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-translation-form":t.error_message=="","gl-label-translation-form-invalid":t.error_message!=="",required:t.is_required}),for:t.field_name},e.toDisplayString(t.label_name),11,vr),Rr,e.createElementVNode("input",{class:"mb-4",type:"hidden","data-i18n":"true",name:t.field_name+"_i18n",id:t.field_name+"_i18n",onInput:d[1]||(d[1]=c=>s.$emit("update:modelValueTranslate",c.target.value)),ref_key:"input_translate",ref:i},null,40,Ur),e.createElementVNode("input",{required:t.is_required,name:t.field_name,id:t.field_name,class:e.normalizeClass({" gl-input-form form-input-translation mt-2 ":t.error_message==""," gl-input-form-invalid form-input-translation mt-2 ":t.error_message!==""}),type:t.type,onInput:d[2]||(d[2]=c=>s.$emit("update:modelValue",c.target.value)),onKeydown:d[3]||(d[3]=c=>s.$emit("keydown",c)),ref_key:"input",ref:a},null,42,qr),e.createElementVNode("span",Hr,e.toDisplayString(t.error_message),1),e.createElementVNode("small",Zr,e.toDisplayString(t.description),1)],2))],64))}},Wr={class:"font-bold ptext-lg dark:text-white"},Xr={class:"mb-4 text-base text-gray-900 dark:text-white"},Yr=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),Jr=["for"],Qr=["required","name","id","type"],eo={class:"gl-span-form-error"},to={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},ro={__name:"GlTextInput",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},description:{type:String,default:""}},emits:["update:modelValue","keydown"],setup(t,{expose:r,emit:o}){const n=t,l=o,a=e.ref(null);e.onMounted(()=>{a.value!==null&&a.value.hasAttribute("autofocus")&&a.value.focus()});const i=e.computed({get(){return n.modelValue},set(s){l("update:modelValue",s)}});return r({focus:()=>a.value.focus()}),(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",Wr,e.toDisplayString(t.label_name),1),e.createElementVNode("p",Xr,e.toDisplayString(t.type=="password"?t.modelValue.replace(/./g,"*"):t.modelValue),1),Yr],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-form":t.error_message=="","gl-label-form-invalid":t.error_message!=="",required:t.is_required}),for:t.field_name},e.toDisplayString(t.label_name),11,Jr),e.withDirectives(e.createElementVNode("input",{required:t.is_required,name:t.field_name,id:t.field_name,class:e.normalizeClass({"gl-input-form":t.error_message=="","gl-input-form-invalid":t.error_message!==""}),type:t.type,"onUpdate:modelValue":d[0]||(d[0]=c=>i.value=c),onKeydown:d[1]||(d[1]=c=>s.$emit("keydown",c)),ref_key:"input",ref:a},null,42,Qr),[[e.vModelDynamic,i.value]]),e.createElementVNode("span",eo,e.toDisplayString(t.error_message),1),e.createElementVNode("small",to,e.toDisplayString(t.description),1)],2))],64))}},oo={setup(t,{slots:r}){const o=e.ref(r.default().map(l=>l.props)),n=e.ref(o.value[0].title);return e.provide("selectedTitle",n),{tabs:o,selectedTitle:n}}},no={class:"flex flex-wrap"},ao={class:"w-full"},lo={class:"flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none"},so=["onClick"],io={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"},co={class:"flex-auto px-4 py-5"},mo={class:"tab-content tab-space"};function fo(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",no,[e.createElementVNode("div",ao,[e.createElementVNode("ul",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,i=>(e.openBlock(),e.createElementBlock("li",{key:i.title,onClick:s=>n.selectedTitle=i.title,class:"flex-auto -mb-px text-center"},[e.createElementVNode("a",{class:e.normalizeClass([{"text-slate-600 bg-white dark:bg-meta-4":n.selectedTitle!=i.title,"text-white bg-slate-600 dark:bg-primary":n.selectedTitle===i.title},"block px-5 py-3 text-xs font-bold leading-normal uppercase rounded shadow-lg hover:text-white tex hover:bg-slate-600 dark:hover:bg-primary dark:text-white tabs_buttons"])},[e.createElementVNode("i",{class:e.normalizeClass([i.icon,"mr-1 text-base"])},null,2),e.createTextVNode(" "+e.toDisplayString(i.title),1)],2)],8,so))),128))])])]),e.createElementVNode("div",io,[e.createElementVNode("div",co,[e.createElementVNode("div",mo,[e.renderSlot(t.$slots,"default")])])])],64)}const go=k(oo,[["render",fo]]),ho={props:["title"],setup(){return{selectedTitle:e.inject("selectedTitle")}}},uo={class:"block"};function po(t,r,o,n,l,a){return e.withDirectives((e.openBlock(),e.createElementBlock("div",uo,[e.renderSlot(t.$slots,"default")],512)),[[e.vShow,o.title==n.selectedTitle]])}const _o=k(ho,[["render",po]]),yo={props:{elements_to_show_prop:{type:Number,default:3},hide_arrow:{type:Boolean,default:!1},disable_touch:{type:Boolean,default:!1},direction_property:{type:String,default:"ltr"},slider_arrows_indicators_position:{type:String,default:"arrows_outside_slider"}},data:function(){return{elementsToShow:3,dotsNum:0,currentDot:1,dotsNavigation:[],touchStartX:0,isMoving:!1,initialX:0,initialY:0,Random_string:this.generateRandomString(6)}},mounted(){this.elementsToShow=this.elements_to_show_prop,this.initSlider(),this.disable_touch||this.movingActions()},methods:{sliderIndicatorsAction(){var t="";return this.direction_property=="rtl"?(t+=" space-x-reverse ",t+=" slider_indicators "):this.slider_arrows_indicators_position=="arrows_indicators_inside_slider"&&(t+=" slider_indicators "),t},sliderContainerAction(){var t="";return!this.hide_arrow&&this.slider_arrows_indicators_position=="arrows_outside_slider"?t+=" w-12/12 xl:w-8/12 xxl:w-8/12 md:w-8/12 sm:w-8/12":this.slider_arrows_indicators_position!="arrows_outside_slider"&&(t+=" w-12/12 "),t},generateRandomString(t){let r="";const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=o.length;for(let l=0;l<t;l++)r+=o.charAt(Math.floor(Math.random()*n));return r},movingActions(){let t=this,r=document.getElementById("slider_"+this.Random_string);const o=l=>{r.style.cursor="grabbing";const a=s=>{const d=s.clientX||s.touches&&s.touches[0]&&s.touches[0].clientX,c=s.clientY||s.touches&&s.touches[0]&&s.touches[0].clientY,m=d-t.initialX,g=c-t.initialY;Math.abs(m)>Math.abs(g)?(s.preventDefault(),Math.abs(m)>=70&&(m<0?t.next():t.prev(),t.initialX=d)):r.style.cursor="grab",Math.abs(g)>Math.abs(m)&&(r.style.cursor="grab")},i=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("touchmove",a),document.removeEventListener("mouseup",i),document.removeEventListener("touchend",i),r.style.cursor="grab"};document.addEventListener("mousemove",a),document.addEventListener("touchmove",a,{passive:!1}),document.addEventListener("mouseup",i),document.addEventListener("touchend",i),t.initialX=l.clientX||l.touches&&l.touches[0]&&l.touches[0].clientX,t.initialY=l.clientY||l.touches&&l.touches[0]&&l.touches[0].clientY},n=l=>{l.key==="ArrowLeft"?t.prev():l.key==="ArrowRight"&&t.next()};r.addEventListener("mousedown",o),r.addEventListener("touchstart",o),document.addEventListener("keydown",n)},next(){this.currentDot<this.dotsNavigation.length&&(this.currentDot++,this.setDot(this.currentDot))},prev(){this.currentDot>1&&(this.currentDot--,this.setDot(this.currentDot))},initSlider(){let t=document.getElementById("sliderContainer_"+this.Random_string),r=document.getElementById("mainSliderContainer_"+this.Random_string),o=document.getElementById("slider_"+this.Random_string),n=o.querySelectorAll("li"),l=Array.from(n).filter(s=>s.parentNode===o),a=t.clientWidth,i=a/this.elementsToShow;if(this.elementsToShow>1?document.body.clientWidth<1e3?(this.elementsToShow=1,i=this.hide_arrow?r.clientWidth:a):document.body.clientWidth<1500&&(this.elementsToShow=2):(this.elementsToShow=1,i=this.hide_arrow?r.clientWidth:a),l.length>1){this.dotsNum=this.elementsToShow==1?l.length:l.length-this.elementsToShow+1;let s=this.elementsToShow==1?i*l.length/this.dotsNum:i*(l.length-this.elementsToShow)/(this.dotsNum-1);this.dotsNavigation=[];for(let d=0;d<this.dotsNum;d++)this.dotsNavigation.push(s*d)}o.style.width=l.length*i+"px",o.style.transition="margin",o.style.transitionDuration="1s";for(let s=0;s<l.length;s++){const d=l[s];d.style.width=i+"px"}},setDot(t){let r=document.getElementById("slider_"+this.Random_string);this.direction_property=="rtl"?r.style.marginRight=-this.dotsNavigation[t-1]+"px":r.style.marginLeft=-this.dotsNavigation[t-1]+"px",this.currentDot=t}}},x=t=>(e.pushScopeId("data-v-a94f16a9"),t=t(),e.popScopeId(),t),bo=["id"],ko={key:0,class:"items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"},xo={class:"w-full"},wo={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Eo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],No={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Vo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],Bo=["id"],Co=["id"],So={class:"w-full"},$o={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Do=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],Oo={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Po=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],To={class:"w-full"},jo={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Mo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],Ao={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Io=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],Lo=["onClick"],Fo=[x(()=>e.createElementVNode("span",null,null,-1))],zo={key:1,class:"flex justify-between pl-5 pr-5"},Go=["onClick"],vo=[x(()=>e.createElementVNode("span",null,null,-1))],Ro={key:0,class:"flex"},Uo={class:"flex items-center"},qo={class:"w-full"},Ho={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Zo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],Ko={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Wo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],Xo={class:"flex items-center"},Yo={class:"w-full"},Jo={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Qo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],en={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},tn=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],rn={key:1,class:"items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"},on={class:"w-full"},nn={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},an=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],ln={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},sn=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))];function dn(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["",!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_outside_slide"?"flex":"relative block"]),id:"mainSliderContainer_"+t.Random_string},[t.dotsNum>0&&!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_outside_slider"?(e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("div",xo,[e.createElementVNode("button",{class:"p-3 mr-5 rounded-full shadow-lg arrow_button_styles",onClick:r[0]||(r[0]=i=>a.prev())},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",wo,Eo)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",No,Vo)):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["overflow-hidden",a.sliderContainerAction()]),id:"sliderContainer_"+t.Random_string},[e.createElementVNode("ul",{class:"flex",id:"slider_"+t.Random_string},[t.dotsNum>0&&!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_indicators_inside_slider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex",o.direction_property=="rtl"?"arrow_button_next":"arrow_button_prev"])},[e.createElementVNode("div",So,[e.createElementVNode("button",{class:"p-3 rounded-full shadow-lg arrow_button_styles",onClick:r[1]||(r[1]=e.withModifiers(i=>a.prev(),["stop"]))},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",$o,Do)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",Oo,Po)):e.createCommentVNode("",!0)])])],2)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},void 0,!0),t.dotsNum>0&&!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_indicators_inside_slider"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button",o.direction_property=="rtl"?"arrow_button_prev":"arrow_button_next"])},[e.createElementVNode("div",To,[e.createElementVNode("button",{class:"p-3 rounded-full shadow-lg arrow_button_styles",onClick:r[2]||(r[2]=e.withModifiers(i=>a.next(),["stop"]))},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",jo,Mo)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",Ao,Io)):e.createCommentVNode("",!0)])])],2)):e.createCommentVNode("",!0)],8,Co),o.slider_arrows_indicators_position!="arrows_indicators_below_slider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["flex justify-center mb-1 space-x-1",a.sliderIndicatorsAction()])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dotsNum,i=>(e.openBlock(),e.createElementBlock("button",{role:"button",class:e.normalizeClass(["gl-dot",{active:t.currentDot==i}]),key:i,onClick:s=>a.setDot(i)},Fo,10,Lo))),128))],2)):e.createCommentVNode("",!0),o.slider_arrows_indicators_position=="arrows_indicators_below_slider"?(e.openBlock(),e.createElementBlock("div",zo,[e.createElementVNode("div",{class:e.normalizeClass(["flex justify-center mb-1 space-x-1",a.sliderIndicatorsAction()])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dotsNum,i=>(e.openBlock(),e.createElementBlock("button",{role:"button",class:e.normalizeClass(["gl-dot",{active:t.currentDot==i}]),key:i,onClick:s=>a.setDot(i)},vo,10,Go))),128))],2),t.dotsNum>0?(e.openBlock(),e.createElementBlock("div",Ro,[e.createElementVNode("div",Uo,[e.createElementVNode("div",qo,[e.createElementVNode("button",{class:e.normalizeClass(["p-3 rounded-full arrow_button_styles",o.direction_property=="rtl"?"ml-3":"mr-3"]),onClick:r[3]||(r[3]=i=>a.prev())},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",Ho,Zo)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",Ko,Wo)):e.createCommentVNode("",!0)],2)])]),e.createElementVNode("div",Xo,[e.createElementVNode("div",Yo,[e.createElementVNode("button",{class:"p-3 rounded-full arrow_button_styles",onClick:r[4]||(r[4]=i=>a.next())},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",Jo,Qo)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",en,tn)):e.createCommentVNode("",!0)])])])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Bo),t.dotsNum>0&&!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_outside_slider"?(e.openBlock(),e.createElementBlock("div",rn,[e.createElementVNode("div",on,[e.createElementVNode("button",{class:"p-3 ml-5 rounded-full shadow-lg arrow_button_styles",onClick:r[5]||(r[5]=i=>a.next())},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",nn,an)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",ln,sn)):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],10,bo)])}const cn=k(yo,[["render",dn],["__scopeId","data-v-a94f16a9"]]),mn={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",tabindex:"-1","aria-hidden":"true"},fn={class:"pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-none bg-white border rounded-lg border-stroke dark:border-strokedark dark:bg-boxdark"},gn={class:"flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600"},hn={class:"text-xl font-medium leading-normal text-surface dark:text-white"},un=[e.createElementVNode("span",{class:"[&>svg]:h-6 [&>svg]:w-6"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])],-1)],pn={class:"relative p-4 overflow-y-auto"},_n={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"},yn={__name:"GlModal",props:{is_open:{type:Boolean,default:!1},title:{type:String,default:""},max_width:{type:String,default:"max-w-2xl"}},emits:["closeModal"],setup(t,{emit:r}){const o=t,n=r,l=()=>{document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight="0px"},a=()=>{document.documentElement.style.overflow="",document.documentElement.style.paddingRight=""},i=()=>{n("closeModal"),a()};return e.watch(()=>o.is_open,(s,d)=>{s?l():a()},{immediate:!0,deep:!0}),(s,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",{class:e.normalizeClass(["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)]",t.max_width])},[e.createElementVNode("div",fn,[e.createElementVNode("div",gn,[e.createElementVNode("h5",hn,e.toDisplayString(t.title),1),e.createElementVNode("button",{type:"button",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",onClick:i,"aria-label":"Close"},un)]),e.createElementVNode("div",pn,[e.renderSlot(s.$slots,"body")]),e.createElementVNode("div",_n,[e.renderSlot(s.$slots,"buttons"),e.createElementVNode("button",{onClick:i,type:"button",class:"px-5 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-200 rounded-lg ms-3 hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Close ")])])],2)],512)),[[e.vShow,t.is_open]])}},bn={class:"mb-4"},kn={class:"flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin"},xn={class:"relative inline-flex items-center cursor-pointer"},wn=["name","id","checked"],En=e.createElementVNode("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),Nn=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),Vn={class:"flex justify-between px-6 py-3 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark"},Bn={class:"relative inline-flex items-center cursor-pointer"},Cn=["name","id"],Sn=e.createElementVNode("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={class:"gl-span-form-error"},Dn={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},On={__name:"GlToggleBox",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:String,required:!0},modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},description:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:r}){const o=t,n=r,l=e.ref(null),a=e.computed({get(){return o.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("div",bn,[e.createElementVNode("li",kn,[e.createTextVNode(e.toDisplayString(t.label_name)+" ",1),e.createElementVNode("label",xn,[e.createElementVNode("input",{type:"checkbox",class:"sr-only peer",name:t.field_name,id:t.field_name,checked:t.modelValue,"true-value":1,"false-value":0,ref_key:"input",ref:l,disabled:""},null,8,wn),En])])]),Nn],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("li",Vn,[e.createTextVNode(e.toDisplayString(t.label_name)+" ",1),e.createElementVNode("label",Bn,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"sr-only peer",name:t.field_name,id:t.field_name,"true-value":1,"false-value":0,ref_key:"input",ref:l,"onUpdate:modelValue":s[0]||(s[0]=d=>a.value=d)},null,8,Cn),[[e.vModelCheckbox,a.value]]),Sn])]),e.createElementVNode("span",$n,e.toDisplayString(t.error_message),1),e.createElementVNode("small",Dn,e.toDisplayString(t.description),1)],2))],64))}},Pn={class:"font-bold ptext-lg dark:text-white"},Tn={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"},Mn=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),An=["name","id","value"],In={key:0,class:"dropdown"},Ln={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"},Fn={class:"relative showOptions"},zn=["value","placeholder"],Gn={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"},Rn=e.createElementVNode("label",{for:"default-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1),Un={class:"relative"},qn=e.createElementVNode("div",{class:"absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3"},[e.createElementVNode("svg",{class:"w-4 h-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})])],-1),Hn=["id"],Zn={class:"overflow-y-auto max-h-64"},Kn=["onClick","onMousedown","id"],Wn={class:"flex items-center py-2 pl-10 pr-4"},Xn={key:0,class:"absolute flex items-center flex-shrink-0 w-4 h-4 text-green-500 left-2 dark:text-green-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},Yn=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 5.917 5.724 10.5 15 1.5"},null,-1)],Jn={class:"block mt-1 text-sm font-normal leading-5 text-red-500"},Qn={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},ea={__name:"GlDropdown",props:{modelValue:{type:[String,Number],default:""},defaultValue:{type:[String,Number],default:""},field_name:{type:String,default:""},is_required:{type:Boolean,default:!1},has_cancel:{type:Boolean,default:!0},label_name:{type:String,default:""},options:{type:Array,required:!0,default:()=>[],note:"Options of dropdown. An array of options with id and name"},placeholder:{type:String,required:!1,default:"Please select an option",note:"Placeholder of dropdown"},maxItem:{type:Number,required:!1,default:1e4,note:"Max items showing"},show:{type:Boolean,default:!1},error_message:{type:String,default:""},description:{type:String,default:""}},emits:["update:modelValue","selected","selectionChanged"],setup(t,{emit:r}){const o=t,n=r,l=e.ref(null),a=e.ref({}),i=e.ref(0),s=e.ref(!1),d=e.ref(""),c=e.ref("");e.onMounted(()=>{n("selected",a.value),c.value=S(),o.show||(document.body.addEventListener("click",f=>{hi(f)}),document.addEventListener("keypress",f=>{f.key==="Enter"&&f.target.form&&f.preventDefault()}))});const m=e.computed(()=>yi()),g=e.computed(()=>_i()),u=e.computed(()=>{const f=[],p=new RegExp(d.value,"ig");for(const y of g.value){const V=String(y.name);(d.value.length<1||V.match(p))&&f.length<o.maxItem&&f.push(y)}return f});function b(f){if(["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Enter"].includes(f.key)){if(["ArrowUp","ArrowDown"].includes(f.key)&&f.preventDefault(),f.key==="ArrowDown"&&o.posts==="")return;pi(f.key)}}function S(){let f=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){const V=(f+Math.random()*16)%16|0;return f=Math.floor(f/16),(y==="x"?V:V&3|8).toString(16)})}function fe(f){return Object.keys(f).length>0}function hi(f){f.target.id!=o.field_name+"search"+c.value&&f.target.id!=o.field_name&&!f.target.classList.contains("showOptions")&&(ue(),i.value=0)}function ge(f){const p=`${f}${c.value}`,y=document.getElementById(p);y&&y.scrollIntoView()}function ui(f){const p=`${f}${c.value}`,y=document.getElementById(p);y&&y.click()}function pi(f){f==="ArrowDown"&&i.value<u.value.length&&(i.value++,ge(i.value)),f==="ArrowUp"&&i.value>1&&(i.value--,ge(i.value)),f==="Enter"&&ui(i.value)}function _i(){return o.options.map((f,p)=>typeof f=="object"?f:{id:f,name:f})}function yi(){var f=a||o.modelValue;if(f)return typeof f=="object"?g.value.find(p=>String(p.id)===String(f.id))||{}:g.value.find(p=>String(p.id)===String(f))||{}}function he(f){a.value=f,s.value=!1,n("selected",a.value),n("selectionChanged",a.value)}function R(){o.show||(d.value="",s.value=!0,e.nextTick(()=>{l.value&&l.value.focus()}))}function bi(){o.show||(a.value={},d.value="",n("update:modelValue",""),R())}function ue(){a.value.id||(a.value={},d.value=""),n("selected",a.value),s.value=!1}return e.watch(d,()=>{u.value.length===0&&(a.value={})}),e.watch(a,f=>{fe(f)&&n("update:modelValue",f.id)}),(f,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",Pn,e.toDisplayString(t.label_name),1),e.createElementVNode("p",Tn,[e.createElementVNode("span",jn,e.toDisplayString(f.selectedValue.name),1)]),Mn],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("input",{type:"hidden",name:t.field_name,id:t.field_name,value:a.value.id},null,8,An),t.options?(e.openBlock(),e.createElementBlock("div",In,[t.label_name?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass({"gl-label-form":t.error_message=="","gl-label-form-invalid":t.error_message!=="",required:t.is_required})},e.toDisplayString(t.label_name),3)):e.createCommentVNode("",!0),e.createElementVNode("div",Ln,[e.createElementVNode("div",Fn,[e.createElementVNode("input",{class:e.normalizeClass([{"gl-input-form":t.error_message=="","gl-input-form-invalid":t.error_message!==""},"pl-8 pr-2 showOptions"]),ref:t.field_name,onClick:p[0]||(p[0]=y=>R()),value:m.value.name,placeholder:t.placeholder,autocomplete:"off",readonly:""},null,10,zn),e.withDirectives(e.createElementVNode("i",{onClick:p[1]||(p[1]=e.withModifiers(y=>bi(),["stop"])),class:"absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",style:{top:"13px"}},null,512),[[e.vShow,fe(m.value)&&t.has_cancel]]),e.createElementVNode("i",{onClick:p[2]||(p[2]=y=>!s.value&&R()),class:e.normalizeClass([s.value?"fa-angle-up":"fa-angle-down","absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),style:{top:"11px"}},null,2)]),e.withDirectives(e.createElementVNode("div",Gn,[e.createElementVNode("div",vn,[Rn,e.createElementVNode("div",Un,[qn,e.withDirectives(e.createElementVNode("input",{type:"search","onUpdate:modelValue":p[3]||(p[3]=y=>d.value=y),ref:l.value,id:`${t.field_name}search${c.value}`,onKeydown:b,onBlur:p[4]||(p[4]=y=>ue()),autocomplete:"off",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",placeholder:"Search ..."},null,40,Hn),[[e.vModelText,d.value]])])]),e.createElementVNode("div",Zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(y,V)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",V+1==i.value?"bg-gray-100 dark:bg-gray-600":""]),onClick:ki=>he(y),onMousedown:ki=>he(y),key:V,id:`${V+1}${c.value}`},[e.createElementVNode("div",Wn,[m.value.id===y.id?(e.openBlock(),e.createElementBlock("svg",Xn,Yn)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(y.name||y.id||"-"),1)])],42,Kn))),128))])],512),[[e.vShow,s.value]])])])):e.createCommentVNode("",!0),e.createElementVNode("span",Jn,e.toDisplayString(t.error_message),1),e.createElementVNode("small",Qn,e.toDisplayString(t.description),1)],2))],64))}},ta={class:"font-bold ptext-lg dark:text-white"},ra=["id"],oa=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),na=["for"],aa=["required","name","id","type","placeholder"],la={class:"gl-span-form-error"},sa={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},ia={__name:"GlTextarea",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},description:{type:String,default:""},place_holder:{type:String,default:""}},emits:["update:modelValue","keydown"],setup(t,{expose:r,emit:o}){const n=t,l=o,a=e.ref(null);return e.onMounted(()=>{a.value!==null&&a.value.hasAttribute("autofocus")&&a.value.focus(),n.model_value&&(l("update:modelValue",n.model_value),a.value.value=n.model_value),n.modelValue!=""&&(l("update:modelValue",n.modelValue),a.value.value=n.modelValue)}),r({focus:()=>a.value.focus()}),(i,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",ta,e.toDisplayString(t.label_name),1),e.createElementVNode("p",{id:t.field_name,class:"mb-4 text-base text-gray-900 input_tr_show dark:text-white"},e.toDisplayString(t.model_value),9,ra),oa],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-form":t.error_message=="","gl-label-form-invalid":t.error_message!=="",required:t.is_required}),for:t.field_name},e.toDisplayString(t.label_name),11,na),e.createElementVNode("textarea",{required:t.is_required,name:t.field_name,id:t.field_name,class:e.normalizeClass({" gl-textarea-form mt-4 ":t.error_message==""," gl-textarea-form-invalid mt-4 ":t.error_message!==""}),type:t.type,onInput:s[0]||(s[0]=d=>i.$emit("update:modelValue",d.target.value)),ref_key:"input",ref:a,rows:"4",placeholder:t.place_holder},null,42,aa),e.createElementVNode("span",la,e.toDisplayString(t.error_message),1),e.createElementVNode("small",sa,e.toDisplayString(t.description),1)],2))],64))}},da={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:{emits:["pagination-change-page"],props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0}},computed:{isApiResource(){return!!this.data.meta},currentPage(){return this.isApiResource?this.data.meta.current_page:this.data.current_page},firstPageUrl(){return this.isApiResource?this.data.links.first:null},from(){return this.isApiResource?this.data.meta.from:this.data.from},lastPage(){return this.isApiResource?this.data.meta.last_page:this.data.last_page},lastPageUrl(){return this.isApiResource?this.data.links.last:null},nextPageUrl(){return this.isApiResource?this.data.links.next:this.data.next_page_url},perPage(){return this.isApiResource?this.data.meta.per_page:this.data.per_page},prevPageUrl(){return this.isApiResource?this.data.links.prev:this.data.prev_page_url},to(){return this.isApiResource?this.data.meta.to:this.data.to},total(){return this.isApiResource?this.data.meta.total:this.data.total},pageRange(){if(this.limit===-1)return 0;if(this.limit===0)return this.lastPage;for(var t=this.currentPage,r=this.lastPage,o=this.limit,n=t-o,l=t+o+1,a=[],i=[],s,d=1;d<=r;d++)(d===1||d===r||d>=n&&d<l)&&a.push(d);return a.forEach(function(c){s&&(c-s===2?i.push(s+1):c-s!==1&&i.push("...")),i.push(c),s=c}),i}},methods:{previousPage(){this.selectPage(this.currentPage-1)},nextPage(){this.selectPage(this.currentPage+1)},selectPage(t){t!=="..."&&this.$emit("pagination-change-page",t)}},render(){return this.$slots.default({data:this.data,limit:this.limit,computed:{isApiResource:this.isApiResource,currentPage:this.currentPage,firstPageUrl:this.firstPageUrl,from:this.from,lastPage:this.lastPage,lastPageUrl:this.lastPageUrl,nextPageUrl:this.nextPageUrl,perPage:this.perPage,prevPageUrl:this.prevPageUrl,to:this.to,total:this.total,pageRange:this.pageRange},prevButtonEvents:{click:t=>{t.preventDefault(),this.previousPage()}},nextButtonEvents:{click:t=>{t.preventDefault(),this.nextPage()}},pageButtonEvents:t=>({click:r=>{r.preventDefault(),this.selectPage(t)}})})}}},props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},showDisabled:{type:Boolean,default:!1},size:{type:String,default:"default",validator:t=>["small","default","large"].indexOf(t)!==-1},align:{type:String,default:"left",validator:t=>["left","center","right"].indexOf(t)!==-1}},methods:{onPaginationChangePage(t){this.$emit("pagination-change-page",t)}},mounted(){}},ca={class:"flex flex-col items-center"},ma={key:0,class:"text-sm text-gray-700 dark:text-gray-400"},fa={class:"font-semibold text-gray-900 dark:text-white"},ga={class:"font-semibold text-gray-900 dark:text-white"},ha={class:"font-semibold text-gray-900 dark:text-white"},ua=["tabindex"],pa=e.createElementVNode("span",{class:"sr-only"},"Previous",-1),_a=e.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1),ya=["aria-current"],ba=["tabindex"],ka=e.createElementVNode("span",{class:"sr-only"},"Next",-1),xa=e.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1);function wa(t,r,o,n,l,a){const i=e.resolveComponent("RenderlessPagination");return e.openBlock(),e.createBlock(i,{data:o.data,limit:o.limit,onPaginationChangePage:a.onPaginationChangePage},{default:e.withCtx(s=>[e.createElementVNode("div",ca,[s.computed.total>s.computed.perPage?(e.openBlock(),e.createElementBlock("span",ma,[e.createTextVNode(" Showing "),e.createElementVNode("span",fa,e.toDisplayString(s.computed.from),1),e.createTextVNode(" to "),e.createElementVNode("span",ga,e.toDisplayString(s.computed.to),1),e.createTextVNode(" of "),e.createElementVNode("span",ha,e.toDisplayString(s.computed.total),1),e.createTextVNode(" Entries ")])):e.createCommentVNode("",!0),s.computed.total>s.computed.perPage?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:1},t.$attrs,{class:["flex items-center h-8 -space-x-px text-sm",{"pagination-sm":o.size=="small","pagination-lg":o.size=="large","justify-content-center":o.align=="center","justify-content-end":o.align=="right"}]}),[s.computed.prevPageUrl||o.showDisabled?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",{disabled:!s.computed.prevPageUrl}])},[e.createElementVNode("a",e.mergeProps({class:"page-link",href:"#","aria-label":"Previous",tabindex:!s.computed.prevPageUrl&&-1},e.toHandlers(s.prevButtonEvents,!0)),[e.renderSlot(t.$slots,"prev-nav",{},()=>[pa,_a])],16,ua)],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.computed.pageRange,(d,c)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["",{active:d==s.computed.currentPage}]),key:c},[e.createElementVNode("a",e.mergeProps({class:"",href:"#"},e.toHandlers(s.pageButtonEvents(d),!0),{"aria-current":d==s.computed.currentPage?"page":null,class:d==s.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"}),e.toDisplayString(d),17,ya)],2))),128)),s.computed.nextPageUrl||o.showDisabled?(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",{disabled:!s.computed.nextPageUrl}])},[e.createElementVNode("a",e.mergeProps({class:"",href:"#","aria-label":"Next",tabindex:!s.computed.nextPageUrl&&-1},e.toHandlers(s.nextButtonEvents,!0)),[e.renderSlot(t.$slots,"next-nav",{},()=>[ka,xa])],16,ba)],2)):e.createCommentVNode("",!0)],16)):e.createCommentVNode("",!0)])]),_:3},8,["data","limit","onPaginationChangePage"])}const me=k(da,[["render",wa]]),Ea={components:{TailwindPagination:me},props:{data:Array,columns:Array,get_item_url:String,xprops:Object,refreshData:Boolean},data(){return{isMounted:!1,limit:5,showDisabled:!1,size:"default",align:"left",search:"",isDropdownOpen:!1,itemLists:[],tableData:[],sortField:this.columns[0].field_name,sortOrder:"asc",pageOptions:[5,10,20,50],perPage:5,page:1}},computed:{filteredData(){const t=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(n=>n.toString().toLowerCase().includes(t)))}},methods:{forDynCompIs(t){return typeof t=="object"?t:null},GetItemLists(t=1){this.page=t;const r={sort:this.sortField,order:this.sortOrder,s:this.search,limit:this.perPage,page:this.page};axios.get(this.xprops.route_get_data,{params:r}).then(o=>{this.itemLists=o.data}).catch(o=>{console.error(o)})},updateSortColumn(t,r){r&&(t===this.sortField?this.sortOrder=this.sortOrder==="asc"?"desc":"asc":(this.sortField=t,this.sortOrder="asc"),this.GetItemLists(this.page))},handleSearch(){this.sortField=this.columns[0].field_name,this.sortOrder="asc",this.page=1,this.GetItemLists(this.page)}},beforeDestroy(){},mounted(){this.GetItemLists(),this.isMounted=!0},watch:{searchFilter(){this.filteredOptions.length===0?this.selected={}:this.selected=this.filteredOptions[0]},perPage(t){this.page=1,this.perPage=t,this.GetItemLists(this.page)},refreshData(t,r){this.isMounted&&t!==r&&this.GetItemLists()}}},Na={class:"p-2"},Va={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"},Ba={class:"flex items-center gap-2"},Ca=e.createElementVNode("span",{class:"font-medium"}," Show ",-1),Sa={style:{"margin-top":"9px"}},$a=e.createElementVNode("span",{class:"font-medium"}," Entries ",-1),Da=e.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),Oa={class:"relative"},Pa=e.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},[e.createElementVNode("svg",{class:"w-5 h-5 text-gray-500 dark:text-gray-400","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),Ta={class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},ja={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"},Ma={class:"hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400"},Aa=["onClick"],Ia={key:0,class:"ml-2"},La={key:0,class:"fa fa-arrow-up"},Fa={key:1,class:"fa fa-arrow-down"},za=["data-label"],Ga={class:"overflow-auto max-h-40"},va={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"};function Ra(t,r,o,n,l,a){const i=e.resolveComponent("dropdown"),s=e.resolveComponent("TailwindPagination");return e.openBlock(),e.createElementBlock("div",Na,[e.createElementVNode("div",Va,[e.createElementVNode("div",Ba,[Ca,e.createElementVNode("div",Sa,[e.createVNode(i,{has_cancel:!1,options:l.pageOptions,modelValue:l.perPage,"onUpdate:modelValue":r[0]||(r[0]=d=>l.perPage=d),is_required:!1,field_name:"perPage",label_name:"",default_value:5,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),$a]),Da,e.createElementVNode("div",Oa,[Pa,e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[1]||(r[1]=d=>l.search=d),onInput:r[2]||(r[2]=d=>a.handleSearch()),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",placeholder:"Search ..."},null,544),[[e.vModelText,l.search]])])]),e.createElementVNode("div",Ta,[e.createElementVNode("table",ja,[e.createElementVNode("thead",Ma,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(d,c)=>(e.openBlock(),e.createElementBlock("th",{key:c,onClick:m=>a.updateSortColumn(d.field_name,d.sortable),class:"w-full px-4 py-2 lg:w-2/12"},[e.createTextVNode(e.toDisplayString(d.field_label)+" ",1),l.sortField===d.field_name?(e.openBlock(),e.createElementBlock("span",Ia,[l.sortOrder==="asc"?(e.openBlock(),e.createElementBlock("i",La)):(e.openBlock(),e.createElementBlock("i",Fa))])):e.createCommentVNode("",!0)],8,Aa))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.itemLists.data,(d,c)=>(e.openBlock(),e.createElementBlock("tr",{key:c,class:"bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(m,g)=>(e.openBlock(),e.createElementBlock("td",{key:g,"data-label":m.field_label,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"},[e.createElementVNode("div",Ga,[m.tdComp?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.forDynCompIs(m.tdComp)),{key:0,row:d,field:m.field_name,xprops:o.xprops,tdProps:m.tdProps,onDeleteAction:r[3]||(r[3]=u=>a.GetItemLists())},null,40,["row","field","xprops","tdProps"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(d[m.field_name]),1)],64))])],8,za))),128))]))),128))])])]),e.createElementVNode("div",va,[e.createVNode(s,{class:"mt-3 mb-0",data:l.itemLists,limit:l.limit,size:l.size,align:l.align,onPaginationChangePage:a.GetItemLists},null,8,["data","limit","size","align","onPaginationChangePage"])])])}const Ua=k(Ea,[["render",Ra]]),qa={components:{},props:{data:Array,columns:Array},data(){return{showNoOfEntries:[1,2,3,10,20,30,40],search:"",isDropdownOpen:!1,sortKey:"",sortOrder:1,currentPage:1,itemsPerPage:10,jumpToPage:"",maxDisplayedPages:10}},computed:{filteredData(){const t=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(n=>n!=null&&n.toString().toLowerCase().includes(t)))},totalPages(){return Math.ceil(this.filteredData.length/this.itemsPerPage)},paginatedData(){const t=(this.currentPage-1)*this.itemsPerPage,r=t+this.itemsPerPage;return this.filteredData.slice(t,r)},displayedPageNumbers(){let t=Math.max(this.currentPage-Math.floor(this.maxDisplayedPages/2),1),r=t+this.maxDisplayedPages-1;return r>this.totalPages&&(r=this.totalPages,t=Math.max(r-this.maxDisplayedPages+1,1)),Array.from({length:r-t+1},(o,n)=>t+n)},firstItemIndex(){return this.itemsPerPage*(this.currentPage-1)+1},lastItemIndex(){const t=this.itemsPerPage*this.currentPage;return t>this.filteredData.length?this.filteredData.length:t}},methods:{handleItemsPerPageChange(t){this.itemsPerPage=t},goToPage(t){t>=1&&t<=this.totalPages&&(this.currentPage=t)},sort(t){t===this.sortKey?this.sortOrder*=-1:(this.sortKey=t,this.sortOrder=1)},sortData(t){return this.sortKey?t.slice().sort((r,o)=>(r[this.sortKey]<o[this.sortKey]?-1:1)*this.sortOrder):t},previousPage(){this.currentPage>1&&this.currentPage--},nextPage(){this.currentPage<this.totalPages&&this.currentPage++},firstPage(){this.currentPage=1},lastPage(){this.currentPage=this.totalPages},goToPage(t){t>=1&&t<=this.totalPages&&(this.currentPage=t)},onJumpToPageChange(){const t=parseInt(this.jumpToPage);t>=1&&t<=this.totalPages&&(this.jumpToPage=t)},jumpToPageButton(){this.jumpToPage>=1&&this.jumpToPage<=this.totalPages&&(this.currentPage=this.jumpToPage)},closeBoxOnbodyClick(){event.target.closest(".main_box_close")||(this.isDropdownOpen=!1)}},beforeDestroy(){document.body.removeEventListener("click",this.closeBoxOnbodyClick)},mounted(){document.body.addEventListener("click",this.closeBoxOnbodyClick)}},Ha={class:"p-2"},Za={class:"flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0"},Ka={class:"flex items-center gap-2"},Wa=e.createElementVNode("span",{class:"font-medium"}," Show ",-1),Xa={style:{"margin-top":"9px"}},Ya=e.createElementVNode("span",{class:"font-medium"}," Entries ",-1),Ja=e.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),Qa={class:"relative"},el=e.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},[e.createElementVNode("svg",{class:"w-5 h-5 text-gray-500 dark:text-gray-400","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),tl={class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},rl={class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark"},ol={class:"hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400"},nl=["onClick"],al={key:0,class:"ml-2"},ll=["data-label"],sl=["innerHTML"],il={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"},dl={class:"flex justify-between flex-1 sm:hidden"},cl=["disabled"],ml=["disabled"],fl={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"},gl={class:"text-sm text-gray-700 dark:text-gray-400"},hl={class:"font-medium"},ul={class:"font-medium"},pl={class:"font-medium"},_l={"aria-label":"Page navigation"},yl={class:"flex items-center h-8 -space-x-px text-sm"},bl=["disabled"],kl=[e.createElementVNode("span",{class:"sr-only"},"Previous",-1),e.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1)],xl=["onClick"],wl=["onClick"],El=["disabled"],Nl=[e.createElementVNode("span",{class:"sr-only"},"Next",-1),e.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1)];function Vl(t,r,o,n,l,a){const i=e.resolveComponent("dropdown");return e.openBlock(),e.createElementBlock("div",Ha,[e.createElementVNode("div",Za,[e.createElementVNode("div",Ka,[Wa,e.createElementVNode("div",Xa,[e.createVNode(i,{has_cancel:!1,options:l.showNoOfEntries,modelValue:l.itemsPerPage,"onUpdate:modelValue":r[0]||(r[0]=s=>l.itemsPerPage=s),is_required:!1,field_name:"NoOfEntries",label_name:"",default_value:"10",show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),Ya]),Ja,e.createElementVNode("div",Qa,[el,e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[1]||(r[1]=s=>l.search=s),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",placeholder:"Search ..."},null,512),[[e.vModelText,l.search]])])]),e.createElementVNode("div",tl,[e.createElementVNode("table",rl,[e.createElementVNode("thead",ol,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(s,d)=>(e.openBlock(),e.createElementBlock("th",{key:d,onClick:c=>a.sort(s),class:"w-full px-4 py-2 lg:w-2/12"},[e.createTextVNode(e.toDisplayString(s)+" ",1),l.sortKey===s?(e.openBlock(),e.createElementBlock("span",al,e.toDisplayString(l.sortOrder===1?"▲":"▼"),1)):e.createCommentVNode("",!0)],8,nl))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.paginatedData,(s,d)=>(e.openBlock(),e.createElementBlock("tr",{key:d,class:"bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(c,m)=>(e.openBlock(),e.createElementBlock("td",{key:m,"data-label":c,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"},[e.createElementVNode("p",{class:"text-pretty",innerHTML:s[m]},null,8,sl)],8,ll))),128))]))),128))])])]),e.createElementVNode("div",il,[e.createElementVNode("div",dl,[e.createElementVNode("a",{href:"#",onClick:r[2]||(r[2]=(...s)=>a.previousPage&&a.previousPage(...s)),disabled:l.currentPage===1,class:"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"},"Previous",8,cl),e.createElementVNode("a",{href:"#",onClick:r[3]||(r[3]=(...s)=>a.nextPage&&a.nextPage(...s)),disabled:l.currentPage===a.totalPages,class:"relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"},"Next",8,ml)]),e.createElementVNode("div",fl,[e.createElementVNode("div",null,[e.createElementVNode("p",gl,[e.createTextVNode(" Showing "),e.createElementVNode("span",hl,e.toDisplayString(a.firstItemIndex),1),e.createTextVNode(" to "),e.createElementVNode("span",ul,e.toDisplayString(a.lastItemIndex),1),e.createTextVNode(" of "),e.createElementVNode("span",pl,e.toDisplayString(a.filteredData.length),1),e.createTextVNode(" entries ")])]),e.createElementVNode("div",null,[e.createElementVNode("nav",_l,[e.createElementVNode("ul",yl,[e.createElementVNode("li",null,[e.createElementVNode("a",{href:"#",onClick:r[4]||(r[4]=(...s)=>a.previousPage&&a.previousPage(...s)),disabled:l.currentPage===1,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"},kl,8,bl)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.displayedPageNumbers,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[e.createElementVNode("li",null,[l.currentPage!==s?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:d=>a.goToPage(s),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"},e.toDisplayString(s),9,xl)):e.createCommentVNode("",!0)]),e.createElementVNode("li",null,[l.currentPage===s?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:d=>a.goToPage(s),"aria-current":"page",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"},e.toDisplayString(s),9,wl)):e.createCommentVNode("",!0)])],64))),128)),e.createElementVNode("li",null,[e.createElementVNode("a",{href:"#",onClick:r[5]||(r[5]=(...s)=>a.nextPage&&a.nextPage(...s)),disabled:l.currentPage===a.totalPages,class:"flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"},Nl,8,El)])])])])])])])}const Bl=k(qa,[["render",Vl]]),Cl={class:"flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",role:"alert"},Sl={key:0,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"},$l=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[e.createElementVNode("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"})],-1),e.createElementVNode("span",{class:"sr-only"},"Check icon",-1)],Dl={key:1,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"},Ol=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[e.createElementVNode("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"})],-1),e.createElementVNode("span",{class:"sr-only"},"Error icon",-1)],Pl={key:2,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"},Tl=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[e.createElementVNode("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"})],-1),e.createElementVNode("span",{class:"sr-only"},"Warning icon",-1)],jl={class:"ml-3 text-sm font-normal"},Ml=[e.createElementVNode("span",{class:"sr-only"},"Close",-1),e.createElementVNode("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1)],Al={__name:"ToastListItem",props:{message:String,duration:{type:Number,default:2e3},type:{type:String,default:"success"}},emits:["remove"],setup(t,{emit:r}){const o=t;e.onMounted(()=>{setTimeout(()=>n("remove"),o.duration)});const n=r;return(l,a)=>(e.openBlock(),e.createElementBlock("div",Cl,[o.type==="success"?(e.openBlock(),e.createElementBlock("div",Sl,$l)):e.createCommentVNode("",!0),o.type==="error"?(e.openBlock(),e.createElementBlock("div",Dl,Ol)):e.createCommentVNode("",!0),o.type==="warning"?(e.openBlock(),e.createElementBlock("div",Pl,Tl)):e.createCommentVNode("",!0),e.createElementVNode("div",jl,e.toDisplayString(o.message),1),e.createElementVNode("button",{onClick:a[0]||(a[0]=i=>n("remove")),type:"button",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","data-dismiss-target":"#toast-default","aria-label":"Close"},Ml)]))}},G=e.reactive({items:[]}),v={state:G,methods:{add(t){G.items.unshift({key:Symbol(),message:t.message,type:t.type,duration:t.duration})},remove(t){G.items.splice(t,1)}}},Il={__name:"GlToastList",setup(t){function r(o){v.methods.remove(o)}return(o,n)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{tag:"div","enter-from-class":"translate-x-full opacity-0","enter-active-class":"duration-500","leave-active-class":"duration-500","leave-to-class":"translate-x-full opacity-0",class:"fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(v).state.items,(l,a)=>(e.openBlock(),e.createBlock(Al,{key:l.key,message:l.message,type:l.type,duration:l.duration,onRemove:i=>r(a)},null,8,["message","type","duration","onRemove"]))),128))]),_:1}))}},Ll={key:0,class:"flex justify-center"},Fl=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[e.createElementVNode("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"})],-1)],zl={class:"absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600"},Gl={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},vl={key:0},Rl=["href"],Ul=e.createElementVNode("i",{class:"mr-2 fa-solid fa-list-ul opacity-80"},null,-1),ql={key:1},Hl=e.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),Zl={__name:"DatatableAction",props:{field:{type:String,default:""},route_url:{type:String,default:""},row:{type:[Array,Object],default:[]},xprops:{type:Object,default:{}},tdProps:{type:Object,default:{}}},emits:["deleteAction"],setup(t,{emit:r}){const o=H(),n=t,l=e.ref(!1),a=e.ref(!1),i=()=>{l.value=!1},s=()=>{l.value=!0},d=()=>{a.value=!1},c=()=>{a.value=!0},m=r,g=()=>{axios.delete(`${n.xprops.route}/${n.row.id}`).then(()=>{d(),m("deleteAction"),o.commit("notification/SHOW_NOTIFICATION",{message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(u=>{console.log(u)})};return(u,b)=>{const S=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(O,{isOpen:a.value,onConfirmDelete:g,onCancelDelete:d},null,8,["isOpen"]),t.row&&u.can(`edit_${t.xprops.permission} || delete_${t.xprops.permission}`)?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ll,[e.createElementVNode("button",{onClick:s,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",type:"button"},Fl),e.withDirectives(e.createElementVNode("div",zl,[e.createElementVNode("ul",Gl,[u.can(`edit_${t.xprops.permission}`)?(e.openBlock(),e.createElementBlock("li",vl,[e.createElementVNode("a",{href:t.xprops.route+"/"+t.row.id+"/edit",class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[Ul,e.createTextVNode(" Edit")],8,Rl)])):e.createCommentVNode("",!0),u.can(`delete_${t.xprops.permission}`)?(e.openBlock(),e.createElementBlock("li",ql,[e.createElementVNode("a",{href:"#",onClick:e.withModifiers(c,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[Hl,e.createTextVNode(" Remove")])])):e.createCommentVNode("",!0)])],512),[[e.vShow,l.value]])])),[[S,i]]):e.createCommentVNode("",!0)],64)}}},Kl={key:0,class:"flex justify-center"},Wl=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[e.createElementVNode("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"})],-1)],Xl={class:"absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600"},Yl={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},Jl={key:0},Ql=e.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),es={__name:"DatatableDeleteAction",props:{field:{type:String,default:""},route_url:{type:String,default:""},row:{type:[Array,Object],default:[]},xprops:{type:Object,default:{}},tdProps:{type:Object,default:{}}},emits:["deleteAction"],setup(t,{emit:r}){const o=H(),n=t,l=e.ref(!1),a=e.ref(!1),i=()=>{l.value=!1},s=()=>{l.value=!0},d=()=>{a.value=!1},c=()=>{a.value=!0},m=r,g=()=>{axios.delete(`${n.xprops.route}/${n.row.id}`).then(()=>{d(),m("deleteAction"),o.commit("notification/SHOW_NOTIFICATION",{message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(u=>{console.log(u)})};return(u,b)=>{const S=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(O,{isOpen:a.value,onConfirmDelete:g,onCancelDelete:d},null,8,["isOpen"]),t.row&&u.can(`delete_${t.xprops.permission}`)?e.withDirectives((e.openBlock(),e.createElementBlock("div",Kl,[e.createElementVNode("button",{onClick:s,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",type:"button"},Wl),e.withDirectives(e.createElementVNode("div",Xl,[e.createElementVNode("ul",Yl,[u.can(`delete_${t.xprops.permission}`)?(e.openBlock(),e.createElementBlock("li",Jl,[e.createElementVNode("a",{href:"#",onClick:e.withModifiers(c,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[Ql,e.createTextVNode(" Remove")])])):e.createCommentVNode("",!0)])],512),[[e.vShow,l.value]])])),[[S,i]]):e.createCommentVNode("",!0)],64)}}},ts={props:["field","row"],computed:{isArray(){return Array.isArray(this.row)},isObject(){return typeof this.row=="object"},isString(){return typeof this.row=="string"}},mounted(){console.log("row : ",this.row)}},rs=["href","title"],os=e.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1),ns={key:1,class:"m-1 d-inline-block"},as=["href","title"],ls=e.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1);function ss(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",null,[a.isArray?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.row,(i,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"m-1 d-inline-block"},[e.createElementVNode("a",{href:i,title:i,target:"_blank",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"},[os,e.createTextVNode(" Download ")],8,rs)]))),128)):a.isString?(e.openBlock(),e.createElementBlock("div",ns,[e.createElementVNode("a",{href:o.row,title:o.row,target:"_blank",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"},[ls,e.createTextVNode(" Download ")],8,as)])):e.createCommentVNode("",!0)])}const is=k(ts,[["render",ss]]),ds={props:["field","row"],computed:{isArray(){return Array.isArray(this.row[this.field])},isObject(){return typeof this.row[this.field]=="object"}}},cs=["href","title"],ms=e.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1),fs={key:1,class:"m-1 d-inline-block"},gs=["href","title"],hs=e.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1);function us(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",null,[a.isArray?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.row[o.field],i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"m-1 d-inline-block"},[e.createElementVNode("a",{href:i.url,title:i.name,target:"_blank",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"},[ms,e.createTextVNode(" Download ")],8,cs)]))),128)):a.isObject?(e.openBlock(),e.createElementBlock("div",fs,[e.createElementVNode("a",{href:o.row[o.field].url,title:o.row[o.field].name,target:"_blank",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"},[hs,e.createTextVNode(" Download ")],8,gs)])):e.createCommentVNode("",!0)])}const ps=k(ds,[["render",us]]),_s={props:["field","row","tdProps"]},ys={key:0},bs=["innerHTML"];function ks(t,r,o,n,l,a){return o.row[o.field]?(e.openBlock(),e.createElementBlock("div",ys,[e.createElementVNode("div",{class:"w-full",innerHTML:o.row[o.field]},null,8,bs)])):e.createCommentVNode("",!0)}const xs=k(_s,[["render",ks]]),ws={props:["field","row","tdProps"],computed:{entry(){const[t,r]=this.field.split(".");return e.markRaw({key:t,field:r})},isArray(){return Array.isArray(this.row[this.entry.key])},isObject(){return typeof this.row[this.entry.key]=="object"}}},Es={class:"flex flex-wrap gap-2"},Ns={key:1,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"};function Vs(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",Es,[a.isArray?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.row[a.entry.key],(i,s)=>(e.openBlock(),e.createElementBlock("span",{key:s,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"},e.toDisplayString(i[a.entry.field]),1))),128)):a.isObject?(e.openBlock(),e.createElementBlock("span",Ns,e.toDisplayString(o.row[a.entry.key][a.entry.field]),1)):e.createCommentVNode("",!0)])}const Bs=k(ws,[["render",Vs]]),Cs={props:["field","row","tdProps"]},Ss={key:0},$s={class:"m-1 d-inline-block"},Ds=["href","title"],Os=["src","alt","title"];function Ps(t,r,o,n,l,a){return o.row[o.field]?(e.openBlock(),e.createElementBlock("div",Ss,[e.createElementVNode("div",$s,[e.createElementVNode("a",{href:o.row[o.field].url,title:o.row[o.field].name,target:"_blank"},[e.createElementVNode("img",{src:o.row[o.field].thumbnail,alt:o.row[o.field].name,title:o.row[o.field].name},null,8,Os)],8,Ds)])])):e.createCommentVNode("",!0)}const Ts=k(Cs,[["render",Ps],["__scopeId","data-v-3a28c02c"]]),js={props:["field","row","tdProps"],computed:{isActive(){return this.row[this.field]===1}}},Ms={class:"flex flex-wrap gap-2"},As={key:0,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"},Is=e.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Ls={key:1,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"},Fs=e.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1);function zs(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",Ms,[a.isActive?(e.openBlock(),e.createElementBlock("span",As,[Is,e.createTextVNode(" Active ")])):a.isActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Ls,[Fs,e.createTextVNode(" Inactive ")]))])}const Gs=k(js,[["render",zs]]),vs={props:["field","row","tdProps"],computed:{hasLabelColor(t){const r=this.tdProps.status_general_labels_color.find(o=>o.label===this.row[this.field]);return r?r.class:""}}},Rs={class:"flex flex-wrap gap-2"},Us={key:0,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"},qs=e.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Hs={key:1,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"},Zs=e.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),Ks={key:2,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"},Ws=e.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1),Xs={key:3,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"},Ys=e.createElementVNode("span",{class:"w-2 h-2 bg-blue-500 rounded-full me-1"},null,-1);function Js(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",Rs,[a.hasLabelColor=="green"?(e.openBlock(),e.createElementBlock("span",Us,[qs,e.createTextVNode(" "+e.toDisplayString(this.row[this.field]),1)])):e.createCommentVNode("",!0),a.hasLabelColor=="red"?(e.openBlock(),e.createElementBlock("span",Hs,[Zs,e.createTextVNode(" "+e.toDisplayString(this.row[this.field]),1)])):e.createCommentVNode("",!0),a.hasLabelColor=="yellow"?(e.openBlock(),e.createElementBlock("span",Ks,[Ws,e.createTextVNode(" "+e.toDisplayString(this.row[this.field]),1)])):e.createCommentVNode("",!0),a.hasLabelColor=="default"?(e.openBlock(),e.createElementBlock("span",Xs,[Ys,e.createTextVNode(" "+e.toDisplayString(this.row[this.field]),1)])):e.createCommentVNode("",!0)])}const Qs=k(vs,[["render",Js]]),ei={props:["isOpen","title","button_text"],methods:{confirmAction(){this.$emit("confirm-action")},cancelAction(){this.$emit("cancel-action")}}},ti={key:0,class:"fixed inset-0 z-50 overflow-y-auto",role:"dialog","aria-modal":"true"},ri={class:"flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0"},oi=e.createElementVNode("div",{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75","aria-hidden":"true"},null,-1),ni=e.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),ai={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"},li={class:"px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4"},si={class:"sm:flex sm:items-start"},ii={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},di={class:"text-lg font-medium leading-6 text-gray-900"},ci={class:"mt-2"},mi={class:"px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse"};function fi(t,r,o,n,l,a){return o.isOpen?(e.openBlock(),e.createElementBlock("div",ti,[e.createElementVNode("div",ri,[oi,ni,e.createElementVNode("div",ai,[e.createElementVNode("div",li,[e.createElementVNode("div",si,[e.createElementVNode("div",ii,[e.createElementVNode("h3",di,e.toDisplayString(o.title),1),e.createElementVNode("div",ci,[e.renderSlot(t.$slots,"default")])])])]),e.createElementVNode("div",mi,[e.createElementVNode("button",{onClick:r[0]||(r[0]=(...i)=>a.confirmAction&&a.confirmAction(...i)),type:"button",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"},e.toDisplayString(o.button_text),1),e.createElementVNode("button",{onClick:r[1]||(r[1]=(...i)=>a.cancelAction&&a.cancelAction(...i)),type:"button",class:"inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"}," Cancel ")])])])])):e.createCommentVNode("",!0)}const gi=k(ei,[["render",fi]]);h.GlButton=ur,h.GlCard=Ut,h.GlConfirmationModal=gi,h.GlDataTable=Bl,h.GlDataTableServerSide=Ua,h.GlDatatableAction=Zl,h.GlDatatableDeleteAction=es,h.GlDatatableFileDownload=is,h.GlDatatableFiles=ps,h.GlDatatableHtml=xs,h.GlDatatableList=Bs,h.GlDatatablePicture=Ts,h.GlDatatableStatus=Gs,h.GlDatatableStatusGeneral=Qs,h.GlDeleteConfirmationModal=O,h.GlDropdown=ea,h.GlFilesUpload=Bt,h.GlLanguageSelector=Ft,h.GlModal=yn,h.GlMultiItemSlide=cn,h.GlMultiSelectDropdown=mr,h.GlNotify=Tt,h.GlTab=_o,h.GlTabsWrapper=go,h.GlTailwindPagination=me,h.GlTextInput=ro,h.GlTextTranslate=Kr,h.GlTextarea=ia,h.GlTextareaTranslate=Br,h.GlTinymceTranslate=Ir,h.GlToast=v,h.GlToastList=Il,h.GlToggleBox=On,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|
|
7
|
+
`,42,jr),e.createElementVNode("span",Mr,e.toDisplayString(t.error_message),1),e.createElementVNode("small",Ar,e.toDisplayString(t.description),1)],2))],64))}},Lr={class:"font-bold ptext-lg dark:text-white"},Fr=["name","id"],zr=["id"],Gr=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),vr=["for"],Rr=e.createElementVNode("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),Ur=["name","id"],qr=["required","name","id","type"],Hr={class:"gl-span-form-error"},Zr={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},Kr={__name:"GlTextTranslate",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:[String,Number],default:null},modelValue:{type:[String,Number],default:""},model_value_translate:{type:[String,Object],default:null},modelValueTranslate:{type:[String,Object],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},get_field_translations:{type:String,default:""},description:{type:String,default:""},translatable:{type:Object,default:null}},emits:["update:modelValue","update:modelValueTranslate","keydown"],setup(t,{expose:r,emit:o}){const n=t,l=o,a=e.ref(null),i=e.ref(null);return e.onMounted(()=>{a.value!==null&&a.value.hasAttribute("autofocus")&&a.value.focus(),n.model_value&&(l("update:modelValue",n.model_value),a.value.value=n.model_value),n.model_value_translate,n.translatable&&axios.post("/admin/get_field_translations",{model:n.translatable.model,row_id:n.translatable.row_id,field:n.translatable.field}).then(s=>{i.value.value=JSON.stringify(s.data),l("update:modelValueTranslate",JSON.stringify(s.data))}).catch(s=>{console.log(s)})}),r({focus:()=>a.value.focus()}),(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",Lr,e.toDisplayString(t.label_name),1),e.withDirectives(e.createElementVNode("input",{type:"hidden","data-i18n":"true",name:t.field_name+"_i18n",id:t.field_name+"_i18n",ref:"input_translate_s","onUpdate:modelValue":d[0]||(d[0]=c=>s.inputTranslateValue=c)},null,8,Fr),[[e.vModelText,s.inputTranslateValue]]),e.createElementVNode("p",{id:t.field_name,class:"mb-4 text-base text-gray-900 input_tr_show dark:text-white"},e.toDisplayString(t.model_value),9,zr),Gr],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-translation-form":t.error_message=="","gl-label-translation-form-invalid":t.error_message!=="",required:t.is_required}),for:t.field_name},e.toDisplayString(t.label_name),11,vr),Rr,e.createElementVNode("input",{class:"mb-4",type:"hidden","data-i18n":"true",name:t.field_name+"_i18n",id:t.field_name+"_i18n",onInput:d[1]||(d[1]=c=>s.$emit("update:modelValueTranslate",c.target.value)),ref_key:"input_translate",ref:i},null,40,Ur),e.createElementVNode("input",{required:t.is_required,name:t.field_name,id:t.field_name,class:e.normalizeClass({" gl-input-form form-input-translation mt-2 ":t.error_message==""," gl-input-form-invalid form-input-translation mt-2 ":t.error_message!==""}),type:t.type,onInput:d[2]||(d[2]=c=>s.$emit("update:modelValue",c.target.value)),onKeydown:d[3]||(d[3]=c=>s.$emit("keydown",c)),ref_key:"input",ref:a},null,42,qr),e.createElementVNode("span",Hr,e.toDisplayString(t.error_message),1),e.createElementVNode("small",Zr,e.toDisplayString(t.description),1)],2))],64))}},Wr={class:"font-bold ptext-lg dark:text-white"},Xr={class:"mb-4 text-base text-gray-900 dark:text-white"},Yr=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),Jr=["for"],Qr=["required","name","id","type"],eo={class:"gl-span-form-error"},to={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},ro={__name:"GlTextInput",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},description:{type:String,default:""}},emits:["update:modelValue","keydown"],setup(t,{expose:r,emit:o}){const n=t,l=o,a=e.ref(null);e.onMounted(()=>{a.value!==null&&a.value.hasAttribute("autofocus")&&a.value.focus()});const i=e.computed({get(){return n.modelValue},set(s){l("update:modelValue",s)}});return r({focus:()=>a.value.focus()}),(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",Wr,e.toDisplayString(t.label_name),1),e.createElementVNode("p",Xr,e.toDisplayString(t.type=="password"?t.modelValue.replace(/./g,"*"):t.modelValue),1),Yr],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-form":t.error_message=="","gl-label-form-invalid":t.error_message!=="",required:t.is_required}),for:t.field_name},e.toDisplayString(t.label_name),11,Jr),e.withDirectives(e.createElementVNode("input",{required:t.is_required,name:t.field_name,id:t.field_name,class:e.normalizeClass({"gl-input-form":t.error_message=="","gl-input-form-invalid":t.error_message!==""}),type:t.type,"onUpdate:modelValue":d[0]||(d[0]=c=>i.value=c),onKeydown:d[1]||(d[1]=c=>s.$emit("keydown",c)),ref_key:"input",ref:a},null,42,Qr),[[e.vModelDynamic,i.value]]),e.createElementVNode("span",eo,e.toDisplayString(t.error_message),1),e.createElementVNode("small",to,e.toDisplayString(t.description),1)],2))],64))}},oo={setup(t,{slots:r}){const o=e.ref(r.default().map(l=>l.props)),n=e.ref(o.value[0].title);return e.provide("selectedTitle",n),{tabs:o,selectedTitle:n}}},no={class:"flex flex-wrap"},ao={class:"w-full"},lo={class:"flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none"},so=["onClick"],io={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"},co={class:"flex-auto px-4 py-5"},mo={class:"tab-content tab-space"};function fo(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",no,[e.createElementVNode("div",ao,[e.createElementVNode("ul",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,i=>(e.openBlock(),e.createElementBlock("li",{key:i.title,onClick:s=>n.selectedTitle=i.title,class:"flex-auto -mb-px text-center"},[e.createElementVNode("a",{class:e.normalizeClass([{"text-slate-600 bg-white dark:bg-meta-4":n.selectedTitle!=i.title,"text-white bg-slate-600 dark:bg-primary":n.selectedTitle===i.title},"block px-5 py-3 text-xs font-bold leading-normal uppercase rounded shadow-lg hover:text-white tex hover:bg-slate-600 dark:hover:bg-primary dark:text-white tabs_buttons"])},[e.createElementVNode("i",{class:e.normalizeClass([i.icon,"mr-1 text-base"])},null,2),e.createTextVNode(" "+e.toDisplayString(i.title),1)],2)],8,so))),128))])])]),e.createElementVNode("div",io,[e.createElementVNode("div",co,[e.createElementVNode("div",mo,[e.renderSlot(t.$slots,"default")])])])],64)}const go=k(oo,[["render",fo]]),ho={props:["title"],setup(){return{selectedTitle:e.inject("selectedTitle")}}},uo={class:"block"};function po(t,r,o,n,l,a){return e.withDirectives((e.openBlock(),e.createElementBlock("div",uo,[e.renderSlot(t.$slots,"default")],512)),[[e.vShow,o.title==n.selectedTitle]])}const _o=k(ho,[["render",po]]),yo={props:{elements_to_show_prop:{type:Number,default:3},hide_arrow:{type:Boolean,default:!1},disable_touch:{type:Boolean,default:!1},direction_property:{type:String,default:"ltr"},slider_arrows_indicators_position:{type:String,default:"arrows_outside_slider"}},data:function(){return{elementsToShow:3,dotsNum:0,currentDot:1,dotsNavigation:[],touchStartX:0,isMoving:!1,initialX:0,initialY:0,Random_string:this.generateRandomString(6)}},mounted(){this.elementsToShow=this.elements_to_show_prop,this.initSlider(),this.disable_touch||this.movingActions()},methods:{sliderIndicatorsAction(){var t="";return this.direction_property=="rtl"?(t+=" space-x-reverse ",t+=" slider_indicators "):this.slider_arrows_indicators_position=="arrows_indicators_inside_slider"&&(t+=" slider_indicators "),t},sliderContainerAction(){var t="";return!this.hide_arrow&&this.slider_arrows_indicators_position=="arrows_outside_slider"?t+=" w-12/12 xl:w-8/12 xxl:w-8/12 md:w-8/12 sm:w-8/12":this.slider_arrows_indicators_position!="arrows_outside_slider"&&(t+=" w-12/12 "),t},generateRandomString(t){let r="";const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=o.length;for(let l=0;l<t;l++)r+=o.charAt(Math.floor(Math.random()*n));return r},movingActions(){let t=this,r=document.getElementById("slider_"+this.Random_string);const o=l=>{r.style.cursor="grabbing";const a=s=>{const d=s.clientX||s.touches&&s.touches[0]&&s.touches[0].clientX,c=s.clientY||s.touches&&s.touches[0]&&s.touches[0].clientY,m=d-t.initialX,g=c-t.initialY;Math.abs(m)>Math.abs(g)?(s.preventDefault(),Math.abs(m)>=70&&(m<0?t.next():t.prev(),t.initialX=d)):r.style.cursor="grab",Math.abs(g)>Math.abs(m)&&(r.style.cursor="grab")},i=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("touchmove",a),document.removeEventListener("mouseup",i),document.removeEventListener("touchend",i),r.style.cursor="grab"};document.addEventListener("mousemove",a),document.addEventListener("touchmove",a,{passive:!1}),document.addEventListener("mouseup",i),document.addEventListener("touchend",i),t.initialX=l.clientX||l.touches&&l.touches[0]&&l.touches[0].clientX,t.initialY=l.clientY||l.touches&&l.touches[0]&&l.touches[0].clientY},n=l=>{l.key==="ArrowLeft"?t.prev():l.key==="ArrowRight"&&t.next()};r.addEventListener("mousedown",o),r.addEventListener("touchstart",o),document.addEventListener("keydown",n)},next(){this.currentDot<this.dotsNavigation.length&&(this.currentDot++,this.setDot(this.currentDot))},prev(){this.currentDot>1&&(this.currentDot--,this.setDot(this.currentDot))},initSlider(){let t=document.getElementById("sliderContainer_"+this.Random_string),r=document.getElementById("mainSliderContainer_"+this.Random_string),o=document.getElementById("slider_"+this.Random_string),n=o.querySelectorAll("li"),l=Array.from(n).filter(s=>s.parentNode===o),a=t.clientWidth,i=a/this.elementsToShow;if(this.elementsToShow>1?document.body.clientWidth<1e3?(this.elementsToShow=1,i=this.hide_arrow?r.clientWidth:a):document.body.clientWidth<1500&&(this.elementsToShow=2):(this.elementsToShow=1,i=this.hide_arrow?r.clientWidth:a),l.length>1){this.dotsNum=this.elementsToShow==1?l.length:l.length-this.elementsToShow+1;let s=this.elementsToShow==1?i*l.length/this.dotsNum:i*(l.length-this.elementsToShow)/(this.dotsNum-1);this.dotsNavigation=[];for(let d=0;d<this.dotsNum;d++)this.dotsNavigation.push(s*d)}o.style.width=l.length*i+"px",o.style.transition="margin",o.style.transitionDuration="1s";for(let s=0;s<l.length;s++){const d=l[s];d.style.width=i+"px"}},setDot(t){let r=document.getElementById("slider_"+this.Random_string);this.direction_property=="rtl"?r.style.marginRight=-this.dotsNavigation[t-1]+"px":r.style.marginLeft=-this.dotsNavigation[t-1]+"px",this.currentDot=t}}},x=t=>(e.pushScopeId("data-v-a94f16a9"),t=t(),e.popScopeId(),t),bo=["id"],ko={key:0,class:"items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"},xo={class:"w-full"},wo={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Eo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],No={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Vo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],Bo=["id"],Co=["id"],So={class:"w-full"},$o={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Do=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],Oo={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Po=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],To={class:"w-full"},jo={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Mo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],Ao={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Io=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],Lo=["onClick"],Fo=[x(()=>e.createElementVNode("span",null,null,-1))],zo={key:1,class:"flex justify-between pl-5 pr-5"},Go=["onClick"],vo=[x(()=>e.createElementVNode("span",null,null,-1))],Ro={key:0,class:"flex"},Uo={class:"flex items-center"},qo={class:"w-full"},Ho={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Zo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],Ko={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Wo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],Xo={class:"flex items-center"},Yo={class:"w-full"},Jo={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Qo=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],en={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},tn=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))],rn={key:1,class:"items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"},on={class:"w-full"},nn={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},an=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"},null,-1))],ln={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},sn=[x(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"},null,-1))];function dn(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["",!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_outside_slide"?"flex":"relative block"]),id:"mainSliderContainer_"+t.Random_string},[t.dotsNum>0&&!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_outside_slider"?(e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("div",xo,[e.createElementVNode("button",{class:"p-3 mr-5 rounded-full shadow-lg arrow_button_styles",onClick:r[0]||(r[0]=i=>a.prev())},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",wo,Eo)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",No,Vo)):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["overflow-hidden",a.sliderContainerAction()]),id:"sliderContainer_"+t.Random_string},[e.createElementVNode("ul",{class:"flex",id:"slider_"+t.Random_string},[t.dotsNum>0&&!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_indicators_inside_slider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex",o.direction_property=="rtl"?"arrow_button_next":"arrow_button_prev"])},[e.createElementVNode("div",So,[e.createElementVNode("button",{class:"p-3 rounded-full shadow-lg arrow_button_styles",onClick:r[1]||(r[1]=e.withModifiers(i=>a.prev(),["stop"]))},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",$o,Do)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",Oo,Po)):e.createCommentVNode("",!0)])])],2)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},void 0,!0),t.dotsNum>0&&!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_indicators_inside_slider"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button",o.direction_property=="rtl"?"arrow_button_prev":"arrow_button_next"])},[e.createElementVNode("div",To,[e.createElementVNode("button",{class:"p-3 rounded-full shadow-lg arrow_button_styles",onClick:r[2]||(r[2]=e.withModifiers(i=>a.next(),["stop"]))},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",jo,Mo)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",Ao,Io)):e.createCommentVNode("",!0)])])],2)):e.createCommentVNode("",!0)],8,Co),o.slider_arrows_indicators_position!="arrows_indicators_below_slider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["flex justify-center mb-1 space-x-1",a.sliderIndicatorsAction()])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dotsNum,i=>(e.openBlock(),e.createElementBlock("button",{role:"button",class:e.normalizeClass(["gl-dot",{active:t.currentDot==i}]),key:i,onClick:s=>a.setDot(i)},Fo,10,Lo))),128))],2)):e.createCommentVNode("",!0),o.slider_arrows_indicators_position=="arrows_indicators_below_slider"?(e.openBlock(),e.createElementBlock("div",zo,[e.createElementVNode("div",{class:e.normalizeClass(["flex justify-center mb-1 space-x-1",a.sliderIndicatorsAction()])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dotsNum,i=>(e.openBlock(),e.createElementBlock("button",{role:"button",class:e.normalizeClass(["gl-dot",{active:t.currentDot==i}]),key:i,onClick:s=>a.setDot(i)},vo,10,Go))),128))],2),t.dotsNum>0?(e.openBlock(),e.createElementBlock("div",Ro,[e.createElementVNode("div",Uo,[e.createElementVNode("div",qo,[e.createElementVNode("button",{class:e.normalizeClass(["p-3 rounded-full arrow_button_styles",o.direction_property=="rtl"?"ml-3":"mr-3"]),onClick:r[3]||(r[3]=i=>a.prev())},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",Ho,Zo)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",Ko,Wo)):e.createCommentVNode("",!0)],2)])]),e.createElementVNode("div",Xo,[e.createElementVNode("div",Yo,[e.createElementVNode("button",{class:"p-3 rounded-full arrow_button_styles",onClick:r[4]||(r[4]=i=>a.next())},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",Jo,Qo)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",en,tn)):e.createCommentVNode("",!0)])])])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Bo),t.dotsNum>0&&!o.hide_arrow&&o.slider_arrows_indicators_position=="arrows_outside_slider"?(e.openBlock(),e.createElementBlock("div",rn,[e.createElementVNode("div",on,[e.createElementVNode("button",{class:"p-3 ml-5 rounded-full shadow-lg arrow_button_styles",onClick:r[5]||(r[5]=i=>a.next())},[o.direction_property=="ltr"?(e.openBlock(),e.createElementBlock("svg",nn,an)):e.createCommentVNode("",!0),o.direction_property=="rtl"?(e.openBlock(),e.createElementBlock("svg",ln,sn)):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],10,bo)])}const cn=k(yo,[["render",dn],["__scopeId","data-v-a94f16a9"]]),mn={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",tabindex:"-1","aria-hidden":"true"},fn={class:"pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-none bg-white border rounded-lg border-stroke dark:border-strokedark dark:bg-boxdark"},gn={class:"flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600"},hn={class:"text-xl font-medium leading-normal text-surface dark:text-white"},un=[e.createElementVNode("span",{class:"[&>svg]:h-6 [&>svg]:w-6"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])],-1)],pn={class:"relative p-4 overflow-y-auto"},_n={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"},yn={__name:"GlModal",props:{is_open:{type:Boolean,default:!1},title:{type:String,default:""},max_width:{type:String,default:"max-w-2xl"}},emits:["closeModal"],setup(t,{emit:r}){const o=t,n=r,l=()=>{document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight="0px"},a=()=>{document.documentElement.style.overflow="",document.documentElement.style.paddingRight=""},i=()=>{n("closeModal"),a()};return e.watch(()=>o.is_open,(s,d)=>{s?l():a()},{immediate:!0,deep:!0}),(s,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",{class:e.normalizeClass(["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)]",t.max_width])},[e.createElementVNode("div",fn,[e.createElementVNode("div",gn,[e.createElementVNode("h5",hn,e.toDisplayString(t.title),1),e.createElementVNode("button",{type:"button",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",onClick:i,"aria-label":"Close"},un)]),e.createElementVNode("div",pn,[e.renderSlot(s.$slots,"body")]),e.createElementVNode("div",_n,[e.renderSlot(s.$slots,"buttons"),e.createElementVNode("button",{onClick:i,type:"button",class:"px-5 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-200 rounded-lg ms-3 hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Close ")])])],2)],512)),[[e.vShow,t.is_open]])}},bn={class:"mb-4"},kn={class:"flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin"},xn={class:"relative inline-flex items-center cursor-pointer"},wn=["name","id","checked"],En=e.createElementVNode("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),Nn=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),Vn={class:"flex justify-between px-6 py-3 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark"},Bn={class:"relative inline-flex items-center cursor-pointer"},Cn=["name","id"],Sn=e.createElementVNode("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={class:"gl-span-form-error"},Dn={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},On={__name:"GlToggleBox",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:String,required:!0},modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},description:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:r}){const o=t,n=r,l=e.ref(null),a=e.computed({get(){return o.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("div",bn,[e.createElementVNode("li",kn,[e.createTextVNode(e.toDisplayString(t.label_name)+" ",1),e.createElementVNode("label",xn,[e.createElementVNode("input",{type:"checkbox",class:"sr-only peer",name:t.field_name,id:t.field_name,checked:t.modelValue,"true-value":1,"false-value":0,ref_key:"input",ref:l,disabled:""},null,8,wn),En])])]),Nn],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("li",Vn,[e.createTextVNode(e.toDisplayString(t.label_name)+" ",1),e.createElementVNode("label",Bn,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"sr-only peer",name:t.field_name,id:t.field_name,"true-value":1,"false-value":0,ref_key:"input",ref:l,"onUpdate:modelValue":s[0]||(s[0]=d=>a.value=d)},null,8,Cn),[[e.vModelCheckbox,a.value]]),Sn])]),e.createElementVNode("span",$n,e.toDisplayString(t.error_message),1),e.createElementVNode("small",Dn,e.toDisplayString(t.description),1)],2))],64))}},Pn={class:"font-bold ptext-lg dark:text-white"},Tn={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"},Mn=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),An=["name","id","value"],In={key:0,class:"dropdown"},Ln={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"},Fn={class:"relative showOptions"},zn=["value","placeholder"],Gn={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"},Rn=e.createElementVNode("label",{for:"default-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1),Un={class:"relative"},qn=e.createElementVNode("div",{class:"absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3"},[e.createElementVNode("svg",{class:"w-4 h-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})])],-1),Hn=["id"],Zn={class:"overflow-y-auto max-h-64"},Kn=["onClick","onMousedown","id"],Wn={class:"flex items-center py-2 pl-10 pr-4"},Xn={key:0,class:"absolute flex items-center flex-shrink-0 w-4 h-4 text-green-500 left-2 dark:text-green-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},Yn=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 5.917 5.724 10.5 15 1.5"},null,-1)],Jn={class:"block mt-1 text-sm font-normal leading-5 text-red-500"},Qn={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},ea={__name:"GlDropdown",props:{modelValue:{type:[String,Number],default:""},defaultValue:{type:[String,Number],default:""},field_name:{type:String,default:""},is_required:{type:Boolean,default:!1},has_cancel:{type:Boolean,default:!0},label_name:{type:String,default:""},options:{type:Array,required:!0,default:()=>[],note:"Options of dropdown. An array of options with id and name"},placeholder:{type:String,required:!1,default:"Please select an option",note:"Placeholder of dropdown"},maxItem:{type:Number,required:!1,default:1e4,note:"Max items showing"},show:{type:Boolean,default:!1},error_message:{type:String,default:""},description:{type:String,default:""}},emits:["update:modelValue","selected","selectionChanged"],setup(t,{emit:r}){const o=t,n=r,l=e.ref(null),a=e.ref({}),i=e.ref(0),s=e.ref(!1),d=e.ref(""),c=e.ref("");e.onMounted(()=>{n("selected",a.value),c.value=S(),o.show||(document.body.addEventListener("click",f=>{hi(f)}),document.addEventListener("keypress",f=>{f.key==="Enter"&&f.target.form&&f.preventDefault()}))});const m=e.computed(()=>yi()),g=e.computed(()=>_i()),u=e.computed(()=>{const f=[],p=new RegExp(d.value,"ig");for(const y of g.value){const V=String(y.name);(d.value.length<1||V.match(p))&&f.length<o.maxItem&&f.push(y)}return f});function b(f){if(["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Enter"].includes(f.key)){if(["ArrowUp","ArrowDown"].includes(f.key)&&f.preventDefault(),f.key==="ArrowDown"&&o.posts==="")return;pi(f.key)}}function S(){let f=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){const V=(f+Math.random()*16)%16|0;return f=Math.floor(f/16),(y==="x"?V:V&3|8).toString(16)})}function fe(f){return Object.keys(f).length>0}function hi(f){f.target.id!=o.field_name+"search"+c.value&&f.target.id!=o.field_name&&!f.target.classList.contains("showOptions")&&(ue(),i.value=0)}function ge(f){const p=`${f}${c.value}`,y=document.getElementById(p);y&&y.scrollIntoView()}function ui(f){const p=`${f}${c.value}`,y=document.getElementById(p);y&&y.click()}function pi(f){f==="ArrowDown"&&i.value<u.value.length&&(i.value++,ge(i.value)),f==="ArrowUp"&&i.value>1&&(i.value--,ge(i.value)),f==="Enter"&&ui(i.value)}function _i(){return o.options.map((f,p)=>typeof f=="object"?f:{id:f,name:f})}function yi(){var f=a.value||o.modelValue;if(console.log(a," - ",o.modelValue," - ",f),f)return typeof f=="object"?g.value.find(p=>String(p.id)===String(f.id))||{}:g.value.find(p=>String(p.id)===String(f))||{}}function he(f){a.value=f,s.value=!1,n("selected",a.value),n("selectionChanged",a.value)}function R(){o.show||(d.value="",s.value=!0,e.nextTick(()=>{var f=document.getElementById(`${o.field_name}search${c.value}`);f&&f.focus()}))}function bi(){o.show||(a.value={},d.value="",n("update:modelValue",""),R())}function ue(){a.value.id||(a.value={},d.value=""),n("selected",a.value),s.value=!1}return e.watch(d,()=>{u.value.length===0&&(a.value={})}),e.watch(a,f=>{fe(f)&&n("update:modelValue",f.id)}),(f,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",Pn,e.toDisplayString(t.label_name),1),e.createElementVNode("p",Tn,[e.createElementVNode("span",jn,e.toDisplayString(f.selectedValue.name),1)]),Mn],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("input",{type:"hidden",name:t.field_name,id:t.field_name,value:a.value.id},null,8,An),t.options?(e.openBlock(),e.createElementBlock("div",In,[t.label_name?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass({"gl-label-form":t.error_message=="","gl-label-form-invalid":t.error_message!=="",required:t.is_required})},e.toDisplayString(t.label_name),3)):e.createCommentVNode("",!0),e.createElementVNode("div",Ln,[e.createElementVNode("div",Fn,[e.createElementVNode("input",{class:e.normalizeClass([{"gl-input-form":t.error_message=="","gl-input-form-invalid":t.error_message!==""},"pl-8 pr-2 showOptions"]),ref:t.field_name,onClick:p[0]||(p[0]=y=>R()),value:m.value.name,placeholder:t.placeholder,autocomplete:"off",readonly:""},null,10,zn),e.withDirectives(e.createElementVNode("i",{onClick:p[1]||(p[1]=e.withModifiers(y=>bi(),["stop"])),class:"absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",style:{top:"13px"}},null,512),[[e.vShow,fe(m.value)&&t.has_cancel]]),e.createElementVNode("i",{onClick:p[2]||(p[2]=y=>!s.value&&R()),class:e.normalizeClass([s.value?"fa-angle-up":"fa-angle-down","absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),style:{top:"11px"}},null,2)]),e.withDirectives(e.createElementVNode("div",Gn,[e.createElementVNode("div",vn,[Rn,e.createElementVNode("div",Un,[qn,e.withDirectives(e.createElementVNode("input",{type:"search","onUpdate:modelValue":p[3]||(p[3]=y=>d.value=y),ref:l.value,id:`${t.field_name}search${c.value}`,onKeydown:b,onBlur:p[4]||(p[4]=y=>ue()),autocomplete:"off",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",placeholder:"Search ..."},null,40,Hn),[[e.vModelText,d.value]])])]),e.createElementVNode("div",Zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(y,V)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",V+1==i.value?"bg-gray-100 dark:bg-gray-600":""]),onClick:ki=>he(y),onMousedown:ki=>he(y),key:V,id:`${V+1}${c.value}`},[e.createElementVNode("div",Wn,[m.value.id===y.id?(e.openBlock(),e.createElementBlock("svg",Xn,Yn)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(y.name||y.id||"-"),1)])],42,Kn))),128))])],512),[[e.vShow,s.value]])])])):e.createCommentVNode("",!0),e.createElementVNode("span",Jn,e.toDisplayString(t.error_message),1),e.createElementVNode("small",Qn,e.toDisplayString(t.description),1)],2))],64))}},ta={class:"font-bold ptext-lg dark:text-white"},ra=["id"],oa=e.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),na=["for"],aa=["required","name","id","type","placeholder"],la={class:"gl-span-form-error"},sa={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},ia={__name:"GlTextarea",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},description:{type:String,default:""},place_holder:{type:String,default:""}},emits:["update:modelValue","keydown"],setup(t,{expose:r,emit:o}){const n=t,l=o,a=e.ref(null);return e.onMounted(()=>{a.value!==null&&a.value.hasAttribute("autofocus")&&a.value.focus(),n.model_value&&(l("update:modelValue",n.model_value),a.value.value=n.model_value),n.modelValue!=""&&(l("update:modelValue",n.modelValue),a.value.value=n.modelValue)}),r({focus:()=>a.value.focus()}),(i,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.field_name)},[e.createElementVNode("h3",ta,e.toDisplayString(t.label_name),1),e.createElementVNode("p",{id:t.field_name,class:"mb-4 text-base text-gray-900 input_tr_show dark:text-white"},e.toDisplayString(t.model_value),9,ra),oa],2)):e.createCommentVNode("",!0),t.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-4",t.field_name])},[e.createElementVNode("label",{class:e.normalizeClass({"gl-label-form":t.error_message=="","gl-label-form-invalid":t.error_message!=="",required:t.is_required}),for:t.field_name},e.toDisplayString(t.label_name),11,na),e.createElementVNode("textarea",{required:t.is_required,name:t.field_name,id:t.field_name,class:e.normalizeClass({" gl-textarea-form mt-4 ":t.error_message==""," gl-textarea-form-invalid mt-4 ":t.error_message!==""}),type:t.type,onInput:s[0]||(s[0]=d=>i.$emit("update:modelValue",d.target.value)),ref_key:"input",ref:a,rows:"4",placeholder:t.place_holder},null,42,aa),e.createElementVNode("span",la,e.toDisplayString(t.error_message),1),e.createElementVNode("small",sa,e.toDisplayString(t.description),1)],2))],64))}},da={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:{emits:["pagination-change-page"],props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0}},computed:{isApiResource(){return!!this.data.meta},currentPage(){return this.isApiResource?this.data.meta.current_page:this.data.current_page},firstPageUrl(){return this.isApiResource?this.data.links.first:null},from(){return this.isApiResource?this.data.meta.from:this.data.from},lastPage(){return this.isApiResource?this.data.meta.last_page:this.data.last_page},lastPageUrl(){return this.isApiResource?this.data.links.last:null},nextPageUrl(){return this.isApiResource?this.data.links.next:this.data.next_page_url},perPage(){return this.isApiResource?this.data.meta.per_page:this.data.per_page},prevPageUrl(){return this.isApiResource?this.data.links.prev:this.data.prev_page_url},to(){return this.isApiResource?this.data.meta.to:this.data.to},total(){return this.isApiResource?this.data.meta.total:this.data.total},pageRange(){if(this.limit===-1)return 0;if(this.limit===0)return this.lastPage;for(var t=this.currentPage,r=this.lastPage,o=this.limit,n=t-o,l=t+o+1,a=[],i=[],s,d=1;d<=r;d++)(d===1||d===r||d>=n&&d<l)&&a.push(d);return a.forEach(function(c){s&&(c-s===2?i.push(s+1):c-s!==1&&i.push("...")),i.push(c),s=c}),i}},methods:{previousPage(){this.selectPage(this.currentPage-1)},nextPage(){this.selectPage(this.currentPage+1)},selectPage(t){t!=="..."&&this.$emit("pagination-change-page",t)}},render(){return this.$slots.default({data:this.data,limit:this.limit,computed:{isApiResource:this.isApiResource,currentPage:this.currentPage,firstPageUrl:this.firstPageUrl,from:this.from,lastPage:this.lastPage,lastPageUrl:this.lastPageUrl,nextPageUrl:this.nextPageUrl,perPage:this.perPage,prevPageUrl:this.prevPageUrl,to:this.to,total:this.total,pageRange:this.pageRange},prevButtonEvents:{click:t=>{t.preventDefault(),this.previousPage()}},nextButtonEvents:{click:t=>{t.preventDefault(),this.nextPage()}},pageButtonEvents:t=>({click:r=>{r.preventDefault(),this.selectPage(t)}})})}}},props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},showDisabled:{type:Boolean,default:!1},size:{type:String,default:"default",validator:t=>["small","default","large"].indexOf(t)!==-1},align:{type:String,default:"left",validator:t=>["left","center","right"].indexOf(t)!==-1}},methods:{onPaginationChangePage(t){this.$emit("pagination-change-page",t)}},mounted(){}},ca={class:"flex flex-col items-center"},ma={key:0,class:"text-sm text-gray-700 dark:text-gray-400"},fa={class:"font-semibold text-gray-900 dark:text-white"},ga={class:"font-semibold text-gray-900 dark:text-white"},ha={class:"font-semibold text-gray-900 dark:text-white"},ua=["tabindex"],pa=e.createElementVNode("span",{class:"sr-only"},"Previous",-1),_a=e.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1),ya=["aria-current"],ba=["tabindex"],ka=e.createElementVNode("span",{class:"sr-only"},"Next",-1),xa=e.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1);function wa(t,r,o,n,l,a){const i=e.resolveComponent("RenderlessPagination");return e.openBlock(),e.createBlock(i,{data:o.data,limit:o.limit,onPaginationChangePage:a.onPaginationChangePage},{default:e.withCtx(s=>[e.createElementVNode("div",ca,[s.computed.total>s.computed.perPage?(e.openBlock(),e.createElementBlock("span",ma,[e.createTextVNode(" Showing "),e.createElementVNode("span",fa,e.toDisplayString(s.computed.from),1),e.createTextVNode(" to "),e.createElementVNode("span",ga,e.toDisplayString(s.computed.to),1),e.createTextVNode(" of "),e.createElementVNode("span",ha,e.toDisplayString(s.computed.total),1),e.createTextVNode(" Entries ")])):e.createCommentVNode("",!0),s.computed.total>s.computed.perPage?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:1},t.$attrs,{class:["flex items-center h-8 -space-x-px text-sm",{"pagination-sm":o.size=="small","pagination-lg":o.size=="large","justify-content-center":o.align=="center","justify-content-end":o.align=="right"}]}),[s.computed.prevPageUrl||o.showDisabled?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",{disabled:!s.computed.prevPageUrl}])},[e.createElementVNode("a",e.mergeProps({class:"page-link",href:"#","aria-label":"Previous",tabindex:!s.computed.prevPageUrl&&-1},e.toHandlers(s.prevButtonEvents,!0)),[e.renderSlot(t.$slots,"prev-nav",{},()=>[pa,_a])],16,ua)],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.computed.pageRange,(d,c)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["",{active:d==s.computed.currentPage}]),key:c},[e.createElementVNode("a",e.mergeProps({class:"",href:"#"},e.toHandlers(s.pageButtonEvents(d),!0),{"aria-current":d==s.computed.currentPage?"page":null,class:d==s.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"}),e.toDisplayString(d),17,ya)],2))),128)),s.computed.nextPageUrl||o.showDisabled?(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",{disabled:!s.computed.nextPageUrl}])},[e.createElementVNode("a",e.mergeProps({class:"",href:"#","aria-label":"Next",tabindex:!s.computed.nextPageUrl&&-1},e.toHandlers(s.nextButtonEvents,!0)),[e.renderSlot(t.$slots,"next-nav",{},()=>[ka,xa])],16,ba)],2)):e.createCommentVNode("",!0)],16)):e.createCommentVNode("",!0)])]),_:3},8,["data","limit","onPaginationChangePage"])}const me=k(da,[["render",wa]]),Ea={components:{TailwindPagination:me},props:{data:Array,columns:Array,get_item_url:String,xprops:Object,refreshData:Boolean},data(){return{isMounted:!1,limit:5,showDisabled:!1,size:"default",align:"left",search:"",isDropdownOpen:!1,itemLists:[],tableData:[],sortField:this.columns[0].field_name,sortOrder:"asc",pageOptions:[5,10,20,50],perPage:5,page:1}},computed:{filteredData(){const t=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(n=>n.toString().toLowerCase().includes(t)))}},methods:{forDynCompIs(t){return typeof t=="object"?t:null},GetItemLists(t=1){this.page=t;const r={sort:this.sortField,order:this.sortOrder,s:this.search,limit:this.perPage,page:this.page};axios.get(this.xprops.route_get_data,{params:r}).then(o=>{this.itemLists=o.data}).catch(o=>{console.error(o)})},updateSortColumn(t,r){r&&(t===this.sortField?this.sortOrder=this.sortOrder==="asc"?"desc":"asc":(this.sortField=t,this.sortOrder="asc"),this.GetItemLists(this.page))},handleSearch(){this.sortField=this.columns[0].field_name,this.sortOrder="asc",this.page=1,this.GetItemLists(this.page)}},beforeDestroy(){},mounted(){this.GetItemLists(),this.isMounted=!0},watch:{searchFilter(){this.filteredOptions.length===0?this.selected={}:this.selected=this.filteredOptions[0]},perPage(t){this.page=1,this.perPage=t,this.GetItemLists(this.page)},refreshData(t,r){this.isMounted&&t!==r&&this.GetItemLists()}}},Na={class:"p-2"},Va={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"},Ba={class:"flex items-center gap-2"},Ca=e.createElementVNode("span",{class:"font-medium"}," Show ",-1),Sa={style:{"margin-top":"9px"}},$a=e.createElementVNode("span",{class:"font-medium"}," Entries ",-1),Da=e.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),Oa={class:"relative"},Pa=e.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},[e.createElementVNode("svg",{class:"w-5 h-5 text-gray-500 dark:text-gray-400","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),Ta={class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},ja={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"},Ma={class:"hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400"},Aa=["onClick"],Ia={key:0,class:"ml-2"},La={key:0,class:"fa fa-arrow-up"},Fa={key:1,class:"fa fa-arrow-down"},za=["data-label"],Ga={class:"overflow-auto max-h-40"},va={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"};function Ra(t,r,o,n,l,a){const i=e.resolveComponent("dropdown"),s=e.resolveComponent("TailwindPagination");return e.openBlock(),e.createElementBlock("div",Na,[e.createElementVNode("div",Va,[e.createElementVNode("div",Ba,[Ca,e.createElementVNode("div",Sa,[e.createVNode(i,{has_cancel:!1,options:l.pageOptions,modelValue:l.perPage,"onUpdate:modelValue":r[0]||(r[0]=d=>l.perPage=d),is_required:!1,field_name:"perPage",label_name:"",default_value:5,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),$a]),Da,e.createElementVNode("div",Oa,[Pa,e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[1]||(r[1]=d=>l.search=d),onInput:r[2]||(r[2]=d=>a.handleSearch()),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",placeholder:"Search ..."},null,544),[[e.vModelText,l.search]])])]),e.createElementVNode("div",Ta,[e.createElementVNode("table",ja,[e.createElementVNode("thead",Ma,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(d,c)=>(e.openBlock(),e.createElementBlock("th",{key:c,onClick:m=>a.updateSortColumn(d.field_name,d.sortable),class:"w-full px-4 py-2 lg:w-2/12"},[e.createTextVNode(e.toDisplayString(d.field_label)+" ",1),l.sortField===d.field_name?(e.openBlock(),e.createElementBlock("span",Ia,[l.sortOrder==="asc"?(e.openBlock(),e.createElementBlock("i",La)):(e.openBlock(),e.createElementBlock("i",Fa))])):e.createCommentVNode("",!0)],8,Aa))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.itemLists.data,(d,c)=>(e.openBlock(),e.createElementBlock("tr",{key:c,class:"bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(m,g)=>(e.openBlock(),e.createElementBlock("td",{key:g,"data-label":m.field_label,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"},[e.createElementVNode("div",Ga,[m.tdComp?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.forDynCompIs(m.tdComp)),{key:0,row:d,field:m.field_name,xprops:o.xprops,tdProps:m.tdProps,onDeleteAction:r[3]||(r[3]=u=>a.GetItemLists())},null,40,["row","field","xprops","tdProps"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(d[m.field_name]),1)],64))])],8,za))),128))]))),128))])])]),e.createElementVNode("div",va,[e.createVNode(s,{class:"mt-3 mb-0",data:l.itemLists,limit:l.limit,size:l.size,align:l.align,onPaginationChangePage:a.GetItemLists},null,8,["data","limit","size","align","onPaginationChangePage"])])])}const Ua=k(Ea,[["render",Ra]]),qa={components:{},props:{data:Array,columns:Array},data(){return{showNoOfEntries:[1,2,3,10,20,30,40],search:"",isDropdownOpen:!1,sortKey:"",sortOrder:1,currentPage:1,itemsPerPage:10,jumpToPage:"",maxDisplayedPages:10}},computed:{filteredData(){const t=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(n=>n!=null&&n.toString().toLowerCase().includes(t)))},totalPages(){return Math.ceil(this.filteredData.length/this.itemsPerPage)},paginatedData(){const t=(this.currentPage-1)*this.itemsPerPage,r=t+this.itemsPerPage;return this.filteredData.slice(t,r)},displayedPageNumbers(){let t=Math.max(this.currentPage-Math.floor(this.maxDisplayedPages/2),1),r=t+this.maxDisplayedPages-1;return r>this.totalPages&&(r=this.totalPages,t=Math.max(r-this.maxDisplayedPages+1,1)),Array.from({length:r-t+1},(o,n)=>t+n)},firstItemIndex(){return this.itemsPerPage*(this.currentPage-1)+1},lastItemIndex(){const t=this.itemsPerPage*this.currentPage;return t>this.filteredData.length?this.filteredData.length:t}},methods:{handleItemsPerPageChange(t){this.itemsPerPage=t},goToPage(t){t>=1&&t<=this.totalPages&&(this.currentPage=t)},sort(t){t===this.sortKey?this.sortOrder*=-1:(this.sortKey=t,this.sortOrder=1)},sortData(t){return this.sortKey?t.slice().sort((r,o)=>(r[this.sortKey]<o[this.sortKey]?-1:1)*this.sortOrder):t},previousPage(){this.currentPage>1&&this.currentPage--},nextPage(){this.currentPage<this.totalPages&&this.currentPage++},firstPage(){this.currentPage=1},lastPage(){this.currentPage=this.totalPages},goToPage(t){t>=1&&t<=this.totalPages&&(this.currentPage=t)},onJumpToPageChange(){const t=parseInt(this.jumpToPage);t>=1&&t<=this.totalPages&&(this.jumpToPage=t)},jumpToPageButton(){this.jumpToPage>=1&&this.jumpToPage<=this.totalPages&&(this.currentPage=this.jumpToPage)},closeBoxOnbodyClick(){event.target.closest(".main_box_close")||(this.isDropdownOpen=!1)}},beforeDestroy(){document.body.removeEventListener("click",this.closeBoxOnbodyClick)},mounted(){document.body.addEventListener("click",this.closeBoxOnbodyClick)}},Ha={class:"p-2"},Za={class:"flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0"},Ka={class:"flex items-center gap-2"},Wa=e.createElementVNode("span",{class:"font-medium"}," Show ",-1),Xa={style:{"margin-top":"9px"}},Ya=e.createElementVNode("span",{class:"font-medium"}," Entries ",-1),Ja=e.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),Qa={class:"relative"},el=e.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},[e.createElementVNode("svg",{class:"w-5 h-5 text-gray-500 dark:text-gray-400","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),tl={class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},rl={class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark"},ol={class:"hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400"},nl=["onClick"],al={key:0,class:"ml-2"},ll=["data-label"],sl=["innerHTML"],il={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"},dl={class:"flex justify-between flex-1 sm:hidden"},cl=["disabled"],ml=["disabled"],fl={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"},gl={class:"text-sm text-gray-700 dark:text-gray-400"},hl={class:"font-medium"},ul={class:"font-medium"},pl={class:"font-medium"},_l={"aria-label":"Page navigation"},yl={class:"flex items-center h-8 -space-x-px text-sm"},bl=["disabled"],kl=[e.createElementVNode("span",{class:"sr-only"},"Previous",-1),e.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1)],xl=["onClick"],wl=["onClick"],El=["disabled"],Nl=[e.createElementVNode("span",{class:"sr-only"},"Next",-1),e.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1)];function Vl(t,r,o,n,l,a){const i=e.resolveComponent("dropdown");return e.openBlock(),e.createElementBlock("div",Ha,[e.createElementVNode("div",Za,[e.createElementVNode("div",Ka,[Wa,e.createElementVNode("div",Xa,[e.createVNode(i,{has_cancel:!1,options:l.showNoOfEntries,modelValue:l.itemsPerPage,"onUpdate:modelValue":r[0]||(r[0]=s=>l.itemsPerPage=s),is_required:!1,field_name:"NoOfEntries",label_name:"",default_value:"10",show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),Ya]),Ja,e.createElementVNode("div",Qa,[el,e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[1]||(r[1]=s=>l.search=s),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",placeholder:"Search ..."},null,512),[[e.vModelText,l.search]])])]),e.createElementVNode("div",tl,[e.createElementVNode("table",rl,[e.createElementVNode("thead",ol,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(s,d)=>(e.openBlock(),e.createElementBlock("th",{key:d,onClick:c=>a.sort(s),class:"w-full px-4 py-2 lg:w-2/12"},[e.createTextVNode(e.toDisplayString(s)+" ",1),l.sortKey===s?(e.openBlock(),e.createElementBlock("span",al,e.toDisplayString(l.sortOrder===1?"▲":"▼"),1)):e.createCommentVNode("",!0)],8,nl))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.paginatedData,(s,d)=>(e.openBlock(),e.createElementBlock("tr",{key:d,class:"bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(c,m)=>(e.openBlock(),e.createElementBlock("td",{key:m,"data-label":c,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"},[e.createElementVNode("p",{class:"text-pretty",innerHTML:s[m]},null,8,sl)],8,ll))),128))]))),128))])])]),e.createElementVNode("div",il,[e.createElementVNode("div",dl,[e.createElementVNode("a",{href:"#",onClick:r[2]||(r[2]=(...s)=>a.previousPage&&a.previousPage(...s)),disabled:l.currentPage===1,class:"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"},"Previous",8,cl),e.createElementVNode("a",{href:"#",onClick:r[3]||(r[3]=(...s)=>a.nextPage&&a.nextPage(...s)),disabled:l.currentPage===a.totalPages,class:"relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"},"Next",8,ml)]),e.createElementVNode("div",fl,[e.createElementVNode("div",null,[e.createElementVNode("p",gl,[e.createTextVNode(" Showing "),e.createElementVNode("span",hl,e.toDisplayString(a.firstItemIndex),1),e.createTextVNode(" to "),e.createElementVNode("span",ul,e.toDisplayString(a.lastItemIndex),1),e.createTextVNode(" of "),e.createElementVNode("span",pl,e.toDisplayString(a.filteredData.length),1),e.createTextVNode(" entries ")])]),e.createElementVNode("div",null,[e.createElementVNode("nav",_l,[e.createElementVNode("ul",yl,[e.createElementVNode("li",null,[e.createElementVNode("a",{href:"#",onClick:r[4]||(r[4]=(...s)=>a.previousPage&&a.previousPage(...s)),disabled:l.currentPage===1,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"},kl,8,bl)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.displayedPageNumbers,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[e.createElementVNode("li",null,[l.currentPage!==s?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:d=>a.goToPage(s),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"},e.toDisplayString(s),9,xl)):e.createCommentVNode("",!0)]),e.createElementVNode("li",null,[l.currentPage===s?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:d=>a.goToPage(s),"aria-current":"page",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"},e.toDisplayString(s),9,wl)):e.createCommentVNode("",!0)])],64))),128)),e.createElementVNode("li",null,[e.createElementVNode("a",{href:"#",onClick:r[5]||(r[5]=(...s)=>a.nextPage&&a.nextPage(...s)),disabled:l.currentPage===a.totalPages,class:"flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"},Nl,8,El)])])])])])])])}const Bl=k(qa,[["render",Vl]]),Cl={class:"flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",role:"alert"},Sl={key:0,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"},$l=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[e.createElementVNode("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"})],-1),e.createElementVNode("span",{class:"sr-only"},"Check icon",-1)],Dl={key:1,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"},Ol=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[e.createElementVNode("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"})],-1),e.createElementVNode("span",{class:"sr-only"},"Error icon",-1)],Pl={key:2,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"},Tl=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[e.createElementVNode("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"})],-1),e.createElementVNode("span",{class:"sr-only"},"Warning icon",-1)],jl={class:"ml-3 text-sm font-normal"},Ml=[e.createElementVNode("span",{class:"sr-only"},"Close",-1),e.createElementVNode("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1)],Al={__name:"ToastListItem",props:{message:String,duration:{type:Number,default:2e3},type:{type:String,default:"success"}},emits:["remove"],setup(t,{emit:r}){const o=t;e.onMounted(()=>{setTimeout(()=>n("remove"),o.duration)});const n=r;return(l,a)=>(e.openBlock(),e.createElementBlock("div",Cl,[o.type==="success"?(e.openBlock(),e.createElementBlock("div",Sl,$l)):e.createCommentVNode("",!0),o.type==="error"?(e.openBlock(),e.createElementBlock("div",Dl,Ol)):e.createCommentVNode("",!0),o.type==="warning"?(e.openBlock(),e.createElementBlock("div",Pl,Tl)):e.createCommentVNode("",!0),e.createElementVNode("div",jl,e.toDisplayString(o.message),1),e.createElementVNode("button",{onClick:a[0]||(a[0]=i=>n("remove")),type:"button",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","data-dismiss-target":"#toast-default","aria-label":"Close"},Ml)]))}},G=e.reactive({items:[]}),v={state:G,methods:{add(t){G.items.unshift({key:Symbol(),message:t.message,type:t.type,duration:t.duration})},remove(t){G.items.splice(t,1)}}},Il={__name:"GlToastList",setup(t){function r(o){v.methods.remove(o)}return(o,n)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{tag:"div","enter-from-class":"translate-x-full opacity-0","enter-active-class":"duration-500","leave-active-class":"duration-500","leave-to-class":"translate-x-full opacity-0",class:"fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(v).state.items,(l,a)=>(e.openBlock(),e.createBlock(Al,{key:l.key,message:l.message,type:l.type,duration:l.duration,onRemove:i=>r(a)},null,8,["message","type","duration","onRemove"]))),128))]),_:1}))}},Ll={key:0,class:"flex justify-center"},Fl=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[e.createElementVNode("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"})],-1)],zl={class:"absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600"},Gl={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},vl={key:0},Rl=["href"],Ul=e.createElementVNode("i",{class:"mr-2 fa-solid fa-list-ul opacity-80"},null,-1),ql={key:1},Hl=e.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),Zl={__name:"DatatableAction",props:{field:{type:String,default:""},route_url:{type:String,default:""},row:{type:[Array,Object],default:[]},xprops:{type:Object,default:{}},tdProps:{type:Object,default:{}}},emits:["deleteAction"],setup(t,{emit:r}){const o=H(),n=t,l=e.ref(!1),a=e.ref(!1),i=()=>{l.value=!1},s=()=>{l.value=!0},d=()=>{a.value=!1},c=()=>{a.value=!0},m=r,g=()=>{axios.delete(`${n.xprops.route}/${n.row.id}`).then(()=>{d(),m("deleteAction"),o.commit("notification/SHOW_NOTIFICATION",{message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(u=>{console.log(u)})};return(u,b)=>{const S=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(O,{isOpen:a.value,onConfirmDelete:g,onCancelDelete:d},null,8,["isOpen"]),t.row&&u.can(`edit_${t.xprops.permission} || delete_${t.xprops.permission}`)?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ll,[e.createElementVNode("button",{onClick:s,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",type:"button"},Fl),e.withDirectives(e.createElementVNode("div",zl,[e.createElementVNode("ul",Gl,[u.can(`edit_${t.xprops.permission}`)?(e.openBlock(),e.createElementBlock("li",vl,[e.createElementVNode("a",{href:t.xprops.route+"/"+t.row.id+"/edit",class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[Ul,e.createTextVNode(" Edit")],8,Rl)])):e.createCommentVNode("",!0),u.can(`delete_${t.xprops.permission}`)?(e.openBlock(),e.createElementBlock("li",ql,[e.createElementVNode("a",{href:"#",onClick:e.withModifiers(c,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[Hl,e.createTextVNode(" Remove")])])):e.createCommentVNode("",!0)])],512),[[e.vShow,l.value]])])),[[S,i]]):e.createCommentVNode("",!0)],64)}}},Kl={key:0,class:"flex justify-center"},Wl=[e.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[e.createElementVNode("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"})],-1)],Xl={class:"absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600"},Yl={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},Jl={key:0},Ql=e.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),es={__name:"DatatableDeleteAction",props:{field:{type:String,default:""},route_url:{type:String,default:""},row:{type:[Array,Object],default:[]},xprops:{type:Object,default:{}},tdProps:{type:Object,default:{}}},emits:["deleteAction"],setup(t,{emit:r}){const o=H(),n=t,l=e.ref(!1),a=e.ref(!1),i=()=>{l.value=!1},s=()=>{l.value=!0},d=()=>{a.value=!1},c=()=>{a.value=!0},m=r,g=()=>{axios.delete(`${n.xprops.route}/${n.row.id}`).then(()=>{d(),m("deleteAction"),o.commit("notification/SHOW_NOTIFICATION",{message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(u=>{console.log(u)})};return(u,b)=>{const S=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(O,{isOpen:a.value,onConfirmDelete:g,onCancelDelete:d},null,8,["isOpen"]),t.row&&u.can(`delete_${t.xprops.permission}`)?e.withDirectives((e.openBlock(),e.createElementBlock("div",Kl,[e.createElementVNode("button",{onClick:s,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",type:"button"},Wl),e.withDirectives(e.createElementVNode("div",Xl,[e.createElementVNode("ul",Yl,[u.can(`delete_${t.xprops.permission}`)?(e.openBlock(),e.createElementBlock("li",Jl,[e.createElementVNode("a",{href:"#",onClick:e.withModifiers(c,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[Ql,e.createTextVNode(" Remove")])])):e.createCommentVNode("",!0)])],512),[[e.vShow,l.value]])])),[[S,i]]):e.createCommentVNode("",!0)],64)}}},ts={props:["field","row"],computed:{isArray(){return Array.isArray(this.row)},isObject(){return typeof this.row=="object"},isString(){return typeof this.row=="string"}},mounted(){console.log("row : ",this.row)}},rs=["href","title"],os=e.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1),ns={key:1,class:"m-1 d-inline-block"},as=["href","title"],ls=e.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1);function ss(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",null,[a.isArray?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.row,(i,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"m-1 d-inline-block"},[e.createElementVNode("a",{href:i,title:i,target:"_blank",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"},[os,e.createTextVNode(" Download ")],8,rs)]))),128)):a.isString?(e.openBlock(),e.createElementBlock("div",ns,[e.createElementVNode("a",{href:o.row,title:o.row,target:"_blank",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"},[ls,e.createTextVNode(" Download ")],8,as)])):e.createCommentVNode("",!0)])}const is=k(ts,[["render",ss]]),ds={props:["field","row"],computed:{isArray(){return Array.isArray(this.row[this.field])},isObject(){return typeof this.row[this.field]=="object"}}},cs=["href","title"],ms=e.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1),fs={key:1,class:"m-1 d-inline-block"},gs=["href","title"],hs=e.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),e.createElementVNode("path",{"fill-rule":"evenodd",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","clip-rule":"evenodd"})],-1);function us(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",null,[a.isArray?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.row[o.field],i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"m-1 d-inline-block"},[e.createElementVNode("a",{href:i.url,title:i.name,target:"_blank",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"},[ms,e.createTextVNode(" Download ")],8,cs)]))),128)):a.isObject?(e.openBlock(),e.createElementBlock("div",fs,[e.createElementVNode("a",{href:o.row[o.field].url,title:o.row[o.field].name,target:"_blank",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"},[hs,e.createTextVNode(" Download ")],8,gs)])):e.createCommentVNode("",!0)])}const ps=k(ds,[["render",us]]),_s={props:["field","row","tdProps"]},ys={key:0},bs=["innerHTML"];function ks(t,r,o,n,l,a){return o.row[o.field]?(e.openBlock(),e.createElementBlock("div",ys,[e.createElementVNode("div",{class:"w-full",innerHTML:o.row[o.field]},null,8,bs)])):e.createCommentVNode("",!0)}const xs=k(_s,[["render",ks]]),ws={props:["field","row","tdProps"],computed:{entry(){const[t,r]=this.field.split(".");return e.markRaw({key:t,field:r})},isArray(){return Array.isArray(this.row[this.entry.key])},isObject(){return typeof this.row[this.entry.key]=="object"}}},Es={class:"flex flex-wrap gap-2"},Ns={key:1,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"};function Vs(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",Es,[a.isArray?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.row[a.entry.key],(i,s)=>(e.openBlock(),e.createElementBlock("span",{key:s,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"},e.toDisplayString(i[a.entry.field]),1))),128)):a.isObject?(e.openBlock(),e.createElementBlock("span",Ns,e.toDisplayString(o.row[a.entry.key][a.entry.field]),1)):e.createCommentVNode("",!0)])}const Bs=k(ws,[["render",Vs]]),Cs={props:["field","row","tdProps"]},Ss={key:0},$s={class:"m-1 d-inline-block"},Ds=["href","title"],Os=["src","alt","title"];function Ps(t,r,o,n,l,a){return o.row[o.field]?(e.openBlock(),e.createElementBlock("div",Ss,[e.createElementVNode("div",$s,[e.createElementVNode("a",{href:o.row[o.field].url,title:o.row[o.field].name,target:"_blank"},[e.createElementVNode("img",{src:o.row[o.field].thumbnail,alt:o.row[o.field].name,title:o.row[o.field].name},null,8,Os)],8,Ds)])])):e.createCommentVNode("",!0)}const Ts=k(Cs,[["render",Ps],["__scopeId","data-v-3a28c02c"]]),js={props:["field","row","tdProps"],computed:{isActive(){return this.row[this.field]===1}}},Ms={class:"flex flex-wrap gap-2"},As={key:0,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"},Is=e.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Ls={key:1,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"},Fs=e.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1);function zs(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",Ms,[a.isActive?(e.openBlock(),e.createElementBlock("span",As,[Is,e.createTextVNode(" Active ")])):a.isActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Ls,[Fs,e.createTextVNode(" Inactive ")]))])}const Gs=k(js,[["render",zs]]),vs={props:["field","row","tdProps"],computed:{hasLabelColor(t){const r=this.tdProps.status_general_labels_color.find(o=>o.label===this.row[this.field]);return r?r.class:""}}},Rs={class:"flex flex-wrap gap-2"},Us={key:0,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"},qs=e.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Hs={key:1,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"},Zs=e.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),Ks={key:2,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"},Ws=e.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1),Xs={key:3,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"},Ys=e.createElementVNode("span",{class:"w-2 h-2 bg-blue-500 rounded-full me-1"},null,-1);function Js(t,r,o,n,l,a){return e.openBlock(),e.createElementBlock("div",Rs,[a.hasLabelColor=="green"?(e.openBlock(),e.createElementBlock("span",Us,[qs,e.createTextVNode(" "+e.toDisplayString(this.row[this.field]),1)])):e.createCommentVNode("",!0),a.hasLabelColor=="red"?(e.openBlock(),e.createElementBlock("span",Hs,[Zs,e.createTextVNode(" "+e.toDisplayString(this.row[this.field]),1)])):e.createCommentVNode("",!0),a.hasLabelColor=="yellow"?(e.openBlock(),e.createElementBlock("span",Ks,[Ws,e.createTextVNode(" "+e.toDisplayString(this.row[this.field]),1)])):e.createCommentVNode("",!0),a.hasLabelColor=="default"?(e.openBlock(),e.createElementBlock("span",Xs,[Ys,e.createTextVNode(" "+e.toDisplayString(this.row[this.field]),1)])):e.createCommentVNode("",!0)])}const Qs=k(vs,[["render",Js]]),ei={props:["isOpen","title","button_text"],methods:{confirmAction(){this.$emit("confirm-action")},cancelAction(){this.$emit("cancel-action")}}},ti={key:0,class:"fixed inset-0 z-50 overflow-y-auto",role:"dialog","aria-modal":"true"},ri={class:"flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0"},oi=e.createElementVNode("div",{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75","aria-hidden":"true"},null,-1),ni=e.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),ai={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"},li={class:"px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4"},si={class:"sm:flex sm:items-start"},ii={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},di={class:"text-lg font-medium leading-6 text-gray-900"},ci={class:"mt-2"},mi={class:"px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse"};function fi(t,r,o,n,l,a){return o.isOpen?(e.openBlock(),e.createElementBlock("div",ti,[e.createElementVNode("div",ri,[oi,ni,e.createElementVNode("div",ai,[e.createElementVNode("div",li,[e.createElementVNode("div",si,[e.createElementVNode("div",ii,[e.createElementVNode("h3",di,e.toDisplayString(o.title),1),e.createElementVNode("div",ci,[e.renderSlot(t.$slots,"default")])])])]),e.createElementVNode("div",mi,[e.createElementVNode("button",{onClick:r[0]||(r[0]=(...i)=>a.confirmAction&&a.confirmAction(...i)),type:"button",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"},e.toDisplayString(o.button_text),1),e.createElementVNode("button",{onClick:r[1]||(r[1]=(...i)=>a.cancelAction&&a.cancelAction(...i)),type:"button",class:"inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"}," Cancel ")])])])])):e.createCommentVNode("",!0)}const gi=k(ei,[["render",fi]]);h.GlButton=ur,h.GlCard=Ut,h.GlConfirmationModal=gi,h.GlDataTable=Bl,h.GlDataTableServerSide=Ua,h.GlDatatableAction=Zl,h.GlDatatableDeleteAction=es,h.GlDatatableFileDownload=is,h.GlDatatableFiles=ps,h.GlDatatableHtml=xs,h.GlDatatableList=Bs,h.GlDatatablePicture=Ts,h.GlDatatableStatus=Gs,h.GlDatatableStatusGeneral=Qs,h.GlDeleteConfirmationModal=O,h.GlDropdown=ea,h.GlFilesUpload=Bt,h.GlLanguageSelector=Ft,h.GlModal=yn,h.GlMultiItemSlide=cn,h.GlMultiSelectDropdown=mr,h.GlNotify=Tt,h.GlTab=_o,h.GlTabsWrapper=go,h.GlTailwindPagination=me,h.GlTextInput=ro,h.GlTextTranslate=Kr,h.GlTextarea=ia,h.GlTextareaTranslate=Br,h.GlTinymceTranslate=Ir,h.GlToast=v,h.GlToastList=Il,h.GlToggleBox=On,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|