@calcom/atoms 1.0.97-booker-2 → 1.0.98
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-W-XdY4qU.js → AddressInput-IC5bCyoy.js} +3 -3
- package/dist/{AlbyPriceComponent-nBe_4ylu.js → AlbyPriceComponent-RbsIVvlh.js} +19 -19
- package/dist/AppCard-FF41DY1a.js +162 -0
- package/dist/AppListCardPlatformWrapper-qAgUYfWp.js +9 -0
- package/dist/AppListCardWebWrapper-FacP6t6u.js +74 -0
- package/dist/AppSettingsInterface-5aVK9oxc.js +75 -0
- package/dist/AppSettingsInterface-X8HiYPXB.js +29 -0
- package/dist/AppSettingsInterface-cgBxDPwm.js +23 -0
- package/dist/DateRangePicker-tS970hSY.js +2401 -0
- package/dist/EventTypeAppCardInterface-13tt-HVm.js +24 -0
- package/dist/EventTypeAppCardInterface-1Rjwvfkf.js +24 -0
- package/dist/EventTypeAppCardInterface-3rUyu9zT.js +34 -0
- package/dist/EventTypeAppCardInterface-4uF6y_wC.js +49 -0
- package/dist/EventTypeAppCardInterface-BK11_uAd.js +34 -0
- package/dist/EventTypeAppCardInterface-DUuqWQYh.js +24 -0
- package/dist/EventTypeAppCardInterface-NE-0Qnr2.js +51 -0
- package/dist/EventTypeAppCardInterface-OxpGqa5x.js +453 -0
- package/dist/EventTypeAppCardInterface-PH8OfCXX.js +34 -0
- package/dist/EventTypeAppCardInterface-SCUf-dWb.js +32 -0
- package/dist/EventTypeAppCardInterface-WjzwonkP.js +31 -0
- package/dist/EventTypeAppCardInterface-XN7zHp-t.js +42 -0
- package/dist/EventTypeAppCardInterface-ZMkMx3UO.js +33 -0
- package/dist/EventTypeAppCardInterface-aZlmShf_.js +34 -0
- package/dist/EventTypeAppCardInterface-a_b-apjm.js +41 -0
- package/dist/EventTypeAppCardInterface-arvxbglS.js +32 -0
- package/dist/EventTypeAppCardInterface-dQDcGngh.js +39 -0
- package/dist/EventTypeAppCardInterface-iL6lzKeX.js +34 -0
- package/dist/EventTypeAppCardInterface-jbPxMcQe.js +42 -0
- package/dist/EventTypeAppCardInterface-lxH6VsWo.js +24 -0
- package/dist/EventTypeAppCardInterface-nh4Bw0XN.js +86 -0
- package/dist/EventTypeAppCardInterface-p9huPol5.js +24 -0
- package/dist/EventTypeAppCardInterface-pBJf4bSH.js +34 -0
- package/dist/EventTypeAppCardInterface-rnq5hibD.js +34 -0
- package/dist/EventTypeAppCardInterface-vk4Emhb7.js +51 -0
- package/dist/EventTypeAppCardInterface-vr_kZwo4.js +41 -0
- package/dist/EventTypeAppSettingsInterface-0IuJod38.js +25 -0
- package/dist/EventTypeAppSettingsInterface-29o016tq.js +120 -0
- package/dist/EventTypeAppSettingsInterface-X2-1vNz-.js +221 -0
- package/dist/EventTypeAppSettingsInterface-afqqqXjx.js +24 -0
- package/dist/EventTypeAppSettingsInterface-e4Md8clU.js +72 -0
- package/dist/EventTypeAppSettingsInterface-euX-AtKi.js +42 -0
- package/dist/EventTypeAppSettingsInterface-hxj3Cm8J.js +48 -0
- package/dist/EventTypeAppSettingsInterface-jwj_jmtd.js +78 -0
- package/dist/EventTypeAppSettingsInterface-m9wri89q.js +298 -0
- package/dist/EventTypeAppSettingsInterface-pGANbCQo.js +43 -0
- package/dist/EventTypeAppSettingsInterface-vpVd_4XZ.js +23 -0
- package/dist/EventTypeAppSettingsInterface-zDnztP59.js +23 -0
- package/dist/InstallAppButton-8Okj1YKt.js +14 -0
- package/dist/InstallAppButton-JXhBVaYJ.js +29 -0
- package/dist/InstallAppButton-dU9hGCdN.js +14 -0
- package/dist/InstallAppButton-dy7BXSFA.js +58 -0
- package/dist/{PhoneInput-iIT9lpZf.js → PhoneInput-nBgqJnp5.js} +2 -2
- package/dist/StripePaymentForm-DOZXe-LC.js +493 -0
- package/dist/cal-atoms.js +34 -3
- package/dist/currencyOptions-kannG2hu.js +61 -0
- package/dist/{framer-features-swH-ehNh.js → framer-features-WaArUztg.js} +63 -63
- package/dist/index-Q1IEXczf.js +28 -0
- package/dist/index-XX0jWi_4.js +154178 -0
- package/dist/index-f0-Ex6JM.js +511 -0
- package/dist/index-iCQToj2C.js +13 -0
- package/dist/{index-0motN_6U.js → index-nDUrmoDr.js} +1 -1
- package/dist/isSupportedCountry-aHJbkpx4.js +7 -0
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/BookEventForm/BookFormAsModal.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +4 -3
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.test.d.ts +2 -0
- package/dist/packages/features/bookings/Booker/components/DatePicker.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/Booker/components/OutOfOfficeInSlots.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarContinueModal.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarSettingsModal.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/RedirectToInstantMeetingModal.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts +2 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.d.ts +2 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/store.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +5 -0
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +219 -0
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleCancelBooking/types.d.ts +15 -0
- package/dist/packages/features/bookings/lib/handleCancelBooking/types.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts +1 -232
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +1 -1
- package/dist/packages/features/bookings/lib/handleInternalNote.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +3 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/cancel/cancelAttendeeSeat.d.ts +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/cancel/cancelAttendeeSeat.d.ts.map +1 -1
- package/dist/packages/features/bookings/types.d.ts +2 -0
- package/dist/packages/features/bookings/types.d.ts.map +1 -1
- package/dist/packages/features/components/controlled-dialog/index.d.ts +7 -0
- package/dist/packages/features/components/controlled-dialog/index.d.ts.map +1 -0
- package/dist/packages/features/data-table/{lib/context.d.ts → DataTableProvider.d.ts} +30 -28
- package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -0
- package/dist/packages/features/data-table/components/DataTableSelectionBar.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/ColumnVisibilityButton.d.ts +1 -1
- package/dist/packages/features/data-table/components/filters/ColumnVisibilityButton.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/TextFilterOptions.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/index.d.ts +1 -1
- package/dist/packages/features/data-table/components/filters/index.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/utils.d.ts +2 -1
- package/dist/packages/features/data-table/components/filters/utils.d.ts.map +1 -1
- package/dist/packages/features/data-table/hooks/useDataTable.d.ts +1 -1
- package/dist/packages/features/data-table/hooks/useDataTable.d.ts.map +1 -1
- 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/resizing.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/server.d.ts +2 -2
- package/dist/packages/features/data-table/lib/types.d.ts +12 -3
- package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/utils.d.ts +1 -0
- package/dist/packages/features/data-table/lib/utils.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/__handler.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.deleted.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/billing-service.d.ts +1 -0
- package/dist/packages/features/ee/billing/billing-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/stripe-billling-service.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts +6 -1
- package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts +2 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/AddActionDialog.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/DeleteDialog.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/WorkflowStepContainer.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/BulkEditDefaultForEventsModal.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/CreateEventTypeDialog.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/DuplicateDialog.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/HostEditDialogs.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/dialogs/AssignmentWarningDialog.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/dialogs/DeleteDialog.d.ts +2 -2
- package/dist/packages/features/eventtypes/components/dialogs/DeleteDialog.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/instant/InstantEventController.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/webhooks/EventWebhooksTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +5 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/form-builder/FormBuilder.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/NewScheduleButton.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/date-override-list.test.d.ts +2 -0
- package/dist/packages/features/schedules/components/date-override-list.test.d.ts.map +1 -0
- package/dist/packages/features/schedules/index.d.ts +1 -1
- package/dist/packages/features/schedules/index.d.ts.map +1 -1
- package/dist/packages/features/schedules/lib/use-schedule/useNonEmptyScheduleDays.d.ts +1 -1
- package/dist/packages/features/schedules/lib/use-schedule/useNonEmptyScheduleDays.d.ts.map +1 -1
- package/dist/packages/features/shell/useBottomNavItems.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +5 -0
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +32 -0
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/atoms/src/components/ui/button.d.ts +9 -7
- package/dist/packages/platform/atoms/src/components/ui/button.d.ts.map +1 -1
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts +22 -10
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/packages/platform/atoms/src/components/ui/toast.d.ts +10 -13
- package/dist/packages/platform/atoms/src/components/ui/toast.d.ts.map +1 -1
- package/dist/packages/platform/atoms/vite.config.d.ts.map +1 -1
- package/dist/packages/prisma/zod/assignmentreason.d.ts +3 -2
- package/dist/packages/prisma/zod/assignmentreason.d.ts.map +1 -1
- package/dist/packages/prisma/zod/team.d.ts +3 -0
- package/dist/packages/prisma/zod/team.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +153 -0
- package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +1 -0
- package/dist/packages/trpc/react/hooks/useMeQuery.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +1 -0
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/useIsAppEnabled-QIw4ydUi.js +18 -0
- package/globals.min.css +22 -2
- package/package.json +3 -2
- package/dist/index-aZS0_Iu8.js +0 -1957
- package/dist/index-iVm4HGuW.js +0 -79423
- package/dist/index-mBOxto7x.js +0 -1258
- package/dist/isSupportedCountry-xN7Xshgi.js +0 -487
- package/dist/packages/features/data-table/lib/context.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a4 as n, j as o, Z as c } from "./index-XX0jWi_4.js";
|
|
3
3
|
function r({ value: s, onChange: t, ...a }) {
|
|
4
4
|
return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
|
|
5
5
|
/* @__PURE__ */ e(
|
|
@@ -11,14 +11,14 @@ function r({ value: s, onChange: t, ...a }) {
|
|
|
11
11
|
}
|
|
12
12
|
),
|
|
13
13
|
/* @__PURE__ */ e(
|
|
14
|
-
|
|
14
|
+
o,
|
|
15
15
|
{
|
|
16
16
|
...a,
|
|
17
17
|
value: s,
|
|
18
18
|
onChange: (l) => {
|
|
19
19
|
t(l.target.value);
|
|
20
20
|
},
|
|
21
|
-
className:
|
|
21
|
+
className: c("pl-10", a == null ? void 0 : a.className)
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
24
|
] });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as z, jsxs as er } from "react/jsx-runtime";
|
|
2
2
|
import J from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Y as tr, a5 as nr } from "./index-XX0jWi_4.js";
|
|
4
4
|
const K = function(s, r = !0) {
|
|
5
5
|
if (s.destroyed)
|
|
6
6
|
throw new Error("Hash instance has been destroyed");
|
|
@@ -67,8 +67,8 @@ class ir extends sr {
|
|
|
67
67
|
(function(b, y, E, x) {
|
|
68
68
|
if (typeof b.setBigUint64 == "function")
|
|
69
69
|
return b.setBigUint64(y, E, x);
|
|
70
|
-
const B = BigInt(32), k = BigInt(4294967295), _ = Number(E >> B & k),
|
|
71
|
-
b.setUint32(y + (x ? 4 : 0), _, x), b.setUint32(y + j,
|
|
70
|
+
const B = BigInt(32), k = BigInt(4294967295), _ = Number(E >> B & k), C = Number(E & k), j = x ? 0 : 4;
|
|
71
|
+
b.setUint32(y + (x ? 4 : 0), _, x), b.setUint32(y + j, C, x);
|
|
72
72
|
})(c, f - 8, BigInt(8 * this.length), u), this.process(c, 0);
|
|
73
73
|
const g = N(r), m = this.outputLen;
|
|
74
74
|
if (m % 4)
|
|
@@ -347,8 +347,8 @@ Q = function(s, r) {
|
|
|
347
347
|
}
|
|
348
348
|
return Uint8Array.from(t);
|
|
349
349
|
} }, r.base58check = (e) => c(B(4, (t) => e(e(t))), r.base58);
|
|
350
|
-
const
|
|
351
|
-
function
|
|
350
|
+
const C = c(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), u("")), j = [996825010, 642813549, 513874426, 1027748829, 705979059];
|
|
351
|
+
function S(e) {
|
|
352
352
|
const t = e >> 25;
|
|
353
353
|
let n = (33554431 & e) << 5;
|
|
354
354
|
for (let o = 0; o < j.length; o++)
|
|
@@ -362,16 +362,16 @@ Q = function(s, r) {
|
|
|
362
362
|
const d = e.charCodeAt(h);
|
|
363
363
|
if (d < 33 || d > 126)
|
|
364
364
|
throw new Error(`Invalid prefix (${e})`);
|
|
365
|
-
a =
|
|
365
|
+
a = S(a) ^ d >> 5;
|
|
366
366
|
}
|
|
367
|
-
a =
|
|
367
|
+
a = S(a);
|
|
368
368
|
for (let h = 0; h < o; h++)
|
|
369
|
-
a =
|
|
369
|
+
a = S(a) ^ 31 & e.charCodeAt(h);
|
|
370
370
|
for (let h of t)
|
|
371
|
-
a =
|
|
371
|
+
a = S(a) ^ h;
|
|
372
372
|
for (let h = 0; h < 6; h++)
|
|
373
|
-
a =
|
|
374
|
-
return a ^= n,
|
|
373
|
+
a = S(a);
|
|
374
|
+
return a ^= n, C.encode(b([a % 2 ** 30], 30, 5, !1));
|
|
375
375
|
}
|
|
376
376
|
function O(e) {
|
|
377
377
|
const t = e === "bech32" ? 1 : 734539939, n = E(5), o = n.decode, a = n.encode, h = x(o);
|
|
@@ -389,7 +389,7 @@ Q = function(s, r) {
|
|
|
389
389
|
const G = w.slice(0, v), D = w.slice(v + 1);
|
|
390
390
|
if (D.length < 6)
|
|
391
391
|
throw new Error("Data must be at least 6 characters long");
|
|
392
|
-
const M =
|
|
392
|
+
const M = C.decode(D).slice(0, -6), P = H(G, M, t);
|
|
393
393
|
if (!D.endsWith(P))
|
|
394
394
|
throw new Error(`Invalid checksum in ${w}: expected "${P}"`);
|
|
395
395
|
return { prefix: G, words: M };
|
|
@@ -402,7 +402,7 @@ Q = function(s, r) {
|
|
|
402
402
|
const v = w.length + 7 + p.length;
|
|
403
403
|
if ($ !== !1 && v > $)
|
|
404
404
|
throw new TypeError(`Length ${v} exceeds limit ${$}`);
|
|
405
|
-
return `${w = w.toLowerCase()}1${
|
|
405
|
+
return `${w = w.toLowerCase()}1${C.encode(p)}${H(w, p, t)}`;
|
|
406
406
|
}, decode: d, decodeToBytes: function(w) {
|
|
407
407
|
const { prefix: p, words: $ } = d(w, !1);
|
|
408
408
|
return { prefix: p, words: $, bytes: o($) };
|
|
@@ -431,20 +431,20 @@ Q = function(s, r) {
|
|
|
431
431
|
BigInt(1e3), BigInt(1e6), BigInt(1e9), BigInt(1e12);
|
|
432
432
|
BigInt("2100000000000000000");
|
|
433
433
|
BigInt(1e11);
|
|
434
|
-
const
|
|
435
|
-
for (let s = 0, r = Object.keys(
|
|
436
|
-
r[s],
|
|
434
|
+
const Y = { payment_hash: 1, payment_secret: 16, description: 13, payee: 19, description_hash: 23, expiry: 6, min_final_cltv_expiry: 24, fallback_address: 9, route_hint: 3, feature_bits: 5, metadata: 27 };
|
|
435
|
+
for (let s = 0, r = Object.keys(Y); s < r.length; s++)
|
|
436
|
+
r[s], Y[r[s]].toString();
|
|
437
437
|
const V = async (s) => {
|
|
438
438
|
const r = "https://getalby.com/api/rates/" + s.toLowerCase() + ".json";
|
|
439
439
|
return (await (await fetch(r)).json()).rate_float / 1e8;
|
|
440
|
-
},
|
|
440
|
+
}, X = async ({ satoshi: s, currency: r }) => {
|
|
441
441
|
const i = await V(r);
|
|
442
442
|
return Number(s) * i;
|
|
443
443
|
};
|
|
444
|
-
var fr = { __proto__: null, getFiatBtcRate: V, getFiatValue:
|
|
444
|
+
var fr = { __proto__: null, getFiatBtcRate: V, getFiatValue: X, getSatoshiValue: async ({ amount: s, currency: r }) => {
|
|
445
445
|
const i = await V(r);
|
|
446
446
|
return Math.floor(Number(s) / i);
|
|
447
|
-
}, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await
|
|
447
|
+
}, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await X({ satoshi: s, currency: r })).toLocaleString(i, { style: "currency", currency: r })) };
|
|
448
448
|
function wr({ displaySymbol: s, price: r, formattedPrice: i }) {
|
|
449
449
|
const [c, f] = J.useState("loading...");
|
|
450
450
|
return J.useEffect(() => {
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { jsx as s, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { ag as S, R as N, y as k, x as B, ah as O, Z as r, z as w, a2 as v, ai as P, aj as j, J as C, ak as R, al as f, am as $, an as E, w as L, a4 as T } from "./index-XX0jWi_4.js";
|
|
3
|
+
function q(e) {
|
|
4
|
+
const { status: a } = S.useSession();
|
|
5
|
+
return N.viewer.apps.appById.useQuery(
|
|
6
|
+
{ appId: e },
|
|
7
|
+
{
|
|
8
|
+
enabled: a === "authenticated"
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function z({
|
|
13
|
+
appId: e,
|
|
14
|
+
className: a,
|
|
15
|
+
returnTo: m,
|
|
16
|
+
teamId: n
|
|
17
|
+
}) {
|
|
18
|
+
const { t: d } = k(), { data: i } = q(e), o = N.useUtils(), u = B(null, {
|
|
19
|
+
returnTo: m,
|
|
20
|
+
onSuccess: (t) => {
|
|
21
|
+
o.viewer.apps.appById.invalidate({ appId: e }), o.viewer.apps.integrations.invalidate({
|
|
22
|
+
extendsFeature: "EventType",
|
|
23
|
+
...n && { teamId: n }
|
|
24
|
+
}), !(t != null && t.setupPending) && v(d("app_successfully_installed"), "success");
|
|
25
|
+
},
|
|
26
|
+
onError: (t) => {
|
|
27
|
+
t instanceof Error && v(t.message || d("app_could_not_be_installed"), "error");
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
return i ? /* @__PURE__ */ s(
|
|
31
|
+
O,
|
|
32
|
+
{
|
|
33
|
+
type: i.type,
|
|
34
|
+
teamsPlanRequired: i.teamsPlanRequired,
|
|
35
|
+
wrapperClassName: r("[@media(max-width:260px)]:w-full", a),
|
|
36
|
+
render: ({ useDefaultComponent: t, ...c }) => (t && (c = {
|
|
37
|
+
...c,
|
|
38
|
+
onClick: () => {
|
|
39
|
+
u.mutate({
|
|
40
|
+
type: i.type,
|
|
41
|
+
variant: i.variant,
|
|
42
|
+
slug: i.slug,
|
|
43
|
+
...n && { teamId: n }
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}), /* @__PURE__ */ s(
|
|
47
|
+
w,
|
|
48
|
+
{
|
|
49
|
+
loading: u.isPending,
|
|
50
|
+
color: "secondary",
|
|
51
|
+
className: "[@media(max-width:260px)]:w-full [@media(max-width:260px)]:justify-center",
|
|
52
|
+
StartIcon: "plus",
|
|
53
|
+
...c,
|
|
54
|
+
children: d("add")
|
|
55
|
+
}
|
|
56
|
+
))
|
|
57
|
+
}
|
|
58
|
+
) : null;
|
|
59
|
+
}
|
|
60
|
+
function F({
|
|
61
|
+
app: e,
|
|
62
|
+
description: a,
|
|
63
|
+
switchOnClick: m,
|
|
64
|
+
switchChecked: n,
|
|
65
|
+
children: d,
|
|
66
|
+
returnTo: i,
|
|
67
|
+
teamId: o,
|
|
68
|
+
disableSwitch: u,
|
|
69
|
+
switchTooltip: t,
|
|
70
|
+
hideSettingsIcon: c = !1,
|
|
71
|
+
hideAppCardOptions: y = !1
|
|
72
|
+
}) {
|
|
73
|
+
const { t: h } = P(), [b] = j(), { setAppData: A, LockedIcon: I, disabled: _ } = C(), x = R();
|
|
74
|
+
return /* @__PURE__ */ l(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
className: r(
|
|
78
|
+
"border-subtle",
|
|
79
|
+
(e == null ? void 0 : e.isInstalled) && "mb-4 rounded-md border",
|
|
80
|
+
!e.enabled && "grayscale"
|
|
81
|
+
),
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ s("div", { className: r(e.isInstalled ? "p-4 text-sm sm:p-4" : "px-5 py-4 text-sm sm:px-5"), children: /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-2 sm:flex-row sm:gap-0", children: [
|
|
84
|
+
/* @__PURE__ */ s(
|
|
85
|
+
f,
|
|
86
|
+
{
|
|
87
|
+
href: `/apps/${e.slug}`,
|
|
88
|
+
className: r(e != null && e.isInstalled ? "mr-[11px]" : "mr-3", "h-auto w-10 rounded-sm"),
|
|
89
|
+
children: /* @__PURE__ */ s(
|
|
90
|
+
"img",
|
|
91
|
+
{
|
|
92
|
+
className: r(
|
|
93
|
+
(e == null ? void 0 : e.logo.includes("-dark")) && "dark:invert",
|
|
94
|
+
e != null && e.isInstalled ? "min-w-[42px]" : "min-w-[40px]",
|
|
95
|
+
"w-full"
|
|
96
|
+
),
|
|
97
|
+
src: e == null ? void 0 : e.logo,
|
|
98
|
+
alt: e == null ? void 0 : e.name
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col pe-3", children: [
|
|
104
|
+
/* @__PURE__ */ l("div", { className: "text-emphasis", children: [
|
|
105
|
+
/* @__PURE__ */ s("span", { className: r((e == null ? void 0 : e.isInstalled) && "text-base", "font-semibold leading-4"), children: e == null ? void 0 : e.name }),
|
|
106
|
+
!(e != null && e.isInstalled) && /* @__PURE__ */ s("span", { className: "bg-emphasis ml-1 rounded px-1 py-0.5 text-xs font-medium leading-3 tracking-[0.01em]", children: (e == null ? void 0 : e.categories[0].charAt(0).toUpperCase()) + (e == null ? void 0 : e.categories[0].slice(1)) })
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ s("p", { title: e == null ? void 0 : e.description, className: "text-default line-clamp-1 pt-1 text-sm font-normal", children: a || (e == null ? void 0 : e.description) })
|
|
109
|
+
] }),
|
|
110
|
+
/* @__PURE__ */ l("div", { className: "ml-auto flex items-center space-x-2", children: [
|
|
111
|
+
e.credentialOwner && !x && /* @__PURE__ */ s("div", { className: "ml-auto", children: /* @__PURE__ */ s($, { variant: "gray", children: /* @__PURE__ */ l("div", { className: "flex items-center", children: [
|
|
112
|
+
/* @__PURE__ */ s(
|
|
113
|
+
E,
|
|
114
|
+
{
|
|
115
|
+
className: "mr-2",
|
|
116
|
+
alt: e.credentialOwner.name || "Credential Owner Name",
|
|
117
|
+
size: "sm",
|
|
118
|
+
imageSrc: e.credentialOwner.avatar
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
e.credentialOwner.name
|
|
122
|
+
] }) }) }),
|
|
123
|
+
e != null && e.isInstalled || e.credentialOwner ? /* @__PURE__ */ s("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ s(
|
|
124
|
+
L,
|
|
125
|
+
{
|
|
126
|
+
disabled: !e.enabled || _ || u,
|
|
127
|
+
onCheckedChange: (g) => {
|
|
128
|
+
m && m(g), A("enabled", g);
|
|
129
|
+
},
|
|
130
|
+
checked: n,
|
|
131
|
+
LockedIcon: I,
|
|
132
|
+
"data-testid": `${e.slug}-app-switch`,
|
|
133
|
+
tooltip: t
|
|
134
|
+
}
|
|
135
|
+
) }) : /* @__PURE__ */ s(
|
|
136
|
+
z,
|
|
137
|
+
{
|
|
138
|
+
className: "ml-auto flex items-center",
|
|
139
|
+
appId: e.slug,
|
|
140
|
+
returnTo: i,
|
|
141
|
+
teamId: o
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] })
|
|
145
|
+
] }) }),
|
|
146
|
+
y ? null : /* @__PURE__ */ l("div", { ref: b, children: [
|
|
147
|
+
(e == null ? void 0 : e.isInstalled) && n && /* @__PURE__ */ s("hr", { className: "border-subtle" }),
|
|
148
|
+
e != null && e.isInstalled && n ? e.isSetupAlready === void 0 || e.isSetupAlready ? /* @__PURE__ */ l("div", { className: "relative p-4 pt-5 text-sm [&_input]:mb-0 [&_input]:leading-4", children: [
|
|
149
|
+
!c && !x && /* @__PURE__ */ s(f, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ s(T, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
|
|
150
|
+
d
|
|
151
|
+
] }) : /* @__PURE__ */ l("div", { className: "flex h-64 w-full flex-col items-center justify-center gap-4 ", children: [
|
|
152
|
+
/* @__PURE__ */ s("p", { children: h("this_app_is_not_setup_already") }),
|
|
153
|
+
/* @__PURE__ */ s(f, { href: `/apps/${e.slug}/setup`, children: /* @__PURE__ */ s(w, { StartIcon: "settings", children: h("setup") }) })
|
|
154
|
+
] }) : null
|
|
155
|
+
] })
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
export {
|
|
161
|
+
F as A
|
|
162
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx as P } from "react/jsx-runtime";
|
|
2
|
+
import { a6 as i, G as y, a7 as A, a8 as R, A as $ } from "./index-XX0jWi_4.js";
|
|
3
|
+
import { useMemo as Q, useEffect as d, useCallback as b, useState as L, useRef as w } from "react";
|
|
4
|
+
i.string().or(i.number()).or(i.array(i.number())).transform((r) => typeof r == "string" ? r.split(",").map((o) => Number(o)) : Array.isArray(r) ? r : [r]);
|
|
5
|
+
i.preprocess((r) => i.string().parse(r).split(","), i.string().array()).or(i.string().array());
|
|
6
|
+
function x(r) {
|
|
7
|
+
const o = y.useRouter(), c = A(), u = y.usePathname(), n = r.safeParse(c);
|
|
8
|
+
let s = Q(() => ({}), []);
|
|
9
|
+
d(() => {
|
|
10
|
+
n.success && n.data && Object.entries(n.data).forEach(([e, t]) => {
|
|
11
|
+
if (e in c || !t)
|
|
12
|
+
return;
|
|
13
|
+
const a = new URLSearchParams(s);
|
|
14
|
+
a.set(String(e), String(t)), o.replace(`${u}?${a.toString()}`);
|
|
15
|
+
});
|
|
16
|
+
}, [n, r, o, u, c, s]), n.success ? s = n.data : n.success || console.error(n.error);
|
|
17
|
+
const m = b(
|
|
18
|
+
function(t, a) {
|
|
19
|
+
const p = new URLSearchParams(s);
|
|
20
|
+
p.set(String(t), String(a)), o.replace(`${u}?${p.toString()}`);
|
|
21
|
+
},
|
|
22
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23
|
+
[s, o]
|
|
24
|
+
);
|
|
25
|
+
function l(e) {
|
|
26
|
+
const t = new URLSearchParams(s);
|
|
27
|
+
t.delete(String(e)), o.replace(`${u}?${t.toString()}`);
|
|
28
|
+
}
|
|
29
|
+
function f(e, t) {
|
|
30
|
+
const a = s[e];
|
|
31
|
+
if (Array.isArray(a)) {
|
|
32
|
+
if (a.includes(t))
|
|
33
|
+
return;
|
|
34
|
+
m(e, [...a, t]);
|
|
35
|
+
} else
|
|
36
|
+
m(e, [t]);
|
|
37
|
+
}
|
|
38
|
+
function h(e, t) {
|
|
39
|
+
const a = s[e];
|
|
40
|
+
if (Array.isArray(a) && a.length > 1) {
|
|
41
|
+
const p = a.filter((S) => S !== t);
|
|
42
|
+
m(e, p);
|
|
43
|
+
} else
|
|
44
|
+
l(e);
|
|
45
|
+
}
|
|
46
|
+
function g() {
|
|
47
|
+
u !== null && o.replace(u);
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
data: s,
|
|
51
|
+
setQuery: m,
|
|
52
|
+
removeByKey: l,
|
|
53
|
+
pushItemToKey: f,
|
|
54
|
+
removeItemByKeyAndValue: h,
|
|
55
|
+
removeAllQueryParams: g
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const C = i.object({ hl: i.string().optional() });
|
|
59
|
+
function j(r) {
|
|
60
|
+
const { slug: o, shouldHighlight: c } = r, {
|
|
61
|
+
data: { hl: u }
|
|
62
|
+
} = x(C), n = y.useRouter(), [s, m] = L(c && u === o), l = w(null), f = R(), h = y.usePathname();
|
|
63
|
+
return d(() => (c && s && f !== null && h !== null && (l.current = setTimeout(() => {
|
|
64
|
+
const g = new URLSearchParams(f.toString());
|
|
65
|
+
g.delete("hl"), g.delete("category"), m(!1);
|
|
66
|
+
const e = g.toString();
|
|
67
|
+
n.replace(`${h}${e !== "" ? `?${e}` : ""}`);
|
|
68
|
+
}, 3e3)), () => {
|
|
69
|
+
l.current && (clearTimeout(l.current), l.current = null);
|
|
70
|
+
}), [s, h, n, f, c]), /* @__PURE__ */ P($, { ...r });
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
j as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as r } from "react/jsx-runtime";
|
|
2
|
+
import { z as i, y as o } from "./index-XX0jWi_4.js";
|
|
3
|
+
function d({ template: t }) {
|
|
4
|
+
return /* @__PURE__ */ a("div", { className: "min-h-16 bg-default border-subtle sticky flex flex-col justify-between gap-4 rounded-md border p-5", children: [
|
|
5
|
+
/* @__PURE__ */ a("div", { className: "flex items-start justify-start", children: [
|
|
6
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "mr-4 flex h-12 w-12 items-center justify-center rounded-md p-1", children: /* @__PURE__ */ e("img", { className: "h-8", alt: t.app, src: `/api/app-store/zapier/${t.icon}` }) }) }),
|
|
7
|
+
/* @__PURE__ */ e("div", { className: "mr-4", children: /* @__PURE__ */ a("div", { children: [
|
|
8
|
+
/* @__PURE__ */ e("p", { className: "text-emphasis truncate text-sm font-medium leading-4", children: t.app }),
|
|
9
|
+
/* @__PURE__ */ e("p", { className: "text-subtle mt-[2px] text-sm", children: t.text })
|
|
10
|
+
] }) })
|
|
11
|
+
] }),
|
|
12
|
+
/* @__PURE__ */ e("div", { className: "hidden w-full sm:block", children: /* @__PURE__ */ e("div", { className: "float-right", children: /* @__PURE__ */ e(i, { color: "secondary", className: " w-[90px]", target: "_blank", href: t.link, children: "Use Zap" }) }) }),
|
|
13
|
+
/* @__PURE__ */ e("div", { className: "mt-2 block w-full sm:hidden", children: /* @__PURE__ */ e("div", { className: "float-right", children: /* @__PURE__ */ e(i, { color: "secondary", className: "w-[90px]", target: "_blank", href: t.link, children: "Use Zap" }) }) })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
const n = [
|
|
17
|
+
{
|
|
18
|
+
icon: "gmail.svg",
|
|
19
|
+
app: "Gmail",
|
|
20
|
+
text: "Send emails via Gmail for scheduled events",
|
|
21
|
+
link: "https://zapier.com/app/editor/template/1071345"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
icon: "googleSheets.svg",
|
|
25
|
+
app: "Google Sheets",
|
|
26
|
+
text: "Create Google Sheets rows for scheduled events",
|
|
27
|
+
link: "https://zapier.com/app/editor/template/1082047"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
icon: "salesforce.svg",
|
|
31
|
+
app: "Salesforce",
|
|
32
|
+
text: "Create Salesforce leads from new bookings",
|
|
33
|
+
link: "https://zapier.com/app/editor/template/1082050"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
icon: "todoist.svg",
|
|
37
|
+
app: "Todoist",
|
|
38
|
+
text: "Create Todoist tasks for scheduled events",
|
|
39
|
+
link: "https://zapier.com/app/editor/template/1082073"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
icon: "gmail.svg",
|
|
43
|
+
app: "Gmail",
|
|
44
|
+
text: "Send emails via Gmail for rescheduled events",
|
|
45
|
+
link: "https://zapier.com/app/editor/template/1083605"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
icon: "gmail.svg",
|
|
49
|
+
app: "Gmail",
|
|
50
|
+
text: "Send emails via Gmail for cancelled events",
|
|
51
|
+
link: "https://zapier.com/app/editor/template/1083609"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
icon: "gmail.svg",
|
|
55
|
+
app: "Gmail",
|
|
56
|
+
text: "Send emails via Gmail after scheduled meetings end",
|
|
57
|
+
link: "https://zapier.com/app/editor/template/1083613"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
icon: "googleCalendar.svg",
|
|
61
|
+
app: "Google Calendar",
|
|
62
|
+
text: "Add new bookings to Google Calendar",
|
|
63
|
+
link: "https://zapier.com/app/editor/template/1083651"
|
|
64
|
+
}
|
|
65
|
+
];
|
|
66
|
+
function m() {
|
|
67
|
+
const { t } = o();
|
|
68
|
+
return /* @__PURE__ */ a(r, { children: [
|
|
69
|
+
/* @__PURE__ */ e("div", { className: "text-sm font-semibold leading-4 ", children: t("get_started_zapier_templates") }),
|
|
70
|
+
/* @__PURE__ */ e("div", { className: "mt-4 grid gap-4 md:grid-cols-2", children: n.map((s, l) => /* @__PURE__ */ e(d, { template: s }, l)) })
|
|
71
|
+
] });
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
m as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s } from "react";
|
|
3
|
+
import { y as i, k as l, z as m } from "./index-XX0jWi_4.js";
|
|
4
|
+
function h() {
|
|
5
|
+
const { t: a } = i(), n = "metric", [e, c] = s("");
|
|
6
|
+
return /* @__PURE__ */ o("div", { className: "space-y-4 text-sm", children: [
|
|
7
|
+
/* @__PURE__ */ t(
|
|
8
|
+
l,
|
|
9
|
+
{
|
|
10
|
+
placeholder: "San Francisco",
|
|
11
|
+
value: e,
|
|
12
|
+
name: "Enter City",
|
|
13
|
+
onChange: async (r) => {
|
|
14
|
+
c(r.target.value);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
/* @__PURE__ */ t(
|
|
19
|
+
m,
|
|
20
|
+
{
|
|
21
|
+
href: `webcal://weather-in-calendar.com/cal/weather-cal.php?city=${e}&units=${n}&temperature=day`,
|
|
22
|
+
children: a("add_to_calendar")
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
h as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
3
|
+
import { y as r, k as u, z as i } from "./index-XX0jWi_4.js";
|
|
4
|
+
function d() {
|
|
5
|
+
const { t: e } = r(), [s, n] = p("");
|
|
6
|
+
return /* @__PURE__ */ o("div", { className: "space-y-4 px-4 pb-4 pt-4 text-sm", children: [
|
|
7
|
+
/* @__PURE__ */ t(
|
|
8
|
+
u,
|
|
9
|
+
{
|
|
10
|
+
placeholder: "Some Input",
|
|
11
|
+
value: s,
|
|
12
|
+
name: "Enter Input",
|
|
13
|
+
onChange: async (a) => {
|
|
14
|
+
n(a.target.value);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
/* @__PURE__ */ t(i, { children: e("submit") })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
d as default
|
|
23
|
+
};
|