@vc-shell/framework 1.1.61 → 1.1.63

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 (123) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/core/composables/useLanguages/index.ts +16 -73
  3. package/core/services/index.ts +1 -0
  4. package/core/services/language-service.ts +88 -0
  5. package/core/services/menu-service.ts +9 -20
  6. package/core/types/index.ts +1 -1
  7. package/dist/core/composables/useLanguages/index.d.ts +4 -15
  8. package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
  9. package/dist/core/services/index.d.ts +1 -0
  10. package/dist/core/services/index.d.ts.map +1 -1
  11. package/dist/core/services/language-service.d.ts +15 -0
  12. package/dist/core/services/language-service.d.ts.map +1 -0
  13. package/dist/core/services/menu-service.d.ts.map +1 -1
  14. package/dist/core/types/index.d.ts +1 -1
  15. package/dist/core/types/index.d.ts.map +1 -1
  16. package/dist/framework.js +12621 -9109
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/injection-keys.d.ts +2 -1
  19. package/dist/injection-keys.d.ts.map +1 -1
  20. package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
  21. package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -1
  22. package/dist/tsconfig.tsbuildinfo +1 -1
  23. package/dist/vendor-boolbase-A_-Pp38P.js +23 -0
  24. package/dist/{vendor-cheerio-CleDsuQZ.js → vendor-cheerio-C46iBpCu.js} +10 -10
  25. package/dist/{vendor-cheerio-select-CVkYl3Z-.js → vendor-cheerio-select-C8emRZsx.js} +5 -5
  26. package/dist/vendor-core-js-DFA7rceR.js +1206 -0
  27. package/dist/{vendor-css-select-CtIzVIiG.js → vendor-css-select-DR9bp36p.js} +3 -3
  28. package/dist/{vendor-dom-serializer-CugO0RdN.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
  29. package/dist/{vendor-domutils-D3Y2YQFR.js → vendor-domutils-BiVCXO8c.js} +2 -2
  30. package/dist/{vendor-entities-v26HW8wW.js → vendor-entities-CCReaWqU.js} +35 -34
  31. package/dist/{vendor-floating-ui-core-C9uEvi1M.js → vendor-floating-ui-core-DpX2jufl.js} +10 -10
  32. package/dist/{vendor-floating-ui-dom-CZkYGmv4.js → vendor-floating-ui-dom-C4AKN5Mo.js} +8 -8
  33. package/dist/{vendor-floating-ui-utils-Bx3BTd6_.js → vendor-floating-ui-utils-CRaCuFxS.js} +29 -29
  34. package/dist/{vendor-floating-ui-vue-CLOiVYP7.js → vendor-floating-ui-vue-OwtolkBv.js} +12 -12
  35. package/dist/{vendor-htmlparser2-CXL_uhMI.js → vendor-htmlparser2-CpQu33io.js} +1 -1
  36. package/dist/{vendor-iso-639-1-dVGfSUIM.js → vendor-iso-639-1-BJO6WZAt.js} +3 -3
  37. package/dist/{vendor-markdown-it-4AJoRTAg.js → vendor-markdown-it-RJo-N9ov.js} +1 -1
  38. package/dist/{vendor-markdown-it-task-lists-Byg1-ms9.js → vendor-markdown-it-task-lists-BxLwscWK.js} +2 -2
  39. package/dist/{vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js → vendor-microsoft-applicationinsights-analytics-js-CauId95v.js} +5 -5
  40. package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js → vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js} +3 -3
  41. package/dist/{vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js → vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js} +11 -11
  42. package/dist/{vendor-microsoft-applicationinsights-common-CDVnJ6MR.js → vendor-microsoft-applicationinsights-common-Bj6sQeoz.js} +7 -7
  43. package/dist/{vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js → vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js} +13 -13
  44. package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js → vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js} +68 -68
  45. package/dist/{vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js → vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js} +5 -5
  46. package/dist/{vendor-microsoft-applicationinsights-web-BRuQAzjU.js → vendor-microsoft-applicationinsights-web-8IaeIl22.js} +8 -8
  47. package/dist/{vendor-nevware21-ts-async-FAyg3c9V.js → vendor-nevware21-ts-async-DadHEt7N.js} +3 -3
  48. package/dist/{vendor-nth-check-BE7AeBMg.js → vendor-nth-check-CS1D-zr5.js} +1 -1
  49. package/dist/{vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js → vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js} +9 -9
  50. package/dist/{vendor-parse5-DqztJOGh.js → vendor-parse5-zq5Hn0y9.js} +3 -1
  51. package/dist/{vendor-prettier-D8C9GG-0.js → vendor-prettier-DaiSFsWE.js} +1184 -1167
  52. package/dist/vendor-prosemirror-commands-B8fhFbTo.js +385 -0
  53. package/dist/{vendor-prosemirror-dropcursor-CwZhBUcZ.js → vendor-prosemirror-dropcursor-CdHQ9kQG.js} +2 -2
  54. package/dist/{vendor-prosemirror-gapcursor-COcwb4TJ.js → vendor-prosemirror-gapcursor-W-ky5QTm.js} +4 -4
  55. package/dist/{vendor-prosemirror-history-DmPvdOpr.js → vendor-prosemirror-history-CrtTR5Cd.js} +2 -2
  56. package/dist/{vendor-prosemirror-keymap-CS1uIBpE.js → vendor-prosemirror-keymap-DWvoDWf6.js} +1 -1
  57. package/dist/{vendor-prosemirror-markdown-sO1Pn6SW.js → vendor-prosemirror-markdown-CuzWQ2N6.js} +2 -2
  58. package/dist/{vendor-prosemirror-model-DwojkhDQ.js → vendor-prosemirror-model-CVTn1Stc.js} +2 -2
  59. package/dist/{vendor-prosemirror-schema-list-rrOzMlj0.js → vendor-prosemirror-schema-list-Ds6x_KLX.js} +2 -2
  60. package/dist/{vendor-prosemirror-state-BN86J-Ko.js → vendor-prosemirror-state-CRUasa1V.js} +2 -2
  61. package/dist/{vendor-prosemirror-tables-C7XMqyon.js → vendor-prosemirror-tables-DzTfCeHX.js} +5 -5
  62. package/dist/{vendor-prosemirror-transform-B0c_LAV_.js → vendor-prosemirror-transform-BeDaI3CS.js} +1 -1
  63. package/dist/{vendor-prosemirror-view-DyWzmy4t.js → vendor-prosemirror-view-BGYdOWiJ.js} +76 -74
  64. package/dist/{vendor-semver-BoKYtkQw.js → vendor-semver-FuwqpOls.js} +435 -435
  65. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
  66. package/dist/{vendor-tippy-js-BGdgwGX-.js → vendor-tippy-js-nNhcw_JH.js} +15 -15
  67. package/dist/{vendor-tiptap-core-BgwY40dr.js → vendor-tiptap-core-dlTW4S11.js} +76 -65
  68. package/dist/{vendor-tiptap-extension-blockquote-BVW0VVC0.js → vendor-tiptap-extension-blockquote-iAIM-meW.js} +1 -1
  69. package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js} +1 -1
  70. package/dist/{vendor-tiptap-extension-bubble-menu-DhWtcCL3.js → vendor-tiptap-extension-bubble-menu-BRWVLpun.js} +6 -6
  71. package/dist/{vendor-tiptap-extension-bullet-list-Ba21suMY.js → vendor-tiptap-extension-bullet-list-DfU428XB.js} +1 -1
  72. package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js} +1 -1
  73. package/dist/{vendor-tiptap-extension-code-block-B2KK5g8S.js → vendor-tiptap-extension-code-block-V26-erQk.js} +2 -2
  74. package/dist/{vendor-tiptap-extension-document-CW8jybcc.js → vendor-tiptap-extension-document-BYF_BzDD.js} +1 -1
  75. package/dist/{vendor-tiptap-extension-dropcursor-DdRuETKJ.js → vendor-tiptap-extension-dropcursor-DqjaaFex.js} +2 -2
  76. package/dist/{vendor-tiptap-extension-floating-menu-Da7fpnr7.js → vendor-tiptap-extension-floating-menu-vptdm_Y0.js} +6 -6
  77. package/dist/{vendor-tiptap-extension-gapcursor-CafmhWSf.js → vendor-tiptap-extension-gapcursor-DxLBw8V0.js} +2 -2
  78. package/dist/{vendor-tiptap-extension-hard-break-n9aI6ybJ.js → vendor-tiptap-extension-hard-break-DygHhzqw.js} +1 -1
  79. package/dist/{vendor-tiptap-extension-heading-xj24usOy.js → vendor-tiptap-extension-heading-C-ArDc3_.js} +1 -1
  80. package/dist/{vendor-tiptap-extension-history-C2uOLua2.js → vendor-tiptap-extension-history-C41RW3Bv.js} +2 -2
  81. package/dist/{vendor-tiptap-extension-horizontal-rule--uXIYeaK.js → vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js} +2 -2
  82. package/dist/{vendor-tiptap-extension-image-BJx5lyoG.js → vendor-tiptap-extension-image-DChcWb4v.js} +1 -1
  83. package/dist/{vendor-tiptap-extension-italic-DPAViC4y.js → vendor-tiptap-extension-italic-BNJrFvrR.js} +1 -1
  84. package/dist/{vendor-tiptap-extension-link-aDGmrWTi.js → vendor-tiptap-extension-link-DFN4ENph.js} +2 -2
  85. package/dist/{vendor-tiptap-extension-list-item-DE9dJ64Q.js → vendor-tiptap-extension-list-item-3qKYhGHe.js} +1 -1
  86. package/dist/{vendor-tiptap-extension-ordered-list-CcNtDDJm.js → vendor-tiptap-extension-ordered-list-D3QL0eiW.js} +1 -1
  87. package/dist/{vendor-tiptap-extension-paragraph-DvlrAzIW.js → vendor-tiptap-extension-paragraph-DZfkaJJ-.js} +1 -1
  88. package/dist/{vendor-tiptap-extension-placeholder-DyW7px66.js → vendor-tiptap-extension-placeholder-CoOAmd0a.js} +7 -7
  89. package/dist/{vendor-tiptap-extension-strike-DMMLEFkd.js → vendor-tiptap-extension-strike-BlGNozxy.js} +1 -1
  90. package/dist/{vendor-tiptap-extension-table-BpegTABL.js → vendor-tiptap-extension-table-CZn6Xykb.js} +16 -16
  91. package/dist/{vendor-tiptap-extension-table-cell-8rHRq4BW.js → vendor-tiptap-extension-table-cell-BQuS-XFD.js} +1 -1
  92. package/dist/{vendor-tiptap-extension-table-header-DZ1y7iS2.js → vendor-tiptap-extension-table-header-ZrtK7HiQ.js} +1 -1
  93. package/dist/{vendor-tiptap-extension-table-row-DmkNUw4L.js → vendor-tiptap-extension-table-row-CBrXvqsO.js} +1 -1
  94. package/dist/{vendor-tiptap-extension-text-Cwas3TQT.js → vendor-tiptap-extension-text-DwA7jrBq.js} +1 -1
  95. package/dist/{vendor-tiptap-extension-underline-Hz5uJRfR.js → vendor-tiptap-extension-underline-CIVtuRLl.js} +1 -1
  96. package/dist/{vendor-tiptap-markdown-Dj1XZWg4.js → vendor-tiptap-markdown-CidDIpZ-.js} +12 -11
  97. package/dist/vendor-tiptap-pm-9TOy65Oe.js +1 -0
  98. package/dist/{vendor-tiptap-starter-kit-Cxj07T7v.js → vendor-tiptap-starter-kit-BdU6UtqB.js} +19 -19
  99. package/dist/{vendor-tiptap-vue-3-DF4kzEFI.js → vendor-tiptap-vue-3-CnYccgV4.js} +3 -3
  100. package/dist/{vendor-truncate-html-Bx1HJzRq.js → vendor-truncate-html-DYC0Lj9o.js} +1 -1
  101. package/dist/{vendor-vee-validate-rules-DDeNM2Gc.js → vendor-vee-validate-rules-4oWUZPpG.js} +4 -2
  102. package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js} +88 -86
  103. package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
  104. package/dist/{vendor-vue3-application-insights-dAGGfA_M.js → vendor-vue3-application-insights-C8xbxXXX.js} +2 -2
  105. package/dist/{vendor-vuepic-vue-datepicker-_JffV5We.js → vendor-vuepic-vue-datepicker-DkHsqyoL.js} +257 -257
  106. package/dist/vendor-vueuse-components-B0zqjNRW.js +542 -0
  107. package/dist/{vendor-vueuse-core-cB-c7DzH.js → vendor-vueuse-core-CYgwn-B2.js} +31 -30
  108. package/dist/{vendor-vueuse-shared-Dg7PMM0z.js → vendor-vueuse-shared-B_uDJJ6V.js} +33 -33
  109. package/package.json +5 -5
  110. package/shared/components/language-selector/language-selector.vue +16 -8
  111. package/shared/components/theme-selector/theme-selector.vue +5 -10
  112. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +4 -4
  113. package/dist/vendor-boolbase-Bgn9I6iN.js +0 -21
  114. package/dist/vendor-core-js-l0sNRNKZ.js +0 -1
  115. package/dist/vendor-intlify-core-base-FyGSkd6r.js +0 -1130
  116. package/dist/vendor-intlify-message-compiler-D_vL9-DK.js +0 -945
  117. package/dist/vendor-intlify-shared-BMbzEQSk.js +0 -144
  118. package/dist/vendor-prosemirror-commands-C6teL3Xo.js +0 -344
  119. package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +0 -1
  120. package/dist/vendor-tiptap-pm-l0sNRNKZ.js +0 -1
  121. package/dist/vendor-vue-demi-l0sNRNKZ.js +0 -1
  122. package/dist/vendor-vue-i18n-DC6m6S7G.js +0 -1359
  123. package/dist/vendor-vueuse-components-DtK_mxpP.js +0 -219
