@tesouro/embedded-components-react 0.5.6 → 0.5.8
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.
- package/dist/index.css +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +38 -33
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index2.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/feature/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/ui/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +110 -110
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/profile-widget/data-access/dist/index2.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index2.js +0 -4
- /package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/data-access/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/feature/dist/index5.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/ui/dist/index.js +0 -0
package/dist/index.css
CHANGED
|
@@ -2147,6 +2147,14 @@
|
|
|
2147
2147
|
border-left-style: var(--tw-border-style);
|
|
2148
2148
|
border-left-width: 2px;
|
|
2149
2149
|
}
|
|
2150
|
+
.ttw\:border-l-4 {
|
|
2151
|
+
border-left-style: var(--tw-border-style);
|
|
2152
|
+
border-left-width: 4px;
|
|
2153
|
+
}
|
|
2154
|
+
.ttw\:border-l-4\! {
|
|
2155
|
+
border-left-style: var(--tw-border-style) !important;
|
|
2156
|
+
border-left-width: 4px !important;
|
|
2157
|
+
}
|
|
2150
2158
|
.ttw\:\!border-none {
|
|
2151
2159
|
--tw-border-style: none !important;
|
|
2152
2160
|
border-style: none !important;
|
|
@@ -2332,6 +2340,12 @@
|
|
|
2332
2340
|
.ttw\:border-b-transparent {
|
|
2333
2341
|
border-bottom-color: transparent;
|
|
2334
2342
|
}
|
|
2343
|
+
.ttw\:border-l-amber-600 {
|
|
2344
|
+
border-left-color: var(--ttw-color-amber-600);
|
|
2345
|
+
}
|
|
2346
|
+
.ttw\:border-l-amber-600\! {
|
|
2347
|
+
border-left-color: var(--ttw-color-amber-600) !important;
|
|
2348
|
+
}
|
|
2335
2349
|
.ttw\:\!bg-gray-800 {
|
|
2336
2350
|
background-color: var(--ttw-color-gray-800) !important;
|
|
2337
2351
|
}
|
|
@@ -32,7 +32,7 @@ var t = {
|
|
|
32
32
|
duplicateWarningMany: (e) => `${e} possible duplicate bills found`,
|
|
33
33
|
duplicateWarningManyCapped: (e) => `${e}+ possible duplicate bills found`,
|
|
34
34
|
duplicateWarningUnavailable: "Couldn't check for possible duplicates. Try again shortly.",
|
|
35
|
-
|
|
35
|
+
duplicateRowNote: "Possible duplicate",
|
|
36
36
|
attachmentIndicator: "Has an attachment",
|
|
37
37
|
emptyHeading: "Add your first bill",
|
|
38
38
|
nonEmptyHeading: "Add a bill",
|
|
@@ -18,7 +18,7 @@ var x = 10, S = [{
|
|
|
18
18
|
id: "addedOnLabel",
|
|
19
19
|
desc: !0
|
|
20
20
|
}];
|
|
21
|
-
function C({ enabled: C = !0, canReadVendors: w = !0, isVendorFilterPaused: T = !1, filterLabels: E, onOpenBill: D,
|
|
21
|
+
function C({ enabled: C = !0, canReadVendors: w = !0, isVendorFilterPaused: T = !1, filterLabels: E, onOpenBill: D, duplicateRowNote: O, attachmentLabel: k }) {
|
|
22
22
|
let [A, j] = b(l), [M, N] = b(S), [P, F] = b(x), [I, L] = b(), [R, z] = b(""), [B, V] = b(""), H = _(() => L(void 0), []);
|
|
23
23
|
v(() => {
|
|
24
24
|
let e = setTimeout(() => {
|
|
@@ -63,10 +63,10 @@ function C({ enabled: C = !0, canReadVendors: w = !0, isVendorFilterPaused: T =
|
|
|
63
63
|
status: i.status,
|
|
64
64
|
statusTone: i.tone,
|
|
65
65
|
addedOnLabel: e(r.created_at?.slice(0, 10)),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} :
|
|
66
|
+
...n(r) ? {
|
|
67
|
+
rowTone: "warning",
|
|
68
|
+
rowNote: O
|
|
69
|
+
} : {},
|
|
70
70
|
onOpen: () => D(r.id, s(r.status))
|
|
71
71
|
};
|
|
72
72
|
}), [
|
|
@@ -100,7 +100,7 @@ function D({ labels: u, onEnqueueFiles: b, openPayableId: x, onOpenPayableHandle
|
|
|
100
100
|
isVendorFilterPaused: V,
|
|
101
101
|
filterLabels: w.filters,
|
|
102
102
|
onOpenBill: K,
|
|
103
|
-
|
|
103
|
+
duplicateRowNote: w.duplicateRowNote,
|
|
104
104
|
attachmentLabel: w.attachmentIndicator
|
|
105
105
|
}), Y = i({ enabled: W }), oe = m(Y, w), se = g(() => l.map((e) => ({
|
|
106
106
|
id: e,
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js
|
|
5
|
-
function r({ label: r, tone: i = "warning" }) {
|
|
6
|
-
return /* @__PURE__ */ n(e, {
|
|
7
|
-
variant: "outline",
|
|
8
|
-
className: t[i],
|
|
9
|
-
children: r
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { r as BillDuplicateBadge, r as default };
|
|
1
|
+
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import "react/jsx-runtime";
|
|
@@ -11,21 +11,25 @@ import "./index23.js";
|
|
|
11
11
|
import { MissingValue as u } from "./index59.js";
|
|
12
12
|
import "./index60.js";
|
|
13
13
|
import { BILLS_SCREEN_LABELS_EN as d, BILLS_SCREEN_UPLOAD_ACCEPT as f } from "./index61.js";
|
|
14
|
-
import {
|
|
15
|
-
import "./index64.js";
|
|
16
|
-
import { BillsFilterBar as ue } from "./index73.js";
|
|
14
|
+
import { BillsFilterBar as le } from "./index73.js";
|
|
17
15
|
import "./index74.js";
|
|
18
16
|
import { BillColumn as p } from "./index75.js";
|
|
19
17
|
import { useMemo as m } from "react";
|
|
20
18
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
21
|
-
import { ChevronRightIcon as
|
|
19
|
+
import { ChevronRightIcon as ue, PaperclipIcon as de, PlusIcon as fe, SearchIcon as pe } from "lucide-react";
|
|
22
20
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js
|
|
23
|
-
var
|
|
21
|
+
var me = [
|
|
24
22
|
10,
|
|
25
23
|
25,
|
|
26
24
|
50,
|
|
27
25
|
100
|
|
28
|
-
],
|
|
26
|
+
], he = 240, ge = {
|
|
27
|
+
default: "",
|
|
28
|
+
warning: "ttw:bg-amber-50 ttw:hover:bg-amber-100 ttw:border-l-4! ttw:border-l-amber-600!"
|
|
29
|
+
}, _e = {
|
|
30
|
+
default: "",
|
|
31
|
+
warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
|
|
32
|
+
}, _ = 40, ve = [
|
|
29
33
|
p.Vendor,
|
|
30
34
|
p.Attachment,
|
|
31
35
|
p.IssueDate,
|
|
@@ -46,7 +50,7 @@ var ge = [
|
|
|
46
50
|
p.AmountDue,
|
|
47
51
|
p.AddedOn
|
|
48
52
|
];
|
|
49
|
-
function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be, pageSize: S, onPageSizeChange: C, pageSizeOptions: w =
|
|
53
|
+
function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be, pageSize: S, onPageSizeChange: C, pageSizeOptions: w = me, pageInfo: T, hasNextPage: E, hasPrevPage: D, onNextPage: O, onPrevPage: k, filterTabs: A, selectedFilterTabId: j, onFilterTabChange: M, searchValue: N, onSearchChange: xe, filters: P, visibleColumns: F = v, cellTestIds: I, isSearchActive: L, showAddPanelWhenEmpty: Se, emptyState: R, onCreateClick: z, onRetry: B, onFilesSelected: V, maxFiles: H, onEnterManually: U, uploadStatus: W, uploadErrorMessage: G, emailAddress: K, onCopyEmail: q, labels: J, duplicateWarning: Y, onReviewDuplicates: X }) {
|
|
50
54
|
let Z = m(() => ({
|
|
51
55
|
...d,
|
|
52
56
|
...J,
|
|
@@ -113,11 +117,15 @@ function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be
|
|
|
113
117
|
[p.Vendor]: {
|
|
114
118
|
accessorKey: "vendorLabel",
|
|
115
119
|
enableSorting: !0,
|
|
116
|
-
minSize:
|
|
120
|
+
minSize: he,
|
|
117
121
|
header: e(Z.columnVendor),
|
|
118
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
122
|
+
cell: ({ row: e }) => /* @__PURE__ */ g("span", {
|
|
123
|
+
className: _e[e.original.rowTone ?? "default"],
|
|
119
124
|
"data-testid": I?.[p.Vendor],
|
|
120
|
-
children: e.original.vendorLabel || /* @__PURE__ */ h(u, { labels: Z.missingValue })
|
|
125
|
+
children: [e.original.vendorLabel || /* @__PURE__ */ h(u, { labels: Z.missingValue }), e.original.rowNote ? /* @__PURE__ */ h("span", {
|
|
126
|
+
className: "ttw:sr-only",
|
|
127
|
+
children: ` ${e.original.rowNote}`
|
|
128
|
+
}) : null]
|
|
121
129
|
})
|
|
122
130
|
},
|
|
123
131
|
[p.Attachment]: {
|
|
@@ -137,7 +145,7 @@ function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be
|
|
|
137
145
|
className: "ttw:inline-flex ttw:cursor-default",
|
|
138
146
|
"aria-label": e.original.attachment.label,
|
|
139
147
|
onClick: (e) => e.stopPropagation(),
|
|
140
|
-
children: /* @__PURE__ */ h(
|
|
148
|
+
children: /* @__PURE__ */ h(de, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
|
|
141
149
|
}), /* @__PURE__ */ h(re, { children: e.original.attachment.label })] }) })
|
|
142
150
|
}) : null
|
|
143
151
|
},
|
|
@@ -169,14 +177,14 @@ function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be
|
|
|
169
177
|
accessorKey: "status",
|
|
170
178
|
enableSorting: !1,
|
|
171
179
|
header: Z.columnStatus,
|
|
172
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
180
|
+
cell: ({ row: e }) => /* @__PURE__ */ h("div", {
|
|
173
181
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
174
182
|
"data-testid": I?.[p.Status],
|
|
175
|
-
children:
|
|
183
|
+
children: /* @__PURE__ */ h(se, {
|
|
176
184
|
status: e.original.status,
|
|
177
185
|
tone: e.original.statusTone,
|
|
178
186
|
labels: Z.statusBadge
|
|
179
|
-
})
|
|
187
|
+
})
|
|
180
188
|
})
|
|
181
189
|
},
|
|
182
190
|
[p.AmountDue]: {
|
|
@@ -226,7 +234,7 @@ function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be
|
|
|
226
234
|
onClick: (t) => {
|
|
227
235
|
t.stopPropagation(), e.original.onOpen();
|
|
228
236
|
},
|
|
229
|
-
children: /* @__PURE__ */ h(
|
|
237
|
+
children: /* @__PURE__ */ h(ue, { className: "ttw:size-4" })
|
|
230
238
|
})
|
|
231
239
|
})
|
|
232
240
|
}], [
|
|
@@ -235,7 +243,7 @@ function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be
|
|
|
235
243
|
F
|
|
236
244
|
]), we = !!(z && V) && !b && !x && !L && y.length === 0 && Se === !0, $ = /* @__PURE__ */ g("div", {
|
|
237
245
|
className: "ttw:relative ttw:w-80",
|
|
238
|
-
children: [/* @__PURE__ */ h(
|
|
246
|
+
children: [/* @__PURE__ */ h(pe, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ h(i, {
|
|
239
247
|
className: "ttw:pl-9",
|
|
240
248
|
type: "search",
|
|
241
249
|
"aria-label": Z.searchLabel,
|
|
@@ -243,7 +251,7 @@ function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be
|
|
|
243
251
|
value: N,
|
|
244
252
|
onChange: (e) => xe(e.target.value)
|
|
245
253
|
})]
|
|
246
|
-
}), Te = P ? /* @__PURE__ */ h(
|
|
254
|
+
}), Te = P ? /* @__PURE__ */ h(le, {
|
|
247
255
|
...P,
|
|
248
256
|
className: "ttw:px-4",
|
|
249
257
|
searchSlot: $
|
|
@@ -254,21 +262,17 @@ function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be
|
|
|
254
262
|
return /* @__PURE__ */ g("div", {
|
|
255
263
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
256
264
|
children: [Y ? /* @__PURE__ */ g(e, {
|
|
257
|
-
className: "ttw:
|
|
258
|
-
children: [
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
onClick: X,
|
|
269
|
-
children: Z.duplicateBillsReviewButton
|
|
270
|
-
}) : null
|
|
271
|
-
]
|
|
265
|
+
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-none ttw:border-0 ttw:border-l-4 ttw:border-l-amber-600 ttw:bg-amber-50 ttw:py-2 ttw:text-amber-700",
|
|
266
|
+
children: [/* @__PURE__ */ h(t, {
|
|
267
|
+
className: "ttw:flex-1 ttw:font-semibold",
|
|
268
|
+
children: Y
|
|
269
|
+
}), X ? /* @__PURE__ */ h(n, {
|
|
270
|
+
type: "button",
|
|
271
|
+
variant: "outline",
|
|
272
|
+
className: "ttw:text-foreground",
|
|
273
|
+
onClick: X,
|
|
274
|
+
children: Z.duplicateBillsReviewButton
|
|
275
|
+
}) : null]
|
|
272
276
|
}) : null, /* @__PURE__ */ g(te, {
|
|
273
277
|
value: j,
|
|
274
278
|
onValueChange: M,
|
|
@@ -284,7 +288,7 @@ function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be
|
|
|
284
288
|
}, e.id))
|
|
285
289
|
}), z ? /* @__PURE__ */ g(n, {
|
|
286
290
|
onClick: z,
|
|
287
|
-
children: [/* @__PURE__ */ h(
|
|
291
|
+
children: [/* @__PURE__ */ h(fe, { className: "ttw:size-4" }), Z.createButton]
|
|
288
292
|
}) : null]
|
|
289
293
|
}), (() => {
|
|
290
294
|
let e = x ? /* @__PURE__ */ h(oe, {
|
|
@@ -328,6 +332,7 @@ function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be
|
|
|
328
332
|
onNextPage: O,
|
|
329
333
|
onPrevPage: k,
|
|
330
334
|
onRowClick: (e) => e.onOpen(),
|
|
335
|
+
rowClassName: (e) => ge[e.rowTone ?? "default"],
|
|
331
336
|
filterComponent: Te,
|
|
332
337
|
children: L ? /* @__PURE__ */ h(c, {
|
|
333
338
|
title: Z.filteredEmptyTitle,
|
|
@@ -27,8 +27,8 @@ import { ChartOfAccountsWidget as g } from "../../../gl-code-table-widget/featur
|
|
|
27
27
|
import "../../../gl-code-table-widget/feature/dist/index.js";
|
|
28
28
|
import { HelpWidget as _ } from "../../../help-widget/feature/dist/index3.js";
|
|
29
29
|
import "../../../help-widget/feature/dist/index.js";
|
|
30
|
-
import { ProfileWidget as v } from "
|
|
31
|
-
import "
|
|
30
|
+
import { ProfileWidget as v } from "../../profile/feature/dist/index4.js";
|
|
31
|
+
import "../../profile/feature/dist/index.js";
|
|
32
32
|
import { useEffect as y } from "react";
|
|
33
33
|
import { jsx as b } from "react/jsx-runtime";
|
|
34
34
|
import { useControllableState as x } from "@radix-ui/react-use-controllable-state";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getEntityUsersMyEntityOptions as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as r } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
+
import { useCurrentUserQuery as i } from "../../../../shared/data-access/dist/lib/useCurrentUserQuery.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
|
+
import { useQuery as a } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js
|
|
13
|
+
function o({ enabled: o } = {}) {
|
|
14
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (o === !0 || o === void 0);
|
|
15
|
+
return {
|
|
16
|
+
userQuery: i({ enabled: d }),
|
|
17
|
+
entityQuery: a({
|
|
18
|
+
...r(n({
|
|
19
|
+
client: s,
|
|
20
|
+
headers: t(c)
|
|
21
|
+
}), u),
|
|
22
|
+
enabled: d
|
|
23
|
+
})
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { o as useProfileQuery };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index2.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SETTINGS_WIDGET_NAME as e } from "../../../shared/util/dist/lib/widgetName.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index2.js
|
|
3
|
+
var t = `${e}.profile_widget`, n = { Mounted: `${t}.mounted` };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as ProfileWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index3.js
|
|
2
2
|
var e = {
|
|
3
3
|
personalTab: "Personal information",
|
|
4
4
|
businessTab: "Business information",
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useAnalyticsTrack as e } from "
|
|
6
|
-
import { WidgetProvider as t } from "
|
|
7
|
-
import { formatPhoneDisplay as n } from "
|
|
8
|
-
import { useWidgetConfig as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { useAnalyticsTrack as e } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
+
import { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
7
|
+
import { formatPhoneDisplay as n } from "../../../../shared/util/dist/lib/formatPhoneDisplay.js";
|
|
8
|
+
import { useWidgetConfig as r } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
|
+
import "../../../../shared/feature/dist/index.js";
|
|
10
10
|
import { DEFAULT_FEATURE_LABELS as i } from "./index3.js";
|
|
11
11
|
import { ProfileWidgetAnalyticsEvent as a, WIDGET_NAME as o } from "./index2.js";
|
|
12
12
|
import { useProfileQuery as s } from "../../data-access/dist/index2.js";
|
|
@@ -15,7 +15,7 @@ import { ProfileCard as c } from "../../ui/dist/index3.js";
|
|
|
15
15
|
import "../../ui/dist/index.js";
|
|
16
16
|
import { useCallback as l, useEffect as u, useState as d } from "react";
|
|
17
17
|
import { jsx as f } from "react/jsx-runtime";
|
|
18
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
18
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js
|
|
19
19
|
var p = {
|
|
20
20
|
Personal: "personal",
|
|
21
21
|
Business: "business"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index2.js
|
|
2
2
|
var e = {
|
|
3
3
|
loadingLabel: "Loading profile",
|
|
4
4
|
errorLabel: "Unable to load profile",
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Skeleton as e, Tabs as t, TabsContent as n, TabsList as r, TabsTrigger as i } from "
|
|
6
|
-
import { SectionHeading as a } from "
|
|
7
|
-
import "
|
|
5
|
+
import { Skeleton as e, Tabs as t, TabsContent as n, TabsList as r, TabsTrigger as i } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { SectionHeading as a } from "../../../../shared/ui/dist/lib/SectionHeading/SectionHeading.js";
|
|
7
|
+
import "../../../../shared/ui/dist/index.js";
|
|
8
8
|
import { DEFAULT_LABELS as o } from "./index2.js";
|
|
9
9
|
import { Fragment as s } from "react";
|
|
10
10
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index3.js
|
|
12
12
|
var d = {
|
|
13
13
|
Primary: "primary",
|
|
14
14
|
Secondary: "secondary"
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.8", n = "0b24256254d405d931c130ac6dac3c9f49a6e9e5", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -13,8 +13,8 @@ var w = Object.defineProperty, T = (e, t) => {
|
|
|
13
13
|
enumerable: !0
|
|
14
14
|
});
|
|
15
15
|
return t || w(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
16
|
-
}, E = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(),
|
|
17
|
-
let t =
|
|
16
|
+
}, E = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ee = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), D = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), O = (e) => {
|
|
17
|
+
let t = D(e);
|
|
18
18
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
19
19
|
}, k = {
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -46,10 +46,10 @@ var w = Object.defineProperty, T = (e, t) => {
|
|
|
46
46
|
let n = i(({ className: n, ...i }, a) => r(N, {
|
|
47
47
|
ref: a,
|
|
48
48
|
iconNode: t,
|
|
49
|
-
className: E(`lucide-${
|
|
49
|
+
className: E(`lucide-${ee(O(e))}`, `lucide-${e}`, n),
|
|
50
50
|
...i
|
|
51
51
|
}));
|
|
52
|
-
return n.displayName =
|
|
52
|
+
return n.displayName = O(e), n;
|
|
53
53
|
}, F = P("arrow-down", [["path", {
|
|
54
54
|
d: "M12 5v14",
|
|
55
55
|
key: "s699le"
|
|
@@ -1388,15 +1388,15 @@ var qn = Object.defineProperty, Jn = (e, t) => qn(e, "name", {
|
|
|
1388
1388
|
if (i && w.current) return;
|
|
1389
1389
|
let t = e.target;
|
|
1390
1390
|
[...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
1391
|
-
}, m),
|
|
1391
|
+
}, m), ee = f ? x === v.length - 1 : !1, D = Kn((e) => {
|
|
1392
1392
|
e.key === "Escape" && (a?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
|
|
1393
1393
|
});
|
|
1394
1394
|
return e.useEffect(() => {
|
|
1395
|
-
if (
|
|
1395
|
+
if (ee) return m.addEventListener("keydown", D, { capture: !0 }), () => m.removeEventListener("keydown", D, { capture: !0 });
|
|
1396
1396
|
}, [
|
|
1397
1397
|
m,
|
|
1398
|
-
|
|
1399
|
-
|
|
1398
|
+
ee,
|
|
1399
|
+
D
|
|
1400
1400
|
]), e.useEffect(() => {
|
|
1401
1401
|
if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Qn = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), ar(), () => {
|
|
1402
1402
|
r && (d.layersWithOutsidePointerEventsDisabled.delete(f), d.layersWithOutsidePointerEventsDisabled.size === 0 && (m.body.style.pointerEvents = Qn));
|
|
@@ -2939,7 +2939,7 @@ var os = 50, ss = async (e, t, n) => {
|
|
|
2939
2939
|
y: r
|
|
2940
2940
|
}, p = Wo(i), m = Ho(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
2941
2941
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
2942
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Po(d[_], T),
|
|
2942
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Po(d[_], T), ee = Po(d[v], T), D = E, O = C - h[m] - ee, k = C / 2 - h[m] / 2 + w, A = Lo(D, k, O), j = !c.arrow && Bo(i) != null && k !== A && a.reference[m] / 2 - (k < D ? E : ee) - h[m] / 2 < 0, M = j ? k < D ? k - D : k - O : 0;
|
|
2943
2943
|
return {
|
|
2944
2944
|
[p]: f[p] + M,
|
|
2945
2945
|
data: {
|
|
@@ -3640,14 +3640,14 @@ function Rc(t) {
|
|
|
3640
3640
|
e !== w.current && (w.current = e, _(e));
|
|
3641
3641
|
}, []), x = e.useCallback((e) => {
|
|
3642
3642
|
e !== T.current && (T.current = e, y(e));
|
|
3643
|
-
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d),
|
|
3643
|
+
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D = Lc(l), O = Lc(a), k = Lc(u), A = e.useCallback(() => {
|
|
3644
3644
|
if (!w.current || !T.current) return;
|
|
3645
3645
|
let e = {
|
|
3646
3646
|
placement: n,
|
|
3647
3647
|
strategy: r,
|
|
3648
3648
|
middleware: m
|
|
3649
3649
|
};
|
|
3650
|
-
|
|
3650
|
+
O.current && (e.platform = O.current), Mc(w.current, T.current, e).then((e) => {
|
|
3651
3651
|
let t = {
|
|
3652
3652
|
...e,
|
|
3653
3653
|
isPositioned: k.current !== !1
|
|
@@ -3660,7 +3660,7 @@ function Rc(t) {
|
|
|
3660
3660
|
m,
|
|
3661
3661
|
n,
|
|
3662
3662
|
r,
|
|
3663
|
-
|
|
3663
|
+
O,
|
|
3664
3664
|
k
|
|
3665
3665
|
]);
|
|
3666
3666
|
Nc(() => {
|
|
@@ -3674,15 +3674,15 @@ function Rc(t) {
|
|
|
3674
3674
|
j.current = !1;
|
|
3675
3675
|
}), []), Nc(() => {
|
|
3676
3676
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
3677
|
-
if (
|
|
3677
|
+
if (D.current) return D.current(S, C, A);
|
|
3678
3678
|
A();
|
|
3679
3679
|
}
|
|
3680
3680
|
}, [
|
|
3681
3681
|
S,
|
|
3682
3682
|
C,
|
|
3683
3683
|
A,
|
|
3684
|
-
|
|
3685
|
-
|
|
3684
|
+
D,
|
|
3685
|
+
ee
|
|
3686
3686
|
]);
|
|
3687
3687
|
let M = e.useMemo(() => ({
|
|
3688
3688
|
reference: w,
|
|
@@ -3837,19 +3837,19 @@ var zc = (e) => {
|
|
|
3837
3837
|
ref: l
|
|
3838
3838
|
});
|
|
3839
3839
|
}, "PopperAnchor")), al = "PopperContent", [ol, sl] = Qc(al), cl = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ Xc(function(t, n) {
|
|
3840
|
-
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ..._ } = t, v = tl(al, r), [y, b] = e.useState(null), x = z(n, b), [S, C] = e.useState(null), w = mo(S), T = w?.width ?? 0, E = w?.height ?? 0,
|
|
3840
|
+
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ..._ } = t, v = tl(al, r), [y, b] = e.useState(null), x = z(n, b), [S, C] = e.useState(null), w = mo(S), T = w?.width ?? 0, E = w?.height ?? 0, ee = i + (o === "center" ? "" : "-" + o), D = typeof d == "number" ? d : {
|
|
3841
3841
|
top: 0,
|
|
3842
3842
|
right: 0,
|
|
3843
3843
|
bottom: 0,
|
|
3844
3844
|
left: 0,
|
|
3845
3845
|
...d
|
|
3846
|
-
},
|
|
3847
|
-
padding:
|
|
3848
|
-
boundary:
|
|
3846
|
+
}, O = Array.isArray(u) ? u : [u], k = O.length > 0, A = {
|
|
3847
|
+
padding: D,
|
|
3848
|
+
boundary: O.filter(fl),
|
|
3849
3849
|
altBoundary: k
|
|
3850
3850
|
}, { refs: j, floatingStyles: M, placement: N, isPositioned: P, middlewareData: F } = Rc({
|
|
3851
3851
|
strategy: "fixed",
|
|
3852
|
-
placement:
|
|
3852
|
+
placement: ee,
|
|
3853
3853
|
whileElementsMounted: /* @__PURE__ */ Xc((...e) => wc(...e, { animationFrame: m === "always" }), "whileElementsMounted"),
|
|
3854
3854
|
elements: { reference: v.anchor },
|
|
3855
3855
|
middleware: [
|
|
@@ -4282,20 +4282,20 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
|
|
|
4282
4282
|
onDismiss: () => n.onOpenChange(!1)
|
|
4283
4283
|
});
|
|
4284
4284
|
}, "MenuRootContentNonModal")), Tu = /* @__PURE__ */ ye("MenuContent.ScrollLock"), Eu = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ H(function(t, n) {
|
|
4285
|
-
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ..._ } = t, v = uu(yu, r), y = fu(yu, r), b = su(r), x = cu(r), S = ru(r), [C, w] = e.useState(null), T = e.useRef(null), E = z(n, T, v.onContentChange),
|
|
4285
|
+
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ..._ } = t, v = uu(yu, r), y = fu(yu, r), b = su(r), x = cu(r), S = ru(r), [C, w] = e.useState(null), T = e.useRef(null), E = z(n, T, v.onContentChange), ee = e.useRef(0), D = e.useRef(""), O = e.useRef(0), k = e.useRef(null), A = e.useRef("right"), j = e.useRef(0), M = h ? Bi : e.Fragment, N = h ? {
|
|
4286
4286
|
as: Tu,
|
|
4287
4287
|
allowPinchZoom: !0
|
|
4288
4288
|
} : void 0, P = /* @__PURE__ */ H((e) => {
|
|
4289
|
-
let t =
|
|
4289
|
+
let t = D.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = Ju(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
4290
4290
|
(/* @__PURE__ */ H((function e(t) {
|
|
4291
|
-
|
|
4291
|
+
D.current = t, window.clearTimeout(ee.current), t !== "" && (ee.current = window.setTimeout(() => e(""), 1e3));
|
|
4292
4292
|
}), "updateSearch"))(t), o && setTimeout(() => o.focus());
|
|
4293
4293
|
}, "handleTypeaheadSearch");
|
|
4294
|
-
e.useEffect(() => () => window.clearTimeout(
|
|
4294
|
+
e.useEffect(() => () => window.clearTimeout(ee.current), []), jr();
|
|
4295
4295
|
let F = e.useCallback((e) => A.current === k.current?.side && Xu(e, k.current?.area), []);
|
|
4296
4296
|
return /* @__PURE__ */ g(bu, {
|
|
4297
4297
|
scope: r,
|
|
4298
|
-
searchRef:
|
|
4298
|
+
searchRef: D,
|
|
4299
4299
|
onItemEnter: e.useCallback((e) => {
|
|
4300
4300
|
F(e) && e.preventDefault();
|
|
4301
4301
|
}, [F]),
|
|
@@ -4305,7 +4305,7 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
|
|
|
4305
4305
|
onTriggerLeave: e.useCallback((e) => {
|
|
4306
4306
|
F(e) && e.preventDefault();
|
|
4307
4307
|
}, [F]),
|
|
4308
|
-
pointerGraceTimerRef:
|
|
4308
|
+
pointerGraceTimerRef: O,
|
|
4309
4309
|
onPointerGraceIntentChange: e.useCallback((e) => {
|
|
4310
4310
|
k.current = e;
|
|
4311
4311
|
}, []),
|
|
@@ -4361,7 +4361,7 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
|
|
|
4361
4361
|
$l.includes(e.key) && a.reverse(), Ku(a);
|
|
4362
4362
|
}),
|
|
4363
4363
|
onBlur: V(t.onBlur, (e) => {
|
|
4364
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(
|
|
4364
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(ee.current), D.current = "");
|
|
4365
4365
|
}),
|
|
4366
4366
|
onPointerMove: V(t.onPointerMove, Zu((e) => {
|
|
4367
4367
|
let t = e.target, n = j.current !== e.clientX;
|
|
@@ -5139,27 +5139,27 @@ var xp = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ Jf(function(t, n) {
|
|
|
5139
5139
|
"ArrowDown"
|
|
5140
5140
|
], Dp = [" ", "Enter"], Op = "Select", [kp, Ap, jp] = /* @__PURE__ */ Je(Op), [Mp, Np] = /* @__PURE__ */ We(Op, [jp, $c]), Pp = $c(), [Fp, Ip] = Mp(Op), [Lp, Rp] = Mp(Op);
|
|
5141
5141
|
function zp(t) {
|
|
5142
|
-
let { __scopeSelect: n, children: r, open: i, defaultOpen: a, onOpenChange: o, value: s, defaultValue: c, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: h, internal_do_not_use_render: _ } = t, v = Pp(n), [y, b] = e.useState(null), [x, S] = e.useState(null), [C, w] = e.useState(!1), T = sn(u), [E,
|
|
5142
|
+
let { __scopeSelect: n, children: r, open: i, defaultOpen: a, onOpenChange: o, value: s, defaultValue: c, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: h, internal_do_not_use_render: _ } = t, v = Pp(n), [y, b] = e.useState(null), [x, S] = e.useState(null), [C, w] = e.useState(!1), T = sn(u), [E, ee] = xt({
|
|
5143
5143
|
prop: i,
|
|
5144
5144
|
defaultProp: a ?? !1,
|
|
5145
5145
|
onChange: o,
|
|
5146
5146
|
caller: Op
|
|
5147
|
-
}), [
|
|
5147
|
+
}), [D, O] = xt({
|
|
5148
5148
|
prop: s,
|
|
5149
5149
|
defaultProp: c,
|
|
5150
5150
|
onChange: l,
|
|
5151
5151
|
caller: Op
|
|
5152
|
-
}), k = e.useRef(null), A = e.useRef(
|
|
5152
|
+
}), k = e.useRef(null), A = e.useRef(D);
|
|
5153
5153
|
e.useEffect(() => {
|
|
5154
5154
|
let e = h ? y?.ownerDocument.getElementById(h) : y?.form;
|
|
5155
5155
|
if (e instanceof HTMLFormElement) {
|
|
5156
|
-
let t = /* @__PURE__ */ U(() =>
|
|
5156
|
+
let t = /* @__PURE__ */ U(() => O(A.current), "reset");
|
|
5157
5157
|
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
5158
5158
|
}
|
|
5159
5159
|
}, [
|
|
5160
5160
|
h,
|
|
5161
5161
|
y,
|
|
5162
|
-
|
|
5162
|
+
O
|
|
5163
5163
|
]);
|
|
5164
5164
|
let j = !y || !!h || !!y.closest("form"), [M, N] = e.useState(/* @__PURE__ */ new Set()), P = zt(), F = Array.from(M).map((e) => e.props.value).join(";"), te = e.useCallback((e) => {
|
|
5165
5165
|
N((t) => new Set(t).add(e));
|
|
@@ -5177,10 +5177,10 @@ function zp(t) {
|
|
|
5177
5177
|
valueNodeHasChildren: C,
|
|
5178
5178
|
onValueNodeHasChildrenChange: w,
|
|
5179
5179
|
contentId: P,
|
|
5180
|
-
value:
|
|
5181
|
-
onValueChange:
|
|
5180
|
+
value: D,
|
|
5181
|
+
onValueChange: O,
|
|
5182
5182
|
open: E,
|
|
5183
|
-
onOpenChange:
|
|
5183
|
+
onOpenChange: ee,
|
|
5184
5184
|
dir: T,
|
|
5185
5185
|
triggerPointerDownPosRef: k,
|
|
5186
5186
|
disabled: p,
|
|
@@ -5315,7 +5315,7 @@ var Bp = /* @__PURE__ */ U((e) => {
|
|
|
5315
5315
|
})
|
|
5316
5316
|
}), i) : null;
|
|
5317
5317
|
}, "SelectContentFragment")), Qp = 10, [$p, em] = Mp(Yp), tm = /* @__PURE__ */ ye("SelectContent.RemoveScroll"), nm = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ U(function(t, n) {
|
|
5318
|
-
let { __scopeSelect: r } = t, { position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: _, avoidCollisions: v, ...y } = t, b = Ip(Yp, r), [x, S] = e.useState(null), [C, w] = e.useState(null), T = z(n, S), [E,
|
|
5318
|
+
let { __scopeSelect: r } = t, { position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: _, avoidCollisions: v, ...y } = t, b = Ip(Yp, r), [x, S] = e.useState(null), [C, w] = e.useState(null), T = z(n, S), [E, ee] = e.useState(null), [D, O] = e.useState(null), k = Ap(r), [A, j] = e.useState(!1), M = e.useRef(!1);
|
|
5319
5319
|
e.useEffect(() => {
|
|
5320
5320
|
if (x) return Yi(x);
|
|
5321
5321
|
}, [x]), jr();
|
|
@@ -5366,10 +5366,10 @@ var Bp = /* @__PURE__ */ U((e) => {
|
|
|
5366
5366
|
n && setTimeout(() => n.ref.current?.focus());
|
|
5367
5367
|
}), ie = e.useCallback((e, t, n) => {
|
|
5368
5368
|
let r = !M.current && !n;
|
|
5369
|
-
(b.value !== void 0 && b.value === t || r) && (
|
|
5369
|
+
(b.value !== void 0 && b.value === t || r) && (ee(e), r && (M.current = !0));
|
|
5370
5370
|
}, [b.value]), I = e.useCallback(() => x?.focus(), [x]), L = e.useCallback((e, t, n) => {
|
|
5371
5371
|
let r = !M.current && !n;
|
|
5372
|
-
(b.value !== void 0 && b.value === t || r) &&
|
|
5372
|
+
(b.value !== void 0 && b.value === t || r) && O(e);
|
|
5373
5373
|
}, [b.value]), ae = i === "popper" ? im : rm, oe = ae === im ? {
|
|
5374
5374
|
side: c,
|
|
5375
5375
|
sideOffset: l,
|
|
@@ -5392,7 +5392,7 @@ var Bp = /* @__PURE__ */ U((e) => {
|
|
|
5392
5392
|
onItemLeave: I,
|
|
5393
5393
|
itemTextRefCallback: L,
|
|
5394
5394
|
focusSelectedItem: P,
|
|
5395
|
-
selectedItemText:
|
|
5395
|
+
selectedItemText: D,
|
|
5396
5396
|
position: i,
|
|
5397
5397
|
isPositioned: A,
|
|
5398
5398
|
searchRef: ne,
|
|
@@ -5463,16 +5463,16 @@ var Bp = /* @__PURE__ */ U((e) => {
|
|
|
5463
5463
|
let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Qp, d = _f(a, [Qp, Math.max(Qp, u - l)]);
|
|
5464
5464
|
c.style.minWidth = s + "px", c.style.right = d + "px";
|
|
5465
5465
|
}
|
|
5466
|
-
let a = p(), s = window.innerHeight - Qp * 2, l = _.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), g = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + g, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(_), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Qp,
|
|
5466
|
+
let a = p(), s = window.innerHeight - Qp * 2, l = _.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), g = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + g, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(_), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Qp, ee = s - E, D = v.offsetHeight / 2, O = v.offsetTop + D, k = f + h + O, A = x - k;
|
|
5467
5467
|
if (k <= E) {
|
|
5468
5468
|
let e = a.length > 0 && v === a[a.length - 1].ref.current;
|
|
5469
5469
|
c.style.bottom = "0px";
|
|
5470
|
-
let t = u.clientHeight - _.offsetTop - _.offsetHeight, n = k + Math.max(
|
|
5470
|
+
let t = u.clientHeight - _.offsetTop - _.offsetHeight, n = k + Math.max(ee, D + (e ? T : 0) + t + g);
|
|
5471
5471
|
c.style.height = n + "px";
|
|
5472
5472
|
} else {
|
|
5473
5473
|
let e = a.length > 0 && v === a[0].ref.current;
|
|
5474
5474
|
c.style.top = "0px";
|
|
5475
|
-
let t = Math.max(E, f + _.offsetTop + (e ? w : 0) +
|
|
5475
|
+
let t = Math.max(E, f + _.offsetTop + (e ? w : 0) + D) + A;
|
|
5476
5476
|
c.style.height = t + "px", _.scrollTop = k - E + _.offsetTop;
|
|
5477
5477
|
}
|
|
5478
5478
|
c.style.margin = `${Qp}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => m.current = !0);
|
|
@@ -6109,12 +6109,12 @@ var xh = fh, Sh = mh, Ch = gh, wh = vh, Th = Object.defineProperty, Eh = (e, t)
|
|
|
6109
6109
|
e.useEffect(() => () => {
|
|
6110
6110
|
_.current &&= (window.clearTimeout(_.current), 0);
|
|
6111
6111
|
}, []);
|
|
6112
|
-
let
|
|
6112
|
+
let ee = p ?? h;
|
|
6113
6113
|
return /* @__PURE__ */ g(hl, {
|
|
6114
6114
|
...u,
|
|
6115
6115
|
children: /* @__PURE__ */ g(Lh, {
|
|
6116
6116
|
scope: n,
|
|
6117
|
-
contentId:
|
|
6117
|
+
contentId: ee,
|
|
6118
6118
|
setContentId: m,
|
|
6119
6119
|
open: x,
|
|
6120
6120
|
stateAttribute: C,
|
|
@@ -6701,7 +6701,7 @@ var fg = (e, t) => {
|
|
|
6701
6701
|
"subgrid",
|
|
6702
6702
|
K,
|
|
6703
6703
|
G
|
|
6704
|
-
],
|
|
6704
|
+
], ee = () => [
|
|
6705
6705
|
"auto",
|
|
6706
6706
|
{ span: [
|
|
6707
6707
|
"full",
|
|
@@ -6712,12 +6712,12 @@ var fg = (e, t) => {
|
|
|
6712
6712
|
t_,
|
|
6713
6713
|
K,
|
|
6714
6714
|
G
|
|
6715
|
-
],
|
|
6715
|
+
], D = () => [
|
|
6716
6716
|
t_,
|
|
6717
6717
|
"auto",
|
|
6718
6718
|
K,
|
|
6719
6719
|
G
|
|
6720
|
-
],
|
|
6720
|
+
], O = () => [
|
|
6721
6721
|
"auto",
|
|
6722
6722
|
"min",
|
|
6723
6723
|
"max",
|
|
@@ -7102,13 +7102,13 @@ var fg = (e, t) => {
|
|
|
7102
7102
|
G
|
|
7103
7103
|
] }],
|
|
7104
7104
|
"grid-cols": [{ "grid-cols": E() }],
|
|
7105
|
-
"col-start-end": [{ col:
|
|
7106
|
-
"col-start": [{ "col-start":
|
|
7107
|
-
"col-end": [{ "col-end":
|
|
7105
|
+
"col-start-end": [{ col: ee() }],
|
|
7106
|
+
"col-start": [{ "col-start": D() }],
|
|
7107
|
+
"col-end": [{ "col-end": D() }],
|
|
7108
7108
|
"grid-rows": [{ "grid-rows": E() }],
|
|
7109
|
-
"row-start-end": [{ row:
|
|
7110
|
-
"row-start": [{ "row-start":
|
|
7111
|
-
"row-end": [{ "row-end":
|
|
7109
|
+
"row-start-end": [{ row: ee() }],
|
|
7110
|
+
"row-start": [{ "row-start": D() }],
|
|
7111
|
+
"row-end": [{ "row-end": D() }],
|
|
7112
7112
|
"grid-flow": [{ "grid-flow": [
|
|
7113
7113
|
"row",
|
|
7114
7114
|
"col",
|
|
@@ -7116,8 +7116,8 @@ var fg = (e, t) => {
|
|
|
7116
7116
|
"row-dense",
|
|
7117
7117
|
"col-dense"
|
|
7118
7118
|
] }],
|
|
7119
|
-
"auto-cols": [{ "auto-cols":
|
|
7120
|
-
"auto-rows": [{ "auto-rows":
|
|
7119
|
+
"auto-cols": [{ "auto-cols": O() }],
|
|
7120
|
+
"auto-rows": [{ "auto-rows": O() }],
|
|
7121
7121
|
gap: [{ gap: w() }],
|
|
7122
7122
|
"gap-x": [{ "gap-x": w() }],
|
|
7123
7123
|
"gap-y": [{ "gap-y": w() }],
|
|
@@ -8462,13 +8462,13 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
|
|
|
8462
8462
|
let h = {
|
|
8463
8463
|
...Dv,
|
|
8464
8464
|
...d
|
|
8465
|
-
}, v = e.useRef(null), y = e.useRef(null), b = e.useRef(null), [x, S] = e.useState(!1), [C, w] = e.useState(""), [T, E] = e.useState(0),
|
|
8465
|
+
}, v = e.useRef(null), y = e.useRef(null), b = e.useRef(null), [x, S] = e.useState(!1), [C, w] = e.useState(""), [T, E] = e.useState(0), ee = e.useRef(u);
|
|
8466
8466
|
e.useEffect(() => {
|
|
8467
|
-
|
|
8467
|
+
ee.current = u;
|
|
8468
8468
|
});
|
|
8469
|
-
let
|
|
8470
|
-
w(e),
|
|
8471
|
-
}, []),
|
|
8469
|
+
let D = e.useCallback((e) => {
|
|
8470
|
+
w(e), ee.current?.(e);
|
|
8471
|
+
}, []), O = e.useRef(null), k = ov(), [A, j] = e.useState(null);
|
|
8472
8472
|
e.useEffect(() => {
|
|
8473
8473
|
if (!x) {
|
|
8474
8474
|
j(null);
|
|
@@ -8514,7 +8514,7 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
|
|
|
8514
8514
|
let e = (e) => {
|
|
8515
8515
|
if (!v.current) return;
|
|
8516
8516
|
let t = e.target;
|
|
8517
|
-
t instanceof Node && !v.current.contains(t) && !
|
|
8517
|
+
t instanceof Node && !v.current.contains(t) && !O.current?.contains(t) && (S(!1), D(""));
|
|
8518
8518
|
};
|
|
8519
8519
|
return document.addEventListener("mousedown", e), () => {
|
|
8520
8520
|
document.removeEventListener("mousedown", e);
|
|
@@ -8523,10 +8523,10 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
|
|
|
8523
8523
|
let te = (e) => {
|
|
8524
8524
|
if (!a) {
|
|
8525
8525
|
if (i) {
|
|
8526
|
-
M.includes(e) ? r(M.filter((t) => t !== e)) : r([...M, e]),
|
|
8526
|
+
M.includes(e) ? r(M.filter((t) => t !== e)) : r([...M, e]), D(""), y.current?.focus();
|
|
8527
8527
|
return;
|
|
8528
8528
|
}
|
|
8529
|
-
r(e),
|
|
8529
|
+
r(e), D(""), S(!1);
|
|
8530
8530
|
}
|
|
8531
8531
|
}, ne = (e) => {
|
|
8532
8532
|
if (!a) {
|
|
@@ -8555,7 +8555,7 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
|
|
|
8555
8555
|
T >= 0 && t && te(kv(t));
|
|
8556
8556
|
return;
|
|
8557
8557
|
}
|
|
8558
|
-
e.key === "Escape" && (S(!1),
|
|
8558
|
+
e.key === "Escape" && (S(!1), D(""));
|
|
8559
8559
|
}
|
|
8560
8560
|
};
|
|
8561
8561
|
return /* @__PURE__ */ _("div", {
|
|
@@ -8565,7 +8565,7 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
|
|
|
8565
8565
|
children: [/* @__PURE__ */ _("div", {
|
|
8566
8566
|
className: q("ttw:flex ttw:min-h-9 ttw:w-full ttw:flex-wrap ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-2.5 ttw:py-1.5 ttw:text-sm ttw:shadow-xs", a ? "ttw:cursor-not-allowed ttw:opacity-60" : "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50"),
|
|
8567
8567
|
onClick: () => {
|
|
8568
|
-
a || (x ||
|
|
8568
|
+
a || (x || D(""), S(!0), y.current?.focus());
|
|
8569
8569
|
},
|
|
8570
8570
|
children: [
|
|
8571
8571
|
i ? M.map((e) => /* @__PURE__ */ _("span", {
|
|
@@ -8595,15 +8595,15 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
|
|
|
8595
8595
|
placeholder: h.placeholder,
|
|
8596
8596
|
className: "ttw:min-w-16 ttw:flex-1 ttw:bg-transparent ttw:outline-none",
|
|
8597
8597
|
onFocus: () => {
|
|
8598
|
-
a || (x ||
|
|
8598
|
+
a || (x || D(""), S(!0));
|
|
8599
8599
|
},
|
|
8600
8600
|
onChange: (e) => {
|
|
8601
8601
|
if (!x) {
|
|
8602
8602
|
let t = e.nativeEvent.data ?? "";
|
|
8603
|
-
|
|
8603
|
+
D(t), S(!0);
|
|
8604
8604
|
return;
|
|
8605
8605
|
}
|
|
8606
|
-
|
|
8606
|
+
D(e.target.value), S(!0);
|
|
8607
8607
|
},
|
|
8608
8608
|
onKeyDown: re
|
|
8609
8609
|
}),
|
|
@@ -8612,13 +8612,13 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
|
|
|
8612
8612
|
"aria-label": h.clearAriaLabel,
|
|
8613
8613
|
className: "ttw:inline-flex ttw:size-4 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:opacity-60 ttw:hover:opacity-100",
|
|
8614
8614
|
onClick: (e) => {
|
|
8615
|
-
e.stopPropagation(), ne(M[0]),
|
|
8615
|
+
e.stopPropagation(), ne(M[0]), D("");
|
|
8616
8616
|
},
|
|
8617
8617
|
children: /* @__PURE__ */ g(fe, { className: "ttw:size-3" })
|
|
8618
8618
|
}) : null
|
|
8619
8619
|
]
|
|
8620
8620
|
}), x && A ? m(/* @__PURE__ */ g("div", {
|
|
8621
|
-
ref:
|
|
8621
|
+
ref: O,
|
|
8622
8622
|
style: {
|
|
8623
8623
|
position: "fixed",
|
|
8624
8624
|
top: A.top + 6,
|
|
@@ -8879,11 +8879,11 @@ function ny({ className: e, ...t }) {
|
|
|
8879
8879
|
});
|
|
8880
8880
|
}
|
|
8881
8881
|
var ry = 52, iy = 40, ay = "60vh";
|
|
8882
|
-
function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a, onPageSizeChange: o, hasNextPage: s, hasPrevPage: c, onNextPage: l, onPrevPage: u, labels: d, pageInfo: f, filterComponent: p, showColumnVisibility: m = !1, showSelectedRowsInfo: S = !1, onRowClick: C,
|
|
8882
|
+
function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a, onPageSizeChange: o, hasNextPage: s, hasPrevPage: c, onNextPage: l, onPrevPage: u, labels: d, pageInfo: f, filterComponent: p, showColumnVisibility: m = !1, showSelectedRowsInfo: S = !1, onRowClick: C, rowClassName: w, children: T, className: E, pageSizeOptions: ee, isLoading: D = !1 }) {
|
|
8883
8883
|
let O = {
|
|
8884
8884
|
...Nv,
|
|
8885
8885
|
...d
|
|
8886
|
-
}, [
|
|
8886
|
+
}, [k, A] = e.useState([]), [j, M] = e.useState({}), [N, P] = e.useState({}), F = x({
|
|
8887
8887
|
data: n,
|
|
8888
8888
|
columns: t,
|
|
8889
8889
|
getCoreRowModel: y(),
|
|
@@ -8893,23 +8893,23 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
8893
8893
|
enableMultiSort: !1,
|
|
8894
8894
|
defaultColumn: { enableSorting: !1 },
|
|
8895
8895
|
onSortingChange: i,
|
|
8896
|
-
onColumnFiltersChange:
|
|
8897
|
-
onColumnVisibilityChange:
|
|
8898
|
-
onRowSelectionChange:
|
|
8896
|
+
onColumnFiltersChange: A,
|
|
8897
|
+
onColumnVisibilityChange: M,
|
|
8898
|
+
onRowSelectionChange: P,
|
|
8899
8899
|
state: {
|
|
8900
8900
|
sorting: r,
|
|
8901
8901
|
pagination: {
|
|
8902
8902
|
pageIndex: 0,
|
|
8903
8903
|
pageSize: a
|
|
8904
8904
|
},
|
|
8905
|
-
columnFilters:
|
|
8906
|
-
columnVisibility:
|
|
8907
|
-
rowSelection:
|
|
8905
|
+
columnFilters: k,
|
|
8906
|
+
columnVisibility: j,
|
|
8907
|
+
rowSelection: N
|
|
8908
8908
|
}
|
|
8909
8909
|
});
|
|
8910
8910
|
return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
|
|
8911
8911
|
"data-slot": "data-table",
|
|
8912
|
-
className: q("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card", p && "ttw:pt-4",
|
|
8912
|
+
className: q("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card", p && "ttw:pt-4", E),
|
|
8913
8913
|
children: [
|
|
8914
8914
|
p,
|
|
8915
8915
|
m && /* @__PURE__ */ g("div", {
|
|
@@ -8927,7 +8927,7 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
8927
8927
|
})
|
|
8928
8928
|
}), /* @__PURE__ */ g(Iv, {
|
|
8929
8929
|
align: "end",
|
|
8930
|
-
children:
|
|
8930
|
+
children: F.getAllColumns().filter((e) => e.getCanHide()).map((e) => /* @__PURE__ */ g(zv, {
|
|
8931
8931
|
className: "ttw:capitalize",
|
|
8932
8932
|
checked: e.getIsVisible(),
|
|
8933
8933
|
onCheckedChange: (t) => e.toggleVisibility(!!t),
|
|
@@ -8939,7 +8939,7 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
8939
8939
|
className: "ttw:border-none",
|
|
8940
8940
|
containerClassName: "ttw:overflow-y-auto",
|
|
8941
8941
|
containerStyle: { height: `min(${iy + a * ry}px, ${ay})` },
|
|
8942
|
-
children: [/* @__PURE__ */ g(Qv, { children:
|
|
8942
|
+
children: [/* @__PURE__ */ g(Qv, { children: F.getHeaderGroups().map((e) => /* @__PURE__ */ g(ey, { children: e.headers.map((e) => /* @__PURE__ */ g(ty, {
|
|
8943
8943
|
"aria-sort": e.column.getCanSort() ? cy(e.column.getIsSorted()) : void 0,
|
|
8944
8944
|
className: "ttw:sticky ttw:top-0 ttw:z-10 ttw:bg-card ttw:p-3 ttw:text-xs ttw:text-zinc-950 ttw:border-b ttw:border-zinc-100",
|
|
8945
8945
|
style: {
|
|
@@ -8953,9 +8953,9 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
8953
8953
|
}, e.id)) }, e.id)) }), /* @__PURE__ */ g($v, { children: D ? Array.from({ length: a }).map((e, n) => /* @__PURE__ */ g(ey, { children: t.map((e, t) => /* @__PURE__ */ g(ny, {
|
|
8954
8954
|
className: "ttw:px-3 ttw:h-13 ttw:border-zinc-100 ttw:border-b",
|
|
8955
8955
|
children: /* @__PURE__ */ g(Sv, { className: "ttw:h-4 ttw:w-full" })
|
|
8956
|
-
}, t)) }, `skeleton-${n}`)) :
|
|
8956
|
+
}, t)) }, `skeleton-${n}`)) : F.getRowModel().rows?.length ? F.getRowModel().rows.map((e) => /* @__PURE__ */ g(ey, {
|
|
8957
8957
|
"data-state": e.getIsSelected() ? "selected" : void 0,
|
|
8958
|
-
className: q(C && "ttw:cursor-pointer"),
|
|
8958
|
+
className: q(C && "ttw:cursor-pointer", w?.(e.original)),
|
|
8959
8959
|
onClick: () => C?.(e.original),
|
|
8960
8960
|
children: e.getVisibleCells().map((e) => /* @__PURE__ */ g(ny, {
|
|
8961
8961
|
className: "ttw:px-3 ttw:h-13 ttw:font-medium ttw:border-zinc-100 ttw:border-b",
|
|
@@ -8973,7 +8973,7 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
8973
8973
|
className: "ttw:p-0",
|
|
8974
8974
|
children: /* @__PURE__ */ g("div", {
|
|
8975
8975
|
className: "ttw:flex ttw:min-h-64 ttw:items-center ttw:justify-center ttw:text-center",
|
|
8976
|
-
children:
|
|
8976
|
+
children: T || O.noResults
|
|
8977
8977
|
})
|
|
8978
8978
|
}) }) })]
|
|
8979
8979
|
})
|
|
@@ -8984,8 +8984,8 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
8984
8984
|
S && /* @__PURE__ */ g("div", {
|
|
8985
8985
|
className: "ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-zinc-950",
|
|
8986
8986
|
children: Mv(O.selectedRows, {
|
|
8987
|
-
selected:
|
|
8988
|
-
total:
|
|
8987
|
+
selected: F.getFilteredSelectedRowModel().rows.length,
|
|
8988
|
+
total: F.getFilteredRowModel().rows.length
|
|
8989
8989
|
})
|
|
8990
8990
|
}),
|
|
8991
8991
|
/* @__PURE__ */ _("span", {
|
|
@@ -8998,7 +8998,7 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
8998
8998
|
children: [/* @__PURE__ */ g(Gv, {
|
|
8999
8999
|
size: "sm",
|
|
9000
9000
|
children: /* @__PURE__ */ g(Wv, {})
|
|
9001
|
-
}), /* @__PURE__ */ g(Kv, { children:
|
|
9001
|
+
}), /* @__PURE__ */ g(Kv, { children: ee.map((e) => /* @__PURE__ */ g(Jv, {
|
|
9002
9002
|
value: String(e),
|
|
9003
9003
|
children: e
|
|
9004
9004
|
}, e)) })]
|
|
@@ -10151,7 +10151,7 @@ var Cb = Sb(), wb = (e) => {
|
|
|
10151
10151
|
"subgrid",
|
|
10152
10152
|
X,
|
|
10153
10153
|
Y
|
|
10154
|
-
],
|
|
10154
|
+
], ee = () => [
|
|
10155
10155
|
"auto",
|
|
10156
10156
|
{ span: [
|
|
10157
10157
|
"full",
|
|
@@ -10162,12 +10162,12 @@ var Cb = Sb(), wb = (e) => {
|
|
|
10162
10162
|
Yx,
|
|
10163
10163
|
X,
|
|
10164
10164
|
Y
|
|
10165
|
-
],
|
|
10165
|
+
], D = () => [
|
|
10166
10166
|
Yx,
|
|
10167
10167
|
"auto",
|
|
10168
10168
|
X,
|
|
10169
10169
|
Y
|
|
10170
|
-
],
|
|
10170
|
+
], O = () => [
|
|
10171
10171
|
"auto",
|
|
10172
10172
|
"min",
|
|
10173
10173
|
"max",
|
|
@@ -10551,13 +10551,13 @@ var Cb = Sb(), wb = (e) => {
|
|
|
10551
10551
|
Y
|
|
10552
10552
|
] }],
|
|
10553
10553
|
"grid-cols": [{ "grid-cols": E() }],
|
|
10554
|
-
"col-start-end": [{ col:
|
|
10555
|
-
"col-start": [{ "col-start":
|
|
10556
|
-
"col-end": [{ "col-end":
|
|
10554
|
+
"col-start-end": [{ col: ee() }],
|
|
10555
|
+
"col-start": [{ "col-start": D() }],
|
|
10556
|
+
"col-end": [{ "col-end": D() }],
|
|
10557
10557
|
"grid-rows": [{ "grid-rows": E() }],
|
|
10558
|
-
"row-start-end": [{ row:
|
|
10559
|
-
"row-start": [{ "row-start":
|
|
10560
|
-
"row-end": [{ "row-end":
|
|
10558
|
+
"row-start-end": [{ row: ee() }],
|
|
10559
|
+
"row-start": [{ "row-start": D() }],
|
|
10560
|
+
"row-end": [{ "row-end": D() }],
|
|
10561
10561
|
"grid-flow": [{ "grid-flow": [
|
|
10562
10562
|
"row",
|
|
10563
10563
|
"col",
|
|
@@ -10565,8 +10565,8 @@ var Cb = Sb(), wb = (e) => {
|
|
|
10565
10565
|
"row-dense",
|
|
10566
10566
|
"col-dense"
|
|
10567
10567
|
] }],
|
|
10568
|
-
"auto-cols": [{ "auto-cols":
|
|
10569
|
-
"auto-rows": [{ "auto-rows":
|
|
10568
|
+
"auto-cols": [{ "auto-cols": O() }],
|
|
10569
|
+
"auto-rows": [{ "auto-rows": O() }],
|
|
10570
10570
|
gap: [{ gap: w() }],
|
|
10571
10571
|
"gap-x": [{ "gap-x": w() }],
|
|
10572
10572
|
"gap-y": [{ "gap-y": w() }],
|
|
@@ -14204,7 +14204,7 @@ function pD(e) {
|
|
|
14204
14204
|
...n,
|
|
14205
14205
|
today: c.today()
|
|
14206
14206
|
});
|
|
14207
|
-
let { captionLayout: p, mode: m, navLayout: h, numberOfMonths: g = 1, onDayBlur: _, onDayClick: v, onDayFocus: y, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: S, onNextClick: C, onPrevClick: w, showWeekNumber: T, styles: E } = n, { formatCaption:
|
|
14207
|
+
let { captionLayout: p, mode: m, navLayout: h, numberOfMonths: g = 1, onDayBlur: _, onDayClick: v, onDayFocus: y, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: S, onNextClick: C, onPrevClick: w, showWeekNumber: T, styles: E } = n, { formatCaption: ee, formatDay: D, formatMonthDropdown: O, formatWeekNumber: k, formatWeekNumberHeader: A, formatWeekdayName: j, formatYearDropdown: M } = o, N = JE(n, c), { days: P, months: F, navStart: te, navEnd: ne, previousMonth: re, nextMonth: ie, goToMonth: I } = N, L = KT(P, n, te, ne, c), { isSelected: ae, select: oe, selected: R } = cD(n, c) ?? {}, { blur: se, focused: ce, isFocusTarget: le, moveFocus: ue, setFocused: de } = eD(n, N, L, ae ?? (() => !1), c), { labelDayButton: fe, labelGridcell: pe, labelGrid: me, labelMonthDropdown: he, labelNav: ge, labelPrevious: z, labelNext: _e, labelWeekday: ve, labelWeekNumber: ye, labelWeekNumberHeader: be, labelYearDropdown: xe } = s, Se = l(() => DE(c, n.ISOWeek, n.broadcastCalendar, n.today), [
|
|
14208
14208
|
c,
|
|
14209
14209
|
n.ISOWeek,
|
|
14210
14210
|
n.broadcastCalendar,
|
|
@@ -14361,7 +14361,7 @@ function pD(e) {
|
|
|
14361
14361
|
options: TE(e.date, te, ne, o, c),
|
|
14362
14362
|
style: E?.[$.Dropdown],
|
|
14363
14363
|
value: c.getMonth(e.date)
|
|
14364
|
-
}) : t.createElement("span", { key: "month" },
|
|
14364
|
+
}) : t.createElement("span", { key: "month" }, O(e.date, c)), a = p === "dropdown" || p === "dropdown-years" ? t.createElement(i.YearsDropdown, {
|
|
14365
14365
|
key: "year",
|
|
14366
14366
|
className: f[$.YearsDropdown],
|
|
14367
14367
|
"aria-label": xe(c.options),
|
|
@@ -14389,11 +14389,11 @@ function pD(e) {
|
|
|
14389
14389
|
whiteSpace: "nowrap",
|
|
14390
14390
|
wordWrap: "normal"
|
|
14391
14391
|
}
|
|
14392
|
-
},
|
|
14392
|
+
}, ee(e.date, c.options, c))) : t.createElement(i.CaptionLabel, {
|
|
14393
14393
|
className: f[$.CaptionLabel],
|
|
14394
14394
|
role: "status",
|
|
14395
14395
|
"aria-live": "polite"
|
|
14396
|
-
},
|
|
14396
|
+
}, ee(e.date, c.options, c))), h === "around" && !n.hideNavigation && r === g - 1 && t.createElement(i.NextMonthButton, {
|
|
14397
14397
|
type: "button",
|
|
14398
14398
|
className: f[$.NextMonthButton],
|
|
14399
14399
|
tabIndex: ie ? void 0 : -1,
|
|
@@ -14491,7 +14491,7 @@ function pD(e) {
|
|
|
14491
14491
|
onKeyDown: ke(e, a),
|
|
14492
14492
|
onMouseEnter: Ae(e, a),
|
|
14493
14493
|
onMouseLeave: je(e, a)
|
|
14494
|
-
},
|
|
14494
|
+
}, D(r, c.options, c)) : !a.hidden && D(e.date, c.options, c));
|
|
14495
14495
|
})))))))), n.footer && t.createElement(i.Footer, {
|
|
14496
14496
|
className: f[$.Footer],
|
|
14497
14497
|
style: E?.[$.Footer],
|
|
@@ -15582,7 +15582,7 @@ var zk = [
|
|
|
15582
15582
|
setState: (e, t, n) => {
|
|
15583
15583
|
var i, a, o;
|
|
15584
15584
|
if (!Object.is(r.current[e], t)) {
|
|
15585
|
-
if (r.current[e] = t, e === "search")
|
|
15585
|
+
if (r.current[e] = t, e === "search") O(), ee(), C(1, D);
|
|
15586
15586
|
else if (e === "value") {
|
|
15587
15587
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
15588
15588
|
let e = document.getElementById(x);
|
|
@@ -15608,16 +15608,16 @@ var zk = [
|
|
|
15608
15608
|
value: t,
|
|
15609
15609
|
keywords: n
|
|
15610
15610
|
}), r.current.filtered.items.set(e, E(t, n)), C(2, () => {
|
|
15611
|
-
|
|
15611
|
+
ee(), w.emit();
|
|
15612
15612
|
}));
|
|
15613
15613
|
},
|
|
15614
15614
|
item: (e, t) => (i.current.add(e), t && (a.current.has(t) ? a.current.get(t).add(e) : a.current.set(t, /* @__PURE__ */ new Set([e]))), C(3, () => {
|
|
15615
|
-
|
|
15615
|
+
O(), ee(), r.current.value || D(), w.emit();
|
|
15616
15616
|
}), () => {
|
|
15617
15617
|
o.current.delete(e), i.current.delete(e), r.current.filtered.items.delete(e);
|
|
15618
15618
|
let t = A();
|
|
15619
15619
|
C(4, () => {
|
|
15620
|
-
|
|
15620
|
+
O(), t?.getAttribute("id") === e && D(), w.emit();
|
|
15621
15621
|
});
|
|
15622
15622
|
}),
|
|
15623
15623
|
group: (e) => (a.current.has(e) || a.current.set(e, /* @__PURE__ */ new Set()), () => {
|
|
@@ -15635,7 +15635,7 @@ var zk = [
|
|
|
15635
15635
|
let n = c.current?.filter ?? qk;
|
|
15636
15636
|
return e ? n(e, r.current.search, t) : 0;
|
|
15637
15637
|
}
|
|
15638
|
-
function
|
|
15638
|
+
function ee() {
|
|
15639
15639
|
if (!r.current.search || c.current.shouldFilter === !1) return;
|
|
15640
15640
|
let e = r.current.filtered.items, t = [];
|
|
15641
15641
|
r.current.filtered.groups.forEach((n) => {
|
|
@@ -15657,11 +15657,11 @@ var zk = [
|
|
|
15657
15657
|
t?.parentElement.appendChild(t);
|
|
15658
15658
|
});
|
|
15659
15659
|
}
|
|
15660
|
-
function
|
|
15660
|
+
function D() {
|
|
15661
15661
|
let e = j().find((e) => e.getAttribute("aria-disabled") !== "true")?.getAttribute(Kk);
|
|
15662
15662
|
w.setState("value", e || void 0);
|
|
15663
15663
|
}
|
|
15664
|
-
function
|
|
15664
|
+
function O() {
|
|
15665
15665
|
if (!r.current.search || c.current.shouldFilter === !1) {
|
|
15666
15666
|
r.current.filtered.count = i.current.size;
|
|
15667
15667
|
return;
|
package/package.json
CHANGED
package/dist/libs/tesouro-embedded-components-react/profile-widget/data-access/dist/index2.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
-
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
-
import { getEntityUsersMyEntityOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
-
import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
-
import { useCurrentUserQuery as i } from "../../../shared/data-access/dist/lib/useCurrentUserQuery.js";
|
|
10
|
-
import "../../../shared/data-access/dist/index.js";
|
|
11
|
-
import { useQuery as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/profile-widget/data-access/dist/index2.js
|
|
13
|
-
function o({ enabled: o } = {}) {
|
|
14
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (o === !0 || o === void 0);
|
|
15
|
-
return {
|
|
16
|
-
userQuery: i({ enabled: d }),
|
|
17
|
-
entityQuery: a({
|
|
18
|
-
...r(n({
|
|
19
|
-
client: s,
|
|
20
|
-
headers: t(c)
|
|
21
|
-
}), u),
|
|
22
|
-
enabled: d
|
|
23
|
-
})
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { o as useProfileQuery };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|