@remotion/promo-pages 4.0.379 → 4.0.381

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/Homepage.js CHANGED
@@ -111,7 +111,7 @@ import { jsx as jsx15 } from "react/jsx-runtime";
111
111
  import {
112
112
  forwardRef as forwardRef4,
113
113
  useContext as useContext25,
114
- useEffect as useEffect13,
114
+ useEffect as useEffect12,
115
115
  useImperativeHandle as useImperativeHandle6,
116
116
  useMemo as useMemo21,
117
117
  useRef as useRef12,
@@ -123,7 +123,6 @@ import React15, {
123
123
  createRef as createRef2,
124
124
  useCallback as useCallback7,
125
125
  useContext as useContext16,
126
- useEffect as useEffect6,
127
126
  useMemo as useMemo15,
128
127
  useRef as useRef5,
129
128
  useState as useState11
@@ -131,12 +130,12 @@ import React15, {
131
130
  import { useMemo as useMemo14 } from "react";
132
131
  import { jsx as jsx16, jsxs as jsxs2 } from "react/jsx-runtime";
133
132
  import { useRef as useRef6 } from "react";
134
- import { useContext as useContext19, useEffect as useEffect7, useMemo as useMemo16, useState as useState12 } from "react";
133
+ import { useContext as useContext19, useEffect as useEffect6, useMemo as useMemo16, useState as useState12 } from "react";
135
134
  import { useContext as useContext18 } from "react";
136
135
  import {
137
136
  useCallback as useCallback10,
138
137
  useContext as useContext22,
139
- useEffect as useEffect11,
138
+ useEffect as useEffect10,
140
139
  useLayoutEffect as useLayoutEffect7,
141
140
  useRef as useRef11
142
141
  } from "react";
@@ -145,7 +144,7 @@ import { useContext as useContext21, useMemo as useMemo18 } from "react";
145
144
  import React16, {
146
145
  useCallback as useCallback8,
147
146
  useContext as useContext20,
148
- useEffect as useEffect8,
147
+ useEffect as useEffect7,
149
148
  useLayoutEffect as useLayoutEffect6,
150
149
  useMemo as useMemo17,
151
150
  useRef as useRef8,
@@ -153,15 +152,15 @@ import React16, {
153
152
  } from "react";
154
153
  import { jsx as jsx17 } from "react/jsx-runtime";
155
154
  import React17 from "react";
156
- import { useEffect as useEffect9, useState as useState14 } from "react";
157
- import { useEffect as useEffect10, useRef as useRef10 } from "react";
158
- import { useContext as useContext23, useEffect as useEffect12 } from "react";
155
+ import { useEffect as useEffect8, useState as useState14 } from "react";
156
+ import { useEffect as useEffect9, useRef as useRef10 } from "react";
157
+ import { useContext as useContext23, useEffect as useEffect11 } from "react";
159
158
  import { createContext as createContext17, useContext as useContext24, useMemo as useMemo20 } from "react";
160
159
  import { jsx as jsx18 } from "react/jsx-runtime";
161
160
  import {
162
161
  forwardRef as forwardRef5,
163
162
  useContext as useContext26,
164
- useEffect as useEffect14,
163
+ useEffect as useEffect13,
165
164
  useImperativeHandle as useImperativeHandle7,
166
165
  useLayoutEffect as useLayoutEffect8,
167
166
  useMemo as useMemo222,
@@ -169,9 +168,9 @@ import {
169
168
  } from "react";
170
169
  import { jsx as jsx19 } from "react/jsx-runtime";
171
170
  import { jsx as jsx20 } from "react/jsx-runtime";
172
- import { Suspense, useContext as useContext29, useEffect as useEffect16 } from "react";
171
+ import { Suspense, useContext as useContext29, useEffect as useEffect15 } from "react";
173
172
  import { createPortal } from "react-dom";
174
- import { createContext as createContext18, useContext as useContext28, useEffect as useEffect15, useMemo as useMemo23 } from "react";
173
+ import { createContext as createContext18, useContext as useContext28, useEffect as useEffect14, useMemo as useMemo23 } from "react";
175
174
  import { jsx as jsx21 } from "react/jsx-runtime";
176
175
  import { jsx as jsx222, jsxs as jsxs22 } from "react/jsx-runtime";
177
176
  import React21, { useMemo as useMemo24 } from "react";
@@ -198,7 +197,7 @@ import {
198
197
  } from "react";
199
198
  import { jsx as jsx26 } from "react/jsx-runtime";
200
199
  import React26 from "react";
201
- import { useEffect as useEffect17, useMemo as useMemo27, useState as useState18 } from "react";
200
+ import { useEffect as useEffect16, useMemo as useMemo27, useState as useState18 } from "react";
202
201
  import { createContext as createContext19, useContext as useContext31, useMemo as useMemo26 } from "react";
203
202
  import { jsx as jsx27 } from "react/jsx-runtime";
204
203
  import { jsx as jsx28 } from "react/jsx-runtime";
@@ -207,7 +206,7 @@ import { useCallback as useCallback16 } from "react";
207
206
  import {
208
207
  useCallback as useCallback15,
209
208
  useContext as useContext32,
210
- useEffect as useEffect18,
209
+ useEffect as useEffect17,
211
210
  useLayoutEffect as useLayoutEffect10,
212
211
  useMemo as useMemo28,
213
212
  useState as useState19
@@ -216,13 +215,13 @@ import { jsx as jsx29 } from "react/jsx-runtime";
216
215
  import {
217
216
  forwardRef as forwardRef9,
218
217
  useContext as useContext33,
219
- useEffect as useEffect20,
218
+ useEffect as useEffect19,
220
219
  useImperativeHandle as useImperativeHandle10,
221
220
  useMemo as useMemo29,
222
221
  useRef as useRef16,
223
222
  useState as useState20
224
223
  } from "react";
225
- import { useEffect as useEffect19 } from "react";
224
+ import { useEffect as useEffect18 } from "react";
226
225
  import { jsx as jsx30 } from "react/jsx-runtime";
227
226
  import { jsx as jsx31 } from "react/jsx-runtime";
228
227
  import React32, { useMemo as useMemo30 } from "react";
@@ -237,7 +236,7 @@ import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as
237
236
  import {
238
237
  forwardRef as forwardRef11,
239
238
  useContext as useContext34,
240
- useEffect as useEffect21,
239
+ useEffect as useEffect20,
241
240
  useImperativeHandle as useImperativeHandle11,
242
241
  useLayoutEffect as useLayoutEffect11,
243
242
  useMemo as useMemo32,
@@ -756,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
756
755
  });
757
756
  }, useIsPlayer = () => {
758
757
  return useContext(IsPlayerContext);
759
- }, VERSION = "4.0.379", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.381", checkMultipleRemotionVersions = () => {
760
759
  if (typeof globalThis === "undefined") {
761
760
  return;
762
761
  }
@@ -3067,8 +3066,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
3067
3066
  if (numberOfAudioTags !== initialNumberOfAudioTags) {
3068
3067
  throw new Error("The number of shared audio tags has changed dynamically. Once you have set this property, you cannot change it afterwards.");
3069
3068
  }
3070
- const compositionManager = useContext16(CompositionManager);
3071
- const component = compositionManager.compositions.find((c) => compositionManager.canvasContent?.type === "composition" ? c.id === compositionManager.canvasContent.compositionId : null);
3072
3069
  const logLevel = useLogLevel();
3073
3070
  const audioContext = useSingletonAudioContext(logLevel, audioLatencyHint);
3074
3071
  const refs = useMemo15(() => {
@@ -3207,16 +3204,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
3207
3204
  updateAudio,
3208
3205
  audioContext
3209
3206
  ]);
3210
- const resetAudio = useCallback7(() => {
3211
- takenAudios.current = new Array(numberOfAudioTags).fill(false);
3212
- audios.current = [];
3213
- rerenderAudios();
3214
- }, [numberOfAudioTags, rerenderAudios]);
3215
- useEffect6(() => {
3216
- return () => {
3217
- resetAudio();
3218
- };
3219
- }, [component, resetAudio]);
3220
3207
  return /* @__PURE__ */ jsxs2(SharedAudioContext.Provider, {
3221
3208
  value,
3222
3209
  children: [
@@ -3524,7 +3511,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
3524
3511
  });
3525
3512
  }).join(",");
3526
3513
  }, [duration, startsAt, volume, mediaVolume]);
3527
- useEffect7(() => {
3514
+ useEffect6(() => {
3528
3515
  if (typeof volume === "number" && volume !== initialVolume) {
3529
3516
  warnOnce2(`Remotion: The ${mediaType} with src ${src} has changed it's volume. Prefer the callback syntax for setting volume to get better timeline display: https://www.remotion.dev/docs/audio/volume`);
3530
3517
  }
@@ -3577,7 +3564,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
3577
3564
  trimBefore: undefined,
3578
3565
  playbackRate
3579
3566
  });
3580
- useEffect7(() => {
3567
+ useEffect6(() => {
3581
3568
  if (!src) {
3582
3569
  throw new Error("No src passed");
3583
3570
  }
@@ -3667,7 +3654,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
3667
3654
  }
3668
3655
  };
3669
3656
  }, []);
3670
- useEffect8(() => {
3657
+ useEffect7(() => {
3671
3658
  if (blocks.length > 0) {
3672
3659
  onBufferingCallbacks.forEach((c) => c());
3673
3660
  playbackLogging({
@@ -3703,7 +3690,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
3703
3690
  });
3704
3691
  }, useIsPlayerBuffering = (bufferManager) => {
3705
3692
  const [isBuffering, setIsBuffering] = useState13(bufferManager.buffering.current);
3706
- useEffect8(() => {
3693
+ useEffect7(() => {
3707
3694
  const onBuffer = () => {
3708
3695
  setIsBuffering(true);
3709
3696
  };
@@ -3866,7 +3853,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
3866
3853
  }) => {
3867
3854
  const buffer = useBufferState();
3868
3855
  const [isBuffering, setIsBuffering] = useState14(false);
3869
- useEffect9(() => {
3856
+ useEffect8(() => {
3870
3857
  let cleanupFns = [];
3871
3858
  const { current } = element;
3872
3859
  if (!current) {
@@ -3998,7 +3985,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
3998
3985
  onVariableFpsVideoDetected
3999
3986
  }) => {
4000
3987
  const currentTime = useRef10(null);
4001
- useEffect10(() => {
3988
+ useEffect9(() => {
4002
3989
  const { current } = mediaRef;
4003
3990
  if (current) {
4004
3991
  currentTime.current = {
@@ -4180,7 +4167,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
4180
4167
  return acceptableTimeshift ?? defaultAcceptableTimeshift;
4181
4168
  })();
4182
4169
  const isPlayerBuffering = useIsPlayerBuffering(buffering);
4183
- useEffect11(() => {
4170
+ useEffect10(() => {
4184
4171
  if (mediaRef.current?.paused) {
4185
4172
  return;
4186
4173
  }
@@ -4225,7 +4212,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
4225
4212
  mediaRef.current.playbackRate = playbackRateToSet;
4226
4213
  }
4227
4214
  }, [mediaRef, playbackRate]);
4228
- useEffect11(() => {
4215
+ useEffect10(() => {
4229
4216
  const tagName = mediaType === "audio" ? "<Html5Audio>" : "<Html5Video>";
4230
4217
  if (!mediaRef.current) {
4231
4218
  throw new Error(`No ${mediaType} ref found`);
@@ -4353,7 +4340,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
4353
4340
  const logLevel = useLogLevel();
4354
4341
  const mountTime = useMountTime();
4355
4342
  const env = useRemotionEnvironment();
4356
- useEffect12(() => {
4343
+ useEffect11(() => {
4357
4344
  const tag = {
4358
4345
  id,
4359
4346
  play: (reason) => {
@@ -4546,7 +4533,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
4546
4533
  }, [audioRef]);
4547
4534
  const currentOnDurationCallback = useRef12(onDuration);
4548
4535
  currentOnDurationCallback.current = onDuration;
4549
- useEffect13(() => {
4536
+ useEffect12(() => {
4550
4537
  const { current } = audioRef;
4551
4538
  if (!current) {
4552
4539
  return;
@@ -4613,7 +4600,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
4613
4600
  useImperativeHandle7(ref, () => {
4614
4601
  return audioRef.current;
4615
4602
  }, []);
4616
- useEffect14(() => {
4603
+ useEffect13(() => {
4617
4604
  if (!props.src) {
4618
4605
  throw new Error("No src passed");
4619
4606
  }
@@ -4917,7 +4904,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
4917
4904
  }
4918
4905
  }, Fallback = () => {
4919
4906
  const { continueRender: continueRender2, delayRender: delayRender2 } = useDelayRender();
4920
- useEffect16(() => {
4907
+ useEffect15(() => {
4921
4908
  const fallback = delayRender2("Waiting for Root component to unsuspend");
4922
4909
  return () => continueRender2(fallback);
4923
4910
  }, [continueRender2, delayRender2]);
@@ -4954,7 +4941,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
4954
4941
  throw new Error("<Composition> mounted inside another composition. See https://remotion.dev/docs/wrong-composition-mount for help.");
4955
4942
  }
4956
4943
  const { folderName, parentName } = useContext29(FolderContext);
4957
- useEffect16(() => {
4944
+ useEffect15(() => {
4958
4945
  if (!id) {
4959
4946
  throw new Error("No id for composition passed.");
4960
4947
  }
@@ -4993,7 +4980,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
4993
4980
  registerComposition,
4994
4981
  unregisterComposition
4995
4982
  ]);
4996
- useEffect16(() => {
4983
+ useEffect15(() => {
4997
4984
  window.dispatchEvent(new CustomEvent(PROPS_UPDATED_EXTERNALLY, {
4998
4985
  detail: {
4999
4986
  resetUnsaved: id
@@ -5001,7 +4988,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5001
4988
  }));
5002
4989
  }, [defaultProps, id]);
5003
4990
  const resolved = useResolvedVideoConfig(id);
5004
- if (environment.isStudio && video && video.component === lazy) {
4991
+ if (environment.isStudio && video && video.component === lazy && video.id === id) {
5005
4992
  const Comp = lazy;
5006
4993
  if (resolved === null || resolved.type !== "success" && resolved.type !== "success-and-refreshing") {
5007
4994
  return null;
@@ -5015,7 +5002,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5015
5002
  })
5016
5003
  }), portalNode());
5017
5004
  }
5018
- if (environment.isRendering && video && video.component === lazy) {
5005
+ if (environment.isRendering && video && video.component === lazy && video.id === id) {
5019
5006
  const Comp = lazy;
5020
5007
  if (resolved === null || resolved.type !== "success" && resolved.type !== "success-and-refreshing") {
5021
5008
  return null;
@@ -5418,7 +5405,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5418
5405
  }
5419
5406
  };
5420
5407
  }, []);
5421
- useEffect17(() => {
5408
+ useEffect16(() => {
5422
5409
  if (typeof __webpack_module__ !== "undefined") {
5423
5410
  if (__webpack_module__.hot) {
5424
5411
  __webpack_module__.hot.addStatusHandler((status) => {
@@ -5553,7 +5540,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5553
5540
  mediaVolume: 1
5554
5541
  });
5555
5542
  warnAboutTooHighVolume(volume);
5556
- useEffect18(() => {
5543
+ useEffect17(() => {
5557
5544
  if (!src) {
5558
5545
  throw new Error("No src passed");
5559
5546
  }
@@ -5713,7 +5700,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5713
5700
  ref,
5714
5701
  onVideoFrame
5715
5702
  }) => {
5716
- useEffect19(() => {
5703
+ useEffect18(() => {
5717
5704
  const { current } = ref;
5718
5705
  if (!current) {
5719
5706
  return;
@@ -5859,7 +5846,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5859
5846
  tag: "video",
5860
5847
  mountTime
5861
5848
  }));
5862
- useEffect20(() => {
5849
+ useEffect19(() => {
5863
5850
  const { current } = videoRef;
5864
5851
  if (!current) {
5865
5852
  return;
@@ -5890,7 +5877,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5890
5877
  const currentOnDurationCallback = useRef16(onDuration);
5891
5878
  currentOnDurationCallback.current = onDuration;
5892
5879
  useEmitVideoFrame({ ref: videoRef, onVideoFrame });
5893
- useEffect20(() => {
5880
+ useEffect19(() => {
5894
5881
  const { current } = videoRef;
5895
5882
  if (!current) {
5896
5883
  return;
@@ -5907,7 +5894,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5907
5894
  current.removeEventListener("loadedmetadata", onLoadedMetadata);
5908
5895
  };
5909
5896
  }, [src]);
5910
- useEffect20(() => {
5897
+ useEffect19(() => {
5911
5898
  const { current } = videoRef;
5912
5899
  if (!current) {
5913
5900
  return;
@@ -6485,7 +6472,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
6485
6472
  mediaVolume: 1
6486
6473
  });
6487
6474
  warnAboutTooHighVolume(volume);
6488
- useEffect21(() => {
6475
+ useEffect20(() => {
6489
6476
  if (!props2.src) {
6490
6477
  throw new Error("No src passed");
6491
6478
  }
@@ -6528,7 +6515,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
6528
6515
  useImperativeHandle11(ref, () => {
6529
6516
  return videoRef.current;
6530
6517
  }, []);
6531
- useEffect21(() => {
6518
+ useEffect20(() => {
6532
6519
  if (!window.remotion_videoEnabled) {
6533
6520
  return;
6534
6521
  }
@@ -7260,7 +7247,7 @@ __export(exports_esm, {
7260
7247
  Lottie: () => Lottie
7261
7248
  });
7262
7249
  import lottie from "lottie-web";
7263
- import { useEffect as useEffect39, useRef as useRef36, useState as useState37 } from "react";
7250
+ import { useEffect as useEffect38, useRef as useRef36, useState as useState37 } from "react";
7264
7251
  import { jsx as jsx59 } from "react/jsx-runtime";
7265
7252
  var getLottieMetadata = (animationData) => {
7266
7253
  const width2 = animationData.w;
@@ -7332,14 +7319,14 @@ var getLottieMetadata = (animationData) => {
7332
7319
  onAnimationLoadedRef.current = onAnimationLoaded;
7333
7320
  const { delayRender, continueRender } = useDelayRender();
7334
7321
  const [handle] = useState37(() => delayRender("Waiting for Lottie animation to load"));
7335
- useEffect39(() => {
7322
+ useEffect38(() => {
7336
7323
  return () => {
7337
7324
  continueRender(handle);
7338
7325
  };
7339
7326
  }, [handle, continueRender]);
7340
7327
  const frame = useCurrentFrame();
7341
7328
  currentFrameRef.current = frame;
7342
- useEffect39(() => {
7329
+ useEffect38(() => {
7343
7330
  if (!containerRef.current) {
7344
7331
  return;
7345
7332
  }
@@ -7384,17 +7371,17 @@ var getLottieMetadata = (animationData) => {
7384
7371
  renderer,
7385
7372
  continueRender
7386
7373
  ]);
7387
- useEffect39(() => {
7374
+ useEffect38(() => {
7388
7375
  if (animationRef.current && direction) {
7389
7376
  animationRef.current.setDirection(direction === "backward" ? -1 : 1);
7390
7377
  }
7391
7378
  }, [direction]);
7392
- useEffect39(() => {
7379
+ useEffect38(() => {
7393
7380
  if (animationRef.current && playbackRate) {
7394
7381
  animationRef.current.setSpeed(playbackRate);
7395
7382
  }
7396
7383
  }, [playbackRate]);
7397
- useEffect39(() => {
7384
+ useEffect38(() => {
7398
7385
  if (!animationRef.current) {
7399
7386
  return;
7400
7387
  }
@@ -8771,7 +8758,7 @@ var getDefaultConfig = () => {
8771
8758
  var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
8772
8759
 
8773
8760
  // ../design/dist/esm/index.mjs
8774
- import React7, { useEffect as useEffect22, useMemo as useMemo33, useState as useState21 } from "react";
8761
+ import React7, { useEffect as useEffect21, useMemo as useMemo33, useState as useState21 } from "react";
8775
8762
 
8776
8763
  // ../paths/dist/esm/index.mjs
8777
8764
  var cutLInstruction = ({
@@ -12912,7 +12899,7 @@ var extrudeAndTransformElement = (options) => {
12912
12899
  init_esm();
12913
12900
  import { jsx as jsx37, Fragment } from "react/jsx-runtime";
12914
12901
  import { jsx as jsx210, jsxs as jsxs3 } from "react/jsx-runtime";
12915
- import { useEffect as useEffect23, useMemo as useMemo210, useRef as useRef18 } from "react";
12902
+ import { useEffect as useEffect22, useMemo as useMemo210, useRef as useRef18 } from "react";
12916
12903
  import { jsx as jsx38 } from "react/jsx-runtime";
12917
12904
  import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
12918
12905
  import React42 from "react";
@@ -13000,7 +12987,7 @@ var useHoverTransforms = (ref, disabled) => {
13000
12987
  isActive: false
13001
12988
  });
13002
12989
  const eventTarget = useMemo33(() => new EventTarget, []);
13003
- useEffect22(() => {
12990
+ useEffect21(() => {
13004
12991
  if (disabled) {
13005
12992
  eventTarget.dispatchEvent(new Event("disabled"));
13006
12993
  } else {
@@ -13147,7 +13134,7 @@ var getAngle = (ref, coordinates) => {
13147
13134
  var lastCoordinates = null;
13148
13135
  var useMousePosition = (ref) => {
13149
13136
  const [angle, setAngle] = useState21(getAngle(ref.current, lastCoordinates));
13150
- useEffect22(() => {
13137
+ useEffect21(() => {
13151
13138
  const element = ref.current;
13152
13139
  if (!element) {
13153
13140
  return;
@@ -13268,7 +13255,7 @@ var Spinner = ({ size, duration }) => {
13268
13255
  };
13269
13256
  }, [size]);
13270
13257
  const pathsRef = useRef18([]);
13271
- useEffect23(() => {
13258
+ useEffect22(() => {
13272
13259
  const animate = () => {
13273
13260
  const now = performance.now();
13274
13261
  for (let index = 0;index < lines; index++) {
@@ -20076,7 +20063,7 @@ var Pricing = () => {
20076
20063
  };
20077
20064
 
20078
20065
  // src/components/homepage/BackgroundAnimation.tsx
20079
- import { useEffect as useEffect36 } from "react";
20066
+ import { useEffect as useEffect35 } from "react";
20080
20067
  import { jsx as jsx46, jsxs as jsxs11 } from "react/jsx-runtime";
20081
20068
  "use client";
20082
20069
  var rx = 0.2;
@@ -20102,7 +20089,7 @@ var BackgroundAnimation = () => {
20102
20089
  }
20103
20090
  }
20104
20091
  `;
20105
- useEffect36(() => {
20092
+ useEffect35(() => {
20106
20093
  const _style = document.createElement("style");
20107
20094
  _style.innerHTML = css;
20108
20095
  document.head.appendChild(_style);
@@ -20525,10 +20512,10 @@ import { jsx as jsx50, jsxs as jsxs14 } from "react/jsx-runtime";
20525
20512
  import { jsx as jsx213, jsxs as jsxs24, Fragment as Fragment6 } from "react/jsx-runtime";
20526
20513
  import React41 from "react";
20527
20514
  import { useContext as useContext210, useEffect as useEffect210, useState as useState35 } from "react";
20528
- import { useContext as useContext40, useEffect as useEffect37 } from "react";
20515
+ import { useContext as useContext40, useEffect as useEffect36 } from "react";
20529
20516
  import { jsx as jsx310 } from "react/jsx-runtime";
20530
20517
  import { useCallback as useCallback27, useRef as useRef32 } from "react";
20531
- import { useEffect as useEffect38, useState as useState210 } from "react";
20518
+ import { useEffect as useEffect37, useState as useState210 } from "react";
20532
20519
  import { useContext as useContext42, useEffect as useEffect62, useRef as useRef42 } from "react";
20533
20520
  import { useEffect as useEffect42 } from "react";
20534
20521
  import { useCallback as useCallback28, useContext as useContext37, useMemo as useMemo42, useRef as useRef24, useState as useState36 } from "react";
@@ -21671,7 +21658,7 @@ var useBufferStateEmitter = (emitter) => {
21671
21658
  if (!bufferManager) {
21672
21659
  throw new Error("BufferingContextReact not found");
21673
21660
  }
21674
- useEffect37(() => {
21661
+ useEffect36(() => {
21675
21662
  const clear1 = bufferManager.listenForBuffering(() => {
21676
21663
  bufferManager.buffering.current = true;
21677
21664
  emitter.dispatchWaiting({});
@@ -21705,7 +21692,7 @@ var PlayerEmitterProvider = ({ children, currentPlaybackRate }) => {
21705
21692
  };
21706
21693
  var useHoverState = (ref, hideControlsWhenPointerDoesntMove) => {
21707
21694
  const [hovered, setHovered] = useState210(false);
21708
- useEffect38(() => {
21695
+ useEffect37(() => {
21709
21696
  const { current } = ref;
21710
21697
  if (!current) {
21711
21698
  return;
@@ -24605,7 +24592,7 @@ var Thumbnail = forward2(ThumbnailFn);
24605
24592
  // src/components/homepage/Demo/index.tsx
24606
24593
  import {
24607
24594
  useCallback as useCallback43,
24608
- useEffect as useEffect53,
24595
+ useEffect as useEffect51,
24609
24596
  useMemo as useMemo53,
24610
24597
  useRef as useRef41,
24611
24598
  useState as useState47
@@ -25383,14 +25370,14 @@ function useColorMode() {
25383
25370
 
25384
25371
  // src/components/homepage/Demo/Comp.tsx
25385
25372
  init_esm();
25386
- import { useCallback as useCallback36, useEffect as useEffect46, useMemo as useMemo48, useState as useState41 } from "react";
25373
+ import { useCallback as useCallback36, useEffect as useEffect45, useMemo as useMemo48, useState as useState41 } from "react";
25387
25374
 
25388
25375
  // src/components/homepage/Demo/Cards.tsx
25389
25376
  init_esm();
25390
25377
  import {
25391
25378
  createRef as createRef4,
25392
25379
  useCallback as useCallback35,
25393
- useEffect as useEffect45,
25380
+ useEffect as useEffect43,
25394
25381
  useRef as useRef38,
25395
25382
  useState as useState40
25396
25383
  } from "react";
@@ -25761,14 +25748,14 @@ init_esm();
25761
25748
  import {
25762
25749
  forwardRef as forwardRef29,
25763
25750
  useCallback as useCallback33,
25764
- useEffect as useEffect43,
25751
+ useEffect as useEffect41,
25765
25752
  useImperativeHandle as useImperativeHandle14,
25766
25753
  useRef as useRef37
25767
25754
  } from "react";
25768
25755
 
25769
25756
  // src/components/homepage/Demo/DisplayedEmoji.tsx
25770
25757
  init_esm();
25771
- import { useEffect as useEffect41, useMemo as useMemo46, useState as useState39 } from "react";
25758
+ import { useEffect as useEffect40, useMemo as useMemo46, useState as useState39 } from "react";
25772
25759
  import { jsx as jsx60 } from "react/jsx-runtime";
25773
25760
  var DisplayedEmoji = ({ emoji }) => {
25774
25761
  const [data, setData] = useState39(null);
@@ -25788,7 +25775,7 @@ var DisplayedEmoji = ({ emoji }) => {
25788
25775
  throw new Error("Unknown emoji");
25789
25776
  }, [emoji]);
25790
25777
  const [handle] = useState39(() => delayRender());
25791
- useEffect41(() => {
25778
+ useEffect40(() => {
25792
25779
  Promise.all([
25793
25780
  fetch(src).then((res) => res.json()),
25794
25781
  Promise.resolve().then(() => (init_esm2(), exports_esm)).then(({ Lottie: Lottie2, getLottieMetadata: getLottieMetadata2 }) => ({
@@ -25806,7 +25793,7 @@ var DisplayedEmoji = ({ emoji }) => {
25806
25793
  cancelRender(err);
25807
25794
  });
25808
25795
  }, [handle, src, continueRender]);
25809
- useEffect41(() => {
25796
+ useEffect40(() => {
25810
25797
  if (typeof document !== "undefined") {
25811
25798
  setBrowser(true);
25812
25799
  }
@@ -25902,7 +25889,7 @@ var EmojiCardRefFn = ({ emojiIndex }, ref) => {
25902
25889
  transforms: transforms.current
25903
25890
  });
25904
25891
  }, []);
25905
- useEffect43(() => {
25892
+ useEffect41(() => {
25906
25893
  if (!ref1.current || !ref2.current || !ref3.current) {
25907
25894
  return;
25908
25895
  }
@@ -25919,7 +25906,7 @@ var EmojiCardRefFn = ({ emojiIndex }, ref) => {
25919
25906
  onRight
25920
25907
  };
25921
25908
  }, [onLeft, onRight]);
25922
- useEffect43(() => {
25909
+ useEffect41(() => {
25923
25910
  if (!ref1.current || !ref2.current || !ref3.current) {
25924
25911
  return;
25925
25912
  }
@@ -26341,7 +26328,7 @@ var Cards = ({
26341
26328
  const positions = useRef38(getInitialPositions());
26342
26329
  const shouldBePositions = useRef38(getInitialPositions());
26343
26330
  const { isRendering } = useRemotionEnvironment();
26344
- useEffect45(() => {
26331
+ useEffect43(() => {
26345
26332
  const { current } = container4;
26346
26333
  if (!current) {
26347
26334
  return;
@@ -26454,7 +26441,7 @@ var HomepageVideoComp = ({
26454
26441
  }
26455
26442
  return sadAudio;
26456
26443
  }, [emoji]);
26457
- useEffect46(() => {
26444
+ useEffect45(() => {
26458
26445
  const a = prefetch(fireAudio);
26459
26446
  const b = prefetch(partyHornAudio);
26460
26447
  const c = prefetch(sadAudio);
@@ -26880,10 +26867,10 @@ var DragAndDropNudge = () => {
26880
26867
 
26881
26868
  // src/components/homepage/Demo/PlayerSeekBar.tsx
26882
26869
  init_esm();
26883
- import { useCallback as useCallback39, useEffect as useEffect48, useMemo as useMemo51, useRef as useRef39, useState as useState45 } from "react";
26870
+ import { useCallback as useCallback39, useEffect as useEffect47, useMemo as useMemo51, useRef as useRef39, useState as useState45 } from "react";
26884
26871
 
26885
26872
  // src/components/homepage/layout/use-el-size.ts
26886
- import { useCallback as useCallback38, useEffect as useEffect47, useMemo as useMemo50, useState as useState43 } from "react";
26873
+ import { useCallback as useCallback38, useEffect as useEffect46, useMemo as useMemo50, useState as useState43 } from "react";
26887
26874
  var useElementSize2 = (ref) => {
26888
26875
  const [size4, setSize] = useState43(null);
26889
26876
  const observer = useMemo50(() => {
@@ -26907,7 +26894,7 @@ var useElementSize2 = (ref) => {
26907
26894
  height: rect[0].height
26908
26895
  });
26909
26896
  }, [ref]);
26910
- useEffect47(() => {
26897
+ useEffect46(() => {
26911
26898
  updateSize();
26912
26899
  if (!observer) {
26913
26900
  return;
@@ -26963,7 +26950,7 @@ var findBodyInWhichDivIsLocated2 = (div) => {
26963
26950
  };
26964
26951
  var useHoverState2 = (ref, hideControlsWhenPointerDoesntMove) => {
26965
26952
  const [hovered, setHovered] = useState45(false);
26966
- useEffect48(() => {
26953
+ useEffect47(() => {
26967
26954
  const { current } = ref;
26968
26955
  if (!current) {
26969
26956
  return;
@@ -27014,7 +27001,7 @@ var PlayerSeekBar2 = ({
27014
27001
  const size4 = useElementSize2(containerRef.current);
27015
27002
  const [playing, setPlaying] = useState45(false);
27016
27003
  const [frame, setFrame] = useState45(0);
27017
- useEffect48(() => {
27004
+ useEffect47(() => {
27018
27005
  const { current } = playerRef;
27019
27006
  if (!current) {
27020
27007
  return;
@@ -27027,7 +27014,7 @@ var PlayerSeekBar2 = ({
27027
27014
  current.removeEventListener("frameupdate", onFrameUpdate);
27028
27015
  };
27029
27016
  }, [playerRef]);
27030
- useEffect48(() => {
27017
+ useEffect47(() => {
27031
27018
  const { current } = playerRef;
27032
27019
  if (!current) {
27033
27020
  return;
@@ -27088,7 +27075,7 @@ var PlayerSeekBar2 = ({
27088
27075
  }
27089
27076
  onSeekEnd();
27090
27077
  }, [dragging, onSeekEnd, playerRef]);
27091
- useEffect48(() => {
27078
+ useEffect47(() => {
27092
27079
  if (!dragging.dragging) {
27093
27080
  return;
27094
27081
  }
@@ -27158,7 +27145,7 @@ var PlayerSeekBar2 = ({
27158
27145
  };
27159
27146
 
27160
27147
  // src/components/homepage/Demo/PlayerVolume.tsx
27161
- import { useCallback as useCallback40, useEffect as useEffect49, useRef as useRef40, useState as useState46 } from "react";
27148
+ import { useCallback as useCallback40, useEffect as useEffect48, useRef as useRef40, useState as useState46 } from "react";
27162
27149
 
27163
27150
  // src/components/homepage/Demo/icons.tsx
27164
27151
  import { jsx as jsx90 } from "react/jsx-runtime";
@@ -27219,7 +27206,7 @@ var PlayerVolume = ({ playerRef }) => {
27219
27206
  const [muted, setIsMuted] = useState46(() => playerRef.current?.isMuted() ?? true);
27220
27207
  const [isHovered, setIsHovered] = useState46(false);
27221
27208
  const timerRef = useRef40(null);
27222
- useEffect49(() => {
27209
+ useEffect48(() => {
27223
27210
  const { current } = playerRef;
27224
27211
  if (!current) {
27225
27212
  return;
@@ -27232,7 +27219,7 @@ var PlayerVolume = ({ playerRef }) => {
27232
27219
  current.removeEventListener("mutechange", onMutedChange);
27233
27220
  };
27234
27221
  }, [playerRef]);
27235
- useEffect49(() => {
27222
+ useEffect48(() => {
27236
27223
  if (isHovered) {
27237
27224
  document.body.style.userSelect = "none";
27238
27225
  } else {
@@ -27277,7 +27264,7 @@ var PlayerVolume = ({ playerRef }) => {
27277
27264
  };
27278
27265
 
27279
27266
  // src/components/homepage/Demo/PlayPauseButton.tsx
27280
- import React58, { useCallback as useCallback41, useEffect as useEffect50 } from "react";
27267
+ import React58, { useCallback as useCallback41, useEffect as useEffect49 } from "react";
27281
27268
  import { jsx as jsx95 } from "react/jsx-runtime";
27282
27269
  var playerButtonStyle2 = {
27283
27270
  appearance: "none",
@@ -27295,7 +27282,7 @@ var playerButtonStyle2 = {
27295
27282
  };
27296
27283
  var PlayPauseButton = ({ playerRef }) => {
27297
27284
  const [playing, setPlaying] = React58.useState(true);
27298
- useEffect50(() => {
27285
+ useEffect49(() => {
27299
27286
  const { current } = playerRef;
27300
27287
  if (!current) {
27301
27288
  return;
@@ -27332,7 +27319,7 @@ var PlayPauseButton = ({ playerRef }) => {
27332
27319
  };
27333
27320
 
27334
27321
  // src/components/homepage/Demo/TimeDisplay.tsx
27335
- import React59, { useEffect as useEffect51 } from "react";
27322
+ import React59, { useEffect as useEffect50 } from "react";
27336
27323
  import { jsx as jsx97 } from "react/jsx-runtime";
27337
27324
  var formatTime2 = (timeInSeconds) => {
27338
27325
  const minutes = Math.floor(timeInSeconds / 60);
@@ -27341,7 +27328,7 @@ var formatTime2 = (timeInSeconds) => {
27341
27328
  };
27342
27329
  var TimeDisplay = ({ fps, playerRef }) => {
27343
27330
  const [time, setTime] = React59.useState(0);
27344
- useEffect51(() => {
27331
+ useEffect50(() => {
27345
27332
  const { current } = playerRef;
27346
27333
  if (!current) {
27347
27334
  return;
@@ -27512,7 +27499,7 @@ var Demo = () => {
27512
27499
  const [cardOrder, setCardOrder] = useState47([0, 1, 2, 3]);
27513
27500
  const [emojiIndex, setEmojiIndex] = useState47(0);
27514
27501
  const [error2, setError] = useState47(false);
27515
- useEffect53(() => {
27502
+ useEffect51(() => {
27516
27503
  getDataAndProps().then((d2) => {
27517
27504
  setData(d2);
27518
27505
  }).catch((err) => {
@@ -27520,7 +27507,7 @@ var Demo = () => {
27520
27507
  setError(true);
27521
27508
  });
27522
27509
  }, []);
27523
- useEffect53(() => {
27510
+ useEffect51(() => {
27524
27511
  const { current: playerRef } = ref;
27525
27512
  if (!playerRef || !data2) {
27526
27513
  return;
@@ -27654,16 +27641,16 @@ var ClearButton = (props) => {
27654
27641
 
27655
27642
  // src/components/homepage/MuxVideo.tsx
27656
27643
  import Hls2 from "hls.js";
27657
- import { forwardRef as forwardRef31, useEffect as useEffect56, useImperativeHandle as useImperativeHandle15, useRef as useRef45 } from "react";
27644
+ import { forwardRef as forwardRef31, useEffect as useEffect55, useImperativeHandle as useImperativeHandle15, useRef as useRef45 } from "react";
27658
27645
 
27659
27646
  // src/components/homepage/VideoPlayerWithControls.tsx
27660
27647
  import Hls from "hls.js";
27661
27648
  import"plyr/dist/plyr.css";
27662
- import { forwardRef as forwardRef30, useCallback as useCallback45, useEffect as useEffect55, useRef as useRef43, useState as useState48 } from "react";
27649
+ import { forwardRef as forwardRef30, useCallback as useCallback45, useEffect as useEffect53, useRef as useRef43, useState as useState48 } from "react";
27663
27650
  import { jsx as jsx105 } from "react/jsx-runtime";
27664
27651
  var useCombinedRefs = function(...refs) {
27665
27652
  const targetRef = useRef43(null);
27666
- useEffect55(() => {
27653
+ useEffect53(() => {
27667
27654
  refs.forEach((ref) => {
27668
27655
  if (!ref)
27669
27656
  return;
@@ -27692,12 +27679,12 @@ var VideoPlayerWithControls = forwardRef30(({ playbackId, poster, currentTime, o
27692
27679
  console.error("Error getting img dimensions", event);
27693
27680
  }
27694
27681
  }, [onLoaded, onSize]);
27695
- useEffect55(() => {
27682
+ useEffect53(() => {
27696
27683
  const img = new Image;
27697
27684
  img.onload = (evt) => onImageLoad(evt);
27698
27685
  img.src = poster;
27699
27686
  }, [onImageLoad, poster]);
27700
- useEffect55(() => {
27687
+ useEffect53(() => {
27701
27688
  const video = videoRef.current;
27702
27689
  const src = `https://stream.mux.com/${playbackId}.m3u8`;
27703
27690
  let hls;
@@ -27740,7 +27727,7 @@ var VideoPlayerWithControls = forwardRef30(({ playbackId, poster, currentTime, o
27740
27727
  }
27741
27728
  };
27742
27729
  }, [playbackId, playerInitTime, videoError, videoRef]);
27743
- useEffect55(() => {
27730
+ useEffect53(() => {
27744
27731
  const video = videoRef.current;
27745
27732
  if (currentTime && video) {
27746
27733
  video.currentTime = currentTime;
@@ -27767,7 +27754,7 @@ var MuxVideoForward = ({ muxId, ...props }, ref) => {
27767
27754
  const videoRef = useRef45(null);
27768
27755
  const vidUrl = getVideoToPlayUrl(muxId);
27769
27756
  useImperativeHandle15(ref, () => videoRef.current, []);
27770
- useEffect56(() => {
27757
+ useEffect55(() => {
27771
27758
  let hls;
27772
27759
  if (videoRef.current) {
27773
27760
  const { current } = videoRef;
@@ -27880,11 +27867,11 @@ var EditorStarterSection = () => {
27880
27867
  var EditorStarterSection_default = EditorStarterSection;
27881
27868
 
27882
27869
  // src/components/homepage/EvaluateRemotion.tsx
27883
- import { useEffect as useEffect57, useState as useState49 } from "react";
27870
+ import { useEffect as useEffect56, useState as useState49 } from "react";
27884
27871
  import { jsx as jsx109, jsxs as jsxs41 } from "react/jsx-runtime";
27885
27872
  var EvaluateRemotionSection = () => {
27886
27873
  const [dailyAvatars, setDailyAvatars] = useState49([]);
27887
- useEffect57(() => {
27874
+ useEffect56(() => {
27888
27875
  const avatars = [
27889
27876
  "/img/freelancers/alex.jpeg",
27890
27877
  "/img/freelancers/antoine.jpeg",
@@ -27983,7 +27970,7 @@ var EvaluateRemotionSection = () => {
27983
27970
  var EvaluateRemotion_default = EvaluateRemotionSection;
27984
27971
 
27985
27972
  // src/components/homepage/IfYouKnowReact.tsx
27986
- import { useEffect as useEffect58, useState as useState50 } from "react";
27973
+ import { useEffect as useEffect57, useState as useState50 } from "react";
27987
27974
  import { jsx as jsx110, jsxs as jsxs43 } from "react/jsx-runtime";
27988
27975
  var isWebkit = () => {
27989
27976
  if (typeof window === "undefined") {
@@ -27999,7 +27986,7 @@ var icon2 = {
27999
27986
  };
28000
27987
  var IfYouKnowReact = () => {
28001
27988
  const [vid, setVid] = useState50("/img/compose.webm");
28002
- useEffect58(() => {
27989
+ useEffect57(() => {
28003
27990
  if (isWebkit()) {
28004
27991
  setVid("/img/compose.mp4");
28005
27992
  }
@@ -28146,7 +28133,7 @@ var NewsletterButton = () => {
28146
28133
  };
28147
28134
 
28148
28135
  // src/components/homepage/ParameterizeAndEdit.tsx
28149
- import { useEffect as useEffect59, useRef as useRef46, useState as useState53 } from "react";
28136
+ import { useEffect as useEffect58, useRef as useRef46, useState as useState53 } from "react";
28150
28137
  import { jsx as jsx114, jsxs as jsxs46 } from "react/jsx-runtime";
28151
28138
  var icon3 = {
28152
28139
  height: 16,
@@ -28155,7 +28142,7 @@ var icon3 = {
28155
28142
  var ParameterizeAndEdit = () => {
28156
28143
  const ref = useRef46(null);
28157
28144
  const [vid, setVid] = useState53("/img/editing-vp9-chrome.webm");
28158
- useEffect59(() => {
28145
+ useEffect58(() => {
28159
28146
  if (isWebkit()) {
28160
28147
  setVid("/img/editing-safari.mp4");
28161
28148
  }
@@ -28269,7 +28256,7 @@ var ParameterizeAndEdit = () => {
28269
28256
  };
28270
28257
 
28271
28258
  // src/components/homepage/RealMp4Videos.tsx
28272
- import { useEffect as useEffect60, useRef as useRef47, useState as useState55 } from "react";
28259
+ import { useEffect as useEffect59, useRef as useRef47, useState as useState55 } from "react";
28273
28260
  import { jsx as jsx116, jsxs as jsxs47 } from "react/jsx-runtime";
28274
28261
  var icon4 = {
28275
28262
  height: 16,
@@ -28279,12 +28266,12 @@ var RealMP4Videos = () => {
28279
28266
  const ref = useRef47(null);
28280
28267
  const videoRef = useRef47(null);
28281
28268
  const [vid, setVid] = useState55("/img/render-progress.webm");
28282
- useEffect60(() => {
28269
+ useEffect59(() => {
28283
28270
  if (isWebkit()) {
28284
28271
  setVid("/img/render-progress.mp4");
28285
28272
  }
28286
28273
  }, []);
28287
- useEffect60(() => {
28274
+ useEffect59(() => {
28288
28275
  const { current } = ref;
28289
28276
  if (!current) {
28290
28277
  return;
@@ -28530,7 +28517,7 @@ var TrustedByBanner = () => {
28530
28517
  var TrustedByBanner_default = TrustedByBanner;
28531
28518
 
28532
28519
  // src/components/homepage/VideoAppsShowcase.tsx
28533
- import { useEffect as useEffect61, useRef as useRef48, useState as useState56 } from "react";
28520
+ import { useEffect as useEffect60, useRef as useRef48, useState as useState56 } from "react";
28534
28521
  import { jsx as jsx118, jsxs as jsxs49 } from "react/jsx-runtime";
28535
28522
  var tabs = [
28536
28523
  "Music visualization",
@@ -28588,7 +28575,7 @@ var VideoAppsShowcase = () => {
28588
28575
  const [isPlaying, setIsPlaying] = useState56(false);
28589
28576
  const videoRef = useRef48(null);
28590
28577
  const containerRef = useRef48(null);
28591
- useEffect61(() => {
28578
+ useEffect60(() => {
28592
28579
  const video = videoRef.current;
28593
28580
  if (video) {
28594
28581
  video.pause();