golden-logic-ui 1.2.21 → 1.2.23

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.
Files changed (68) hide show
  1. package/dist/ConfirmationModal-i3ekouBw.js +75 -0
  2. package/dist/DatatableAction-D-Qdjj2W.js +113 -0
  3. package/dist/DatatableCommand-BoU5cYJg.js +18 -0
  4. package/dist/DatatableConvertCronToHuman-Coiaa-wa.js +82 -0
  5. package/dist/DatatableDate-DtEktp_Z.js +20 -0
  6. package/dist/DatatableDateTime-PEXV-bY7.js +22 -0
  7. package/dist/DatatableDeleteAction-BQ6MyhV6.js +104 -0
  8. package/dist/DatatableDeleteEditAction-Cx324OUt.js +125 -0
  9. package/dist/DatatableFileDownload-BxP2_lpQ.js +87 -0
  10. package/dist/DatatableFiles-BROH3vBH.js +80 -0
  11. package/dist/DatatableHtml-ChZzeapg.js +17 -0
  12. package/dist/DatatableList-BSVI22pu.js +35 -0
  13. package/dist/DatatableListNested-BWEqWRCc.js +37 -0
  14. package/dist/DatatablePicture-DaWD4uIX.js +26 -0
  15. package/dist/DatatablePictures-xxeghKp3.js +39 -0
  16. package/dist/DatatableStatus-Dx60sa7s.js +31 -0
  17. package/dist/DatatableStatusGeneral-UOub65UY.js +59 -0
  18. package/dist/DatatableStatusServer-Dcq11U5_.js +37 -0
  19. package/dist/DatatableStatusSpecficColor-BYUuGgEb.js +64 -0
  20. package/dist/DatatableStatusTextLabelGeneral-J4MytOnh.js +83 -0
  21. package/dist/DeleteConfirmationModal-CQ07_qiL.js +96 -0
  22. package/dist/DynamicConfirmation-rEhA3jCe.js +115 -0
  23. package/dist/FilesUpload-JKyOru3A.js +300 -0
  24. package/dist/GLButton-ByIDh6vq.js +118 -0
  25. package/dist/GLDataTable-Bixwkdr4.js +278 -0
  26. package/dist/GLDataTableServerSide-Ra5AqDGB.js +16336 -0
  27. package/dist/GLTextarea-j7XXWI7A.js +110 -0
  28. package/dist/GlAccordion-BIAfvctc.js +91 -0
  29. package/dist/GlAccordionsWrapper-DsdunDzi.js +31 -0
  30. package/dist/GlCard-BVXmTv6q.js +37 -0
  31. package/dist/GlCodeCopy-C068yRcM.js +86 -0
  32. package/dist/GlCodeMirror-Ow8TJYSN.js +161 -0
  33. package/dist/GlCodeMirrorTranslate-CFmoM7d6.js +2068 -0
  34. package/dist/GlDataTableComponent-CSsMcDcX.js +366 -0
  35. package/dist/GlDataTableServerSideGroupBy-cG4BhXOA.js +260 -0
  36. package/dist/GlDateRangePicker-BWAEfZTB.js +124 -0
  37. package/dist/GlDropdown-B_zVkmxO.js +414 -0
  38. package/dist/GlLanguageSelector-DmWuIxzK.js +68 -0
  39. package/dist/GlModal-AMtSRssu.js +123 -0
  40. package/dist/GlModalShow-BzbcLu51.js +120 -0
  41. package/dist/GlModalWithoutOverflow-vR50Ulka.js +127 -0
  42. package/dist/GlMultiItemSlide-CxsiUcTr.js +409 -0
  43. package/dist/GlMultiItemSlideDynamic-BhdHrj3L.js +434 -0
  44. package/dist/GlMultiSelectDropdown-OaAC5ouZ.js +383 -0
  45. package/dist/GlTab-CUbU0yit.js +22 -0
  46. package/dist/GlTabShow-BBU3VU7O.js +21 -0
  47. package/dist/GlTabsWrapper-Dw7NAgDw.js +54 -0
  48. package/dist/GlTextCopy-CGgnIqPh.js +93 -0
  49. package/dist/GlTextInput-CoL8oZSw.js +126 -0
  50. package/dist/GlTextInputFile-BE2maeRQ.js +95 -0
  51. package/dist/GlTextInputWithText-C6fzOoYl.js +116 -0
  52. package/dist/GlTextTranslate-C3DzCK6k.js +125 -0
  53. package/dist/GlTextareaTranslate-DyU86Wf_.js +126 -0
  54. package/dist/GlTinymce-CjsbThKo.js +118 -0
  55. package/dist/GlTinymceTranslate-vp6hYqDK.js +188 -0
  56. package/dist/GlToastList-eeZ0hUJQ.js +126 -0
  57. package/dist/GlToggleBox-Dym29cx5.js +120 -0
  58. package/dist/GlToggleBoxTrueFalse-CjvcXXTw.js +112 -0
  59. package/dist/StatusConnectingConnectedDisconnected-CK5YzyQH.js +63 -0
  60. package/dist/StatusRunningSuccessFailed-CxK20462.js +41 -0
  61. package/dist/TailwindPagination-Dz89aS_l.js +276 -0
  62. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  63. package/dist/golden-logic-ui.css +1 -1
  64. package/dist/golden-logic-ui.js +217 -94352
  65. package/dist/golden-logic-ui.umd.cjs +94 -94
  66. package/dist/index-B4V16SEr.js +15668 -0
  67. package/dist/plugin-D6yBFU6i.js +53226 -0
  68. package/package.json +1 -1
