zarebin-player-library 1.1.13 → 1.1.15

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.
@@ -11142,12 +11142,10 @@ video {
11142
11142
  bottom: 45px;
11143
11143
  }.pl-bottom-\[50px\]{
11144
11144
  bottom: 50px;
11145
- }.pl-bottom-\[56px\]{
11146
- bottom: 56px;
11147
11145
  }.pl-bottom-\[60px\]{
11148
11146
  bottom: 60px;
11149
- }.pl-bottom-\[66px\]{
11150
- bottom: 66px;
11147
+ }.pl-bottom-\[70px\]{
11148
+ bottom: 70px;
11151
11149
  }.pl-bottom-\[75px\]{
11152
11150
  bottom: 75px;
11153
11151
  }.pl-bottom-auto{
@@ -11571,6 +11569,8 @@ video {
11571
11569
  height: 1.75rem;
11572
11570
  }.pl-h-8{
11573
11571
  height: 2rem;
11572
+ }.pl-h-9{
11573
+ height: 2.25rem;
11574
11574
  }.pl-h-\[100dvh\]{
11575
11575
  height: 100dvh;
11576
11576
  }.pl-h-\[100px\]{
@@ -11684,6 +11684,8 @@ video {
11684
11684
  max-height: calc(100% - 102px);
11685
11685
  }.pl-max-h-screen{
11686
11686
  max-height: 100vh;
11687
+ }.pl-min-h-full{
11688
+ min-height: 100%;
11687
11689
  }.\!pl-w-2\/3{
11688
11690
  width: 66.666667% !important;
11689
11691
  }.\!pl-w-5{
@@ -12599,8 +12601,6 @@ video {
12599
12601
  padding: 0px !important;
12600
12602
  }.pl-p-0{
12601
12603
  padding: 0px;
12602
- }.pl-p-0\.5{
12603
- padding: 0.125rem;
12604
12604
  }.pl-p-1{
12605
12605
  padding: 0.25rem;
12606
12606
  }.pl-p-1\.5{
@@ -13293,9 +13293,6 @@ video {
13293
13293
  height: 2.75rem;
13294
13294
  }.lg\:pl-w-\[40\%\]{
13295
13295
  width: 40%;
13296
- }.lg\:pl-px-3{
13297
- padding-left: 0.75rem;
13298
- padding-right: 0.75rem;
13299
13296
  }.lg\:pl-pb-4{
13300
13297
  padding-bottom: 1rem;
13301
13298
  }.lg\:pl-text-\[14px\]{
@@ -68835,51 +68835,54 @@ var useContinuousePlaybackTimer = () => {
68835
68835
  var ContinuousPlayback = () => {
68836
68836
  const { videoSettings } = useAppSelector(({ user: { videoSettings } }) => ({ videoSettings }), shallowEqual);
68837
68837
  const timer = useContinuousePlaybackTimer();
68838
- return /* @__PURE__ */ jsxs("div", {
68839
- className: "no-scrollbar z-[100000] pl-absolute pl-flex pl-h-full pl-w-full pl-flex-col pl-items-center pl-justify-center pl-overflow-y-auto pl-bg-white/[0.8] pl-px-6 pl-pb-1 dark:pl-bg-dark-1/[0.8]",
68838
+ return /* @__PURE__ */ jsx("div", {
68839
+ className: "no-scrollbar z-[100000] pl-absolute pl-h-full pl-w-full pl-overflow-y-auto pl-bg-white/[0.8] pl-px-6 pl-pb-1 dark:pl-bg-dark-1/[0.8]",
68840
68840
  style: { zIndex: zIndex.continuousPlayback },
68841
- children: [
68842
- /* @__PURE__ */ jsxs("div", {
68843
- className: `pl-flex pl-w-full ${conditions(ConditionName.isComplexPortrait) ? "pl-mb-[10px] pl-items-center pl-pb-3" : "pl-mb-[20px] pl-flex-col pl-pb-6"} pl-items-center pl-justify-center pl-border-b pl-border-secondary dark:pl-border-z-secondary-600`,
68844
- children: [
68845
- /* @__PURE__ */ jsx(ClockIcon, { className: "pl-h-5 pl-w-5 pl-fill-z-secondary-600 dark:pl-fill-z-secondary-500" }),
68846
- /* @__PURE__ */ jsx("p", {
68847
- className: `pl-text-[20px] pl-font-bold pl-text-gray-800 dark:pl-text-white ${conditions(ConditionName.isComplexPortrait) ? "pl-order-3 pl-mr-auto" : "pl-mb-1 pl-mt-3"}`,
68848
- children: secondsToHMS(videoSettings.time)
68849
- }),
68850
- /* @__PURE__ */ jsx("p", {
68851
- className: `pl-font-normal pl-text-gray-800 ${conditions(ConditionName.isComplexPortrait) ? "pl-mr-1 pl-text-[16px] dark:pl-text-white" : "pl-text-[12px] dark:pl-text-secondary"}`,
68852
- children: translate().previousViewingTime
68853
- })
68854
- ]
68855
- }),
68856
- /* @__PURE__ */ jsxs("div", {
68857
- className: "pl-flex pl-w-full pl-items-start pl-gap-2",
68858
- children: [/* @__PURE__ */ jsx(InfoIcon, { className: "pl-fill-main dark:pl-fill-main-lightPurple" }), /* @__PURE__ */ jsx("p", {
68859
- className: "pl-flex-1 pl-text-[14px] pl-font-medium pl-text-gray-800 dark:pl-text-white",
68860
- children: translate().continuousPlaybackText
68861
- })]
68862
- }),
68863
- /* @__PURE__ */ jsxs("form", {
68864
- className: `pl-flex pl-w-full pl-gap-2 ${conditions(ConditionName.isComplexPortrait) ? "pl-mt-5" : "pl-mt-10"} `,
68865
- children: [/* @__PURE__ */ jsxs("button", {
68866
- type: "submit",
68867
- className: "pl-w-full pl-rounded-[8px] !pl-bg-main-light pl-py-3 pl-text-[13px] pl-text-white pl-transition-colors pl-duration-300 hover:!pl-bg-main-700",
68868
- onClick: handleShowContinuousVideo,
68841
+ children: /* @__PURE__ */ jsxs("div", {
68842
+ className: "pl-flex pl-min-h-full pl-flex-col pl-items-center pl-justify-center",
68843
+ children: [
68844
+ /* @__PURE__ */ jsxs("div", {
68845
+ className: `pl-flex pl-w-full ${conditions(ConditionName.isComplexPortrait) ? "pl-mb-[10px] pl-items-center pl-pb-3" : "pl-mb-[20px] pl-flex-col pl-pb-6"} pl-items-center pl-justify-center pl-border-b pl-border-secondary dark:pl-border-z-secondary-600`,
68869
68846
  children: [
68870
- translate().watchContinuousVideo,
68871
- " (",
68872
- timer,
68873
- ")"
68847
+ /* @__PURE__ */ jsx(ClockIcon, { className: "pl-h-5 pl-w-5 pl-fill-z-secondary-600 dark:pl-fill-z-secondary-500" }),
68848
+ /* @__PURE__ */ jsx("p", {
68849
+ className: `pl-text-[20px] pl-font-bold pl-text-gray-800 dark:pl-text-white ${conditions(ConditionName.isComplexPortrait) ? "pl-order-3 pl-mr-auto" : "pl-mb-1 pl-mt-3"}`,
68850
+ children: secondsToHMS(videoSettings.time)
68851
+ }),
68852
+ /* @__PURE__ */ jsx("p", {
68853
+ className: `pl-font-normal pl-text-gray-800 ${conditions(ConditionName.isComplexPortrait) ? "pl-mr-1 pl-text-[16px] dark:pl-text-white" : "pl-text-[12px] dark:pl-text-secondary"}`,
68854
+ children: translate().previousViewingTime
68855
+ })
68874
68856
  ]
68875
- }), /* @__PURE__ */ jsx("button", {
68876
- type: "button",
68877
- className: "pl-w-full pl-rounded-[8px] pl-border-[1.5px] pl-border-secondary-400 pl-py-3 pl-text-[13px] pl-text-secondary-600 pl-transition-colors pl-duration-300 dark:pl-text-white",
68878
- onClick: handleGoToFirstVideo,
68879
- children: translate().watchCBeginningVideo
68880
- })]
68881
- })
68882
- ]
68857
+ }),
68858
+ /* @__PURE__ */ jsxs("div", {
68859
+ className: "pl-flex pl-w-full pl-items-start pl-gap-2",
68860
+ children: [/* @__PURE__ */ jsx(InfoIcon, { className: "pl-fill-main dark:pl-fill-main-lightPurple" }), /* @__PURE__ */ jsx("p", {
68861
+ className: "pl-flex-1 pl-text-[14px] pl-font-medium pl-text-gray-800 dark:pl-text-white",
68862
+ children: translate().continuousPlaybackText
68863
+ })]
68864
+ }),
68865
+ /* @__PURE__ */ jsxs("form", {
68866
+ className: `pl-flex pl-w-full pl-gap-2 ${conditions(ConditionName.isComplexPortrait) ? "pl-mt-5" : "pl-mt-10"} `,
68867
+ children: [/* @__PURE__ */ jsxs("button", {
68868
+ type: "submit",
68869
+ className: "pl-w-full pl-rounded-[8px] !pl-bg-main-light pl-py-3 pl-text-[13px] pl-text-white pl-transition-colors pl-duration-300 hover:!pl-bg-main-700",
68870
+ onClick: handleShowContinuousVideo,
68871
+ children: [
68872
+ translate().watchContinuousVideo,
68873
+ " (",
68874
+ timer,
68875
+ ")"
68876
+ ]
68877
+ }), /* @__PURE__ */ jsx("button", {
68878
+ type: "button",
68879
+ className: "pl-w-full pl-rounded-[8px] pl-border-[1.5px] pl-border-secondary-400 pl-py-3 pl-text-[13px] pl-text-secondary-600 pl-transition-colors pl-duration-300 dark:pl-text-white",
68880
+ onClick: handleGoToFirstVideo,
68881
+ children: translate().watchCBeginningVideo
68882
+ })]
68883
+ })
68884
+ ]
68885
+ })
68883
68886
  });
68884
68887
  };
68885
68888
  //#endregion
@@ -69013,7 +69016,7 @@ var MoreInfoButton = ({ link }) => link ? /* @__PURE__ */ jsx("div", {
69013
69016
  event.preventDefault();
69014
69017
  window.open(link);
69015
69018
  },
69016
- 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]"}`,
69019
+ className: `pl-absolute pl-z-[3] pl-flex pl-h-9 pl-cursor-pointer pl-items-center pl-gap-2 pl-rounded-lg pl-bg-gray-500 pl-py-1 pl-font-medium pl-text-gray-100 ${conditions(ConditionName.isTouchScreen) ? "pl-bottom-[60px] pl-left-2 pl-px-[10px] pl-text-xs lg:pl-bottom-[78px] lg:pl-h-11 lg:pl-text-[14px]" : "pl-bottom-[70px] pl-left-6 pl-px-5 pl-text-[16px] lg:pl-bottom-[88px]"}`,
69017
69020
  children: "اطلاعات بیشتر"
69018
69021
  }) : null;
69019
69022
  //#endregion
@@ -69028,7 +69031,7 @@ var SkipButton = ({ skipCounter }) => {
69028
69031
  dispatch(setAdData(void 0));
69029
69032
  },
69030
69033
  disabled: !!skipCounter && skipCounter > 0,
69031
- className: `pl-absolute pl-z-[3] pl-flex pl-size-max pl-items-center pl-rounded-lg pl-bg-gray-500 pl-p-0.5 pl-pl-4 ${conditions(ConditionName.isTouchScreen) ? "pl-bottom-[56px] pl-right-2 lg:pl-bottom-[78px]" : "pl-bottom-[66px] pl-right-6 lg:pl-bottom-[88px]"}`,
69034
+ className: `pl-absolute pl-z-[3] pl-flex pl-size-max pl-items-center pl-rounded-lg pl-bg-gray-500 pl-p-1 pl-pl-4 ${conditions(ConditionName.isTouchScreen) ? "pl-bottom-[60px] pl-right-2 lg:pl-bottom-[78px]" : "pl-bottom-[70px] pl-right-6 lg:pl-bottom-[88px]"}`,
69032
69035
  children: [adData?.banner && /* @__PURE__ */ jsx("img", {
69033
69036
  src: adData.banner,
69034
69037
  height: conditions(ConditionName.isTouchScreen) ? 40 : 44,
@@ -69138,8 +69141,8 @@ var Advertisement = () => {
69138
69141
  await handleFullScreen();
69139
69142
  await handleLockOrientation();
69140
69143
  },
69141
- className: `pl-flex pl-h-full pl-relative pl-w-full pl-flex-col pl-justify-end pl-bg-dark-1 ${conditions(ConditionName.isFullScreen) && "!pl-fixed !pl-right-0 !pl-top-0 !pl-h-screen !pl-w-screen"}`,
69142
- style: { zIndex: 100001 },
69144
+ className: `pl-relative pl-flex pl-h-full pl-w-full pl-flex-col pl-justify-end pl-bg-dark-1 ${conditions(ConditionName.isFullScreen) && "!pl-fixed !pl-right-0 !pl-top-0 !pl-h-screen !pl-w-screen"}`,
69145
+ style: { zIndex: 100005 },
69143
69146
  children: [
69144
69147
  /* @__PURE__ */ jsx("video", {
69145
69148
  id: "player-tag",
@@ -69152,7 +69155,7 @@ var Advertisement = () => {
69152
69155
  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]"}`,
69153
69156
  children: [
69154
69157
  /* @__PURE__ */ jsx("div", {
69155
- className: `pl-z-[3] pl-flex pl-items-center pl-gap-5 pl-self-end pl-px-2 lg: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"}`,
69158
+ className: `pl-relative pl-z-[3] pl-flex pl-w-full 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"}`,
69156
69159
  children: firstMute && /* @__PURE__ */ jsx(UnMuteVideo, {})
69157
69160
  }),
69158
69161
  /* @__PURE__ */ jsx("div", {