image-salon-sdk 1.0.45 → 1.0.47

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.
@@ -539,7 +539,7 @@ function G(s, e) {
539
539
  throw new Error(e);
540
540
  }
541
541
  const ni = 34028234663852886e22, ri = -34028234663852886e22, ii = 4294967295, si = 2147483647, oi = -2147483648;
542
- function Gt(s) {
542
+ function Jt(s) {
543
543
  if (typeof s != "number")
544
544
  throw new Error("invalid int 32: " + typeof s);
545
545
  if (!Number.isInteger(s) || s > si || s < oi)
@@ -628,7 +628,7 @@ class li {
628
628
  * Write a `int32` value, a signed 32 bit varint.
629
629
  */
630
630
  int32(e) {
631
- return Gt(e), qn(e, this.buf), this;
631
+ return Jt(e), qn(e, this.buf), this;
632
632
  }
633
633
  /**
634
634
  * Write a `bool` value, a variant.
@@ -676,7 +676,7 @@ class li {
676
676
  * Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
677
677
  */
678
678
  sfixed32(e) {
679
- Gt(e);
679
+ Jt(e);
680
680
  let t = new Uint8Array(4);
681
681
  return new DataView(t.buffer).setInt32(0, e, !0), this.raw(t);
682
682
  }
@@ -684,7 +684,7 @@ class li {
684
684
  * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
685
685
  */
686
686
  sint32(e) {
687
- return Gt(e), e = (e << 1 ^ e >> 31) >>> 0, qn(e, this.buf), this;
687
+ return Jt(e), e = (e << 1 ^ e >> 31) >>> 0, qn(e, this.buf), this;
688
688
  }
689
689
  /**
690
690
  * Write a `fixed64` value, a signed, fixed-length 64-bit integer.
@@ -1146,7 +1146,7 @@ class mi {
1146
1146
  let a;
1147
1147
  if (typeof e == "number" ? a = e : e === "" ? i = "empty string" : typeof e == "string" && (e.trim().length !== e.length ? i = "extra whitespace" : a = Number(e)), a === void 0)
1148
1148
  break;
1149
- return t == D.UINT32 ? hn(a) : Gt(a), a;
1149
+ return t == D.UINT32 ? hn(a) : Jt(a), a;
1150
1150
  case D.INT64:
1151
1151
  case D.SFIXED64:
1152
1152
  case D.SINT64:
@@ -1316,7 +1316,7 @@ class gi {
1316
1316
  case D.INT32:
1317
1317
  case D.SFIXED32:
1318
1318
  case D.SINT32:
1319
- return t === 0 ? o ? 0 : void 0 : (Gt(t), t);
1319
+ return t === 0 ? o ? 0 : void 0 : (Jt(t), t);
1320
1320
  case D.FIXED32:
1321
1321
  case D.UINT32:
1322
1322
  return t === 0 ? o ? 0 : void 0 : (hn(t), t);
@@ -3325,7 +3325,7 @@ const zi = new Ki(), Nn = new Hn("com.hamropatro.grpc.cms.FileService", [
3325
3325
  { name: "createUserFile", options: {}, I: Tr, O: Ye },
3326
3326
  { name: "search", options: {}, I: Ir, O: Mi }
3327
3327
  ]);
3328
- class Zt {
3328
+ class qt {
3329
3329
  constructor(e) {
3330
3330
  he(this, "typeName", Nn.typeName);
3331
3331
  he(this, "methods", Nn.methods);
@@ -3380,7 +3380,7 @@ class Zt {
3380
3380
  const Xi = async (s, e, t, n, r, i) => {
3381
3381
  var o;
3382
3382
  try {
3383
- const a = (o = window.ImageSalonSDK) == null ? void 0 : o.grpcConfig, c = new Zt(a), h = Lr.create();
3383
+ const a = (o = window.ImageSalonSDK) == null ? void 0 : o.grpcConfig, c = new qt(a), h = Lr.create();
3384
3384
  return h.name = s, h.nestedFolderName = e, h.url = t, h.type = n, h.folderName = r, await c.createFile(
3385
3385
  h,
3386
3386
  i
@@ -3391,7 +3391,7 @@ const Xi = async (s, e, t, n, r, i) => {
3391
3391
  }, Gi = async (s, e, t) => {
3392
3392
  var n;
3393
3393
  try {
3394
- const r = (n = window.ImageSalonSDK) == null ? void 0 : n.grpcConfig, i = new Zt(r), o = Tr.create();
3394
+ const r = (n = window.ImageSalonSDK) == null ? void 0 : n.grpcConfig, i = new qt(r), o = Tr.create();
3395
3395
  return o.url = s, o.type = e, await i.createUserFile(
3396
3396
  o,
3397
3397
  t
@@ -3402,7 +3402,7 @@ const Xi = async (s, e, t, n, r, i) => {
3402
3402
  }, Ji = async (s, e, t, n) => {
3403
3403
  var r;
3404
3404
  try {
3405
- const i = (r = window.ImageSalonSDK) == null ? void 0 : r.grpcConfig, o = new Zt(i), a = _r.create();
3405
+ const i = (r = window.ImageSalonSDK) == null ? void 0 : r.grpcConfig, o = new qt(i), a = _r.create();
3406
3406
  return a.folderName = s, a.cursor = e, a.limit = t, await o.getFilesByFolder(
3407
3407
  a,
3408
3408
  n
@@ -3413,7 +3413,7 @@ const Xi = async (s, e, t, n, r, i) => {
3413
3413
  }, Qi = async (s, e, t = 20, n) => {
3414
3414
  var r;
3415
3415
  try {
3416
- const i = (r = window.ImageSalonSDK) == null ? void 0 : r.grpcConfig, o = new Zt(i), a = Ir.create();
3416
+ const i = (r = window.ImageSalonSDK) == null ? void 0 : r.grpcConfig, o = new qt(i), a = Ir.create();
3417
3417
  return a.searchValue = s, a.cursor = e, a.limit = t, await o.search(
3418
3418
  a,
3419
3419
  n
@@ -3424,7 +3424,7 @@ const Xi = async (s, e, t, n, r, i) => {
3424
3424
  }, Yi = async (s, e, t, n, r, i, o, a, c) => {
3425
3425
  var h;
3426
3426
  try {
3427
- const l = (h = window.ImageSalonSDK) == null ? void 0 : h.grpcConfig, u = new Zt(l), d = Ye.create();
3427
+ const l = (h = window.ImageSalonSDK) == null ? void 0 : h.grpcConfig, u = new qt(l), d = Ye.create();
3428
3428
  return d.key = s, d.name = e, d.nestedFolderName = t, d.url = n, d.thumborUrl = r, d.proxyUrl = i, d.type = o, d.folderName = a, await u.updateFile(
3429
3429
  d,
3430
3430
  c
@@ -3435,7 +3435,7 @@ const Xi = async (s, e, t, n, r, i) => {
3435
3435
  }, es = async (s, e) => {
3436
3436
  var t;
3437
3437
  try {
3438
- const n = (t = window.ImageSalonSDK) == null ? void 0 : t.grpcConfig, r = new Zt(n), i = xr.create();
3438
+ const n = (t = window.ImageSalonSDK) == null ? void 0 : t.grpcConfig, r = new qt(n), i = xr.create();
3439
3439
  return i.key = s, await r.deleteFile(
3440
3440
  i,
3441
3441
  e
@@ -3897,7 +3897,7 @@ function or() {
3897
3897
  const t = document.createElementNS("http://www.w3.org/2000/svg", "path");
3898
3898
  return t.setAttribute("d", "m15 5 4 4"), s.appendChild(e), s.appendChild(t), document.body.appendChild(s), s;
3899
3899
  }
3900
- function Kt() {
3900
+ function zt() {
3901
3901
  const s = document.createElementNS("http://www.w3.org/2000/svg", "svg");
3902
3902
  s.setAttribute("xmlns", "http://www.w3.org/2000/folder"), s.setAttribute("x", "0px"), s.setAttribute("y", "0px"), s.setAttribute("width", "24"), s.setAttribute("height", "24"), s.setAttribute("viewBox", "0 0 48 48");
3903
3903
  const e = document.createElementNS("http://www.w3.org/2000/svg", "path");
@@ -4166,7 +4166,7 @@ class ys {
4166
4166
  }
4167
4167
  const je = new ys();
4168
4168
  var ct = /* @__PURE__ */ ((s) => (s[s.IMAGE = 0] = "IMAGE", s[s.AUDIO = 1] = "AUDIO", s[s.VIDEO = 2] = "VIDEO", s[s.ALL = 3] = "ALL", s[s.FOLDER = 4] = "FOLDER", s))(ct || {});
4169
- const Xt = {
4169
+ const Gt = {
4170
4170
  0: "IMAGE",
4171
4171
  1: "AUDIO",
4172
4172
  2: "VIDEO",
@@ -4176,13 +4176,13 @@ const Xt = {
4176
4176
  function dr(s) {
4177
4177
  switch (s) {
4178
4178
  case "image":
4179
- return Xt[ct.IMAGE];
4179
+ return Gt[ct.IMAGE];
4180
4180
  case "video":
4181
- return Xt[ct.VIDEO];
4181
+ return Gt[ct.VIDEO];
4182
4182
  case "audio":
4183
- return Xt[ct.AUDIO];
4183
+ return Gt[ct.AUDIO];
4184
4184
  default:
4185
- return Xt[ct.ALL];
4185
+ return Gt[ct.ALL];
4186
4186
  }
4187
4187
  }
4188
4188
  function bs(s) {
@@ -4231,7 +4231,7 @@ function K(s, e) {
4231
4231
  const t = document.createElement("div");
4232
4232
  return s && (t.className = s), e && (t.id = e), t;
4233
4233
  }
4234
- function zt(s, e, t) {
4234
+ function Xt(s, e, t) {
4235
4235
  const n = document.createElement("p");
4236
4236
  return e && (n.className = e), t && (n.id = t), s && (n.textContent = s), n;
4237
4237
  }
@@ -5393,12 +5393,12 @@ const ze = function() {
5393
5393
  for (let Pe = 0; Pe < tn; Pe++) {
5394
5394
  var _e = new Uint8Array(le[Y - 1 - Pe]);
5395
5395
  const rt = new Uint32Array(le[Y - 1 - Pe]);
5396
- let yt = ne, bt = pe, Rt = -1, qt = -1;
5396
+ let yt = ne, bt = pe, Rt = -1, Kt = -1;
5397
5397
  for (let xt = 0; xt < pe; xt++) for (let _t = 0; _t < ne; _t++)
5398
- Me[Ae = xt * ne + _t] != rt[Ae] && (_t < yt && (yt = _t), _t > Rt && (Rt = _t), xt < bt && (bt = xt), xt > qt && (qt = xt));
5399
- Rt == -1 && (yt = bt = Rt = qt = 0), me && ((1 & yt) == 1 && yt--, (1 & bt) == 1 && bt--);
5400
- const Pn = (Rt - yt + 1) * (qt - bt + 1);
5401
- Pn < ce && (ce = Pn, Dt = Pe, Ue = yt, Be = bt, Ke = Rt - yt + 1, nt = qt - bt + 1);
5398
+ Me[Ae = xt * ne + _t] != rt[Ae] && (_t < yt && (yt = _t), _t > Rt && (Rt = _t), xt < bt && (bt = xt), xt > Kt && (Kt = xt));
5399
+ Rt == -1 && (yt = bt = Rt = Kt = 0), me && ((1 & yt) == 1 && yt--, (1 & bt) == 1 && bt--);
5400
+ const Pn = (Rt - yt + 1) * (Kt - bt + 1);
5401
+ Pn < ce && (ce = Pn, Dt = Pe, Ue = yt, Be = bt, Ke = Rt - yt + 1, nt = Kt - bt + 1);
5402
5402
  }
5403
5403
  _e = new Uint8Array(le[Y - 1 - Dt]), Dt == 1 && (fe[Y - 1].dispose = 2), Re = new Uint8Array(Ke * nt * 4), s(_e, ne, pe, Re, Ke, nt, -Ue, -Be, 0), St = s(Le, ne, pe, Re, Ke, nt, -Ue, -Be, 3) ? 1 : 0, St == 1 ? d(Le, ne, pe, Re, { x: Ue, y: Be, width: Ke, height: nt }) : s(Le, ne, pe, Re, Ke, nt, -Ue, -Be, 0);
5404
5404
  } else Re = Le.slice(0);
@@ -6128,7 +6128,7 @@ async function mr(s) {
6128
6128
  throw Error(t);
6129
6129
  }
6130
6130
  }
6131
- var Et, be, Ce, ft, ge, ke, it, $e, Bt, At, st, Ge, vt, Ht, Jt, kt, Ft, pt, Ot, ot, at, Nt, It, mt, $t, Qt, Se, gt, Yt, wn, en, Te, Wt, Lt, Pt, yn, bn, jt;
6131
+ var Et, be, Ce, ft, ge, ke, it, $e, Bt, At, st, Ge, vt, Ht, $t, kt, Ft, pt, Ot, ot, at, Nt, It, mt, Wt, Qt, Se, gt, Yt, wn, en, Te, Pt, Lt, jt, yn, bn, Zt;
6132
6132
  class Ms {
6133
6133
  constructor(e) {
6134
6134
  X(this, Et);
@@ -6145,7 +6145,7 @@ class Ms {
6145
6145
  X(this, Ge);
6146
6146
  X(this, vt);
6147
6147
  X(this, Ht);
6148
- X(this, Jt);
6148
+ X(this, $t);
6149
6149
  X(this, kt);
6150
6150
  X(this, Ft);
6151
6151
  X(this, pt);
@@ -6155,7 +6155,7 @@ class Ms {
6155
6155
  X(this, Nt);
6156
6156
  X(this, It);
6157
6157
  X(this, mt);
6158
- X(this, $t);
6158
+ X(this, Wt);
6159
6159
  X(this, Qt);
6160
6160
  X(this, Se);
6161
6161
  X(this, gt);
@@ -6163,13 +6163,13 @@ class Ms {
6163
6163
  X(this, wn);
6164
6164
  X(this, en);
6165
6165
  X(this, Te);
6166
- X(this, Wt);
6167
- X(this, Lt);
6168
6166
  X(this, Pt);
6167
+ X(this, Lt);
6168
+ X(this, jt);
6169
6169
  X(this, yn);
6170
6170
  X(this, bn);
6171
- X(this, jt);
6172
- $(this, en, e.isAdmin), $(this, it, !1), $(this, Ht, e.handleUpload.bind(this)), $(this, Jt, e.handleCancel.bind(this)), $(this, Qt, e.accessToken), $(this, Pt, e == null ? void 0 : e.mode), this._grpcOptionInitializer(), this._init(e).then(() => {
6171
+ X(this, Zt);
6172
+ $(this, en, e.isAdmin), $(this, it, !1), $(this, Ht, e.handleUpload.bind(this)), $(this, $t, e.handleCancel.bind(this)), $(this, Qt, e.accessToken), $(this, jt, e == null ? void 0 : e.mode), this._grpcOptionInitializer(), this._init(e).then(() => {
6173
6173
  $(this, Yt, !0), this._renderView(e), this.updateWindowObject({ initialized: !0 }), this._initializeGrpcConfig(e.mode, e.endPoint);
6174
6174
  });
6175
6175
  }
@@ -6185,7 +6185,7 @@ class Ms {
6185
6185
  return e.isAdmin === !0;
6186
6186
  }
6187
6187
  _renderView(e) {
6188
- return this._isAdminOptions(e) ? ($(this, $e, !1), $(this, Bt, !1), $(this, kt, 0), $(this, at, ""), $(this, mt, !1), $(this, Pt, e.mode), $(this, Nt, !1), $(this, Lt, ""), $(this, gt, null), this._removeToastContainer(), this._renderAdminView(e)) : ($(this, Wt, ""), $(this, yn, e.restrictedFileSize), $(this, bn, e == null ? void 0 : e.localizedFileRestrictedMessage), $(this, jt, e == null ? void 0 : e.localizedErrorMessage), this._removeUserToast(), this._renderUserView(e));
6188
+ return this._isAdminOptions(e) ? ($(this, $e, !1), $(this, Bt, !1), $(this, kt, 0), $(this, at, ""), $(this, mt, !1), $(this, jt, e.mode), $(this, Nt, !1), $(this, Lt, ""), $(this, gt, null), this._removeToastContainer(), this._renderAdminView(e)) : ($(this, Pt, ""), $(this, yn, e.restrictedFileSize), $(this, bn, e == null ? void 0 : e.localizedFileRestrictedMessage), $(this, Zt, e == null ? void 0 : e.localizedErrorMessage), this._removeUserToast(), this._renderUserView(e));
6189
6189
  }
6190
6190
  _renderAdminView(e) {
6191
6191
  if (!F(this, Yt)) return;
@@ -6207,7 +6207,7 @@ class Ms {
6207
6207
  async _grpcOptionInitializer() {
6208
6208
  $(this, Se, await Es(
6209
6209
  F(this, Qt),
6210
- F(this, Pt)
6210
+ F(this, jt)
6211
6211
  ));
6212
6212
  }
6213
6213
  _selectedImageContainer() {
@@ -6228,11 +6228,11 @@ class Ms {
6228
6228
  }), $(this, be, K("browse-container"));
6229
6229
  const n = K();
6230
6230
  n.style.display = "flex", n.style.alignItems = "center", n.style.justifyContent = "space-between", n.style.padding = "10px 20px";
6231
- const r = zt("Folders", "folder-title"), i = He("", "add-folder-btn");
6231
+ const r = Xt("Folders", "folder-title"), i = He("", "add-folder-btn");
6232
6232
  i.append(ar()), this._createUpdateFolderDialog(i, "create"), n.append(r, i), F(this, Ft).append(n, F(this, pt));
6233
6233
  const o = this._renderSearchField(), a = this._createBrowseMoreContainer(), c = this._createBrowseImageMain(), h = K("footer");
6234
6234
  e.onclick = () => {
6235
- an.hide(), $(this, ke, []), $(this, ge, []), F(this, Jt).call(this);
6235
+ F(this, $t).call(this), an.hide(), $(this, ke, []), $(this, ge, []);
6236
6236
  }, F(this, vt).onclick = () => {
6237
6237
  F(this, Ht).call(this), an.hide(), $(this, ge, []), $(this, ke, []);
6238
6238
  }, h.append(e, F(this, vt));
@@ -6317,7 +6317,7 @@ class Ms {
6317
6317
  ), a = Rn();
6318
6318
  a.style.fill = "#fff", o == null || o.appendChild(a), o.addEventListener("click", () => {
6319
6319
  var h;
6320
- (h = F(this, Te)) == null || h.removeChild(r), this._removeUserToast();
6320
+ (h = F(this, Te)) == null || h.removeChild(r), this._removeUserToast(), F(this, $t).call(this);
6321
6321
  }), r == null || r.append(i, o), (c = F(this, Te)) == null || c.append(r);
6322
6322
  }
6323
6323
  _handleDroppedFile(e) {
@@ -6397,7 +6397,7 @@ class Ms {
6397
6397
  await this._uploadForUser(n, t), this._renderUserToast("Successfully Uploaded.", "success");
6398
6398
  } catch {
6399
6399
  this._renderUserToast(
6400
- F(this, jt) ? F(this, jt) : "Error uploading. Please try again later.",
6400
+ F(this, Zt) ? F(this, Zt) : "Error uploading. Please try again later.",
6401
6401
  "error"
6402
6402
  );
6403
6403
  } finally {
@@ -6412,13 +6412,13 @@ class Ms {
6412
6412
  ct[dr((n = t.type) == null ? void 0 : n.split("/")[0])],
6413
6413
  F(this, Se)
6414
6414
  );
6415
- $(this, Wt, r == null ? void 0 : r.response), F(this, Ht).call(this);
6415
+ $(this, Pt, r == null ? void 0 : r.response), F(this, Ht).call(this);
6416
6416
  } catch (r) {
6417
6417
  throw Error(r);
6418
6418
  }
6419
6419
  }
6420
6420
  _createAllAndSelectedTab(e) {
6421
- const t = K("select-options"), n = zt("Browse", "select"), r = zt(
6421
+ const t = K("select-options"), n = Xt("Browse", "select"), r = Xt(
6422
6422
  "Selected",
6423
6423
  "select",
6424
6424
  "selected-images-tab"
@@ -6474,7 +6474,7 @@ class Ms {
6474
6474
  $(this, at, ""), $(this, Nt, !1), $(this, mt, !1), this._fetchFilesFromFolder(F(this, At));
6475
6475
  return;
6476
6476
  }
6477
- $(this, mt, !0), $(this, $t, o.value), this._search(F(this, $t));
6477
+ $(this, mt, !0), $(this, Wt, o.value), this._search(F(this, Wt));
6478
6478
  }, 750);
6479
6479
  }), F(this, It).setAttribute("placeholder", "Search");
6480
6480
  const r = ms();
@@ -6489,7 +6489,7 @@ class Ms {
6489
6489
  const e = K("browse-image-main");
6490
6490
  return $(this, Ce, K("selected-image-container")), F(this, Ce).addEventListener("scroll", () => {
6491
6491
  const t = F(this, Ce).clientHeight, n = F(this, Ce).scrollTop, r = F(this, Ce).scrollHeight;
6492
- t + n >= r - 5 && F(this, Nt) && (F(this, mt) ? this._search(F(this, $t)) : this._fetchFilesFromFolder(F(this, At)));
6492
+ t + n >= r - 5 && F(this, Nt) && (F(this, mt) ? this._search(F(this, Wt)) : this._fetchFilesFromFolder(F(this, At)));
6493
6493
  }), e.appendChild(F(this, Ce)), e;
6494
6494
  }
6495
6495
  _renderFetchingSkeletonUI() {
@@ -6604,7 +6604,7 @@ class Ms {
6604
6604
  (e == null ? void 0 : e.type) === ct.IMAGE && (i = hr(e == null ? void 0 : e.url, "selected-image"), o = us()), (e == null ? void 0 : e.type) === ct.VIDEO && (i = As(e == null ? void 0 : e.url, "uploaded-video"), o = gs()), (e == null ? void 0 : e.type) === ct.AUDIO && (i = vs(e == null ? void 0 : e.url, "uploaded-audio"), o = hs());
6605
6605
  const a = K("selected-image-wrapper");
6606
6606
  a.setAttribute("data-key", e == null ? void 0 : e.key);
6607
- const c = zt(e == null ? void 0 : e.name, "selected-image-name"), h = ie("", "selected-image-type");
6607
+ const c = Xt(e == null ? void 0 : e.name, "selected-image-name"), h = ie("", "selected-image-type");
6608
6608
  h.append(o), n.append(h, r);
6609
6609
  const l = K();
6610
6610
  l.style.marginTop = "10px", l.style.display = "flex", l.style.justifyContent = "space-between", l.style.alignItems = "center", l.append(c), t.append(n, i), a.append(t, l);
@@ -6616,7 +6616,7 @@ class Ms {
6616
6616
  R.append(v, O);
6617
6617
  const x = He("", "action-option delete"), b = ie("Delete", ""), B = lr();
6618
6618
  x.append(B, b);
6619
- const m = e.name.split(".")[0], g = e.name.split(".")[1], A = Xt[e.type], N = K("edit-form-wrapper"), k = K("move-form-wrapper"), T = K("preview-details-container"), E = K("preview-details-wrapper"), U = K(
6619
+ const m = e.name.split(".")[0], g = e.name.split(".")[1], A = Gt[e.type], N = K("edit-form-wrapper"), k = K("move-form-wrapper"), T = K("preview-details-container"), E = K("preview-details-wrapper"), U = K(
6620
6620
  "preview-option-image-wrapper"
6621
6621
  ), w = K("preview-option-wrapper"), p = K("preview-option-wrapper"), M = K(
6622
6622
  "preview-option-wrapper"
@@ -6693,7 +6693,7 @@ class Ms {
6693
6693
  const ne = K("form-control"), pe = document.createElement("input");
6694
6694
  ne.appendChild(pe), pe.classList.add("input-field"), pe.value = e.name;
6695
6695
  const Ne = K("form-control"), me = ie("Current Folder:", "input-label"), Ie = K("folder-field current");
6696
- Ie.textContent = e.folderName, Ie.prepend(Kt()), Ne.append(me, Ie);
6696
+ Ie.textContent = e.folderName, Ie.prepend(zt()), Ne.append(me, Ie);
6697
6697
  const fe = K("form-control"), Y = K();
6698
6698
  Y.style.width = "100%", Y.style.display = "flex", Y.style.alignItems = "center", Y.style.justifyContent = "space-between";
6699
6699
  const Re = ie(
@@ -6712,7 +6712,7 @@ class Ms {
6712
6712
  "folder-field source",
6713
6713
  "source-folder-wrapper"
6714
6714
  ), Ue = document.createElement("span");
6715
- Ue.id = "source-folder-name", Ue.textContent = F(this, Lt) ? F(this, Lt) : e.folderName, Me.append(Kt(), Ue);
6715
+ Ue.id = "source-folder-name", Ue.textContent = F(this, Lt) ? F(this, Lt) : e.folderName, Me.append(zt(), Ue);
6716
6716
  let Be = "";
6717
6717
  tt.append(Le, Me), pe.onchange = (ce) => {
6718
6718
  Be = ce.target.value;
@@ -6847,7 +6847,7 @@ class Ms {
6847
6847
  const n = document.createElement("div");
6848
6848
  n.style.position = "relative", n.style.display = "flex", n.style.alignItems = "center", n.style.gap = "2px";
6849
6849
  const r = document.createElement("span"), i = document.createElement("span");
6850
- if (i.className = "folder-name", i.textContent = e == null ? void 0 : e.name, r.appendChild(Kt()), n.append(r, i), t.append(n), e.children && Object.keys(e.children).length > 0) {
6850
+ if (i.className = "folder-name", i.textContent = e == null ? void 0 : e.name, r.appendChild(zt()), n.append(r, i), t.append(n), e.children && Object.keys(e.children).length > 0) {
6851
6851
  const a = document.createElement("button");
6852
6852
  a.classList.add("expand-icon"), a.appendChild(ir()), n.prepend(a);
6853
6853
  const c = document.createElement("ul");
@@ -6918,7 +6918,7 @@ class Ms {
6918
6918
  const n = document.createElement("div");
6919
6919
  n.style.position = "relative", n.style.display = "flex", n.style.alignItems = "center", n.style.gap = "2px";
6920
6920
  const r = document.createElement("span"), i = document.createElement("span");
6921
- if (i.className = "folder-name", i.textContent = e == null ? void 0 : e.name, r.appendChild(Kt()), n.append(r, i), t.append(n), e.children && Object.keys(e.children).length > 0) {
6921
+ if (i.className = "folder-name", i.textContent = e == null ? void 0 : e.name, r.appendChild(zt()), n.append(r, i), t.append(n), e.children && Object.keys(e.children).length > 0) {
6922
6922
  const a = document.createElement("button");
6923
6923
  a.classList.add("expand-icon"), a.appendChild(ir()), n.prepend(a);
6924
6924
  const c = document.createElement("ul");
@@ -6953,7 +6953,7 @@ class Ms {
6953
6953
  }
6954
6954
  _renderToastContainer(e, t, n) {
6955
6955
  this._removeToastContainer(), $(this, ot, document.createElement("div")), F(this, ot).className = `message-container ${t}`;
6956
- const r = zt(e, "message"), i = t === "success" ? sr() : Ln(), o = He("");
6956
+ const r = Xt(e, "message"), i = t === "success" ? sr() : Ln(), o = He("");
6957
6957
  o.style.cursor = "pointer", o.style.border = "0", o.style.outline = "none", o.style.background = "transparent", o.appendChild(
6958
6958
  Rn(t === "error" ? "#ee3f3f" : "#4caf50")
6959
6959
  ), o.setAttribute(
@@ -7096,7 +7096,7 @@ class Ms {
7096
7096
  }
7097
7097
  }
7098
7098
  async _upload() {
7099
- return F(this, en) ? F(this, ge) : F(this, Wt);
7099
+ return F(this, en) ? F(this, ge) : F(this, Pt);
7100
7100
  }
7101
7101
  async _fetchFilesFromFolder(e) {
7102
7102
  var t, n, r;
@@ -7205,7 +7205,7 @@ class Ms {
7205
7205
  const l = document.createElement("input");
7206
7206
  l.style.paddingLeft = "40px";
7207
7207
  const u = ie();
7208
- u.appendChild(Kt()), u.style.position = "absolute", u.style.top = "50%", u.style.left = "5%", u.style.transform = "translate(-40%, -40%)", l.classList.add("input-field"), h.append(l, u), t === "update" && (l.value = n.name), l.onchange = (d) => {
7208
+ u.appendChild(zt()), u.style.position = "absolute", u.style.top = "50%", u.style.left = "5%", u.style.transform = "translate(-40%, -40%)", l.classList.add("input-field"), h.append(l, u), t === "update" && (l.value = n.name), l.onchange = (d) => {
7209
7209
  i = d.target.value;
7210
7210
  }, a.append(c, h), o.append(a), ye.show({
7211
7211
  content: o,
@@ -7238,7 +7238,7 @@ class Ms {
7238
7238
  this.updateWindowObject({ grpcConfig: r });
7239
7239
  }
7240
7240
  }
7241
- Et = new WeakMap(), be = new WeakMap(), Ce = new WeakMap(), ft = new WeakMap(), ge = new WeakMap(), ke = new WeakMap(), it = new WeakMap(), $e = new WeakMap(), Bt = new WeakMap(), At = new WeakMap(), st = new WeakMap(), Ge = new WeakMap(), vt = new WeakMap(), Ht = new WeakMap(), Jt = new WeakMap(), kt = new WeakMap(), Ft = new WeakMap(), pt = new WeakMap(), Ot = new WeakMap(), ot = new WeakMap(), at = new WeakMap(), Nt = new WeakMap(), It = new WeakMap(), mt = new WeakMap(), $t = new WeakMap(), Qt = new WeakMap(), Se = new WeakMap(), gt = new WeakMap(), Yt = new WeakMap(), wn = new WeakMap(), en = new WeakMap(), Te = new WeakMap(), Wt = new WeakMap(), Lt = new WeakMap(), Pt = new WeakMap(), yn = new WeakMap(), bn = new WeakMap(), jt = new WeakMap();
7241
+ Et = new WeakMap(), be = new WeakMap(), Ce = new WeakMap(), ft = new WeakMap(), ge = new WeakMap(), ke = new WeakMap(), it = new WeakMap(), $e = new WeakMap(), Bt = new WeakMap(), At = new WeakMap(), st = new WeakMap(), Ge = new WeakMap(), vt = new WeakMap(), Ht = new WeakMap(), $t = new WeakMap(), kt = new WeakMap(), Ft = new WeakMap(), pt = new WeakMap(), Ot = new WeakMap(), ot = new WeakMap(), at = new WeakMap(), Nt = new WeakMap(), It = new WeakMap(), mt = new WeakMap(), Wt = new WeakMap(), Qt = new WeakMap(), Se = new WeakMap(), gt = new WeakMap(), Yt = new WeakMap(), wn = new WeakMap(), en = new WeakMap(), Te = new WeakMap(), Pt = new WeakMap(), Lt = new WeakMap(), jt = new WeakMap(), yn = new WeakMap(), bn = new WeakMap(), Zt = new WeakMap();
7242
7242
  export {
7243
7243
  Ms as default
7244
7244
  };