@feedmepos/mf-financing 0.0.26-dev → 0.0.28-dev

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,4 +1,4 @@
1
- import { defineComponent as LF, shallowRef as VV, ref as yd, toRef as Sm, computed as un, watch as Qc, onBeforeUnmount as Eh, openBlock as Nl, createElementBlock as Sl, Fragment as rh, renderList as wh, renderSlot as iV, createElementVNode as Rl, normalizeStyle as Tm, createCommentVNode as Bd, watchEffect as um, toValue as CR, resolveComponent as lU, createVNode as Vl, unref as P, toDisplayString as Gd, useAttrs as Xm, normalizeClass as pm, withCtx as eU, onUnmounted as Ch, createTextVNode as xh, createBlock as QV, h as xR, nextTick as Ym } from "vue";
1
+ import { defineComponent as LF, shallowRef as VV, ref as yd, toRef as Sm, computed as un, watch as Qc, onBeforeUnmount as Eh, openBlock as Nl, createElementBlock as Sl, Fragment as rh, renderList as wh, renderSlot as iV, createElementVNode as Ql, normalizeStyle as Tm, createCommentVNode as Bd, watchEffect as um, toValue as CR, resolveComponent as lU, createVNode as Wl, unref as f, toDisplayString as Gd, useAttrs as Xm, normalizeClass as pm, withCtx as eU, onUnmounted as Ch, createTextVNode as xh, createBlock as QV, h as xR, nextTick as Ym } from "vue";
2
2
  import { u as om, _ as Bm, C as ym, c as km } from "./app-CowUDzjt.js";
3
3
  import { useI18n as TR, useCoreStore as zm } from "@feedmepos/mf-common";
4
4
  import { useFormChild as jh, useSnackbar as Lm } from "@feedmepos/ui-library";
