@singlebase/elements 0.6.0 → 0.8.0

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 (50) hide show
  1. package/dist/authui-display-C2o9gApg.cjs +961 -0
  2. package/dist/authui-display-C2o9gApg.cjs.map +1 -0
  3. package/dist/{authui-display-CKfGK5va.js → authui-display-CRUABt43.js} +1034 -913
  4. package/dist/authui-display-CRUABt43.js.map +1 -0
  5. package/dist/authui.cjs +1 -1
  6. package/dist/authui.js +2 -2
  7. package/dist/{chat-C-gsskho.cjs → chat-BWcGH9lr.cjs} +310 -287
  8. package/dist/chat-BWcGH9lr.cjs.map +1 -0
  9. package/dist/chat-messages.d.ts +8 -1
  10. package/dist/{chat-CEh6RygY.js → chat-t4o5FsxM.js} +796 -656
  11. package/dist/chat-t4o5FsxM.js.map +1 -0
  12. package/dist/chat.cjs +1 -1
  13. package/dist/chat.d.ts +1 -1
  14. package/dist/chat.js +1 -1
  15. package/dist/elements/authui-account.d.ts +0 -1
  16. package/dist/elements/authui-buttons.d.ts +1 -1
  17. package/dist/elements/authui.d.ts +25 -5
  18. package/dist/elements/chat.d.ts +46 -8
  19. package/dist/elements/uploader.d.ts +0 -6
  20. package/dist/files-4T62wkwj.cjs +77 -0
  21. package/dist/files-4T62wkwj.cjs.map +1 -0
  22. package/dist/{files-DDJWPzZW.js → files-DS-H-3yN.js} +56 -57
  23. package/dist/files-DS-H-3yN.js.map +1 -0
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.js +4 -4
  26. package/dist/messages.d.ts +34 -5
  27. package/dist/singlebase-elements.min.js +2555 -2292
  28. package/dist/singlebase-elements.min.js.map +1 -1
  29. package/dist/upload-messages.d.ts +0 -1
  30. package/dist/{uploader-660JIgIN.cjs → uploader-C57vgFME.cjs} +33 -7
  31. package/dist/uploader-C57vgFME.cjs.map +1 -0
  32. package/dist/{uploader-vfczkX51.js → uploader-Cz9yfzfV.js} +261 -262
  33. package/dist/uploader-Cz9yfzfV.js.map +1 -0
  34. package/dist/uploader.cjs +1 -1
  35. package/dist/uploader.js +2 -2
  36. package/dist/utils/auth-errors.d.ts +7 -0
  37. package/dist/utils/branding.d.ts +5 -5
  38. package/dist/utils/oauth.d.ts +24 -0
  39. package/dist/utils/password.d.ts +16 -0
  40. package/package.json +3 -3
  41. package/dist/authui-display-CKfGK5va.js.map +0 -1
  42. package/dist/authui-display-aWNht0cW.cjs +0 -956
  43. package/dist/authui-display-aWNht0cW.cjs.map +0 -1
  44. package/dist/chat-C-gsskho.cjs.map +0 -1
  45. package/dist/chat-CEh6RygY.js.map +0 -1
  46. package/dist/files-DDJWPzZW.js.map +0 -1
  47. package/dist/files-DyxcjZsx.cjs +0 -75
  48. package/dist/files-DyxcjZsx.cjs.map +0 -1
  49. package/dist/uploader-660JIgIN.cjs.map +0 -1
  50. package/dist/uploader-vfczkX51.js.map +0 -1
