@hopeplayer/core 1.5.0 → 1.7.0
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/HopePlayerElement.d.ts +47 -0
- package/dist/HopePlayerElement.d.ts.map +1 -1
- package/dist/chunks/adTriggers-DVqgm92F.js +420 -0
- package/dist/chunks/adTriggers-DVqgm92F.js.map +1 -0
- package/dist/chunks/{ads-C4tDPsUs.js → ads-eSKyiH1o.js} +2 -2
- package/dist/chunks/{ads-C4tDPsUs.js.map → ads-eSKyiH1o.js.map} +1 -1
- package/dist/chunks/audioDescription-cpprKeB-.js +146 -0
- package/dist/chunks/audioDescription-cpprKeB-.js.map +1 -0
- package/dist/chunks/{cast-Baxvu76A.js → cast-DEowHmqA.js} +29 -28
- package/dist/chunks/{cast-Baxvu76A.js.map → cast-DEowHmqA.js.map} +1 -1
- package/dist/chunks/docPip-Bh6BWPk-.js +92 -0
- package/dist/chunks/docPip-Bh6BWPk-.js.map +1 -0
- package/dist/chunks/heatmap-Bz_EMQFk.js +117 -0
- package/dist/chunks/heatmap-Bz_EMQFk.js.map +1 -0
- package/dist/chunks/{history-CvydU0aN.js → history-ZSdDDsRF.js} +35 -34
- package/dist/chunks/{history-CvydU0aN.js.map → history-ZSdDDsRF.js.map} +1 -1
- package/dist/chunks/interactive-ClJC5Vyo.js +213 -0
- package/dist/chunks/interactive-ClJC5Vyo.js.map +1 -0
- package/dist/chunks/{loopSection-CvF4l5uf.js → loopSection-Bwk4W8vz.js} +16 -16
- package/dist/chunks/loopSection-Bwk4W8vz.js.map +1 -0
- package/dist/chunks/{markers-Dr4-CCxE.js → markers-D32rI-x-.js} +53 -51
- package/dist/chunks/markers-D32rI-x-.js.map +1 -0
- package/dist/chunks/multiview-CL1WfJKt.js +295 -0
- package/dist/chunks/multiview-CL1WfJKt.js.map +1 -0
- package/dist/chunks/{pauseAd-BQQe21X4.js → pauseAd-DF7KGwUs.js} +32 -31
- package/dist/chunks/{pauseAd-BQQe21X4.js.map → pauseAd-DF7KGwUs.js.map} +1 -1
- package/dist/chunks/{player-DV4Hf5Cw.js → player-B7mYS--8.js} +1580 -1284
- package/dist/chunks/player-B7mYS--8.js.map +1 -0
- package/dist/chunks/{playlist-DJsdK6xm.js → playlist-BkhIOfCy.js} +2 -2
- package/dist/chunks/{playlist-DJsdK6xm.js.map → playlist-BkhIOfCy.js.map} +1 -1
- package/dist/chunks/plugin-style-CPJELe-i.js +17 -0
- package/dist/chunks/plugin-style-CPJELe-i.js.map +1 -0
- package/dist/chunks/{pluginHost-GxNfyP5E.js → pluginHost-CXqkjNV1.js} +2 -2
- package/dist/chunks/{pluginHost-GxNfyP5E.js.map → pluginHost-CXqkjNV1.js.map} +1 -1
- package/dist/chunks/redirectScreen-DgmjFVJH.js +251 -0
- package/dist/chunks/redirectScreen-DgmjFVJH.js.map +1 -0
- package/dist/chunks/rewardedUnlock-BL97P5ht.js +265 -0
- package/dist/chunks/{rewardedUnlock-jFOdzfSq.js.map → rewardedUnlock-BL97P5ht.js.map} +1 -1
- package/dist/chunks/segments-CuQQEIAX.js +66 -0
- package/dist/chunks/segments-CuQQEIAX.js.map +1 -0
- package/dist/chunks/share-BdqQ8sGE.js +216 -0
- package/dist/chunks/share-BdqQ8sGE.js.map +1 -0
- package/dist/chunks/{skipSegments-vJMhdiJn.js → skipSegments-BbepQ4Y6.js} +2 -2
- package/dist/chunks/{skipSegments-vJMhdiJn.js.map → skipSegments-BbepQ4Y6.js.map} +1 -1
- package/dist/chunks/sponsorship-DoAZBbHE.js +241 -0
- package/dist/chunks/{sponsorship-BT21uwN5.js.map → sponsorship-DoAZBbHE.js.map} +1 -1
- package/dist/chunks/{spriteThumbnails-BoxVY--_.js → spriteThumbnails-BYg-DHx4.js} +28 -28
- package/dist/chunks/spriteThumbnails-BYg-DHx4.js.map +1 -0
- package/dist/chunks/{sticky-D_eLCNFk.js → sticky-BDStzjBM.js} +27 -26
- package/dist/chunks/sticky-BDStzjBM.js.map +1 -0
- package/dist/chunks/{story-BRkhSDhR.js → story-DcBG6jUg.js} +2 -2
- package/dist/chunks/{story-BRkhSDhR.js.map → story-DcBG6jUg.js.map} +1 -1
- package/dist/chunks/transcript-CHPQ6S6E.js +206 -0
- package/dist/chunks/transcript-CHPQ6S6E.js.map +1 -0
- package/dist/controls/ContextMenu.d.ts +1 -0
- package/dist/controls/ContextMenu.d.ts.map +1 -1
- package/dist/controls/ControlBar.d.ts +6 -0
- package/dist/controls/ControlBar.d.ts.map +1 -1
- package/dist/controls/SeekBar.d.ts +5 -2
- package/dist/controls/SeekBar.d.ts.map +1 -1
- package/dist/controls/SettingsMenu.d.ts +2 -1
- package/dist/controls/SettingsMenu.d.ts.map +1 -1
- package/dist/hls/SourceManager.d.ts +2 -0
- package/dist/hls/SourceManager.d.ts.map +1 -1
- package/dist/hope-player.js +3 -3
- package/dist/i18n/index.d.ts +9 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/locales/en.d.ts +2 -2
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/tr.d.ts +2 -2
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/types.d.ts +52 -0
- package/dist/i18n/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/plugins/ad-triggers/AdTriggers.d.ts +5 -0
- package/dist/plugins/ad-triggers/AdTriggers.d.ts.map +1 -1
- package/dist/plugins/ad-triggers/index.d.ts.map +1 -1
- package/dist/plugins/audio-description/AudioDescription.d.ts +52 -0
- package/dist/plugins/audio-description/AudioDescription.d.ts.map +1 -0
- package/dist/plugins/audio-description/index.d.ts +6 -0
- package/dist/plugins/audio-description/index.d.ts.map +1 -0
- package/dist/plugins/audio-description/strings.d.ts +8 -0
- package/dist/plugins/audio-description/strings.d.ts.map +1 -0
- package/dist/plugins/cast/index.d.ts.map +1 -1
- package/dist/plugins/doc-pip/DocumentPip.d.ts +44 -0
- package/dist/plugins/doc-pip/DocumentPip.d.ts.map +1 -0
- package/dist/plugins/doc-pip/index.d.ts +5 -0
- package/dist/plugins/doc-pip/index.d.ts.map +1 -0
- package/dist/plugins/doc-pip/strings.d.ts +8 -0
- package/dist/plugins/doc-pip/strings.d.ts.map +1 -0
- package/dist/plugins/heatmap/Heatmap.d.ts +44 -0
- package/dist/plugins/heatmap/Heatmap.d.ts.map +1 -0
- package/dist/plugins/heatmap/index.d.ts +6 -0
- package/dist/plugins/heatmap/index.d.ts.map +1 -0
- package/dist/plugins/heatmap/strings.d.ts +8 -0
- package/dist/plugins/heatmap/strings.d.ts.map +1 -0
- package/dist/plugins/history/index.d.ts.map +1 -1
- package/dist/plugins/interactive/Interactive.d.ts +45 -0
- package/dist/plugins/interactive/Interactive.d.ts.map +1 -0
- package/dist/plugins/interactive/index.d.ts +6 -0
- package/dist/plugins/interactive/index.d.ts.map +1 -0
- package/dist/plugins/interactive/strings.d.ts +8 -0
- package/dist/plugins/interactive/strings.d.ts.map +1 -0
- package/dist/plugins/markers/MarkProgress.d.ts +3 -1
- package/dist/plugins/markers/MarkProgress.d.ts.map +1 -1
- package/dist/plugins/multiview/Multiview.d.ts +92 -0
- package/dist/plugins/multiview/Multiview.d.ts.map +1 -0
- package/dist/plugins/multiview/index.d.ts +6 -0
- package/dist/plugins/multiview/index.d.ts.map +1 -0
- package/dist/plugins/multiview/strings.d.ts +8 -0
- package/dist/plugins/multiview/strings.d.ts.map +1 -0
- package/dist/plugins/pause-ad/index.d.ts.map +1 -1
- package/dist/plugins/redirect-screen/RedirectScreen.d.ts +3 -1
- package/dist/plugins/redirect-screen/RedirectScreen.d.ts.map +1 -1
- package/dist/plugins/redirect-screen/index.d.ts.map +1 -1
- package/dist/plugins/redirect-screen/strings.d.ts +8 -0
- package/dist/plugins/redirect-screen/strings.d.ts.map +1 -0
- package/dist/plugins/rewarded/index.d.ts.map +1 -1
- package/dist/plugins/segments/Segments.d.ts +1 -0
- package/dist/plugins/segments/Segments.d.ts.map +1 -1
- package/dist/plugins/share/Share.d.ts +45 -0
- package/dist/plugins/share/Share.d.ts.map +1 -0
- package/dist/plugins/share/index.d.ts +6 -0
- package/dist/plugins/share/index.d.ts.map +1 -0
- package/dist/plugins/share/strings.d.ts +8 -0
- package/dist/plugins/share/strings.d.ts.map +1 -0
- package/dist/plugins/skip-segments/index.d.ts.map +1 -1
- package/dist/plugins/sponsorship/index.d.ts.map +1 -1
- package/dist/plugins/sprite-thumbnails/SpriteThumbnails.d.ts +1 -0
- package/dist/plugins/sprite-thumbnails/SpriteThumbnails.d.ts.map +1 -1
- package/dist/plugins/sticky/StickyManager.d.ts +2 -0
- package/dist/plugins/sticky/StickyManager.d.ts.map +1 -1
- package/dist/plugins/transcript/Transcript.d.ts +65 -0
- package/dist/plugins/transcript/Transcript.d.ts.map +1 -0
- package/dist/plugins/transcript/index.d.ts +6 -0
- package/dist/plugins/transcript/index.d.ts.map +1 -0
- package/dist/plugins/transcript/strings.d.ts +8 -0
- package/dist/plugins/transcript/strings.d.ts.map +1 -0
- package/dist/subtitles/attachTracks.d.ts +6 -0
- package/dist/subtitles/attachTracks.d.ts.map +1 -1
- package/dist/types/index.d.ts +257 -12
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/plugin-style.d.ts +5 -0
- package/dist/utils/plugin-style.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/chunks/adTriggers-DXmtF4t2.js +0 -410
- package/dist/chunks/adTriggers-DXmtF4t2.js.map +0 -1
- package/dist/chunks/loopSection-CvF4l5uf.js.map +0 -1
- package/dist/chunks/markers-Dr4-CCxE.js.map +0 -1
- package/dist/chunks/player-DV4Hf5Cw.js.map +0 -1
- package/dist/chunks/redirectScreen-BT_26-5g.js +0 -208
- package/dist/chunks/redirectScreen-BT_26-5g.js.map +0 -1
- package/dist/chunks/rewardedUnlock-jFOdzfSq.js +0 -264
- package/dist/chunks/segments--hl_QVrI.js +0 -63
- package/dist/chunks/segments--hl_QVrI.js.map +0 -1
- package/dist/chunks/sponsorship-BT21uwN5.js +0 -240
- package/dist/chunks/spriteThumbnails-BoxVY--_.js.map +0 -1
- package/dist/chunks/sticky-D_eLCNFk.js.map +0 -1
|
@@ -88,6 +88,20 @@ export declare class HopePlayerElement extends HTMLElement {
|
|
|
88
88
|
private geoChecker;
|
|
89
89
|
private redirectScreen;
|
|
90
90
|
private redirectKey;
|
|
91
|
+
private transcript;
|
|
92
|
+
private transcriptKey;
|
|
93
|
+
private heatmap;
|
|
94
|
+
private heatmapKey;
|
|
95
|
+
private docPip;
|
|
96
|
+
private docPipOptions;
|
|
97
|
+
private interactive;
|
|
98
|
+
private interactiveKey;
|
|
99
|
+
private multiview;
|
|
100
|
+
private multiviewKey;
|
|
101
|
+
private share;
|
|
102
|
+
private shareKey;
|
|
103
|
+
private audioDescription;
|
|
104
|
+
private audioDescriptionKey;
|
|
91
105
|
/** Eklentileri çalıştıran taraf — yalnızca bir eklenti kullanılınca indirilir (plugin-api/PluginHost). */
|
|
92
106
|
private pluginHost;
|
|
93
107
|
/** Seçenekler uygulanırken eklenti senkronu bitince çözülür (reklam tag dönüşümü bekler). */
|
|
@@ -96,6 +110,9 @@ export declare class HopePlayerElement extends HTMLElement {
|
|
|
96
110
|
/** `player.use()` ile çalışırken eklenenler. */
|
|
97
111
|
private readonly runtimePlugins;
|
|
98
112
|
private offGlobalPlugins;
|
|
113
|
+
private localeLabels;
|
|
114
|
+
/** Eklenti metinleri yüklenince sözlük tamamlanır (eklentiler ana pakete metin taşımaz). */
|
|
115
|
+
private offLocaleStrings;
|
|
99
116
|
private accessibility;
|
|
100
117
|
private accessibilityKey;
|
|
101
118
|
private playbackHistory;
|
|
@@ -224,6 +241,36 @@ export declare class HopePlayerElement extends HTMLElement {
|
|
|
224
241
|
/** applyOptions'ın asenkron kısmı — yalnızca queuePluginApply üzerinden, sırayla çalışır. */
|
|
225
242
|
private applyPluginsAndPlayback;
|
|
226
243
|
private initPlayback;
|
|
244
|
+
/** Transkript paneli — ayar değişince yeniden kurulur. */
|
|
245
|
+
private applyTranscript;
|
|
246
|
+
/** Paylaşım — ayar değişince yeniden kurulur. */
|
|
247
|
+
private applyShare;
|
|
248
|
+
/** Paylaşım panelini aç (`options.share` gerekir). */
|
|
249
|
+
openShare(): void;
|
|
250
|
+
/** Sesli betimleme — ayar değişince yeniden kurulur. */
|
|
251
|
+
private applyAudioDescription;
|
|
252
|
+
/** Sesli betimlemeyi aç / kapat (`options.audioDescription` gerekir). */
|
|
253
|
+
setAudioDescription(enabled: boolean): void;
|
|
254
|
+
/** Çoklu kamera — kamera listesi / ayar değişince yeniden kurulur. */
|
|
255
|
+
private applyMultiview;
|
|
256
|
+
/** Çoklu kamerada kamerayı değiştir (`options.multiview` gerekir). */
|
|
257
|
+
switchCamera(id: string): void;
|
|
258
|
+
/** Çoklu kamera görünümü: 'focus' (tek + küçükler) ya da 'grid' (bölünmüş). */
|
|
259
|
+
setMultiviewLayout(layout: 'focus' | 'grid'): void;
|
|
260
|
+
/** Etkileşimli içerik — öğeler değişince yeniden kurulur (`onAnswer` fonksiyonu anahtara girmez). */
|
|
261
|
+
private applyInteractive;
|
|
262
|
+
/** Isı haritası — veri değişince yeniden çizilir. */
|
|
263
|
+
private applyHeatmap;
|
|
264
|
+
/** PiP butonu: Document PiP açıksa kapatır, kullanılabiliyorsa açar; işlemediyse false (normal PiP). */
|
|
265
|
+
private toggleDocPip;
|
|
266
|
+
/** Document PiP açıldı / kapandı. */
|
|
267
|
+
private onDocPipChange;
|
|
268
|
+
/** PiP penceresindeki kısayol tuşları player'a gider (tam ekran hariç). */
|
|
269
|
+
private forwardPipKey;
|
|
270
|
+
/** Picture-in-Picture'ı aç / kapat — `documentPip` açıksa ve destekleniyorsa Document PiP, değilse normal PiP. */
|
|
271
|
+
togglePip(): void;
|
|
272
|
+
/** Transkript panelini aç / kapat (`force` verilmezse tersine çevirir). `options.transcript` gerekir. */
|
|
273
|
+
toggleTranscript(force?: boolean): void;
|
|
227
274
|
/** Altyazı menüsünü `options.subtitles` + yayın izlerinden kurar; `activeLabel` varsa onu seçer. */
|
|
228
275
|
private rebuildCaptions;
|
|
229
276
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HopePlayerElement.d.ts","sourceRoot":"","sources":["../src/HopePlayerElement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgC,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC/F,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAuC,KAAK,kBAAkB,EAA+C,MAAM,qBAAqB,CAAC;AAyBhJ,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"HopePlayerElement.d.ts","sourceRoot":"","sources":["../src/HopePlayerElement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgC,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC/F,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAuC,KAAK,kBAAkB,EAA+C,MAAM,qBAAqB,CAAC;AAyBhJ,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA0B5C,OAAO,KAAK,EAAE,UAAU,EAAe,oBAAoB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAiCtG,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,QAAmB,CAAC;AAiCpD,gHAAgH;AAChH,qBAAa,iBAAkB,SAAQ,WAAW;IAC9C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiB;IA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BAAgB;IAgCxB,qGAAqG;IACrG,OAAO,CAAC,cAAc;IAMtB,uGAAuG;IACvG,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAEjC;IAEF,OAAO,CAAC,UAAU;IAIlB,+GAA+G;IAC/G,OAAO,CAAC,gBAAgB;IAYxB,iHAAiH;IACjH,OAAO,CAAC,kBAAkB;IAI1B;;;OAGG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,QAAQ,GAAG,SAAoB,GAAG,IAAI;IAgBrE,gGAAgG;IAChG,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IA0BhC,yIAAyI;IACzI,cAAc,IAAI,IAAI;IAMtB,aAAa,IAAI,IAAI;IAMrB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAY5B;IAEF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAK7B;IAEF,uIAAuI;IACvI,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,UAAU;IAMlB,wGAAwG;YAC1F,cAAc;IAoC5B,yFAAyF;IACzF,OAAO,CAAC,cAAc;IAsDtB,8GAA8G;IAC9G,OAAO,CAAC,mBAAmB;IAU3B,wFAAwF;IACxF,OAAO,CAAC,iBAAiB;IAMzB,+GAA+G;IAC/G,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAW/B;CACL"}
|
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var L = (l, e, t) => e in l ? P(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
|
|
3
|
+
var d = (l, e, t) => L(l, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { a as T } from "./plugin-style-CPJELe-i.js";
|
|
5
|
+
import { f as E } from "./trackingPixel-D2wxdCEz.js";
|
|
6
|
+
import { l as C } from "./gpt-CGXHTG_H.js";
|
|
7
|
+
const F = ".hp-adtrigger{position:absolute;top:0;right:0;bottom:0;left:0;z-index:26;display:none;box-sizing:border-box;padding:12px;justify-content:center;align-items:center;pointer-events:none}.hp-adtrigger[data-open]{display:flex;animation:hp-adtrigger-in .3s ease-out}.hp-adtrigger[data-backdrop]{background:#0000009e;pointer-events:auto}.hp-adtrigger[data-layout=full]{padding:0}.hp-adtrigger[data-layout=none]{padding:0;align-items:flex-start;justify-content:flex-start}.hp-adtrigger[data-layout=none] .hp-adtrigger-frame{position:static}.hp-adtrigger[data-layout=top]{align-items:flex-start}.hp-adtrigger[data-layout=bottom]{align-items:flex-end;padding-bottom:72px}.hp-adtrigger[data-layout=top-left]{align-items:flex-start;justify-content:flex-start}.hp-adtrigger[data-layout=top-right]{align-items:flex-start;justify-content:flex-end}.hp-adtrigger[data-layout=bottom-left]{align-items:flex-end;justify-content:flex-start;padding-bottom:72px}.hp-adtrigger[data-layout=bottom-right]{align-items:flex-end;justify-content:flex-end;padding-bottom:72px}.hp-adtrigger-frame{position:relative;max-width:100%;max-height:100%;pointer-events:auto}.hp-adtrigger[data-layout=full] .hp-adtrigger-frame{width:100%;height:100%}.hp-adtrigger-frame[data-sized]{width:min(var(--hp-adtrigger-w),100%);height:min(var(--hp-adtrigger-h),100%)}.hp-adtrigger[data-layout=full] ::slotted(*),.hp-adtrigger-frame[data-sized] ::slotted(*){display:block;width:100%;height:100%}.hp-adtrigger-label{position:absolute;top:8px;left:8px;z-index:1;padding:3px 7px;border-radius:4px;background:#000000a8;color:#fff;font:600 10px/1 system-ui,-apple-system,sans-serif;letter-spacing:.08em;text-transform:uppercase;pointer-events:none}.hp-adtrigger-close{position:absolute;top:6px;right:6px;z-index:2;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:999px;background:#000000b8;color:#fff;cursor:pointer}.hp-adtrigger-close[hidden]{display:none}.hp-adtrigger-close:focus-visible{outline:2px solid var(--hp-color-accent, #fff);outline-offset:2px}@keyframes hp-adtrigger-in{0%{opacity:0}}", U = 5e3, N = 8e3, A = 30, R = ["none", "full", "center", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"], M = ["time", "interval", "percent", "fullscreen", "fullscreenExit", "start", "pause", "resume", "ended"], D = 1.5;
|
|
8
|
+
let z = 0;
|
|
9
|
+
function O(l) {
|
|
10
|
+
if (typeof l != "string" || !l.trim()) return null;
|
|
11
|
+
try {
|
|
12
|
+
const e = new URL(l, document.baseURI);
|
|
13
|
+
return e.protocol === "https:" || e.protocol === "http:" ? e.href : null;
|
|
14
|
+
} catch {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const m = (l, e, t) => typeof l == "number" && Number.isFinite(l) ? Math.min(t, Math.max(e, l)) : void 0, S = (l) => typeof l == "string" ? l.slice(0, 200) : typeof l == "number" && Number.isFinite(l) || typeof l == "boolean" ? String(l) : null;
|
|
19
|
+
function v(l) {
|
|
20
|
+
let e;
|
|
21
|
+
if (typeof l == "string") {
|
|
22
|
+
if (!l.trim()) return;
|
|
23
|
+
e = [...new URLSearchParams(l.trim().replace(/^\?/, "")).entries()].map(([s, i]) => [s, i.includes(",") ? i.split(",") : i]);
|
|
24
|
+
} else if (l && typeof l == "object" && !Array.isArray(l))
|
|
25
|
+
e = Object.entries(l);
|
|
26
|
+
else
|
|
27
|
+
return;
|
|
28
|
+
const t = {};
|
|
29
|
+
for (const [s, i] of e.slice(0, 50))
|
|
30
|
+
if (/^[\w.-]{1,40}$/.test(s))
|
|
31
|
+
if (Array.isArray(i)) {
|
|
32
|
+
const r = i.map(S).filter((o) => o !== null && o !== "").slice(0, 30);
|
|
33
|
+
r.length && (t[s] = r);
|
|
34
|
+
} else {
|
|
35
|
+
const r = S(i);
|
|
36
|
+
r !== null && r !== "" && (t[s] = r);
|
|
37
|
+
}
|
|
38
|
+
return Object.keys(t).length ? t : void 0;
|
|
39
|
+
}
|
|
40
|
+
function j(l) {
|
|
41
|
+
if (!l || typeof l != "object") return null;
|
|
42
|
+
const e = l, t = e.type;
|
|
43
|
+
if (!M.includes(t)) return null;
|
|
44
|
+
const s = (i, r, o) => (Array.isArray(i) ? i : [i]).map((a) => m(a, r, o)).filter((a) => a !== void 0).slice(0, 50);
|
|
45
|
+
if (t === "time") {
|
|
46
|
+
const i = s(e.at, 0, 86400);
|
|
47
|
+
return i.length ? { type: t, at: i } : null;
|
|
48
|
+
}
|
|
49
|
+
if (t === "percent") {
|
|
50
|
+
const i = s(e.at, 1, 99);
|
|
51
|
+
return i.length ? { type: t, at: i } : null;
|
|
52
|
+
}
|
|
53
|
+
if (t === "interval") {
|
|
54
|
+
const i = m(e.every, 10, 86400);
|
|
55
|
+
return i ? { type: t, every: i, startAfter: m(e.startAfter, 0, 86400) } : null;
|
|
56
|
+
}
|
|
57
|
+
return { type: t, delay: m(e.delay, 0, 600) };
|
|
58
|
+
}
|
|
59
|
+
function x(l) {
|
|
60
|
+
var a, c, u;
|
|
61
|
+
if (!l || typeof l != "object") return null;
|
|
62
|
+
const e = l;
|
|
63
|
+
if (e.active !== !0 || !Array.isArray(e.rules)) return null;
|
|
64
|
+
const t = Date.now(), s = e.validFrom ? Date.parse(e.validFrom) : NaN, i = e.validUntil ? Date.parse(e.validUntil) : NaN;
|
|
65
|
+
if (Number.isFinite(s) && t < s || Number.isFinite(i) && t > i) return null;
|
|
66
|
+
const r = (f) => Array.isArray(f) ? f.map(O).filter((n) => !!n).slice(0, 10) : [], o = [];
|
|
67
|
+
for (const f of e.rules.slice(0, 20)) {
|
|
68
|
+
if (!f || typeof f != "object") continue;
|
|
69
|
+
const n = f;
|
|
70
|
+
if (typeof n.adUnitPath != "string" || !/^\/\d+(?:[,/][\w.\-/]*)?$/.test(n.adUnitPath)) continue;
|
|
71
|
+
const g = (Array.isArray(n.triggers) ? n.triggers : []).map(j).filter((y) => !!y).slice(0, 20);
|
|
72
|
+
if (!g.length) continue;
|
|
73
|
+
const h = Array.isArray(n.size) && n.size.length === 2 ? [m(n.size[0], 1, 4e3), m(n.size[1], 1, 4e3)] : null, p = R.includes(n.layout) ? n.layout : "none";
|
|
74
|
+
o.push({
|
|
75
|
+
id: typeof n.id == "string" ? n.id.slice(0, 80) : void 0,
|
|
76
|
+
adUnitPath: n.adUnitPath,
|
|
77
|
+
mode: n.mode === "fullscreen" || n.mode === "normal" ? n.mode : "any",
|
|
78
|
+
triggers: g,
|
|
79
|
+
targeting: v(n.targeting),
|
|
80
|
+
// API'lerde yaygın `cust_params` yazımı da kabul edilir.
|
|
81
|
+
custParams: v(n.custParams ?? n.cust_params),
|
|
82
|
+
layout: p,
|
|
83
|
+
size: h && h[0] && h[1] ? [h[0], h[1]] : void 0,
|
|
84
|
+
backdrop: typeof n.backdrop == "boolean" ? n.backdrop : p === "full",
|
|
85
|
+
pauseContent: n.pauseContent === !0,
|
|
86
|
+
closeButton: n.closeButton !== !1,
|
|
87
|
+
closeDelay: m(n.closeDelay, 0, 120) ?? 0,
|
|
88
|
+
duration: m(n.duration, 1, 3600),
|
|
89
|
+
label: n.label === !1 ? !1 : typeof n.label == "string" ? n.label.slice(0, 40) : void 0,
|
|
90
|
+
maxShows: m(n.maxShows, 1, 1e3),
|
|
91
|
+
minGapSeconds: m(n.minGapSeconds, 0, 86400),
|
|
92
|
+
minPlayerWidth: m(n.minPlayerWidth, 0, 4e3),
|
|
93
|
+
tracking: { impression: r((a = n.tracking) == null ? void 0 : a.impression), close: r((c = n.tracking) == null ? void 0 : c.close), empty: r((u = n.tracking) == null ? void 0 : u.empty) }
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return o.length ? {
|
|
97
|
+
active: !0,
|
|
98
|
+
id: typeof e.id == "string" ? e.id.slice(0, 120) : void 0,
|
|
99
|
+
minGapSeconds: m(e.minGapSeconds, 0, 86400) ?? A,
|
|
100
|
+
rules: o
|
|
101
|
+
} : null;
|
|
102
|
+
}
|
|
103
|
+
class $ {
|
|
104
|
+
constructor(e, t) {
|
|
105
|
+
d(this, "options");
|
|
106
|
+
d(this, "config", null);
|
|
107
|
+
d(this, "loaded", !1);
|
|
108
|
+
d(this, "googletag", null);
|
|
109
|
+
d(this, "showing", null);
|
|
110
|
+
d(this, "instance", ++z);
|
|
111
|
+
d(this, "seq", 0);
|
|
112
|
+
d(this, "requestSeq", 0);
|
|
113
|
+
d(this, "destroyed", !1);
|
|
114
|
+
d(this, "refreshTimer", null);
|
|
115
|
+
d(this, "tickTimer");
|
|
116
|
+
/** Olaydan `delay` sn sonra çalışacak tetiklemeler — koşul bozulunca iptal edilir. */
|
|
117
|
+
d(this, "delayed", []);
|
|
118
|
+
// ── içerik başına durum (kaynak değişince sıfırlanır) ──
|
|
119
|
+
d(this, "contentKey", "");
|
|
120
|
+
d(this, "fired", /* @__PURE__ */ new Set());
|
|
121
|
+
d(this, "shows", /* @__PURE__ */ new Map());
|
|
122
|
+
d(this, "lastShownAt", /* @__PURE__ */ new Map());
|
|
123
|
+
d(this, "lastAnyAt", 0);
|
|
124
|
+
d(this, "watchedMs", 0);
|
|
125
|
+
d(this, "lastTick", performance.now());
|
|
126
|
+
d(this, "lastPos", 0);
|
|
127
|
+
/** lastPos'un ölçüldüğü an — doğal ilerlemenin üst sınırı geçen gerçek süreden hesaplanır. */
|
|
128
|
+
d(this, "lastPosAt", performance.now());
|
|
129
|
+
/** `seeking` ile `seeked` arası: aradaki işaretler tetiklenmez. */
|
|
130
|
+
d(this, "seekPending", !1);
|
|
131
|
+
d(this, "started", !1);
|
|
132
|
+
d(this, "userPaused", !1);
|
|
133
|
+
/** Player'ın kendi duraklatması (pauseContent) — pause/resume kuralı sayılmaz. */
|
|
134
|
+
d(this, "selfPause", !1);
|
|
135
|
+
d(this, "wasFullscreen", !1);
|
|
136
|
+
// ── olaylar → tetikleyiciler ──
|
|
137
|
+
d(this, "onLoadStart", () => {
|
|
138
|
+
const e = this.ctx.contentKey();
|
|
139
|
+
e !== this.contentKey && (this.contentKey = e, this.fired.clear(), this.shows.clear(), this.lastShownAt.clear(), this.watchedMs = 0, this.lastPos = 0, this.lastPosAt = performance.now(), this.seekPending = !1, this.started = !1, this.userPaused = !1, this.cancelDelayed(), this.close("content"));
|
|
140
|
+
});
|
|
141
|
+
d(this, "onPlaying", () => {
|
|
142
|
+
this.ctx.isBlocked() || (this.started ? this.userPaused && this.trigger("resume") : (this.started = !0, this.trigger("start")), this.userPaused = !1, this.cancelDelayed("pause"));
|
|
143
|
+
});
|
|
144
|
+
d(this, "onPause", () => {
|
|
145
|
+
const e = this.ctx.videoEl;
|
|
146
|
+
if (this.selfPause) {
|
|
147
|
+
this.selfPause = !1;
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
e.ended || e.seeking || this.ctx.isBlocked() || (this.userPaused = !0, this.cancelDelayed("start", "resume"), this.trigger("pause"));
|
|
151
|
+
});
|
|
152
|
+
d(this, "onEnded", () => {
|
|
153
|
+
this.ctx.isBlocked() || this.trigger("ended");
|
|
154
|
+
});
|
|
155
|
+
d(this, "onSeeking", () => {
|
|
156
|
+
this.seekPending = !0;
|
|
157
|
+
});
|
|
158
|
+
d(this, "onSeeked", () => {
|
|
159
|
+
this.seekPending = !1, this.lastPos = this.ctx.videoEl.currentTime, this.lastPosAt = performance.now();
|
|
160
|
+
});
|
|
161
|
+
d(this, "onFullscreenChange", () => {
|
|
162
|
+
var s;
|
|
163
|
+
const e = this.ctx.isFullscreen();
|
|
164
|
+
if (e === this.wasFullscreen) return;
|
|
165
|
+
this.wasFullscreen = e, this.cancelDelayed(e ? "fullscreenExit" : "fullscreen");
|
|
166
|
+
const t = (s = this.showing) == null ? void 0 : s.rule.mode;
|
|
167
|
+
(t === "fullscreen" && !e || t === "normal" && e) && this.close("mode"), this.trigger(e ? "fullscreen" : "fullscreenExit");
|
|
168
|
+
});
|
|
169
|
+
d(this, "onVideoAdStart", (e) => {
|
|
170
|
+
var t;
|
|
171
|
+
((t = e.detail) == null ? void 0 : t.linear) !== !1 && (this.cancelDelayed(), this.close("ad"));
|
|
172
|
+
});
|
|
173
|
+
d(this, "onTimeUpdate", () => {
|
|
174
|
+
const e = this.ctx.videoEl, t = e.currentTime, s = this.lastPos, i = performance.now(), r = (i - this.lastPosAt) / 1e3;
|
|
175
|
+
this.lastPos = t, this.lastPosAt = i;
|
|
176
|
+
const o = this.config;
|
|
177
|
+
if (!o || e.paused || e.seeking || this.seekPending || this.isLive() || this.ctx.isBlocked()) return;
|
|
178
|
+
const a = Math.max(D, r * (e.playbackRate || 1) + 0.5);
|
|
179
|
+
if (t <= s || t - s > a) return;
|
|
180
|
+
const c = e.duration;
|
|
181
|
+
o.rules.forEach(
|
|
182
|
+
(u, f) => u.triggers.forEach((n, g) => {
|
|
183
|
+
if (!(n.type !== "time" && n.type !== "percent"))
|
|
184
|
+
for (const h of n.at) {
|
|
185
|
+
const p = n.type === "percent" ? Number.isFinite(c) && c > 0 ? c * h / 100 : NaN : h, y = `${f}:${g}:${h}`;
|
|
186
|
+
s < p && p <= t && !this.fired.has(y) && (this.fired.add(y), this.showRule(f, n.type));
|
|
187
|
+
}
|
|
188
|
+
})
|
|
189
|
+
);
|
|
190
|
+
});
|
|
191
|
+
/** Gerçek izleme süresi: interval kuralları (ve canlıda time kuralları) bununla sayılır. */
|
|
192
|
+
d(this, "tick", () => {
|
|
193
|
+
var a;
|
|
194
|
+
const e = performance.now(), t = Math.min(2e3, Math.max(0, e - this.lastTick));
|
|
195
|
+
this.lastTick = e;
|
|
196
|
+
const s = this.ctx.videoEl, i = this.config;
|
|
197
|
+
if (!i || s.paused || s.ended || document.hidden || this.ctx.isBlocked() || (a = this.showing) != null && a.filled) return;
|
|
198
|
+
const r = this.watchedMs / 1e3;
|
|
199
|
+
this.watchedMs += t;
|
|
200
|
+
const o = this.watchedMs / 1e3;
|
|
201
|
+
i.rules.forEach(
|
|
202
|
+
(c, u) => c.triggers.forEach((f, n) => {
|
|
203
|
+
if (f.type === "interval") {
|
|
204
|
+
const g = f.startAfter ?? f.every, h = Math.floor((o - g) / f.every);
|
|
205
|
+
o >= g && g + h * f.every > r && this.showRule(u, "interval");
|
|
206
|
+
} else if (f.type === "time" && this.isLive())
|
|
207
|
+
for (const g of f.at) {
|
|
208
|
+
const h = `${u}:${n}:${g}:live`;
|
|
209
|
+
r < g && g <= o && !this.fired.has(h) && (this.fired.add(h), this.showRule(u, "time"));
|
|
210
|
+
}
|
|
211
|
+
})
|
|
212
|
+
);
|
|
213
|
+
});
|
|
214
|
+
this.ctx = e, this.options = t;
|
|
215
|
+
const s = e.videoEl;
|
|
216
|
+
s.addEventListener("timeupdate", this.onTimeUpdate), s.addEventListener("seeking", this.onSeeking), s.addEventListener("seeked", this.onSeeked), s.addEventListener("playing", this.onPlaying), s.addEventListener("pause", this.onPause), s.addEventListener("ended", this.onEnded), s.addEventListener("loadstart", this.onLoadStart), s.addEventListener("webkitbeginfullscreen", this.onFullscreenChange), s.addEventListener("webkitendfullscreen", this.onFullscreenChange), document.addEventListener("fullscreenchange", this.onFullscreenChange), document.addEventListener("webkitfullscreenchange", this.onFullscreenChange), e.hostEl.addEventListener("hp:adstart", this.onVideoAdStart), this.wasFullscreen = e.isFullscreen(), this.contentKey = e.contentKey(), this.tickTimer = setInterval(this.tick, 1e3), this.load(), this.scheduleRefresh();
|
|
217
|
+
}
|
|
218
|
+
update(e) {
|
|
219
|
+
const t = e.endpoint !== this.options.endpoint || JSON.stringify(e.params) !== JSON.stringify(this.options.params) || JSON.stringify(e.config) !== JSON.stringify(this.options.config), s = e.refreshSeconds !== this.options.refreshSeconds;
|
|
220
|
+
this.options = e, t && this.load(), s && this.scheduleRefresh();
|
|
221
|
+
}
|
|
222
|
+
get current() {
|
|
223
|
+
return this.config;
|
|
224
|
+
}
|
|
225
|
+
/** Şu an bir reklam gösteriliyor mu. */
|
|
226
|
+
get active() {
|
|
227
|
+
var e;
|
|
228
|
+
return !!((e = this.showing) != null && e.filled);
|
|
229
|
+
}
|
|
230
|
+
// ── kurallar ──
|
|
231
|
+
scheduleRefresh() {
|
|
232
|
+
this.refreshTimer && clearInterval(this.refreshTimer), this.refreshTimer = null;
|
|
233
|
+
const e = this.options.refreshSeconds;
|
|
234
|
+
this.options.endpoint && typeof e == "number" && e >= 10 && (this.refreshTimer = setInterval(() => void this.load(), e * 1e3));
|
|
235
|
+
}
|
|
236
|
+
async load() {
|
|
237
|
+
const e = ++this.requestSeq;
|
|
238
|
+
if (!this.options.endpoint) {
|
|
239
|
+
this.apply(x(this.options.config));
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
const t = typeof AbortController < "u" ? new AbortController() : null, s = setTimeout(() => t == null ? void 0 : t.abort(), this.options.timeoutMs ?? U);
|
|
243
|
+
let i = "";
|
|
244
|
+
try {
|
|
245
|
+
const r = new URL(this.options.endpoint, document.baseURI);
|
|
246
|
+
for (const [c, u] of Object.entries(this.options.params ?? {})) r.searchParams.set(c, u);
|
|
247
|
+
i = r.href;
|
|
248
|
+
const o = await fetch(i, { ...this.options.fetchInit, signal: t == null ? void 0 : t.signal });
|
|
249
|
+
if (!o.ok) throw new Error(`HTTP ${o.status}`);
|
|
250
|
+
const a = await o.json();
|
|
251
|
+
if (this.destroyed || e !== this.requestSeq) return;
|
|
252
|
+
this.apply(x(a));
|
|
253
|
+
} catch (r) {
|
|
254
|
+
if (this.destroyed || e !== this.requestSeq) return;
|
|
255
|
+
this.ctx.log({ message: `Ad triggers API failed: ${String(r)}`, details: { url: i } }), !this.config && this.options.config && this.apply(x(this.options.config));
|
|
256
|
+
} finally {
|
|
257
|
+
clearTimeout(s);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
apply(e) {
|
|
261
|
+
const t = !this.loaded || JSON.stringify(e) !== JSON.stringify(this.config);
|
|
262
|
+
this.loaded = !0, this.config = e, t && (this.cancelDelayed(), e || this.close("content"), this.ctx.hostEl.dispatchEvent(new CustomEvent("hp:adtriggers", { detail: { config: e } })));
|
|
263
|
+
}
|
|
264
|
+
isLive() {
|
|
265
|
+
return this.ctx.videoEl.duration === 1 / 0;
|
|
266
|
+
}
|
|
267
|
+
/** Olay tipindeki tetikleyicisi olan her kural (gecikmeliyse zamanlanır). */
|
|
268
|
+
trigger(e) {
|
|
269
|
+
const t = this.config;
|
|
270
|
+
t && t.rules.forEach((s, i) => {
|
|
271
|
+
const r = s.triggers.find((c) => c.type === e);
|
|
272
|
+
if (!r) return;
|
|
273
|
+
const o = (r.delay ?? 0) * 1e3;
|
|
274
|
+
if (o <= 0) {
|
|
275
|
+
this.showRule(i, e);
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
const a = setTimeout(() => {
|
|
279
|
+
this.delayed = this.delayed.filter((c) => c.timer !== a), this.showRule(i, e);
|
|
280
|
+
}, o);
|
|
281
|
+
this.delayed.push({ type: e, timer: a });
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
cancelDelayed(...e) {
|
|
285
|
+
this.delayed = this.delayed.filter((t) => e.length && !e.includes(t.type) ? !0 : (clearTimeout(t.timer), !1));
|
|
286
|
+
}
|
|
287
|
+
// ── gösterim ──
|
|
288
|
+
/** Koşullar uygunsa kuralın reklamını ister. Uygun değilse sessizce atlanır (sebep kayda düşer). */
|
|
289
|
+
showRule(e, t) {
|
|
290
|
+
var c, u;
|
|
291
|
+
const s = (c = this.config) == null ? void 0 : c.rules[e];
|
|
292
|
+
if (!s || this.destroyed) return;
|
|
293
|
+
const i = this.ctx.videoEl, r = this.ctx.isFullscreen(), o = (f) => this.ctx.log({ message: `Ad trigger skipped (${f})`, details: { rule: s.id, trigger: t } });
|
|
294
|
+
if (this.showing && !(this.showing.filled && this.showing.rule.layout === "none")) return o("another ad is showing");
|
|
295
|
+
if (this.ctx.isBlocked()) return o("video ad / intro screen");
|
|
296
|
+
if (document.hidden) return o("tab hidden");
|
|
297
|
+
if (this.ctx.isNativeFullscreen()) return o("native iOS fullscreen");
|
|
298
|
+
if (s.mode === "fullscreen" && !r) return o("not fullscreen");
|
|
299
|
+
if (s.mode === "normal" && r) return o("fullscreen");
|
|
300
|
+
if (t === "pause" && (!i.paused || i.ended) || t === "ended" && !i.ended || ["time", "percent", "interval", "start", "resume"].includes(t) && i.paused) return;
|
|
301
|
+
if (s.minPlayerWidth && this.ctx.overlayEl.getBoundingClientRect().width < s.minPlayerWidth) return o("player too narrow");
|
|
302
|
+
const a = Date.now();
|
|
303
|
+
if (s.maxShows && (this.shows.get(e) ?? 0) >= s.maxShows) return o("maxShows");
|
|
304
|
+
if (s.minGapSeconds && a - (this.lastShownAt.get(e) ?? 0) < s.minGapSeconds * 1e3) return o("rule minGapSeconds");
|
|
305
|
+
if (a - this.lastAnyAt < (((u = this.config) == null ? void 0 : u.minGapSeconds) ?? A) * 1e3) return o("minGapSeconds");
|
|
306
|
+
this.showing && this.close("replaced"), this.lastAnyAt = a, this.lastShownAt.set(e, a), this.request(e, s, t, r);
|
|
307
|
+
}
|
|
308
|
+
async request(e, t, s, i) {
|
|
309
|
+
const r = ++this.seq, o = `hp-adtrigger-${this.instance}`, a = this.buildBox(t, o), c = document.createElement("div");
|
|
310
|
+
c.id = `hp-adtrigger-${this.instance}-${r}`, c.slot = o;
|
|
311
|
+
const u = { rule: t, trigger: s, box: a, adHost: c, slot: null, filled: !1, pausedContent: !1, timers: [] };
|
|
312
|
+
this.showing = u, this.ctx.overlayEl.appendChild(a), this.ctx.hostEl.appendChild(c);
|
|
313
|
+
const f = { rule: t.id, trigger: s, adUnitPath: t.adUnitPath }, n = (h) => {
|
|
314
|
+
var p;
|
|
315
|
+
this.showing === u && (this.ctx.log({ message: `Ad trigger: no ad (${h})`, details: { ...f } }), E((p = t.tracking) == null ? void 0 : p.empty), this.ctx.hostEl.dispatchEvent(new CustomEvent("hp:adtriggerempty", { detail: f })), this.teardown(u));
|
|
316
|
+
};
|
|
317
|
+
u.timers.push(setTimeout(() => !u.filled && n("timeout"), this.options.renderTimeoutMs ?? N));
|
|
318
|
+
try {
|
|
319
|
+
this.googletag ?? (this.googletag = await C());
|
|
320
|
+
} catch (h) {
|
|
321
|
+
n(String(h));
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
if (this.showing !== u) return;
|
|
325
|
+
const g = this.googletag;
|
|
326
|
+
g.cmd.push(() => {
|
|
327
|
+
if (this.showing !== u) return;
|
|
328
|
+
const h = g.defineOutOfPageSlot(t.adUnitPath, c.id);
|
|
329
|
+
if (!h) {
|
|
330
|
+
n("slot could not be defined");
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
u.slot = h, h.addService(g.pubads());
|
|
334
|
+
const p = {
|
|
335
|
+
...v(this.options.targeting),
|
|
336
|
+
...v(this.options.custParams),
|
|
337
|
+
...t.targeting,
|
|
338
|
+
...v(t.custParams),
|
|
339
|
+
hp_trigger: s,
|
|
340
|
+
hp_mode: i ? "fullscreen" : "normal"
|
|
341
|
+
};
|
|
342
|
+
t.id && (p.hp_rule = t.id);
|
|
343
|
+
for (const [b, w] of Object.entries(p)) h.setTargeting(b, w);
|
|
344
|
+
u.custParams = p;
|
|
345
|
+
const y = (b) => {
|
|
346
|
+
var w, k;
|
|
347
|
+
b.slot === h && ((k = (w = g.pubads()).removeEventListener) == null || k.call(w, "slotRenderEnded", y), b.isEmpty ? n("empty") : this.reveal(e, u, i));
|
|
348
|
+
};
|
|
349
|
+
g.pubads().addEventListener("slotRenderEnded", y), g.enableServices(), g.display(c.id), g.pubads().isInitialLoadDisabled() && g.pubads().refresh([h]);
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
buildBox(e, t) {
|
|
353
|
+
const s = document.createElement("div");
|
|
354
|
+
s.className = "hp-adtrigger", s.setAttribute("part", "ad-trigger");
|
|
355
|
+
const i = e.layout === "none";
|
|
356
|
+
s.setAttribute("data-layout", e.layout ?? "none"), s.toggleAttribute("data-backdrop", !!e.backdrop);
|
|
357
|
+
const r = document.createElement("div");
|
|
358
|
+
if (r.className = "hp-adtrigger-frame", e.size && e.layout !== "full" && (r.style.setProperty("--hp-adtrigger-w", `${e.size[0]}px`), r.style.setProperty("--hp-adtrigger-h", `${e.size[1]}px`), r.setAttribute("data-sized", "")), e.label !== !1 && !i) {
|
|
359
|
+
const a = document.createElement("span");
|
|
360
|
+
a.className = "hp-adtrigger-label", a.textContent = e.label || this.ctx.i18n.adTriggerLabel, r.appendChild(a);
|
|
361
|
+
}
|
|
362
|
+
const o = document.createElement("slot");
|
|
363
|
+
if (o.name = t, r.appendChild(o), e.closeButton !== !1 && !i) {
|
|
364
|
+
const a = document.createElement("button");
|
|
365
|
+
a.type = "button", a.className = "hp-adtrigger-close", a.setAttribute("part", "ad-trigger-close"), a.setAttribute("aria-label", this.ctx.i18n.pauseAdClose), a.hidden = !0, a.innerHTML = '<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg>', a.addEventListener("click", () => this.close("user")), r.appendChild(a);
|
|
366
|
+
}
|
|
367
|
+
s.appendChild(r);
|
|
368
|
+
for (const a of ["pointerdown", "click", "dblclick"]) s.addEventListener(a, (c) => c.stopPropagation());
|
|
369
|
+
return s;
|
|
370
|
+
}
|
|
371
|
+
reveal(e, t, s) {
|
|
372
|
+
var a;
|
|
373
|
+
if (this.showing !== t) return;
|
|
374
|
+
const { rule: i } = t;
|
|
375
|
+
if (t.filled = !0, this.shows.set(e, (this.shows.get(e) ?? 0) + 1), this.lastAnyAt = Date.now(), i.layout === "full" || i.size && i.layout !== "none") {
|
|
376
|
+
const c = t.adHost.querySelector("iframe");
|
|
377
|
+
c && Object.assign(c.style, { width: "100%", height: "100%", border: "0" }), Object.assign(t.adHost.style, { width: "100%", height: "100%" });
|
|
378
|
+
}
|
|
379
|
+
t.box.setAttribute("data-open", "");
|
|
380
|
+
const r = t.box.querySelector(".hp-adtrigger-close");
|
|
381
|
+
r && !i.closeDelay ? r.hidden = !1 : r && t.timers.push(setTimeout(() => r.hidden = !1, i.closeDelay * 1e3)), i.duration && t.timers.push(setTimeout(() => this.close("timeout"), i.duration * 1e3));
|
|
382
|
+
const o = this.ctx.videoEl;
|
|
383
|
+
i.pauseContent && !o.paused && (t.pausedContent = !0, this.selfPause = !0, o.pause()), E((a = i.tracking) == null ? void 0 : a.impression), this.ctx.hostEl.dispatchEvent(
|
|
384
|
+
new CustomEvent("hp:adtriggershow", { detail: { rule: i.id, trigger: t.trigger, adUnitPath: i.adUnitPath, fullscreen: s, custParams: t.custParams ?? {} } })
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
/** Gösterilen reklamı kapat (bekleyen istek varsa iptal). */
|
|
388
|
+
close(e) {
|
|
389
|
+
var i;
|
|
390
|
+
const t = this.showing;
|
|
391
|
+
if (!t) return;
|
|
392
|
+
const s = t.filled;
|
|
393
|
+
this.teardown(t), s && (E((i = t.rule.tracking) == null ? void 0 : i.close), this.ctx.hostEl.dispatchEvent(new CustomEvent("hp:adtriggerclose", { detail: { rule: t.rule.id, reason: e } })), t.pausedContent && e !== "content" && e !== "ad" && this.ctx.videoEl.play().catch(() => {
|
|
394
|
+
}));
|
|
395
|
+
}
|
|
396
|
+
teardown(e) {
|
|
397
|
+
this.showing === e && (this.showing = null);
|
|
398
|
+
for (const t of e.timers) clearTimeout(t);
|
|
399
|
+
if (e.slot && this.googletag)
|
|
400
|
+
try {
|
|
401
|
+
this.googletag.destroySlots([e.slot]);
|
|
402
|
+
} catch {
|
|
403
|
+
}
|
|
404
|
+
e.box.remove(), e.adHost.remove();
|
|
405
|
+
}
|
|
406
|
+
destroy() {
|
|
407
|
+
this.destroyed = !0, this.cancelDelayed(), this.close("content"), clearInterval(this.tickTimer), this.refreshTimer && clearInterval(this.refreshTimer);
|
|
408
|
+
const e = this.ctx.videoEl;
|
|
409
|
+
e.removeEventListener("timeupdate", this.onTimeUpdate), e.removeEventListener("seeking", this.onSeeking), e.removeEventListener("seeked", this.onSeeked), e.removeEventListener("playing", this.onPlaying), e.removeEventListener("pause", this.onPause), e.removeEventListener("ended", this.onEnded), e.removeEventListener("loadstart", this.onLoadStart), e.removeEventListener("webkitbeginfullscreen", this.onFullscreenChange), e.removeEventListener("webkitendfullscreen", this.onFullscreenChange), document.removeEventListener("fullscreenchange", this.onFullscreenChange), document.removeEventListener("webkitfullscreenchange", this.onFullscreenChange), this.ctx.hostEl.removeEventListener("hp:adstart", this.onVideoAdStart);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
function I(l, e) {
|
|
413
|
+
return T(l.videoEl, "ad-triggers", F), new $(l, e);
|
|
414
|
+
}
|
|
415
|
+
export {
|
|
416
|
+
$ as AdTriggers,
|
|
417
|
+
I as installAdTriggers,
|
|
418
|
+
x as normalizeAdTriggers
|
|
419
|
+
};
|
|
420
|
+
//# sourceMappingURL=adTriggers-DVqgm92F.js.map
|