@@ -1,18 +1,18 @@
1
- import { ref as S, getCurrentInstance as O, version as M, computed as $, watch as P } from "vue";
1
+ import { ref as x, getCurrentInstance as N, version as O, computed as $, watch as P } from "vue";
2
2
  /**
3
3
  * Vue Currency Input 3.2.1
4
4
  * (c) 2018-2025 Matthias Stiller
5
5
  * @license MIT
6
6
  */
7
- var y;
7
+ var F;
8
8
  (function(s) {
9
9
  s.symbol = "symbol", s.narrowSymbol = "narrowSymbol", s.code = "code", s.name = "name", s.hidden = "hidden";
10
- })(y || (y = {}));
10
+ })(F || (F = {}));
11
11
  var p;
12
12
  (function(s) {
13
13
  s.precision = "precision", s.thousands = "thousands", s.tenThousands = "tenThousands", s.millions = "millions", s.billions = "billions";
14
14
  })(p || (p = {}));
15
- const b = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = (s) => s.replace(/^0+(0$|[^0])/, "$1"), x = (s, i) => (s.match(new RegExp(b(i), "g")) || []).length, R = (s, i) => s.substring(0, s.indexOf(i)), I = [
15
+ const S = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = (s) => s.replace(/^0+(0$|[^0])/, "$1"), D = (s, i) => (s.match(new RegExp(S(i), "g")) || []).length, R = (s, i) => s.substring(0, s.indexOf(i)), I = [
16
16
  ",",
17
17
  ".",
18
18
  "٫",
@@ -20,25 +20,25 @@ const b = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = (s) => s.replace(
20
20
  ], V = "(0|[1-9]\\d*)";
21
21
  class _ {
22
22
  constructor(i) {
23
- var t, e, n, a, u, d;
24
- const { currency: h, currencyDisplay: r, locale: m, precision: o, accountingSign: g, useGrouping: l } = i;
25
- this.locale = m, this.options = {
26
- currency: h,
27
- useGrouping: l,
23
+ var t, e, n, m, o, c;
24
+ const { currency: l, currencyDisplay: d, locale: r, precision: a, accountingSign: h, useGrouping: f } = i;
25
+ this.locale = r, this.options = {
26
+ currency: l,
27
+ useGrouping: f,
28
28
  style: "currency",
29
- currencySign: g ? "accounting" : void 0,
30
- currencyDisplay: r !== y.hidden ? r : void 0
29
+ currencySign: h ? "accounting" : void 0,
30
+ currencyDisplay: d !== F.hidden ? d : void 0
31
31
  };
32
- const c = new Intl.NumberFormat(m, this.options), F = c.formatToParts(123456);
33
- this.currency = (t = F.find(({ type: f }) => f === "currency")) === null || t === void 0 ? void 0 : t.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((f) => f.toLocaleString(m)), this.decimalSymbol = (e = F.find(({ type: f }) => f === "decimal")) === null || e === void 0 ? void 0 : e.value, this.groupingSymbol = (n = F.find(({ type: f }) => f === "group")) === null || n === void 0 ? void 0 : n.value, this.minusSign = (a = c.formatToParts(-1).find(({ type: f }) => f === "minusSign")) === null || a === void 0 ? void 0 : a.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof o == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = o : (this.minimumFractionDigits = (u = o?.min) !== null && u !== void 0 ? u : c.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (d = o?.max) !== null && d !== void 0 ? d : c.resolvedOptions().maximumFractionDigits);
34
- const v = (f) => R(f, this.digits[1]), D = (f) => f.substring(f.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
35
- this.prefix = v(c.format(1)), this.suffix = D(c.format(1)), this.negativePrefix = v(c.format(-1)), this.negativeSuffix = D(c.format(-1));
32
+ const u = new Intl.NumberFormat(r, this.options), y = u.formatToParts(123456);
33
+ this.currency = (t = y.find(({ type: g }) => g === "currency")) === null || t === void 0 ? void 0 : t.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((g) => g.toLocaleString(r)), this.decimalSymbol = (e = y.find(({ type: g }) => g === "decimal")) === null || e === void 0 ? void 0 : e.value, this.groupingSymbol = (n = y.find(({ type: g }) => g === "group")) === null || n === void 0 ? void 0 : n.value, this.minusSign = (m = u.formatToParts(-1).find(({ type: g }) => g === "minusSign")) === null || m === void 0 ? void 0 : m.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof a == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = a : (this.minimumFractionDigits = (o = a?.min) !== null && o !== void 0 ? o : u.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (c = a?.max) !== null && c !== void 0 ? c : u.resolvedOptions().maximumFractionDigits);
34
+ const b = (g) => R(g, this.digits[1]), v = (g) => g.substring(g.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
35
+ this.prefix = b(u.format(1)), this.suffix = v(u.format(1)), this.negativePrefix = b(u.format(-1)), this.negativeSuffix = v(u.format(-1));
36
36
  }
37
37
  parse(i) {
38
38
  if (i) {
39
39
  const t = this.isNegative(i);
40
40
  i = this.normalizeDigits(i), i = this.stripCurrency(i, t), i = this.stripSignLiterals(i);
41
- const e = this.decimalSymbol ? `(?:${b(this.decimalSymbol)}(\\d*))?` : "", n = this.stripGroupingSeparator(i).match(new RegExp(`^${V}${e}$`));
41
+ const e = this.decimalSymbol ? `(?:${S(this.decimalSymbol)}(\\d*))?` : "", n = this.stripGroupingSeparator(i).match(new RegExp(`^${V}${e}$`));
42
42
  if (n && this.isValidIntegerFormat(this.decimalSymbol ? i.split(this.decimalSymbol)[0] : i, Number(n[1])))
43
43
  return +`${t ? "-" : ""}${this.onlyDigits(n[1])}.${this.onlyDigits(n[2] || "")}`;
44
44
  }
@@ -61,7 +61,7 @@ class _ {
61
61
  return `${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(i.substring(1)).substring(0, this.maximumFractionDigits)}`;
62
62
  }
63
63
  isFractionIncomplete(i) {
64
- return !!this.normalizeDigits(this.stripGroupingSeparator(i)).match(new RegExp(`^${V}${b(this.decimalSymbol)}$`));
64
+ return !!this.normalizeDigits(this.stripGroupingSeparator(i)).match(new RegExp(`^${V}${S(this.decimalSymbol)}$`));
65
65
  }
66
66
  isNegative(i) {
67
67
  return i.startsWith(this.negativePrefix) || this.minusSign === void 0 && (i.startsWith("(") || i.startsWith("-")) || this.minusSign !== void 0 && i.replace("-", this.minusSign).startsWith(this.minusSign);
@@ -70,7 +70,7 @@ class _ {
70
70
  return `${t ? this.negativePrefix : this.prefix}${i}${t ? this.negativeSuffix : this.suffix}`;
71
71
  }
72
72
  stripGroupingSeparator(i) {
73
- return this.groupingSymbol !== void 0 ? i.replace(new RegExp(b(this.groupingSymbol), "g"), "") : i;
73
+ return this.groupingSymbol !== void 0 ? i.replace(new RegExp(S(this.groupingSymbol), "g"), "") : i;
74
74
  }
75
75
  stripSignLiterals(i) {
76
76
  return this.minusSign !== void 0 ? i.replace("-", this.minusSign).replace(this.minusSign, "") : i.replace(/[-()]/g, "");
@@ -95,37 +95,37 @@ class _ {
95
95
  return i.replace(new RegExp(`[^${this.digits.join("")}]*`, "g"), "");
96
96
  }
97
97
  }
98
- class N {
98
+ class M {
99
99
  constructor(i) {
100
100
  this.currencyFormat = i;
101
101
  }
102
102
  }
103
- class C extends N {
103
+ class C extends M {
104
104
  conformToMask(i, t = "") {
105
- const e = this.currencyFormat.isNegative(i), n = (c) => c === "" && e && !(this.currencyFormat.minusSign === void 0 ? t === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix : t === this.currencyFormat.negativePrefix), a = (c) => {
106
- if (n(c))
105
+ const e = this.currencyFormat.isNegative(i), n = (u) => u === "" && e && !(this.currencyFormat.minusSign === void 0 ? t === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix : t === this.currencyFormat.negativePrefix), m = (u) => {
106
+ if (n(u))
107
107
  return "";
108
108
  if (this.currencyFormat.maximumFractionDigits > 0) {
109
- if (this.currencyFormat.isFractionIncomplete(c))
110
- return c;
111
- if (c.startsWith(this.currencyFormat.decimalSymbol))
112
- return this.currencyFormat.toFraction(c);
109
+ if (this.currencyFormat.isFractionIncomplete(u))
110
+ return u;
111
+ if (u.startsWith(this.currencyFormat.decimalSymbol))
112
+ return this.currencyFormat.toFraction(u);
113
113
  }
114
114
  return null;
115
115
  };
116
- let u = i;
117
- u = this.currencyFormat.stripCurrency(u, e), u = this.currencyFormat.stripSignLiterals(u);
118
- const d = a(u);
119
- if (d != null)
120
- return this.currencyFormat.insertCurrency(d, e);
121
- const [h, ...r] = u.split(this.currencyFormat.decimalSymbol), m = E(this.currencyFormat.onlyDigits(h)), o = this.currencyFormat.onlyDigits(r.join("")).substring(0, this.currencyFormat.maximumFractionDigits), g = r.length > 0 && o.length === 0, l = m === "" && e && (this.currencyFormat.minusSign === void 0 ? t === i.slice(0, -2) + this.currencyFormat.negativeSuffix : t === i.slice(0, -1));
122
- return g || l || n(m) ? t : m.match(/\d+/) ? {
123
- numberValue: +`${e ? "-" : ""}${m}.${o}`,
124
- fractionDigits: o
116
+ let o = i;
117
+ o = this.currencyFormat.stripCurrency(o, e), o = this.currencyFormat.stripSignLiterals(o);
118
+ const c = m(o);
119
+ if (c != null)
120
+ return this.currencyFormat.insertCurrency(c, e);
121
+ const [l, ...d] = o.split(this.currencyFormat.decimalSymbol), r = E(this.currencyFormat.onlyDigits(l)), a = this.currencyFormat.onlyDigits(d.join("")).substring(0, this.currencyFormat.maximumFractionDigits), h = d.length > 0 && a.length === 0, f = r === "" && e && (this.currencyFormat.minusSign === void 0 ? t === i.slice(0, -2) + this.currencyFormat.negativeSuffix : t === i.slice(0, -1));
122
+ return h || f || n(r) ? t : r.match(/\d+/) ? {
123
+ numberValue: +`${e ? "-" : ""}${r}.${a}`,
124
+ fractionDigits: a
125
125
  } : "";
126
126
  }
127
127
  }
128
- class A extends N {
128
+ class A extends M {
129
129
  conformToMask(i, t = "") {
130
130
  if (i === "" || this.currencyFormat.parse(t) === 0 && this.currencyFormat.stripCurrency(t, !0).slice(0, -1) === this.currencyFormat.stripCurrency(i, !0))
131
131
  return "";
@@ -202,16 +202,16 @@ class T {
202
202
  const e = this.numberMask.conformToMask(i, this.formattedValue);
203
203
  let n;
204
204
  if (typeof e == "object") {
205
- const { numberValue: a, fractionDigits: u } = e;
206
- let { maximumFractionDigits: d, minimumFractionDigits: h } = this.currencyFormat;
207
- this.focus ? h = t ? u.replace(/0+$/, "").length : Math.min(d, u.length) : Number.isInteger(a) && !this.options.autoDecimalDigits && (this.options.precision === void 0 || h === 0) && (h = d = 0), n = this.toInteger(Math.abs(a)) > Number.MAX_SAFE_INTEGER ? this.formattedValue : this.currencyFormat.format(a, {
205
+ const { numberValue: m, fractionDigits: o } = e;
206
+ let { maximumFractionDigits: c, minimumFractionDigits: l } = this.currencyFormat;
207
+ this.focus ? l = t ? o.replace(/0+$/, "").length : Math.min(c, o.length) : Number.isInteger(m) && !this.options.autoDecimalDigits && (this.options.precision === void 0 || l === 0) && (l = c = 0), n = this.toInteger(Math.abs(m)) > Number.MAX_SAFE_INTEGER ? this.formattedValue : this.currencyFormat.format(m, {
208
208
  useGrouping: this.options.useGrouping !== !1 && !(this.focus && this.options.hideGroupingSeparatorOnFocus),
209
- minimumFractionDigits: h,
210
- maximumFractionDigits: d
209
+ minimumFractionDigits: l,
210
+ maximumFractionDigits: c
211
211
  });
212
212
  } else
213
213
  n = e;
214
- this.maxValue <= 0 && !this.currencyFormat.isNegative(n) && this.currencyFormat.parse(n) !== 0 && (n = n.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix)), this.minValue >= 0 && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix)), (this.options.currencyDisplay === y.hidden || this.focus && this.options.hideCurrencySymbolOnFocus) && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSign !== void 0 ? this.currencyFormat.minusSign : "(").replace(this.currencyFormat.negativeSuffix, this.currencyFormat.minusSign !== void 0 ? "" : ")").replace(this.currencyFormat.prefix, "").replace(this.currencyFormat.suffix, "")), this.el.value = n, this.numberValue = this.currencyFormat.parse(n);
214
+ this.maxValue <= 0 && !this.currencyFormat.isNegative(n) && this.currencyFormat.parse(n) !== 0 && (n = n.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix)), this.minValue >= 0 && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix)), (this.options.currencyDisplay === F.hidden || this.focus && this.options.hideCurrencySymbolOnFocus) && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSign !== void 0 ? this.currencyFormat.minusSign : "(").replace(this.currencyFormat.negativeSuffix, this.currencyFormat.minusSign !== void 0 ? "" : ")").replace(this.currencyFormat.prefix, "").replace(this.currencyFormat.suffix, "")), this.el.value = n, this.numberValue = this.currencyFormat.parse(n);
215
215
  } else
216
216
  this.el.value = "", this.numberValue = null;
217
217
  this.formattedValue = this.el.value, this.onInput(this.getValue());
@@ -220,25 +220,25 @@ class T {
220
220
  this.el.addEventListener("input", (i) => {
221
221
  const { value: t, selectionStart: e } = this.el, n = i;
222
222
  if (e && n.data && I.includes(n.data) && (this.decimalSymbolInsertedAt = e - 1), this.format(t), this.focus && e != null) {
223
- const a = () => {
224
- const { prefix: u, suffix: d, decimalSymbol: h, maximumFractionDigits: r, groupingSymbol: m } = this.currencyFormat;
225
- let o = t.length - e;
226
- const g = this.formattedValue.length;
223
+ const m = () => {
224
+ const { prefix: o, suffix: c, decimalSymbol: l, maximumFractionDigits: d, groupingSymbol: r } = this.currencyFormat;
225
+ let a = t.length - e;
226
+ const h = this.formattedValue.length;
227
227
  if (this.currencyFormat.minusSign === void 0 && (t.startsWith("(") || t.startsWith("-")) && !t.endsWith(")"))
228
- return g - this.currencyFormat.negativeSuffix.length > 1 ? this.formattedValue.substring(e).length : 1;
229
- if (this.formattedValue.substring(e, 1) === m && x(this.formattedValue, m) === x(t, m) + 1)
230
- return g - o - 1;
231
- if (g < o)
228
+ return h - this.currencyFormat.negativeSuffix.length > 1 ? this.formattedValue.substring(e).length : 1;
229
+ if (this.formattedValue.substring(e, 1) === r && D(this.formattedValue, r) === D(t, r) + 1)
230
+ return h - a - 1;
231
+ if (h < a)
232
232
  return e;
233
- if (h !== void 0 && t.indexOf(h) !== -1) {
234
- const l = t.indexOf(h) + 1;
235
- if (Math.abs(g - t.length) > 1 && e <= l)
236
- return this.formattedValue.indexOf(h) + 1;
237
- !this.options.autoDecimalDigits && e > l && this.currencyFormat.onlyDigits(t.substring(l)).length - 1 === r && (o -= 1);
233
+ if (l !== void 0 && t.indexOf(l) !== -1) {
234
+ const f = t.indexOf(l) + 1;
235
+ if (Math.abs(h - t.length) > 1 && e <= f)
236
+ return this.formattedValue.indexOf(l) + 1;
237
+ !this.options.autoDecimalDigits && e > f && this.currencyFormat.onlyDigits(t.substring(f)).length - 1 === d && (a -= 1);
238
238
  }
239
- return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === y.hidden ? g - o : Math.max(g - Math.max(o, d.length), u.length);
239
+ return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === F.hidden ? h - a : Math.max(h - Math.max(a, c.length), o.length);
240
240
  };
241
- this.setCaretPosition(a());
241
+ this.setCaretPosition(m());
242
242
  }
243
243
  }), this.el.addEventListener("focus", () => {
244
244
  this.focus = !0, this.numberValueOnFocus = this.numberValue, setTimeout(() => {
@@ -257,23 +257,23 @@ class T {
257
257
  getCaretPositionOnFocus(i, t) {
258
258
  if (this.numberValue == null)
259
259
  return t;
260
- const { prefix: e, negativePrefix: n, suffix: a, negativeSuffix: u, groupingSymbol: d, currency: h } = this.currencyFormat, r = this.numberValue < 0, m = r ? n : e, o = m.length;
261
- if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === y.hidden) {
262
- if (r) {
260
+ const { prefix: e, negativePrefix: n, suffix: m, negativeSuffix: o, groupingSymbol: c, currency: l } = this.currencyFormat, d = this.numberValue < 0, r = d ? n : e, a = r.length;
261
+ if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === F.hidden) {
262
+ if (d) {
263
263
  if (t <= 1)
264
264
  return 1;
265
265
  if (i.endsWith(")") && t > i.indexOf(")"))
266
266
  return this.formattedValue.length - 1;
267
267
  }
268
268
  } else {
269
- const l = r ? u.length : a.length;
270
- if (t >= i.length - l)
271
- return this.formattedValue.length - l;
272
- if (t < o)
273
- return o;
269
+ const f = d ? o.length : m.length;
270
+ if (t >= i.length - f)
271
+ return this.formattedValue.length - f;
272
+ if (t < a)
273
+ return a;
274
274
  }
275
- let g = t;
276
- return this.options.hideCurrencySymbolOnFocus && this.options.currencyDisplay !== y.hidden && t >= o && h !== void 0 && m.includes(h) && (g -= o, r && (g += 1)), this.options.hideGroupingSeparatorOnFocus && d !== void 0 && (g -= x(i.substring(0, t), d)), g;
275
+ let h = t;
276
+ return this.options.hideCurrencySymbolOnFocus && this.options.currencyDisplay !== F.hidden && t >= a && l !== void 0 && r.includes(l) && (h -= a, d && (h += 1)), this.options.hideGroupingSeparatorOnFocus && c !== void 0 && (h -= D(i.substring(0, t), c)), h;
277
277
  }
278
278
  setCaretPosition(i, t = i) {
279
279
  this.el.setSelectionRange(i, t);
@@ -281,35 +281,37 @@ class T {
281
281
  }
282
282
  const w = (s) => s?.matches("input") ? s : s?.querySelector("input");
283
283
  function k(s, i) {
284
- var t, e, n;
285
- let a;
286
- const u = S(null), d = S(null), h = S(null), r = O();
284
+ var t, e, n, m;
285
+ let o;
286
+ const c = x(null), l = x(null), d = x(null), r = N();
287
287
  r?.emit || ((e = (t = r?.proxy) === null || t === void 0 ? void 0 : t.$emit) === null || e === void 0 || e.bind(r?.proxy));
288
- const m = r?.props || ((n = r?.proxy) === null || n === void 0 ? void 0 : n.$props), o = M.startsWith("3"), g = $(() => m?.[o ? "modelValue" : "value"]);
289
- return P(u, (l) => {
290
- var c;
291
- if (l) {
292
- const F = w((c = l?.$el) !== null && c !== void 0 ? c : l);
293
- F ? (a = new T({
294
- el: F,
288
+ const a = r?.props || ((n = r?.proxy) === null || n === void 0 ? void 0 : n.$props), h = O.startsWith("3");
289
+ h && ((m = r?.attrs.modelModifiers) === null || m === void 0 || m.lazy);
290
+ const f = $(() => a?.[h ? "modelValue" : "value"]);
291
+ return P(c, (u) => {
292
+ var y;
293
+ if (u) {
294
+ const b = w((y = u?.$el) !== null && y !== void 0 ? y : u);
295
+ b ? (o = new T({
296
+ el: b,
295
297
  options: s,
296
298
  onInput: (v) => {
297
- h.value = v.number, d.value = v.formatted;
299
+ d.value = v.number, l.value = v.formatted;
298
300
  },
299
301
  onChange: (v) => {
300
302
  }
301
- }), a.setValue(g.value)) : console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.');
303
+ }), o.setValue(f.value)) : console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.');
302
304
  } else
303
- a = null;
305
+ o = null;
304
306
  }), {
305
- inputRef: u,
306
- numberValue: h,
307
- formattedValue: d,
308
- setValue: (l) => a?.setValue(l),
309
- setOptions: (l) => a?.setOptions(l)
307
+ inputRef: c,
308
+ numberValue: d,
309
+ formattedValue: l,
310
+ setValue: (u) => o?.setValue(u),
311
+ setOptions: (u) => o?.setOptions(u)
310
312
  };
311
313
  }
312
314
  export {
313
- y as C,
315
+ F as C,
314
316
  k as u
315
317
  };
@@ -0,0 +1 @@
1
+ import "vue";
@@ -1,6 +1,6 @@
1
1
  import { inject as l } from "vue";
2
- import { A as f } from "./vendor-microsoft-applicationinsights-web-BRuQAzjU.js";
3
- import { t as u } from "./vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js";
2
+ import { A as f } from "./vendor-microsoft-applicationinsights-web-8IaeIl22.js";
3
+ import { t as u } from "./vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js";
4
4
  var g = Symbol("appInsights"), o = "[ApplicationInsights Plugin]";
5
5
  function p(e) {
6
6
  var n, t;