@@ -0,0 +1,123 @@
1
+ import { computed as w, watch as p, createElementBlock as u, createCommentVNode as g, openBlock as c, normalizeClass as d, createElementVNode as e, withDirectives as m, toDisplayString as h, createStaticVNode as k, renderSlot as v, vShow as f } from "vue";
2
+ const _ = { class: "pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-hidden bg-white border rounded-lg border-stroke dark:border-strokeDark dark:bg-boxDark" }, C = { class: "flex items-center justify-between shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, M = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, B = {
3
+ key: 0,
4
+ role: "status",
5
+ class: "max-w-full p-4 border border-gray-200 rounded-sm shadow-sm animate-pulse md:p-6 dark:border-gray-700"
6
+ }, S = { class: "flex flex-wrap items-center justify-end shrink-0 p-4 border-t-2 rounded-b-md border-neutral-100 dark:border-gray-600" }, z = {
7
+ __name: "GlModal",
8
+ props: {
9
+ language: {
10
+ type: Object,
11
+ required: !1,
12
+ default: () => {
13
+ }
14
+ },
15
+ is_open: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ hide_model_footer: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ is_loading: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ has_large_z_index: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ title: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ max_width: {
36
+ type: String,
37
+ default: "max-w-2xl"
38
+ },
39
+ bodyClass: {
40
+ type: String,
41
+ default: "p-4"
42
+ }
43
+ },
44
+ emits: ["closeModal"],
45
+ setup(t, { emit: y }) {
46
+ const l = t, b = y, x = () => {
47
+ document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
48
+ }, s = () => {
49
+ document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
50
+ }, n = () => {
51
+ b("closeModal"), s();
52
+ }, o = w(() => l.is_loading);
53
+ return p(
54
+ () => l.is_open,
55
+ (r, a) => {
56
+ r ? x() : s();
57
+ },
58
+ { immediate: !0, deep: !0 }
59
+ ), (r, a) => {
60
+ var i;
61
+ return t.is_open ? (c(), u("div", {
62
+ key: 0,
63
+ class: d(["fixed left-0 top-13 h-full w-full overflow-y-auto overflow-x-hidden outline-hidden inset-0 bg-black/80!", t.has_large_z_index ? "z-9999" : "z-1055"]),
64
+ tabindex: "-1"
65
+ }, [
66
+ e("div", {
67
+ class: d(["pointer-events-none relative h-[calc(100%-1rem)] w-auto translate-y-[-50px] transition-all duration-300 ease-in-out min-[576px]:mx-auto mt-7 min-[576px]:h-[calc(100%-3.5rem)]", t.max_width])
68
+ }, [
69
+ e("div", _, [
70
+ e("div", C, [
71
+ e("h5", M, h(t.title), 1),
72
+ e("button", {
73
+ type: "button",
74
+ 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-hidden dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
75
+ onClick: n,
76
+ "aria-label": "Close"
77
+ }, a[0] || (a[0] = [
78
+ e("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
79
+ e("svg", {
80
+ xmlns: "http://www.w3.org/2000/svg",
81
+ fill: "currentColor",
82
+ viewBox: "0 0 24 24",
83
+ "stroke-width": "1.5",
84
+ stroke: "currentColor"
85
+ }, [
86
+ e("path", {
87
+ "stroke-linecap": "round",
88
+ "stroke-linejoin": "round",
89
+ d: "M6 18L18 6M6 6l12 12"
90
+ })
91
+ ])
92
+ ], -1)
93
+ ]))
94
+ ]),
95
+ o.value ? (c(), u("div", B, a[1] || (a[1] = [
96
+ k('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded-sm dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10 text-gray-200 me-3 dark:text-gray-700" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z"></path></svg><div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2"></div><div class="w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div></div></div><span class="sr-only">Loading...</span>', 7)
97
+ ]))) : g("", !0),
98
+ m(e("div", {
99
+ class: d(["relative overflow-y-auto gl_modal_body", t.bodyClass])
100
+ }, [
101
+ v(r.$slots, "body")
102
+ ], 2), [
103
+ [f, !o.value]
104
+ ]),
105
+ m(e("div", S, [
106
+ v(r.$slots, "buttons"),
107
+ e("button", {
108
+ onClick: n,
109
+ type: "button",
110
+ 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-hidden 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"
111
+ }, h(((i = t.language) == null ? void 0 : i.close) ?? "Close"), 1)
112
+ ], 512), [
113
+ [f, !o.value && !t.hide_model_footer]
114
+ ])
115
+ ])
116
+ ], 2)
117
+ ], 2)) : g("", !0);
118
+ };
119
+ }
120
+ };
121
+ export {
122
+ z as default
123
+ };
@@ -0,0 +1,120 @@
1
+ import { watch as y, withDirectives as o, createElementBlock as u, openBlock as g, normalizeClass as d, createElementVNode as e, createCommentVNode as x, toDisplayString as c, createStaticVNode as w, renderSlot as m, vShow as l } from "vue";
2
+ const k = { class: "pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-hidden bg-white border rounded-lg border-stroke dark:border-strokeDark dark:bg-boxDark" }, p = { class: "flex items-center justify-between shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, C = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, M = {
3
+ key: 0,
4
+ role: "status",
5
+ class: "max-w-full p-4 border border-gray-200 rounded-sm shadow-sm animate-pulse md:p-6 dark:border-gray-700"
6
+ }, S = { class: "flex flex-wrap items-center justify-end shrink-0 p-4 border-t-2 rounded-b-md border-neutral-100 dark:border-gray-600" }, B = {
7
+ __name: "GlModalShow",
8
+ props: {
9
+ language: {
10
+ type: Object,
11
+ required: !1,
12
+ default: () => {
13
+ }
14
+ },
15
+ is_open: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ is_loading: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ has_large_z_index: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ title: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ max_width: {
32
+ type: String,
33
+ default: "max-w-2xl"
34
+ },
35
+ bodyClass: {
36
+ type: String,
37
+ default: "p-4"
38
+ }
39
+ },
40
+ emits: ["closeModal"],
41
+ setup(t, { emit: h }) {
42
+ const v = t, b = h, f = () => {
43
+ document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
44
+ }, s = () => {
45
+ document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
46
+ }, n = () => {
47
+ b("closeModal"), s();
48
+ };
49
+ return y(
50
+ () => v.is_open,
51
+ (r, a) => {
52
+ r ? f() : s();
53
+ },
54
+ { immediate: !0, deep: !0 }
55
+ ), (r, a) => {
56
+ var i;
57
+ return o((g(), u("div", {
58
+ class: d(["fixed left-0 top-13 h-full w-full overflow-y-auto overflow-x-hidden outline-hidden inset-0 bg-black/80!", t.has_large_z_index ? "z-9999" : "z-1055"]),
59
+ tabindex: "-1"
60
+ }, [
61
+ e("div", {
62
+ class: d(["pointer-events-none relative h-[calc(100%-1rem)] w-auto translate-y-[-50px] transition-all duration-300 ease-in-out min-[576px]:mx-auto mt-7 min-[576px]:h-[calc(100%-3.5rem)]", t.max_width])
63
+ }, [
64
+ e("div", k, [
65
+ e("div", p, [
66
+ e("h5", C, c(t.title), 1),
67
+ e("button", {
68
+ type: "button",
69
+ 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-hidden dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
70
+ onClick: n,
71
+ "aria-label": "Close"
72
+ }, a[0] || (a[0] = [
73
+ e("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
74
+ e("svg", {
75
+ xmlns: "http://www.w3.org/2000/svg",
76
+ fill: "currentColor",
77
+ viewBox: "0 0 24 24",
78
+ "stroke-width": "1.5",
79
+ stroke: "currentColor"
80
+ }, [
81
+ e("path", {
82
+ "stroke-linecap": "round",
83
+ "stroke-linejoin": "round",
84
+ d: "M6 18L18 6M6 6l12 12"
85
+ })
86
+ ])
87
+ ], -1)
88
+ ]))
89
+ ]),
90
+ t.is_loading ? (g(), u("div", M, a[1] || (a[1] = [
91
+ w('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded-sm dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10 text-gray-200 me-3 dark:text-gray-700" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z"></path></svg><div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2"></div><div class="w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div></div></div><span class="sr-only">Loading...</span>', 7)
92
+ ]))) : x("", !0),
93
+ o(e("div", {
94
+ class: d(["relative overflow-y-auto gl_modal_body", t.bodyClass])
95
+ }, [
96
+ m(r.$slots, "body")
97
+ ], 2), [
98
+ [l, !t.is_loading]
99
+ ]),
100
+ o(e("div", S, [
101
+ m(r.$slots, "buttons"),
102
+ e("button", {
103
+ onClick: n,
104
+ type: "button",
105
+ 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-hidden 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"
106
+ }, c(((i = t.language) == null ? void 0 : i.close) ?? "Close"), 1)
107
+ ], 512), [
108
+ [l, !t.is_loading]
109
+ ])
110
+ ])
111
+ ], 2)
112
+ ], 2)), [
113
+ [l, t.is_open]
114
+ ]);
115
+ };
116
+ }
117
+ };
118
+ export {
119
+ B as default
120
+ };
@@ -0,0 +1,127 @@
1
+ import { watch as v, onBeforeUnmount as b, createElementBlock as o, createCommentVNode as d, openBlock as l, normalizeClass as n, createElementVNode as t, withDirectives as u, toDisplayString as x, createStaticVNode as w, renderSlot as g, vShow as c } from "vue";
2
+ const k = { class: "relative flex flex-col w-full text-current bg-white border rounded-lg outline-hidden pointer-events-auto shadow-4 border-stroke dark:border-strokeDark dark:bg-boxDark" }, p = {
3
+ key: 0,
4
+ class: "flex items-center justify-between shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600"
5
+ }, C = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, B = {
6
+ key: 1,
7
+ role: "status",
8
+ class: "max-w-full p-4 border border-gray-200 rounded-sm shadow-sm animate-pulse md:p-6 dark:border-gray-700"
9
+ }, _ = {
10
+ key: 2,
11
+ class: "flex flex-wrap items-center justify-end shrink-0 p-4 border-t-2 rounded-b-md border-neutral-100 dark:border-gray-600"
12
+ }, S = {
13
+ __name: "GlModalWithoutOverflow",
14
+ props: {
15
+ is_open: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ is_loading: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ has_large_z_index: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ has_header: {
28
+ type: Boolean,
29
+ default: !0
30
+ },
31
+ has_footer: {
32
+ type: Boolean,
33
+ default: !0
34
+ },
35
+ title: {
36
+ type: String,
37
+ default: ""
38
+ },
39
+ max_width: {
40
+ type: String,
41
+ default: "max-w-2xl"
42
+ },
43
+ bodyClass: {
44
+ type: String,
45
+ default: "p-4"
46
+ }
47
+ },
48
+ emits: ["closeModal"],
49
+ setup(e, { emit: h }) {
50
+ const m = e, y = h, f = () => {
51
+ document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
52
+ }, s = () => {
53
+ document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
54
+ }, i = () => {
55
+ y("closeModal"), s();
56
+ };
57
+ return v(
58
+ () => m.is_open,
59
+ (r, a) => {
60
+ r ? f() : s();
61
+ },
62
+ { immediate: !0, deep: !0 }
63
+ ), b(() => {
64
+ s();
65
+ }), (r, a) => e.is_open ? (l(), o("div", {
66
+ key: 0,
67
+ class: n(["fixed left-0 top-13 h-full w-full overflow-y-auto outline-hidden inset-0 bg-black/80!", e.has_large_z_index ? "z-9999" : "z-1055"]),
68
+ tabindex: "-1",
69
+ "aria-hidden": "true"
70
+ }, [
71
+ t("div", {
72
+ class: n(["pointer-events-none relative w-auto translate-y-[-50px] transition-all duration-300 ease-in-out min-[576px]:mx-auto mt-7", e.max_width])
73
+ }, [
74
+ t("div", k, [
75
+ e.has_header ? (l(), o("div", p, [
76
+ t("h5", C, x(e.title), 1),
77
+ t("button", {
78
+ type: "button",
79
+ 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-hidden dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
80
+ onClick: i,
81
+ "aria-label": "Close"
82
+ }, a[0] || (a[0] = [
83
+ t("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
84
+ t("svg", {
85
+ xmlns: "http://www.w3.org/2000/svg",
86
+ fill: "currentColor",
87
+ viewBox: "0 0 24 24",
88
+ "stroke-width": "1.5",
89
+ stroke: "currentColor"
90
+ }, [
91
+ t("path", {
92
+ "stroke-linecap": "round",
93
+ "stroke-linejoin": "round",
94
+ d: "M6 18L18 6M6 6l12 12"
95
+ })
96
+ ])
97
+ ], -1)
98
+ ]))
99
+ ])) : d("", !0),
100
+ e.is_loading ? (l(), o("div", B, a[1] || (a[1] = [
101
+ w('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded-sm dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10 text-gray-200 me-3 dark:text-gray-700" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z"></path></svg><div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2"></div><div class="w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div></div></div><span class="sr-only">Loading...</span>', 7)
102
+ ]))) : d("", !0),
103
+ u(t("div", {
104
+ class: n(["relative gl_modal_body", e.bodyClass])
105
+ }, [
106
+ g(r.$slots, "body")
107
+ ], 2), [
108
+ [c, !e.is_loading]
109
+ ]),
110
+ e.has_footer ? u((l(), o("div", _, [
111
+ g(r.$slots, "buttons"),
112
+ t("button", {
113
+ onClick: i,
114
+ type: "button",
115
+ 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-hidden 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"
116
+ }, " Close ")
117
+ ], 512)), [
118
+ [c, !e.is_loading]
119
+ ]) : d("", !0)
120
+ ])
121
+ ], 2)
122
+ ], 2)) : d("", !0);
123
+ }
124
+ };
125
+ export {
126
+ S as default
127
+ };