@oneclick.dev/cms-core-modules 0.0.115 → 0.0.117

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 (107) hide show
  1. package/dist/{Acquisition-FV3QpaUX.mjs → Acquisition-X5-eksDw.mjs} +2 -2
  2. package/dist/{Audience-ka0b7YPE.mjs → Audience-CXryJ8tc.mjs} +2 -2
  3. package/dist/{ContentEditor-C5yNNLeV.mjs → ContentEditor-CUe6-NwF.mjs} +17650 -14456
  4. package/dist/{ContentEditor-MctMvN7D.js → ContentEditor-DWoXc0T_.js} +52 -52
  5. package/dist/{Create-BXNLRQag.mjs → Create-BPA2ywrd.mjs} +1 -1
  6. package/dist/{DateFormatter-qbhRYxI_.mjs → DateFormatter-BkKoSf_l.mjs} +5 -5
  7. package/dist/{Detail-BCOcP2ql.mjs → Detail-C1Blq61w.mjs} +1 -1
  8. package/dist/{Detail-ChD5XurA.mjs → Detail-CfsPwl4s.mjs} +17 -17
  9. package/dist/{Detail-DnX7tsqN.mjs → Detail-CtItxMX4.mjs} +1 -1
  10. package/dist/{Detail-Btzwo0Y3.mjs → Detail-Dnpnmy4-.mjs} +1 -1
  11. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-gozJKXvM.js +1 -0
  12. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-pDO9b4Pv.mjs +77 -0
  13. package/dist/{Find-zN_dKz4p.mjs → Find-BAvaNf90.mjs} +1 -1
  14. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BXTkYCm_.mjs +1476 -0
  15. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-C2zwt5UF.js +1 -0
  16. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-BYSeUW_V.js +925 -0
  17. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-DwAUYR8p.mjs +5021 -0
  18. package/dist/{Overview-BR_y8x3W.mjs → Overview-BWLxUksJ.mjs} +1 -1
  19. package/dist/{Overview-MpgkLB6m.mjs → Overview-Bjvu9Lfc.mjs} +3 -3
  20. package/dist/Overview-CBahJviK.js +1 -0
  21. package/dist/Overview-CVQ1pkuD.mjs +527 -0
  22. package/dist/{SeoHealth-bVQj_Xgm.mjs → SeoHealth-I2mqiuLm.mjs} +3 -3
  23. package/dist/TableView-BQI3CWll.mjs +6234 -0
  24. package/dist/TableView-Cwal0BPW.js +4 -0
  25. package/dist/agenda-B3nj388v.mjs +1253 -0
  26. package/dist/agenda-Bev1mO7E.js +1 -0
  27. package/dist/availability-ClBGVgE9.js +1 -0
  28. package/dist/availability-D8JdA4rP.mjs +274 -0
  29. package/dist/booking-data-Px7XCIfU.mjs +1024 -0
  30. package/dist/booking-data-aMS1p_3g.js +1 -0
  31. package/dist/cms-core-modules.css +1 -1
  32. package/dist/exceptions-DXqc0Nza.js +1 -0
  33. package/dist/exceptions-Dgj54ULn.mjs +651 -0
  34. package/dist/{index-DZV720u-.mjs → index-52nwosIs.mjs} +45 -45
  35. package/dist/{index-CkVwMqpn.mjs → index-Bnn9LahC.mjs} +52 -52
  36. package/dist/{index-B8GvmAwh.mjs → index-DiTIA8Sh.mjs} +27 -27
  37. package/dist/index-Djp4EBb0.mjs +1245 -0
  38. package/dist/index-DliTZzwI.js +35 -0
  39. package/dist/{index-L54VBzwJ.mjs → index-ar4tbR3i.mjs} +8 -8
  40. package/dist/{index-BIF2RB7k.mjs → index-cC_2cw31.mjs} +4 -4
  41. package/dist/{index-CFzn2Lus.mjs → index-hMp4p5qA.mjs} +3 -3
  42. package/dist/index.cjs.js +1 -1
  43. package/dist/index.mjs +26 -25
  44. package/dist/{math-BJ-oX_IM.mjs → math-Bkw6u412.mjs} +11 -11
  45. package/dist/orders-1swJVKw2.js +1 -0
  46. package/dist/orders-D41GbzIa.mjs +624 -0
  47. package/dist/payment-BJHgpaeT.js +1 -0
  48. package/dist/payment-D5j-68Ig.mjs +1278 -0
  49. package/dist/refunds-D9nTeD2d.mjs +436 -0
  50. package/dist/refunds-oVB2Opib.js +1 -0
  51. package/dist/resources-8WouFvJe.js +1 -0
  52. package/dist/resources-CK0oWssj.mjs +975 -0
  53. package/dist/server-handlers.cjs.js +1 -1
  54. package/dist/server-handlers.mjs +626 -515
  55. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +146 -5
  56. package/dist/src/appointments/components/edit/EventDialog/CancelRefundReservationDialog.vue.d.ts +33 -0
  57. package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +26 -8
  58. package/dist/src/appointments/components/edit/EventDialog/RefundDetailsDisplay.vue.d.ts +8 -0
  59. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +91 -5
  60. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +20 -3
  61. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +5 -0
  62. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +20 -2
  63. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +240 -0
  64. package/dist/src/appointments/composables/useAgendaMetadataSchema.d.ts +37 -0
  65. package/dist/src/appointments/pages/edit/orders.vue.d.ts +225 -0
  66. package/dist/src/appointments/pages/edit/refunds.vue.d.ts +2 -0
  67. package/dist/src/appointments/server.d.ts +2 -0
  68. package/dist/src/appointments/types.d.ts +6 -0
  69. package/dist/src/appointments/utils/printReservation.d.ts +65 -3
  70. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.d.ts +36 -0
  71. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.vue.d.ts +95 -0
  72. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableCell.d.ts +13 -0
  73. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableHeader.d.ts +6 -0
  74. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableRow.d.ts +6 -0
  75. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/index.d.ts +4 -0
  76. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TableMenu.vue.d.ts +13 -0
  77. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +14 -0
  78. package/dist/{vee-validate-zod-DNjTLCgh.mjs → vee-validate-zod-CcOwoF6y.mjs} +6 -6
  79. package/package.json +2 -2
  80. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +0 -76
  81. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +0 -1
  82. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +0 -1
  83. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +0 -1263
  84. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +0 -1
  85. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +0 -330
  86. package/dist/Overview-98nkJUWN.mjs +0 -481
  87. package/dist/Overview-Dl8cMlsr.js +0 -1
  88. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +0 -349
  89. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +0 -3077
  90. package/dist/TableView-CVfkyj1k.js +0 -4
  91. package/dist/TableView-zDx0IegJ.mjs +0 -6096
  92. package/dist/agenda-BaJu3-1c.js +0 -1
  93. package/dist/agenda-BwVY_8oM.mjs +0 -1165
  94. package/dist/availability-CMrRa5y2.mjs +0 -269
  95. package/dist/availability-Cf2YfMwM.js +0 -1
  96. package/dist/booking-data-DgJd0BcM.mjs +0 -889
  97. package/dist/booking-data-Di5GmH_8.js +0 -1
  98. package/dist/exceptions-B6P9UiCj.js +0 -1
  99. package/dist/exceptions-De9-FvdP.mjs +0 -646
  100. package/dist/index-DL6orwdK.js +0 -35
  101. package/dist/index-hH3e-IYz.mjs +0 -1187
  102. package/dist/orders-C65SlpJy.mjs +0 -618
  103. package/dist/orders-XVzWAgG1.js +0 -1
  104. package/dist/payment-C3ohkehF.mjs +0 -1080
  105. package/dist/payment-Dfr-Ro-a.js +0 -1
  106. package/dist/resources-CxeFd57z.js +0 -1
  107. package/dist/resources-DwYxn2Vi.mjs +0 -811
