zarebin-player-library 1.0.33 → 1.0.34

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.
@@ -68934,7 +68934,7 @@ var useVideoControls = (ad, params) => {
68934
68934
  setIsCounting(true);
68935
68935
  setIsPaused(false);
68936
68936
  if (firstPlayRef.current) {
68937
- params.onAdView();
68937
+ params.ad.onAdView();
68938
68938
  setFirstPlay(false);
68939
68939
  }
68940
68940
  };
@@ -69017,7 +69017,7 @@ var useVideoControls = (ad, params) => {
69017
69017
  var MoreInfoButton = ({ link }) => link ? /* @__PURE__ */ jsx("a", {
69018
69018
  href: link,
69019
69019
  target: "_blank",
69020
- className: `pl-absolute pl-z-[3] pl-flex pl-cursor-pointer pl-items-center pl-gap-2 pl-rounded-lg pl-bg-gray-500 pl-font-medium pl-text-gray-100 ${conditions(ConditionName.isTouchScreen) ? "pl-bottom-[56px] lg:pl-bottom-[78px] pl-left-2 pl-px-[10px] pl-py-[6px] pl-text-xs lg:pl-text-[14px] lg:pl-h-11" : "pl-bottom-[66px] lg:pl-bottom-[88px] pl-left-6 pl-h-12 pl-px-5 pl-py-2 pl-text-[16px]"}`,
69020
+ className: `pl-absolute pl-z-[3] pl-flex pl-cursor-pointer pl-items-center pl-gap-2 pl-rounded-lg pl-bg-gray-500 pl-font-medium pl-text-gray-100 ${conditions(ConditionName.isTouchScreen) ? "pl-bottom-[56px] pl-left-2 pl-px-[10px] pl-py-[6px] pl-text-xs lg:pl-bottom-[78px] lg:pl-h-11 lg:pl-text-[14px]" : "pl-bottom-[66px] pl-left-6 pl-h-12 pl-px-5 pl-py-2 pl-text-[16px] lg:pl-bottom-[88px]"}`,
69021
69021
  children: "اطلاعات بیشتر"
69022
69022
  }) : null;
69023
69023
  //#endregion
@@ -69075,7 +69075,7 @@ var formatTime = (time) => {
69075
69075
  return `${Math.floor(time / 60).toString().padStart(2, "0")}:${Math.floor(time % 60).toString().padStart(2, "0")}`;
69076
69076
  };
69077
69077
  var VideoControls = ({ progress, buffered, duration, currentTime, showControls }) => /* @__PURE__ */ jsxs("div", {
69078
- className: `pl-relative pl-z-[3] pl-w-full pl-flex pl-flex-col pl-transition-opacity pl-duration-500 pl-ease-in-out ${showControls ? "pl-opacity-100" : "pl-pointer-events-none pl-opacity-0"} ${conditions(ConditionName.isTouchScreen) ? "pl-gap-2 pl-px-2" : "pl-gap-4 pl-px-5"}`,
69078
+ className: `pl-relative pl-z-[3] pl-flex pl-w-full pl-flex-col pl-transition-opacity pl-duration-500 pl-ease-in-out ${showControls ? "pl-opacity-100" : "pl-pointer-events-none pl-opacity-0"} ${conditions(ConditionName.isTouchScreen) ? "pl-gap-2 pl-px-2" : "pl-gap-4 pl-px-5"}`,
69079
69079
  children: [/* @__PURE__ */ jsx(ProgressBar, {
69080
69080
  progress,
69081
69081
  buffered
@@ -69156,7 +69156,7 @@ var Advertisement = () => {
69156
69156
  className: `pl-relative pl-flex pl-h-full pl-w-full pl-flex-col pl-justify-between ${conditions(ConditionName.isTouchScreen) ? "pl-pb-3 pl-pt-4 lg:pl-pb-4" : "pl-pb-5 pl-pt-[30px]"}`,
69157
69157
  children: [
69158
69158
  /* @__PURE__ */ jsx("div", {
69159
- className: `pl-relative pl-z-[3] pl-px-3 pl-flex pl-items-center pl-gap-5 pl-self-end ${conditions(ConditionName.isTouchScreenPortrait) && "!pl-h-max !pl-flex-col-reverse !pl-items-start !pl-gap-0 !pl-self-start"} ${conditions(ConditionName.isTouchScreenLandscape) && "!pl-flex-row-reverse !pl-justify-between !pl-self-stretch"}`,
69159
+ className: `pl-relative pl-z-[3] pl-flex pl-items-center pl-gap-5 pl-self-end pl-px-3 ${conditions(ConditionName.isTouchScreenPortrait) && "!pl-h-max !pl-flex-col-reverse !pl-items-start !pl-gap-0 !pl-self-start"} ${conditions(ConditionName.isTouchScreenLandscape) && "!pl-flex-row-reverse !pl-justify-between !pl-self-stretch"}`,
69160
69160
  children: firstMute && /* @__PURE__ */ jsx(UnMuteVideo, { advertisement: true })
69161
69161
  }),
69162
69162
  /* @__PURE__ */ jsx("div", {