@wisemen/wise-crm-web 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/ActivityIcon-DNdtN-M_.js +19 -0
  2. package/dist/AppSkeletonLoader-Dq6pKznm.js +1112 -0
  3. package/dist/{AttachmentIcon-CsucE3yf.js → AttachmentIcon-BLUd7LaN.js} +9 -7
  4. package/dist/BoldIcon-WRYUWz15.js +16 -0
  5. package/dist/{BookIcon-DgT3flV5.js → BookIcon-Bb3r5y_J.js} +9 -7
  6. package/dist/{BuildingIcon-Bm18omgW.js → BuildingIcon-DFutRg8d.js} +9 -7
  7. package/dist/{BuildingsIcon-D4X7QciL.js → BuildingsIcon-BVHy6yoa.js} +9 -7
  8. package/dist/{BulletListIcon-CNCV-cOS.js → BulletListIcon-BhOXLSBa.js} +9 -7
  9. package/dist/BusinessDetailSidebarProvider-a6VeNUii.js +2946 -0
  10. package/dist/BusinessDetailView-Dz3wDSx5.js +24 -0
  11. package/dist/ChevronDownIcon-BmyTSPND.js +19 -0
  12. package/dist/ClockIcon-BYfZAvIE.js +23 -0
  13. package/dist/ClockPlusIcon-BcNi0Y9I.js +23 -0
  14. package/dist/{CopyIcon-CUomKXdn.js → CopyIcon-2eV8MRv_.js} +9 -7
  15. package/dist/CrmDetailHeaderCard-BkA0Z-Cu.js +2523 -0
  16. package/dist/CrmDetailView-BhZEQqUH.js +67 -0
  17. package/dist/DealCommunicationTabView-Drp9MEPu.js +140 -0
  18. package/dist/DealDetailView-DWLudchX.js +1049 -0
  19. package/dist/DealExternalAttachment-B6l0gDqF.js +179 -0
  20. package/dist/{DealIcon-CpO-DkyS.js → DealIcon-BwUWYDxo.js} +9 -7
  21. package/dist/DealSendMailDialog-Dqei4933.js +1566 -0
  22. package/dist/DownloadCloudIcon-BSrLGGrY.js +19 -0
  23. package/dist/{EditWithLineIcon-C0WMD50F.js → EditWithLineIcon-BKYDPJOY.js} +9 -7
  24. package/dist/{Error-X0deDY-N.js → Error-za-wClcU.js} +2591 -2462
  25. package/dist/{FileIcon-3FebXgYQ.js → FileIcon-DL1e1tAu.js} +9 -7
  26. package/dist/FilterLinesIcon-DgVMySAE.js +22 -0
  27. package/dist/H1Icon-B6NEsEbj.js +17 -0
  28. package/dist/{H2Icon-CuEmp9I0.js → H2Icon-CNof5Ohu.js} +9 -7
  29. package/dist/{H3Icon-wAPhdYIf.js → H3Icon-B2F2Tb6r.js} +9 -7
  30. package/dist/HashIcon-C_XttKfW.js +19 -0
  31. package/dist/HomeFilledIcon-DtZ2eXxt.js +16 -0
  32. package/dist/IndividualDetailSidebarProvider-jjRoK1Av.js +609 -0
  33. package/dist/IndividualDetailView-BqIRHn-0.js +24 -0
  34. package/dist/ItalicIcon-DqBns3yy.js +17 -0
  35. package/dist/{LayersTreeIcon-Ct-owndO.js → LayersTreeIcon-DZZCSCY9.js} +10 -8
  36. package/dist/{LinkBrokenIcon-CTlqmapl.js → LinkBrokenIcon-BNBpWSi7.js} +9 -7
  37. package/dist/{LinkExternalIcon-LOVtSqBT.js → LinkExternalIcon-B7SHeB1_.js} +9 -7
  38. package/dist/LinkIcon-8bCrZEv9.js +17 -0
  39. package/dist/{LocationPinIcon-Cp-wRgk2.js → LocationPinIcon-UySRqSfG.js} +9 -7
  40. package/dist/{MailIcon-CnTrB1k3.js → MailIcon-BT7gSIZb.js} +9 -7
  41. package/dist/{MobilePhoneIcon-B747hmpS.js → MobilePhoneIcon-_KQGnCSS.js} +9 -7
  42. package/dist/NumberedListIcon-B-JVTSAe.js +17 -0
  43. package/dist/{PhoneIcon-94MYVL85.js → PhoneIcon-DGGW_MNR.js} +9 -7
  44. package/dist/{RefreshIcon-DRe3coBc.js → RefreshIcon-D1QWfdPD.js} +9 -7
  45. package/dist/{SendIcon-MYItp1xI.js → SendIcon-BtJ-NCec.js} +9 -7
  46. package/dist/{SettingsIcon-C0qTAv0w.js → SettingsIcon-CWFwJelS.js} +10 -8
  47. package/dist/{StarOutlineIcon-CiFLgepk.js → StarOutlineIcon-C-ELTCDQ.js} +9 -7
  48. package/dist/{StarYellowIcon-C0v_XGwI.js → StarYellowIcon-7wuNWaQO.js} +9 -7
  49. package/dist/{ThreeDotsIcon-lujOTU3G.js → ThreeDotsIcon-C56RWk-0.js} +12 -10
  50. package/dist/TimeLineMarkerIcon-DLmPwfs6.js +18 -0
  51. package/dist/{TrashIcon-v4L9SEK_.js → TrashIcon-o4PWmcYe.js} +9 -7
  52. package/dist/UploadCloudIcon-D2tWB0NP.js +19 -0
  53. package/dist/{UserCircleIcon-BjUt_2C4.js → UserCircleIcon-DiDajcIH.js} +10 -8
  54. package/dist/UserIcon-Bv1eF7ln.js +22 -0
  55. package/dist/{VerticalDotsIcon-Y3m6tlQ2.js → VerticalDotsIcon-YcD73UqY.js} +9 -7
  56. package/dist/{WalletIcon-pPsKbzmh.js → WalletIcon-CUh92U5K.js} +9 -7
  57. package/dist/_plugin-vue_export-helper-D3hKq4w_.js +8 -0
  58. package/dist/client-9P6xe_5g.js +4188 -0
  59. package/dist/components/auto-focus/AutoFocus.vue.d.ts +13 -0
  60. package/dist/components/column-layout/ColumnLayout.vue.d.ts +1 -1
  61. package/dist/components/row-layout/RowLayout.vue.d.ts +1 -1
  62. package/dist/components/text/Text.vue.d.ts +1 -1
  63. package/dist/index.js +1881 -1693
  64. package/dist/style.css +2 -2
  65. package/dist/testing.js +102 -98
  66. package/dist/utils/color.util.d.ts +6 -0
  67. package/dist/{uuid.util-C1p-yuFc.js → uuid.util-DpiDKVoj.js} +4 -2
  68. package/package.json +30 -30
  69. package/dist/ActivityIcon-DFD9ZhO0.js +0 -17
  70. package/dist/AppSkeletonLoader-BAhoOmFD.js +0 -1106
  71. package/dist/BoldIcon-DY2FlAS0.js +0 -14
  72. package/dist/BusinessDetailSidebarProvider-Dm6Dd7Nq.js +0 -2899
  73. package/dist/BusinessDetailView-BHVUfCpV.js +0 -24
  74. package/dist/ChevronDownIcon-CfBAAAca.js +0 -17
  75. package/dist/ClockIcon-Ckr1IQBt.js +0 -21
  76. package/dist/ClockPlusIcon-CVN69pCS.js +0 -21
  77. package/dist/CrmDetailHeaderCard-CiVLyIuw.js +0 -2516
  78. package/dist/CrmDetailView-DaAuWeiB.js +0 -65
  79. package/dist/DealCommunicationTabView-xq_zOAsr.js +0 -137
  80. package/dist/DealDetailView-C54XpYN1.js +0 -1021
  81. package/dist/DealExternalAttachment-Dp44vkgt.js +0 -177
  82. package/dist/DealSendMailDialog-D11Tgd_A.js +0 -1552
  83. package/dist/DownloadCloudIcon-VMmB9vit.js +0 -17
  84. package/dist/FilterLinesIcon-DHpRPKJB.js +0 -20
  85. package/dist/H1Icon-CPVGTTtl.js +0 -15
  86. package/dist/HashIcon-C2kfHjTC.js +0 -17
  87. package/dist/HomeFilledIcon-CxIazF0B.js +0 -14
  88. package/dist/IndividualDetailSidebarProvider-BvjhFng9.js +0 -608
  89. package/dist/IndividualDetailView-Cq8iAwQv.js +0 -24
  90. package/dist/ItalicIcon-DfV3EOdk.js +0 -15
  91. package/dist/LinkIcon-DqBbVrvs.js +0 -15
  92. package/dist/NumberedListIcon-amJxDaaD.js +0 -15
  93. package/dist/TimeLineMarkerIcon-C4LfErbc.js +0 -16
  94. package/dist/UploadCloudIcon-j1-1Rvqb.js +0 -17
  95. package/dist/UserIcon-Cb2jFKLr.js +0 -20
  96. package/dist/_plugin-vue_export-helper-BSi1g3Lh.js +0 -6
  97. package/dist/client-S6BLV3Ct.js +0 -4191
