@calcom/atoms 1.0.95 → 1.0.96-beta-1
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 +1 -1
- 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,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { a4 as n, j as o, Z as c } from "./index-_1f6rhg6.js";
|
|
3
|
+
function r({ value: s, onChange: t, ...a }) {
|
|
4
|
+
return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
|
|
5
|
+
/* @__PURE__ */ e(
|
|
5
6
|
n,
|
|
6
7
|
{
|
|
7
8
|
name: "map-pin",
|
|
@@ -9,11 +10,11 @@ function p({ value: e, onChange: t, ...a }) {
|
|
|
9
10
|
style: { top: "44%" }
|
|
10
11
|
}
|
|
11
12
|
),
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
|
|
13
|
+
/* @__PURE__ */ e(
|
|
14
|
+
o,
|
|
14
15
|
{
|
|
15
16
|
...a,
|
|
16
|
-
value:
|
|
17
|
+
value: s,
|
|
17
18
|
onChange: (l) => {
|
|
18
19
|
t(l.target.value);
|
|
19
20
|
},
|
|
@@ -23,5 +24,5 @@ function p({ value: e, onChange: t, ...a }) {
|
|
|
23
24
|
] });
|
|
24
25
|
}
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
r as default
|
|
27
28
|
};
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as z, jsxs as er } from "react/jsx-runtime";
|
|
2
2
|
import J from "react";
|
|
3
|
+
import { Y as tr, a5 as nr } from "./index-_1f6rhg6.js";
|
|
3
4
|
const K = function(s, r = !0) {
|
|
4
5
|
if (s.destroyed)
|
|
5
6
|
throw new Error("Hash instance has been destroyed");
|
|
6
7
|
if (r && s.finished)
|
|
7
8
|
throw new Error("Hash#digest() has already been called");
|
|
8
|
-
},
|
|
9
|
+
}, or = (s) => s instanceof Uint8Array, N = (s) => new DataView(s.buffer, s.byteOffset, s.byteLength), L = (s, r) => s << 32 - r | s >>> r;
|
|
9
10
|
if (new Uint8Array(new Uint32Array([287454020]).buffer)[0] !== 68)
|
|
10
11
|
throw new Error("Non little-endian hardware is not supported");
|
|
11
12
|
Array.from({ length: 256 }, (s, r) => r.toString(16).padStart(2, "0"));
|
|
12
|
-
function
|
|
13
|
+
function Z(s) {
|
|
13
14
|
if (typeof s == "string" && (s = function(r) {
|
|
14
15
|
if (typeof r != "string")
|
|
15
16
|
throw new Error("utf8ToBytes expected string, got " + typeof r);
|
|
16
17
|
return new Uint8Array(new TextEncoder().encode(r));
|
|
17
|
-
}(s)), !
|
|
18
|
+
}(s)), !or(s))
|
|
18
19
|
throw new Error("expected Uint8Array, got " + typeof s);
|
|
19
20
|
return s;
|
|
20
21
|
}
|
|
21
|
-
class
|
|
22
|
+
class sr {
|
|
22
23
|
clone() {
|
|
23
24
|
return this._cloneInto();
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
function q(s) {
|
|
27
|
-
const r = (c) => s().update(
|
|
28
|
+
const r = (c) => s().update(Z(c)).digest(), i = s();
|
|
28
29
|
return r.outputLen = i.outputLen, r.blockLen = i.blockLen, r.create = () => s(), r;
|
|
29
30
|
}
|
|
30
|
-
class
|
|
31
|
+
class ir extends sr {
|
|
31
32
|
constructor(r, i, c, f) {
|
|
32
33
|
super(), this.blockLen = r, this.outputLen = i, this.padOffset = c, this.isLE = f, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(r), this.view = N(this.buffer);
|
|
33
34
|
}
|
|
34
35
|
update(r) {
|
|
35
36
|
K(this);
|
|
36
|
-
const { view: i, buffer: c, blockLen: f } = this, u = (r =
|
|
37
|
+
const { view: i, buffer: c, blockLen: f } = this, u = (r = Z(r)).length;
|
|
37
38
|
for (let l = 0; l < u; ) {
|
|
38
39
|
const g = Math.min(f - this.pos, u - l);
|
|
39
40
|
if (g !== f)
|
|
@@ -66,8 +67,8 @@ class sr extends or {
|
|
|
66
67
|
(function(b, y, E, x) {
|
|
67
68
|
if (typeof b.setBigUint64 == "function")
|
|
68
69
|
return b.setBigUint64(y, E, x);
|
|
69
|
-
const B = BigInt(32), k = BigInt(4294967295),
|
|
70
|
-
b.setUint32(y + (x ? 4 : 0),
|
|
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);
|
|
71
72
|
})(c, f - 8, BigInt(8 * this.length), u), this.process(c, 0);
|
|
72
73
|
const g = N(r), m = this.outputLen;
|
|
73
74
|
if (m % 4)
|
|
@@ -90,8 +91,8 @@ class sr extends or {
|
|
|
90
91
|
return r.length = f, r.pos = g, r.finished = u, r.destroyed = l, f % i && r.buffer.set(c), r;
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
const
|
|
94
|
-
class rr extends
|
|
94
|
+
const ar = (s, r, i) => s & r ^ s & i ^ r & i, cr = new Uint32Array([1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]), I = new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]), T = new Uint32Array(64);
|
|
95
|
+
class rr extends ir {
|
|
95
96
|
constructor() {
|
|
96
97
|
super(64, 32, 8, !1), this.A = 0 | I[0], this.B = 0 | I[1], this.C = 0 | I[2], this.D = 0 | I[3], this.E = 0 | I[4], this.F = 0 | I[5], this.G = 0 | I[6], this.H = 0 | I[7];
|
|
97
98
|
}
|
|
@@ -111,7 +112,7 @@ class rr extends sr {
|
|
|
111
112
|
}
|
|
112
113
|
let { A: c, B: f, C: u, D: l, E: g, F: m, G: U, H: A } = this;
|
|
113
114
|
for (let y = 0; y < 64; y++) {
|
|
114
|
-
const E = A + (L(g, 6) ^ L(g, 11) ^ L(g, 25)) + ((b = g) & m ^ ~b & U) +
|
|
115
|
+
const E = A + (L(g, 6) ^ L(g, 11) ^ L(g, 25)) + ((b = g) & m ^ ~b & U) + cr[y] + T[y] | 0, x = (L(c, 2) ^ L(c, 13) ^ L(c, 22)) + ar(c, f, u) | 0;
|
|
115
116
|
A = U, U = m, m = g, g = l + E | 0, l = u, u = f, f = c, c = E + x | 0;
|
|
116
117
|
}
|
|
117
118
|
var b;
|
|
@@ -124,14 +125,14 @@ class rr extends sr {
|
|
|
124
125
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
|
-
class
|
|
128
|
+
class hr extends rr {
|
|
128
129
|
constructor() {
|
|
129
130
|
super(), this.A = -1056596264, this.B = 914150663, this.C = 812702999, this.D = -150054599, this.E = -4191439, this.F = 1750603025, this.G = 1694076839, this.H = -1090891868, this.outputLen = 28;
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
q(() => new rr());
|
|
133
|
-
q(() => new
|
|
134
|
-
var Q,
|
|
134
|
+
q(() => new hr());
|
|
135
|
+
var Q, R;
|
|
135
136
|
Q = function(s, r) {
|
|
136
137
|
function i(e) {
|
|
137
138
|
if (!Number.isSafeInteger(e))
|
|
@@ -327,18 +328,18 @@ Q = function(s, r) {
|
|
|
327
328
|
r.utils = { alphabet: f, chain: c, checksum: B, radix: y, radix2: E, join: u, padding: l }, r.base16 = c(E(4), f("0123456789ABCDEF"), u("")), r.base32 = c(E(5), f("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), l(5), u("")), r.base32hex = c(E(5), f("0123456789ABCDEFGHIJKLMNOPQRSTUV"), l(5), u("")), r.base32crockford = c(E(5), f("0123456789ABCDEFGHJKMNPQRSTVWXYZ"), u(""), g((e) => e.toUpperCase().replace(/O/g, "0").replace(/[IL]/g, "1"))), r.base64 = c(E(6), f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), l(6), u("")), r.base64url = c(E(6), f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"), l(6), u(""));
|
|
328
329
|
const k = (e) => c(y(58), f(e), u(""));
|
|
329
330
|
r.base58 = k("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"), r.base58flickr = k("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"), r.base58xrp = k("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");
|
|
330
|
-
const
|
|
331
|
+
const _ = [0, 2, 3, 5, 6, 7, 9, 10, 11];
|
|
331
332
|
r.base58xmr = { encode(e) {
|
|
332
333
|
let t = "";
|
|
333
334
|
for (let n = 0; n < e.length; n += 8) {
|
|
334
335
|
const o = e.subarray(n, n + 8);
|
|
335
|
-
t += r.base58.encode(o).padStart(
|
|
336
|
+
t += r.base58.encode(o).padStart(_[o.length], "1");
|
|
336
337
|
}
|
|
337
338
|
return t;
|
|
338
339
|
}, decode(e) {
|
|
339
340
|
let t = [];
|
|
340
341
|
for (let n = 0; n < e.length; n += 11) {
|
|
341
|
-
const o = e.slice(n, n + 11), a =
|
|
342
|
+
const o = e.slice(n, n + 11), a = _.indexOf(o.length), h = r.base58.decode(o);
|
|
342
343
|
for (let d = 0; d < h.length - a; d++)
|
|
343
344
|
if (h[d] !== 0)
|
|
344
345
|
throw new Error("base58xmr: wrong padding");
|
|
@@ -346,15 +347,15 @@ Q = function(s, r) {
|
|
|
346
347
|
}
|
|
347
348
|
return Uint8Array.from(t);
|
|
348
349
|
} }, r.base58check = (e) => c(B(4, (t) => e(e(t))), r.base58);
|
|
349
|
-
const C = c(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), u("")),
|
|
350
|
+
const C = c(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), u("")), j = [996825010, 642813549, 513874426, 1027748829, 705979059];
|
|
350
351
|
function S(e) {
|
|
351
352
|
const t = e >> 25;
|
|
352
353
|
let n = (33554431 & e) << 5;
|
|
353
|
-
for (let o = 0; o <
|
|
354
|
-
(t >> o & 1) == 1 && (n ^=
|
|
354
|
+
for (let o = 0; o < j.length; o++)
|
|
355
|
+
(t >> o & 1) == 1 && (n ^= j[o]);
|
|
355
356
|
return n;
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function H(e, t, n = 1) {
|
|
358
359
|
const o = e.length;
|
|
359
360
|
let a = 1;
|
|
360
361
|
for (let h = 0; h < o; h++) {
|
|
@@ -372,7 +373,7 @@ Q = function(s, r) {
|
|
|
372
373
|
a = S(a);
|
|
373
374
|
return a ^= n, C.encode(b([a % 2 ** 30], 30, 5, !1));
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function O(e) {
|
|
376
377
|
const t = e === "bech32" ? 1 : 734539939, n = E(5), o = n.decode, a = n.encode, h = x(o);
|
|
377
378
|
function d(w, p = 90) {
|
|
378
379
|
if (typeof w != "string")
|
|
@@ -385,13 +386,13 @@ Q = function(s, r) {
|
|
|
385
386
|
const v = (w = $).lastIndexOf("1");
|
|
386
387
|
if (v === 0 || v === -1)
|
|
387
388
|
throw new Error('Letter "1" must be present between prefix and data only');
|
|
388
|
-
const
|
|
389
|
-
if (
|
|
389
|
+
const G = w.slice(0, v), D = w.slice(v + 1);
|
|
390
|
+
if (D.length < 6)
|
|
390
391
|
throw new Error("Data must be at least 6 characters long");
|
|
391
|
-
const
|
|
392
|
-
if (!
|
|
393
|
-
throw new Error(`Invalid checksum in ${w}: expected "${
|
|
394
|
-
return { prefix:
|
|
392
|
+
const M = C.decode(D).slice(0, -6), P = H(G, M, t);
|
|
393
|
+
if (!D.endsWith(P))
|
|
394
|
+
throw new Error(`Invalid checksum in ${w}: expected "${P}"`);
|
|
395
|
+
return { prefix: G, words: M };
|
|
395
396
|
}
|
|
396
397
|
return { encode: function(w, p, $ = 90) {
|
|
397
398
|
if (typeof w != "string")
|
|
@@ -401,61 +402,61 @@ Q = function(s, r) {
|
|
|
401
402
|
const v = w.length + 7 + p.length;
|
|
402
403
|
if ($ !== !1 && v > $)
|
|
403
404
|
throw new TypeError(`Length ${v} exceeds limit ${$}`);
|
|
404
|
-
return `${w = w.toLowerCase()}1${C.encode(p)}${
|
|
405
|
+
return `${w = w.toLowerCase()}1${C.encode(p)}${H(w, p, t)}`;
|
|
405
406
|
}, decode: d, decodeToBytes: function(w) {
|
|
406
407
|
const { prefix: p, words: $ } = d(w, !1);
|
|
407
408
|
return { prefix: p, words: $, bytes: o($) };
|
|
408
409
|
}, decodeUnsafe: x(d), fromWords: o, fromWordsUnsafe: h, toWords: a };
|
|
409
410
|
}
|
|
410
|
-
r.bech32 =
|
|
411
|
+
r.bech32 = O("bech32"), r.bech32m = O("bech32m"), r.utf8 = { encode: (e) => new TextDecoder().decode(e), decode: (e) => new TextEncoder().encode(e) }, r.hex = c(E(4), f("0123456789abcdef"), u(""), g((e) => {
|
|
411
412
|
if (typeof e != "string" || e.length % 2)
|
|
412
413
|
throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);
|
|
413
414
|
return e.toLowerCase();
|
|
414
415
|
}));
|
|
415
|
-
const
|
|
416
|
+
const F = { utf8: r.utf8, hex: r.hex, base16: r.base16, base32: r.base32, base64: r.base64, base64url: r.base64url, base58: r.base58, base58xmr: r.base58xmr }, W = `Invalid encoding type. Available types: ${Object.keys(F).join(", ")}`;
|
|
416
417
|
r.bytesToString = (e, t) => {
|
|
417
|
-
if (typeof e != "string" || !
|
|
418
|
-
throw new TypeError(
|
|
418
|
+
if (typeof e != "string" || !F.hasOwnProperty(e))
|
|
419
|
+
throw new TypeError(W);
|
|
419
420
|
if (!(t instanceof Uint8Array))
|
|
420
421
|
throw new TypeError("bytesToString() expects Uint8Array");
|
|
421
|
-
return
|
|
422
|
+
return F[e].encode(t);
|
|
422
423
|
}, r.str = r.bytesToString, r.stringToBytes = (e, t) => {
|
|
423
|
-
if (!
|
|
424
|
-
throw new TypeError(
|
|
424
|
+
if (!F.hasOwnProperty(e))
|
|
425
|
+
throw new TypeError(W);
|
|
425
426
|
if (typeof t != "string")
|
|
426
427
|
throw new TypeError("stringToBytes() expects string");
|
|
427
|
-
return
|
|
428
|
+
return F[e].decode(t);
|
|
428
429
|
}, r.bytes = r.stringToBytes;
|
|
429
|
-
}, Q(
|
|
430
|
+
}, Q(R = { exports: {} }, R.exports), R.exports;
|
|
430
431
|
BigInt(1e3), BigInt(1e6), BigInt(1e9), BigInt(1e12);
|
|
431
432
|
BigInt("2100000000000000000");
|
|
432
433
|
BigInt(1e11);
|
|
433
|
-
const
|
|
434
|
-
for (let s = 0, r = Object.keys(
|
|
435
|
-
r[s],
|
|
436
|
-
const
|
|
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
|
+
const V = async (s) => {
|
|
437
438
|
const r = "https://getalby.com/api/rates/" + s.toLowerCase() + ".json";
|
|
438
439
|
return (await (await fetch(r)).json()).rate_float / 1e8;
|
|
439
440
|
}, X = async ({ satoshi: s, currency: r }) => {
|
|
440
|
-
const i = await
|
|
441
|
+
const i = await V(r);
|
|
441
442
|
return Number(s) * i;
|
|
442
443
|
};
|
|
443
|
-
var
|
|
444
|
-
const i = await
|
|
444
|
+
var fr = { __proto__: null, getFiatBtcRate: V, getFiatValue: X, getSatoshiValue: async ({ amount: s, currency: r }) => {
|
|
445
|
+
const i = await V(r);
|
|
445
446
|
return Math.floor(Number(s) / i);
|
|
446
447
|
}, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await X({ satoshi: s, currency: r })).toLocaleString(i, { style: "currency", currency: r })) };
|
|
447
|
-
function
|
|
448
|
+
function wr({ displaySymbol: s, price: r, formattedPrice: i }) {
|
|
448
449
|
const [c, f] = J.useState("loading...");
|
|
449
450
|
return J.useEffect(() => {
|
|
450
451
|
(async () => {
|
|
451
|
-
const u = await
|
|
452
|
+
const u = await fr.getFiatValue({ satoshi: r, currency: "USD" });
|
|
452
453
|
f(`$${u.toFixed(2)}`);
|
|
453
454
|
})();
|
|
454
|
-
}, [r]), /* @__PURE__ */
|
|
455
|
-
s && /* @__PURE__ */
|
|
455
|
+
}, [r]), /* @__PURE__ */ z(tr, { content: c, children: /* @__PURE__ */ er("div", { className: "inline-flex items-center justify-center", children: [
|
|
456
|
+
s && /* @__PURE__ */ z(nr, { className: "h-4 w-4" }),
|
|
456
457
|
i
|
|
457
458
|
] }) });
|
|
458
459
|
}
|
|
459
460
|
export {
|
|
460
|
-
|
|
461
|
+
wr as AlbyPriceComponent
|
|
461
462
|
};
|
|
@@ -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-_1f6rhg6.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
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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-_1f6rhg6.js";
|
|
3
|
+
import { useMemo as Q, useEffect as d, useCallback as b, useState as L, useRef as w } from "react";
|
|
3
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]);
|
|
4
5
|
i.preprocess((r) => i.string().parse(r).split(","), i.string().array()).or(i.string().array());
|
|
5
|
-
function
|
|
6
|
-
const o = y.useRouter(), c =
|
|
6
|
+
function x(r) {
|
|
7
|
+
const o = y.useRouter(), c = A(), u = y.usePathname(), n = r.safeParse(c);
|
|
7
8
|
let s = Q(() => ({}), []);
|
|
8
9
|
d(() => {
|
|
9
10
|
n.success && n.data && Object.entries(n.data).forEach(([e, t]) => {
|
|
@@ -54,11 +55,11 @@ function w(r) {
|
|
|
54
55
|
removeAllQueryParams: g
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
|
-
const
|
|
58
|
-
function
|
|
58
|
+
const C = i.object({ hl: i.string().optional() });
|
|
59
|
+
function j(r) {
|
|
59
60
|
const { slug: o, shouldHighlight: c } = r, {
|
|
60
61
|
data: { hl: u }
|
|
61
|
-
} =
|
|
62
|
+
} = x(C), n = y.useRouter(), [s, m] = L(c && u === o), l = w(null), f = R(), h = y.usePathname();
|
|
62
63
|
return d(() => (c && s && f !== null && h !== null && (l.current = setTimeout(() => {
|
|
63
64
|
const g = new URLSearchParams(f.toString());
|
|
64
65
|
g.delete("hl"), g.delete("category"), m(!1);
|
|
@@ -66,8 +67,8 @@ function U(r) {
|
|
|
66
67
|
n.replace(`${h}${e !== "" ? `?${e}` : ""}`);
|
|
67
68
|
}, 3e3)), () => {
|
|
68
69
|
l.current && (clearTimeout(l.current), l.current = null);
|
|
69
|
-
}), [s, h, n, f, c]), /* @__PURE__ */
|
|
70
|
+
}), [s, h, n, f, c]), /* @__PURE__ */ P($, { ...r });
|
|
70
71
|
}
|
|
71
72
|
export {
|
|
72
|
-
|
|
73
|
+
j as default
|
|
73
74
|
};
|
|
@@ -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-_1f6rhg6.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
|
+
};
|
|
@@ -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-_1f6rhg6.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,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-_1f6rhg6.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
|
+
};
|