@trafilea/afrodita-components 6.34.6 → 6.34.7

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.
@@ -12182,6 +12182,11 @@ var Video$1 = function (_a) {
12182
12182
  var isStarted = videoProgress > 0;
12183
12183
  var progress = videoProgress / ((_c = (_b = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _b === void 0 ? void 0 : _b.duration) !== null && _c !== void 0 ? _c : 0);
12184
12184
  var hideProgressBar = videoProgress === ((_e = (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.duration) !== null && _e !== void 0 ? _e : 0) || videoProgress === 0;
12185
+ useEffect(function () {
12186
+ if (videoRef.current) {
12187
+ videoRef.current.muted = Boolean(muted);
12188
+ }
12189
+ }, [muted]);
12185
12190
  var handlePlayClick = function () {
12186
12191
  if (videoRef.current && !debouncePlay) {
12187
12192
  setDebouncePlay(true);