@@ -1,13 +1,13 @@
1
- var ge = (r) => {
1
+ var fe = (r) => {
2
2
  throw TypeError(r);
3
3
  };
4
- var he = (r, e, t) => e.has(r) || ge("Cannot " + t);
5
- var d = (r, e, t) => (he(r, e, "read from private field"), t ? t.call(r) : e.get(r)), l = (r, e, t) => e.has(r) ? ge("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), c = (r, e, t, i) => (he(r, e, "write to private field"), i ? i.call(r, t) : e.set(r, t), t);
6
- import { css as ye, LitElement as Me, nothing as x, html as u } from "lit";
7
- import { property as b, state as te, customElement as Ce } from "lit/decorators.js";
8
- import { getDefaultClient as Te } from "@singlebase/core";
9
- import { t as je, b as Fe, r as Oe, f as de, a as v, c as De, p as le, e as ie, g as Ee, h as Le, i as Ae, j as Ne, k as Pe } from "./files-DDJWPzZW.js";
10
- const Re = ye`
4
+ var be = (r, e, t) => e.has(r) || fe("Cannot " + t);
5
+ var l = (r, e, t) => (be(r, e, "read from private field"), t ? t.call(r) : e.get(r)), d = (r, e, t) => e.has(r) ? fe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), c = (r, e, t, i) => (be(r, e, "write to private field"), i ? i.call(r, t) : e.set(r, t), t);
6
+ import { css as xe, LitElement as Ue, nothing as x, html as u } from "lit";
7
+ import { property as b, state as Q, customElement as Se } from "lit/decorators.js";
8
+ import { getDefaultClient as Me } from "@singlebase/core";
9
+ import { t as Ce, b as je, r as Fe, f as oe, a as v, c as Oe, p as ne, e as te, g as De, h as Ee, i as Le, j as Te, k as Ae } from "./files-DS-H-3yN.js";
10
+ const Ne = xe`
11
11
  /* ── layout primitives ───────────────────────────────────── */
12
12
  .stack {
13
13
  display: flex;
@@ -93,6 +93,32 @@ const Re = ye`
93
93
  text-wrap: pretty;
94
94
  }
95
95
 
96
+ .pw-rules {
97
+ margin-top: 6px;
98
+ font-size: 12px;
99
+ line-height: 1.5;
100
+ color: var(--sb-muted-ink, #61666c);
101
+ }
102
+
103
+ .pw-rules summary {
104
+ cursor: pointer;
105
+ width: fit-content;
106
+ }
107
+
108
+ .pw-rules summary:hover {
109
+ color: var(--sb-ink, #16181a);
110
+ }
111
+
112
+ .pw-rules ul {
113
+ margin: 4px 0 0;
114
+ padding-left: 18px;
115
+ }
116
+
117
+ .consent {
118
+ text-align: center;
119
+ text-wrap: balance;
120
+ }
121
+
96
122
  .sub-label {
97
123
  font-family: var(--sb-mono, "Geist Mono", ui-monospace, monospace);
98
124
  font-size: 11px;
@@ -984,7 +1010,7 @@ const Re = ye`
984
1010
  font-style: italic;
985
1011
  }
986
1012
  `;
987
- function Be(r, e, t) {
1013
+ function Pe(r, e, t) {
988
1014
  if (!r || !e) return null;
989
1015
  let i;
990
1016
  try {
@@ -992,32 +1018,32 @@ function Be(r, e, t) {
992
1018
  } catch {
993
1019
  return null;
994
1020
  }
995
- let n;
1021
+ let o;
996
1022
  try {
997
- n = new URL(r, i.href);
1023
+ o = new URL(r, i.href);
998
1024
  } catch {
999
1025
  return t == null || t(`"${r}" is not a valid URL`), null;
1000
1026
  }
1001
- return n.protocol !== "http:" && n.protocol !== "https:" ? (t == null || t(`refusing redirect to unsupported scheme "${n.protocol}"`), null) : n.origin !== i.origin ? (t == null || t(`refusing cross-origin redirect to ${n.origin}; same-origin only`), null) : n.href === i.href ? null : n.href;
1027
+ return o.protocol !== "http:" && o.protocol !== "https:" ? (t == null || t(`refusing redirect to unsupported scheme "${o.protocol}"`), null) : o.origin !== i.origin ? (t == null || t(`refusing cross-origin redirect to ${o.origin}; same-origin only`), null) : o.href === i.href ? null : o.href;
1002
1028
  }
1003
- const we = { pages: null, encrypted: null }, me = 16 * 1024 * 1024, Ge = 2 * 1024 * 1024, Ie = 40, _e = 4 * 1024 * 1024, ke = /* @__PURE__ */ new Set(["docx", "pptx", "xlsx"]);
1004
- async function Ke(r, e) {
1029
+ const ve = { pages: null, encrypted: null }, ge = 16 * 1024 * 1024, Re = 2 * 1024 * 1024, Be = 40, Ge = 4 * 1024 * 1024, ye = /* @__PURE__ */ new Set(["docx", "pptx", "xlsx"]);
1030
+ async function Ie(r, e) {
1005
1031
  try {
1006
- if (e === "pdf") return await Ve(r);
1007
- if (ke.has(e)) return await He(r, e);
1032
+ if (e === "pdf") return await Ke(r);
1033
+ if (ye.has(e)) return await Ve(r, e);
1008
1034
  } catch {
1009
1035
  }
1010
- return we;
1036
+ return ve;
1011
1037
  }
1012
- function qe(r) {
1013
- return r === "pdf" || ke.has(r);
1038
+ function _e(r) {
1039
+ return r === "pdf" || ye.has(r);
1014
1040
  }
1015
- async function Ve(r) {
1016
- const e = await ae(r.slice(0, me)), t = r.size > me ? await ae(r.slice(Math.max(0, r.size - Ge))) : null, i = se(e) + (t ? se(t) : ""), n = /\/Encrypt[\s/<>\]]/.test(i);
1017
- let g = ze(i);
1018
- return g === null && (g = await Ye(e)), { pages: g, encrypted: n };
1041
+ async function Ke(r) {
1042
+ const e = await re(r.slice(0, ge)), t = r.size > ge ? await re(r.slice(Math.max(0, r.size - Re))) : null, i = ie(e) + (t ? ie(t) : ""), o = /\/Encrypt[\s/<>\]]/.test(i);
1043
+ let g = we(i);
1044
+ return g === null && (g = await qe(e)), { pages: g, encrypted: o };
1019
1045
  }
1020
- function ze(r) {
1046
+ function we(r) {
1021
1047
  if (/\/Type\s*\/Pages/.test(r)) {
1022
1048
  let t = 0;
1023
1049
  for (const i of r.matchAll(/\/Count\s+(\d+)/g))
@@ -1027,80 +1053,80 @@ function ze(r) {
1027
1053
  const e = r.match(/\/Type\s*\/Page[^s]/g);
1028
1054
  return e != null && e.length ? e.length : null;
1029
1055
  }
1030
- async function Ye(r) {
1056
+ async function qe(r) {
1031
1057
  if (typeof DecompressionStream > "u") return null;
1032
- const e = se(r);
1058
+ const e = ie(r);
1033
1059
  let t = "", i = 0;
1034
- for (const n of e.matchAll(/stream\r?\n/g)) {
1035
- if (i >= Ie || t.length >= _e) break;
1036
- const g = n.index + n[0].length;
1060
+ for (const o of e.matchAll(/stream\r?\n/g)) {
1061
+ if (i >= Be || t.length >= Ge) break;
1062
+ const g = o.index + o[0].length;
1037
1063
  let s = e.indexOf("endstream", g);
1038
1064
  if (s < 0) break;
1039
1065
  for (; s > g && (e[s - 1] === `
1040
1066
  ` || e[s - 1] === "\r"); ) s -= 1;
1041
1067
  i += 1;
1042
1068
  try {
1043
- const a = await $e(r.subarray(g, s), "deflate");
1044
- t += se(a);
1069
+ const a = await ke(r.subarray(g, s), "deflate");
1070
+ t += ie(a);
1045
1071
  } catch {
1046
1072
  }
1047
1073
  }
1048
- return t ? ze(t) : null;
1074
+ return t ? we(t) : null;
1049
1075
  }
1050
- async function He(r, e) {
1051
- const t = await ae(r.slice(0, 8));
1052
- if (Je(t)) return { pages: null, encrypted: !0 };
1053
- if (t[0] !== 80 || t[1] !== 75) return we;
1054
- const i = await Xe(r, "docProps/app.xml");
1076
+ async function Ve(r, e) {
1077
+ const t = await re(r.slice(0, 8));
1078
+ if (Ye(t)) return { pages: null, encrypted: !0 };
1079
+ if (t[0] !== 80 || t[1] !== 75) return ve;
1080
+ const i = await He(r, "docProps/app.xml");
1055
1081
  if (!i) return { pages: null, encrypted: !1 };
1056
- const n = e === "pptx" ? "Slides" : "Pages", g = new TextDecoder().decode(i).match(new RegExp(`<${n}>(\\d+)</${n}>`));
1082
+ const o = e === "pptx" ? "Slides" : "Pages", g = new TextDecoder().decode(i).match(new RegExp(`<${o}>(\\d+)</${o}>`));
1057
1083
  return { pages: g ? Number(g[1]) : null, encrypted: !1 };
1058
1084
  }
1059
- function Je(r) {
1085
+ function Ye(r) {
1060
1086
  return [208, 207, 17, 224, 161, 177, 26, 225].every((t, i) => r[i] === t);
1061
1087
  }
1062
- async function Xe(r, e) {
1088
+ async function He(r, e) {
1063
1089
  const t = Math.min(r.size, 66e3), i = new DataView(await r.slice(r.size - t).arrayBuffer());
1064
- let n = -1;
1090
+ let o = -1;
1065
1091
  for (let h = i.byteLength - 22; h >= 0; h--)
1066
1092
  if (i.getUint32(h, !0) === 101010256) {
1067
- n = h;
1093
+ o = h;
1068
1094
  break;
1069
1095
  }
1070
- if (n < 0) return null;
1071
- const g = i.getUint32(n + 12, !0), s = i.getUint32(n + 16, !0);
1096
+ if (o < 0) return null;
1097
+ const g = i.getUint32(o + 12, !0), s = i.getUint32(o + 16, !0);
1072
1098
  if (!g || s === 4294967295) return null;
1073
1099
  const a = new DataView(await r.slice(s, s + g).arrayBuffer()), m = new TextDecoder();
1074
1100
  let f = 0;
1075
1101
  for (; f + 46 <= a.byteLength && a.getUint32(f, !0) === 33639248; ) {
1076
- const h = a.getUint16(f + 10, !0), re = a.getUint32(f + 20, !0), y = a.getUint16(f + 28, !0), ne = a.getUint16(f + 30, !0), Se = a.getUint16(f + 32, !0), oe = a.getUint32(f + 42, !0);
1102
+ const h = a.getUint16(f + 10, !0), ee = a.getUint32(f + 20, !0), y = a.getUint16(f + 28, !0), ae = a.getUint16(f + 30, !0), $e = a.getUint16(f + 32, !0), se = a.getUint32(f + 42, !0);
1077
1103
  if (m.decode(new Uint8Array(a.buffer, a.byteOffset + f + 46, y)) === e) {
1078
- const ue = new DataView(await r.slice(oe, oe + 30).arrayBuffer()), fe = oe + 30 + ue.getUint16(26, !0) + ue.getUint16(28, !0), be = await ae(r.slice(fe, fe + re));
1079
- return h === 0 ? be : h === 8 && typeof DecompressionStream < "u" ? await $e(be, "deflate-raw") : null;
1104
+ const ce = new DataView(await r.slice(se, se + 30).arrayBuffer()), pe = se + 30 + ce.getUint16(26, !0) + ce.getUint16(28, !0), ue = await re(r.slice(pe, pe + ee));
1105
+ return h === 0 ? ue : h === 8 && typeof DecompressionStream < "u" ? await ke(ue, "deflate-raw") : null;
1080
1106
  }
1081
- f += 46 + y + ne + Se;
1107
+ f += 46 + y + ae + $e;
1082
1108
  }
1083
1109
  return null;
1084
1110
  }
1085
- async function ae(r) {
1111
+ async function re(r) {
1086
1112
  return new Uint8Array(await r.arrayBuffer());
1087
1113
  }
1088
- async function $e(r, e) {
1114
+ async function ke(r, e) {
1089
1115
  const t = new Blob([r]).stream().pipeThrough(new DecompressionStream(e));
1090
1116
  return new Uint8Array(await new Response(t).arrayBuffer());
1091
1117
  }
1092
- function se(r) {
1118
+ function ie(r) {
1093
1119
  let e = "";
1094
1120
  for (let i = 0; i < r.length; i += 32768)
1095
1121
  e += String.fromCharCode(...r.subarray(i, i + 32768));
1096
1122
  return e;
1097
1123
  }
1098
- var Ue = Object.defineProperty, We = Object.getOwnPropertyDescriptor, Ze = (r, e, t) => e in r ? Ue(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, p = (r, e, t, i) => {
1099
- for (var n = i > 1 ? void 0 : i ? We(e, t) : e, g = r.length - 1, s; g >= 0; g--)
1100
- (s = r[g]) && (n = (i ? s(e, t, n) : s(n)) || n);
1101
- return i && n && Ue(e, t, n), n;
1102
- }, Qe = (r, e, t) => Ze(r, e + "", t);
1103
- const ce = {
1124
+ var ze = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Xe = (r, e, t) => e in r ? ze(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, p = (r, e, t, i) => {
1125
+ for (var o = i > 1 ? void 0 : i ? Je(e, t) : e, g = r.length - 1, s; g >= 0; g--)
1126
+ (s = r[g]) && (o = (i ? s(e, t, o) : s(o)) || o);
1127
+ return i && o && ze(e, t, o), o;
1128
+ }, We = (r, e, t) => Xe(r, e + "", t);
1129
+ const le = {
1104
1130
  fromAttribute: (r) => {
1105
1131
  if (!r) return {};
1106
1132
  try {
@@ -1111,17 +1137,15 @@ const ce = {
1111
1137
  }
1112
1138
  },
1113
1139
  toAttribute: (r) => JSON.stringify(r ?? {})
1114
- }, pe = {
1140
+ }, de = {
1115
1141
  fromAttribute: (r) => r === null ? !0 : r !== "false",
1116
1142
  toAttribute: (r) => r ? null : "false"
1117
- }, xe = [
1143
+ }, he = [
1118
1144
  "view",
1119
1145
  "dropzone",
1120
1146
  "allowRename",
1121
1147
  "autoUpload",
1122
1148
  "branding",
1123
- "brandingText",
1124
- "brandingUrl",
1125
1149
  "logoUrl",
1126
1150
  "logoText",
1127
1151
  "heading",
@@ -1143,248 +1167,234 @@ const ce = {
1143
1167
  "onComplete",
1144
1168
  "onError"
1145
1169
  ];
1146
- var k, z, $, U, S, M, C, T, j, F, O, D, E, L, A, N, P, R, B, G, I, _, K, q, V, Y, H, J, X, W, Z, Q, ee, ve;
1147
- let o = (ve = class extends Me {
1170
+ var k, z, $, U, S, M, C, j, F, O, D, E, L, T, A, N, P, R, B, G, I, _, K, q, V, Y, H, J, X, W, Z, me;
1171
+ let n = (me = class extends Ue {
1148
1172
  constructor() {
1149
1173
  super(...arguments);
1150
- l(this, k, null);
1151
- l(this, z, {});
1152
- l(this, $);
1153
- l(this, U);
1154
- l(this, S);
1155
- l(this, M, "full");
1156
- l(this, C, !0);
1157
- l(this, T, !0);
1158
- l(this, j, !1);
1159
- l(this, F, !0);
1160
- l(this, O, "");
1161
- l(this, D, "");
1162
- l(this, E, "");
1163
- l(this, L, "");
1164
- l(this, A, "");
1165
- l(this, N, "");
1166
- l(this, P, 10);
1167
- l(this, R, "25MB");
1168
- l(this, B, 0);
1169
- l(this, G, "");
1170
- l(this, I, {});
1171
- l(this, _, "default");
1172
- l(this, K, {});
1173
- l(this, q, {});
1174
- l(this, V, !1);
1175
- l(this, Y, "");
1176
- l(this, H, null);
1177
- l(this, J, null);
1178
- l(this, X, []);
1179
- l(this, W, "");
1180
- l(this, Z, !1);
1181
- l(this, Q, !1);
1182
- l(this, ee, "");
1174
+ d(this, k, null);
1175
+ d(this, z, {});
1176
+ d(this, $);
1177
+ d(this, U);
1178
+ d(this, S);
1179
+ d(this, M, "full");
1180
+ d(this, C, !0);
1181
+ d(this, j, !0);
1182
+ d(this, F, !1);
1183
+ d(this, O, !0);
1184
+ d(this, D, "");
1185
+ d(this, E, "");
1186
+ d(this, L, "");
1187
+ d(this, T, "");
1188
+ d(this, A, 10);
1189
+ d(this, N, "25MB");
1190
+ d(this, P, 0);
1191
+ d(this, R, "");
1192
+ d(this, B, {});
1193
+ d(this, G, "default");
1194
+ d(this, I, {});
1195
+ d(this, _, {});
1196
+ d(this, K, !1);
1197
+ d(this, q, "");
1198
+ d(this, V, null);
1199
+ d(this, Y, null);
1200
+ d(this, H, []);
1201
+ d(this, J, "");
1202
+ d(this, X, !1);
1203
+ d(this, W, !1);
1204
+ d(this, Z, "");
1183
1205
  }
1184
1206
  get client() {
1185
- return d(this, k);
1207
+ return l(this, k);
1186
1208
  }
1187
1209
  set client(e) {
1188
1210
  c(this, k, e);
1189
1211
  }
1190
1212
  get messages() {
1191
- return d(this, z);
1213
+ return l(this, z);
1192
1214
  }
1193
1215
  set messages(e) {
1194
1216
  c(this, z, e);
1195
1217
  }
1196
1218
  get theme() {
1197
- return d(this, $);
1219
+ return l(this, $);
1198
1220
  }
1199
1221
  set theme(e) {
1200
1222
  c(this, $, e);
1201
1223
  }
1202
1224
  get density() {
1203
- return d(this, U);
1225
+ return l(this, U);
1204
1226
  }
1205
1227
  set density(e) {
1206
1228
  c(this, U, e);
1207
1229
  }
1208
1230
  get radius() {
1209
- return d(this, S);
1231
+ return l(this, S);
1210
1232
  }
1211
1233
  set radius(e) {
1212
1234
  c(this, S, e);
1213
1235
  }
1214
1236
  get view() {
1215
- return d(this, M);
1237
+ return l(this, M);
1216
1238
  }
1217
1239
  set view(e) {
1218
1240
  c(this, M, e);
1219
1241
  }
1220
1242
  get dropzone() {
1221
- return d(this, C);
1243
+ return l(this, C);
1222
1244
  }
1223
1245
  set dropzone(e) {
1224
1246
  c(this, C, e);
1225
1247
  }
1226
1248
  get allowRename() {
1227
- return d(this, T);
1249
+ return l(this, j);
1228
1250
  }
1229
1251
  set allowRename(e) {
1230
- c(this, T, e);
1252
+ c(this, j, e);
1231
1253
  }
1232
1254
  get autoUpload() {
1233
- return d(this, j);
1255
+ return l(this, F);
1234
1256
  }
1235
1257
  set autoUpload(e) {
1236
- c(this, j, e);
1258
+ c(this, F, e);
1237
1259
  }
1238
1260
  get branding() {
1239
- return d(this, F);
1261
+ return l(this, O);
1240
1262
  }
1241
1263
  set branding(e) {
1242
- c(this, F, e);
1243
- }
1244
- get brandingText() {
1245
- return d(this, O);
1246
- }
1247
- set brandingText(e) {
1248
1264
  c(this, O, e);
1249
1265
  }
1250
- get brandingUrl() {
1251
- return d(this, D);
1252
- }
1253
- set brandingUrl(e) {
1254
- c(this, D, e);
1255
- }
1256
1266
  get logoUrl() {
1257
- return d(this, E);
1267
+ return l(this, D);
1258
1268
  }
1259
1269
  set logoUrl(e) {
1260
- c(this, E, e);
1270
+ c(this, D, e);
1261
1271
  }
1262
1272
  get logoText() {
1263
- return d(this, L);
1273
+ return l(this, E);
1264
1274
  }
1265
1275
  set logoText(e) {
1266
- c(this, L, e);
1276
+ c(this, E, e);
1267
1277
  }
1268
1278
  get heading() {
1269
- return d(this, A);
1279
+ return l(this, L);
1270
1280
  }
1271
1281
  set heading(e) {
1272
- c(this, A, e);
1282
+ c(this, L, e);
1273
1283
  }
1274
1284
  get description() {
1275
- return d(this, N);
1285
+ return l(this, T);
1276
1286
  }
1277
1287
  set description(e) {
1278
- c(this, N, e);
1288
+ c(this, T, e);
1279
1289
  }
1280
1290
  get maxFiles() {
1281
- return d(this, P);
1291
+ return l(this, A);
1282
1292
  }
1283
1293
  set maxFiles(e) {
1284
- c(this, P, e);
1294
+ c(this, A, e);
1285
1295
  }
1286
1296
  get maxSize() {
1287
- return d(this, R);
1297
+ return l(this, N);
1288
1298
  }
1289
1299
  set maxSize(e) {
1290
- c(this, R, e);
1300
+ c(this, N, e);
1291
1301
  }
1292
1302
  get minSize() {
1293
- return d(this, B);
1303
+ return l(this, P);
1294
1304
  }
1295
1305
  set minSize(e) {
1296
- c(this, B, e);
1306
+ c(this, P, e);
1297
1307
  }
1298
1308
  get accept() {
1299
- return d(this, G);
1309
+ return l(this, R);
1300
1310
  }
1301
1311
  set accept(e) {
1302
- c(this, G, e);
1312
+ c(this, R, e);
1303
1313
  }
1304
1314
  get rules() {
1305
- return d(this, I);
1315
+ return l(this, B);
1306
1316
  }
1307
1317
  set rules(e) {
1308
- c(this, I, e);
1318
+ c(this, B, e);
1309
1319
  }
1310
1320
  get bucket() {
1311
- return d(this, _);
1321
+ return l(this, G);
1312
1322
  }
1313
1323
  set bucket(e) {
1314
- c(this, _, e);
1324
+ c(this, G, e);
1315
1325
  }
1316
1326
  get metadata() {
1317
- return d(this, K);
1327
+ return l(this, I);
1318
1328
  }
1319
1329
  set metadata(e) {
1320
- c(this, K, e);
1330
+ c(this, I, e);
1321
1331
  }
1322
1332
  get options() {
1323
- return d(this, q);
1333
+ return l(this, _);
1324
1334
  }
1325
1335
  set options(e) {
1326
- c(this, q, e);
1336
+ c(this, _, e);
1327
1337
  }
1328
1338
  get publicRead() {
1329
- return d(this, V);
1339
+ return l(this, K);
1330
1340
  }
1331
1341
  set publicRead(e) {
1332
- c(this, V, e);
1342
+ c(this, K, e);
1333
1343
  }
1334
1344
  get redirectUrl() {
1335
- return d(this, Y);
1345
+ return l(this, q);
1336
1346
  }
1337
1347
  set redirectUrl(e) {
1338
- c(this, Y, e);
1348
+ c(this, q, e);
1339
1349
  }
1340
1350
  get onComplete() {
1341
- return d(this, H);
1351
+ return l(this, V);
1342
1352
  }
1343
1353
  set onComplete(e) {
1344
- c(this, H, e);
1354
+ c(this, V, e);
1345
1355
  }
1346
1356
  get onError() {
1347
- return d(this, J);
1357
+ return l(this, Y);
1348
1358
  }
1349
1359
  set onError(e) {
1350
- c(this, J, e);
1360
+ c(this, Y, e);
1351
1361
  }
1352
1362
  get items() {
1353
- return d(this, X);
1363
+ return l(this, H);
1354
1364
  }
1355
1365
  set items(e) {
1356
- c(this, X, e);
1366
+ c(this, H, e);
1357
1367
  }
1358
1368
  get notice() {
1359
- return d(this, W);
1369
+ return l(this, J);
1360
1370
  }
1361
1371
  set notice(e) {
1362
- c(this, W, e);
1372
+ c(this, J, e);
1363
1373
  }
1364
1374
  get busy() {
1365
- return d(this, Z);
1375
+ return l(this, X);
1366
1376
  }
1367
1377
  set busy(e) {
1368
- c(this, Z, e);
1378
+ c(this, X, e);
1369
1379
  }
1370
1380
  get dragging() {
1371
- return d(this, Q);
1381
+ return l(this, W);
1372
1382
  }
1373
1383
  set dragging(e) {
1374
- c(this, Q, e);
1384
+ c(this, W, e);
1375
1385
  }
1376
1386
  get editing() {
1377
- return d(this, ee);
1387
+ return l(this, Z);
1378
1388
  }
1379
1389
  set editing(e) {
1380
- c(this, ee, e);
1390
+ c(this, Z, e);
1381
1391
  }
1382
1392
  get msg() {
1383
- return Oe(this.messages);
1393
+ return Fe(this.messages);
1384
1394
  }
1385
1395
  /** An explicit `.client`, else the page default. */
1386
1396
  get resolvedClient() {
1387
- return this.client ?? Te() ?? null;
1397
+ return this.client ?? Me() ?? null;
1388
1398
  }
1389
1399
  /** The staging list, for host code that wants to inspect or persist it. */
1390
1400
  get files() {
@@ -1410,7 +1420,7 @@ let o = (ve = class extends Me {
1410
1420
  */
1411
1421
  set config(e) {
1412
1422
  const t = this;
1413
- for (const i of xe)
1423
+ for (const i of he)
1414
1424
  e && i in e && (t[i] = e[i]);
1415
1425
  }
1416
1426
  /**
@@ -1422,7 +1432,7 @@ let o = (ve = class extends Me {
1422
1432
  }
1423
1433
  get config() {
1424
1434
  const e = this;
1425
- return Object.fromEntries(xe.map((t) => [t, e[t]]));
1435
+ return Object.fromEntries(he.map((t) => [t, e[t]]));
1426
1436
  }
1427
1437
  /** Drops every staged file and any notice. */
1428
1438
  clear() {
@@ -1446,12 +1456,12 @@ let o = (ve = class extends Me {
1446
1456
  for (const s of e)
1447
1457
  s.status = "uploading", s.percent = 0, s.error = "";
1448
1458
  this.items = [...this.items];
1449
- const i = /* @__PURE__ */ new Map(), n = e.map((s) => {
1459
+ const i = /* @__PURE__ */ new Map(), o = e.map((s) => {
1450
1460
  const a = { file: s.file, filename: s.file.name };
1451
1461
  return this.bucket && (a.bucket = this.bucket), this.publicRead && (a.publicRead = !0), s.name !== s.file.name && (a.newName = s.name), Object.keys(this.metadata ?? {}).length && (a.metadata = { ...this.metadata }), Object.keys(this.options ?? {}).length && (a.options = { ...this.options }), i.set(a, s), a;
1452
1462
  });
1453
1463
  try {
1454
- const s = await t.files.upload(n, {
1464
+ const s = await t.files.upload(o, {
1455
1465
  onProgress: (f) => {
1456
1466
  const h = i.get(f.input);
1457
1467
  h && (h.percent = f.percent, this.items = [...this.items], this.emit("singlebase-upload-progress", { file: h, percent: this.percent }));
@@ -1471,7 +1481,7 @@ let o = (ve = class extends Me {
1471
1481
  } catch (s) {
1472
1482
  for (const a of e)
1473
1483
  a.status = "error", a.error = "";
1474
- this.items = [...this.items], this.fail(tt(s) || this.msg.errUpload);
1484
+ this.items = [...this.items], this.fail(Qe(s) || this.msg.errUpload);
1475
1485
  } finally {
1476
1486
  this.busy = !1;
1477
1487
  }
@@ -1479,10 +1489,10 @@ let o = (ve = class extends Me {
1479
1489
  // ── staging ───────────────────────────────────────────────
1480
1490
  /** The rule for this filename's extension, if the host set one. */
1481
1491
  ruleFor(e) {
1482
- const t = de(e);
1492
+ const t = oe(e);
1483
1493
  if (!t) return null;
1484
- for (const [i, n] of Object.entries(this.rules ?? {}))
1485
- if (i.toLowerCase().replace(/^\./, "") === t) return n;
1494
+ for (const [i, o] of Object.entries(this.rules ?? {}))
1495
+ if (i.toLowerCase().replace(/^\./, "") === t) return o;
1486
1496
  return null;
1487
1497
  }
1488
1498
  async add(e) {
@@ -1490,33 +1500,33 @@ let o = (ve = class extends Me {
1490
1500
  const a = this.items.filter((m) => m.status === "done" || m.status === "error");
1491
1501
  a.forEach(w), this.items = this.items.filter((m) => !a.includes(m));
1492
1502
  }
1493
- const t = this.maxFiles > 0 ? this.maxFiles : Number.POSITIVE_INFINITY, i = [...this.items], n = i.length, g = [];
1503
+ const t = this.maxFiles > 0 ? this.maxFiles : Number.POSITIVE_INFINITY, i = [...this.items], o = i.length, g = [];
1494
1504
  let s = "";
1495
1505
  for (const a of Array.from(e)) {
1496
1506
  if (i.length >= t) {
1497
1507
  s = v(this.msg.errTooMany, { max: t });
1498
1508
  break;
1499
1509
  }
1500
- if (this.accept && !De(this.accept, a.name, a.type)) {
1510
+ if (this.accept && !Oe(this.accept, a.name, a.type)) {
1501
1511
  s = v(this.msg.errType, { name: a.name });
1502
1512
  continue;
1503
1513
  }
1504
- const m = this.ruleFor(a.name), f = le((m == null ? void 0 : m.maxSize) ?? this.maxSize), h = le((m == null ? void 0 : m.minSize) ?? this.minSize);
1514
+ const m = this.ruleFor(a.name), f = ne((m == null ? void 0 : m.maxSize) ?? this.maxSize), h = ne((m == null ? void 0 : m.minSize) ?? this.minSize);
1505
1515
  if (f && a.size > f) {
1506
- s = v(this.msg.errTooLarge, { name: a.name, size: ie(f) });
1516
+ s = v(this.msg.errTooLarge, { name: a.name, size: te(f) });
1507
1517
  continue;
1508
1518
  }
1509
1519
  if (h && a.size < h) {
1510
- s = v(this.msg.errTooSmall, { name: a.name, size: ie(h) });
1520
+ s = v(this.msg.errTooSmall, { name: a.name, size: te(h) });
1511
1521
  continue;
1512
1522
  }
1513
- const re = Ee(a);
1514
- if (i.some((ne) => ne.key === re)) {
1523
+ const ee = De(a);
1524
+ if (i.some((ae) => ae.key === ee)) {
1515
1525
  s = v(this.msg.errDuplicate, { name: a.name });
1516
1526
  continue;
1517
1527
  }
1518
1528
  const y = {
1519
- key: re,
1529
+ key: ee,
1520
1530
  file: a,
1521
1531
  name: a.name,
1522
1532
  // Reading bytes takes a moment, so the row appears immediately as
@@ -1527,16 +1537,16 @@ let o = (ve = class extends Me {
1527
1537
  record: null,
1528
1538
  pages: null,
1529
1539
  encrypted: null,
1530
- preview: et(a)
1540
+ preview: Ze(a)
1531
1541
  };
1532
1542
  i.push(y), g.push(y);
1533
1543
  }
1534
- this.notice = s, s && this.emit("singlebase-upload-rejected", { message: s }), i.length !== n && (this.items = i, this.emit("singlebase-upload-selected", { files: this.items }), await Promise.all(
1544
+ this.notice = s, s && this.emit("singlebase-upload-rejected", { message: s }), i.length !== o && (this.items = i, this.emit("singlebase-upload-selected", { files: this.items }), await Promise.all(
1535
1545
  g.filter((a) => a.status === "checking").map((a) => this.inspect(a, this.ruleFor(a.file.name)))
1536
1546
  ), (this.autoUpload || this.view === "button") && this.upload());
1537
1547
  }
1538
1548
  needsInspection(e, t) {
1539
- return !e || !qe(de(t)) ? !1 : e.maxPages !== void 0 || e.allowProtected === !1;
1549
+ return !e || !_e(oe(t)) ? !1 : e.maxPages !== void 0 || e.allowProtected === !1;
1540
1550
  }
1541
1551
  /**
1542
1552
  * Reads the file and applies the rule. A fact the reader could not
@@ -1544,21 +1554,21 @@ let o = (ve = class extends Me {
1544
1554
  * the page rule simply doesn't apply to that file.
1545
1555
  */
1546
1556
  async inspect(e, t) {
1547
- const i = await Ke(e.file, de(e.file.name));
1557
+ const i = await Ie(e.file, oe(e.file.name));
1548
1558
  e.pages = i.pages, e.encrypted = i.encrypted;
1549
- let n = "";
1550
- t.allowProtected === !1 && i.encrypted === !0 ? n = v(this.msg.errProtected, { name: e.name }) : t.maxPages && i.pages !== null && i.pages > t.maxPages && (n = v(this.msg.errTooManyPages, {
1559
+ let o = "";
1560
+ t.allowProtected === !1 && i.encrypted === !0 ? o = v(this.msg.errProtected, { name: e.name }) : t.maxPages && i.pages !== null && i.pages > t.maxPages && (o = v(this.msg.errTooManyPages, {
1551
1561
  name: e.name,
1552
1562
  pages: i.pages,
1553
1563
  max: t.maxPages
1554
- })), n ? (w(e), this.items = this.items.filter((g) => g !== e), this.notice = n, this.emit("singlebase-upload-rejected", { message: n })) : (e.status = "ready", this.items = [...this.items]);
1564
+ })), o ? (w(e), this.items = this.items.filter((g) => g !== e), this.notice = o, this.emit("singlebase-upload-rejected", { message: o })) : (e.status = "ready", this.items = [...this.items]);
1555
1565
  }
1556
1566
  /** Drops one staged file. Named for the row action, not Element.remove(). */
1557
1567
  removeItem(e) {
1558
1568
  this.items.filter((t) => t.key === e).forEach(w), this.items = this.items.filter((t) => t.key !== e), this.notice = "";
1559
1569
  }
1560
1570
  commitRename(e, t) {
1561
- e.name = Le(e.file.name, t), this.editing = "", this.items = [...this.items];
1571
+ e.name = Ee(e.file.name, t), this.editing = "", this.items = [...this.items];
1562
1572
  }
1563
1573
  fail(e) {
1564
1574
  var t;
@@ -1569,7 +1579,7 @@ let o = (ve = class extends Me {
1569
1579
  }
1570
1580
  redirect() {
1571
1581
  if (!this.redirectUrl || typeof location > "u") return;
1572
- const e = Be(
1582
+ const e = Pe(
1573
1583
  this.redirectUrl,
1574
1584
  location.href,
1575
1585
  (t) => console.warn(`[singlebase-uploader] ${t}`)
@@ -1606,7 +1616,7 @@ let o = (ve = class extends Me {
1606
1616
  return this.items.filter((e) => e.status === "ready" || e.status === "error").length;
1607
1617
  }
1608
1618
  get hint() {
1609
- const e = Ae(this.accept), t = le(this.maxSize), i = t ? v(this.msg.hintUpTo, { size: ie(t) }) : "";
1619
+ const e = Le(this.accept), t = ne(this.maxSize), i = t ? v(this.msg.hintUpTo, { size: te(t) }) : "";
1610
1620
  return [e, i].filter(Boolean).join(" · ");
1611
1621
  }
1612
1622
  renderInput() {
@@ -1627,12 +1637,7 @@ let o = (ve = class extends Me {
1627
1637
  />` : this.logoText ? u`<div class="brand-mark" part="logo">${this.logoText}</div>` : x;
1628
1638
  }
1629
1639
  renderBranding() {
1630
- return Ne(
1631
- this.branding,
1632
- this.brandingText,
1633
- this.msg.brandingLabel,
1634
- this.brandingUrl
1635
- );
1640
+ return Te(this.branding, "Files");
1636
1641
  }
1637
1642
  renderNotice() {
1638
1643
  return this.notice ? u`<div class="banner" role="alert" part="error">${this.notice}</div>` : x;
@@ -1645,7 +1650,7 @@ let o = (ve = class extends Me {
1645
1650
  </div>`;
1646
1651
  }
1647
1652
  renderStatus(e) {
1648
- const t = ie(e.file.size);
1653
+ const t = te(e.file.size);
1649
1654
  if (e.status === "checking") return `${t} · ${this.msg.checking}`;
1650
1655
  if (e.status === "uploading") return `${t} · ${this.msg.uploading}`;
1651
1656
  if (e.status === "done") return `${t} · ${this.msg.uploaded}`;
@@ -1658,7 +1663,7 @@ let o = (ve = class extends Me {
1658
1663
  const t = this.allowRename && e.status === "ready";
1659
1664
  return e.status === "uploading" || e.status, u`<div class="row" part="file">
1660
1665
  <div class="chip" part="file-type">
1661
- ${e.preview ? u`<img class="thumb" src=${e.preview} alt="" part="preview" />` : Pe(e.name) || "FILE"}
1666
+ ${e.preview ? u`<img class="thumb" src=${e.preview} alt="" part="preview" />` : Ae(e.name) || "FILE"}
1662
1667
  </div>
1663
1668
  <div class="meta">
1664
1669
  ${this.editing === e.key ? u`<input
@@ -1780,12 +1785,12 @@ let o = (ve = class extends Me {
1780
1785
  render() {
1781
1786
  return u`${this.renderInput()}${this.view === "button" ? this.renderButton() : this.view === "compact" ? this.renderCompact() : this.renderFull()}`;
1782
1787
  }
1783
- }, k = new WeakMap(), z = new WeakMap(), $ = new WeakMap(), U = new WeakMap(), S = new WeakMap(), M = new WeakMap(), C = new WeakMap(), T = new WeakMap(), j = new WeakMap(), F = new WeakMap(), O = new WeakMap(), D = new WeakMap(), E = new WeakMap(), L = new WeakMap(), A = new WeakMap(), N = new WeakMap(), P = new WeakMap(), R = new WeakMap(), B = new WeakMap(), G = new WeakMap(), I = new WeakMap(), _ = new WeakMap(), K = new WeakMap(), q = new WeakMap(), V = new WeakMap(), Y = new WeakMap(), H = new WeakMap(), J = new WeakMap(), X = new WeakMap(), W = new WeakMap(), Z = new WeakMap(), Q = new WeakMap(), ee = new WeakMap(), ve);
1784
- Qe(o, "styles", [
1788
+ }, k = new WeakMap(), z = new WeakMap(), $ = new WeakMap(), U = new WeakMap(), S = new WeakMap(), M = new WeakMap(), C = new WeakMap(), j = new WeakMap(), F = new WeakMap(), O = new WeakMap(), D = new WeakMap(), E = new WeakMap(), L = new WeakMap(), T = new WeakMap(), A = new WeakMap(), N = new WeakMap(), P = new WeakMap(), R = new WeakMap(), B = new WeakMap(), G = new WeakMap(), I = new WeakMap(), _ = new WeakMap(), K = new WeakMap(), q = new WeakMap(), V = new WeakMap(), Y = new WeakMap(), H = new WeakMap(), J = new WeakMap(), X = new WeakMap(), W = new WeakMap(), Z = new WeakMap(), me);
1789
+ We(n, "styles", [
1790
+ Ce,
1791
+ Ne,
1785
1792
  je,
1786
- Re,
1787
- Fe,
1788
- ye`
1793
+ xe`
1789
1794
  .card {
1790
1795
  display: flex;
1791
1796
  flex-direction: column;
@@ -2040,120 +2045,114 @@ Qe(o, "styles", [
2040
2045
  ]);
2041
2046
  p([
2042
2047
  b({ attribute: !1 })
2043
- ], o.prototype, "client", 1);
2048
+ ], n.prototype, "client", 1);
2044
2049
  p([
2045
2050
  b({ attribute: !1 })
2046
- ], o.prototype, "messages", 1);
2051
+ ], n.prototype, "messages", 1);
2047
2052
  p([
2048
2053
  b({ reflect: !0 })
2049
- ], o.prototype, "theme", 1);
2054
+ ], n.prototype, "theme", 1);
2050
2055
  p([
2051
2056
  b({ reflect: !0 })
2052
- ], o.prototype, "density", 1);
2057
+ ], n.prototype, "density", 1);
2053
2058
  p([
2054
2059
  b({ reflect: !0 })
2055
- ], o.prototype, "radius", 1);
2060
+ ], n.prototype, "radius", 1);
2056
2061
  p([
2057
2062
  b({ reflect: !0 })
2058
- ], o.prototype, "view", 1);
2063
+ ], n.prototype, "view", 1);
2059
2064
  p([
2060
- b({ converter: pe })
2061
- ], o.prototype, "dropzone", 1);
2065
+ b({ converter: de })
2066
+ ], n.prototype, "dropzone", 1);
2062
2067
  p([
2063
- b({ converter: pe, attribute: "allow-rename" })
2064
- ], o.prototype, "allowRename", 1);
2068
+ b({ converter: de, attribute: "allow-rename" })
2069
+ ], n.prototype, "allowRename", 1);
2065
2070
  p([
2066
2071
  b({ type: Boolean, attribute: "auto-upload" })
2067
- ], o.prototype, "autoUpload", 1);
2068
- p([
2069
- b({ converter: pe })
2070
- ], o.prototype, "branding", 1);
2071
- p([
2072
- b({ attribute: "branding-text" })
2073
- ], o.prototype, "brandingText", 1);
2072
+ ], n.prototype, "autoUpload", 1);
2074
2073
  p([
2075
- b({ attribute: "branding-url" })
2076
- ], o.prototype, "brandingUrl", 1);
2074
+ b({ converter: de })
2075
+ ], n.prototype, "branding", 1);
2077
2076
  p([
2078
2077
  b({ attribute: "logo-url" })
2079
- ], o.prototype, "logoUrl", 1);
2078
+ ], n.prototype, "logoUrl", 1);
2080
2079
  p([
2081
2080
  b({ attribute: "logo-text" })
2082
- ], o.prototype, "logoText", 1);
2081
+ ], n.prototype, "logoText", 1);
2083
2082
  p([
2084
2083
  b()
2085
- ], o.prototype, "heading", 1);
2084
+ ], n.prototype, "heading", 1);
2086
2085
  p([
2087
2086
  b()
2088
- ], o.prototype, "description", 1);
2087
+ ], n.prototype, "description", 1);
2089
2088
  p([
2090
2089
  b({ type: Number, attribute: "max-files" })
2091
- ], o.prototype, "maxFiles", 1);
2090
+ ], n.prototype, "maxFiles", 1);
2092
2091
  p([
2093
2092
  b({ attribute: "max-size" })
2094
- ], o.prototype, "maxSize", 1);
2093
+ ], n.prototype, "maxSize", 1);
2095
2094
  p([
2096
2095
  b({ attribute: "min-size" })
2097
- ], o.prototype, "minSize", 1);
2096
+ ], n.prototype, "minSize", 1);
2098
2097
  p([
2099
2098
  b()
2100
- ], o.prototype, "accept", 1);
2099
+ ], n.prototype, "accept", 1);
2101
2100
  p([
2102
- b({ converter: ce })
2103
- ], o.prototype, "rules", 1);
2101
+ b({ converter: le })
2102
+ ], n.prototype, "rules", 1);
2104
2103
  p([
2105
2104
  b()
2106
- ], o.prototype, "bucket", 1);
2105
+ ], n.prototype, "bucket", 1);
2107
2106
  p([
2108
- b({ converter: ce })
2109
- ], o.prototype, "metadata", 1);
2107
+ b({ converter: le })
2108
+ ], n.prototype, "metadata", 1);
2110
2109
  p([
2111
- b({ converter: ce })
2112
- ], o.prototype, "options", 1);
2110
+ b({ converter: le })
2111
+ ], n.prototype, "options", 1);
2113
2112
  p([
2114
2113
  b({ type: Boolean, attribute: "public-read" })
2115
- ], o.prototype, "publicRead", 1);
2114
+ ], n.prototype, "publicRead", 1);
2116
2115
  p([
2117
2116
  b({ attribute: "redirect-url" })
2118
- ], o.prototype, "redirectUrl", 1);
2117
+ ], n.prototype, "redirectUrl", 1);
2119
2118
  p([
2120
2119
  b({ attribute: !1 })
2121
- ], o.prototype, "onComplete", 1);
2120
+ ], n.prototype, "onComplete", 1);
2122
2121
  p([
2123
2122
  b({ attribute: !1 })
2124
- ], o.prototype, "onError", 1);
2123
+ ], n.prototype, "onError", 1);
2125
2124
  p([
2126
- te()
2127
- ], o.prototype, "items", 1);
2125
+ Q()
2126
+ ], n.prototype, "items", 1);
2128
2127
  p([
2129
- te()
2130
- ], o.prototype, "notice", 1);
2128
+ Q()
2129
+ ], n.prototype, "notice", 1);
2131
2130
  p([
2132
- te()
2133
- ], o.prototype, "busy", 1);
2131
+ Q()
2132
+ ], n.prototype, "busy", 1);
2134
2133
  p([
2135
- te()
2136
- ], o.prototype, "dragging", 1);
2134
+ Q()
2135
+ ], n.prototype, "dragging", 1);
2137
2136
  p([
2138
- te()
2139
- ], o.prototype, "editing", 1);
2140
- o = p([
2141
- Ce("singlebase-uploader")
2142
- ], o);
2143
- function et(r) {
2137
+ Q()
2138
+ ], n.prototype, "editing", 1);
2139
+ n = p([
2140
+ Se("singlebase-uploader")
2141
+ ], n);
2142
+ function Ze(r) {
2144
2143
  return !r.type.startsWith("image/") || typeof URL.createObjectURL != "function" ? "" : URL.createObjectURL(r);
2145
2144
  }
2146
2145
  function w(r) {
2147
2146
  r.preview && URL.revokeObjectURL(r.preview);
2148
2147
  }
2149
- function tt(r) {
2148
+ function Qe(r) {
2150
2149
  return r instanceof Error ? r.message : "";
2151
2150
  }
2152
2151
  export {
2153
- o as S,
2154
- qe as a,
2155
- Ke as i,
2156
- Be as r,
2157
- Re as s
2152
+ n as S,
2153
+ _e as a,
2154
+ Ie as i,
2155
+ Pe as r,
2156
+ Ne as s
2158
2157
  };
2159
- //# sourceMappingURL=uploader-vfczkX51.js.map
2158
+ //# sourceMappingURL=uploader-Cz9yfzfV.js.map