@calcom/atoms 1.0.99 → 1.0.101-booker
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/{AddressInput-WBfvWGkL.js → AddressInput-juYkbZV2.js} +3 -3
- package/dist/{AlbyPriceComponent-eW8bnLtO.js → AlbyPriceComponent-zPblWsmO.js} +28 -28
- package/dist/{PhoneInput-LeK3XZ0X.js → PhoneInput-lzIUvvEp.js} +1 -1
- package/dist/cal-atoms.js +3 -34
- package/dist/index-1iD3RAuF.js +83360 -0
- package/dist/index-4eiX6cBE.js +1957 -0
- package/dist/{index-mhIxRvCU.js → index-pxPagOVY.js} +1 -1
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +6 -0
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +17 -0
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/get-booking.d.ts +3 -0
- package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts +1 -0
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/data-table/DataTableProvider.d.ts +4 -2
- package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/DataTableToolbar.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -1
- package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts +9 -0
- package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts.map +1 -0
- package/dist/packages/features/data-table/hooks/useSegments.d.ts +3 -0
- package/dist/packages/features/data-table/hooks/useSegments.d.ts.map +1 -0
- package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts +3 -0
- package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts.map +1 -0
- package/dist/packages/features/data-table/index.d.ts +1 -1
- package/dist/packages/features/data-table/index.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/dateRange.d.ts +7 -0
- package/dist/packages/features/data-table/lib/dateRange.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/dateRange.test.d.ts +2 -0
- package/dist/packages/features/data-table/lib/dateRange.test.d.ts.map +1 -0
- package/dist/packages/features/data-table/lib/types.d.ts +31 -6
- package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +1 -0
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts +3 -0
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/WorkflowStepContainer.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts +3 -1
- package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +2 -3
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts +11 -0
- package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts +4 -2
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts +3 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +17 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts +1 -0
- package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/apple/AppleConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/google/GcalConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/outlook/OutlookConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/stripe/StripeConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +12 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts +32 -0
- package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts.map +1 -0
- package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventPaymentsTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts +2 -2
- package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useTeamEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts +4 -0
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts.map +1 -0
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts +4 -0
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts.map +1 -0
- package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts +3 -10
- package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts +2 -2
- package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +17 -0
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -32
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts +2 -4
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +2 -0
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +2 -0
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/get-bookings.input.d.ts.map +1 -1
- package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts +5 -0
- package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts.map +1 -0
- package/dist/packages/platform/types/organizations/bookings/index.d.ts +2 -0
- package/dist/packages/platform/types/organizations/bookings/index.d.ts.map +1 -0
- package/dist/packages/platform/types/organizations/index.d.ts +1 -0
- package/dist/packages/platform/types/organizations/index.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts +6 -4
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +15 -3
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
- package/dist/packages/platform/types/teams/outputs/index.d.ts +1 -0
- package/dist/packages/platform/types/teams/outputs/index.d.ts.map +1 -1
- package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts +9 -0
- package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts.map +1 -0
- package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts +3 -0
- package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts.map +1 -1
- package/dist/packages/prisma/zod/calendarcache.d.ts +3 -0
- package/dist/packages/prisma/zod/calendarcache.d.ts.map +1 -1
- package/dist/packages/prisma/zod/filtersegment.d.ts +3 -0
- package/dist/packages/prisma/zod/filtersegment.d.ts.map +1 -1
- package/dist/packages/prisma/zod/task.d.ts +3 -0
- package/dist/packages/prisma/zod/task.d.ts.map +1 -1
- package/dist/packages/prisma/zod/user.d.ts +3 -0
- package/dist/packages/prisma/zod/user.d.ts.map +1 -1
- package/dist/packages/prisma/zod/workflowreminder.d.ts +3 -0
- package/dist/packages/prisma/zod/workflowreminder.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +126 -3
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +408 -5
- package/dist/packages/trpc/react/shared.d.ts +1 -1
- package/dist/packages/trpc/react/shared.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +6 -0
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/globals.min.css +2 -14
- package/package.json +2 -2
- package/dist/AppCard-a2VNbyLx.js +0 -162
- package/dist/AppListCardPlatformWrapper-C8hnPpP4.js +0 -9
- package/dist/AppListCardWebWrapper-DvvSERyw.js +0 -74
- package/dist/AppSettingsInterface-277vkITp.js +0 -75
- package/dist/AppSettingsInterface-cKTul9l1.js +0 -29
- package/dist/AppSettingsInterface-cRYupPyd.js +0 -23
- package/dist/DateRangePicker-vgjaMql7.js +0 -2418
- package/dist/EventTypeAppCardInterface-5SmitGNV.js +0 -24
- package/dist/EventTypeAppCardInterface-5oCKHCnt.js +0 -24
- package/dist/EventTypeAppCardInterface-DCGeU2Nt.js +0 -32
- package/dist/EventTypeAppCardInterface-E0Qss22P.js +0 -39
- package/dist/EventTypeAppCardInterface-EjBlklYZ.js +0 -32
- package/dist/EventTypeAppCardInterface-J-7B6Xjo.js +0 -34
- package/dist/EventTypeAppCardInterface-KduqlFNa.js +0 -34
- package/dist/EventTypeAppCardInterface-MS4ucwo6.js +0 -49
- package/dist/EventTypeAppCardInterface-PTb9KLMK.js +0 -31
- package/dist/EventTypeAppCardInterface-Sy_wEWq8.js +0 -493
- package/dist/EventTypeAppCardInterface-UnxmvFiF.js +0 -42
- package/dist/EventTypeAppCardInterface-Y4hW3FSd.js +0 -24
- package/dist/EventTypeAppCardInterface-ax3KRlWb.js +0 -41
- package/dist/EventTypeAppCardInterface-gWjvfWM8.js +0 -34
- package/dist/EventTypeAppCardInterface-hdSBbtYi.js +0 -34
- package/dist/EventTypeAppCardInterface-i0iSNHI5.js +0 -51
- package/dist/EventTypeAppCardInterface-iRFQuaNc.js +0 -24
- package/dist/EventTypeAppCardInterface-iye41eH9.js +0 -34
- package/dist/EventTypeAppCardInterface-jPx0Q4vg.js +0 -42
- package/dist/EventTypeAppCardInterface-jsVu8y8O.js +0 -24
- package/dist/EventTypeAppCardInterface-k6-pyXdz.js +0 -51
- package/dist/EventTypeAppCardInterface-rV9JaOnf.js +0 -86
- package/dist/EventTypeAppCardInterface-tRwK3uo8.js +0 -34
- package/dist/EventTypeAppCardInterface-u3dNHTwX.js +0 -33
- package/dist/EventTypeAppCardInterface-urvIbTUy.js +0 -41
- package/dist/EventTypeAppCardInterface-yEwxGABY.js +0 -34
- package/dist/EventTypeAppSettingsInterface-H0Y7R_6K.js +0 -48
- package/dist/EventTypeAppSettingsInterface-HjjrUG-6.js +0 -120
- package/dist/EventTypeAppSettingsInterface-IlX26-MP.js +0 -78
- package/dist/EventTypeAppSettingsInterface-UEd9lbfG.js +0 -23
- package/dist/EventTypeAppSettingsInterface-VctSrf5M.js +0 -43
- package/dist/EventTypeAppSettingsInterface-VdsSNh9p.js +0 -25
- package/dist/EventTypeAppSettingsInterface-XljkqZTl.js +0 -23
- package/dist/EventTypeAppSettingsInterface-YGCAMT_H.js +0 -72
- package/dist/EventTypeAppSettingsInterface-cZcfyfGn.js +0 -24
- package/dist/EventTypeAppSettingsInterface-mb6aW1Vk.js +0 -221
- package/dist/EventTypeAppSettingsInterface-t9OOHsGu.js +0 -42
- package/dist/EventTypeAppSettingsInterface-zpEk1DKo.js +0 -298
- package/dist/InstallAppButton-0rF_k2oO.js +0 -14
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-LAgGkMR5.js +0 -14
- package/dist/InstallAppButton-mCwpgGMb.js +0 -58
- package/dist/StripePaymentForm-7wEfBhaI.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/framer-features-OfBOvlO4.js +0 -443
- package/dist/index-61yVVkPy.js +0 -28
- package/dist/index-E1a1GKmY.js +0 -155405
- package/dist/index-NLytQWtD.js +0 -511
- package/dist/packages/features/data-table/lib/resizing.d.ts +0 -9
- package/dist/packages/features/data-table/lib/resizing.d.ts.map +0 -1
- package/dist/packages/features/data-table/lib/segments.d.ts +0 -27
- package/dist/packages/features/data-table/lib/segments.d.ts.map +0 -1
- package/dist/useIsAppEnabled-bcfIdtzp.js +0 -18
package/dist/index-NLytQWtD.js
DELETED
|
@@ -1,511 +0,0 @@
|
|
|
1
|
-
import { jsxs as c, jsx as i, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { ao as S, ap as j, aq as T, al as U, ar as A, as as R, M as u, r as I, at as _, q as w, au as x, av as $, aw as V, y as q } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { memo as M, useState as Q } from "react";
|
|
4
|
-
var z = Math.floor, E = Math.random;
|
|
5
|
-
function Z(t, s) {
|
|
6
|
-
return t + z(E() * (s - t + 1));
|
|
7
|
-
}
|
|
8
|
-
var F = Z, G = F;
|
|
9
|
-
function W(t, s) {
|
|
10
|
-
var o = -1, n = t.length, a = n - 1;
|
|
11
|
-
for (s = s === void 0 ? n : s; ++o < s; ) {
|
|
12
|
-
var e = G(o, a), r = t[e];
|
|
13
|
-
t[e] = t[o], t[o] = r;
|
|
14
|
-
}
|
|
15
|
-
return t.length = s, t;
|
|
16
|
-
}
|
|
17
|
-
var N = W, D = S, O = N;
|
|
18
|
-
function H(t) {
|
|
19
|
-
return O(D(t));
|
|
20
|
-
}
|
|
21
|
-
var P = H, K = j;
|
|
22
|
-
function Y(t, s) {
|
|
23
|
-
return K(s, function(o) {
|
|
24
|
-
return t[o];
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
var J = Y, X = J, B = T();
|
|
28
|
-
function ee(t) {
|
|
29
|
-
return t == null ? [] : X(t, B(t));
|
|
30
|
-
}
|
|
31
|
-
var te = ee, ie = N, se = te;
|
|
32
|
-
function re(t) {
|
|
33
|
-
return ie(se(t));
|
|
34
|
-
}
|
|
35
|
-
var ae = re, le = P, oe = ae, de = A;
|
|
36
|
-
function ne(t) {
|
|
37
|
-
var s = de(t) ? le : oe;
|
|
38
|
-
return s(t);
|
|
39
|
-
}
|
|
40
|
-
var ce = ne;
|
|
41
|
-
const me = /* @__PURE__ */ U(ce), g = _("", {
|
|
42
|
-
// Variants won't have any style by default. Style will only be applied if the variants are combined.
|
|
43
|
-
// So, style is defined in compoundVariants.
|
|
44
|
-
variants: {
|
|
45
|
-
variant: {
|
|
46
|
-
basic: "",
|
|
47
|
-
ProfileCard: "",
|
|
48
|
-
SidebarCard: ""
|
|
49
|
-
},
|
|
50
|
-
structure: {
|
|
51
|
-
image: "",
|
|
52
|
-
card: "",
|
|
53
|
-
title: "",
|
|
54
|
-
description: ""
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
compoundVariants: [
|
|
58
|
-
// Style for Basic Variants types
|
|
59
|
-
{
|
|
60
|
-
variant: "basic",
|
|
61
|
-
structure: "image",
|
|
62
|
-
className: "w-10 h-auto"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
variant: "basic",
|
|
66
|
-
structure: "card",
|
|
67
|
-
className: "p-5"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
variant: "basic",
|
|
71
|
-
structure: "title",
|
|
72
|
-
className: "text-base mt-4"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
variant: "basic",
|
|
76
|
-
structure: "description",
|
|
77
|
-
className: "text-sm leading-[18px] text-subtle font-normal"
|
|
78
|
-
},
|
|
79
|
-
// Style for ProfileCard Variant Types
|
|
80
|
-
{
|
|
81
|
-
variant: "ProfileCard",
|
|
82
|
-
structure: "image",
|
|
83
|
-
className: "w-9 h-auto rounded-full mb-4s"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
variant: "ProfileCard",
|
|
87
|
-
structure: "card",
|
|
88
|
-
className: "w-80 p-4 hover:bg-subtle"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
variant: "ProfileCard",
|
|
92
|
-
structure: "title",
|
|
93
|
-
className: "text-base"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
variant: "ProfileCard",
|
|
97
|
-
structure: "description",
|
|
98
|
-
className: "text-sm leading-[18px] text-subtle font-normal"
|
|
99
|
-
},
|
|
100
|
-
// Style for SidebarCard Variant Types
|
|
101
|
-
{
|
|
102
|
-
variant: "SidebarCard",
|
|
103
|
-
structure: "image",
|
|
104
|
-
className: "w-9 h-auto rounded-full mb-4s"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
variant: "SidebarCard",
|
|
108
|
-
structure: "card",
|
|
109
|
-
className: "w-full p-3 border border-subtle"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
variant: "SidebarCard",
|
|
113
|
-
structure: "title",
|
|
114
|
-
className: "text-sm font-cal"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
variant: "SidebarCard",
|
|
118
|
-
structure: "description",
|
|
119
|
-
className: "text-xs text-default line-clamp-2"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
});
|
|
123
|
-
function he({
|
|
124
|
-
image: t,
|
|
125
|
-
title: s,
|
|
126
|
-
icon: o,
|
|
127
|
-
description: n,
|
|
128
|
-
variant: a,
|
|
129
|
-
actionButton: e,
|
|
130
|
-
containerProps: r,
|
|
131
|
-
imageProps: l,
|
|
132
|
-
mediaLink: d,
|
|
133
|
-
thumbnailUrl: h,
|
|
134
|
-
learnMore: m
|
|
135
|
-
}) {
|
|
136
|
-
const v = m && m.href.startsWith("https") ? "a" : R;
|
|
137
|
-
return /* @__PURE__ */ c(
|
|
138
|
-
"div",
|
|
139
|
-
{
|
|
140
|
-
className: u(
|
|
141
|
-
r == null ? void 0 : r.className,
|
|
142
|
-
g({ variant: a, structure: "card" }),
|
|
143
|
-
"bg-default border-subtle text-default flex flex-col justify-between rounded-md border"
|
|
144
|
-
),
|
|
145
|
-
"data-testid": "card-container",
|
|
146
|
-
...r,
|
|
147
|
-
children: [
|
|
148
|
-
/* @__PURE__ */ c("div", { children: [
|
|
149
|
-
o && o,
|
|
150
|
-
t && /* @__PURE__ */ i(
|
|
151
|
-
"img",
|
|
152
|
-
{
|
|
153
|
-
src: t,
|
|
154
|
-
alt: l == null ? void 0 : l.alt,
|
|
155
|
-
className: u(
|
|
156
|
-
l == null ? void 0 : l.className,
|
|
157
|
-
g({ variant: a, structure: "image" })
|
|
158
|
-
),
|
|
159
|
-
...l
|
|
160
|
-
}
|
|
161
|
-
),
|
|
162
|
-
/* @__PURE__ */ i(
|
|
163
|
-
"h5",
|
|
164
|
-
{
|
|
165
|
-
title: s,
|
|
166
|
-
className: u(
|
|
167
|
-
g({ variant: a, structure: "title" }),
|
|
168
|
-
"text-emphasis line-clamp-1 font-bold leading-5"
|
|
169
|
-
),
|
|
170
|
-
children: s
|
|
171
|
-
}
|
|
172
|
-
),
|
|
173
|
-
n && /* @__PURE__ */ i(
|
|
174
|
-
"p",
|
|
175
|
-
{
|
|
176
|
-
title: n.toString(),
|
|
177
|
-
className: u(g({ variant: a, structure: "description" }), "pt-1"),
|
|
178
|
-
children: n
|
|
179
|
-
}
|
|
180
|
-
)
|
|
181
|
-
] }),
|
|
182
|
-
a === "SidebarCard" && /* @__PURE__ */ c(
|
|
183
|
-
"a",
|
|
184
|
-
{
|
|
185
|
-
onClick: e == null ? void 0 : e.onClick,
|
|
186
|
-
target: "_blank",
|
|
187
|
-
rel: "noreferrer",
|
|
188
|
-
href: d,
|
|
189
|
-
"data-testid": e == null ? void 0 : e["data-testid"],
|
|
190
|
-
className: "group relative my-3 flex aspect-video items-center overflow-hidden rounded",
|
|
191
|
-
children: [
|
|
192
|
-
/* @__PURE__ */ i("div", { className: "absolute inset-0 bg-black bg-opacity-50 transition group-hover:bg-opacity-40" }),
|
|
193
|
-
/* @__PURE__ */ c(
|
|
194
|
-
"svg",
|
|
195
|
-
{
|
|
196
|
-
className: "text-inverted absolute left-1/2 top-1/2 h-8 w-8 -translate-x-1/2 -translate-y-1/2 transform rounded-full shadow-lg transition-all hover:-mt-px",
|
|
197
|
-
viewBox: "0 0 32 32",
|
|
198
|
-
fill: "none",
|
|
199
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
200
|
-
children: [
|
|
201
|
-
/* @__PURE__ */ i(
|
|
202
|
-
"path",
|
|
203
|
-
{
|
|
204
|
-
d: "M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",
|
|
205
|
-
fill: "white"
|
|
206
|
-
}
|
|
207
|
-
),
|
|
208
|
-
/* @__PURE__ */ i(
|
|
209
|
-
"path",
|
|
210
|
-
{
|
|
211
|
-
d: "M12.1667 8.5L23.8334 16L12.1667 23.5V8.5Z",
|
|
212
|
-
fill: "#111827",
|
|
213
|
-
stroke: "#111827",
|
|
214
|
-
strokeWidth: "1.5",
|
|
215
|
-
strokeLinecap: "round",
|
|
216
|
-
strokeLinejoin: "round"
|
|
217
|
-
}
|
|
218
|
-
)
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
),
|
|
222
|
-
/* @__PURE__ */ i("img", { alt: "play feature video", src: h })
|
|
223
|
-
]
|
|
224
|
-
}
|
|
225
|
-
),
|
|
226
|
-
a === "basic" && e && /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
|
|
227
|
-
I,
|
|
228
|
-
{
|
|
229
|
-
color: "secondary",
|
|
230
|
-
href: e == null ? void 0 : e.href,
|
|
231
|
-
className: "mt-10",
|
|
232
|
-
EndIcon: "arrow-right",
|
|
233
|
-
"data-testid": e["data-testid"],
|
|
234
|
-
children: e == null ? void 0 : e.child
|
|
235
|
-
}
|
|
236
|
-
) }),
|
|
237
|
-
a === "SidebarCard" && /* @__PURE__ */ c("div", { className: "mt-2 flex items-center justify-between", children: [
|
|
238
|
-
m && /* @__PURE__ */ i(
|
|
239
|
-
v,
|
|
240
|
-
{
|
|
241
|
-
href: m.href,
|
|
242
|
-
onClick: e == null ? void 0 : e.onClick,
|
|
243
|
-
target: "_blank",
|
|
244
|
-
rel: "noreferrer",
|
|
245
|
-
className: "text-default text-xs font-medium",
|
|
246
|
-
children: m.text
|
|
247
|
-
}
|
|
248
|
-
),
|
|
249
|
-
(e == null ? void 0 : e.child) && /* @__PURE__ */ i(
|
|
250
|
-
"button",
|
|
251
|
-
{
|
|
252
|
-
className: "text-default hover:text-emphasis p-0 text-xs font-normal",
|
|
253
|
-
color: "minimal",
|
|
254
|
-
"data-testid": e == null ? void 0 : e["data-testid"],
|
|
255
|
-
onClick: e == null ? void 0 : e.onClick,
|
|
256
|
-
children: e == null ? void 0 : e.child
|
|
257
|
-
}
|
|
258
|
-
)
|
|
259
|
-
] })
|
|
260
|
-
]
|
|
261
|
-
}
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
const ue = [
|
|
265
|
-
{
|
|
266
|
-
id: 17,
|
|
267
|
-
thumbnailUrl: "https://img.youtube.com/vi/fMHW6jYPIb8/0.jpg",
|
|
268
|
-
mediaLink: "https://go.cal.com/embed-video",
|
|
269
|
-
title: "Embed",
|
|
270
|
-
description: "Embed your booking page on your website",
|
|
271
|
-
href: "https://go.cal.com/embed-video"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
id: 16,
|
|
275
|
-
thumbnailUrl: "https://img.youtube.com/vi/xopxmk2H4Ng/0.jpg",
|
|
276
|
-
mediaLink: "https://go.cal.com/paid-booking",
|
|
277
|
-
title: "Paid Bookings",
|
|
278
|
-
description: "Charge for your time with Cal.com's paid bookings",
|
|
279
|
-
href: "https://go.cal.com/paid-booking"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
id: 15,
|
|
283
|
-
thumbnailUrl: "https://img.youtube.com/vi/ZjSD1yPgLLQ/0.jpg",
|
|
284
|
-
mediaLink: "https://go.cal.com/instant-meetings-video",
|
|
285
|
-
title: "Instant Meetings",
|
|
286
|
-
description: "Book meetings instantly with a link",
|
|
287
|
-
href: "https://go.cal.com/instant-meetings-video"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
id: 14,
|
|
291
|
-
thumbnailUrl: "https://img.youtube.com/vi/IZ4-nUiIpvY/0.jpg",
|
|
292
|
-
mediaLink: "https://go.cal.com/custom-attributes",
|
|
293
|
-
title: "Custom Attributes",
|
|
294
|
-
description: "Define roles and attributes for your teams",
|
|
295
|
-
href: "https://go.cal.com/custom-attributes"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
id: 13,
|
|
299
|
-
thumbnailUrl: "https://img.youtube.com/vi/TTAASLLPKk0/0.jpg",
|
|
300
|
-
mediaLink: "https://go.cal.com/ooo-video",
|
|
301
|
-
title: "ooo.new",
|
|
302
|
-
description: "Easily go out-of-office",
|
|
303
|
-
href: "https://go.cal.com/ooo-video"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
id: 12,
|
|
307
|
-
thumbnailUrl: "https://cal.com/og-image-cal-ai.jpg",
|
|
308
|
-
mediaLink: "https://go.cal.com/cal-ai",
|
|
309
|
-
title: "Cal.ai",
|
|
310
|
-
description: "Your personal AI scheduling assistant",
|
|
311
|
-
href: "https://go.cal.com/cal-ai"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
id: 11,
|
|
315
|
-
thumbnailUrl: "https://img.youtube.com/vi/KTg_qzA9NEc/0.jpg",
|
|
316
|
-
mediaLink: "https://go.cal.com/insights",
|
|
317
|
-
title: "Insights",
|
|
318
|
-
description: "Get a better understanding of your business",
|
|
319
|
-
href: "https://go.cal.com/insights"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
id: 10,
|
|
323
|
-
thumbnailUrl: "https://img.youtube.com/vi/jvaBafzVUQc/0.jpg",
|
|
324
|
-
mediaLink: "https://go.cal.com/video",
|
|
325
|
-
title: "Cal Video",
|
|
326
|
-
description: "Free video conferencing with recording",
|
|
327
|
-
href: "https://go.cal.com/video"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
id: 9,
|
|
331
|
-
thumbnailUrl: "https://img.youtube.com/vi/93iOmzHieCU/0.jpg",
|
|
332
|
-
mediaLink: "https://go.cal.com/round-robin",
|
|
333
|
-
title: "Round-Robin",
|
|
334
|
-
description: "Create advanced group meetings with round-robin",
|
|
335
|
-
href: "https://go.cal.com/round-robin"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
id: 8,
|
|
339
|
-
thumbnailUrl: "https://img.youtube.com/vi/piKlAiibAFo/0.jpg",
|
|
340
|
-
mediaLink: "https://go.cal.com/workflows",
|
|
341
|
-
title: "Automate Workflows",
|
|
342
|
-
description: "Make time work for you and automate tasks",
|
|
343
|
-
href: "https://go.cal.com/workflows"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
id: 7,
|
|
347
|
-
thumbnailUrl: "https://img.youtube.com/vi/UVXgo12cY4g/0.jpg",
|
|
348
|
-
mediaLink: "https://go.cal.com/routing-forms",
|
|
349
|
-
title: "Routing Forms",
|
|
350
|
-
description: "Ask questions and route to the correct person",
|
|
351
|
-
href: "https://go.cal.com/routing-forms"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
id: 6,
|
|
355
|
-
thumbnailUrl: "https://img.youtube.com/vi/yGiZo1Ry5-8/0.jpg",
|
|
356
|
-
mediaLink: "https://go.cal.com/recurring-video",
|
|
357
|
-
title: "Recurring Bookings",
|
|
358
|
-
description: "Learn how to create a recurring schedule",
|
|
359
|
-
href: "https://go.cal.com/recurring-video"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
id: 5,
|
|
363
|
-
thumbnailUrl: "https://img.youtube.com/vi/0v_nQtpxC_4/0.jpg",
|
|
364
|
-
mediaLink: "https://go.cal.com/payments-video",
|
|
365
|
-
title: "Accept Payments",
|
|
366
|
-
description: "Charge for your time with Cal.com's Stripe App",
|
|
367
|
-
href: "https://app.cal.com/apps/stripe"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
id: 4,
|
|
371
|
-
thumbnailUrl: "https://img.youtube.com/vi/zGr_s-fG84k/0.jpg",
|
|
372
|
-
mediaLink: "https://go.cal.com/confirmation-video",
|
|
373
|
-
title: "Requires Confirmation",
|
|
374
|
-
description: "Learn how to be in charge of your bookings",
|
|
375
|
-
href: "https://cal.com/resources/feature/opt-in"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
id: 3,
|
|
379
|
-
thumbnailUrl: "https://img.youtube.com/vi/-L8MCiT6uhQ/0.jpg",
|
|
380
|
-
mediaLink: "https://youtu.be/-L8MCiT6uhQ?si=DRJzRNhN85hqAwBl",
|
|
381
|
-
title: "Routing Forms, Workflows",
|
|
382
|
-
description: "Ask screening questions of potential bookers to connect them with the right person",
|
|
383
|
-
href: "https://youtu.be/-L8MCiT6uhQ?si=DRJzRNhN85hqAwBl"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
id: 2,
|
|
387
|
-
thumbnailUrl: "https://img.youtube.com/vi/EAc46SPL6iA/0.jpg",
|
|
388
|
-
mediaLink: "https://go.cal.com/teams-video",
|
|
389
|
-
title: "How to set up Teams",
|
|
390
|
-
description: "Learn how to use round-robin and collective events.",
|
|
391
|
-
href: "https://cal.com/docs/enterprise-features/teams"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
id: 1,
|
|
395
|
-
thumbnailUrl: "https://img.youtube.com/vi/VZ5PfQzzxBw/0.jpg",
|
|
396
|
-
mediaLink: "https://youtu.be/VZ5PfQzzxBw?si=oB0LPSxG8dWIwg5a",
|
|
397
|
-
title: "Dynamic booking links",
|
|
398
|
-
description: "Booking link that allows people to quickly schedule meetings.",
|
|
399
|
-
href: "https://youtu.be/VZ5PfQzzxBw?si=oB0LPSxG8dWIwg5a"
|
|
400
|
-
}
|
|
401
|
-
], b = me(ue).slice(0).reverse();
|
|
402
|
-
function pe() {
|
|
403
|
-
const { t } = w(), [s, o] = Q(() => {
|
|
404
|
-
if (typeof window > "u")
|
|
405
|
-
return b;
|
|
406
|
-
try {
|
|
407
|
-
const e = x.getItem("removedTipsIds");
|
|
408
|
-
if (e !== null) {
|
|
409
|
-
const r = e.split(",").map((d) => parseInt(d, 10));
|
|
410
|
-
return b.filter((d) => r.indexOf(d.id) === -1);
|
|
411
|
-
} else
|
|
412
|
-
return b;
|
|
413
|
-
} catch {
|
|
414
|
-
return b;
|
|
415
|
-
}
|
|
416
|
-
}), n = (e) => {
|
|
417
|
-
o((r) => {
|
|
418
|
-
const l = x.getItem("removedTipsIds") || "", d = r.findIndex((h) => h.id === e);
|
|
419
|
-
return d === -1 ? [...r] : (x.setItem(
|
|
420
|
-
"removedTipsIds",
|
|
421
|
-
`${r[d].id.toString()}${l.length > 0 ? `,${l}` : ""}`
|
|
422
|
-
), r.splice(d, 1), [...r]);
|
|
423
|
-
});
|
|
424
|
-
}, a = s.slice(0).reverse();
|
|
425
|
-
return /* @__PURE__ */ i(
|
|
426
|
-
"div",
|
|
427
|
-
{
|
|
428
|
-
className: "hidden pb-4 pt-8 lg:grid",
|
|
429
|
-
style: {
|
|
430
|
-
gridTemplateColumns: "1fr"
|
|
431
|
-
},
|
|
432
|
-
children: s.map((e) => /* @__PURE__ */ i(
|
|
433
|
-
"div",
|
|
434
|
-
{
|
|
435
|
-
className: "relative",
|
|
436
|
-
style: {
|
|
437
|
-
gridRowStart: 1,
|
|
438
|
-
gridColumnStart: 1
|
|
439
|
-
},
|
|
440
|
-
children: /* @__PURE__ */ i(
|
|
441
|
-
"div",
|
|
442
|
-
{
|
|
443
|
-
className: "relative",
|
|
444
|
-
style: {
|
|
445
|
-
transform: `scale(${1 - a.indexOf(e) / 20})`,
|
|
446
|
-
top: -a.indexOf(e) * 10,
|
|
447
|
-
opacity: `${1 - a.indexOf(e) / 7}`
|
|
448
|
-
},
|
|
449
|
-
children: /* @__PURE__ */ i(
|
|
450
|
-
he,
|
|
451
|
-
{
|
|
452
|
-
variant: "SidebarCard",
|
|
453
|
-
thumbnailUrl: e.thumbnailUrl,
|
|
454
|
-
mediaLink: e.mediaLink,
|
|
455
|
-
title: e.title,
|
|
456
|
-
description: e.description,
|
|
457
|
-
learnMore: { href: e.href, text: t("learn_more") },
|
|
458
|
-
actionButton: { onClick: () => n(e.id), child: t("dismiss") }
|
|
459
|
-
}
|
|
460
|
-
)
|
|
461
|
-
}
|
|
462
|
-
)
|
|
463
|
-
},
|
|
464
|
-
e.id
|
|
465
|
-
))
|
|
466
|
-
}
|
|
467
|
-
);
|
|
468
|
-
}
|
|
469
|
-
const ve = M(pe);
|
|
470
|
-
function ke({
|
|
471
|
-
title: t,
|
|
472
|
-
description: s,
|
|
473
|
-
background: o,
|
|
474
|
-
features: n,
|
|
475
|
-
buttons: a,
|
|
476
|
-
isParentLoading: e,
|
|
477
|
-
children: r,
|
|
478
|
-
plan: l
|
|
479
|
-
}) {
|
|
480
|
-
const { resolvedTheme: d } = $(), { t: h } = w(), { isPending: m, hasTeamPlan: v } = V(), { data: k } = q.viewer.teams.getUpgradeable.useQuery(), y = `${o}${d === "dark" ? "-dark" : ""}.jpg`, C = !1, L = !!(k != null && k[0]);
|
|
481
|
-
return l === "team" && (v || L) ? /* @__PURE__ */ i(f, { children: r }) : l === "enterprise" && C ? /* @__PURE__ */ i(f, { children: r }) : m ? /* @__PURE__ */ i(f, { children: e }) : /* @__PURE__ */ c(f, { children: [
|
|
482
|
-
/* @__PURE__ */ c("div", { className: "relative flex min-h-[295px] w-full items-center justify-between overflow-hidden rounded-lg pb-10", children: [
|
|
483
|
-
/* @__PURE__ */ c("picture", { className: "absolute min-h-[295px] w-full rounded-lg object-cover", children: [
|
|
484
|
-
/* @__PURE__ */ i("source", { srcSet: y, media: "(prefers-color-scheme: dark)" }),
|
|
485
|
-
/* @__PURE__ */ i(
|
|
486
|
-
"img",
|
|
487
|
-
{
|
|
488
|
-
className: "absolute min-h-[295px] w-full select-none rounded-lg object-cover object-left md:object-center",
|
|
489
|
-
src: y,
|
|
490
|
-
loading: "lazy",
|
|
491
|
-
alt: t
|
|
492
|
-
}
|
|
493
|
-
)
|
|
494
|
-
] }),
|
|
495
|
-
/* @__PURE__ */ c("div", { className: "relative my-4 px-8 sm:px-14", children: [
|
|
496
|
-
/* @__PURE__ */ i("h1", { className: u("font-cal mt-4 text-3xl"), children: h(t) }),
|
|
497
|
-
/* @__PURE__ */ i("p", { className: u("mb-8 mt-4 max-w-sm"), children: h(s) }),
|
|
498
|
-
a
|
|
499
|
-
] })
|
|
500
|
-
] }),
|
|
501
|
-
/* @__PURE__ */ i("div", { className: "mt-4 grid-cols-3 md:grid md:gap-4", children: n.map((p) => /* @__PURE__ */ c("div", { className: "bg-muted mb-4 min-h-[180px] w-full rounded-md p-8 md:mb-0", children: [
|
|
502
|
-
p.icon,
|
|
503
|
-
/* @__PURE__ */ i("h2", { className: "font-cal text-emphasis mt-4 text-lg", children: p.title }),
|
|
504
|
-
/* @__PURE__ */ i("p", { className: "text-default", children: p.description })
|
|
505
|
-
] }, p.title)) })
|
|
506
|
-
] });
|
|
507
|
-
}
|
|
508
|
-
export {
|
|
509
|
-
ve as Tips,
|
|
510
|
-
ke as UpgradeTip
|
|
511
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Table } from "@tanstack/react-table";
|
|
2
|
-
type UsePersistentColumnResizingProps<TData> = {
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
table: Table<TData>;
|
|
5
|
-
tableContainerRef: React.RefObject<HTMLDivElement>;
|
|
6
|
-
};
|
|
7
|
-
export declare function usePersistentColumnResizing<TData>({ enabled, table, tableContainerRef, }: UsePersistentColumnResizingProps<TData>): void;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=resizing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resizing.d.ts","sourceRoot":"","sources":["../../../../../../../features/data-table/lib/resizing.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAU,KAAK,EAAqB,MAAM,uBAAuB,CAAC;AAO9E,KAAK,gCAAgC,CAAC,KAAK,IAAI;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CACpD,CAAC;AAsEF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,EACjD,OAAO,EACP,KAAK,EACL,iBAAiB,GAClB,EAAE,gCAAgC,CAAC,KAAK,CAAC,QA0FzC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { SortingState, VisibilityState, ColumnSizingState } from "@tanstack/react-table";
|
|
2
|
-
import { type ActiveFilters } from "./types";
|
|
3
|
-
type UseSegmentsProps = {
|
|
4
|
-
tableIdentifier: string;
|
|
5
|
-
activeFilters: ActiveFilters;
|
|
6
|
-
sorting: SortingState;
|
|
7
|
-
columnVisibility: VisibilityState;
|
|
8
|
-
columnSizing: ColumnSizingState;
|
|
9
|
-
pageSize: number;
|
|
10
|
-
defaultPageSize: number;
|
|
11
|
-
segmentId: number;
|
|
12
|
-
setSegmentId: (segmentId: number | null) => void;
|
|
13
|
-
setActiveFilters: (activeFilters: ActiveFilters) => void;
|
|
14
|
-
setSorting: (sorting: SortingState) => void;
|
|
15
|
-
setColumnVisibility: (columnVisibility: VisibilityState) => void;
|
|
16
|
-
setColumnSizing: (columnSizing: ColumnSizingState) => void;
|
|
17
|
-
setPageSize: (pageSize: number) => void;
|
|
18
|
-
setPageIndex: (pageIndex: number) => void;
|
|
19
|
-
};
|
|
20
|
-
export declare function useSegments({ tableIdentifier, activeFilters, sorting, columnVisibility, columnSizing, pageSize, defaultPageSize, segmentId, setSegmentId, setActiveFilters, setSorting, setColumnVisibility, setColumnSizing, setPageSize, setPageIndex, }: UseSegmentsProps): {
|
|
21
|
-
segments: import("./types").FilterSegmentOutput[];
|
|
22
|
-
selectedSegment: import("./types").FilterSegmentOutput | undefined;
|
|
23
|
-
canSaveSegment: boolean;
|
|
24
|
-
setSegmentIdAndSaveToLocalStorage: (segmentId: number | null) => void;
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=segments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"segments.d.ts","sourceRoot":"","sources":["../../../../../../../features/data-table/lib/segments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAO9F,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,SAAS,CAAC;AAE9D,KAAK,gBAAgB,GAAG;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,YAAY,CAAC;IACtB,gBAAgB,EAAE,eAAe,CAAC;IAClC,YAAY,EAAE,iBAAiB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,gBAAgB,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC;IACzD,UAAU,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,eAAe,KAAK,IAAI,CAAC;IACjE,eAAe,EAAE,CAAC,YAAY,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC3D,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,eAAe,EACf,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,eAAe,EACf,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,YAAY,GACb,EAAE,gBAAgB;;;;mDA2EH,MAAM,GAAG,IAAI;EAa5B"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useState as c } from "react";
|
|
2
|
-
import { t as o } from "./index-E1a1GKmY.js";
|
|
3
|
-
function f(e) {
|
|
4
|
-
const { getAppData: a, setAppData: i } = o(), [l, s] = c(() => {
|
|
5
|
-
const t = a("enabled");
|
|
6
|
-
if (!e.credentialOwner)
|
|
7
|
-
return t ?? !1;
|
|
8
|
-
const n = a("credentialId");
|
|
9
|
-
return (t && (e.userCredentialIds.some((d) => d === n) || e.credentialOwner.credentialId === n)) ?? !1;
|
|
10
|
-
});
|
|
11
|
-
return { enabled: l, updateEnabled: (t) => {
|
|
12
|
-
var n, r, d;
|
|
13
|
-
t || i("credentialId", void 0), t && ((n = e.userCredentialIds) != null && n.length || (r = e.credentialOwner) != null && r.credentialId) && i("credentialId", ((d = e.credentialOwner) == null ? void 0 : d.credentialId) || e.userCredentialIds[0]), s(t);
|
|
14
|
-
} };
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
f as u
|
|
18
|
-
};
|