@calcom/atoms 1.0.95 → 1.0.96-beta-2
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-jf7dQUjM.js → AddressInput-BwaFtJdW.js} +9 -8
- package/dist/{AlbyPriceComponent-xvHTaJkB.js → AlbyPriceComponent-5_IY8XI4.js} +53 -52
- package/dist/AppCard-vvom7JzI.js +162 -0
- package/dist/AppListCardPlatformWrapper-BMbohX9G.js +9 -0
- package/dist/{AppListCardWebWrapper-mvJDHeHP.js → AppListCardWebWrapper-jgSaE2tc.js} +10 -9
- package/dist/AppSettingsInterface-GvEAHqgC.js +23 -0
- package/dist/AppSettingsInterface-hahnFvsF.js +29 -0
- package/dist/AppSettingsInterface-rwvU2JZ1.js +75 -0
- package/dist/{DateRangePicker-sOCh5jbf.js → DateRangePicker-H2MDflCi.js} +784 -783
- package/dist/EventTypeAppCardInterface-12lncOdf.js +34 -0
- package/dist/EventTypeAppCardInterface-27TiN1LB.js +34 -0
- package/dist/EventTypeAppCardInterface-4REsm-ax.js +24 -0
- package/dist/EventTypeAppCardInterface-BIBLDaQW.js +41 -0
- package/dist/EventTypeAppCardInterface-Bxn2VRDe.js +42 -0
- package/dist/EventTypeAppCardInterface-Ia4uQvA6.js +24 -0
- package/dist/EventTypeAppCardInterface-IsxbWtC-.js +86 -0
- package/dist/EventTypeAppCardInterface-MYYfLsWy.js +31 -0
- package/dist/EventTypeAppCardInterface-TvEkNxDI.js +34 -0
- package/dist/EventTypeAppCardInterface-W-C-Vuq4.js +32 -0
- package/dist/EventTypeAppCardInterface-YC7gXugR.js +41 -0
- package/dist/EventTypeAppCardInterface-ZN2mBt9v.js +34 -0
- package/dist/EventTypeAppCardInterface-Ze5KpMAZ.js +24 -0
- package/dist/EventTypeAppCardInterface-ZshqKbPT.js +34 -0
- package/dist/{EventTypeAppCardInterface-fTBMlXsW.js → EventTypeAppCardInterface-_8D8Qs9P.js} +17 -16
- package/dist/EventTypeAppCardInterface-cXUeW2Wg.js +24 -0
- package/dist/EventTypeAppCardInterface-f4ubwOzR.js +42 -0
- package/dist/EventTypeAppCardInterface-g5WwbLf6.js +39 -0
- package/dist/EventTypeAppCardInterface-iMFMTR_Q.js +24 -0
- package/dist/EventTypeAppCardInterface-kh27UiaS.js +34 -0
- package/dist/EventTypeAppCardInterface-loGF0ZWc.js +452 -0
- package/dist/EventTypeAppCardInterface-mpaqmq1C.js +32 -0
- package/dist/EventTypeAppCardInterface-n2hGNKAo.js +34 -0
- package/dist/EventTypeAppCardInterface-nYtaHSPH.js +49 -0
- package/dist/EventTypeAppCardInterface-qIAbqcW-.js +51 -0
- package/dist/EventTypeAppCardInterface-zTg1f5hR.js +33 -0
- package/dist/{EventTypeAppSettingsInterface-uy_EiYRt.js → EventTypeAppSettingsInterface-2iQLRc2L.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-PqMppH4B.js → EventTypeAppSettingsInterface-4j95fNdX.js} +72 -71
- package/dist/EventTypeAppSettingsInterface-7r6Eayog.js +221 -0
- package/dist/{EventTypeAppSettingsInterface-WFmNo91Z.js → EventTypeAppSettingsInterface-8XJ_he7F.js} +7 -6
- package/dist/EventTypeAppSettingsInterface-PHF7Vsmi.js +43 -0
- package/dist/EventTypeAppSettingsInterface-ThYijWt9.js +42 -0
- package/dist/EventTypeAppSettingsInterface-WrZ3-X7V.js +48 -0
- package/dist/{EventTypeAppSettingsInterface-CJVHdj5Z.js → EventTypeAppSettingsInterface-eJdqCSck.js} +39 -38
- package/dist/{EventTypeAppSettingsInterface-W6KdgBF4.js → EventTypeAppSettingsInterface-hI24Lgxv.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-5MFFd8K-.js → EventTypeAppSettingsInterface-rDoWsnFN.js} +6 -5
- package/dist/EventTypeAppSettingsInterface-vOTw0emu.js +72 -0
- package/dist/EventTypeAppSettingsInterface-wRHYYE7a.js +78 -0
- package/dist/InstallAppButton-9T0Dl0KY.js +14 -0
- package/dist/InstallAppButton-J-143AmA.js +14 -0
- package/dist/{InstallAppButton-l1JAKXJ2.js → InstallAppButton-JXhBVaYJ.js} +8 -8
- package/dist/InstallAppButton-qpMMTpVW.js +58 -0
- package/dist/{PhoneInput-ZSx8kdAN.js → PhoneInput-EZYUI6dU.js} +97 -96
- package/dist/StripePaymentForm-N2YTyBqm.js +1157 -0
- package/dist/cal-atoms.js +6 -6
- package/dist/cal-atoms.umd.cjs +372 -436
- package/dist/{framer-features-12oM4SHg.js → framer-features-pqh7SjMd.js} +65 -65
- package/dist/{index-3tVCLfaZ.js → index-D4njVTQA.js} +2 -2
- package/dist/{index-LgmOiR20.js → index-KPOdbfnz.js} +1 -1
- package/dist/{index-xyF3DZet.js → index-_1f6rhg6.js} +72418 -98083
- package/dist/{index-sMgQwFEx.js → index-_1xRkNP6.js} +1 -1
- package/dist/index-v9tzGygd.js +626 -0
- package/dist/{isSupportedCountry-DPaP_R-3.js → isSupportedCountry--S1ZKbg0.js} +1 -1
- package/dist/packages/app-store/hitpay/pages/setup/index.d.ts.map +1 -1
- package/dist/packages/app-store/salesforce/lib/CrmService.d.ts.map +1 -1
- package/dist/packages/app-store/salesforce/lib/__tests__/salesforceMock.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/DateOverrideList.d.ts +1 -1
- package/dist/packages/features/schedules/components/DateOverrideList.d.ts.map +1 -1
- package/dist/packages/features/shell/Shell.d.ts +0 -1
- package/dist/packages/features/shell/Shell.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/vite.config.d.ts.map +1 -1
- 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/_app.d.ts +469 -373
- package/dist/packages/trpc/server/routers/_app.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/_router.d.ts +0 -124
- package/dist/packages/trpc/server/routers/loggedInViewer/_router.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/__tests__/outOfOffice.handler.test.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/_router.d.ts +469 -373
- package/dist/packages/trpc/server/routers/viewer/_router.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/ooo/_router.d.ts +132 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/_router.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOffice.utils.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeCreateOrUpdate.handler.d.ts +1 -1
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeCreateOrUpdate.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeCreateOrUpdate.schema.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeEntriesList.handler.d.ts +6 -6
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeEntriesList.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeEntriesList.schema.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeEntryDelete.handler.d.ts +1 -1
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeEntryDelete.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeEntryDelete.schema.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeReasons.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/travelSchedules/_router.d.ts +26 -0
- package/dist/packages/trpc/server/routers/viewer/travelSchedules/_router.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/travelSchedules}/getTravelSchedules.handler.d.ts +1 -1
- package/dist/packages/trpc/server/routers/viewer/travelSchedules/getTravelSchedules.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/travelSchedules/getTravelSchedules.schema.d.ts.map +1 -0
- package/dist/{useIsAppEnabled-lWZHByfn.js → useIsAppEnabled-EWMW2qIQ.js} +1 -1
- package/package.json +3 -2
- package/dist/AppCard-6POsrWUi.js +0 -161
- package/dist/AppListCardPlatformWrapper-lBuJfkuH.js +0 -8
- package/dist/AppSettingsInterface-4Tks23KV.js +0 -22
- package/dist/AppSettingsInterface-FOcRnk3Z.js +0 -28
- package/dist/AppSettingsInterface-GkmVYzlh.js +0 -74
- package/dist/EventTypeAppCardInterface-3WtIPV90.js +0 -48
- package/dist/EventTypeAppCardInterface-59_1Chn3.js +0 -23
- package/dist/EventTypeAppCardInterface-6vA3mNLM.js +0 -23
- package/dist/EventTypeAppCardInterface-8G0alNRB.js +0 -23
- package/dist/EventTypeAppCardInterface-DmRoseb5.js +0 -33
- package/dist/EventTypeAppCardInterface-E6oGIXby.js +0 -30
- package/dist/EventTypeAppCardInterface-F3iYQZzz.js +0 -33
- package/dist/EventTypeAppCardInterface-Gz942CB8.js +0 -41
- package/dist/EventTypeAppCardInterface-JtE97AbR.js +0 -38
- package/dist/EventTypeAppCardInterface-KoXkfIyN.js +0 -451
- package/dist/EventTypeAppCardInterface-O6Qm27_l.js +0 -33
- package/dist/EventTypeAppCardInterface-S1ri5C5w.js +0 -33
- package/dist/EventTypeAppCardInterface-SDs4emhR.js +0 -40
- package/dist/EventTypeAppCardInterface-_ilno5U4.js +0 -32
- package/dist/EventTypeAppCardInterface-b4zgfRie.js +0 -31
- package/dist/EventTypeAppCardInterface-dDQePpru.js +0 -33
- package/dist/EventTypeAppCardInterface-dxJA4SDA.js +0 -40
- package/dist/EventTypeAppCardInterface-dyUZdYi1.js +0 -31
- package/dist/EventTypeAppCardInterface-hEAZCP4y.js +0 -33
- package/dist/EventTypeAppCardInterface-iH8XDMJc.js +0 -23
- package/dist/EventTypeAppCardInterface-kzr8i-KV.js +0 -33
- package/dist/EventTypeAppCardInterface-nIcRzdps.js +0 -23
- package/dist/EventTypeAppCardInterface-n_WURLN6.js +0 -41
- package/dist/EventTypeAppCardInterface-oOvyPBbl.js +0 -85
- package/dist/EventTypeAppCardInterface-uxE48sJK.js +0 -50
- package/dist/EventTypeAppSettingsInterface-11qrPEq9.js +0 -47
- package/dist/EventTypeAppSettingsInterface-DQAYuCVY.js +0 -220
- package/dist/EventTypeAppSettingsInterface-G9QLW8nF.js +0 -42
- package/dist/EventTypeAppSettingsInterface-KP3N_MKJ.js +0 -71
- package/dist/EventTypeAppSettingsInterface-jExNP130.js +0 -77
- package/dist/EventTypeAppSettingsInterface-wvbPVzEw.js +0 -41
- package/dist/InstallAppButton-Texs62TM.js +0 -13
- package/dist/InstallAppButton-k-fI7lJG.js +0 -13
- package/dist/InstallAppButton-uI0Lr0hc.js +0 -57
- package/dist/StripePaymentForm-8vKNcyMv.js +0 -492
- package/dist/index-TRud8iK5.js +0 -510
- package/dist/packages/trpc/server/routers/loggedInViewer/__tests__/outOfOffice.handler.test.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/getTravelSchedules.handler.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/getTravelSchedules.schema.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOffice.utils.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeCreateOrUpdate.handler.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeCreateOrUpdate.schema.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeEntriesList.handler.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeEntriesList.schema.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeEntryDelete.handler.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeEntryDelete.schema.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeReasons.handler.d.ts.map +0 -1
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer}/__tests__/outOfOffice.handler.test.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOffice.utils.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeCreateOrUpdate.schema.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeEntriesList.schema.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeEntryDelete.schema.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeReasons.handler.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/travelSchedules}/getTravelSchedules.schema.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { au as L, av as V, aw as D, ax as G, ay as j, az as q, aA as _, aB as Q, aC as re, aD as ie, aE as oe, aF as ae } from "./index-_1f6rhg6.js";
|
|
2
2
|
function b(t, e, n, s = { passive: !0 }) {
|
|
3
3
|
return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
|
|
4
4
|
}
|
|
@@ -12,7 +12,7 @@ function Z(t, e = "page") {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
const ue = (t) => (e) => ce(e) && t(e, Z(e));
|
|
15
|
-
function
|
|
15
|
+
function T(t, e, n, s) {
|
|
16
16
|
return b(t, e, ue(n), s);
|
|
17
17
|
}
|
|
18
18
|
function $(t) {
|
|
@@ -24,15 +24,15 @@ function $(t) {
|
|
|
24
24
|
return e === null ? (e = t, n) : !1;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const J = $("dragHorizontal"), X = $("dragVertical");
|
|
28
28
|
function le(t) {
|
|
29
29
|
let e = !1;
|
|
30
30
|
if (t === "y")
|
|
31
|
-
e =
|
|
31
|
+
e = X();
|
|
32
32
|
else if (t === "x")
|
|
33
|
-
e =
|
|
33
|
+
e = J();
|
|
34
34
|
else {
|
|
35
|
-
const n =
|
|
35
|
+
const n = J(), s = X();
|
|
36
36
|
n && s ? e = () => {
|
|
37
37
|
n(), s();
|
|
38
38
|
} : (n && n(), s && s());
|
|
@@ -50,20 +50,20 @@ class w {
|
|
|
50
50
|
update() {
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Y(t, e) {
|
|
54
54
|
const n = "pointer" + (e ? "enter" : "leave"), s = "onHover" + (e ? "Start" : "End"), o = (a, l) => {
|
|
55
55
|
if (a.type === "touch" || ee())
|
|
56
56
|
return;
|
|
57
57
|
const c = t.getProps();
|
|
58
58
|
t.animationState && c.whileHover && t.animationState.setActive("whileHover", e), c[s] && V.update(() => c[s](a, l));
|
|
59
59
|
};
|
|
60
|
-
return
|
|
60
|
+
return T(t.current, n, o, {
|
|
61
61
|
passive: !t.getProps()[s]
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
class he extends w {
|
|
65
65
|
mount() {
|
|
66
|
-
this.unmount = L(
|
|
66
|
+
this.unmount = L(Y(this.node, !0), Y(this.node, !1));
|
|
67
67
|
}
|
|
68
68
|
unmount() {
|
|
69
69
|
}
|
|
@@ -91,7 +91,7 @@ class de extends w {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
const te = (t, e) => e ? t === e ? !0 : te(t, e.parentElement) : !1;
|
|
94
|
-
function
|
|
94
|
+
function H(t, e) {
|
|
95
95
|
if (!e)
|
|
96
96
|
return;
|
|
97
97
|
const n = new PointerEvent("pointer" + t);
|
|
@@ -99,33 +99,33 @@ function K(t, e) {
|
|
|
99
99
|
}
|
|
100
100
|
class fe extends w {
|
|
101
101
|
constructor() {
|
|
102
|
-
super(...arguments), this.removeStartListeners =
|
|
102
|
+
super(...arguments), this.removeStartListeners = D, this.removeEndListeners = D, this.removeAccessibleListeners = D, this.startPointerPress = (e, n) => {
|
|
103
103
|
if (this.removeEndListeners(), this.isPressing)
|
|
104
104
|
return;
|
|
105
|
-
const s = this.node.getProps(), a =
|
|
105
|
+
const s = this.node.getProps(), a = T(window, "pointerup", (c, i) => {
|
|
106
106
|
if (!this.checkPressEnd())
|
|
107
107
|
return;
|
|
108
108
|
const { onTap: r, onTapCancel: u } = this.node.getProps();
|
|
109
109
|
V.update(() => {
|
|
110
110
|
te(this.node.current, c.target) ? r && r(c, i) : u && u(c, i);
|
|
111
111
|
});
|
|
112
|
-
}, { passive: !(s.onTap || s.onPointerUp) }), l =
|
|
112
|
+
}, { passive: !(s.onTap || s.onPointerUp) }), l = T(window, "pointercancel", (c, i) => this.cancelPress(c, i), { passive: !(s.onTapCancel || s.onPointerCancel) });
|
|
113
113
|
this.removeEndListeners = L(a, l), this.startPress(e, n);
|
|
114
114
|
}, this.startAccessiblePress = () => {
|
|
115
115
|
const e = (a) => {
|
|
116
116
|
if (a.key !== "Enter" || this.isPressing)
|
|
117
117
|
return;
|
|
118
118
|
const l = (c) => {
|
|
119
|
-
c.key !== "Enter" || !this.checkPressEnd() ||
|
|
119
|
+
c.key !== "Enter" || !this.checkPressEnd() || H("up", (i, r) => {
|
|
120
120
|
const { onTap: u } = this.node.getProps();
|
|
121
121
|
u && V.update(() => u(i, r));
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
this.removeEndListeners(), this.removeEndListeners = b(this.node.current, "keyup", l),
|
|
124
|
+
this.removeEndListeners(), this.removeEndListeners = b(this.node.current, "keyup", l), H("down", (c, i) => {
|
|
125
125
|
this.startPress(c, i);
|
|
126
126
|
});
|
|
127
127
|
}, n = b(this.node.current, "keydown", e), s = () => {
|
|
128
|
-
this.isPressing &&
|
|
128
|
+
this.isPressing && H("cancel", (a, l) => this.cancelPress(a, l));
|
|
129
129
|
}, o = b(this.node.current, "blur", s);
|
|
130
130
|
this.removeAccessibleListeners = L(n, o);
|
|
131
131
|
};
|
|
@@ -145,29 +145,29 @@ class fe extends w {
|
|
|
145
145
|
s && V.update(() => s(e, n));
|
|
146
146
|
}
|
|
147
147
|
mount() {
|
|
148
|
-
const e = this.node.getProps(), n =
|
|
148
|
+
const e = this.node.getProps(), n = T(this.node.current, "pointerdown", this.startPointerPress, { passive: !(e.onTapStart || e.onPointerStart) }), s = b(this.node.current, "focus", this.startAccessiblePress);
|
|
149
149
|
this.removeStartListeners = L(n, s);
|
|
150
150
|
}
|
|
151
151
|
unmount() {
|
|
152
152
|
this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
const e =
|
|
155
|
+
const B = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), pe = (t) => {
|
|
156
|
+
const e = B.get(t.target);
|
|
157
157
|
e && e(t);
|
|
158
158
|
}, me = (t) => {
|
|
159
159
|
t.forEach(pe);
|
|
160
160
|
};
|
|
161
161
|
function ve({ root: t, ...e }) {
|
|
162
162
|
const n = t || document;
|
|
163
|
-
|
|
164
|
-
const s =
|
|
163
|
+
K.has(n) || K.set(n, {});
|
|
164
|
+
const s = K.get(n), o = JSON.stringify(e);
|
|
165
165
|
return s[o] || (s[o] = new IntersectionObserver(me, { root: t, ...e })), s[o];
|
|
166
166
|
}
|
|
167
167
|
function Pe(t, e, n) {
|
|
168
168
|
const s = ve(e);
|
|
169
|
-
return
|
|
170
|
-
|
|
169
|
+
return B.set(t, n), s.observe(t), () => {
|
|
170
|
+
B.delete(t), s.unobserve(t);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
const ge = {
|
|
@@ -234,11 +234,11 @@ function ne(t, e) {
|
|
|
234
234
|
return !1;
|
|
235
235
|
return !0;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
const s =
|
|
237
|
+
function z(t, e, n = {}) {
|
|
238
|
+
const s = G(t, e, n.custom);
|
|
239
239
|
let { transition: o = t.getDefaultTransition() || {} } = s || {};
|
|
240
240
|
n.transitionOverride && (o = n.transitionOverride);
|
|
241
|
-
const a = s ? () => Promise.all(
|
|
241
|
+
const a = s ? () => Promise.all(j(t, s, n)) : () => Promise.resolve(), l = t.variantChildren && t.variantChildren.size ? (i = 0) => {
|
|
242
242
|
const { delayChildren: r = 0, staggerChildren: u, staggerDirection: p } = o;
|
|
243
243
|
return we(t, e, r + i, u, p, n);
|
|
244
244
|
} : () => Promise.resolve(), { when: c } = o;
|
|
@@ -251,7 +251,7 @@ function M(t, e, n = {}) {
|
|
|
251
251
|
function we(t, e, n = 0, s = 0, o = 1, a) {
|
|
252
252
|
const l = [], c = (t.variantChildren.size - 1) * s, i = o === 1 ? (r = 0) => r * s : (r = 0) => c - r * s;
|
|
253
253
|
return Array.from(t.variantChildren).sort(Se).forEach((r, u) => {
|
|
254
|
-
r.notify("AnimationStart", e), l.push(
|
|
254
|
+
r.notify("AnimationStart", e), l.push(z(r, e, {
|
|
255
255
|
...a,
|
|
256
256
|
delay: n + i(u)
|
|
257
257
|
}).then(() => r.notify("AnimationComplete", e)));
|
|
@@ -264,26 +264,26 @@ function Ce(t, e, n = {}) {
|
|
|
264
264
|
t.notify("AnimationStart", e);
|
|
265
265
|
let s;
|
|
266
266
|
if (Array.isArray(e)) {
|
|
267
|
-
const o = e.map((a) =>
|
|
267
|
+
const o = e.map((a) => z(t, a, n));
|
|
268
268
|
s = Promise.all(o);
|
|
269
269
|
} else if (typeof e == "string")
|
|
270
|
-
s =
|
|
270
|
+
s = z(t, e, n);
|
|
271
271
|
else {
|
|
272
|
-
const o = typeof e == "function" ?
|
|
273
|
-
s = Promise.all(
|
|
272
|
+
const o = typeof e == "function" ? G(t, e, n.custom) : e;
|
|
273
|
+
s = Promise.all(j(t, o, n));
|
|
274
274
|
}
|
|
275
275
|
return s.then(() => t.notify("AnimationComplete", e));
|
|
276
276
|
}
|
|
277
|
-
const Ve = [...
|
|
277
|
+
const Ve = [...Q].reverse(), Le = Q.length;
|
|
278
278
|
function ke(t) {
|
|
279
279
|
return (e) => Promise.all(e.map(({ animation: n, options: s }) => Ce(t, n, s)));
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Te(t) {
|
|
282
282
|
let e = ke(t);
|
|
283
|
-
const n =
|
|
283
|
+
const n = xe();
|
|
284
284
|
let s = !0;
|
|
285
285
|
const o = (i, r) => {
|
|
286
|
-
const u =
|
|
286
|
+
const u = G(t, r);
|
|
287
287
|
if (u) {
|
|
288
288
|
const { transition: p, transitionEnd: m, ...v } = u;
|
|
289
289
|
i = { ...i, ...v, ...m };
|
|
@@ -295,34 +295,34 @@ function Oe(t) {
|
|
|
295
295
|
}
|
|
296
296
|
function l(i, r) {
|
|
297
297
|
const u = t.getProps(), p = t.getVariantContext(!0) || {}, m = [], v = /* @__PURE__ */ new Set();
|
|
298
|
-
let g = {},
|
|
298
|
+
let g = {}, M = 1 / 0;
|
|
299
299
|
for (let A = 0; A < Le; A++) {
|
|
300
|
-
const f = Ve[A], h = n[f], P = u[f] !== void 0 ? u[f] : p[f],
|
|
301
|
-
|
|
302
|
-
let k = P === p[f] && P !== u[f] &&
|
|
300
|
+
const f = Ve[A], h = n[f], P = u[f] !== void 0 ? u[f] : p[f], O = re(P), x = f === r ? h.isActive : null;
|
|
301
|
+
x === !1 && (M = A);
|
|
302
|
+
let k = P === p[f] && P !== u[f] && O;
|
|
303
303
|
if (k && s && t.manuallyAnimateOnMount && (k = !1), h.protectedKeys = { ...g }, // If it isn't active and hasn't *just* been set as inactive
|
|
304
|
-
!h.isActive &&
|
|
304
|
+
!h.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
|
|
305
305
|
!P && !h.prevProp || // Or if the prop doesn't define an animation
|
|
306
|
-
|
|
306
|
+
q(P) || typeof P == "boolean")
|
|
307
307
|
continue;
|
|
308
|
-
const
|
|
309
|
-
let
|
|
310
|
-
f === r && h.isActive && !k &&
|
|
311
|
-
A >
|
|
308
|
+
const N = Oe(h.prevProp, P);
|
|
309
|
+
let I = N || // If we're making this variant active, we want to always make it active
|
|
310
|
+
f === r && h.isActive && !k && O || // If we removed a higher-priority variant (i is in reverse order)
|
|
311
|
+
A > M && O;
|
|
312
312
|
const U = Array.isArray(P) ? P : [P];
|
|
313
313
|
let S = U.reduce(o, {});
|
|
314
|
-
|
|
315
|
-
const { prevResolvedValues:
|
|
316
|
-
...
|
|
314
|
+
x === !1 && (S = {});
|
|
315
|
+
const { prevResolvedValues: W = {} } = h, se = {
|
|
316
|
+
...W,
|
|
317
317
|
...S
|
|
318
318
|
}, F = (d) => {
|
|
319
|
-
|
|
319
|
+
I = !0, v.delete(d), h.needsAnimating[d] = !0;
|
|
320
320
|
};
|
|
321
321
|
for (const d in se) {
|
|
322
|
-
const C = S[d], E =
|
|
323
|
-
g.hasOwnProperty(d) || (C !== E ?
|
|
322
|
+
const C = S[d], E = W[d];
|
|
323
|
+
g.hasOwnProperty(d) || (C !== E ? _(C) && _(E) ? !ne(C, E) || N ? F(d) : h.protectedKeys[d] = !0 : C !== void 0 ? F(d) : v.add(d) : C !== void 0 && v.has(d) ? F(d) : h.protectedKeys[d] = !0);
|
|
324
324
|
}
|
|
325
|
-
h.prevProp = P, h.prevResolvedValues = S, h.isActive && (g = { ...g, ...S }), s && t.blockInitialAnimation && (
|
|
325
|
+
h.prevProp = P, h.prevResolvedValues = S, h.isActive && (g = { ...g, ...S }), s && t.blockInitialAnimation && (I = !1), I && !k && m.push(...U.map((d) => ({
|
|
326
326
|
animation: d,
|
|
327
327
|
options: { type: f, ...i }
|
|
328
328
|
})));
|
|
@@ -334,8 +334,8 @@ function Oe(t) {
|
|
|
334
334
|
h !== void 0 && (A[f] = h);
|
|
335
335
|
}), m.push({ animation: A });
|
|
336
336
|
}
|
|
337
|
-
let
|
|
338
|
-
return s && u.initial === !1 && !t.manuallyAnimateOnMount && (
|
|
337
|
+
let R = !!m.length;
|
|
338
|
+
return s && u.initial === !1 && !t.manuallyAnimateOnMount && (R = !1), s = !1, R ? e(m) : Promise.resolve();
|
|
339
339
|
}
|
|
340
340
|
function c(i, r, u) {
|
|
341
341
|
var p;
|
|
@@ -357,7 +357,7 @@ function Oe(t) {
|
|
|
357
357
|
getState: () => n
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Oe(t, e) {
|
|
361
361
|
return typeof e == "string" ? e !== t : Array.isArray(e) ? !ne(e, t) : !1;
|
|
362
362
|
}
|
|
363
363
|
function y(t = !1) {
|
|
@@ -368,7 +368,7 @@ function y(t = !1) {
|
|
|
368
368
|
prevResolvedValues: {}
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function xe() {
|
|
372
372
|
return {
|
|
373
373
|
animate: y(!0),
|
|
374
374
|
whileInView: y(),
|
|
@@ -379,18 +379,18 @@ function Ie() {
|
|
|
379
379
|
exit: y()
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
|
-
class
|
|
382
|
+
class Ie extends w {
|
|
383
383
|
/**
|
|
384
384
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
385
385
|
* to the underlying animation library. We only want to load that if we load this,
|
|
386
386
|
* so people can optionally code split it out using the `m` component.
|
|
387
387
|
*/
|
|
388
388
|
constructor(e) {
|
|
389
|
-
super(e), e.animationState || (e.animationState =
|
|
389
|
+
super(e), e.animationState || (e.animationState = Te(e));
|
|
390
390
|
}
|
|
391
391
|
updateAnimationControlsSubscription() {
|
|
392
392
|
const { animate: e } = this.node.getProps();
|
|
393
|
-
this.unmount(),
|
|
393
|
+
this.unmount(), q(e) && (this.unmount = e.subscribe(this.node));
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
396
|
* Subscribe any provided AnimationControls to the component's VisualElement
|
|
@@ -426,18 +426,18 @@ class Ee extends w {
|
|
|
426
426
|
unmount() {
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
const
|
|
429
|
+
const De = {
|
|
430
430
|
animation: {
|
|
431
|
-
Feature:
|
|
431
|
+
Feature: Ie
|
|
432
432
|
},
|
|
433
433
|
exit: {
|
|
434
434
|
Feature: Ee
|
|
435
435
|
}
|
|
436
|
-
},
|
|
437
|
-
renderer:
|
|
438
|
-
...
|
|
436
|
+
}, He = (t, e) => ie(t) ? new oe(e, { enableHardwareAcceleration: !1 }) : new ae(e, { enableHardwareAcceleration: !0 }), Be = {
|
|
437
|
+
renderer: He,
|
|
438
|
+
...De,
|
|
439
439
|
...be
|
|
440
440
|
};
|
|
441
441
|
export {
|
|
442
|
-
|
|
442
|
+
Be as default
|
|
443
443
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as a, P as o, f as s, g as t, g as m, i as C, p as n, a as p } from "./index-
|
|
2
|
-
import { i } from "./isSupportedCountry
|
|
1
|
+
import { D as a, P as o, f as s, g as t, g as m, i as C, p as n, a as p } from "./index-_1f6rhg6.js";
|
|
2
|
+
import { i } from "./isSupportedCountry--S1ZKbg0.js";
|
|
3
3
|
export {
|
|
4
4
|
a as DIGITS,
|
|
5
5
|
o as ParseError,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, s as l, C as o, c as t, u as r, r as i, E as c, F as d, H as g, j as n, m as F, I as p, L as u, d as S, S as T, n as x, o as h, v as k, w as m, e as C, h as E, k as I, t as P, q as b, l as w } from "./index-
|
|
1
|
+
import { B as s, s as l, C as o, c as t, u as r, r as i, E as c, F as d, H as g, j as n, m as F, I as p, L as u, d as S, S as T, n as x, o as h, v as k, w as m, e as C, h as E, k as I, t as P, q as b, l as w } from "./index-_1f6rhg6.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BooleanToggleGroup,
|
|
4
4
|
l as BooleanToggleGroupField,
|