@@ -1,11 +1,11 @@
1
- import { defineComponent as ht, toRefs as Dt, reactive as Et, ref as pt, watchEffect as Ot, watch as lt, onUnmounted as mt, provide as nt, openBlock as vt, createElementBlock as bt, renderSlot as Tt, toRaw as at, inject as zt, computed as Nt, onMounted as Wt, nextTick as Gt } from "vue";
2
- import { c as Ht, b as Mt, e as it, Z as et, a as Ft, q as yt, E as Bt, l as J, D as $t, C as jt, S as Pt, v as ut, M as It, j as Ut, a1 as Yt, N as At, R as xt, X as Xt, _ as Vt, n as qt } from "./index-CkVwMqpn.mjs";
3
- import { j as dt, f as j, s as M, e as k, h as ct, p as Zt, g as D, t as tt, k as Z, i as ot, a as gt, d as S, m as Jt, c as ft, b as Kt } from "./math-BJ-oX_IM.mjs";
4
- const Qt = Object.assign(Object.assign({}, Ht), { tooltip: void 0, annotations: void 0 });
5
- class te extends Mt {
1
+ import { defineComponent as ht, toRefs as Et, reactive as Ot, ref as pt, watchEffect as Dt, watch as lt, onUnmounted as mt, provide as nt, openBlock as vt, createElementBlock as bt, renderSlot as Tt, toRaw as at, inject as zt, computed as Nt, onMounted as Wt, nextTick as Gt } from "vue";
2
+ import { C as Ht, d as Bt, X as it, u as et, l as Ft, I as yt, i as Mt, f as K, q as $t, m as Pt, S as jt, E as ut, B as It, h as Yt, Y as Ut, J as At, K as xt, N as Xt, O as Vt, P as qt } from "./index-Bnn9LahC.mjs";
3
+ import { a as dt, b as P, s as B, c as k, h as ct, p as Jt, e as E, t as tt, d as J, m as ot, f as gt, g as S, i as Kt, j as ft, k as Qt } from "./math-Bkw6u412.mjs";
4
+ const Zt = Object.assign(Object.assign({}, Ht), { tooltip: void 0, annotations: void 0 });
5
+ class te extends Bt {
6
6
  constructor(e, n, i) {
7
7
  var r;
8
- super(e), this._defaultConfig = Qt, this.config = this._defaultConfig, n && (this.updateContainer(n, !0), this.component = n.component), i && this.setData(i, !0), !((r = this.component) === null || r === void 0) && r.datamodel.data && this.render();
8
+ super(e), this._defaultConfig = Zt, this.config = this._defaultConfig, n && (this.updateContainer(n, !0), this.component = n.component), i && this.setData(i, !0), !((r = this.component) === null || r === void 0) && r.datamodel.data && this.render();
9
9
  }
10
10
  setData(e, n) {
11
11
  var i;
@@ -82,12 +82,12 @@ function oe(u) {
82
82
  }
83
83
  function le(u, e, n, i, r, d, l, t) {
84
84
  var s = n - u, a = i - e, m = l - r, h = t - d, c = h * s - m * a;
85
- if (!(c * c < D))
85
+ if (!(c * c < E))
86
86
  return c = (m * (e - d) - h * (u - r)) / c, [u + c * s, e + c * a];
87
87
  }
88
- function Q(u, e, n, i, r, d, l) {
89
- var t = u - n, s = e - i, a = (l ? d : -d) / Z(t * t + s * s), m = a * s, h = -a * t, c = u + m, v = e + h, b = n + m, _ = i + h, o = (c + b) / 2, C = (v + _) / 2, A = b - c, x = _ - v, y = A * A + x * x, L = r - d, R = c * _ - b * v, z = (x < 0 ? -1 : 1) * Z(Jt(0, L * L * y - R * R)), N = (R * x - A * z) / y, w = (-R * A - x * z) / y, E = (R * x + A * z) / y, O = (-R * A + x * z) / y, g = N - o, p = w - C, W = E - o, G = O - C;
90
- return g * g + p * p > W * W + G * G && (N = E, w = O), {
88
+ function Z(u, e, n, i, r, d, l) {
89
+ var t = u - n, s = e - i, a = (l ? d : -d) / J(t * t + s * s), m = a * s, h = -a * t, c = u + m, v = e + h, b = n + m, _ = i + h, o = (c + b) / 2, C = (v + _) / 2, A = b - c, x = _ - v, y = A * A + x * x, L = r - d, R = c * _ - b * v, z = (x < 0 ? -1 : 1) * J(Kt(0, L * L * y - R * R)), N = (R * x - A * z) / y, w = (-R * A - x * z) / y, O = (R * x + A * z) / y, D = (-R * A + x * z) / y, g = N - o, p = w - C, W = O - o, G = D - C;
90
+ return g * g + p * p > W * W + G * G && (N = O, w = D), {
91
91
  cx: N,
92
92
  cy: w,
93
93
  x01: -m,
@@ -100,30 +100,30 @@ function se() {
100
100
  var u = ee, e = ne, n = k(0), i = null, r = ae, d = ie, l = oe, t = null;
101
101
  function s() {
102
102
  var a, m, h = +u.apply(this, arguments), c = +e.apply(this, arguments), v = r.apply(this, arguments) - ct, b = d.apply(this, arguments) - ct, _ = gt(b - v), o = b > v;
103
- if (t || (t = a = Zt()), c < h && (m = c, c = h, h = m), !(c > D)) t.moveTo(0, 0);
104
- else if (_ > tt - D)
105
- t.moveTo(c * j(v), c * M(v)), t.arc(0, 0, c, v, b, !o), h > D && (t.moveTo(h * j(b), h * M(b)), t.arc(0, 0, h, b, v, o));
103
+ if (t || (t = a = Jt()), c < h && (m = c, c = h, h = m), !(c > E)) t.moveTo(0, 0);
104
+ else if (_ > tt - E)
105
+ t.moveTo(c * P(v), c * B(v)), t.arc(0, 0, c, v, b, !o), h > E && (t.moveTo(h * P(b), h * B(b)), t.arc(0, 0, h, b, v, o));
106
106
  else {
107
- var C = v, A = b, x = v, y = b, L = _, R = _, z = l.apply(this, arguments) / 2, N = z > D && (i ? +i.apply(this, arguments) : Z(h * h + c * c)), w = ot(gt(c - h) / 2, +n.apply(this, arguments)), E = w, O = w, g, p;
108
- if (N > D) {
109
- var W = ft(N / h * M(z)), G = ft(N / c * M(z));
110
- (L -= W * 2) > D ? (W *= o ? 1 : -1, x += W, y -= W) : (L = 0, x = y = (v + b) / 2), (R -= G * 2) > D ? (G *= o ? 1 : -1, C += G, A -= G) : (R = 0, C = A = (v + b) / 2);
107
+ var C = v, A = b, x = v, y = b, L = _, R = _, z = l.apply(this, arguments) / 2, N = z > E && (i ? +i.apply(this, arguments) : J(h * h + c * c)), w = ot(gt(c - h) / 2, +n.apply(this, arguments)), O = w, D = w, g, p;
108
+ if (N > E) {
109
+ var W = ft(N / h * B(z)), G = ft(N / c * B(z));
110
+ (L -= W * 2) > E ? (W *= o ? 1 : -1, x += W, y -= W) : (L = 0, x = y = (v + b) / 2), (R -= G * 2) > E ? (G *= o ? 1 : -1, C += G, A -= G) : (R = 0, C = A = (v + b) / 2);
111
111
  }
112
- var F = c * j(C), B = c * M(C), K = h * j(y), P = h * M(y);
113
- if (w > D) {
114
- var $ = c * j(A), I = c * M(A), U = h * j(x), Y = h * M(x), H;
115
- if (_ < dt && (H = le(F, B, U, Y, $, I, K, P))) {
116
- var X = F - H[0], V = B - H[1], f = $ - H[0], T = I - H[1], q = 1 / M(Kt((X * f + V * T) / (Z(X * X + V * V) * Z(f * f + T * T))) / 2), rt = Z(H[0] * H[0] + H[1] * H[1]);
117
- E = ot(w, (h - rt) / (q - 1)), O = ot(w, (c - rt) / (q + 1));
112
+ var F = c * P(C), M = c * B(C), Q = h * P(y), j = h * B(y);
113
+ if (w > E) {
114
+ var $ = c * P(A), I = c * B(A), Y = h * P(x), U = h * B(x), H;
115
+ if (_ < dt && (H = le(F, M, Y, U, $, I, Q, j))) {
116
+ var X = F - H[0], V = M - H[1], f = $ - H[0], T = I - H[1], q = 1 / B(Qt((X * f + V * T) / (J(X * X + V * V) * J(f * f + T * T))) / 2), rt = J(H[0] * H[0] + H[1] * H[1]);
117
+ O = ot(w, (h - rt) / (q - 1)), D = ot(w, (c - rt) / (q + 1));
118
118
  }
119
119
  }
120
- R > D ? O > D ? (g = Q(U, Y, F, B, c, O, o), p = Q($, I, K, P, c, O, o), t.moveTo(g.cx + g.x01, g.cy + g.y01), O < w ? t.arc(g.cx, g.cy, O, S(g.y01, g.x01), S(p.y01, p.x01), !o) : (t.arc(g.cx, g.cy, O, S(g.y01, g.x01), S(g.y11, g.x11), !o), t.arc(0, 0, c, S(g.cy + g.y11, g.cx + g.x11), S(p.cy + p.y11, p.cx + p.x11), !o), t.arc(p.cx, p.cy, O, S(p.y11, p.x11), S(p.y01, p.x01), !o))) : (t.moveTo(F, B), t.arc(0, 0, c, C, A, !o)) : t.moveTo(F, B), !(h > D) || !(L > D) ? t.lineTo(K, P) : E > D ? (g = Q(K, P, $, I, h, -E, o), p = Q(F, B, U, Y, h, -E, o), t.lineTo(g.cx + g.x01, g.cy + g.y01), E < w ? t.arc(g.cx, g.cy, E, S(g.y01, g.x01), S(p.y01, p.x01), !o) : (t.arc(g.cx, g.cy, E, S(g.y01, g.x01), S(g.y11, g.x11), !o), t.arc(0, 0, h, S(g.cy + g.y11, g.cx + g.x11), S(p.cy + p.y11, p.cx + p.x11), o), t.arc(p.cx, p.cy, E, S(p.y11, p.x11), S(p.y01, p.x01), !o))) : t.arc(0, 0, h, y, x, o);
120
+ R > E ? D > E ? (g = Z(Y, U, F, M, c, D, o), p = Z($, I, Q, j, c, D, o), t.moveTo(g.cx + g.x01, g.cy + g.y01), D < w ? t.arc(g.cx, g.cy, D, S(g.y01, g.x01), S(p.y01, p.x01), !o) : (t.arc(g.cx, g.cy, D, S(g.y01, g.x01), S(g.y11, g.x11), !o), t.arc(0, 0, c, S(g.cy + g.y11, g.cx + g.x11), S(p.cy + p.y11, p.cx + p.x11), !o), t.arc(p.cx, p.cy, D, S(p.y11, p.x11), S(p.y01, p.x01), !o))) : (t.moveTo(F, M), t.arc(0, 0, c, C, A, !o)) : t.moveTo(F, M), !(h > E) || !(L > E) ? t.lineTo(Q, j) : O > E ? (g = Z(Q, j, $, I, h, -O, o), p = Z(F, M, Y, U, h, -O, o), t.lineTo(g.cx + g.x01, g.cy + g.y01), O < w ? t.arc(g.cx, g.cy, O, S(g.y01, g.x01), S(p.y01, p.x01), !o) : (t.arc(g.cx, g.cy, O, S(g.y01, g.x01), S(g.y11, g.x11), !o), t.arc(0, 0, h, S(g.cy + g.y11, g.cx + g.x11), S(p.cy + p.y11, p.cx + p.x11), o), t.arc(p.cx, p.cy, O, S(p.y11, p.x11), S(p.y01, p.x01), !o))) : t.arc(0, 0, h, y, x, o);
121
121
  }
122
122
  if (t.closePath(), a) return t = null, a + "" || null;
123
123
  }
124
124
  return s.centroid = function() {
125
125
  var a = (+u.apply(this, arguments) + +e.apply(this, arguments)) / 2, m = (+r.apply(this, arguments) + +d.apply(this, arguments)) / 2 - dt / 2;
126
- return [j(m) * a, M(m) * a];
126
+ return [P(m) * a, B(m) * a];
127
127
  }, s.innerRadius = function(a) {
128
128
  return arguments.length ? (u = typeof a == "function" ? a : k(+a), s) : u;
129
129
  }, s.outerRadius = function(a) {
@@ -209,7 +209,7 @@ function fe(u, e, n, i) {
209
209
  innerRadius: l.innerRadius,
210
210
  outerRadius: l.outerRadius,
211
211
  padAngle: l.padAngle
212
- }, h = Bt(a._animState, m);
212
+ }, h = Mt(a._animState, m);
213
213
  return (c) => (a._animState = h(c), n(a._animState));
214
214
  }) : u.attr("d", n).style("opacity", r);
215
215
  }
@@ -219,7 +219,7 @@ function he(u, e) {
219
219
  const Rt = Array.from({ length: 4 }, (u, e) => {
220
220
  const n = -Math.PI / 2 + e * Math.PI / 2;
221
221
  return [n, n + Math.PI];
222
- }), [xe, Re, _e, Le] = Rt, _t = J`
222
+ }), [xe, Re, _e, Le] = Rt, _t = K`
223
223
  label: donut-component;
224
224
  `, pe = $t`
225
225
  :root {
@@ -251,16 +251,16 @@ const Rt = Array.from({ length: 4 }, (u, e) => {
251
251
  --vis-donut-central-sub-label-text-color: var(--vis-dark-donut-central-sub-label-text-color);
252
252
  --vis-donut-background-color: var(--vis-dark-donut-background-color);
253
253
  }
254
- `, Lt = J`
254
+ `, Lt = K`
255
255
  label: background;
256
256
  fill: var(--vis-donut-background-color);
257
- `, st = J`
257
+ `, st = K`
258
258
  label: segment;
259
259
  stroke-width: var(--vis-donut-segment-stroke-width);
260
260
  stroke: var(--vis-donut-segment-stroke-color, var(--vis-donut-background-color));
261
- `, St = J`
261
+ `, St = K`
262
262
  label: segment-exit;
263
- `, wt = J`
263
+ `, wt = K`
264
264
  label: central-label;
265
265
  text-anchor: middle;
266
266
  dominant-baseline: middle;
@@ -268,7 +268,7 @@ const Rt = Array.from({ length: 4 }, (u, e) => {
268
268
  font-family: var(--vis-donut-central-label-font-family, var(--vis-font-family));
269
269
  font-weight: var(--vis-donut-central-label-font-weight);
270
270
  fill: var(--vis-donut-central-label-text-color);
271
- `, kt = J`
271
+ `, kt = K`
272
272
  label: central-label;
273
273
  text-anchor: middle;
274
274
  dominant-baseline: middle;
@@ -286,9 +286,9 @@ const Rt = Array.from({ length: 4 }, (u, e) => {
286
286
  segmentExit: St,
287
287
  variables: pe
288
288
  }, Symbol.toStringTag, { value: "Module" }));
289
- class Ct extends jt {
289
+ class Ct extends Pt {
290
290
  constructor(e) {
291
- super(), this._defaultConfig = ce, this.config = this._defaultConfig, this.datamodel = new Pt(), this.arcGen = se(), this.events = {}, e && this.setConfig(e), this.arcBackground = this.g.append("path"), this.arcGroup = this.g.append("g"), this.centralLabel = this.g.append("text").attr("class", wt), this.centralSubLabel = this.g.append("text").attr("class", kt);
291
+ super(), this._defaultConfig = ce, this.config = this._defaultConfig, this.datamodel = new jt(), this.arcGen = se(), this.events = {}, e && this.setConfig(e), this.arcBackground = this.g.append("path"), this.arcGroup = this.g.append("g"), this.centralLabel = this.g.append("text").attr("class", wt), this.centralSubLabel = this.g.append("text").attr("class", kt);
292
292
  }
293
293
  get bleed() {
294
294
  return { top: 0, bottom: 0, left: 0, right: 0 };
@@ -298,9 +298,9 @@ class Ct extends jt {
298
298
  const { config: o, datamodel: C, bleed: A } = this, x = C.data.map((f, T) => ({
299
299
  index: T,
300
300
  datum: f
301
- })).filter((f) => o.showEmptySegments || ut(f.datum, o.value, f.index)), y = It(e) ? e : o.duration, [L, R, z, N] = Rt.map((f) => o.angleRange && o.angleRange[0] === f[0] && o.angleRange[1] === f[1]), w = L || z, E = R || N, O = this._width * (E ? 2 : 1), g = this._height * (w ? 2 : 1), p = o.radius || Math.min(O - A.left - A.right, g - A.top - A.bottom) / 2, W = o.arcWidth === 0 ? 0 : Ut(p - o.arcWidth, 0, p - 1), G = this._height / 2 + (L ? p / 2 : z ? -p / 2 : 0), F = this._width / 2 + (N ? p / 2 : R ? -p / 2 : 0), B = `translate(${F},${G})`;
302
- this.arcGroup.attr("transform", B), this.arcGen.startAngle((f) => f.startAngle).endAngle((f) => f.endAngle).innerRadius((f) => f.innerRadius).outerRadius((f) => f.outerRadius).padAngle((f) => f.padAngle).cornerRadius(o.cornerRadius);
303
- const P = de().startAngle((i = (n = o.angleRange) === null || n === void 0 ? void 0 : n[0]) !== null && i !== void 0 ? i : 0).endAngle((d = (r = o.angleRange) === null || r === void 0 ? void 0 : r[1]) !== null && d !== void 0 ? d : 2 * Math.PI).padAngle(o.padAngle).value((f) => ut(f.datum, o.value, f.index) || 0).sort((f, T) => {
301
+ })).filter((f) => o.showEmptySegments || ut(f.datum, o.value, f.index)), y = It(e) ? e : o.duration, [L, R, z, N] = Rt.map((f) => o.angleRange && o.angleRange[0] === f[0] && o.angleRange[1] === f[1]), w = L || z, O = R || N, D = this._width * (O ? 2 : 1), g = this._height * (w ? 2 : 1), p = o.radius || Math.min(D - A.left - A.right, g - A.top - A.bottom) / 2, W = o.arcWidth === 0 ? 0 : Yt(p - o.arcWidth, 0, p - 1), G = this._height / 2 + (L ? p / 2 : z ? -p / 2 : 0), F = this._width / 2 + (N ? p / 2 : R ? -p / 2 : 0), M = `translate(${F},${G})`;
302
+ this.arcGroup.attr("transform", M), this.arcGen.startAngle((f) => f.startAngle).endAngle((f) => f.endAngle).innerRadius((f) => f.innerRadius).outerRadius((f) => f.outerRadius).padAngle((f) => f.padAngle).cornerRadius(o.cornerRadius);
303
+ const j = de().startAngle((i = (n = o.angleRange) === null || n === void 0 ? void 0 : n[0]) !== null && i !== void 0 ? i : 0).endAngle((d = (r = o.angleRange) === null || r === void 0 ? void 0 : r[1]) !== null && d !== void 0 ? d : 2 * Math.PI).padAngle(o.padAngle).value((f) => ut(f.datum, o.value, f.index) || 0).sort((f, T) => {
304
304
  var q;
305
305
  return (q = o.sortFunction) === null || q === void 0 ? void 0 : q.call(o, f.datum, T.datum);
306
306
  })(x).map((f) => {
@@ -311,15 +311,15 @@ class Ct extends jt {
311
311
  outerRadius: p
312
312
  });
313
313
  return o.showEmptySegments && f.endAngle - f.startAngle - f.padAngle <= Number.EPSILON && (T.endAngle = f.startAngle + Math.max(o.emptySegmentAngle, o.padAngle), T.padAngle = f.padAngle / 2), T;
314
- }), $ = this.arcGroup.selectAll(`.${st}`).data(P, (f) => o.id(f.data, f.index)), I = $.enter().append("path").attr("class", st).call(ge, o), U = $.merge(I);
315
- U.call(fe, o, this.arcGen, y), U.sort((f, T) => T.value - f.value), $.exit().attr("class", St).call(he, y);
316
- const Y = R ? "start" : N ? "end" : "middle";
317
- this.centralLabel.attr("dy", o.centralSubLabel ? "-0.55em" : null).style("text-anchor", Y).text((l = o.centralLabel) !== null && l !== void 0 ? l : null), this.centralSubLabel.attr("dy", o.centralLabel ? "0.55em" : null).style("text-anchor", Y).text((t = o.centralSubLabel) !== null && t !== void 0 ? t : null), o.centralSubLabelWrap && Yt(this.centralSubLabel, W * 1.9);
314
+ }), $ = this.arcGroup.selectAll(`.${st}`).data(j, (f) => o.id(f.data, f.index)), I = $.enter().append("path").attr("class", st).call(ge, o), Y = $.merge(I);
315
+ Y.call(fe, o, this.arcGen, y), Y.sort((f, T) => T.value - f.value), $.exit().attr("class", St).call(he, y);
316
+ const U = R ? "start" : N ? "end" : "middle";
317
+ this.centralLabel.attr("dy", o.centralSubLabel ? "-0.55em" : null).style("text-anchor", U).text((l = o.centralLabel) !== null && l !== void 0 ? l : null), this.centralSubLabel.attr("dy", o.centralLabel ? "0.55em" : null).style("text-anchor", U).text((t = o.centralSubLabel) !== null && t !== void 0 ? t : null), o.centralSubLabelWrap && Ut(this.centralSubLabel, W * 1.9);
318
318
  const H = (o.centralLabelOffsetX || 0) + F;
319
319
  let X = (o.centralLabelOffsetY || 0) + G;
320
320
  w && o.centralLabelOffsetX === void 0 && o.centralLabelOffsetY === void 0 && (X = (L ? -this.centralSubLabel.node().getBoundingClientRect().height : z ? this.centralLabel.node().getBoundingClientRect().height : 0) + G);
321
321
  const V = `translate(${H},${X})`;
322
- this.centralLabel.attr("transform", V), this.centralSubLabel.attr("transform", V), this.arcBackground.attr("class", Lt).attr("visibility", o.showBackground ? null : "hidden").attr("transform", B), et(this.arcBackground, y).attr("d", this.arcGen({
322
+ this.centralLabel.attr("transform", V), this.centralSubLabel.attr("transform", V), this.arcBackground.attr("class", Lt).attr("visibility", o.showBackground ? null : "hidden").attr("transform", M), et(this.arcBackground, y).attr("d", this.arcGen({
323
323
  startAngle: (h = (a = (s = o.backgroundAngleRange) === null || s === void 0 ? void 0 : s[0]) !== null && a !== void 0 ? a : (m = o.angleRange) === null || m === void 0 ? void 0 : m[0]) !== null && h !== void 0 ? h : 0,
324
324
  endAngle: (_ = (v = (c = o.backgroundAngleRange) === null || c === void 0 ? void 0 : c[1]) !== null && v !== void 0 ? v : (b = o.angleRange) === null || b === void 0 ? void 0 : b[1]) !== null && _ !== void 0 ? _ : 2 * Math.PI,
325
325
  innerRadius: W,
@@ -345,16 +345,16 @@ const Se = /* @__PURE__ */ ht({
345
345
  data: {}
346
346
  },
347
347
  setup(u, { expose: e }) {
348
- const n = u, { data: i } = Dt(n), r = At(n);
348
+ const n = u, { data: i } = Et(n), r = At(n);
349
349
  let d;
350
- const l = Et({
350
+ const l = Ot({
351
351
  component: void 0,
352
352
  tooltip: void 0,
353
353
  annotations: void 0
354
354
  }), t = pt(), s = () => {
355
355
  d || t.value && l.component && (d = new te(t.value, { ...at(l) }, i.value));
356
356
  };
357
- return Ot(() => {
357
+ return Dt(() => {
358
358
  var a;
359
359
  s(), (a = l.component) == null || a.config, d?.updateContainer({ ...at(r.value), ...at(l) });
360
360
  }), lt(i, () => {
@@ -3798,60 +3798,60 @@ function Au(t) {
3798
3798
  }
3799
3799
  })();
3800
3800
  export {
3801
- tn as $,
3802
- Qn as A,
3803
- Ba as B,
3804
- lu as C,
3805
- Da as D,
3806
- $r as E,
3801
+ tu as $,
3802
+ yt as A,
3803
+ Ie as B,
3804
+ Js as C,
3805
+ au as D,
3806
+ U as E,
3807
3807
  Dn as F,
3808
- L as G,
3809
- Er as H,
3810
- De as I,
3811
- tu as J,
3812
- Yt as K,
3813
- Jn as L,
3814
- Ie as M,
3815
- Au as N,
3816
- Je as O,
3817
- wt as P,
3818
- Qe as Q,
3819
- mu as R,
3808
+ Jn as G,
3809
+ ru as H,
3810
+ du as I,
3811
+ Au as J,
3812
+ mu as K,
3813
+ _u as L,
3814
+ wu as M,
3815
+ yu as N,
3816
+ xu as O,
3817
+ bu as P,
3818
+ Ts as Q,
3819
+ Qn as R,
3820
3820
  hu as S,
3821
- yt as T,
3822
- uu as U,
3821
+ it as T,
3822
+ iu as U,
3823
3823
  mt as V,
3824
- vu as W,
3825
- yu as X,
3826
- be as Y,
3827
- fu as Z,
3828
- xu as _,
3829
- Ic as a,
3830
- pu as a0,
3831
- gu as a1,
3832
- Kt as b,
3833
- Js as c,
3834
- Mr as d,
3835
- at as e,
3836
- it as f,
3837
- he as g,
3838
- ws as h,
3839
- wu as i,
3840
- en as j,
3841
- eu as k,
3842
- cu as l,
3843
- _u as m,
3844
- bu as n,
3824
+ nu as W,
3825
+ at as X,
3826
+ gu as Y,
3827
+ Qe as Z,
3828
+ Je as _,
3829
+ he as a,
3830
+ Cs as a0,
3831
+ $s as a1,
3832
+ ws as b,
3833
+ L as c,
3834
+ Kt as d,
3835
+ Mr as e,
3836
+ cu as f,
3837
+ Ba as g,
3838
+ en as h,
3839
+ $r as i,
3840
+ eu as j,
3841
+ Es as k,
3842
+ Ic as l,
3843
+ lu as m,
3844
+ su as n,
3845
3845
  ou as o,
3846
- Es as p,
3847
- du as q,
3848
- su as r,
3849
- $s as s,
3850
- Cs as t,
3851
- au as u,
3852
- U as v,
3853
- iu as w,
3854
- nu as x,
3855
- ru as y,
3856
- Ts as z
3846
+ De as p,
3847
+ Da as q,
3848
+ wt as r,
3849
+ be as s,
3850
+ tn as t,
3851
+ fu as u,
3852
+ Yt as v,
3853
+ Er as w,
3854
+ pu as x,
3855
+ vu as y,
3856
+ uu as z
3857
3857
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as gt, inject as bt, computed as mt, ref as kt, onMounted as St, nextTick as wt, onUnmounted as Tt, watch as L, openBlock as Ot, createElementBlock as Nt } from "vue";
2
- import { l as T, D as Pt, M as H, I as U, v as F, q as j, z as Ct, Y as At, A as te, Z as D, w as ee, o as ie, x as ne, R as Mt, N as jt, n as Dt } from "./index-CkVwMqpn.mjs";
3
- import { b as Et, X as Rt, D as q } from "./index-BIF2RB7k.mjs";
4
- import { e as k, p as Bt, g as _t } from "./math-BJ-oX_IM.mjs";
2
+ import { f as T, q as Pt, B as H, p as U, E as F, I as j, Q as Ct, s as At, R as te, u as D, U as ee, o as ie, W as ne, K as Mt, J as jt, P as Dt } from "./index-Bnn9LahC.mjs";
3
+ import { X as Et, a as Rt, D as q } from "./index-cC_2cw31.mjs";
4
+ import { c as k, p as Bt, e as _t } from "./math-Bkw6u412.mjs";
5
5
  function $t(t) {
6
6
  this._context = t;
7
7
  }
@@ -119,10 +119,10 @@ function I(t, e, i) {
119
119
  (t._y0 + 4 * t._y1 + i) / 6
120
120
  );
121
121
  }
122
- function G(t) {
122
+ function V(t) {
123
123
  this._context = t;
124
124
  }
125
- G.prototype = {
125
+ V.prototype = {
126
126
  areaStart: function() {
127
127
  this._line = 0;
128
128
  },
@@ -162,7 +162,7 @@ G.prototype = {
162
162
  }
163
163
  };
164
164
  function oe(t) {
165
- return new G(t);
165
+ return new V(t);
166
166
  }
167
167
  function It(t) {
168
168
  this._context = t;
@@ -253,7 +253,7 @@ function ae(t) {
253
253
  return new Xt(t);
254
254
  }
255
255
  function Yt(t, e) {
256
- this._basis = new G(t), this._beta = e;
256
+ this._basis = new V(t), this._beta = e;
257
257
  }
258
258
  Yt.prototype = {
259
259
  lineStart: function() {
@@ -275,7 +275,7 @@ Yt.prototype = {
275
275
  };
276
276
  const le = (function t(e) {
277
277
  function i(n) {
278
- return e === 1 ? new G(n) : new Yt(n, e);
278
+ return e === 1 ? new V(n) : new Yt(n, e);
279
279
  }
280
280
  return i.beta = function(n) {
281
281
  return t(+n);
@@ -449,10 +449,10 @@ function ht(t, e, i) {
449
449
  }
450
450
  t._context.bezierCurveTo(n, s, o, a, t._x2, t._y2);
451
451
  }
452
- function zt(t, e) {
452
+ function Gt(t, e) {
453
453
  this._context = t, this._alpha = e;
454
454
  }
455
- zt.prototype = {
455
+ Gt.prototype = {
456
456
  areaStart: function() {
457
457
  this._line = 0;
458
458
  },
@@ -497,16 +497,16 @@ zt.prototype = {
497
497
  };
498
498
  const ue = (function t(e) {
499
499
  function i(n) {
500
- return e ? new zt(n, e) : new rt(n, 0);
500
+ return e ? new Gt(n, e) : new rt(n, 0);
501
501
  }
502
502
  return i.alpha = function(n) {
503
503
  return t(+n);
504
504
  }, i;
505
505
  })(0.5);
506
- function Gt(t, e) {
506
+ function Vt(t, e) {
507
507
  this._context = t, this._alpha = e;
508
508
  }
509
- Gt.prototype = {
509
+ Vt.prototype = {
510
510
  areaStart: w,
511
511
  areaEnd: w,
512
512
  lineStart: function() {
@@ -552,16 +552,16 @@ Gt.prototype = {
552
552
  };
553
553
  const fe = (function t(e) {
554
554
  function i(n) {
555
- return e ? new Gt(n, e) : new at(n, 0);
555
+ return e ? new Vt(n, e) : new at(n, 0);
556
556
  }
557
557
  return i.alpha = function(n) {
558
558
  return t(+n);
559
559
  }, i;
560
560
  })(0.5);
561
- function Vt(t, e) {
561
+ function zt(t, e) {
562
562
  this._context = t, this._alpha = e;
563
563
  }
564
- Vt.prototype = {
564
+ zt.prototype = {
565
565
  areaStart: function() {
566
566
  this._line = 0;
567
567
  },
@@ -601,7 +601,7 @@ Vt.prototype = {
601
601
  };
602
602
  const pe = (function t(e) {
603
603
  function i(n) {
604
- return e ? new Vt(n, e) : new lt(n, 0);
604
+ return e ? new zt(n, e) : new lt(n, 0);
605
605
  }
606
606
  return i.alpha = function(n) {
607
607
  return t(+n);
@@ -753,10 +753,10 @@ function pt(t) {
753
753
  function xe(t) {
754
754
  return new Qt(t);
755
755
  }
756
- function V(t, e) {
756
+ function z(t, e) {
757
757
  this._context = t, this._t = e;
758
758
  }
759
- V.prototype = {
759
+ z.prototype = {
760
760
  areaStart: function() {
761
761
  this._line = 0;
762
762
  },
@@ -791,13 +791,13 @@ V.prototype = {
791
791
  }
792
792
  };
793
793
  function ge(t) {
794
- return new V(t, 0.5);
794
+ return new z(t, 0.5);
795
795
  }
796
796
  function be(t) {
797
- return new V(t, 0);
797
+ return new z(t, 0);
798
798
  }
799
799
  function me(t) {
800
- return new V(t, 1);
800
+ return new z(t, 1);
801
801
  }
802
802
  function yt(t, e) {
803
803
  var i = Object.keys(t);
@@ -836,15 +836,15 @@ function Se(t, e, i) {
836
836
  writable: !0
837
837
  }) : t[e] = i, t;
838
838
  }
839
- function z() {
840
- return z = Object.assign || function(t) {
839
+ function G() {
840
+ return G = Object.assign || function(t) {
841
841
  for (var e = 1; e < arguments.length; e++) {
842
842
  var i = arguments[e];
843
843
  for (var n in i)
844
844
  Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
845
845
  }
846
846
  return t;
847
- }, z.apply(this, arguments);
847
+ }, G.apply(this, arguments);
848
848
  }
849
849
  function we(t, e) {
850
850
  if (t) {
@@ -984,7 +984,7 @@ function je(t, e, i) {
984
984
  if (e.type === "L" || e.type === "Q" || e.type === "C")
985
985
  n = n.concat(Pe(t, e, i));
986
986
  else {
987
- var s = z({}, t);
987
+ var s = G({}, t);
988
988
  s.type === "M" && (s.type = "L"), n = n.concat(J(i - 1).map(function() {
989
989
  return s;
990
990
  })), n.push(e);
@@ -1001,7 +1001,7 @@ function vt(t, e, i) {
1001
1001
  return l[h] = (l[h] || 0) + 1, l;
1002
1002
  }, []), r = a.reduce(function(l, y, _) {
1003
1003
  if (_ === t.length - 1) {
1004
- var h = J(y, z({}, t[t.length - 1]));
1004
+ var h = J(y, G({}, t[t.length - 1]));
1005
1005
  return h[0].type === "M" && h.forEach(function(c) {
1006
1006
  c.type = "L";
1007
1007
  }), l.concat(h);