golden-logic-ui 1.3.33 → 1.3.34

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.
@@ -1,5 +1,5 @@
1
1
  import L from "../../LaravelVuePagination/TailwindPagination.vue.js";
2
- import { resolveComponent as y, createElementBlock as i, openBlock as l, createElementVNode as e, toDisplayString as c, createVNode as m, withDirectives as P, vModelText as C, Fragment as u, renderList as p, createCommentVNode as b, normalizeClass as D, createBlock as I, resolveDynamicComponent as j, createTextVNode as S } from "vue";
2
+ import { resolveComponent as y, createElementBlock as i, openBlock as l, createElementVNode as e, toDisplayString as p, createVNode as m, withDirectives as P, vModelText as C, Fragment as u, renderList as c, createCommentVNode as b, normalizeClass as D, createBlock as I, resolveDynamicComponent as j, createTextVNode as S } from "vue";
3
3
  /* empty css */
4
4
  import O from "../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const F = {
@@ -112,9 +112,10 @@ function ee(r, t, a, g, s, n) {
112
112
  return l(), i("div", G, [
113
113
  e("div", A, [
114
114
  e("div", T, [
115
- e("span", V, c(r.language?.show ?? "Show"), 1),
115
+ e("span", V, p(r.language?.show ?? "Show"), 1),
116
116
  e("div", B, [
117
117
  m(w, {
118
+ language: r.language,
118
119
  options_top_size: 0,
119
120
  has_cancel: !1,
120
121
  options: s.pageOptions,
@@ -125,10 +126,10 @@ function ee(r, t, a, g, s, n) {
125
126
  label_name: "",
126
127
  default_value: 5,
127
128
  show: !1,
128
- placeholder: "Please select an option"
129
- }, null, 8, ["options", "modelValue"])
129
+ placeholder: r.language?.please_select_an_option ?? "Please select an option"
130
+ }, null, 8, ["language", "options", "modelValue", "placeholder"])
130
131
  ]),
131
- e("span", z, c(r.language?.entries ?? "Entries"), 1)
132
+ e("span", z, p(r.language?.entries ?? "Entries"), 1)
132
133
  ]),
133
134
  t[5] || (t[5] = e("label", {
134
135
  for: "table-search",
@@ -151,13 +152,13 @@ function ee(r, t, a, g, s, n) {
151
152
  e("table", U, [
152
153
  e("thead", q, [
153
154
  e("tr", null, [
154
- (l(!0), i(u, null, p(a.columns, (o, f) => (l(), i("th", {
155
+ (l(!0), i(u, null, c(a.columns, (o, f) => (l(), i("th", {
155
156
  key: f,
156
157
  onClick: (h) => n.updateSortColumn(o.field_name, o.sortable),
157
158
  class: "w-full px-4 py-2 lg:w-2/12"
158
159
  }, [
159
160
  e("div", J, [
160
- e("span", null, c(o.field_label), 1),
161
+ e("span", null, p(o.field_label), 1),
161
162
  s.sortField === o.field_name ? (l(), i("span", K, t[6] || (t[6] = [
162
163
  e("svg", {
163
164
  class: "w-4 h-4",
@@ -227,19 +228,19 @@ function ee(r, t, a, g, s, n) {
227
228
  ], -1)
228
229
  ]), 8, W)
229
230
  ])) : b("", !0),
230
- s.isLoading ? b("", !0) : (l(!0), i(u, { key: 1 }, p(n.groupedItems, (o, f) => (l(), i(u, null, [
231
+ s.isLoading ? b("", !0) : (l(!0), i(u, { key: 1 }, c(n.groupedItems, (o, f) => (l(), i(u, null, [
231
232
  e("tr", X, [
232
233
  e("td", {
233
234
  colspan: a.columns.length,
234
235
  class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"
235
- }, c(f), 9, Y)
236
+ }, p(f), 9, Y)
236
237
  ]),
237
- (l(!0), i(u, null, p(o, (h, x) => (l(), i("tr", {
238
- key: x,
238
+ (l(!0), i(u, null, c(o, (h, _) => (l(), i("tr", {
239
+ key: _,
239
240
  class: "text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"
240
241
  }, [
241
- (l(!0), i(u, null, p(a.columns, (d, _) => (l(), i("td", {
242
- key: _,
242
+ (l(!0), i(u, null, c(a.columns, (d, x) => (l(), i("td", {
243
+ key: x,
243
244
  "data-label": d.field_label,
244
245
  class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[1px]! dark:border-gray-700"
245
246
  }, [
@@ -255,7 +256,7 @@ function ee(r, t, a, g, s, n) {
255
256
  onDeleteAction: t[3] || (t[3] = (k) => n.GetItemLists()),
256
257
  onEditAction: (k) => n.editAction(h)
257
258
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (l(), i(u, { key: 1 }, [
258
- S(c(h[d.field_name]), 1)
259
+ S(p(h[d.field_name]), 1)
259
260
  ], 64))
260
261
  ], 2)
261
262
  ], 8, Z))), 128))
@@ -277,7 +278,7 @@ function ee(r, t, a, g, s, n) {
277
278
  ])
278
279
  ]);
279
280
  }
280
- const le = /* @__PURE__ */ O(F, [["render", ee], ["__scopeId", "data-v-dd7a738c"]]);
281
+ const le = /* @__PURE__ */ O(F, [["render", ee], ["__scopeId", "data-v-b72ef021"]]);
281
282
  export {
282
283
  le as default
283
284
  };
@@ -1,6 +1,6 @@
1
1
  import y from "./DeleteConfirmationModal.vue.js";
2
2
  import x from "../../Stores/toast.js";
3
- import { resolveComponent as b, createElementBlock as d, openBlock as n, Fragment as m, createVNode as k, createElementVNode as s, normalizeClass as p, createCommentVNode as c, toDisplayString as u, withModifiers as h, renderList as _, normalizeStyle as v } from "vue";
3
+ import { resolveComponent as b, createElementBlock as d, openBlock as n, Fragment as g, createVNode as k, createElementVNode as a, normalizeClass as c, createCommentVNode as p, toDisplayString as u, withModifiers as _, renderList as h, normalizeStyle as v } from "vue";
4
4
  import F from "../../_virtual/_plugin-vue_export-helper.js";
5
5
  const w = {
6
6
  components: {
@@ -58,6 +58,10 @@ const w = {
58
58
  max_file_size: {
59
59
  type: Number,
60
60
  default: 0
61
+ },
62
+ language: {
63
+ type: Object,
64
+ default: () => ({})
61
65
  }
62
66
  },
63
67
  emits: ["update:modelValue", "uploaded"],
@@ -79,58 +83,58 @@ const w = {
79
83
  this.open_delete_modal = !1;
80
84
  },
81
85
  deleteAction() {
82
- axios.delete(this.route_url + "/destroyMedia/" + this.media_id).then((t) => {
86
+ axios.delete(this.route_url + "/destroyMedia/" + this.media_id).then((e) => {
83
87
  this.inintUploadFileList();
84
- let e = this.uploadFileList.findIndex(
85
- (r) => r.id === this.media_id
88
+ let t = this.uploadFileList.findIndex(
89
+ (i) => i.id === this.media_id
86
90
  );
87
- e !== -1 && this.uploadFileList.splice(e, 1), this.closeDeleteModal(), x.methods.add({
88
- message: "Item deleted successfully.",
91
+ t !== -1 && this.uploadFileList.splice(t, 1), this.closeDeleteModal(), x.methods.add({
92
+ message: this.language?.item_deleted_successfully ?? "Item deleted successfully.",
89
93
  type: "success",
90
94
  duration: 5e3
91
95
  }), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList);
92
- }).catch((t) => {
93
- console.error(t), this.is_loading = !1;
96
+ }).catch((e) => {
97
+ console.error(e), this.is_loading = !1;
94
98
  });
95
99
  },
96
- getFileName(t) {
97
- return t.length > 12 ? t.substring(0, 13) + "... ." + t.split(".")[1] : t;
100
+ getFileName(e) {
101
+ return e.length > 12 ? e.substring(0, 13) + "... ." + e.split(".")[1] : e;
98
102
  },
99
- formatFileSize(t) {
100
- if (t === 0) return "0 Bytes";
101
- const e = 1024, r = ["Bytes", "KB", "MB", "GB", "TB"], o = Math.floor(Math.log(t) / Math.log(e));
102
- return parseFloat((t / Math.pow(e, o)).toFixed(2)) + " " + r[o];
103
+ formatFileSize(e) {
104
+ if (e === 0) return "0 Bytes";
105
+ const t = 1024, i = ["Bytes", "KB", "MB", "GB", "TB"], o = Math.floor(Math.log(e) / Math.log(t));
106
+ return parseFloat((e / Math.pow(t, o)).toFixed(2)) + " " + i[o];
103
107
  },
104
- onDragOver(t) {
105
- t.preventDefault(), this.isDragging = !0, t.dataTransfer.dropEffect = "copy";
108
+ onDragOver(e) {
109
+ e.preventDefault(), this.isDragging = !0, e.dataTransfer.dropEffect = "copy";
106
110
  },
107
- onDragLeave(t) {
108
- t.preventDefault(), this.isDragging = !1;
111
+ onDragLeave(e) {
112
+ e.preventDefault(), this.isDragging = !1;
109
113
  },
110
- onDrop(t) {
111
- t.preventDefault(), this.isDragging = !1;
112
- const e = t.dataTransfer.files;
113
- Array.from(e).forEach((r) => {
114
- this.uploadFile(r);
114
+ onDrop(e) {
115
+ e.preventDefault(), this.isDragging = !1;
116
+ const t = e.dataTransfer.files;
117
+ Array.from(t).forEach((i) => {
118
+ this.uploadFile(i);
115
119
  });
116
120
  },
117
- async uploadFiles(t) {
121
+ async uploadFiles(e) {
118
122
  this.inintUploadFileList();
119
- const e = t.target.files, r = Array.from(e).map(
123
+ const t = e.target.files, i = Array.from(t).map(
120
124
  (o) => this.uploadFile(o)
121
125
  );
122
- await Promise.all(r), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList);
126
+ await Promise.all(i), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList);
123
127
  },
124
- getFirstError(t, e) {
125
- return t.hasOwnProperty(e) ? t[e][0] : "";
128
+ getFirstError(e, t) {
129
+ return e.hasOwnProperty(t) ? e[t][0] : "";
126
130
  },
127
- async uploadFile(t) {
128
- return new Promise((e, r) => {
129
- t || e();
131
+ async uploadFile(e) {
132
+ return new Promise((t, i) => {
133
+ e || t();
130
134
  const o = new FormData();
131
- o.append(this.field_name, t), o.append("accepts_file_types", this.accepts_file_types), o.append("max_file_size", this.max_file_size), o.append("field_name", this.field_name), Object.entries(this.file_config).forEach(([l, a]) => {
132
- o.append(l, a);
133
- }), this.files.push({ file_name: t.name, loading: 0 }), axios.post(this.route_url + "/media", o, {
135
+ o.append(this.field_name, e), o.append("accepts_file_types", this.accepts_file_types), o.append("max_file_size", this.max_file_size), o.append("field_name", this.field_name), Object.entries(this.file_config).forEach(([l, s]) => {
136
+ o.append(l, s);
137
+ }), this.files.push({ file_name: e.name, loading: 0 }), axios.post(this.route_url + "/media", o, {
134
138
  headers: {
135
139
  "Content-Type": "multipart/form-data"
136
140
  },
@@ -140,24 +144,24 @@ const w = {
140
144
  );
141
145
  }
142
146
  }).then((l) => {
143
- let a = this.files.findIndex(
144
- (f) => f.file_name === t.name
147
+ let s = this.files.findIndex(
148
+ (f) => f.file_name === e.name
145
149
  );
146
- a !== -1 && this.files.splice(a, 1), this.has_multiple_file || (this.uploadFileList = []), this.uploadFileList.push({
150
+ s !== -1 && this.files.splice(s, 1), this.has_multiple_file || (this.uploadFileList = []), this.uploadFileList.push({
147
151
  file_name: l.data.file_name,
148
152
  size: l.data.size,
149
153
  id: l.data.id,
150
154
  url: l.data.url
151
- }), this.error_message_data = "", e();
155
+ }), this.error_message_data = "", t();
152
156
  }).catch((l) => {
153
157
  l.response.status === 422 ? this.error_message_data = this.getFirstError(
154
158
  l.response.data.errors,
155
159
  this.field_name
156
160
  ) : console.error("An error occurred:", l);
157
- let a = this.files.findIndex(
158
- (f) => f.file_name === t.name
161
+ let s = this.files.findIndex(
162
+ (f) => f.file_name === e.name
159
163
  );
160
- a !== -1 && this.files.splice(a, 1), console.log(l), e();
164
+ s !== -1 && this.files.splice(s, 1), console.log(l), t();
161
165
  });
162
166
  });
163
167
  }
@@ -171,132 +175,133 @@ const w = {
171
175
  this.error_message_data = this.error_message;
172
176
  },
173
177
  watch: {
174
- error_message(t, e) {
175
- this.error_message_data = t;
178
+ error_message(e, t) {
179
+ this.error_message_data = e;
176
180
  }
177
181
  }
178
- }, D = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, L = ["multiple"], C = ["name", "value"], M = { key: 1 }, B = { class: "mt-2 gl-span-form-error" }, S = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, z = {
182
+ }, D = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, L = ["multiple"], C = ["name", "value"], M = { class: "text-sm text-gray-500 dark:text-gray-400" }, B = { key: 1 }, S = { class: "text-sm text-gray-500 dark:text-gray-400" }, j = { class: "mt-2 gl-span-form-error" }, z = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, V = {
179
183
  key: 0,
180
184
  class: ""
181
- }, V = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow-sm dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, j = { class: "w-full ml-3" }, O = { class: "flex items-center justify-between mb-1" }, A = { class: "text-xs text-black dark:text-white" }, N = { class: "text-xs text-black dark:text-white" }, E = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, P = { class: "overflow-x-scroll max-h-56" }, T = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow-sm dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, U = { class: "flex items-center" }, I = { class: "flex flex-col ml-3" }, q = { class: "text-xs" }, G = { class: "text-xs" }, K = { class: "flex gap-2" }, H = ["href"], J = ["onClick"];
182
- function Q(t, e, r, o, l, a) {
185
+ }, O = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow-sm dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, A = { class: "w-full ml-3" }, N = { class: "flex items-center justify-between mb-1" }, E = { class: "text-xs text-black dark:text-white" }, P = { class: "text-xs text-black dark:text-white" }, T = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, U = { class: "overflow-x-scroll max-h-56" }, I = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow-sm dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, q = { class: "flex items-center" }, G = { class: "flex flex-col ml-3" }, K = { class: "text-xs" }, H = { class: "text-xs" }, J = { class: "flex gap-2" }, Q = ["href"], R = ["onClick"];
186
+ function W(e, t, i, o, l, s) {
183
187
  const f = b("DeleteConfirmationModal");
184
- return n(), d(m, null, [
188
+ return n(), d(g, null, [
185
189
  k(f, {
190
+ language: i.language,
186
191
  isOpen: l.open_delete_modal,
187
- onConfirmDelete: a.deleteAction,
188
- onCancelDelete: a.closeDeleteModal
189
- }, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
190
- s("div", {
191
- class: p([{
192
+ onConfirmDelete: s.deleteAction,
193
+ onCancelDelete: s.closeDeleteModal
194
+ }, null, 8, ["language", "isOpen", "onConfirmDelete", "onCancelDelete"]),
195
+ a("div", {
196
+ class: c([{
192
197
  "border-red-500 dark:border-red-500": l.error_message_data !== "",
193
198
  "border-gray-200 dark:border-gray-700": l.error_message_data == ""
194
199
  }, "w-full p-4 bg-white border rounded-lg shadow-sm dark:bg-gray-800"])
195
200
  }, [
196
- s("label", {
197
- class: p({
201
+ a("label", {
202
+ class: c({
198
203
  "gl-label-form": l.error_message_data == "",
199
204
  "gl-label-form-invalid": l.error_message_data !== "",
200
- required: r.is_required
205
+ required: i.is_required
201
206
  })
202
- }, u(r.label_name), 3),
203
- s("div", {
204
- onDragover: e[2] || (e[2] = h((...i) => a.onDragOver && a.onDragOver(...i), ["prevent"])),
205
- onDragleave: e[3] || (e[3] = h((...i) => a.onDragLeave && a.onDragLeave(...i), ["prevent"])),
206
- onDrop: e[4] || (e[4] = h((...i) => a.onDrop && a.onDrop(...i), ["prevent"])),
207
+ }, u(i.label_name), 3),
208
+ a("div", {
209
+ onDragover: t[2] || (t[2] = _((...r) => s.onDragOver && s.onDragOver(...r), ["prevent"])),
210
+ onDragleave: t[3] || (t[3] = _((...r) => s.onDragLeave && s.onDragLeave(...r), ["prevent"])),
211
+ onDrop: t[4] || (t[4] = _((...r) => s.onDrop && s.onDrop(...r), ["prevent"])),
207
212
  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"
208
213
  }, [
209
- s("div", D, [
210
- s("input", {
214
+ a("div", D, [
215
+ a("input", {
211
216
  type: "file",
212
- ref: "file_input" + r.field_name,
217
+ ref: "file_input" + i.field_name,
213
218
  hidden: "",
214
- multiple: r.has_multiple_file,
215
- onChange: e[0] || (e[0] = (...i) => a.uploadFiles && a.uploadFiles(...i))
219
+ multiple: i.has_multiple_file,
220
+ onChange: t[0] || (t[0] = (...r) => s.uploadFiles && s.uploadFiles(...r))
216
221
  }, null, 40, L),
217
- (n(!0), d(m, null, _(a.uploadFileListFinal, (i, g) => (n(), d("input", {
222
+ (n(!0), d(g, null, h(s.uploadFileListFinal, (r, m) => (n(), d("input", {
218
223
  type: "hidden",
219
- name: r.field_name + "[]",
220
- key: g,
221
- value: i.id
224
+ name: i.field_name + "[]",
225
+ key: m,
226
+ value: r.id
222
227
  }, null, 8, C))), 128)),
223
- l.isDragging ? (n(), d("div", M, e[6] || (e[6] = [
224
- s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Drop files here ", -1)
225
- ]))) : (n(), d("div", {
228
+ l.isDragging ? (n(), d("div", B, [
229
+ a("p", S, u(i.language?.drop_files_here ?? "Drop files here"), 1)
230
+ ])) : (n(), d("div", {
226
231
  key: 0,
227
232
  class: "flex flex-col items-center justify-center",
228
- onClick: e[1] || (e[1] = (i) => t.$refs["file_input" + this.field_name].click())
229
- }, e[5] || (e[5] = [
230
- s("svg", {
233
+ onClick: t[1] || (t[1] = (r) => e.$refs["file_input" + this.field_name].click())
234
+ }, [
235
+ t[5] || (t[5] = a("svg", {
231
236
  class: "w-8 h-8 mb-4 text-gray-500 dark:text-gray-400",
232
237
  "aria-hidden": "true",
233
238
  xmlns: "http://www.w3.org/2000/svg",
234
239
  fill: "none",
235
240
  viewBox: "0 0 20 16"
236
241
  }, [
237
- s("path", {
242
+ a("path", {
238
243
  stroke: "currentColor",
239
244
  "stroke-linecap": "round",
240
245
  "stroke-linejoin": "round",
241
246
  "stroke-width": "2",
242
247
  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"
243
248
  })
244
- ], -1),
245
- s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Drag & drop files or browse ", -1)
246
- ])))
249
+ ], -1)),
250
+ a("p", M, u(i.language?.drag_drop_files_or_browse ?? "Drag & drop files or browse"), 1)
251
+ ]))
247
252
  ])
248
253
  ], 32),
249
- s("span", B, u(l.error_message_data), 1),
250
- s("small", S, u(r.description), 1),
251
- l.files.length > 0 ? (n(), d("section", z, [
252
- (n(!0), d(m, null, _(l.files, (i, g) => (n(), d("li", V, [
253
- e[7] || (e[7] = s("i", { class: "text-3xl fas fa-file-alt" }, null, -1)),
254
- s("div", j, [
255
- s("div", O, [
256
- s("span", A, u(a.getFileName(i.file_name)), 1),
257
- s("span", N, u(i.loading), 1)
254
+ a("span", j, u(l.error_message_data), 1),
255
+ a("small", z, u(i.description), 1),
256
+ l.files.length > 0 ? (n(), d("section", V, [
257
+ (n(!0), d(g, null, h(l.files, (r, m) => (n(), d("li", O, [
258
+ t[6] || (t[6] = a("i", { class: "text-3xl fas fa-file-alt" }, null, -1)),
259
+ a("div", A, [
260
+ a("div", N, [
261
+ a("span", E, u(s.getFileName(r.file_name)), 1),
262
+ a("span", P, u(r.loading), 1)
258
263
  ]),
259
- s("div", E, [
260
- s("div", {
264
+ a("div", T, [
265
+ a("div", {
261
266
  class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
262
- style: v({ width: i.loading + "%" })
267
+ style: v({ width: r.loading + "%" })
263
268
  }, null, 4)
264
269
  ])
265
270
  ])
266
271
  ]))), 256))
267
- ])) : c("", !0),
268
- s("section", P, [
269
- (n(!0), d(m, null, _(a.uploadFileListFinal, (i, g) => (n(), d("li", T, [
270
- s("div", U, [
271
- e[8] || (e[8] = s("i", {
272
+ ])) : p("", !0),
273
+ a("section", U, [
274
+ (n(!0), d(g, null, h(s.uploadFileListFinal, (r, m) => (n(), d("li", I, [
275
+ a("div", q, [
276
+ t[7] || (t[7] = a("i", {
272
277
  class: "text-3xl fas fa-file-alt",
273
278
  "aria-hidden": "true"
274
279
  }, null, -1)),
275
- s("div", I, [
276
- s("span", q, u(a.getFileName(i.file_name)), 1),
277
- s("span", G, u(a.formatFileSize(i.size)), 1)
280
+ a("div", G, [
281
+ a("span", K, u(s.getFileName(r.file_name)), 1),
282
+ a("span", H, u(s.formatFileSize(r.size)), 1)
278
283
  ])
279
284
  ]),
280
- s("div", K, [
281
- s("a", {
282
- href: i.url,
285
+ a("div", J, [
286
+ a("a", {
287
+ href: r.url,
283
288
  target: "_blank",
284
289
  class: "text-lg text-blue-600 cursor-pointer dark:text-blue-400 fas fa-download"
285
- }, null, 8, H),
286
- r.is_enable_delete ? (n(), d("i", {
290
+ }, null, 8, Q),
291
+ i.is_enable_delete ? (n(), d("i", {
287
292
  key: 0,
288
- onClick: (R) => {
289
- l.media_id = i.id, l.open_delete_modal = !0;
293
+ onClick: (X) => {
294
+ l.media_id = r.id, l.open_delete_modal = !0;
290
295
  },
291
296
  class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
292
- }, null, 8, J)) : c("", !0)
297
+ }, null, 8, R)) : p("", !0)
293
298
  ])
294
299
  ]))), 256))
295
300
  ])
296
301
  ], 2)
297
302
  ], 64);
298
303
  }
299
- const $ = /* @__PURE__ */ F(w, [["render", Q]]);
304
+ const te = /* @__PURE__ */ F(w, [["render", W]]);
300
305
  export {
301
- $ as default
306
+ te as default
302
307
  };