@@ -0,0 +1,1112 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-D3hKq4w_.js";
2
+ import t from "zod";
3
+ import { computed as n, createElementBlock as r, defineComponent as i, getCurrentScope as a, hasInjectionContext as o, inject as s, isRef as c, normalizeClass as l, onScopeDispose as u, openBlock as d, reactive as f, readonly as p, renderSlot as m, shallowReactive as h, shallowReadonly as g, toRefs as _, unref as v, watch as y } from "vue";
4
+ import { useI18n as b } from "vue-i18n";
5
+ import { useInjectConfigContext as x } from "@wisemen/vue-core-components";
6
+ import { Temporal as S } from "temporal-polyfill";
7
+ //#region ../../node_modules/.pnpm/@wisemen+vue-core-query@0.0.47_motion-v@2.2.1_@vueuse+core@14.2.1_vue@3.5.32_typescript_11c6a2830f9095f6795776c7b67c8655/node_modules/@wisemen/vue-core-query/dist/index.js
8
+ var C = class {
9
+ constructor() {
10
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
11
+ }
12
+ subscribe(e) {
13
+ return this.listeners.add(e), this.onSubscribe(), () => {
14
+ this.listeners.delete(e), this.onUnsubscribe();
15
+ };
16
+ }
17
+ hasListeners() {
18
+ return this.listeners.size > 0;
19
+ }
20
+ onSubscribe() {}
21
+ onUnsubscribe() {}
22
+ }, w = typeof window > "u" || "Deno" in globalThis;
23
+ function ee() {}
24
+ function T(e) {
25
+ return typeof e == "number" && e >= 0 && e !== Infinity;
26
+ }
27
+ function te(e, t) {
28
+ return Math.max(e + (t || 0) - Date.now(), 0);
29
+ }
30
+ function E(e, t) {
31
+ return typeof e == "function" ? e(t) : e;
32
+ }
33
+ function D(e, t) {
34
+ return typeof e == "function" ? e(t) : e;
35
+ }
36
+ function O(e) {
37
+ return JSON.stringify(e, (e, t) => M(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
38
+ }
39
+ function k(e, t) {
40
+ if (e === t) return e;
41
+ let n = j(e) && j(t);
42
+ if (n || M(e) && M(t)) {
43
+ let r = n ? e : Object.keys(e), i = r.length, a = n ? t : Object.keys(t), o = a.length, s = n ? [] : {}, c = 0;
44
+ for (let i = 0; i < o; i++) {
45
+ let o = n ? i : a[i];
46
+ (!n && r.includes(o) || n) && e[o] === void 0 && t[o] === void 0 ? (s[o] = void 0, c++) : (s[o] = k(e[o], t[o]), s[o] === e[o] && e[o] !== void 0 && c++);
47
+ }
48
+ return i === o && c === i ? e : s;
49
+ }
50
+ return t;
51
+ }
52
+ function A(e, t) {
53
+ if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
54
+ for (let n in e) if (e[n] !== t[n]) return !1;
55
+ return !0;
56
+ }
57
+ function j(e) {
58
+ return Array.isArray(e) && e.length === Object.keys(e).length;
59
+ }
60
+ function M(e) {
61
+ if (!N(e)) return !1;
62
+ let t = e.constructor;
63
+ if (t === void 0) return !0;
64
+ let n = t.prototype;
65
+ return !(!N(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
66
+ }
67
+ function N(e) {
68
+ return Object.prototype.toString.call(e) === "[object Object]";
69
+ }
70
+ function P(e, t, n) {
71
+ if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
72
+ if (n.structuralSharing !== !1) {
73
+ if (process.env.NODE_ENV !== "production") try {
74
+ return k(e, t);
75
+ } catch (e) {
76
+ throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
77
+ }
78
+ return k(e, t);
79
+ }
80
+ return t;
81
+ }
82
+ function ne(e, t, n = 0) {
83
+ let r = [...e, t];
84
+ return n && r.length > n ? r.slice(1) : r;
85
+ }
86
+ function re(e, t, n = 0) {
87
+ let r = [t, ...e];
88
+ return n && r.length > n ? r.slice(0, -1) : r;
89
+ }
90
+ var F = Symbol();
91
+ function ie(e, t) {
92
+ return process.env.NODE_ENV !== "production" && e.queryFn === F && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === F ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
93
+ }
94
+ function I(e, t) {
95
+ return typeof e == "function" ? e(...t) : !!e;
96
+ }
97
+ var ae = new class extends C {
98
+ #e;
99
+ #t;
100
+ #n;
101
+ constructor() {
102
+ super(), this.#n = (e) => {
103
+ if (!w && window.addEventListener) {
104
+ let t = () => e();
105
+ return window.addEventListener("visibilitychange", t, !1), () => {
106
+ window.removeEventListener("visibilitychange", t);
107
+ };
108
+ }
109
+ };
110
+ }
111
+ onSubscribe() {
112
+ this.#t || this.setEventListener(this.#n);
113
+ }
114
+ onUnsubscribe() {
115
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
116
+ }
117
+ setEventListener(e) {
118
+ this.#n = e, this.#t?.(), this.#t = e((e) => {
119
+ typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
120
+ });
121
+ }
122
+ setFocused(e) {
123
+ this.#e !== e && (this.#e = e, this.onFocus());
124
+ }
125
+ onFocus() {
126
+ let e = this.isFocused();
127
+ this.listeners.forEach((t) => {
128
+ t(e);
129
+ });
130
+ }
131
+ isFocused() {
132
+ return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
133
+ }
134
+ }(), oe = new class extends C {
135
+ #e = !0;
136
+ #t;
137
+ #n;
138
+ constructor() {
139
+ super(), this.#n = (e) => {
140
+ if (!w && window.addEventListener) {
141
+ let t = () => e(!0), n = () => e(!1);
142
+ return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
143
+ window.removeEventListener("online", t), window.removeEventListener("offline", n);
144
+ };
145
+ }
146
+ };
147
+ }
148
+ onSubscribe() {
149
+ this.#t || this.setEventListener(this.#n);
150
+ }
151
+ onUnsubscribe() {
152
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
153
+ }
154
+ setEventListener(e) {
155
+ this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
156
+ }
157
+ setOnline(e) {
158
+ this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
159
+ t(e);
160
+ }));
161
+ }
162
+ isOnline() {
163
+ return this.#e;
164
+ }
165
+ }();
166
+ function L() {
167
+ let e, t, n = new Promise((n, r) => {
168
+ e = n, t = r;
169
+ });
170
+ n.status = "pending", n.catch(() => {});
171
+ function r(e) {
172
+ Object.assign(n, e), delete n.resolve, delete n.reject;
173
+ }
174
+ return n.resolve = (t) => {
175
+ r({
176
+ status: "fulfilled",
177
+ value: t
178
+ }), e(t);
179
+ }, n.reject = (e) => {
180
+ r({
181
+ status: "rejected",
182
+ reason: e
183
+ }), t(e);
184
+ }, n;
185
+ }
186
+ function se(e) {
187
+ return (e ?? "online") === "online" ? oe.isOnline() : !0;
188
+ }
189
+ var ce = (e) => setTimeout(e, 0);
190
+ function le() {
191
+ let e = [], t = 0, n = (e) => {
192
+ e();
193
+ }, r = (e) => {
194
+ e();
195
+ }, i = ce, a = (r) => {
196
+ t ? e.push(r) : i(() => {
197
+ n(r);
198
+ });
199
+ }, o = () => {
200
+ let t = e;
201
+ e = [], t.length && i(() => {
202
+ r(() => {
203
+ t.forEach((e) => {
204
+ n(e);
205
+ });
206
+ });
207
+ });
208
+ };
209
+ return {
210
+ batch: (e) => {
211
+ let n;
212
+ t++;
213
+ try {
214
+ n = e();
215
+ } finally {
216
+ t--, t || o();
217
+ }
218
+ return n;
219
+ },
220
+ batchCalls: (e) => (...t) => {
221
+ a(() => {
222
+ e(...t);
223
+ });
224
+ },
225
+ schedule: a,
226
+ setNotifyFunction: (e) => {
227
+ n = e;
228
+ },
229
+ setBatchNotifyFunction: (e) => {
230
+ r = e;
231
+ },
232
+ setScheduler: (e) => {
233
+ i = e;
234
+ }
235
+ };
236
+ }
237
+ var R = le();
238
+ function ue(e, t) {
239
+ return {
240
+ fetchFailureCount: 0,
241
+ fetchFailureReason: null,
242
+ fetchStatus: se(t.networkMode) ? "fetching" : "paused",
243
+ ...e === void 0 && {
244
+ error: null,
245
+ status: "pending"
246
+ }
247
+ };
248
+ }
249
+ function de() {
250
+ return {
251
+ context: void 0,
252
+ data: void 0,
253
+ error: null,
254
+ failureCount: 0,
255
+ failureReason: null,
256
+ isPaused: !1,
257
+ status: "idle",
258
+ variables: void 0,
259
+ submittedAt: 0
260
+ };
261
+ }
262
+ function z(e) {
263
+ return { onFetch: (e, t) => {
264
+ let n = e.options, r = e.fetchOptions?.meta?.fetchMore?.direction, i = e.state.data?.pages || [], a = e.state.data?.pageParams || [], o = {
265
+ pages: [],
266
+ pageParams: []
267
+ }, s = 0, c = async () => {
268
+ let t = !1, c = (n) => {
269
+ Object.defineProperty(n, "signal", {
270
+ enumerable: !0,
271
+ get: () => (e.signal.aborted ? t = !0 : e.signal.addEventListener("abort", () => {
272
+ t = !0;
273
+ }), e.signal)
274
+ });
275
+ }, l = ie(e.options, e.fetchOptions), u = async (n, r, i) => {
276
+ if (t) return Promise.reject();
277
+ if (r == null && n.pages.length) return Promise.resolve(n);
278
+ let a = {
279
+ client: e.client,
280
+ queryKey: e.queryKey,
281
+ pageParam: r,
282
+ direction: i ? "backward" : "forward",
283
+ meta: e.options.meta
284
+ };
285
+ c(a);
286
+ let o = await l(a), { maxPages: s } = e.options, u = i ? re : ne;
287
+ return {
288
+ pages: u(n.pages, o, s),
289
+ pageParams: u(n.pageParams, r, s)
290
+ };
291
+ };
292
+ if (r && i.length) {
293
+ let e = r === "backward", t = e ? V : B, s = {
294
+ pages: i,
295
+ pageParams: a
296
+ };
297
+ o = await u(s, t(n, s), e);
298
+ } else {
299
+ let e = i.length;
300
+ do {
301
+ let e = s === 0 ? a[0] ?? n.initialPageParam : B(n, o);
302
+ if (s > 0 && e == null) break;
303
+ o = await u(o, e), s++;
304
+ } while (s < e);
305
+ }
306
+ return o;
307
+ };
308
+ e.options.persister ? e.fetchFn = () => e.options.persister?.(c, {
309
+ client: e.client,
310
+ queryKey: e.queryKey,
311
+ meta: e.options.meta,
312
+ signal: e.signal
313
+ }, t) : e.fetchFn = c;
314
+ } };
315
+ }
316
+ function B(e, { pages: t, pageParams: n }) {
317
+ let r = t.length - 1;
318
+ return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
319
+ }
320
+ function V(e, { pages: t, pageParams: n }) {
321
+ return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
322
+ }
323
+ function fe(e, t) {
324
+ return t ? B(e, t) != null : !1;
325
+ }
326
+ function pe(e, t) {
327
+ return !t || !e.getPreviousPageParam ? !1 : V(e, t) != null;
328
+ }
329
+ var H = class extends C {
330
+ constructor(e, t) {
331
+ super(), this.options = t, this.#e = e, this.#s = null, this.#o = L(), this.options.experimental_prefetchInRender || this.#o.reject(/* @__PURE__ */ Error("experimental_prefetchInRender feature flag is not enabled")), this.bindMethods(), this.setOptions(t);
332
+ }
333
+ #e;
334
+ #t = void 0;
335
+ #n = void 0;
336
+ #r = void 0;
337
+ #i;
338
+ #a;
339
+ #o;
340
+ #s;
341
+ #c;
342
+ #l;
343
+ #u;
344
+ #d;
345
+ #f;
346
+ #p;
347
+ #m = /* @__PURE__ */ new Set();
348
+ bindMethods() {
349
+ this.refetch = this.refetch.bind(this);
350
+ }
351
+ onSubscribe() {
352
+ this.listeners.size === 1 && (this.#t.addObserver(this), U(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
353
+ }
354
+ onUnsubscribe() {
355
+ this.hasListeners() || this.destroy();
356
+ }
357
+ shouldFetchOnReconnect() {
358
+ return W(this.#t, this.options, this.options.refetchOnReconnect);
359
+ }
360
+ shouldFetchOnWindowFocus() {
361
+ return W(this.#t, this.options, this.options.refetchOnWindowFocus);
362
+ }
363
+ destroy() {
364
+ this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
365
+ }
366
+ setOptions(e) {
367
+ let t = this.options, n = this.#t;
368
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof D(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
369
+ this.#S(), this.#t.setOptions(this.options), t._defaulted && !A(this.options, t) && this.#e.getQueryCache().notify({
370
+ type: "observerOptionsUpdated",
371
+ query: this.#t,
372
+ observer: this
373
+ });
374
+ let r = this.hasListeners();
375
+ r && G(this.#t, n, this.options, t) && this.#h(), this.updateResult(), r && (this.#t !== n || D(this.options.enabled, this.#t) !== D(t.enabled, this.#t) || E(this.options.staleTime, this.#t) !== E(t.staleTime, this.#t)) && this.#g();
376
+ let i = this.#_();
377
+ r && (this.#t !== n || D(this.options.enabled, this.#t) !== D(t.enabled, this.#t) || i !== this.#p) && this.#v(i);
378
+ }
379
+ getOptimisticResult(e) {
380
+ let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
381
+ return he(this, n) && (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
382
+ }
383
+ getCurrentResult() {
384
+ return this.#r;
385
+ }
386
+ trackResult(e, t) {
387
+ return new Proxy(e, { get: (e, n) => (this.trackProp(n), t?.(n), Reflect.get(e, n)) });
388
+ }
389
+ trackProp(e) {
390
+ this.#m.add(e);
391
+ }
392
+ getCurrentQuery() {
393
+ return this.#t;
394
+ }
395
+ refetch({ ...e } = {}) {
396
+ return this.fetch({ ...e });
397
+ }
398
+ fetchOptimistic(e) {
399
+ let t = this.#e.defaultQueryOptions(e), n = this.#e.getQueryCache().build(this.#e, t);
400
+ return n.fetch().then(() => this.createResult(n, t));
401
+ }
402
+ fetch(e) {
403
+ return this.#h({
404
+ ...e,
405
+ cancelRefetch: e.cancelRefetch ?? !0
406
+ }).then(() => (this.updateResult(), this.#r));
407
+ }
408
+ #h(e) {
409
+ this.#S();
410
+ let t = this.#t.fetch(this.options, e);
411
+ return e?.throwOnError || (t = t.catch(ee)), t;
412
+ }
413
+ #g() {
414
+ this.#b();
415
+ let e = E(this.options.staleTime, this.#t);
416
+ if (w || this.#r.isStale || !T(e)) return;
417
+ let t = te(this.#r.dataUpdatedAt, e) + 1;
418
+ this.#d = setTimeout(() => {
419
+ this.#r.isStale || this.updateResult();
420
+ }, t);
421
+ }
422
+ #_() {
423
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
424
+ }
425
+ #v(e) {
426
+ this.#x(), this.#p = e, !(w || D(this.options.enabled, this.#t) === !1 || !T(this.#p) || this.#p === 0) && (this.#f = setInterval(() => {
427
+ (this.options.refetchIntervalInBackground || ae.isFocused()) && this.#h();
428
+ }, this.#p));
429
+ }
430
+ #y() {
431
+ this.#g(), this.#v(this.#_());
432
+ }
433
+ #b() {
434
+ this.#d &&= (clearTimeout(this.#d), void 0);
435
+ }
436
+ #x() {
437
+ this.#f &&= (clearInterval(this.#f), void 0);
438
+ }
439
+ createResult(e, t) {
440
+ let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;
441
+ if (t._optimisticResults) {
442
+ let i = this.hasListeners(), a = !i && U(e, t), o = i && G(e, n, t, r);
443
+ (a || o) && (l = {
444
+ ...l,
445
+ ...ue(c.data, e.options)
446
+ }), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
447
+ }
448
+ let { error: f, errorUpdatedAt: p, status: m } = l;
449
+ d = l.data;
450
+ let h = !1;
451
+ if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
452
+ let e;
453
+ i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#u?.state.data, this.#u) : t.placeholderData, e !== void 0 && (m = "success", d = P(i?.data, e, t), u = !0);
454
+ }
455
+ if (t.select && d !== void 0 && !h) if (i && d === a?.data && t.select === this.#c) d = this.#l;
456
+ else try {
457
+ this.#c = t.select, d = t.select(d), d = P(i?.data, d, t), this.#l = d, this.#s = null;
458
+ } catch (e) {
459
+ this.#s = e;
460
+ }
461
+ this.#s && (f = this.#s, d = this.#l, p = Date.now(), m = "error");
462
+ let g = l.fetchStatus === "fetching", _ = m === "pending", v = m === "error", y = _ && g, b = d !== void 0, x = {
463
+ status: m,
464
+ fetchStatus: l.fetchStatus,
465
+ isPending: _,
466
+ isSuccess: m === "success",
467
+ isError: v,
468
+ isInitialLoading: y,
469
+ isLoading: y,
470
+ data: d,
471
+ dataUpdatedAt: l.dataUpdatedAt,
472
+ error: f,
473
+ errorUpdatedAt: p,
474
+ failureCount: l.fetchFailureCount,
475
+ failureReason: l.fetchFailureReason,
476
+ errorUpdateCount: l.errorUpdateCount,
477
+ isFetched: l.dataUpdateCount > 0 || l.errorUpdateCount > 0,
478
+ isFetchedAfterMount: l.dataUpdateCount > s.dataUpdateCount || l.errorUpdateCount > s.errorUpdateCount,
479
+ isFetching: g,
480
+ isRefetching: g && !_,
481
+ isLoadingError: v && !b,
482
+ isPaused: l.fetchStatus === "paused",
483
+ isPlaceholderData: u,
484
+ isRefetchError: v && b,
485
+ isStale: K(e, t),
486
+ refetch: this.refetch,
487
+ promise: this.#o
488
+ };
489
+ if (this.options.experimental_prefetchInRender) {
490
+ let t = (e) => {
491
+ x.status === "error" ? e.reject(x.error) : x.data !== void 0 && e.resolve(x.data);
492
+ }, r = () => {
493
+ t(this.#o = x.promise = L());
494
+ }, i = this.#o;
495
+ switch (i.status) {
496
+ case "pending":
497
+ e.queryHash === n.queryHash && t(i);
498
+ break;
499
+ case "fulfilled":
500
+ (x.status === "error" || x.data !== i.value) && r();
501
+ break;
502
+ case "rejected":
503
+ (x.status !== "error" || x.error !== i.reason) && r();
504
+ break;
505
+ }
506
+ }
507
+ return x;
508
+ }
509
+ updateResult() {
510
+ let e = this.#r, t = this.createResult(this.#t, this.options);
511
+ this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !A(t, e) && (this.#r = t, this.#C({ listeners: (() => {
512
+ if (!e) return !0;
513
+ let { notifyOnChangeProps: t } = this.options, n = typeof t == "function" ? t() : t;
514
+ if (n === "all" || !n && !this.#m.size) return !0;
515
+ let r = new Set(n ?? this.#m);
516
+ return this.options.throwOnError && r.add("error"), Object.keys(this.#r).some((t) => {
517
+ let n = t;
518
+ return this.#r[n] !== e[n] && r.has(n);
519
+ });
520
+ })() }));
521
+ }
522
+ #S() {
523
+ let e = this.#e.getQueryCache().build(this.#e, this.options);
524
+ if (e === this.#t) return;
525
+ let t = this.#t;
526
+ this.#t = e, this.#n = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this));
527
+ }
528
+ onQueryUpdate() {
529
+ this.updateResult(), this.hasListeners() && this.#y();
530
+ }
531
+ #C(e) {
532
+ R.batch(() => {
533
+ e.listeners && this.listeners.forEach((e) => {
534
+ e(this.#r);
535
+ }), this.#e.getQueryCache().notify({
536
+ query: this.#t,
537
+ type: "observerResultsUpdated"
538
+ });
539
+ });
540
+ }
541
+ };
542
+ function me(e, t) {
543
+ return D(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
544
+ }
545
+ function U(e, t) {
546
+ return me(e, t) || e.state.data !== void 0 && W(e, t, t.refetchOnMount);
547
+ }
548
+ function W(e, t, n) {
549
+ if (D(t.enabled, e) !== !1) {
550
+ let r = typeof n == "function" ? n(e) : n;
551
+ return r === "always" || r !== !1 && K(e, t);
552
+ }
553
+ return !1;
554
+ }
555
+ function G(e, t, n, r) {
556
+ return (e !== t || D(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && K(e, n);
557
+ }
558
+ function K(e, t) {
559
+ return D(t.enabled, e) !== !1 && e.isStaleByTime(E(t.staleTime, e));
560
+ }
561
+ function he(e, t) {
562
+ return !A(e.getCurrentResult(), t);
563
+ }
564
+ var ge = class extends H {
565
+ constructor(e, t) {
566
+ super(e, t);
567
+ }
568
+ bindMethods() {
569
+ super.bindMethods(), this.fetchNextPage = this.fetchNextPage.bind(this), this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
570
+ }
571
+ setOptions(e) {
572
+ super.setOptions({
573
+ ...e,
574
+ behavior: z()
575
+ });
576
+ }
577
+ getOptimisticResult(e) {
578
+ return e.behavior = z(), super.getOptimisticResult(e);
579
+ }
580
+ fetchNextPage(e) {
581
+ return this.fetch({
582
+ ...e,
583
+ meta: { fetchMore: { direction: "forward" } }
584
+ });
585
+ }
586
+ fetchPreviousPage(e) {
587
+ return this.fetch({
588
+ ...e,
589
+ meta: { fetchMore: { direction: "backward" } }
590
+ });
591
+ }
592
+ createResult(e, t) {
593
+ let { state: n } = e, r = super.createResult(e, t), { isFetching: i, isRefetching: a, isError: o, isRefetchError: s } = r, c = n.fetchMeta?.fetchMore?.direction, l = o && c === "forward", u = i && c === "forward", d = o && c === "backward", f = i && c === "backward";
594
+ return {
595
+ ...r,
596
+ fetchNextPage: this.fetchNextPage,
597
+ fetchPreviousPage: this.fetchPreviousPage,
598
+ hasNextPage: fe(t, n.data),
599
+ hasPreviousPage: pe(t, n.data),
600
+ isFetchNextPageError: l,
601
+ isFetchingNextPage: u,
602
+ isFetchPreviousPageError: d,
603
+ isFetchingPreviousPage: f,
604
+ isRefetchError: s && !l && !d,
605
+ isRefetching: a && !u && !f
606
+ };
607
+ }
608
+ }, _e = class extends C {
609
+ #e;
610
+ #t = void 0;
611
+ #n;
612
+ #r;
613
+ constructor(e, t) {
614
+ super(), this.#e = e, this.setOptions(t), this.bindMethods(), this.#i();
615
+ }
616
+ bindMethods() {
617
+ this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
618
+ }
619
+ setOptions(e) {
620
+ let t = this.options;
621
+ this.options = this.#e.defaultMutationOptions(e), A(this.options, t) || this.#e.getMutationCache().notify({
622
+ type: "observerOptionsUpdated",
623
+ mutation: this.#n,
624
+ observer: this
625
+ }), t?.mutationKey && this.options.mutationKey && O(t.mutationKey) !== O(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
626
+ }
627
+ onUnsubscribe() {
628
+ this.hasListeners() || this.#n?.removeObserver(this);
629
+ }
630
+ onMutationUpdate(e) {
631
+ this.#i(), this.#a(e);
632
+ }
633
+ getCurrentResult() {
634
+ return this.#t;
635
+ }
636
+ reset() {
637
+ this.#n?.removeObserver(this), this.#n = void 0, this.#i(), this.#a();
638
+ }
639
+ mutate(e, t) {
640
+ return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);
641
+ }
642
+ #i() {
643
+ let e = this.#n?.state ?? de();
644
+ this.#t = {
645
+ ...e,
646
+ isPending: e.status === "pending",
647
+ isSuccess: e.status === "success",
648
+ isError: e.status === "error",
649
+ isIdle: e.status === "idle",
650
+ mutate: this.mutate,
651
+ reset: this.reset
652
+ };
653
+ }
654
+ #a(e) {
655
+ R.batch(() => {
656
+ if (this.#r && this.hasListeners()) {
657
+ let t = this.#t.variables, n = this.#t.context;
658
+ e?.type === "success" ? (this.#r.onSuccess?.(e.data, t, n), this.#r.onSettled?.(e.data, null, t, n)) : e?.type === "error" && (this.#r.onError?.(e.error, t, n), this.#r.onSettled?.(void 0, e.error, t, n));
659
+ }
660
+ this.listeners.forEach((e) => {
661
+ e(this.#t);
662
+ });
663
+ });
664
+ }
665
+ }, ve = "VUE_QUERY_CLIENT";
666
+ function ye(e) {
667
+ return `${ve}${e ? `:${e}` : ""}`;
668
+ }
669
+ function q(e, t) {
670
+ Object.keys(e).forEach((n) => {
671
+ e[n] = t[n];
672
+ });
673
+ }
674
+ function J(e, t, n = "", r = 0) {
675
+ if (t) {
676
+ let i = t(e, n, r);
677
+ if (i === void 0 && c(e) || i !== void 0) return i;
678
+ }
679
+ if (Array.isArray(e)) return e.map((e, n) => J(e, t, String(n), r + 1));
680
+ if (typeof e == "object" && xe(e)) {
681
+ let n = Object.entries(e).map(([e, n]) => [e, J(n, t, e, r + 1)]);
682
+ return Object.fromEntries(n);
683
+ }
684
+ return e;
685
+ }
686
+ function be(e, t) {
687
+ return J(e, t);
688
+ }
689
+ function Y(e, t = !1) {
690
+ return be(e, (e, n, r) => {
691
+ if (r === 1 && n === "queryKey") return Y(e, !0);
692
+ if (t && Se(e)) return Y(e(), t);
693
+ if (c(e)) return Y(v(e), t);
694
+ });
695
+ }
696
+ function xe(e) {
697
+ if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
698
+ let t = Object.getPrototypeOf(e);
699
+ return t === null || t === Object.prototype;
700
+ }
701
+ function Se(e) {
702
+ return typeof e == "function";
703
+ }
704
+ function X(e = "") {
705
+ if (!o()) throw Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");
706
+ let t = s(ye(e));
707
+ if (!t) throw Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");
708
+ return t;
709
+ }
710
+ function Z(e, t, r) {
711
+ process.env.NODE_ENV === "development" && (a() || console.warn("vue-query composable like \"useQuery()\" should only be used inside a \"setup()\" function or a running effect scope. They might otherwise lead to memory leaks."));
712
+ let i = X(), o = n(() => {
713
+ let e = Y(t);
714
+ typeof e.enabled == "function" && (e.enabled = e.enabled());
715
+ let n = i.defaultQueryOptions(e);
716
+ return n._optimisticResults = i.isRestoring.value ? "isRestoring" : "optimistic", n;
717
+ }), s = new e(i, o.value), c = o.value.shallow ? h(s.getCurrentResult()) : f(s.getCurrentResult()), l = () => {};
718
+ y(i.isRestoring, (e) => {
719
+ e || (l(), l = s.subscribe((e) => {
720
+ q(c, e);
721
+ }));
722
+ }, { immediate: !0 });
723
+ let d = () => {
724
+ s.setOptions(o.value), q(c, s.getCurrentResult());
725
+ };
726
+ y(o, d), u(() => {
727
+ l();
728
+ });
729
+ let m = (...e) => (d(), c.refetch(...e)), v = () => new Promise((e, t) => {
730
+ let n = () => {}, r = () => {
731
+ if (o.value.enabled !== !1) {
732
+ s.setOptions(o.value);
733
+ let r = s.getOptimisticResult(o.value);
734
+ r.isStale ? (n(), s.fetchOptimistic(o.value).then(e, (n) => {
735
+ I(o.value.throwOnError, [n, s.getCurrentQuery()]) ? t(n) : e(s.getCurrentResult());
736
+ })) : (n(), e(r));
737
+ }
738
+ };
739
+ r(), n = y(o, r);
740
+ });
741
+ y(() => c.error, (e) => {
742
+ if (c.isError && !c.isFetching && I(o.value.throwOnError, [e, s.getCurrentQuery()])) throw e;
743
+ });
744
+ let b = _(o.value.shallow ? g(c) : p(c));
745
+ for (let e in c) typeof c[e] == "function" && (b[e] = c[e]);
746
+ return b.suspense = v, b.refetch = m, b;
747
+ }
748
+ function Ce(e, t) {
749
+ return Z(H, e);
750
+ }
751
+ function we(e, t) {
752
+ return Z(ge, e);
753
+ }
754
+ function Te(e, t) {
755
+ process.env.NODE_ENV === "development" && (a() || console.warn("vue-query composable like \"useQuery()\" should only be used inside a \"setup()\" function or a running effect scope. They might otherwise lead to memory leaks."));
756
+ let r = X(), i = n(() => r.defaultMutationOptions(Y(e))), o = new _e(r, i.value), s = i.value.shallow ? h(o.getCurrentResult()) : f(o.getCurrentResult()), c = o.subscribe((e) => {
757
+ q(s, e);
758
+ }), l = (e, t) => {
759
+ o.mutate(e, t).catch(() => {});
760
+ };
761
+ y(i, () => {
762
+ o.setOptions(i.value);
763
+ }), u(() => {
764
+ c();
765
+ });
766
+ let d = _(i.value.shallow ? g(s) : p(s));
767
+ return y(() => s.error, (e) => {
768
+ if (e && I(i.value.throwOnError, [e])) throw e;
769
+ }), {
770
+ ...d,
771
+ mutate: l,
772
+ mutateAsync: s.mutate,
773
+ reset: s.reset
774
+ };
775
+ }
776
+ function Ee(e) {
777
+ let t = e.isDebug ?? !1, r = X();
778
+ async function i(n, i) {
779
+ await Promise.all(Object.entries(e.queryKeysToInvalidate).map(async ([e, a]) => {
780
+ let o = Object.entries(a).reduce((e, [t, r]) => (e[t] = r(i, n), e), {});
781
+ t && console.log(`[MUTATION] Invalidating ${e}`, o), await r.invalidateQueries({
782
+ exact: !1,
783
+ queryKey: [e, o]
784
+ });
785
+ }));
786
+ }
787
+ let a = Te({
788
+ mutationFn: e.queryFn,
789
+ onSuccess: async (e, t) => {
790
+ if (t !== void 0 && "params" in t) {
791
+ await i(e, t.params);
792
+ return;
793
+ }
794
+ await i(e, {});
795
+ }
796
+ });
797
+ async function o(e) {
798
+ return await a.mutateAsync(e);
799
+ }
800
+ return {
801
+ isLoading: n(() => a.isPending.value),
802
+ data: n(() => a.data.value),
803
+ execute: o
804
+ };
805
+ }
806
+ function De(e) {
807
+ let t = e.isDebug ?? !1, r = we({
808
+ enabled: e.enabled,
809
+ getNextPageParam: (e) => {
810
+ if (e.meta === null) return null;
811
+ if ("next" in e.meta) return e.meta.next;
812
+ if ("offset" in e.meta) {
813
+ let t = e.meta.offset + e.meta.limit;
814
+ return t >= e.meta.total ? null : t;
815
+ }
816
+ return null;
817
+ },
818
+ initialPageParam: "key" in e.paginationOptions.value.pagination ? e.paginationOptions.value.pagination.key : e.paginationOptions.value.pagination.offset,
819
+ placeholderData: (e) => e,
820
+ queryFn: async ({ pageParam: t }) => {
821
+ let n = e.paginationOptions.value.pagination;
822
+ return await e.queryFn({
823
+ ...e.paginationOptions.value,
824
+ pagination: "key" in n ? {
825
+ key: t,
826
+ limit: n.limit,
827
+ type: "keyset"
828
+ } : {
829
+ limit: n.limit,
830
+ offset: t,
831
+ type: "offset"
832
+ }
833
+ });
834
+ },
835
+ queryKey: i()
836
+ });
837
+ function i() {
838
+ let [n, r] = Object.entries(e.queryKey)[0];
839
+ return t && console.log(`Create query with key ${n}`, r), [n, r];
840
+ }
841
+ return {
842
+ hasNextPage: n(() => r.hasNextPage.value),
843
+ isError: n(() => r.isError.value),
844
+ isFetching: n(() => r.isFetching.value),
845
+ isFetchingNextPage: n(() => r.isFetchingNextPage.value),
846
+ isLoading: n(() => r.isLoading.value),
847
+ isSuccess: n(() => r.isSuccess.value),
848
+ data: n(() => {
849
+ let e = r.data.value?.pages.flatMap((e) => e.data) ?? [], t = r.data.value?.pages[0].meta ?? null;
850
+ return t !== null && "next" in t ? {
851
+ data: e,
852
+ meta: {
853
+ next: t.next,
854
+ total: e.length
855
+ }
856
+ } : {
857
+ data: e,
858
+ meta: {
859
+ limit: t?.limit ?? 0,
860
+ offset: t?.offset ?? 0,
861
+ total: t?.total ?? 0
862
+ }
863
+ };
864
+ }),
865
+ error: n(() => r.error.value),
866
+ getNextPage: async () => {
867
+ r.isFetchingNextPage.value || !r.hasNextPage.value || await r.fetchNextPage();
868
+ },
869
+ refetch: async () => {
870
+ await r.refetch();
871
+ }
872
+ };
873
+ }
874
+ function Oe(e) {
875
+ let t = e.isDebug ?? !1, r = Ce({
876
+ staleTime: e.staleTime,
877
+ enabled: e.isEnabled,
878
+ placeholderData: (e) => e,
879
+ queryFn: e.queryFn,
880
+ queryKey: i()
881
+ });
882
+ function i() {
883
+ let [n, r] = Object.entries(e.queryKey)[0];
884
+ return t && console.log(`Create query with key ${n}`, r), [n, r];
885
+ }
886
+ async function a() {
887
+ await r.refetch();
888
+ }
889
+ return {
890
+ isError: n(() => r.isError.value),
891
+ isFetching: n(() => r.isFetching.value),
892
+ isLoading: n(() => r.isLoading.value),
893
+ isSuccess: n(() => r.isSuccess.value),
894
+ data: n(() => r.data.value ?? null),
895
+ error: n(() => r.error.value),
896
+ refetch: a
897
+ };
898
+ }
899
+ //#endregion
900
+ //#region src/models/date/date.transformer.ts
901
+ var ke = class {
902
+ static fromDto(e) {
903
+ return S.PlainDate.from(e);
904
+ }
905
+ static fromNullableDto(e) {
906
+ return e === null ? null : this.fromDto(e);
907
+ }
908
+ static toDto(e) {
909
+ return e.toString();
910
+ }
911
+ static toNullableDto(e) {
912
+ return e === null ? null : this.toDto(e);
913
+ }
914
+ }, Ae = class {
915
+ static fromDto(e) {
916
+ let t = S.Instant.from(e), n = S.Now.timeZoneId();
917
+ return t.toZonedDateTimeISO(n);
918
+ }
919
+ static fromNullableDto(e) {
920
+ return e === null ? null : this.fromDto(e);
921
+ }
922
+ }, je = /* @__PURE__ */ i({
923
+ __name: "AppGroup",
924
+ props: {
925
+ align: { default: "center" },
926
+ direction: { default: "row" },
927
+ gap: { default: "md" },
928
+ justify: { default: "start" }
929
+ },
930
+ setup(e) {
931
+ let t = e, i = n(() => {
932
+ switch (t.gap) {
933
+ case "2xl": return "gap-2xl";
934
+ case "3xl": return "gap-3xl";
935
+ case "4xl": return "gap-4xl";
936
+ case "5xl": return "gap-5xl";
937
+ case "6xl": return "gap-6xl";
938
+ case "7xl": return "gap-7xl";
939
+ case "8xl": return "gap-8xl";
940
+ case "9xl": return "gap-9xl";
941
+ case "10xl": return "gap-10xl";
942
+ case "11xl": return "gap-11xl";
943
+ case "lg": return "gap-lg";
944
+ case "md": return "gap-md";
945
+ case "none": return "gap-none";
946
+ case "sm": return "gap-sm";
947
+ case "xl": return "gap-xl";
948
+ case "xs": return "gap-xs";
949
+ case "xxs": return "gap-xxs";
950
+ default: return "gap-none";
951
+ }
952
+ }), a = n(() => {
953
+ switch (t.justify) {
954
+ case "between": return "justify-between";
955
+ case "center": return "justify-center";
956
+ case "end": return "justify-end";
957
+ case "start": return "justify-start";
958
+ default: return "justify-start";
959
+ }
960
+ }), o = n(() => {
961
+ switch (t.align) {
962
+ case "center": return "items-center";
963
+ case "end": return "items-end";
964
+ case "start": return "items-start";
965
+ case "stretch": return "items-stretch";
966
+ default: return "items-start";
967
+ }
968
+ }), s = n(() => {
969
+ switch (t.direction) {
970
+ case "col": return "flex-col";
971
+ case "row": return "flex-row";
972
+ default: return "flex-row";
973
+ }
974
+ });
975
+ return (e, t) => (d(), r("div", { class: l([[
976
+ o.value,
977
+ a.value,
978
+ i.value,
979
+ s.value
980
+ ], "flex"]) }, [m(e.$slots, "default")], 2));
981
+ }
982
+ }), Me = t.instanceof(S.PlainDate), Q = class {
983
+ static dateTimeToZonedDateTime(e) {
984
+ return e.toZonedDateTime(this.getMyTimezone());
985
+ }
986
+ static diffInHours(e, t) {
987
+ return this.diffInMinutes(e, t) / 60;
988
+ }
989
+ static diffInMinutes(e, t) {
990
+ return this.diffInSeconds(e, t) / 60;
991
+ }
992
+ static diffInSeconds(e, t) {
993
+ return Number(t.epochNanoseconds - e.epochNanoseconds) / 1e9;
994
+ }
995
+ static getDefaultHourCycle(e) {
996
+ let { hourCycle: t } = new Intl.DateTimeFormat(e, { hour: "2-digit" }).resolvedOptions();
997
+ return t === "h11" || t === "h12" ? "12-hour" : "24-hour";
998
+ }
999
+ static getMyTimezone() {
1000
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
1001
+ }
1002
+ static isToday(e) {
1003
+ let t = S.Now.zonedDateTimeISO(this.getMyTimezone()).toPlainDate(), n = e.toPlainDate();
1004
+ return t.equals(n);
1005
+ }
1006
+ static plainDateToDate(e) {
1007
+ return new Date(e.year, e.month - 1, e.day);
1008
+ }
1009
+ };
1010
+ //#endregion
1011
+ //#region src/composables/date-time-format/dateTimeFormat.composable.ts
1012
+ function $() {
1013
+ return {
1014
+ day: "2-digit",
1015
+ month: "2-digit",
1016
+ year: "numeric"
1017
+ };
1018
+ }
1019
+ function Ne() {
1020
+ let { locale: e, t } = b(), r = x(), i = n(() => r.hourCycle.value || Q.getDefaultHourCycle(e.value));
1021
+ function a(e) {
1022
+ return {
1023
+ hour: "2-digit",
1024
+ hourCycle: i.value === "12-hour" ? "h11" : "h23",
1025
+ minute: "2-digit",
1026
+ second: e ? "2-digit" : void 0
1027
+ };
1028
+ }
1029
+ function o(t, n = !1) {
1030
+ return new Intl.DateTimeFormat(e.value, a(n)).format(t.epochMilliseconds);
1031
+ }
1032
+ function s(t) {
1033
+ return new Intl.DateTimeFormat(e.value, $()).format(t.toZonedDateTime("UTC").epochMilliseconds);
1034
+ }
1035
+ function c(t, n = !1) {
1036
+ return new Intl.DateTimeFormat(e.value, {
1037
+ ...$(),
1038
+ ...a(n)
1039
+ }).format(t.epochMilliseconds);
1040
+ }
1041
+ function l(n, r = S.Now.instant()) {
1042
+ let i = new Intl.RelativeTimeFormat(e.value, {
1043
+ numeric: "auto",
1044
+ style: "long"
1045
+ }), a = n.epochMilliseconds - r.epochMilliseconds, o = [
1046
+ {
1047
+ ms: 1e3 * 60 * 60 * 24 * 365,
1048
+ unit: "year"
1049
+ },
1050
+ {
1051
+ ms: 1e3 * 60 * 60 * 24 * 30,
1052
+ unit: "month"
1053
+ },
1054
+ {
1055
+ ms: 1e3 * 60 * 60 * 24,
1056
+ unit: "day"
1057
+ },
1058
+ {
1059
+ ms: 1e3 * 60 * 60,
1060
+ unit: "hour"
1061
+ },
1062
+ {
1063
+ ms: 1e3 * 60,
1064
+ unit: "minute"
1065
+ },
1066
+ {
1067
+ ms: 1e3,
1068
+ unit: "second"
1069
+ }
1070
+ ];
1071
+ if (Math.abs(a) < 60 * 1e3) return t("shared.time_format.now");
1072
+ for (let { ms: e, unit: t } of o) {
1073
+ let n = Math.round(a / e);
1074
+ if (Math.abs(n) >= 1) return i.format(n, t);
1075
+ }
1076
+ return i.format(0, "second");
1077
+ }
1078
+ function u(t, n = "long") {
1079
+ let { hours: r, minutes: i, seconds: a } = S.Duration.from({ seconds: t });
1080
+ if (t < 60) return new Intl.NumberFormat(e.value, {
1081
+ style: "unit",
1082
+ unit: "second",
1083
+ unitDisplay: n
1084
+ }).format(a);
1085
+ let o = new Intl.NumberFormat(e.value, {
1086
+ style: "unit",
1087
+ unit: "hour",
1088
+ unitDisplay: "narrow"
1089
+ }).format(r), s = new Intl.NumberFormat(e.value, {
1090
+ style: "unit",
1091
+ unit: "minute",
1092
+ unitDisplay: r === 0 ? "long" : "narrow"
1093
+ }).format(i);
1094
+ return r === 0 ? s : i === 0 ? o : `${o} ${s}`;
1095
+ }
1096
+ return {
1097
+ toDate: s,
1098
+ toDateTime: c,
1099
+ toTime: o,
1100
+ fromNow: l,
1101
+ secondsToDuration: u
1102
+ };
1103
+ }
1104
+ //#endregion
1105
+ //#region src/components/skeleton-loader/AppSkeletonLoader.vue
1106
+ var Pe = {}, Fe = { class: "bg-tertiary w-full animate-pulse rounded-lg" };
1107
+ function Ie(e, t) {
1108
+ return d(), r("div", Fe);
1109
+ }
1110
+ var Le = /* @__PURE__ */ e(Pe, [["render", Ie]]);
1111
+ //#endregion
1112
+ export { je as a, De as c, Me as i, Oe as l, Ne as n, ke as o, Q as r, Ae as s, Le as t, Ee as u };