@@ -135,7 +135,7 @@ var Dm = Object.defineProperty, Oh = (U) => {
135
135
  4644: (
136
136
  /***/
137
137
  (U, l, d) => {
138
- var t = d(7811), Z = d(3724), F = d(4576), c = d(4901), n = d(34), s = d(9297), W = d(6955), V = d(6823), i = d(6699), Q = d(6840), N = d(2106), h = d(1625), b = d(2787), M = d(2967), J = d(8227), S = d(3392), G = d(1181), T = G.enforce, p = G.get, X = F.Int8Array, Y = X && X.prototype, B = F.Uint8ClampedArray, u = B && B.prototype, o = X && b(X), y = Y && b(Y), E = Object.prototype, D = F.TypeError, r = J("toStringTag"), I = S("TYPED_ARRAY_TAG"), L = "TypedArrayConstructor", v = t && !!M && W(F.opera) !== "Opera", A = !1, Wl, ul, Xl, el = {
138
+ var t = d(7811), Z = d(3724), F = d(4576), c = d(4901), n = d(34), s = d(9297), W = d(6955), V = d(6823), i = d(6699), Q = d(6840), N = d(2106), h = d(1625), b = d(2787), M = d(2967), J = d(8227), S = d(3392), G = d(1181), T = G.enforce, p = G.get, X = F.Int8Array, Y = X && X.prototype, B = F.Uint8ClampedArray, u = B && B.prototype, o = X && b(X), y = Y && b(Y), E = Object.prototype, D = F.TypeError, r = J("toStringTag"), I = S("TYPED_ARRAY_TAG"), L = "TypedArrayConstructor", v = t && !!M && W(F.opera) !== "Opera", A = !1, Vl, ul, Xl, el = {
139
139
  Int8Array: 1,
140
140
  Uint8Array: 1,
141
141
  Uint8ClampedArray: 1,
@@ -205,18 +205,18 @@ var Dm = Object.defineProperty, Oh = (U) => {
205
205
  ud = F[kU], ud && (!ud[_] || _l) && Q(ud, _, yl);
206
206
  }
207
207
  };
208
- for (Wl in el)
209
- ul = F[Wl], Xl = ul && ul.prototype, Xl ? T(Xl)[L] = ul : v = !1;
210
- for (Wl in Ml)
211
- ul = F[Wl], Xl = ul && ul.prototype, Xl && (T(Xl)[L] = ul);
208
+ for (Vl in el)
209
+ ul = F[Vl], Xl = ul && ul.prototype, Xl ? T(Xl)[L] = ul : v = !1;
210
+ for (Vl in Ml)
211
+ ul = F[Vl], Xl = ul && ul.prototype, Xl && (T(Xl)[L] = ul);
212
212
  if ((!v || !c(o) || o === Function.prototype) && (o = function() {
213
213
  throw new D("Incorrect invocation");
214
214
  }, v))
215
- for (Wl in el)
216
- F[Wl] && M(F[Wl], o);
215
+ for (Vl in el)
216
+ F[Vl] && M(F[Vl], o);
217
217
  if ((!v || !y || y === E) && (y = o.prototype, v))
218
- for (Wl in el)
219
- F[Wl] && M(F[Wl].prototype, y);
218
+ for (Vl in el)
219
+ F[Vl] && M(F[Vl].prototype, y);
220
220
  if (v && b(u) !== y && M(u, y), Z && !s(y, r)) {
221
221
  A = !0, N(y, r, {
222
222
  configurable: !0,
@@ -224,7 +224,7 @@ var Dm = Object.defineProperty, Oh = (U) => {
224
224
  return n(this) ? this[I] : void 0;
225
225
  }
226
226
  });
227
- for (Wl in el) F[Wl] && i(F[Wl], I, Wl);
227
+ for (Vl in el) F[Vl] && i(F[Vl], I, Vl);
228
228
  }
229
229
  U.exports = {
230
230
  NATIVE_ARRAY_BUFFER_VIEWS: v,
@@ -2470,7 +2470,7 @@ var Dm = Object.defineProperty, Oh = (U) => {
2470
2470
  8335: (
2471
2471
  /***/
2472
2472
  (U, l, d) => {
2473
- var t = d(6518), Z = d(3724), F = d(4576), c = d(7751), n = d(9504), s = d(9565), W = d(4901), V = d(34), i = d(4376), Q = d(9297), N = d(655), h = d(6198), b = d(4659), M = d(9039), J = d(8235), S = d(4495), G = F.JSON, T = F.Number, p = F.SyntaxError, X = G && G.parse, Y = c("Object", "keys"), B = Object.getOwnPropertyDescriptor, u = n("".charAt), o = n("".slice), y = n(/./.exec), E = n([].push), D = /^\d$/, r = /^[1-9]$/, I = /^[\d-]$/, L = /^[\t\n\r ]$/, v = 0, A = 1, Wl = function(w, z) {
2473
+ var t = d(6518), Z = d(3724), F = d(4576), c = d(7751), n = d(9504), s = d(9565), W = d(4901), V = d(34), i = d(4376), Q = d(9297), N = d(655), h = d(6198), b = d(4659), M = d(9039), J = d(8235), S = d(4495), G = F.JSON, T = F.Number, p = F.SyntaxError, X = G && G.parse, Y = c("Object", "keys"), B = Object.getOwnPropertyDescriptor, u = n("".charAt), o = n("".slice), y = n(/./.exec), E = n([].push), D = /^\d$/, r = /^[1-9]$/, I = /^[\d-]$/, L = /^[\t\n\r ]$/, v = 0, A = 1, Vl = function(w, z) {
2474
2474
  w = N(w);
2475
2475
  var C = new Ml(w, 0), ll = C.parse(), Jl = ll.value, _ = C.skip(L, ll.end);
2476
2476
  if (_ < w.length)
@@ -2600,7 +2600,7 @@ var Dm = Object.defineProperty, Oh = (U) => {
2600
2600
  });
2601
2601
  t({ target: "JSON", stat: !0, forced: BU }, {
2602
2602
  parse: function(w, z) {
2603
- return yU && !W(z) ? X(w) : Wl(w, z);
2603
+ return yU && !W(z) ? X(w) : Vl(w, z);
2604
2604
  }
2605
2605
  });
2606
2606
  }
@@ -2618,8 +2618,8 @@ var Dm = Object.defineProperty, Oh = (U) => {
2618
2618
  (U, l, d) => {
2619
2619
  var t = d(6518), Z = d(4576), F = d(7751), c = d(6980), n = d(4913).f, s = d(9297), W = d(679), V = d(3167), i = d(2603), Q = d(5002), N = d(8574), h = d(3724), b = d(6395), M = "DOMException", J = F("Error"), S = F(M), G = function() {
2620
2620
  W(this, T);
2621
- var I = arguments.length, L = i(I < 1 ? void 0 : arguments[0]), v = i(I < 2 ? void 0 : arguments[1], "Error"), A = new S(L, v), Wl = new J(L);
2622
- return Wl.name = M, n(A, "stack", c(1, N(Wl.stack, 1))), V(A, this, G), A;
2621
+ var I = arguments.length, L = i(I < 1 ? void 0 : arguments[0]), v = i(I < 2 ? void 0 : arguments[1], "Error"), A = new S(L, v), Vl = new J(L);
2622
+ return Vl.name = M, n(A, "stack", c(1, N(Vl.stack, 1))), V(A, this, G), A;
2623
2623
  }, T = G.prototype = S.prototype, p = "stack" in new J(M), X = "stack" in new S(1, 2), Y = S && h && Object.getOwnPropertyDescriptor(Z, M), B = !!Y && !(Y.writable && Y.configurable), u = p && !B && !X;
2624
2624
  t({ global: !0, constructor: !0, forced: b || u }, {
2625
2625
  // TODO: fix export logic
@@ -7223,7 +7223,7 @@ function Mi(U, l, d, t, Z, F, c, n) {
7223
7223
  if (h >= S)
7224
7224
  return;
7225
7225
  const G = W[F], T = W[F + 1], p = W[F + 2], X = W[c], Y = W[c + 1], B = W[c + 2], u = W[n], o = W[n + 1], y = W[n + 2], E = Math.round(h), D = Math.round(S);
7226
- let r, I, L, v, A, Wl, ul, Xl;
7226
+ let r, I, L, v, A, Vl, ul, Xl;
7227
7227
  for (let el = E; el <= D; el++) {
7228
7228
  if (el < M) {
7229
7229
  const z = el < h ? 0 : (h - el) / (h - M);
@@ -7233,11 +7233,11 @@ function Mi(U, l, d, t, Z, F, c, n) {
7233
7233
  el > S ? z = 1 : M === S ? z = 0 : z = (M - el) / (M - S), r = b - (b - J) * z, I = X - (X - u) * z, L = Y - (Y - o) * z, v = B - (B - y) * z;
7234
7234
  }
7235
7235
  let Ml;
7236
- el < h ? Ml = 0 : el > S ? Ml = 1 : Ml = (h - el) / (h - S), A = N - (N - J) * Ml, Wl = G - (G - u) * Ml, ul = T - (T - o) * Ml, Xl = p - (p - y) * Ml;
7236
+ el < h ? Ml = 0 : el > S ? Ml = 1 : Ml = (h - el) / (h - S), A = N - (N - J) * Ml, Vl = G - (G - u) * Ml, ul = T - (T - o) * Ml, Xl = p - (p - y) * Ml;
7237
7237
  const BU = Math.round(Math.min(r, A)), yU = Math.round(Math.max(r, A));
7238
7238
  let w = i * el + BU * 4;
7239
7239
  for (let z = BU; z <= yU; z++)
7240
- Ml = (r - z) / (r - A), Ml < 0 ? Ml = 0 : Ml > 1 && (Ml = 1), V[w++] = I - (I - Wl) * Ml | 0, V[w++] = L - (L - ul) * Ml | 0, V[w++] = v - (v - Xl) * Ml | 0, V[w++] = 255;
7240
+ Ml = (r - z) / (r - A), Ml < 0 ? Ml = 0 : Ml > 1 && (Ml = 1), V[w++] = I - (I - Vl) * Ml | 0, V[w++] = L - (L - ul) * Ml | 0, V[w++] = v - (v - Xl) * Ml | 0, V[w++] = 255;
7241
7241
  }
7242
7242
  }
7243
7243
  function J2(U, l, d) {
@@ -7346,14 +7346,14 @@ const QN = {
7346
7346
  if (L.groupLevel = l.groupLevel, this.setFillAndStrokeStyleToContext(L, Z, c), I.translate(-E.scale * V, -D.scale * i), L.transform(E.scale, 0, 0, D.scale, 0, 0), I.save(), this.clipBbox(L, V, i, Q, N), L.baseTransform = Yl(L.ctx), L.executeOperatorList(t), L.endDrawing(), I.restore(), X || Y) {
7347
7347
  const v = r.canvas;
7348
7348
  X && (T = s), Y && (p = W);
7349
- const A = this.getSizeAndScale(T, this.ctx.canvas.width, S), Wl = this.getSizeAndScale(p, this.ctx.canvas.height, G), ul = A.size, Xl = Wl.size, el = l.cachedCanvases.getCanvas("pattern-workaround", ul, Xl), Ml = el.context, BU = X ? Math.floor(h / s) : 0, yU = Y ? Math.floor(b / W) : 0;
7349
+ const A = this.getSizeAndScale(T, this.ctx.canvas.width, S), Vl = this.getSizeAndScale(p, this.ctx.canvas.height, G), ul = A.size, Xl = Vl.size, el = l.cachedCanvases.getCanvas("pattern-workaround", ul, Xl), Ml = el.context, BU = X ? Math.floor(h / s) : 0, yU = Y ? Math.floor(b / W) : 0;
7350
7350
  for (let w = 0; w <= BU; w++)
7351
7351
  for (let z = 0; z <= yU; z++)
7352
7352
  Ml.drawImage(v, ul * w, Xl * z, ul, Xl, 0, 0, ul, Xl);
7353
7353
  return {
7354
7354
  canvas: el.canvas,
7355
7355
  scaleX: A.scale,
7356
- scaleY: Wl.scale,
7356
+ scaleY: Vl.scale,
7357
7357
  offsetX: V,
7358
7358
  offsetY: i
7359
7359
  };
@@ -9950,7 +9950,7 @@ function sM(U = {}) {
9950
9950
  docId: d
9951
9951
  } = l, t = U.url ? WM(U.url) : null, Z = U.data ? VM(U.data) : null, F = U.httpHeaders || null, c = U.withCredentials === !0, n = U.password ?? null, s = U.range instanceof ze ? U.range : null, W = Number.isInteger(U.rangeChunkSize) && U.rangeChunkSize > 0 ? U.rangeChunkSize : UM;
9952
9952
  let V = U.worker instanceof $s ? U.worker : null;
9953
- const i = U.verbosity, Q = typeof U.docBaseUrl == "string" && !_V(U.docBaseUrl) ? U.docBaseUrl : null, N = typeof U.cMapUrl == "string" ? U.cMapUrl : null, h = U.cMapPacked !== !1, b = U.CMapReaderFactory || cM, M = typeof U.standardFontDataUrl == "string" ? U.standardFontDataUrl : null, J = U.StandardFontDataFactory || nM, S = U.stopAtErrors !== !0, G = Number.isInteger(U.maxImageSize) && U.maxImageSize > -1 ? U.maxImageSize : -1, T = U.isEvalSupported !== !1, p = typeof U.isOffscreenCanvasSupported == "boolean" ? U.isOffscreenCanvasSupported : !Td, X = typeof U.isImageDecoderSupported == "boolean" ? U.isImageDecoderSupported : !Td && (zd.platform.isFirefox || !globalThis.chrome), Y = Number.isInteger(U.canvasMaxAreaInBytes) ? U.canvasMaxAreaInBytes : -1, B = typeof U.disableFontFace == "boolean" ? U.disableFontFace : Td, u = U.fontExtraProperties === !0, o = U.enableXfa === !0, y = U.ownerDocument || globalThis.document, E = U.disableRange === !0, D = U.disableStream === !0, r = U.disableAutoFetch === !0, I = U.pdfBug === !0, L = U.CanvasFactory || FM, v = U.FilterFactory || aM, A = U.enableHWA === !0, Wl = s ? s.length : U.length ?? NaN, ul = typeof U.useSystemFonts == "boolean" ? U.useSystemFonts : !Td && !B, Xl = typeof U.useWorkerFetch == "boolean" ? U.useWorkerFetch : b === he && J === Me && N && M && _c(N, document.baseURI) && _c(M, document.baseURI), el = null;
9953
+ const i = U.verbosity, Q = typeof U.docBaseUrl == "string" && !_V(U.docBaseUrl) ? U.docBaseUrl : null, N = typeof U.cMapUrl == "string" ? U.cMapUrl : null, h = U.cMapPacked !== !1, b = U.CMapReaderFactory || cM, M = typeof U.standardFontDataUrl == "string" ? U.standardFontDataUrl : null, J = U.StandardFontDataFactory || nM, S = U.stopAtErrors !== !0, G = Number.isInteger(U.maxImageSize) && U.maxImageSize > -1 ? U.maxImageSize : -1, T = U.isEvalSupported !== !1, p = typeof U.isOffscreenCanvasSupported == "boolean" ? U.isOffscreenCanvasSupported : !Td, X = typeof U.isImageDecoderSupported == "boolean" ? U.isImageDecoderSupported : !Td && (zd.platform.isFirefox || !globalThis.chrome), Y = Number.isInteger(U.canvasMaxAreaInBytes) ? U.canvasMaxAreaInBytes : -1, B = typeof U.disableFontFace == "boolean" ? U.disableFontFace : Td, u = U.fontExtraProperties === !0, o = U.enableXfa === !0, y = U.ownerDocument || globalThis.document, E = U.disableRange === !0, D = U.disableStream === !0, r = U.disableAutoFetch === !0, I = U.pdfBug === !0, L = U.CanvasFactory || FM, v = U.FilterFactory || aM, A = U.enableHWA === !0, Vl = s ? s.length : U.length ?? NaN, ul = typeof U.useSystemFonts == "boolean" ? U.useSystemFonts : !Td && !B, Xl = typeof U.useWorkerFetch == "boolean" ? U.useWorkerFetch : b === he && J === Me && N && M && _c(N, document.baseURI) && _c(M, document.baseURI), el = null;
9954
9954
  Om(i);
9955
9955
  const Ml = {
9956
9956
  canvasFactory: new L({
@@ -9983,7 +9983,7 @@ function sM(U = {}) {
9983
9983
  password: n,
9984
9984
  disableAutoFetch: r,
9985
9985
  rangeChunkSize: W,
9986
- length: Wl,
9986
+ length: Vl,
9987
9987
  docBaseUrl: Q,
9988
9988
  enableXfa: o,
9989
9989
  evaluatorOptions: {
@@ -10037,7 +10037,7 @@ function sM(U = {}) {
10037
10037
  C = _c(t) ? SN : v2;
10038
10038
  z = new C({
10039
10039
  url: t,
10040
- length: Wl,
10040
+ length: Vl,
10041
10041
  httpHeaders: F,
10042
10042
  withCredentials: c,
10043
10043
  rangeChunkSize: W,
@@ -14922,7 +14922,7 @@ class KM {
14922
14922
  }
14923
14923
  T0 = /* @__PURE__ */ new WeakMap();
14924
14924
  var WU, ua, nd, K0, v0, tZ, ZZ, FZ, H0, Tl, KQ, ki, vQ, Xa, wN, SW, Fn, u0;
14925
- const FU = class f extends wl {
14925
+ const FU = class P extends wl {
14926
14926
  constructor(l) {
14927
14927
  super(l), m(this, Tl), m(this, WU, null), m(this, ua), H(this, "_drawId", null), R(this, ua, l.mustBeCommitted || !1), l.drawOutlines && (e(this, Tl, KQ).call(this, l), e(this, Tl, Xa).call(this));
14928
14928
  }
@@ -14946,7 +14946,7 @@ const FU = class f extends wl {
14946
14946
  }
14947
14947
  static updateDefaultParams(l, d) {
14948
14948
  const t = this.typesMap.get(l);
14949
- t && this._defaultDrawingOptions.updateProperty(t, d), this._currentParent && (a(f, nd).updateProperty(t, d), this._currentParent.drawLayer.updateProperties(this._currentDrawId, this._defaultDrawingOptions.toSVGProperties()));
14949
+ t && this._defaultDrawingOptions.updateProperty(t, d), this._currentParent && (a(P, nd).updateProperty(t, d), this._currentParent.drawLayer.updateProperties(this._currentDrawId, this._defaultDrawingOptions.toSVGProperties()));
14950
14950
  }
14951
14951
  updateParams(l, d) {
14952
14952
  const t = this.constructor.typesMap.get(l);
@@ -14985,13 +14985,13 @@ const FU = class f extends wl {
14985
14985
  }
14986
14986
  _onResizing() {
14987
14987
  var l;
14988
- (l = this.parent) == null || l.drawLayer.updateProperties(this._drawId, f._mergeSVGProperties(a(this, WU).getPathResizingSVGProperties(e(this, Tl, SW).call(this)), {
14988
+ (l = this.parent) == null || l.drawLayer.updateProperties(this._drawId, P._mergeSVGProperties(a(this, WU).getPathResizingSVGProperties(e(this, Tl, SW).call(this)), {
14989
14989
  bbox: e(this, Tl, u0).call(this)
14990
14990
  }));
14991
14991
  }
14992
14992
  _onResized() {
14993
14993
  var l;
14994
- (l = this.parent) == null || l.drawLayer.updateProperties(this._drawId, f._mergeSVGProperties(a(this, WU).getPathResizedSVGProperties(e(this, Tl, SW).call(this)), {
14994
+ (l = this.parent) == null || l.drawLayer.updateProperties(this._drawId, P._mergeSVGProperties(a(this, WU).getPathResizedSVGProperties(e(this, Tl, SW).call(this)), {
14995
14995
  bbox: e(this, Tl, u0).call(this)
14996
14996
  }));
14997
14997
  }
@@ -15003,7 +15003,7 @@ const FU = class f extends wl {
15003
15003
  }
15004
15004
  _onTranslated() {
15005
15005
  var l;
15006
- (l = this.parent) == null || l.drawLayer.updateProperties(this._drawId, f._mergeSVGProperties(a(this, WU).getPathTranslatedSVGProperties(e(this, Tl, SW).call(this), this.parentDimensions), {
15006
+ (l = this.parent) == null || l.drawLayer.updateProperties(this._drawId, P._mergeSVGProperties(a(this, WU).getPathTranslatedSVGProperties(e(this, Tl, SW).call(this), this.parentDimensions), {
15007
15007
  bbox: e(this, Tl, u0).call(this)
15008
15008
  }));
15009
15009
  }
@@ -15053,7 +15053,7 @@ const FU = class f extends wl {
15053
15053
  this.parent && !l ? (this._uiManager.removeShouldRescale(this), e(this, Tl, vQ).call(this)) : l && (this._uiManager.addShouldRescale(this), e(this, Tl, Xa).call(this, l), t = !this.parent && ((d = this.div) == null ? void 0 : d.classList.contains("selectedEditor"))), super.setParent(l), t && this.select();
15054
15054
  }
15055
15055
  rotate() {
15056
- this.parent && this.parent.drawLayer.updateProperties(this._drawId, f._mergeSVGProperties({
15056
+ this.parent && this.parent.drawLayer.updateProperties(this._drawId, P._mergeSVGProperties({
15057
15057
  bbox: e(this, Tl, u0).call(this)
15058
15058
  }, a(this, WU).updateRotation((this.parentRotation - this.rotation + 360) % 360)));
15059
15059
  }
@@ -15084,7 +15084,7 @@ const FU = class f extends wl {
15084
15084
  pointerId: W,
15085
15085
  pointerType: V
15086
15086
  } = Z;
15087
- if (a(f, ZZ) && a(f, ZZ) !== V)
15087
+ if (a(P, ZZ) && a(P, ZZ) !== V)
15088
15088
  return;
15089
15089
  const {
15090
15090
  viewport: {
@@ -15093,19 +15093,19 @@ const FU = class f extends wl {
15093
15093
  } = l, {
15094
15094
  width: Q,
15095
15095
  height: N
15096
- } = c.getBoundingClientRect(), h = R(f, K0, new AbortController()), b = l.combinedSignal(h);
15097
- if (a(f, tZ) || R(f, tZ, W), a(f, ZZ) ?? R(f, ZZ, V), window.addEventListener("pointerup", (M) => {
15096
+ } = c.getBoundingClientRect(), h = R(P, K0, new AbortController()), b = l.combinedSignal(h);
15097
+ if (a(P, tZ) || R(P, tZ, W), a(P, ZZ) ?? R(P, ZZ, V), window.addEventListener("pointerup", (M) => {
15098
15098
  var J;
15099
- a(f, tZ) === M.pointerId ? this._endDraw(M) : (J = a(f, FZ)) == null || J.delete(M.pointerId);
15099
+ a(P, tZ) === M.pointerId ? this._endDraw(M) : (J = a(P, FZ)) == null || J.delete(M.pointerId);
15100
15100
  }, {
15101
15101
  signal: b
15102
15102
  }), window.addEventListener("pointercancel", (M) => {
15103
15103
  var J;
15104
- a(f, tZ) === M.pointerId ? this._currentParent.endDrawingSession() : (J = a(f, FZ)) == null || J.delete(M.pointerId);
15104
+ a(P, tZ) === M.pointerId ? this._currentParent.endDrawingSession() : (J = a(P, FZ)) == null || J.delete(M.pointerId);
15105
15105
  }, {
15106
15106
  signal: b
15107
15107
  }), window.addEventListener("pointerdown", (M) => {
15108
- a(f, ZZ) === M.pointerType && ((a(f, FZ) || R(f, FZ, /* @__PURE__ */ new Set())).add(M.pointerId), a(f, nd).isCancellable() && (a(f, nd).removeLastElement(), a(f, nd).isEmpty() ? this._currentParent.endDrawingSession(!0) : this._endDraw(null)));
15108
+ a(P, ZZ) === M.pointerType && ((a(P, FZ) || R(P, FZ, /* @__PURE__ */ new Set())).add(M.pointerId), a(P, nd).isCancellable() && (a(P, nd).removeLastElement(), a(P, nd).isEmpty() ? this._currentParent.endDrawingSession(!0) : this._endDraw(null)));
15109
15109
  }, {
15110
15110
  capture: !0,
15111
15111
  passive: !1,
@@ -15115,42 +15115,42 @@ const FU = class f extends wl {
15115
15115
  }), c.addEventListener("pointermove", this._drawMove.bind(this), {
15116
15116
  signal: b
15117
15117
  }), c.addEventListener("touchmove", (M) => {
15118
- M.timeStamp === a(f, H0) && $d(M);
15118
+ M.timeStamp === a(P, H0) && $d(M);
15119
15119
  }, {
15120
15120
  signal: b
15121
- }), l.toggleDrawing(), (F = d._editorUndoBar) == null || F.hide(), a(f, nd)) {
15122
- l.drawLayer.updateProperties(this._currentDrawId, a(f, nd).startNew(n, s, Q, N, i));
15121
+ }), l.toggleDrawing(), (F = d._editorUndoBar) == null || F.hide(), a(P, nd)) {
15122
+ l.drawLayer.updateProperties(this._currentDrawId, a(P, nd).startNew(n, s, Q, N, i));
15123
15123
  return;
15124
15124
  }
15125
- d.updateUIForDefaultProperties(this), R(f, nd, this.createDrawerInstance(n, s, Q, N, i)), R(f, v0, this.getDefaultDrawingOptions()), this._currentParent = l, {
15125
+ d.updateUIForDefaultProperties(this), R(P, nd, this.createDrawerInstance(n, s, Q, N, i)), R(P, v0, this.getDefaultDrawingOptions()), this._currentParent = l, {
15126
15126
  id: this._currentDrawId
15127
- } = l.drawLayer.draw(this._mergeSVGProperties(a(f, v0).toSVGProperties(), a(f, nd).defaultSVGProperties), !0, !1);
15127
+ } = l.drawLayer.draw(this._mergeSVGProperties(a(P, v0).toSVGProperties(), a(P, nd).defaultSVGProperties), !0, !1);
15128
15128
  }
15129
15129
  static _drawMove(l) {
15130
15130
  var d;
15131
- if (R(f, H0, -1), !a(f, nd))
15131
+ if (R(P, H0, -1), !a(P, nd))
15132
15132
  return;
15133
15133
  const {
15134
15134
  offsetX: t,
15135
15135
  offsetY: Z,
15136
15136
  pointerId: F
15137
15137
  } = l;
15138
- if (a(f, tZ) === F) {
15139
- if (((d = a(f, FZ)) == null ? void 0 : d.size) >= 1) {
15138
+ if (a(P, tZ) === F) {
15139
+ if (((d = a(P, FZ)) == null ? void 0 : d.size) >= 1) {
15140
15140
  this._endDraw(l);
15141
15141
  return;
15142
15142
  }
15143
- this._currentParent.drawLayer.updateProperties(this._currentDrawId, a(f, nd).add(t, Z)), R(f, H0, l.timeStamp), $d(l);
15143
+ this._currentParent.drawLayer.updateProperties(this._currentDrawId, a(P, nd).add(t, Z)), R(P, H0, l.timeStamp), $d(l);
15144
15144
  }
15145
15145
  }
15146
15146
  static _cleanup(l) {
15147
- l && (this._currentDrawId = -1, this._currentParent = null, R(f, nd, null), R(f, v0, null), R(f, ZZ, null), R(f, H0, NaN)), a(f, K0) && (a(f, K0).abort(), R(f, K0, null), R(f, tZ, NaN), R(f, FZ, null));
15147
+ l && (this._currentDrawId = -1, this._currentParent = null, R(P, nd, null), R(P, v0, null), R(P, ZZ, null), R(P, H0, NaN)), a(P, K0) && (a(P, K0).abort(), R(P, K0, null), R(P, tZ, NaN), R(P, FZ, null));
15148
15148
  }
15149
15149
  static _endDraw(l) {
15150
15150
  const d = this._currentParent;
15151
15151
  if (d) {
15152
- if (d.toggleDrawing(!0), this._cleanup(!1), l && d.drawLayer.updateProperties(this._currentDrawId, a(f, nd).end(l.offsetX, l.offsetY)), this.supportMultipleDrawings) {
15153
- const t = a(f, nd), Z = this._currentDrawId, F = t.getLastElement();
15152
+ if (d.toggleDrawing(!0), this._cleanup(!1), l && d.drawLayer.updateProperties(this._currentDrawId, a(P, nd).end(l.offsetX, l.offsetY)), this.supportMultipleDrawings) {
15153
+ const t = a(P, nd), Z = this._currentDrawId, F = t.getLastElement();
15154
15154
  d.addCommands({
15155
15155
  cmd: () => {
15156
15156
  d.drawLayer.updateProperties(Z, t.setLastElement(F));
@@ -15170,7 +15170,7 @@ const FU = class f extends wl {
15170
15170
  const d = this._currentParent;
15171
15171
  if (!d)
15172
15172
  return null;
15173
- if (d.toggleDrawing(!0), d.cleanUndoStack(Fl.DRAW_STEP), !a(f, nd).isEmpty()) {
15173
+ if (d.toggleDrawing(!0), d.cleanUndoStack(Fl.DRAW_STEP), !a(P, nd).isEmpty()) {
15174
15174
  const {
15175
15175
  pageDimensions: [t, Z],
15176
15176
  scale: F
@@ -15179,8 +15179,8 @@ const FU = class f extends wl {
15179
15179
  offsetY: 0
15180
15180
  }, !1, {
15181
15181
  drawId: this._currentDrawId,
15182
- drawOutlines: a(f, nd).getOutlines(t * F, Z * F, F, this._INNER_MARGIN),
15183
- drawingOptions: a(f, v0),
15182
+ drawOutlines: a(P, nd).getOutlines(t * F, Z * F, F, this._INNER_MARGIN),
15183
+ drawingOptions: a(P, v0),
15184
15184
  mustBeCommitted: !l
15185
15185
  });
15186
15186
  return this._cleanup(!0), c;
@@ -18047,36 +18047,36 @@ class DR extends jb {
18047
18047
  const {
18048
18048
  AbortException: KJ,
18049
18049
  AnnotationEditorLayer: vJ,
18050
- AnnotationEditorParamsType: YT,
18050
+ AnnotationEditorParamsType: oT,
18051
18051
  AnnotationEditorType: fd,
18052
18052
  AnnotationEditorUIManager: HJ,
18053
18053
  AnnotationLayer: PJ,
18054
18054
  AnnotationMode: kt,
18055
- build: oT,
18056
- ColorPicker: BT,
18055
+ build: BT,
18056
+ ColorPicker: yT,
18057
18057
  createValidAbsoluteUrl: fJ,
18058
- DOMSVGFactory: yT,
18058
+ DOMSVGFactory: kT,
18059
18059
  DrawLayer: AJ,
18060
- FeatureTest: kT,
18060
+ FeatureTest: zT,
18061
18061
  fetchData: Uh,
18062
- getDocument: zT,
18063
- getFilenameFromUrl: LT,
18062
+ getDocument: LT,
18063
+ getFilenameFromUrl: IT,
18064
18064
  getPdfFilenameFromUrl: _J,
18065
- getXfaPageViewport: IT,
18066
- GlobalWorkerOptions: DT,
18067
- ImageKind: ET,
18068
- InvalidPDFException: rT,
18069
- isDataScheme: wT,
18065
+ getXfaPageViewport: DT,
18066
+ GlobalWorkerOptions: ET,
18067
+ ImageKind: rT,
18068
+ InvalidPDFException: wT,
18069
+ isDataScheme: CT,
18070
18070
  isPdfFile: qJ,
18071
- MissingPDFException: CT,
18072
- noContextMenu: xT,
18071
+ MissingPDFException: xT,
18072
+ noContextMenu: jT,
18073
18073
  normalizeUnicode: $J,
18074
- OPS: jT,
18074
+ OPS: OT,
18075
18075
  OutputScale: lG,
18076
- PasswordResponses: OT,
18077
- PDFDataRangeTransport: gT,
18078
- PDFDateString: KT,
18079
- PDFWorker: vT,
18076
+ PasswordResponses: gT,
18077
+ PDFDataRangeTransport: KT,
18078
+ PDFDateString: vT,
18079
+ PDFWorker: HT,
18080
18080
  PermissionFlag: ys,
18081
18081
  PixelsPerInch: Bt,
18082
18082
  RenderingCancelledException: ER,
@@ -18084,10 +18084,10 @@ const {
18084
18084
  shadow: EV,
18085
18085
  stopEvent: $Q,
18086
18086
  TextLayer: UG,
18087
- TouchManager: HT,
18088
- UnexpectedResponseException: PT,
18089
- Util: fT,
18090
- VerbosityLevel: AT,
18087
+ TouchManager: PT,
18088
+ UnexpectedResponseException: fT,
18089
+ Util: AT,
18090
+ VerbosityLevel: _T,
18091
18091
  version: th,
18092
18092
  XfaLayer: _i
18093
18093
  } = globalThis.pdfjsLib;
@@ -20983,10 +20983,10 @@ const WS = {
20983
20983
  return new DR();
20984
20984
  }
20985
20985
  }, VS = /* @__PURE__ */ new Map([["canvasWrapper", 0], ["textLayer", 1], ["annotationLayer", 2], ["annotationEditorLayer", 3], ["xfaLayer", 3]]);
20986
- var k0, RF, KW, z0, vW, NF, hF, mn, HW, PW, fW, _0, ra, wa, aZ, BF, Ql, q0, AW, Ac, iR, QR, RR, NR, hR, ph, Yh, eR, bR;
20986
+ var k0, RF, KW, z0, vW, NF, hF, mn, HW, PW, fW, _0, ra, wa, aZ, BF, Rl, q0, AW, Ac, iR, QR, RR, NR, hR, ph, Yh, eR, bR;
20987
20987
  class Wm {
20988
20988
  constructor(l) {
20989
- m(this, Ql), m(this, k0, kt.ENABLE_FORMS), m(this, RF, null), m(this, KW, !1), m(this, z0, !1), m(this, vW, !1), m(this, NF, null), m(this, hF, null), m(this, mn, null), m(this, HW, null), m(this, PW, 1), m(this, fW, 1), m(this, _0, null), m(this, ra, Dl.INITIAL), m(this, wa, lt.ENABLE), m(this, aZ, {
20989
+ m(this, Rl), m(this, k0, kt.ENABLE_FORMS), m(this, RF, null), m(this, KW, !1), m(this, z0, !1), m(this, vW, !1), m(this, NF, null), m(this, hF, null), m(this, mn, null), m(this, HW, null), m(this, PW, 1), m(this, fW, 1), m(this, _0, null), m(this, ra, Dl.INITIAL), m(this, wa, lt.ENABLE), m(this, aZ, {
20990
20990
  directDrawing: !0,
20991
20991
  initialOptionalContent: !0,
20992
20992
  regularAnnotations: !0
@@ -20997,7 +20997,7 @@ class Wm {
20997
20997
  const c = document.createElement("div");
20998
20998
  if (c.className = "page", c.setAttribute("data-page-number", this.id), c.setAttribute("role", "region"), c.setAttribute("data-l10n-id", "pdfjs-page-landmark"), c.setAttribute("data-l10n-args", JSON.stringify({
20999
20999
  page: this.id
21000
- })), this.div = c, e(this, Ql, AW).call(this), Z == null || Z.append(c), this._isStandalone) {
21000
+ })), this.div = c, e(this, Rl, AW).call(this), Z == null || Z.append(c), this._isStandalone) {
21001
21001
  Z == null || Z.style.setProperty("--scale-factor", this.scale * Bt.PDF_TO_CSS_UNITS), (t = this.pageColors) != null && t.background && (Z == null || Z.style.setProperty("--page-bg-color", this.pageColors.background));
21002
21002
  const {
21003
21003
  optionalContentConfigPromise: n
@@ -21034,7 +21034,7 @@ class Wm {
21034
21034
  this.viewport = l.getViewport({
21035
21035
  scale: this.scale * Bt.PDF_TO_CSS_UNITS,
21036
21036
  rotation: c
21037
- }), e(this, Ql, AW).call(this), this.reset();
21037
+ }), e(this, Rl, AW).call(this), this.reset();
21038
21038
  }
21039
21039
  destroy() {
21040
21040
  var l;
@@ -21080,7 +21080,7 @@ class Wm {
21080
21080
  const T = a(this, BF).indexOf(G);
21081
21081
  T >= 0 && (a(this, BF)[T] = null);
21082
21082
  }
21083
- i.removeAttribute("data-loaded"), N && this.annotationLayer.hide(), h && this.annotationEditorLayer.hide(), b && this.xfaLayer.hide(), M && this.textLayer.hide(), (V = this.structTreeLayer) == null || V.hide(), !F && a(this, RF) && (R(this, RF, null), e(this, Ql, eR).call(this));
21083
+ i.removeAttribute("data-loaded"), N && this.annotationLayer.hide(), h && this.annotationEditorLayer.hide(), b && this.xfaLayer.hide(), M && this.textLayer.hide(), (V = this.structTreeLayer) == null || V.hide(), !F && a(this, RF) && (R(this, RF, null), e(this, Rl, eR).call(this));
21084
21084
  }
21085
21085
  toggleEditingMode(l) {
21086
21086
  this.hasEditableAnnotations() && (R(this, vW, l), this.reset({
@@ -21105,7 +21105,7 @@ class Wm {
21105
21105
  if (this.viewport = this.viewport.clone({
21106
21106
  scale: this.scale * Bt.PDF_TO_CSS_UNITS,
21107
21107
  rotation: c
21108
- }), e(this, Ql, AW).call(this), this._isStandalone && ((F = this._container) == null || F.style.setProperty("--scale-factor", this.viewport.scale)), this.canvas) {
21108
+ }), e(this, Rl, AW).call(this), this._isStandalone && ((F = this._container) == null || F.style.setProperty("--scale-factor", this.viewport.scale)), this.canvas) {
21109
21109
  let n = !1;
21110
21110
  if (a(this, z0)) {
21111
21111
  if (this.maxCanvasPixels === 0)
@@ -21190,7 +21190,7 @@ class Wm {
21190
21190
  } else
21191
21191
  n.style.transform = W === 0 ? "" : `rotate(${W}deg)`;
21192
21192
  }
21193
- l && this.annotationLayer && e(this, Ql, iR).call(this), d && this.annotationEditorLayer && (this.drawLayer && e(this, Ql, RR).call(this), e(this, Ql, QR).call(this)), t && this.xfaLayer && e(this, Ql, NR).call(this), this.textLayer && (F ? (this.textLayer.hide(), (c = this.structTreeLayer) == null || c.hide()) : Z && e(this, Ql, hR).call(this));
21193
+ l && this.annotationLayer && e(this, Rl, iR).call(this), d && this.annotationEditorLayer && (this.drawLayer && e(this, Rl, RR).call(this), e(this, Rl, QR).call(this)), t && this.xfaLayer && e(this, Rl, NR).call(this), this.textLayer && (F ? (this.textLayer.hide(), (c = this.structTreeLayer) == null || c.hide()) : Z && e(this, Rl, hR).call(this));
21194
21194
  }
21195
21195
  get width() {
21196
21196
  return this.viewport.width;
@@ -21214,13 +21214,13 @@ class Wm {
21214
21214
  throw this.renderingState = Dl.FINISHED, new Error("pdfPage is not loaded");
21215
21215
  this.renderingState = Dl.RUNNING;
21216
21216
  let c = a(this, RF);
21217
- if (c || (c = R(this, RF, document.createElement("div")), c.classList.add("canvasWrapper"), e(this, Ql, q0).call(this, c, "canvasWrapper")), !this.textLayer && a(this, wa) !== lt.DISABLE && !Z.isPureXfa && (this._accessibilityManager || (this._accessibilityManager = new nS()), this.textLayer = new nm({
21217
+ if (c || (c = R(this, RF, document.createElement("div")), c.classList.add("canvasWrapper"), e(this, Rl, q0).call(this, c, "canvasWrapper")), !this.textLayer && a(this, wa) !== lt.DISABLE && !Z.isPureXfa && (this._accessibilityManager || (this._accessibilityManager = new nS()), this.textLayer = new nm({
21218
21218
  pdfPage: Z,
21219
21219
  highlighter: this._textHighlighter,
21220
21220
  accessibilityManager: this._accessibilityManager,
21221
21221
  enablePermissions: a(this, wa) === lt.ENABLE_PERMISSIONS,
21222
21222
  onAppend: (y) => {
21223
- this.l10n.pause(), e(this, Ql, q0).call(this, y, "textLayer"), this.l10n.resume();
21223
+ this.l10n.pause(), e(this, Rl, q0).call(this, y, "textLayer"), this.l10n.resume();
21224
21224
  }
21225
21225
  })), !this.annotationLayer && a(this, k0) !== kt.DISABLE) {
21226
21226
  const {
@@ -21246,7 +21246,7 @@ class Wm {
21246
21246
  accessibilityManager: this._accessibilityManager,
21247
21247
  annotationEditorUIManager: E,
21248
21248
  onAppend: (A) => {
21249
- e(this, Ql, q0).call(this, A, "annotationLayer");
21249
+ e(this, Rl, q0).call(this, A, "annotationLayer");
21250
21250
  }
21251
21251
  });
21252
21252
  }
@@ -21298,13 +21298,13 @@ class Wm {
21298
21298
  u.onContinue = n;
21299
21299
  const o = u.promise.then(async () => {
21300
21300
  var y;
21301
- h == null || h(!0), await e(this, Ql, bR).call(this, u), this.structTreeLayer || (this.structTreeLayer = new tm(Z, F.rawDims)), e(this, Ql, hR).call(this), this.annotationLayer && await e(this, Ql, iR).call(this);
21301
+ h == null || h(!0), await e(this, Rl, bR).call(this, u), this.structTreeLayer || (this.structTreeLayer = new tm(Z, F.rawDims)), e(this, Rl, hR).call(this), this.annotationLayer && await e(this, Rl, iR).call(this);
21302
21302
  const {
21303
21303
  annotationEditorUIManager: E
21304
21304
  } = a(this, NF);
21305
21305
  E && (this.drawLayer || (this.drawLayer = new cS({
21306
21306
  pageIndex: this.id
21307
- })), await e(this, Ql, RR).call(this), this.drawLayer.setParent(c), this.annotationEditorLayer || (this.annotationEditorLayer = new ZS({
21307
+ })), await e(this, Rl, RR).call(this), this.drawLayer.setParent(c), this.annotationEditorLayer || (this.annotationEditorLayer = new ZS({
21308
21308
  uiManager: E,
21309
21309
  pdfPage: Z,
21310
21310
  l10n: d,
@@ -21314,10 +21314,10 @@ class Wm {
21314
21314
  textLayer: this.textLayer,
21315
21315
  drawLayer: this.drawLayer.getDrawLayer(),
21316
21316
  onAppend: (D) => {
21317
- e(this, Ql, q0).call(this, D, "annotationEditorLayer");
21317
+ e(this, Rl, q0).call(this, D, "annotationEditorLayer");
21318
21318
  }
21319
- })), e(this, Ql, QR).call(this));
21320
- }, (y) => (y instanceof ER ? (Q == null || Q.remove(), e(this, Ql, eR).call(this)) : h == null || h(!0), e(this, Ql, bR).call(this, u, y)));
21319
+ })), e(this, Rl, QR).call(this));
21320
+ }, (y) => (y instanceof ER ? (Q == null || Q.remove(), e(this, Rl, eR).call(this)) : h == null || h(!0), e(this, Rl, bR).call(this, u, y)));
21321
21321
  if (Z.isPureXfa) {
21322
21322
  if (!this.xfaLayer) {
21323
21323
  const {
@@ -21330,7 +21330,7 @@ class Wm {
21330
21330
  linkService: E
21331
21331
  });
21332
21332
  }
21333
- e(this, Ql, NR).call(this);
21333
+ e(this, Rl, NR).call(this);
21334
21334
  }
21335
21335
  return l.setAttribute("data-loaded", !0), this.eventBus.dispatch("pagerender", {
21336
21336
  source: this,
@@ -21351,7 +21351,7 @@ class Wm {
21351
21351
  return l && d && t ? this.canvas : null;
21352
21352
  }
21353
21353
  }
21354
- k0 = /* @__PURE__ */ new WeakMap(), RF = /* @__PURE__ */ new WeakMap(), KW = /* @__PURE__ */ new WeakMap(), z0 = /* @__PURE__ */ new WeakMap(), vW = /* @__PURE__ */ new WeakMap(), NF = /* @__PURE__ */ new WeakMap(), hF = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), HW = /* @__PURE__ */ new WeakMap(), PW = /* @__PURE__ */ new WeakMap(), fW = /* @__PURE__ */ new WeakMap(), _0 = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), aZ = /* @__PURE__ */ new WeakMap(), BF = /* @__PURE__ */ new WeakMap(), Ql = /* @__PURE__ */ new WeakSet(), q0 = function(U, l) {
21354
+ k0 = /* @__PURE__ */ new WeakMap(), RF = /* @__PURE__ */ new WeakMap(), KW = /* @__PURE__ */ new WeakMap(), z0 = /* @__PURE__ */ new WeakMap(), vW = /* @__PURE__ */ new WeakMap(), NF = /* @__PURE__ */ new WeakMap(), hF = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), HW = /* @__PURE__ */ new WeakMap(), PW = /* @__PURE__ */ new WeakMap(), fW = /* @__PURE__ */ new WeakMap(), _0 = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), aZ = /* @__PURE__ */ new WeakMap(), BF = /* @__PURE__ */ new WeakMap(), Rl = /* @__PURE__ */ new WeakSet(), q0 = function(U, l) {
21355
21355
  const d = VS.get(l), t = a(this, BF)[d];
21356
21356
  if (a(this, BF)[d] = U, t) {
21357
21357
  t.replaceWith(U);
@@ -21390,7 +21390,7 @@ k0 = /* @__PURE__ */ new WeakMap(), RF = /* @__PURE__ */ new WeakMap(), KW = /*
21390
21390
  } catch (l) {
21391
21391
  console.error("#renderAnnotationLayer:", l), U = l;
21392
21392
  } finally {
21393
- e(this, Ql, Ac).call(this, "annotationlayerrendered", U);
21393
+ e(this, Rl, Ac).call(this, "annotationlayerrendered", U);
21394
21394
  }
21395
21395
  }, QR = async function() {
21396
21396
  let U = null;
@@ -21399,7 +21399,7 @@ k0 = /* @__PURE__ */ new WeakMap(), RF = /* @__PURE__ */ new WeakMap(), KW = /*
21399
21399
  } catch (l) {
21400
21400
  console.error("#renderAnnotationEditorLayer:", l), U = l;
21401
21401
  } finally {
21402
- e(this, Ql, Ac).call(this, "annotationeditorlayerrendered", U);
21402
+ e(this, Rl, Ac).call(this, "annotationeditorlayerrendered", U);
21403
21403
  }
21404
21404
  }, RR = async function() {
21405
21405
  try {
@@ -21412,11 +21412,11 @@ k0 = /* @__PURE__ */ new WeakMap(), RF = /* @__PURE__ */ new WeakMap(), KW = /*
21412
21412
  let l = null;
21413
21413
  try {
21414
21414
  const d = await this.xfaLayer.render(this.viewport, "display");
21415
- d != null && d.textDivs && this._textHighlighter && e(this, Ql, Yh).call(this, d.textDivs);
21415
+ d != null && d.textDivs && this._textHighlighter && e(this, Rl, Yh).call(this, d.textDivs);
21416
21416
  } catch (d) {
21417
21417
  console.error("#renderXfaLayer:", d), l = d;
21418
21418
  } finally {
21419
- (U = this.xfaLayer) != null && U.div && (this.l10n.pause(), e(this, Ql, q0).call(this, this.xfaLayer.div, "xfaLayer"), this.l10n.resume()), e(this, Ql, Ac).call(this, "xfalayerrendered", l);
21419
+ (U = this.xfaLayer) != null && U.div && (this.l10n.pause(), e(this, Rl, q0).call(this, this.xfaLayer.div, "xfaLayer"), this.l10n.resume()), e(this, Rl, Ac).call(this, "xfalayerrendered", l);
21420
21420
  }
21421
21421
  }, hR = async function() {
21422
21422
  if (!this.textLayer)
@@ -21429,7 +21429,7 @@ k0 = /* @__PURE__ */ new WeakMap(), RF = /* @__PURE__ */ new WeakMap(), KW = /*
21429
21429
  return;
21430
21430
  console.error("#renderTextLayer:", l), U = l;
21431
21431
  }
21432
- e(this, Ql, Ac).call(this, "textlayerrendered", U), e(this, Ql, ph).call(this);
21432
+ e(this, Rl, Ac).call(this, "textlayerrendered", U), e(this, Rl, ph).call(this);
21433
21433
  }, ph = async function() {
21434
21434
  var U, l, d;
21435
21435
  if (!this.textLayer)
@@ -22980,13 +22980,13 @@ const JS = ["id"], GS = ["id"], SS = {
22980
22980
  }
22981
22981
  const A = window.document.createElement("canvas");
22982
22982
  A.width = v.width * B, A.height = v.height * B, o.appendChild(A);
22983
- const Wl = A.cloneNode();
22984
- y.contentWindow.document.body.appendChild(Wl), await L.render({
22983
+ const Vl = A.cloneNode();
22984
+ y.contentWindow.document.body.appendChild(Vl), await L.render({
22985
22985
  canvasContext: A.getContext("2d"),
22986
22986
  intent: "print",
22987
22987
  transform: [B, 0, 0, B, 0, 0],
22988
22988
  viewport: v
22989
- }).promise, Wl.getContext("2d").drawImage(A, 0, 0);
22989
+ }).promise, Vl.getContext("2d").drawImage(A, 0, 0);
22990
22990
  })
22991
22991
  ), G && (E = window.document.title, window.document.title = G), (p = y.contentWindow) == null || p.focus(), (X = y.contentWindow) == null || X.print();
22992
22992
  } finally {
@@ -23109,7 +23109,7 @@ const JS = ["id"], GS = ["id"], SS = {
23109
23109
  }, [
23110
23110
  (Nl(!0), Sl(rh, null, wh(F.value, (T, p) => (Nl(), Sl("div", { key: T }, [
23111
23111
  iV(S.$slots, "before-page", { page: T }),
23112
- Rl("div", {
23112
+ Ql("div", {
23113
23113
  id: S.id && `${S.id}-${T}`,
23114
23114
  class: "vue-pdf-embed__page",
23115
23115
  style: Tm({
@@ -23117,7 +23117,7 @@ const JS = ["id"], GS = ["id"], SS = {
23117
23117
  position: "relative"
23118
23118
  })
23119
23119
  }, [
23120
- G[0] || (G[0] = Rl("canvas", null, null, -1)),
23120
+ G[0] || (G[0] = Ql("canvas", null, null, -1)),
23121
23121
  S.textLayer ? (Nl(), Sl("div", SS)) : Bd("", !0),
23122
23122
  S.annotationLayer ? (Nl(), Sl("div", TS)) : Bd("", !0)
23123
23123
  ], 12, GS),
@@ -23162,12 +23162,12 @@ const uS = "chevron_left", XS = "chevron_right", pS = { class: "row" }, YS = { c
23162
23162
  return (W, V) => {
23163
23163
  const i = lU("FmCircularProgress"), Q = lU("FmButton");
23164
23164
  return Nl(), Sl("div", null, [
23165
- Rl("div", pS, [
23166
- Rl("div", YS, [
23165
+ Ql("div", pS, [
23166
+ Ql("div", YS, [
23167
23167
  d.value ? (Nl(), Sl("div", oS, [
23168
- Vl(i, { size: "lg" })
23168
+ Wl(i, { size: "lg" })
23169
23169
  ])) : Bd("", !0),
23170
- Vl(P(Jm), {
23170
+ Wl(f(Jm), {
23171
23171
  class: "pdf-canvas",
23172
23172
  height: U.height,
23173
23173
  source: U.pdf,
@@ -23177,8 +23177,8 @@ const uS = "chevron_left", XS = "chevron_right", pS = { class: "row" }, YS = { c
23177
23177
  scale: 1,
23178
23178
  onLoaded: F
23179
23179
  }, null, 8, ["height", "source", "page"]),
23180
- Rl("div", BS, [
23181
- Vl(Q, {
23180
+ Ql("div", BS, [
23181
+ Wl(Q, {
23182
23182
  class: "pdf-overlay-btn",
23183
23183
  variant: "secondary",
23184
23184
  icon: "open_in_new",
@@ -23187,16 +23187,16 @@ const uS = "chevron_left", XS = "chevron_right", pS = { class: "row" }, YS = { c
23187
23187
  iV(W.$slots, "top-right", {}, void 0, !0)
23188
23188
  ]),
23189
23189
  t.value > 1 && !d.value ? (Nl(), Sl("div", yS, [
23190
- Rl("div", kS, [
23191
- Vl(Q, {
23190
+ Ql("div", kS, [
23191
+ Wl(Q, {
23192
23192
  variant: "plain",
23193
- icon: P(uS),
23193
+ icon: f(uS),
23194
23194
  onClick: c
23195
23195
  }, null, 8, ["icon"]),
23196
- Rl("div", zS, Gd(Z.value) + " / " + Gd(t.value), 1),
23197
- Vl(Q, {
23196
+ Ql("div", zS, Gd(Z.value) + " / " + Gd(t.value), 1),
23197
+ Wl(Q, {
23198
23198
  variant: "plain",
23199
- icon: P(XS),
23199
+ icon: f(XS),
23200
23200
  onClick: n
23201
23201
  }, null, 8, ["icon"])
23202
23202
  ])
@@ -23235,9 +23235,9 @@ const uS = "chevron_left", XS = "chevron_right", pS = { class: "row" }, YS = { c
23235
23235
  }), (n, s) => {
23236
23236
  const W = lU("FmCircularProgress"), V = lU("FmDialog");
23237
23237
  return Nl(), Sl("div", {
23238
- class: pm([P(d).class, "contents"])
23238
+ class: pm([f(d).class, "contents"])
23239
23239
  }, [
23240
- Vl(V, {
23240
+ Wl(V, {
23241
23241
  modelValue: t.value,
23242
23242
  "onUpdate:modelValue": s[2] || (s[2] = (i) => t.value = i)
23243
23243
  }, {
@@ -23245,20 +23245,20 @@ const uS = "chevron_left", XS = "chevron_right", pS = { class: "row" }, YS = { c
23245
23245
  iV(n.$slots, "default")
23246
23246
  ]),
23247
23247
  "dialog-header": eU(() => [
23248
- Rl("div", null, Gd(U.title), 1)
23248
+ Ql("div", null, Gd(U.title), 1)
23249
23249
  ]),
23250
23250
  default: eU(() => [
23251
23251
  F.value ? (Nl(), Sl("div", ES, [
23252
- Vl(DS, {
23252
+ Wl(DS, {
23253
23253
  pdf: U.src,
23254
23254
  height: 500
23255
23255
  }, null, 8, ["pdf"])
23256
23256
  ])) : Bd("", !0),
23257
23257
  c.value ? (Nl(), Sl("div", rS, [
23258
23258
  Z.value ? (Nl(), Sl("div", wS, [
23259
- Vl(W, { size: "lg" })
23259
+ Wl(W, { size: "lg" })
23260
23260
  ])) : Bd("", !0),
23261
- Rl("img", {
23261
+ Ql("img", {
23262
23262
  src: U.src,
23263
23263
  alt: U.title,
23264
23264
  class: "max-w-full max-h-[600px] object-contain",
@@ -23330,9 +23330,9 @@ const uS = "chevron_left", XS = "chevron_right", pS = { class: "row" }, YS = { c
23330
23330
  class: "flex-1"
23331
23331
  }, {
23332
23332
  default: eU(() => [
23333
- Vl(b, {
23333
+ Wl(b, {
23334
23334
  "prepend-icon": "preview",
23335
- label: `${P(d)("financing.upload.preview")} (${s.value})`,
23335
+ label: `${f(d)("financing.upload.preview")} (${s.value})`,
23336
23336
  variant: "secondary",
23337
23337
  size: "md"
23338
23338
  }, null, 8, ["label"])
@@ -23344,7 +23344,7 @@ const uS = "chevron_left", XS = "chevron_right", pS = { class: "row" }, YS = { c
23344
23344
  alt: U.label,
23345
23345
  class: "flex-1 w-full h-[120px] object-contain rounded-lg border border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-50"
23346
23346
  }, null, 8, KS)),
23347
- Vl(b, {
23347
+ Wl(b, {
23348
23348
  icon: "delete",
23349
23349
  variant: "destructive",
23350
23350
  size: "md",
@@ -23358,7 +23358,7 @@ const uS = "chevron_left", XS = "chevron_right", pS = { class: "row" }, YS = { c
23358
23358
  "max-file-size": U.maxFileSize ?? 5e6,
23359
23359
  onFileUpload: i
23360
23360
  }, null, 8, ["accept", "max-file-size"])),
23361
- P(F).length ? (Nl(), Sl("p", vS, Gd(P(F)[0]), 1)) : Bd("", !0)
23361
+ f(F).length ? (Nl(), Sl("p", vS, Gd(f(F)[0]), 1)) : Bd("", !0)
23362
23362
  ]);
23363
23363
  };
23364
23364
  }
@@ -23827,14 +23827,14 @@ const _S = { class: "space-y-4" }, qS = {
23827
23827
  class: "text-red-500 ml-0.5"
23828
23828
  }, lT = {
23829
23829
  key: 1,
23830
- class: "border border-fm-color-neutral-gray-200 rounded-lg p-4 bg-white"
23831
- }, dT = ["src"], UT = { class: "flex justify-end" }, tT = { class: "border-2 border-dashed border-fm-color-neutral-gray-300 rounded-lg p-6 text-center cursor-pointer hover:border-fm-color-primary-main transition-colors" }, ZT = { class: "text-sm text-fm-color-typo-secondary" }, FT = {
23830
+ class: "relative border border-fm-color-neutral-gray-200 rounded-lg bg-white h-28 pt-8 pb-8"
23831
+ }, dT = { class: "w-full h-full flex items-center justify-center bg-fm-color-neutral-gray-50 rounded-lg" }, UT = ["src"], tT = { class: "absolute bottom-2 right-2" }, ZT = { class: "border-2 border-dashed border-fm-color-neutral-gray-300 rounded-lg p-6 text-center cursor-pointer hover:border-fm-color-primary-main transition-colors" }, FT = { class: "text-sm text-fm-color-typo-secondary" }, cT = {
23832
23832
  key: 0,
23833
23833
  class: "text-center text-red-600 py-3 text-sm"
23834
- }, cT = { class: "flex justify-between gap-3 pt-4" }, aT = {
23834
+ }, aT = { class: "flex justify-between gap-3 pt-4" }, nT = {
23835
23835
  key: 3,
23836
23836
  class: "text-sm text-red-600"
23837
- }, nT = /* @__PURE__ */ LF({
23837
+ }, sT = /* @__PURE__ */ LF({
23838
23838
  __name: "SignatureBoard",
23839
23839
  props: {
23840
23840
  modelValue: {},
@@ -23887,19 +23887,19 @@ const _S = { class: "space-y-4" }, qS = {
23887
23887
  t.labelMark === "required" ? (Nl(), Sl("span", $S, "*")) : Bd("", !0)
23888
23888
  ])) : Bd("", !0),
23889
23889
  V.value ? (Nl(), Sl("div", lT, [
23890
- Rl("img", {
23891
- src: V.value,
23892
- alt: "Signature Preview",
23893
- class: "w-full h-28 object-contain bg-fm-color-neutral-gray-50 rounded"
23894
- }, null, 8, dT),
23895
- Rl("div", UT, [
23896
- Vl(J, {
23897
- class: "m-2",
23898
- "prepend-icon": "delete",
23899
- label: P(d)("financing.signature.clearSignature"),
23890
+ Ql("div", dT, [
23891
+ Ql("img", {
23892
+ src: V.value,
23893
+ alt: "Signature Preview",
23894
+ class: "max-h-full max-w-full object-contain"
23895
+ }, null, 8, UT)
23896
+ ]),
23897
+ Ql("div", tT, [
23898
+ Wl(J, {
23899
+ "prepend-icon": "ink_eraser",
23900
23900
  variant: "destructive",
23901
23901
  onClick: N
23902
- }, null, 8, ["label"])
23902
+ })
23903
23903
  ])
23904
23904
  ])) : V.value ? Bd("", !0) : (Nl(), QV(G, {
23905
23905
  key: 2,
@@ -23907,19 +23907,19 @@ const _S = { class: "space-y-4" }, qS = {
23907
23907
  "onUpdate:modelValue": M[1] || (M[1] = (T) => W.value = T)
23908
23908
  }, {
23909
23909
  "dialog-button": eU(() => [
23910
- Rl("div", tT, [
23911
- Vl(S, {
23910
+ Ql("div", ZT, [
23911
+ Wl(S, {
23912
23912
  name: "signature",
23913
23913
  class: "text-4xl text-fm-color-neutral-gray-400 mb-2"
23914
23914
  }),
23915
- Rl("p", ZT, Gd(P(d)("financing.signature.clickToAdd")), 1)
23915
+ Ql("p", FT, Gd(f(d)("financing.signature.clickToAdd")), 1)
23916
23916
  ])
23917
23917
  ]),
23918
23918
  "dialog-header": eU(() => [
23919
- Rl("div", null, Gd(P(d)("financing.signature.dialogTitle")), 1)
23919
+ Ql("div", null, Gd(f(d)("financing.signature.dialogTitle")), 1)
23920
23920
  ]),
23921
23921
  default: eU(() => [
23922
- Vl(P(Gm), {
23922
+ Wl(f(Gm), {
23923
23923
  ref_key: "signaturePad",
23924
23924
  ref: s,
23925
23925
  height: "250px",
@@ -23930,17 +23930,17 @@ const _S = { class: "space-y-4" }, qS = {
23930
23930
  },
23931
23931
  options: { penColor: "#000000" }
23932
23932
  }, null, 512),
23933
- n.value ? (Nl(), Sl("p", FT, Gd(P(d)("financing.signature.saveBefore")), 1)) : Bd("", !0),
23934
- Rl("div", cT, [
23935
- Vl(J, {
23933
+ n.value ? (Nl(), Sl("p", cT, Gd(f(d)("financing.signature.saveBefore")), 1)) : Bd("", !0),
23934
+ Ql("div", aT, [
23935
+ Wl(J, {
23936
23936
  variant: "secondary",
23937
- label: P(d)("financing.signature.clear"),
23937
+ label: f(d)("financing.signature.clear"),
23938
23938
  "prepend-icon": "refresh",
23939
23939
  onClick: M[0] || (M[0] = (T) => s.value.clearSignature())
23940
23940
  }, null, 8, ["label"]),
23941
- Vl(J, {
23941
+ Wl(J, {
23942
23942
  variant: "primary",
23943
- label: P(d)("financing.signature.saveSignature"),
23943
+ label: f(d)("financing.signature.saveSignature"),
23944
23944
  "prepend-icon": "check",
23945
23945
  onClick: Q
23946
23946
  }, null, 8, ["label"])
@@ -23948,11 +23948,11 @@ const _S = { class: "space-y-4" }, qS = {
23948
23948
  ]),
23949
23949
  _: 1
23950
23950
  }, 8, ["modelValue"])),
23951
- P(F).length ? (Nl(), Sl("p", aT, Gd(P(F)[0]), 1)) : Bd("", !0)
23951
+ f(F).length ? (Nl(), Sl("p", nT, Gd(f(F)[0]), 1)) : Bd("", !0)
23952
23952
  ]);
23953
23953
  };
23954
23954
  }
23955
- }), sT = { class: "grid grid-cols-1 lg:grid-cols-2 gap-16" }, WT = { class: "text-lg text-fm-color-typo-tertiary mt-6 mb-4 pb-2 border-b border-fm-color-gray-200" }, VT = { class: "grid grid-cols-1 md:grid-cols-2 gap-5" }, iT = { class: "text-lg text-fm-color-typo-tertiary mt-6 mb-4 pb-2 border-b border-fm-color-gray-200" }, QT = { class: "text-lg text-fm-color-typo-tertiary mt-6 mb-4 pb-2 border-b border-fm-color-gray-200" }, RT = { class: "space-y-4 mb-6" }, NT = { class: "text-lg text-fm-color-typo-tertiary mt-6 mb-4 pb-2 border-b border-fm-color-gray-200" }, hT = { class: "grid grid-cols-1 md:grid-cols-2 gap-5" }, eT = { class: "flex justify-end gap-4 pt-4 mt-10" }, bT = { class: "text-lg font-medium" }, mT = { class: "text-fm-color-typo-secondary mb-6" }, MT = { class: "flex justify-end gap-3" }, qT = /* @__PURE__ */ LF({
23955
+ }), WT = { class: "grid grid-cols-1 lg:grid-cols-2 gap-16" }, VT = { class: "text-lg text-fm-color-typo-tertiary mt-6 mb-4 pb-2 border-b border-fm-color-gray-200" }, iT = { class: "grid grid-cols-1 md:grid-cols-2 gap-5" }, QT = { class: "text-lg text-fm-color-typo-tertiary mt-6 mb-4 pb-2 border-b border-fm-color-gray-200" }, RT = { class: "text-lg text-fm-color-typo-tertiary mt-6 mb-4 pb-2 border-b border-fm-color-gray-200" }, NT = { class: "space-y-4 mb-6" }, hT = { class: "text-lg text-fm-color-typo-tertiary mt-6 mb-4 pb-2 border-b border-fm-color-gray-200" }, eT = { class: "grid grid-cols-1 md:grid-cols-2 gap-5" }, bT = { class: "flex justify-end gap-4 pt-4 mt-10" }, mT = { class: "mb-16" }, MT = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary mb-8" }, JT = { class: "w-full flex justify-self-center gap-8 my-6" }, $T = /* @__PURE__ */ LF({
23956
23956
  __name: "Submission",
23957
23957
  setup(U) {
23958
23958
  const l = Im(), { t: d } = TR(), { api: t } = om(), { currentRestaurant: Z } = zm(), F = Lm(), c = yd({
@@ -23991,23 +23991,31 @@ const _S = { class: "space-y-4" }, qS = {
23991
23991
  body: M
23992
23992
  });
23993
23993
  if (!T.ok)
23994
- throw new Error(`File upload failed: ${T.status} ${T.statusText}`);
23994
+ throw new Error(
23995
+ `File upload failed: ${T.status} ${T.statusText}`
23996
+ );
23995
23997
  return G;
23996
23998
  }
23997
23999
  async function h() {
23998
24000
  const M = Z.value;
23999
24001
  if (!M) {
24000
- F.open({
24001
- title: d("financing.apply.errors.noRestaurant"),
24002
- type: "error"
24003
- }, 3e3);
24002
+ F.open(
24003
+ {
24004
+ title: d("financing.apply.errors.noRestaurant"),
24005
+ type: "error"
24006
+ },
24007
+ 3e3
24008
+ );
24004
24009
  return;
24005
24010
  }
24006
24011
  s.value = !0;
24007
24012
  try {
24008
24013
  const J = M._id, S = c.value.bankStatements.map((Y) => Y.file).filter((Y) => Y !== null), G = await Promise.all(
24009
24014
  S.map((Y) => N(Y, J))
24010
- ), T = await N(c.value.signature, J), p = await N(
24015
+ ), T = await N(
24016
+ c.value.signature,
24017
+ J
24018
+ ), p = await N(
24011
24019
  c.value.businessRegistration,
24012
24020
  J
24013
24021
  ), X = {
@@ -24046,144 +24054,144 @@ const _S = { class: "space-y-4" }, qS = {
24046
24054
  return (M, J) => {
24047
24055
  const S = lU("FmTextField"), G = lU("FmButton"), T = lU("FmForm"), p = lU("FmDialog");
24048
24056
  return Nl(), QV(Bm, {
24049
- title: P(d)("financing.apply.title"),
24050
- description: P(d)("financing.apply.description"),
24057
+ title: f(d)("financing.apply.title"),
24058
+ description: f(d)("financing.apply.description"),
24051
24059
  "on-back": b,
24052
24060
  loading: !1
24053
24061
  }, {
24054
24062
  default: eU(() => [
24055
- Vl(T, {
24063
+ Wl(T, {
24056
24064
  class: "w-full",
24057
24065
  onValidationSuccess: Q,
24058
24066
  blameFormChildOnValidationFailed: ""
24059
24067
  }, {
24060
24068
  default: eU(() => [
24061
- Rl("div", sT, [
24062
- Rl("div", null, [
24063
- Rl("h3", WT, Gd(P(d)("financing.apply.sections.business")), 1),
24064
- Rl("div", VT, [
24065
- Vl(S, {
24069
+ Ql("div", WT, [
24070
+ Ql("div", null, [
24071
+ Ql("h3", VT, Gd(f(d)("financing.apply.sections.business")), 1),
24072
+ Ql("div", iT, [
24073
+ Wl(S, {
24066
24074
  modelValue: c.value.businessName,
24067
24075
  "onUpdate:modelValue": J[0] || (J[0] = (X) => c.value.businessName = X),
24068
- label: P(d)("financing.apply.fields.businessName"),
24069
- placeholder: P(d)("financing.apply.fields.businessNamePlaceholder"),
24076
+ label: f(d)("financing.apply.fields.businessName"),
24077
+ placeholder: f(d)("financing.apply.fields.businessNamePlaceholder"),
24070
24078
  rules: [
24071
- (X) => !!X.trim() || P(d)("financing.apply.errors.required")
24079
+ (X) => !!X.trim() || f(d)("financing.apply.errors.required")
24072
24080
  ],
24073
24081
  "label-mark": "required"
24074
24082
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
24075
- Vl(S, {
24083
+ Wl(S, {
24076
24084
  modelValue: c.value.registrationNumber,
24077
24085
  "onUpdate:modelValue": J[1] || (J[1] = (X) => c.value.registrationNumber = X),
24078
- label: P(d)("financing.apply.fields.registrationNumber"),
24079
- placeholder: P(d)("financing.apply.fields.registrationNumberPlaceholder"),
24086
+ label: f(d)("financing.apply.fields.registrationNumber"),
24087
+ placeholder: f(d)("financing.apply.fields.registrationNumberPlaceholder"),
24080
24088
  rules: [
24081
- (X) => !!X.trim() || P(d)("financing.apply.errors.required")
24089
+ (X) => !!X.trim() || f(d)("financing.apply.errors.required")
24082
24090
  ],
24083
24091
  "label-mark": "required"
24084
24092
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
24085
- Vl(S, {
24093
+ Wl(S, {
24086
24094
  modelValue: c.value.businessAddress,
24087
24095
  "onUpdate:modelValue": J[2] || (J[2] = (X) => c.value.businessAddress = X),
24088
- label: P(d)("financing.apply.fields.businessAddress"),
24089
- placeholder: P(d)("financing.apply.fields.businessAddressPlaceholder"),
24096
+ label: f(d)("financing.apply.fields.businessAddress"),
24097
+ placeholder: f(d)("financing.apply.fields.businessAddressPlaceholder"),
24090
24098
  rules: [
24091
- (X) => !!X.trim() || P(d)("financing.apply.errors.required")
24099
+ (X) => !!X.trim() || f(d)("financing.apply.errors.required")
24092
24100
  ],
24093
24101
  "label-mark": "required"
24094
24102
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
24095
- Vl(S, {
24103
+ Wl(S, {
24096
24104
  modelValue: c.value.taxIdentificationNo,
24097
24105
  "onUpdate:modelValue": J[3] || (J[3] = (X) => c.value.taxIdentificationNo = X),
24098
- label: P(d)("financing.apply.fields.taxIdentificationNo"),
24099
- placeholder: P(d)("financing.apply.fields.taxIdentificationNoPlaceholder"),
24106
+ label: f(d)("financing.apply.fields.taxIdentificationNo"),
24107
+ placeholder: f(d)("financing.apply.fields.taxIdentificationNoPlaceholder"),
24100
24108
  rules: [
24101
- (X) => !!X.trim() || P(d)("financing.apply.errors.required")
24109
+ (X) => !!X.trim() || f(d)("financing.apply.errors.required")
24102
24110
  ],
24103
24111
  "label-mark": "required"
24104
24112
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
24105
24113
  ]),
24106
- Rl("h3", iT, Gd(P(d)("financing.apply.sections.businessDocument")), 1),
24107
- Vl(zh, {
24114
+ Ql("h3", QT, Gd(f(d)("financing.apply.sections.businessDocument")), 1),
24115
+ Wl(zh, {
24108
24116
  "model-value": c.value.businessRegistration,
24109
- label: P(d)("financing.apply.fields.businessRegistration"),
24117
+ label: f(d)("financing.apply.fields.businessRegistration"),
24110
24118
  accept: ".pdf,.png,.jpg,.jpeg",
24111
24119
  rules: [
24112
- (X) => !!X || P(d)("financing.apply.errors.businessRegistrationRequired")
24120
+ (X) => !!X || f(d)("financing.apply.errors.businessRegistrationRequired")
24113
24121
  ],
24114
24122
  "label-mark": "required",
24115
24123
  "onUpdate:modelValue": V
24116
24124
  }, null, 8, ["model-value", "label", "rules"])
24117
24125
  ]),
24118
- Rl("div", null, [
24119
- Rl("h3", QT, Gd(P(d)("financing.apply.sections.documents")), 1),
24120
- Rl("div", RT, [
24126
+ Ql("div", null, [
24127
+ Ql("h3", RT, Gd(f(d)("financing.apply.sections.documents")), 1),
24128
+ Ql("div", NT, [
24121
24129
  (Nl(!0), Sl(rh, null, wh(c.value.bankStatements, (X, Y) => (Nl(), Sl("div", {
24122
24130
  key: X.id,
24123
24131
  class: "relative"
24124
24132
  }, [
24125
- Vl(zh, {
24133
+ Wl(zh, {
24126
24134
  "model-value": X.file,
24127
- label: `${P(d)("financing.apply.fields.bankStatement")} ${c.value.bankStatements.length > 1 ? Y + 1 : ""}`,
24135
+ label: `${f(d)("financing.apply.fields.bankStatement")} ${c.value.bankStatements.length > 1 ? Y + 1 : ""}`,
24128
24136
  accept: ".pdf,.png,.jpg,.jpeg",
24129
24137
  rules: Y === 0 ? [
24130
- (B) => !!B || P(d)("financing.apply.errors.bankStatementRequired")
24138
+ (B) => !!B || f(d)("financing.apply.errors.bankStatementRequired")
24131
24139
  ] : [],
24132
24140
  "label-mark": Y === 0 ? "required" : "none",
24133
24141
  "onUpdate:modelValue": (B) => i(Y, B)
24134
24142
  }, null, 8, ["model-value", "label", "rules", "label-mark", "onUpdate:modelValue"])
24135
24143
  ]))), 128))
24136
24144
  ]),
24137
- Vl(G, {
24145
+ Wl(G, {
24138
24146
  variant: "secondary",
24139
24147
  "text-color": "primary",
24140
24148
  "border-color": "primary",
24141
24149
  "prepend-icon": "add",
24142
- label: P(d)("financing.apply.buttons.addBankStatement"),
24150
+ label: f(d)("financing.apply.buttons.addBankStatement"),
24143
24151
  disabled: c.value.bankStatements.some((X) => X.file === null),
24144
24152
  onClick: W
24145
24153
  }, null, 8, ["label", "disabled"]),
24146
- Rl("h3", NT, Gd(P(d)("financing.apply.sections.signature")), 1),
24147
- Rl("div", hT, [
24148
- Vl(nT, {
24154
+ Ql("h3", hT, Gd(f(d)("financing.apply.sections.signature")), 1),
24155
+ Ql("div", eT, [
24156
+ Wl(sT, {
24149
24157
  modelValue: c.value.signature,
24150
24158
  "onUpdate:modelValue": J[4] || (J[4] = (X) => c.value.signature = X),
24151
- label: P(d)("financing.apply.fields.signature"),
24159
+ label: f(d)("financing.apply.fields.signature"),
24152
24160
  rules: [
24153
- (X) => !!X || P(d)("financing.apply.errors.signatureRequired")
24161
+ (X) => !!X || f(d)("financing.apply.errors.signatureRequired")
24154
24162
  ],
24155
24163
  "label-mark": "required"
24156
24164
  }, null, 8, ["modelValue", "label", "rules"]),
24157
- Vl(S, {
24165
+ Wl(S, {
24158
24166
  modelValue: c.value.signatoryName,
24159
24167
  "onUpdate:modelValue": J[5] || (J[5] = (X) => c.value.signatoryName = X),
24160
- label: P(d)("financing.apply.fields.signatoryName"),
24168
+ label: f(d)("financing.apply.fields.signatoryName"),
24161
24169
  rules: [
24162
- (X) => !!X.trim() || P(d)("financing.apply.errors.required")
24170
+ (X) => !!X.trim() || f(d)("financing.apply.errors.required")
24163
24171
  ],
24164
24172
  "label-mark": "required"
24165
24173
  }, null, 8, ["modelValue", "label", "rules"]),
24166
- Vl(S, {
24174
+ Wl(S, {
24167
24175
  modelValue: c.value.signatoryPosition,
24168
24176
  "onUpdate:modelValue": J[6] || (J[6] = (X) => c.value.signatoryPosition = X),
24169
- label: P(d)("financing.apply.fields.signatoryPosition"),
24177
+ label: f(d)("financing.apply.fields.signatoryPosition"),
24170
24178
  rules: [
24171
- (X) => !!X.trim() || P(d)("financing.apply.errors.required")
24179
+ (X) => !!X.trim() || f(d)("financing.apply.errors.required")
24172
24180
  ],
24173
24181
  "label-mark": "required"
24174
24182
  }, null, 8, ["modelValue", "label", "rules"])
24175
24183
  ])
24176
24184
  ])
24177
24185
  ]),
24178
- Rl("div", eT, [
24179
- Vl(G, {
24186
+ Ql("div", bT, [
24187
+ Wl(G, {
24180
24188
  variant: "secondary",
24181
- label: P(d)("financing.apply.buttons.cancel"),
24189
+ label: f(d)("financing.apply.buttons.cancel"),
24182
24190
  onClick: b
24183
24191
  }, null, 8, ["label"]),
24184
- Vl(G, {
24192
+ Wl(G, {
24185
24193
  variant: "primary",
24186
- label: P(d)("financing.apply.buttons.submit"),
24194
+ label: f(d)("financing.apply.buttons.submit"),
24187
24195
  loading: s.value,
24188
24196
  type: "submit"
24189
24197
  }, null, 8, ["label", "loading"])
@@ -24191,31 +24199,40 @@ const _S = { class: "space-y-4" }, qS = {
24191
24199
  ]),
24192
24200
  _: 1
24193
24201
  }),
24194
- Vl(p, {
24202
+ Wl(p, {
24195
24203
  modelValue: n.value,
24196
24204
  "onUpdate:modelValue": J[8] || (J[8] = (X) => n.value = X)
24197
24205
  }, {
24198
- "dialog-button": eU(() => [...J[9] || (J[9] = [
24199
- Rl("span", null, null, -1)
24200
- ])]),
24201
24206
  "dialog-header": eU(() => [
24202
- Rl("div", bT, Gd(P(d)("financing.apply.confirm.title")), 1)
24207
+ Ql("div", null, Gd(f(d)("financing.apply.confirm.title")), 1)
24203
24208
  ]),
24204
24209
  default: eU(() => [
24205
- Rl("p", mT, Gd(P(d)("financing.apply.confirm.message")), 1),
24206
- Rl("div", MT, [
24207
- Vl(G, {
24208
- variant: "secondary",
24209
- label: P(d)("financing.apply.confirm.cancel"),
24210
- onClick: J[7] || (J[7] = (X) => n.value = !1)
24211
- }, null, 8, ["label"]),
24212
- Vl(G, {
24213
- variant: "primary",
24214
- label: P(d)("financing.apply.confirm.confirm"),
24215
- loading: s.value,
24216
- onClick: h
24217
- }, null, 8, ["label", "loading"])
24218
- ])
24210
+ Wl(T, null, {
24211
+ default: eU(() => [
24212
+ Ql("div", mT, [
24213
+ Ql("p", MT, Gd(f(d)("financing.apply.confirm.message")), 1)
24214
+ ]),
24215
+ Ql("div", JT, [
24216
+ Wl(G, {
24217
+ type: "submit",
24218
+ variant: "primary",
24219
+ class: "w-full",
24220
+ loading: s.value,
24221
+ label: f(d)("financing.apply.confirm.confirm"),
24222
+ "dialog-action": "confirm",
24223
+ onClick: h
24224
+ }, null, 8, ["loading", "label"]),
24225
+ Wl(G, {
24226
+ variant: "secondary",
24227
+ class: "w-full",
24228
+ label: f(d)("financing.apply.confirm.cancel"),
24229
+ "dialog-action": "cancel",
24230
+ onClick: J[7] || (J[7] = (X) => n.value = !1)
24231
+ }, null, 8, ["label"])
24232
+ ])
24233
+ ]),
24234
+ _: 1
24235
+ })
24219
24236
  ]),
24220
24237
  _: 1
24221
24238
  }, 8, ["modelValue"])
@@ -24226,5 +24243,5 @@ const _S = { class: "space-y-4" }, qS = {
24226
24243
  }
24227
24244
  });
24228
24245
  export {
24229
- qT as default
24246
+ $T as default
24230
24247
  };