@schibsted/advertory 3.5.0 → 3.6.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/ad-native/cjs/index.d.ts +6 -27
- package/ad-native/es/index.d.ts +6 -27
- package/aftenposten/cjs/index.d.ts +6 -27
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-DRy582No.js +1 -0
- package/aftenposten/es/{events-BdUUv4z9.js → events-C9C7urqL.js} +1 -1
- package/aftenposten/es/{index-pwlm_8K9.js → index-BkS_SJlJ.js} +1 -1
- package/aftenposten/es/{index-B0GbVMVf.js → index-BnqSaT1c.js} +1 -1
- package/aftenposten/es/{index-DapT0kRB.js → index-C3FOilzo.js} +1 -1
- package/aftenposten/es/{index-C_ljmtA9.js → index-CydB8YIr.js} +1 -1
- package/aftenposten/es/{index-DKtW-pTb.js → index-DORsiGYv.js} +1 -1
- package/aftenposten/es/{index-ChQz2fSU.js → index-DeI8d-uV.js} +1 -1
- package/aftenposten/es/{index-cS_ROIVL.js → index-DwPGsi8k.js} +1 -1
- package/aftenposten/es/{index-DkhtWF8d.js → index-cQE0VJo1.js} +1 -1
- package/aftenposten/es/index.d.ts +6 -27
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-Dmx2lehx.js → styles-80njiXh8.js} +1 -1
- package/aftenposten/es/{styles-C8Zgiulr.js → styles-9muMJKJn.js} +1 -1
- package/aftenposten/es/{styles-e0EN2V-x.js → styles-B0TjAFsC.js} +1 -1
- package/aftenposten/es/{styles-BQ-lJJ7T.js → styles-BqDARxy2.js} +1 -1
- package/aftenposten/es/{styles-B8dOeQvd.js → styles-C-mBJ4KF.js} +1 -1
- package/aftenposten/es/{styles-R1ul5aQy.js → styles-CH01dhZI.js} +1 -1
- package/aftenposten/es/{styles-poVB2pbH.js → styles-CQkWKgtJ.js} +1 -1
- package/aftenposten/es/{styles-Dd4NzezP.js → styles-CkwzAwsB.js} +1 -1
- package/aftenposten/es/{styles-CvqBpTZq.js → styles-DwsygbnU.js} +1 -1
- package/aftenposten/es/{styles-Cf0KXpQR.js → styles-s1wxb2F_.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CXrYo3kj.js +1 -0
- package/aftenpostenv2/es/{events-DcWIew6H.js → events-ByEM8ZeV.js} +1 -1
- package/aftenpostenv2/es/{index-DZzhmxxW.js → index-B0U7ps9y.js} +1 -1
- package/aftenpostenv2/es/{index-CcSUoH4K.js → index-BZciKqap.js} +1 -1
- package/aftenpostenv2/es/{index-C7WYLENT.js → index-CxmBWC8z.js} +1 -1
- package/aftenpostenv2/es/{index-DF_5taAR.js → index-Dp17754Z.js} +1 -1
- package/aftenpostenv2/es/{index-Dcvv755W.js → index-DzW5W5w1.js} +1 -1
- package/aftenpostenv2/es/{index-lNsi3PkQ.js → index-T22foY0A.js} +1 -1
- package/aftenpostenv2/es/{index-CrKzCfAy.js → index-TeY0tmGM.js} +1 -1
- package/aftenpostenv2/es/{index-AopMILqF.js → index-Vv6YGuEQ.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +6 -27
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-DJS8FgJN.js → styles-2437hpxv.js} +1 -1
- package/aftenpostenv2/es/{styles-BAw6-DTz.js → styles-B9yGGUxs.js} +1 -1
- package/aftenpostenv2/es/{styles-Bj5ghS1X.js → styles-CE4ljrOq.js} +1 -1
- package/aftenpostenv2/es/{styles-P6wiFv7t.js → styles-CFIY_fYs.js} +1 -1
- package/aftenpostenv2/es/{styles-BM1Sl2Gt.js → styles-C_hqfq3h.js} +1 -1
- package/aftenpostenv2/es/{styles-BDLsV2h0.js → styles-CwOFrT-m.js} +1 -1
- package/aftenpostenv2/es/{styles-IW7sRlQb.js → styles-DVb70HkY.js} +1 -1
- package/aftenpostenv2/es/{styles-BtZEv20p.js → styles-Dv3iE5E9.js} +1 -1
- package/aftenpostenv2/es/{styles-DE8b2eKw.js → styles-U1MbgnO8.js} +1 -1
- package/aftenpostenv2/es/{styles-CIIzxpxi.js → styles-gvMqFZ6Z.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +6 -27
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-B5rZbU4l.js +1 -0
- package/aftonbladet/es/{events-IGtjvn9p.js → events-BbyNwvht.js} +1 -1
- package/aftonbladet/es/{index-CHU0K-b3.js → index-B2yfV01q.js} +1 -1
- package/aftonbladet/es/{index-BhKqdx8_.js → index-BG8DyJ9Q.js} +1 -1
- package/aftonbladet/es/{index-Caooy7VZ.js → index-BdoEltYH.js} +1 -1
- package/aftonbladet/es/{index-D6pMj_OI.js → index-BjfZKgVs.js} +1 -1
- package/aftonbladet/es/{index-CxookX-2.js → index-CYq72Epp.js} +1 -1
- package/aftonbladet/es/{index-BJEVa6xU.js → index-D-SooPyf.js} +1 -1
- package/aftonbladet/es/{index-CWKXxJLi.js → index-D7OZ0aH_.js} +1 -1
- package/aftonbladet/es/{index-D3BbAZHM.js → index-DJjSX67L.js} +1 -1
- package/aftonbladet/es/index.d.ts +6 -27
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-CneLnMG-.js → styles-BGJhp99G.js} +1 -1
- package/aftonbladet/es/{styles-BbdwnbjB.js → styles-BivTRwAi.js} +1 -1
- package/aftonbladet/es/{styles-l3rELDcP.js → styles-CGvjrVhR.js} +1 -1
- package/aftonbladet/es/{styles-vt9VlFI1.js → styles-COq02SIe.js} +1 -1
- package/aftonbladet/es/{styles-DYVEy61p.js → styles-D4zAPI1T.js} +1 -1
- package/aftonbladet/es/{styles-B_1G3J8x.js → styles-_AmB2_Ug.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-yMuDMPYm.js +1 -0
- package/aftonbladetv2/es/{events-DUSi9AAZ.js → events-Be3bdEHm.js} +1 -1
- package/aftonbladetv2/es/{index-CZlvEwnW.js → index-8t-IGjUw.js} +1 -1
- package/aftonbladetv2/es/{index-ChmNC_fC.js → index-BjpGqbjh.js} +1 -1
- package/aftonbladetv2/es/{index-DfBkkkvU.js → index-C82MmKIC.js} +1 -1
- package/aftonbladetv2/es/{index-BLCl5ZdU.js → index-CO_dweCr.js} +1 -1
- package/aftonbladetv2/es/{index-GJk0lNdn.js → index-CWUPQnPC.js} +1 -1
- package/aftonbladetv2/es/{index-CdYhVWhS.js → index-DE5y5asp.js} +1 -1
- package/aftonbladetv2/es/{index-Jfir0E9v.js → index-DgEEfQ4V.js} +1 -1
- package/aftonbladetv2/es/{index-Bcz4aUWR.js → index-vUqiPpRV.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +6 -27
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-C2EUpfcA.js → styles-8negJCpa.js} +1 -1
- package/aftonbladetv2/es/{styles-D8Ya94d4.js → styles-BEJZ55UE.js} +1 -1
- package/aftonbladetv2/es/{styles-CTR9osUQ.js → styles-BRoq235i.js} +1 -1
- package/aftonbladetv2/es/{styles-BW540-He.js → styles-CDUOKDqP.js} +1 -1
- package/aftonbladetv2/es/{styles-Ckoizx2L.js → styles-CdOpQ1lK.js} +1 -1
- package/aftonbladetv2/es/{styles-CGV7U9oK.js → styles-DZXuPYK-.js} +1 -1
- package/bt/cjs/index.d.ts +6 -27
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-CnDc-5tA.js +1 -0
- package/bt/es/{events-e79PURVK.js → events-pbsfBMud.js} +1 -1
- package/bt/es/{index-BCITuOKt.js → index-10o0F1pU.js} +1 -1
- package/bt/es/{index-B4efIi6B.js → index-CB1ozKI0.js} +1 -1
- package/bt/es/{index-Ble0HNAL.js → index-CBRfC8oj.js} +1 -1
- package/bt/es/{index-CfGTqWHB.js → index-CGQ4Pl9E.js} +1 -1
- package/bt/es/{index-VicIknhs.js → index-LRR9-Efh.js} +1 -1
- package/bt/es/{index-DkfBi2Yr.js → index-YRhOwnMQ.js} +1 -1
- package/bt/es/{index-Br2GZL3S.js → index-unOIp1lu.js} +1 -1
- package/{sa/es/index-CsLiSVuW.js → bt/es/index-xozUOz97.js} +1 -1
- package/bt/es/index.d.ts +6 -27
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-UB5Sj-JP.js → styles-B5Q64krs.js} +1 -1
- package/bt/es/{styles-1fY0S9gh.js → styles-BZO-cpQq.js} +1 -1
- package/bt/es/{styles-BRkymHpC.js → styles-BpCvYBjb.js} +1 -1
- package/bt/es/{styles-DbidWe0Z.js → styles-Cpv7xnJr.js} +1 -1
- package/{sa/es/styles-C265I3ui.js → bt/es/styles-DEhknitf.js} +1 -1
- package/bt/es/{styles-BQ6Zagkv.js → styles-DMVxTKWi.js} +1 -1
- package/bt/es/{styles-V6NyO8CO.js → styles-DdjMnoRQ.js} +1 -1
- package/{sa/es/styles-DmxGH8LS.js → bt/es/styles-Dzo0F2pC.js} +1 -1
- package/bt/es/{styles-DDXhGRHY.js → styles-a9BNs9Hq.js} +1 -1
- package/btv2/es/_auto-entry_btv2-Br28Rkuw.js +1 -0
- package/btv2/es/{events-DWbA1yJI.js → events-BkiRy_Ug.js} +1 -1
- package/btv2/es/{index-CbKhLQ71.js → index-6ynUsW2j.js} +1 -1
- package/btv2/es/{index-D95XQOb1.js → index-96JPKWtS.js} +1 -1
- package/btv2/es/{index-CmYG9TmN.js → index-BdTWdaSz.js} +1 -1
- package/btv2/es/{index-Dc3aKlrr.js → index-CSvnRSDB.js} +1 -1
- package/btv2/es/{index-DShbLut5.js → index-CiEuFLju.js} +1 -1
- package/btv2/es/{index-D-VoD7Rn.js → index-CxqQHs2I.js} +1 -1
- package/btv2/es/{index-DllNqk9Z.js → index-Dbtbms4R.js} +1 -1
- package/btv2/es/{index-CMIm7eJa.js → index-tpv3zSXV.js} +1 -1
- package/btv2/es/index.d.ts +6 -27
- package/btv2/es/index.js +1 -1
- package/{vgv2/es/styles-Cr5Fs5YF.js → btv2/es/styles-4acKP-vS.js} +1 -1
- package/{sav2/es/styles-BH4mt2Zh.js → btv2/es/styles-5MLqt1cS.js} +1 -1
- package/{sav2/es/styles-CdHzLcOB.js → btv2/es/styles-BiFfLo8O.js} +1 -1
- package/{sav2/es/styles-0zU2Afam.js → btv2/es/styles-CLAANEHj.js} +1 -1
- package/{sav2/es/styles-CCVahElC.js → btv2/es/styles-Cn0AvhaU.js} +1 -1
- package/{vgv2/es/styles-Dt3_EHGE.js → btv2/es/styles-DoxT4Rpe.js} +1 -1
- package/btv2/es/{styles-Beb5i1JJ.js → styles-FCKiIT56.js} +1 -1
- package/btv2/es/{styles-CzOVz7GX.js → styles-M3do-e6G.js} +1 -1
- package/dr-edition/cjs/index.d.ts +6 -13
- package/dr-edition/cjs/index.js +1 -1
- package/dr-edition/es/index.d.ts +6 -13
- package/dr-edition/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-BXEl1rLt.js +1 -0
- package/e24/es/{events-8oWxK8Fm.js → events-Df12jcjq.js} +1 -1
- package/e24/es/{index-BJWHHKPL.js → index-4DwbOKHX.js} +1 -1
- package/e24/es/{index-7zdjryBD.js → index-5AxjPEeO.js} +1 -1
- package/e24/es/{index-Oewlw7Sn.js → index-BeRC9YaL.js} +1 -1
- package/e24/es/{index-DG1bJJNc.js → index-CbclshF7.js} +1 -1
- package/{tv4/es/index-D_WaHIAK.js → e24/es/index-CyTyxMlY.js} +1 -1
- package/e24/es/{index-DGv329Av.js → index-DVso5CpT.js} +1 -1
- package/e24/es/{index-BUkXE3O2.js → index-DY79nObF.js} +1 -1
- package/e24/es/{index-B4CZvSXL.js → index-boY00MWk.js} +1 -1
- package/e24/es/index.d.ts +6 -27
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-CLbzPfFd.js → styles-BnU3rand.js} +1 -1
- package/e24/es/{styles-D-IZsxVS.js → styles-BvaDTUig.js} +1 -1
- package/e24/es/{styles-BQNdcZSJ.js → styles-CEJZ6EtK.js} +1 -1
- package/e24/es/{styles-DjQsLdnn.js → styles-Cf5yeLFb.js} +1 -1
- package/e24/es/{styles-VEo6IZcm.js → styles-D3tm4qWR.js} +1 -1
- package/e24/es/{styles-NQUQlHqi.js → styles-DFTviKUt.js} +1 -1
- package/e24/es/{styles-CcOkuOfr.js → styles-DxT7w3qt.js} +1 -1
- package/e24/es/{styles-D7k76BFk.js → styles-Dzv8j5Mc.js} +1 -1
- package/e24/es/{styles-Dieie13I.js → styles-VzILOixk.js} +1 -1
- package/{tv4/es/styles-B9dFHoiV.js → e24/es/styles-WK8ASD47.js} +1 -1
- package/e24/es/{styles-Dbpp0W0o.js → styles-ZNG2Qej-.js} +1 -1
- package/editory/cjs/index.d.ts +6 -27
- package/editory/es/index.d.ts +6 -27
- package/fotbollskanalen/cjs/index.d.ts +6 -27
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DmWPi7Jf.js +1 -0
- package/fotbollskanalen/es/{events-FpRT23ZZ.js → events-B3ZU1LUw.js} +1 -1
- package/fotbollskanalen/es/{index-Byq7YtvA.js → index-B2k25BEc.js} +1 -1
- package/fotbollskanalen/es/{index-DDGOVmpS.js → index-B9qRzvev.js} +1 -1
- package/fotbollskanalen/es/{index-BHG4pc98.js → index-BnfmazmK.js} +1 -1
- package/fotbollskanalen/es/{index-B5NH2IkJ.js → index-CBwVsPYL.js} +1 -1
- package/fotbollskanalen/es/{index-DxE0VElJ.js → index-CRGyYdc3.js} +1 -1
- package/fotbollskanalen/es/{index-BUPmcSlI.js → index-CkTyreXG.js} +1 -1
- package/fotbollskanalen/es/{index-CFC2qCZk.js → index-Dul3Mfgg.js} +1 -1
- package/fotbollskanalen/es/{index-g58X-f96.js → index-IPyvHxTb.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +6 -27
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-CLQOoJGF.js → styles-DrADmvb2.js} +1 -1
- package/godt/cjs/index.d.ts +6 -27
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +5 -27
- package/kilkaya/es/index.d.ts +5 -27
- package/klart/cjs/index.d.ts +6 -27
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +6 -27
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-DeF09zwU.js +1 -0
- package/koket/es/{events-C5iJPAr5.js → events-CA87816N.js} +1 -1
- package/{svdv2/es/index-DKgFd8BC.js → koket/es/index-B73Rktog.js} +1 -1
- package/koket/es/{index-8lrNvRkU.js → index-BKARuv6H.js} +1 -1
- package/koket/es/{index-BeO4rcvy.js → index-BeVRG0em.js} +1 -1
- package/koket/es/{index-CFuuJHk_.js → index-BwFjCDEc.js} +1 -1
- package/koket/es/{index-G9hUyJfl.js → index-CjAvTmMP.js} +1 -1
- package/koket/es/{index-BhiCfvRb.js → index-D4uWONVv.js} +1 -1
- package/koket/es/{index-BTa20fDA.js → index-D55dsLBV.js} +1 -1
- package/koket/es/{index-CUnZcQ5_.js → index-DJNFb_Jk.js} +1 -1
- package/koket/es/index.d.ts +6 -27
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-CGPf0BAr.js → koket/es/styles-B8SdZ5io.js} +1 -1
- package/minmote/cjs/index.d.ts +6 -27
- package/minmote/cjs/index.js +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +6 -27
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +6 -27
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-BAbSOW6y.js +1 -0
- package/sa/es/{events-Czp1Bf7L.js → events-CQr7o7mK.js} +1 -1
- package/sa/es/{index-BlWGftLo.js → index-Bp0FlYj4.js} +1 -1
- package/sa/es/{index-DRrfqemd.js → index-BpsmpJX6.js} +1 -1
- package/sa/es/{index-BK2Woo0V.js → index-CNOm0Zvv.js} +1 -1
- package/sa/es/{index-DVJ3uiHQ.js → index-DX8zLkcC.js} +1 -1
- package/sa/es/{index-RJ0AwbAy.js → index-DbxvaQTc.js} +1 -1
- package/{bt/es/index-q6gQRPQi.js → sa/es/index-DiAcKl0S.js} +1 -1
- package/sa/es/{index-B6QpNnPz.js → index-FxBHhBpN.js} +1 -1
- package/sa/es/{index-BgzaHxEB.js → index-bdVJz39p.js} +1 -1
- package/sa/es/index.d.ts +6 -27
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-BIEPgknJ.js → styles-Bdm5gig8.js} +1 -1
- package/sa/es/{styles-x_RZ8LfI.js → styles-BwOfPT8j.js} +1 -1
- package/{vg/es/styles-CDe9glwP.js → sa/es/styles-Ck-s8aFw.js} +1 -1
- package/sa/es/{styles-DbqMID7Q.js → styles-CqUSV7ll.js} +1 -1
- package/sa/es/{styles-BZbbl3__.js → styles-CvadVFAo.js} +1 -1
- package/sa/es/{styles-BvK_Hm8A.js → styles-D65Pg6EJ.js} +1 -1
- package/sa/es/{styles-DE-5r6jI.js → styles-DDcLvb2o.js} +1 -1
- package/{vg/es/styles-BxHcjj-n.js → sa/es/styles-DEjree18.js} +1 -1
- package/{bt/es/styles-C6Hn-Ylj.js → sa/es/styles-DZXqLTj3.js} +1 -1
- package/sav2/es/_auto-entry_sav2-CRnV3rZ2.js +1 -0
- package/sav2/es/{events-BI8lwyAS.js → events-DzwqUdEh.js} +1 -1
- package/sav2/es/{index-Dm0CwDko.js → index-14YfQ5Vr.js} +1 -1
- package/sav2/es/{index-Dd4x--40.js → index-38SjBDT2.js} +1 -1
- package/sav2/es/{index-jUIaqg6x.js → index-4sqWaTaf.js} +1 -1
- package/sav2/es/{index-VFT0zh22.js → index-B9ab_exe.js} +1 -1
- package/sav2/es/{index-CFYdF9nM.js → index-C1PhEl88.js} +1 -1
- package/sav2/es/{index-BgPfftGv.js → index-CbfYCeKr.js} +1 -1
- package/sav2/es/{index-GTPIp0mQ.js → index-DUEqQmBJ.js} +1 -1
- package/sav2/es/{index-BQ8oAuHr.js → index-_tdwh7iG.js} +1 -1
- package/sav2/es/index.d.ts +6 -27
- package/sav2/es/index.js +1 -1
- package/sav2/es/{styles-Lru4uD64.js → styles-BP4c8b71.js} +1 -1
- package/{btv2/es/styles-BIeAmWTL.js → sav2/es/styles-BquGVxXw.js} +1 -1
- package/sav2/es/{styles-BR_5kDUe.js → styles-BuEo0j8F.js} +1 -1
- package/{vgv2/es/styles-BVfmnN3W.js → sav2/es/styles-CSib2wFT.js} +1 -1
- package/sav2/es/{styles-BMp80jah.js → styles-CVOyC0Hy.js} +1 -1
- package/{btv2/es/styles-DjvA7hfT.js → sav2/es/styles-D84Umkht.js} +1 -1
- package/sav2/es/{styles-CZnBwaC3.js → styles-DQgdRzKf.js} +1 -1
- package/{btv2/es/styles-es1ee8SC.js → sav2/es/styles-wpXGtNVU.js} +1 -1
- package/svd/cjs/index.d.ts +6 -27
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-C6TfzEqZ.js +1 -0
- package/svd/es/{events-CWFgkDG1.js → events-D7UqxiPo.js} +1 -1
- package/{e24/es/index-fEZDTay_.js → svd/es/index-B114sh1q.js} +1 -1
- package/svd/es/{index-BP41ecWy.js → index-CFnnxX9d.js} +1 -1
- package/svd/es/{index-BKe3qaf7.js → index-CQCYYjIO.js} +1 -1
- package/svd/es/{index-D5ggf8Xp.js → index-CXVjdJfX.js} +1 -1
- package/svd/es/{index-Bya6Uq5B.js → index-DAojgc2F.js} +1 -1
- package/svd/es/{index-CCt9DWBH.js → index-DWNMB-6h.js} +1 -1
- package/svd/es/{index-BcNPzl4P.js → index-Din3zIPs.js} +1 -1
- package/svd/es/{index-C3cDOsuZ.js → index-DlW-FUIo.js} +1 -1
- package/svd/es/index.d.ts +6 -27
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-BWNs7vrn.js → styles-BV30fi5B.js} +1 -1
- package/svd/es/{styles-CcAVJGfE.js → styles-Bt0L4xU3.js} +1 -1
- package/svd/es/{styles-u3GakbDH.js → styles-DSLLwXoo.js} +1 -1
- package/svd/es/{styles-CI0tJc6e.js → styles-Dp2-I0FM.js} +1 -1
- package/svd/es/{styles-C7-tNUeS.js → styles-a0evvwP0.js} +1 -1
- package/svd/es/{styles-DUN-Sq2Q.js → styles-ocLsivmt.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-BcxtA5H5.js +1 -0
- package/svdv2/es/{events-CbogHJk0.js → events-DkpF1OVt.js} +1 -1
- package/svdv2/es/{index-DQEHhVgW.js → index-BNSx3ZEA.js} +1 -1
- package/svdv2/es/{index-BnEvrjDt.js → index-C7YoinwT.js} +1 -1
- package/svdv2/es/{index-aN0srUEo.js → index-Dbmwj6UJ.js} +1 -1
- package/{koket/es/index-DFkHEsQ5.js → svdv2/es/index-Dr9YS9Kp.js} +1 -1
- package/svdv2/es/{index-LihWROT2.js → index-JL0kyJm9.js} +1 -1
- package/svdv2/es/{index-4lmCFsSW.js → index-JQzzmtfN.js} +1 -1
- package/svdv2/es/{index-DaAnuF-t.js → index-blcrdGFA.js} +1 -1
- package/svdv2/es/{index-D3McYvBy.js → index-yWxbTBYY.js} +1 -1
- package/svdv2/es/index.d.ts +6 -27
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles-BQIPgsRh.js → svdv2/es/styles-B1n7-3GW.js} +1 -1
- package/svdv2/es/{styles-tlqB4rsT.js → styles-BlXdm2-y.js} +1 -1
- package/svdv2/es/{styles-P6IOCdoC.js → styles-BukOlMgV.js} +1 -1
- package/svdv2/es/{styles-Eh1GkHPx.js → styles-ByR8L2Dq.js} +1 -1
- package/svdv2/es/{styles-CKXTdzs6.js → styles-CEvkNQZ3.js} +1 -1
- package/svdv2/es/{styles-Dci-bvKU.js → styles-UmufiLeH.js} +1 -1
- package/tek/cjs/index.d.ts +6 -27
- package/tek/cjs/index.js +1 -1
- package/tracker/cjs/index.d.ts +6 -27
- package/tracker/cjs/index.js +1 -1
- package/tracker/es/index.d.ts +6 -27
- package/tracker/es/index.js +1 -1
- package/tv4/cjs/index.d.ts +6 -27
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-DsO-wqRO.js +1 -0
- package/tv4/es/{events-Bn0rJup8.js → events-4DkzCgrU.js} +1 -1
- package/tv4/es/{index-B6yq5Gyv.js → index-B6ag97Bw.js} +1 -1
- package/tv4/es/{index-gT_GHXn7.js → index-BQo7w0nT.js} +1 -1
- package/tv4/es/{index-BJji2ATp.js → index-BksRxrvK.js} +1 -1
- package/tv4/es/{index-BkFrwx_r.js → index-CPNVZLfK.js} +1 -1
- package/tv4/es/{index-BPa0_w5G.js → index-C_duha9o.js} +1 -1
- package/tv4/es/{index-BWEU3m94.js → index-DCgJvntT.js} +1 -1
- package/tv4/es/{index-Cq1qeKSR.js → index-GDlvM-pA.js} +1 -1
- package/{svd/es/index-CLVC_R25.js → tv4/es/index-R0DJReD8.js} +1 -1
- package/tv4/es/index.d.ts +6 -27
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-IKoxXgO0.js → tv4/es/styles-CpFHpgiA.js} +1 -1
- package/tvnu/cjs/index.d.ts +6 -27
- package/tvnu/cjs/index.js +1 -1
- package/types/index.d.ts +6 -27
- package/vg/cjs/index.d.ts +6 -27
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-5Fd4iVl3.js +1 -0
- package/vg/es/{events-BsbXyYJY.js → events-GNcxmmFo.js} +1 -1
- package/vg/es/{index-CbihXkGs.js → index-7HsThj3q.js} +1 -1
- package/vg/es/{index-zknvo2nh.js → index-B20ShDSB.js} +1 -1
- package/vg/es/{index-DRb6TbCy.js → index-BdKcLkzi.js} +1 -1
- package/vg/es/{index-BjFWFokY.js → index-BvlbZzc8.js} +1 -1
- package/vg/es/{index-DXTyIRph.js → index-CHYiiXpY.js} +1 -1
- package/vg/es/{index-B0l-K3Nm.js → index-D7eOCUrJ.js} +1 -1
- package/vg/es/{index-Bf04WCFs.js → index-DAIjI6Xf.js} +1 -1
- package/vg/es/{index-DiHKSlZN.js → index-Dx0-EJRL.js} +1 -1
- package/vg/es/index.d.ts +6 -27
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-CpI8Vlow.js → styles-9iOhmpQG.js} +1 -1
- package/vg/es/{styles-VY3hon_C.js → styles-B5RVrjQu.js} +1 -1
- package/vg/es/{styles-BexolDY4.js → styles-BErBnM5w.js} +1 -1
- package/vg/es/{styles-CIXqdJYT.js → styles-BJjHhcVd.js} +1 -1
- package/vg/es/{styles-ByLB3fAX.js → styles-BV2uz0rS.js} +1 -1
- package/vg/es/{styles-DP0QUZVe.js → styles-BVJJ_nnN.js} +1 -1
- package/vg/es/{styles-DthpO9K3.js → styles-BYlo20Oa.js} +1 -1
- package/vg/es/{styles-fArum_w2.js → styles-BvIBq9wk.js} +1 -1
- package/vg/es/{styles-b8Bmj5zP.js → styles-C5Ty1y5b.js} +1 -1
- package/{sa/es/styles-CgQ3pAiP.js → vg/es/styles-C7uK6z6P.js} +1 -1
- package/{bt/es/styles-DNutfDj8.js → vg/es/styles-DhxL-Kdf.js} +1 -1
- package/vg/es/{styles-CWBxD9zM.js → styles-F51u_KzR.js} +1 -1
- package/vg/es/{styles-BUtIGfqi.js → styles-F_EI0-R4.js} +1 -1
- package/vg/es/{styles-B63x2SpC.js → styles-k2ioKG8W.js} +1 -1
- package/vg/es/{styles-DxISXjJx.js → styles-mRZXwsl_.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-VQkwNK6O.js +1 -0
- package/vgv2/es/{events-B9GLUG_c.js → events-umppYZ48.js} +1 -1
- package/vgv2/es/{index-CRmtQ0Ln.js → index-B80fFKEp.js} +1 -1
- package/vgv2/es/{index-CFD6e815.js → index-ByTqOSor.js} +1 -1
- package/vgv2/es/{index-CWzszIrQ.js → index-C755Omrb.js} +1 -1
- package/vgv2/es/{index-BPI8SWbT.js → index-D9DCQDzE.js} +1 -1
- package/vgv2/es/{index-C1qvZ43-.js → index-DRyZUuLI.js} +1 -1
- package/vgv2/es/{index-gk_94DrP.js → index-Dh6g8FK2.js} +1 -1
- package/vgv2/es/{index-DNJnGBOC.js → index-JRUgEAmx.js} +1 -1
- package/vgv2/es/{index-BrQmd96n.js → index-gZmFckTC.js} +1 -1
- package/vgv2/es/index.d.ts +6 -27
- package/vgv2/es/index.js +1 -1
- package/{btv2/es/styles--PBvFHeQ.js → vgv2/es/styles-64VQBzw7.js} +1 -1
- package/vgv2/es/{styles-BypJiXcH.js → styles-B-nkSOeh.js} +1 -1
- package/vgv2/es/{styles-BveOiWvC.js → styles-BAYB1_6J.js} +1 -1
- package/{btv2/es/styles-BFs5C1e2.js → vgv2/es/styles-BGK9zDgq.js} +1 -1
- package/vgv2/es/{styles-Ca6cxxB-.js → styles-BNZNX1uK.js} +1 -1
- package/vgv2/es/{styles-Ze0zbpIu.js → styles-C5mWX7Pu.js} +1 -1
- package/vgv2/es/{styles-C7Zup_OS.js → styles-CYOT98OO.js} +1 -1
- package/vgv2/es/{styles-DNcC9ILz.js → styles-D-8BgKu3.js} +1 -1
- package/vgv2/es/{styles-DpUl3Suf.js → styles-DIkzDo-C.js} +1 -1
- package/vgv2/es/{styles-CXtejXaY.js → styles-DKDSQL-H.js} +1 -1
- package/{btv2/es/styles-kWtSX6kZ.js → vgv2/es/styles-DdwWbFr7.js} +1 -1
- package/vgv2/es/{styles-D1hkQkrv.js → styles-DnnW6Uhr.js} +1 -1
- package/vgv2/es/{styles-By7C17yJ.js → styles-c8ku3cpV.js} +1 -1
- package/vgv2/es/{styles-COdKCQnY.js → styles-noKspg7k.js} +1 -1
- package/vgv2/es/{styles-fmVnipjj.js → styles-zHrW6Rjb.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-KOEDRGMj.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-B5bkdkn2.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-Czkvey-5.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CI9xcMRh.js +0 -1
- package/bt/es/_auto-entry_bt-CI6IkXgn.js +0 -1
- package/btv2/es/_auto-entry_btv2-Byn2KJna.js +0 -1
- package/e24/es/_auto-entry_e24-Chx1wkKd.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-BjtGQ3_l.js +0 -1
- package/koket/es/_auto-entry_koket-B2WlSuMx.js +0 -1
- package/sa/es/_auto-entry_sa-DR1Eak8R.js +0 -1
- package/sav2/es/_auto-entry_sav2-Buoo9FKC.js +0 -1
- package/svd/es/_auto-entry_svd-BH3Ngjrt.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-D3Q-Cwuh.js +0 -1
- package/tv4/es/_auto-entry_tv4-CQemRCV3.js +0 -1
- package/vg/es/_auto-entry_vg-Ysm3SmZS.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-CXADx6AD.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,N as t,O as n,P as a,Q as r,l as i,R as l,U as s,h as o,V as c}from"./_auto-entry_btv2-
|
|
1
|
+
import{_ as e,N as t,O as n,P as a,Q as r,l as i,R as l,U as s,h as o,V as c}from"./_auto-entry_btv2-Br28Rkuw.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",P=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),E=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield P(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield E();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const O=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},j=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{O as Kilkaya,j as runKilkaya};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as c,q as d}from"./_auto-entry_btv2-
|
|
1
|
+
import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as c,q as d}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";const i="#fff",y="#0098da",p=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},A=e=>{const t=w(e),o=m(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},m=e=>{const t=()=>A(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&A(e)};return u(),window.addEventListener("keydown",t),t},E=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),m(e),u(),t.addEventListener("click",()=>{A(e)}),v(!1))},g=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),m(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},b=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>A(e))})(e)},h=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},f=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},T=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},C=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=d(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=d(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,T(t))},x=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){const{takeover:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),u=document.querySelector(".advertory-takeover-wrapper");if(!d||!u||!l)return;const v=a(o),A=u.offsetHeight,m=window.scrollY>A;u.style.display="block",!m&&p(v,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:h,[e.TOPSCROLLER]:f,[e.VELVET]:S})[o](t)})(u,v),k(),((t,o)=>{({[e.WELCOME_PAGE]:g,[e.TOPSCROLLER]:g,[e.SPLASH]:E,[e.VELVET]:b})[o](t)})(u,v),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:y}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(u,v,l),yield n(),!m&&p(v,!0),c(o,v)});export{q as createTakeoverAd,C as modifyTakeoverAdContent,x as modifyTakeoverIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_btv2-
|
|
1
|
+
import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_btv2-Br28Rkuw.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-BkiRy_Ug.js";import"react/jsx-runtime";n('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const y={Blink:"Blink"},h=new Map,g=n=>{var e;if(!h.has(n)){const e=import(/* webpackIgnore: true */n).then(n=>(n=>{for(const[e,i]of Object.entries(y)){const t=n[e];null!=t&&(window[i]=t)}})(n)).catch(e=>{throw h.delete(n),e});h.set(n,e)}return null!==(e=h.get(n))&&void 0!==e?e:Promise.resolve()},b="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",k=n=>{var e,i;const t=document.querySelector(`[id^="${n}"]`);return null!==(i=null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.finnBlinkId)&&void 0!==i?i:n},$=(n,e)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==e?void 0:e.enabled)||(n=>{var e;const i=document.querySelector(`[id^="${n}"]`);return!!(null===(e=null==i?void 0:i.dataset)||void 0===e?void 0:e.noBidAd)})(n);if(!o||!t)return null;const{height:r,requireImage:d,position:l,offset:a}=(null==e?void 0:e.sdkPayload)||{};return{selector:`#${k(n)}`,enabled:o,position:null!=l?l:n,height:null!=r?r:100,offset:null!=a?a:200,requireImage:d,advertoryTheme:null==e?void 0:e.advertoryTheme}},w=(n,a,s)=>e(void 0,void 0,void 0,function*(){const{placements:c,pageContext:{deviceType:u},appearanceConfig:f}=i.get();t(`rendering finn blink ad for ${n}`);const v=o(n),h=c[u].find(n=>n.targetId===v),g=$(n,null==h?void 0:h.finnBlink);if(!(null==g?void 0:g.enabled))return t(`Finn blink is not enabled on placement: ${n}`),s&&s(n),void p(n);if((n=>{var e;const i=k(n),t=document.querySelector(`[id^="${i}"]`);return!!(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains("finn"))})(n))return void t(`Finn blink already loaded ${n}`);const{publisher:b,countryCode:w,finnBlink:C}=a,{sdkPayload:{channel:x}={}}=null!=C?C:{},I=null!=x?x:`${b}.${w}`,j="dark"===(null==f?void 0:f.theme)?"dark":"light";try{const n=yield r();yield(B=Object.assign(Object.assign({},g),{channel:I,userId:n,theme:j}),e(void 0,void 0,void 0,function*(){const{userId:n,theme:e}=B,i=l(B,["userId","theme"]),t=window[y.Blink];if(!t)return;const o=new t({remote:"https://www.finn.no/distribution-front/external/carousel",userId:n,theme:e});yield o.inject(Object.assign({},i))})),m(g.selector.replace("#",""),g.advertoryTheme)}catch(e){t(`Finn blink error ${e}`),s&&s(n),!s&&d(n),p(n)}var B}),C=()=>e(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{isMobileApp:e,countryCode:o}}=i.get();return!!(yield a(n,e,o,"finn-blink"))||(t("Skip loading finn blink ad due to missing TCF consent."),!1)}),x=(n,o,r,l)=>e(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:e}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${n}`),!(yield C())||e)return r&&r(n),p(n),void(!r&&d(n));try{yield g(b)}catch(n){console.error(n)}yield w(n,o,r),l&&l()}),I=(n,e)=>{var i;(t(`Appending ${e.id} after ${n.id}`),n.parentElement&&(i=n.parentElement,!Array.from(i.children).some(n=>n.classList.contains("advertory-finn-blink-wrapper"))))?(n.parentElement.style.display="none",n.parentElement.insertAdjacentElement("afterend",e)):t(`Cannot perform afterend on: ${n.id}`)},j=(n,o)=>e(void 0,void 0,void 0,function*(){var e,r;if(!o)return;const{replacementConfig:d}=o,l=null===(e=null==d?void 0:d.adsToReplace)||void 0===e?void 0:e[n],a=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[n];s()&&l&&a&&o.enabled?(yield C())&&(yield g(b),l.forEach(([n,e])=>{const o=document.querySelector(`[id^="${n}"]`);if(!o)return;const r=(n=>{const{siteSpecificConfig:{publisherClassName:e}={}}=i.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=n,o.appendChild(r),u(e,r,f.FINN_BLINK),t(`Creating blink container for: ${n}`),o})(e);(n=>{t(`Hiding old ad container: ${n.id}`),n.style.setProperty("display","none","important")})(o),I(o,r),o.dataset.finnBlinkId=e,c().withFullAdsChain(n)})):t(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),B=n=>document.querySelector(`#${n}`),A=n=>e(void 0,void 0,void 0,function*(){if(!n.length)return;const{appearanceConfig:e,pageContext:{deviceType:t}}=i.get(),o=null==e?void 0:e.defaultThreshold[t];for(const e of n){const{requestThreshold:n,targetId:i}=e,t=B(i);t&&(yield v(t,null!=n?n:o))}});export{A as handleFinnBlinkOnlyPlacements,x as loadFinnBlinkAd,j as replaceAdsWithFinnBlink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{G as getDrEditionManager,H as handleDrEdition,J as handleDrEditionBackfill,K as handleDrEditionBackfillOnAdblock}from"./_auto-entry_btv2-
|
|
1
|
+
export{G as getDrEditionManager,H as handleDrEdition,J as handleDrEditionBackfill,K as handleDrEditionBackfillOnAdblock}from"./_auto-entry_btv2-Br28Rkuw.js";import{jsxs as a,jsx as t}from"react/jsx-runtime";const e=({editionName:e,fallbackTargetId:i,children:n,pulseData:r,htmlAttributes:d})=>{const l=(a,t)=>{const e={};if(!a)return e;for(const[i,n]of Object.entries(a)){e[t?`${t}-${i}`:i]=String(n)}return e},s=l(r,"data-pulse"),o=l(d,"data");return a("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":e},s,o,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:n})]}))};export{e as DrEdition};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,z as e}from"./_auto-entry_btv2-
|
|
1
|
+
import{c as t,z as e}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";const n=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=(r,l)=>{var i,s;const a=document.querySelector(`#${r.targetId}`),{siteSpecificConfig:{publisherClassName:o,fullWidthFormatClassName:d}={},fullWidth:f,pageContext:{deviceType:u}}=t.get();if(!a)return null;const c=a.parentElement;if(a.style.width=e(u)?"100vw":"100%",a.style.position="relative",c&&(c.style.width=e(u)?"100vw":"100%",c.style.position="relative"),o&&d){const t=`advertory-${o}-${d}`;a.classList.add(`${t}__${l}`),null==c||c.classList.add(`${t}-wrapper__${l}`)}const p=null===(s=null===(i=null==f?void 0:f.options)||void 0===i?void 0:i.styles)||void 0===s?void 0:s[u],y=(null==f?void 0:f.enabled)&&p;return!y&&c&&e(u)&&(c.style.left="50%",c.style.marginLeft="-50vw"),y&&p.adContainer&&n(a,p.adContainer),y&&p.adContainerWrapper&&c&&n(c,p.adContainerWrapper),a},l=(t,e,n,l)=>{const i=r(t,l);if(!i)return;const s=i.querySelector("iframe"),a=null==s?void 0:s.parentElement;if(!s||!a)return;const o=i.offsetWidth,d=o/t.width;a.style.transform=`scale(${d})`,a.style.transformOrigin="left top";const f=Math.round(o/e*n);i.style.height=`${f}px`},i=n=>{const l=r(n,"fullwidth-ad");if(!l)return;const i=l.querySelector("iframe");if(!i)return;const{deviceType:s}=t.get().pageContext;i.style.width=e(s)?"100vw":"100%",(null==i?void 0:i.parentElement)&&(i.parentElement.style.width=e(s)?"100vw":"100%")},s=t=>{l(t,1080,1920,"ninesixteen-ad")},a=t=>{l(t,1080,1080,"fullsquare-ad")};export{a as applyFullsquareFormat,i as applyFullwidthFormat,s as applyNinesixteenFormat};
|
package/btv2/es/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import Tracker from '@schibsted/pulse-sdk';
|
|
2
|
+
|
|
1
3
|
type AstAdType = 'banner' | 'video' | 'native' | 'outstream';
|
|
2
4
|
interface AstBanner {
|
|
3
5
|
content: string;
|
|
@@ -296,39 +298,17 @@ declare const PageTypes: {
|
|
|
296
298
|
};
|
|
297
299
|
type PageType = (typeof PageTypes)[keyof typeof PageTypes];
|
|
298
300
|
|
|
299
|
-
interface
|
|
300
|
-
xandr?: {
|
|
301
|
-
ppId1?: string;
|
|
302
|
-
ppId2?: string;
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
interface TrackerInstance {
|
|
306
|
-
getAdvertisingIdentifiers: () => Promise<AdvertisingIdentifiers>;
|
|
307
|
-
getUserId: () => Promise<undefined | string | number>;
|
|
308
|
-
getEnvironmentId: () => Promise<undefined | string>;
|
|
309
|
-
getActor: () => Promise<undefined | unknown>;
|
|
310
|
-
state?: {
|
|
311
|
-
pageViewId?: string;
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
interface PulseInstance extends TrackerInstance {
|
|
315
|
-
pulseTracker?: TrackerInstance;
|
|
301
|
+
interface PulseLegacyExtras {
|
|
316
302
|
trackElementView?: (eventInput: unknown) => Promise<void>;
|
|
317
303
|
trackElementClick?: (eventInput: unknown) => Promise<void>;
|
|
318
304
|
trackClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
319
305
|
trackViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
320
|
-
trackLegacyClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
321
|
-
trackLegacyViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
322
306
|
}
|
|
323
|
-
interface
|
|
307
|
+
interface PulseConfig {
|
|
324
308
|
clientId: string;
|
|
325
|
-
instance:
|
|
309
|
+
instance: Tracker & PulseLegacyExtras;
|
|
326
310
|
hasherUrl?: string;
|
|
327
311
|
}
|
|
328
|
-
interface Pulse {
|
|
329
|
-
clientId: string;
|
|
330
|
-
instance: PulseInstance;
|
|
331
|
-
}
|
|
332
312
|
|
|
333
313
|
declare const Newsrooms: {
|
|
334
314
|
readonly SVD: "svd";
|
|
@@ -433,8 +413,7 @@ interface SiteConfig {
|
|
|
433
413
|
glimr?: GlimrConfig;
|
|
434
414
|
tcf?: TCFConfig;
|
|
435
415
|
prebid?: PrebidConfig;
|
|
436
|
-
|
|
437
|
-
pulse?: Pulse;
|
|
416
|
+
pulse?: PulseConfig;
|
|
438
417
|
finnBlink?: FinnBlinkConfig;
|
|
439
418
|
wallpaper?: WallpaperConfig;
|
|
440
419
|
fullscreenScroll?: FullscreenScrollConfig;
|
package/btv2/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{X as Netboard,a0 as Skyscraper,Y as Sponsorstripe,Z as Takeover,$ as Topboard,a1 as Wallpaper,W as default}from"./_auto-entry_btv2-
|
|
1
|
+
export{X as Netboard,a0 as Skyscraper,Y as Sponsorstripe,Z as Takeover,$ as Topboard,a1 as Wallpaper,W as default}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t}from"./_auto-
|
|
1
|
+
import{i as t}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";const o=t("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";a('.advertory-abo-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#000;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-weight:600;text-align:left;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}.advertory-abo-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-default{width:580px;height:400px}}.advertory-abo-ad-native-default .ad-info{position:absolute;top:20px;height:26px;width:26px;left:0;z-index:1000;background-color:hsla(0,0%,100%,.4509803922);border-bottom-right-radius:13px;transform:none;transform-origin:center}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-info{top:30px}}.advertory-abo-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0)}.advertory-abo-ad-native-default .ad-content{display:block}.advertory-abo-ad-native-default .ad-image-container{position:relative;line-height:0}.advertory-abo-ad-native-default .ad-image-container .ad-header{position:absolute;height:20px;width:100%;font-size:13px;line-height:20px;color:#4c3d00;background:rgba(255,205,0,.8)}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-image-container .ad-header{height:30px;line-height:30px;padding-left:16px}}.advertory-abo-ad-native-default .ad-image-container .ad-header span{margin-left:8px}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-image-container .ad-header span{margin:0}}.advertory-abo-ad-native-default .ad-image-container .ad-image{position:static;width:100%;height:52.3560209424vw}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-image-container .ad-image{height:301px}}.advertory-abo-ad-native-default .ad-image-container .ad-logo{position:absolute;height:30px;width:auto;top:auto;bottom:8px;left:8px;right:auto}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-image-container .ad-logo{left:16px;bottom:16px}}.advertory-abo-ad-native-default .ad-text-container{background:#fff6d1;overflow:auto}.advertory-abo-ad-native-default .ad-text-container .ad-sponsored-by{color:#64625a;font-size:10px;margin:8px 8px 3px 8px;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-text-container .ad-sponsored-by{font-size:13px;margin:8px 16px}}.advertory-abo-ad-native-default .ad-text-container .ad-title{margin:0 8px 7px 8px;min-height:52px;line-height:24px;color:#000;font-size:20px;font-weight:700;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-text-container .ad-title{font-size:24px;margin:0 16px 8px 16px;height:59px;min-height:auto;line-height:normal;overflow:hidden}}.advertory-abo-ad-native-default.bt .ad-text-container .ad-title{font-family:"TabacG2",serif;font-weight:500}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-
|
|
1
|
+
import{i as e}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";e('.advertory-no-ad-native-recirc{width:100%;min-height:250px;margin:0 auto;color:#000;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;background-color:#fff;font-family:"Inter",sans-serif;font-weight:600;text-align:left;font-size:14px;container-type:inline-size}.advertory-no-ad-native-recirc *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-recirc .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-recirc .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-recirc .ad-content{display:flex;flex-direction:column}.advertory-no-ad-native-recirc .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}@container (min-width: dna.$md){.advertory-no-ad-native-recirc .ad-image-container{min-height:0}}.advertory-no-ad-native-recirc .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-recirc .ad-text-container{background:#f5faff;overflow:auto;padding:8px;container-type:inline-size}@container (min-width: dna.$md){.advertory-no-ad-native-recirc .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-recirc .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@container (min-width: dna.$md){.advertory-no-ad-native-recirc .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-recirc .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-recirc .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@container (min-width: 420px){.advertory-no-ad-native-recirc .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";a(".advertory-abo-ad-native-recirc{width:100%;min-height:250px;margin:auto;color:#000;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}@media screen and (min-width: 768px){.advertory-abo-ad-native-recirc{max-width:283px;height:400px}}.advertory-abo-ad-native-recirc .ad-info{position:absolute;top:0;height:26px;width:26px;left:0;z-index:1000;background-color:hsla(0,0%,100%,.4509803922);border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-abo-ad-native-recirc .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0)}.advertory-abo-ad-native-recirc .ad-content{display:block}.advertory-abo-ad-native-recirc .ad-image-container{position:relative;line-height:0}.advertory-abo-ad-native-recirc .ad-image-container .ad-header{height:30px;font-size:13px;line-height:30px;font-weight:600;color:#4c3d00;background:rgba(255,205,0,.8);padding-left:32px;font-family:-apple-system,BlinkMacSystemFont,sans-serif;border-top-right-radius:10px;border-top-left-radius:10px}.advertory-abo-ad-native-recirc .ad-image-container .ad-image{width:100%}.advertory-abo-ad-native-recirc .ad-image-container .ad-logo{position:absolute;height:30px;width:auto;top:auto;bottom:8px;left:8px;right:auto}@media screen and (min-width: 768px){.advertory-abo-ad-native-recirc .ad-image-container .ad-logo{left:16px;bottom:16px}}.advertory-abo-ad-native-recirc .ad-text-container{background:#fff6d1;overflow:auto;border-bottom-right-radius:10px;border-bottom-left-radius:10px}.advertory-abo-ad-native-recirc .ad-text-container .ad-sponsored-by{display:block;color:#64625a;font-size:13px;padding:5px 8px;text-transform:uppercase;font-family:Roboto,sans-serif}.advertory-abo-ad-native-recirc .ad-text-container .ad-title{padding:6px 8px;margin-bottom:12px;color:#000;font-size:17px;font-weight:700;font-family:Arial,sans-serif}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";a('.advertory-no-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#dfdfdf;font-family:"Inter",sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;font-size:14px}@media screen and (min-width: 768px){.advertory-no-ad-native-default{width:580px;height:400px}}.advertory-no-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-default .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-default .ad-content{display:block}.advertory-no-ad-native-default .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}.advertory-no-ad-native-default .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-default .ad-text-container{background:#f5faff;overflow:auto;padding:8px}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-default .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}.advertory-vg-native-ad__front .advertory-no-ad-native-default{width:100%;height:auto}.advertory-aftenposten-native-ad-wrapper__front{justify-content:center}.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(-40px + 4rem)}@media screen and (min-width: 768px){.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(12px + .75rem)}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";a('.advertory-shared-ad-native-seamless .ad-info div[role=button]{left:100%;transform:translateX(-100%);background-color:hsla(0,0%,100%,.45);border-bottom-left-radius:13px}.advertory-shared-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-shared-ad-native-seamless .ad-link .ad-content{min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;border-radius:10px;background-color:var(--color-background-secondary, #ffffff);color:var(--color-text-primary, #333)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header{padding:8px 10px 10px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand{display:flex;align-items:center;gap:12px;margin-bottom:11px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-logo{max-height:44px;border-radius:50%}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-brand-text{display:flex;flex-direction:column;gap:3px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-brand-text .sponsored-by{font-size:16px;font-weight:500;line-height:1}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-brand-text .ad-annons{font-size:14px;font-weight:400;line-height:1.1;color:var(--color-text-primary, #333);text-transform:lowercase}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-brand-text .ad-annons::first-letter{text-transform:uppercase}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-headline{margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;object-fit:cover}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-domain{font-size:11px;line-height:1;color:#666;text-transform:uppercase;text-align:left;font-weight:500}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:12px;line-height:1;color:var(--color-text-primary, #111111);white-space:nowrap;background-color:var(--color-background-tertiary, #d9d9d9);border-radius:12px;font-weight:500}.advertory-aftenposten-native-ad-wrapper__front:has(.advertory-shared-ad-native-seamless),.advertory-aftenposten-native-ad__front:has(.advertory-shared-ad-native-seamless),.advertory-bt-native-ad-wrapper__front:has(.advertory-shared-ad-native-seamless),.advertory-bt-native-ad__front:has(.advertory-shared-ad-native-seamless),.advertory-sa-native-ad-wrapper__front:has(.advertory-shared-ad-native-seamless){max-width:100%}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t}from"./_auto-entry_btv2-
|
|
1
|
+
import{i as t}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";t('.advertory-abo-ad-native-content-video{position:relative;display:table;table-layout:fixed;width:100%;margin:0 auto;background:#fff;font-family:"Inter",sans-serif;font-weight:700;text-align:left;color:#000}.advertory-abo-ad-native-content-video *{line-height:1}.advertory-abo-ad-native-content-video a.ad-link{display:block;text-decoration:none;color:inherit}.advertory-abo-ad-native-content-video a.ad-link:hover{text-decoration:none}.advertory-abo-ad-native-content-video .ad-info{z-index:10;top:44px}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-info{top:50px}}.advertory-abo-ad-native-content-video .ad-info div[role=button]{top:44px !important;border-bottom-right-radius:13px;background-color:hsla(0,0%,100%,.45);z-index:10}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-info div[role=button]{top:51px !important}}.advertory-abo-ad-native-content-video .ad-content{display:flex;flex-direction:column}.advertory-abo-ad-native-content-video .ad-content .ad-header{position:relative;height:44px;display:flex;align-items:center;text-transform:uppercase;padding:0 8px}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-header{height:51px;min-height:0}}.advertory-abo-ad-native-content-video .ad-content .ad-header span{font-weight:700;font-size:13px;position:absolute;top:50%;transform:translateY(-50%)}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-header span{font-size:20px;padding-left:12px}}.advertory-abo-ad-native-content-video .ad-content .ad-header .ad-logo{position:absolute;right:0;width:auto;height:40px;margin-right:8px}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-header .ad-logo{width:auto;height:35px}}.advertory-abo-ad-native-content-video .ad-content .ad-image-container{display:flex;position:relative}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-image-container{min-height:0}}.advertory-abo-ad-native-content-video .ad-content .ad-image-container .ad-image{width:100%;height:auto;object-fit:cover;object-position:center 0}.advertory-abo-ad-native-content-video .ad-content .ad-image-container .ad-player-wrapper{height:56.4971751412vw;width:100%}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-image-container .ad-player-wrapper{height:407px}}.advertory-abo-ad-native-content-video .ad-content .ad-text-container{display:flex;flex-direction:column;color:#2b2b2b;padding-bottom:10px}.advertory-abo-ad-native-content-video .ad-content .ad-text-container .sponsored-by{display:block;padding:8px;font-size:12px;font-weight:normal;text-transform:uppercase}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-text-container .sponsored-by{padding:8px 10px}}.advertory-abo-ad-native-content-video .ad-content .ad-text-container .ad-title{display:block;padding:0 8px;margin-left:0;margin-bottom:0;font-size:var(--mobileTitleSize);font-weight:bold;line-height:1}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-text-container .ad-title{padding:4px 12px 8px 12px;font-size:var(--desktopTitleSize)}}.advertory-abo-ad-native-content-video .ad-content .ad-text-container .ad-description{margin:4px 0;padding:0 8px;font-size:16px;line-height:calc(15px);color:#000}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-text-container .ad-description{padding:0 12px}}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video.bt .ad-content .ad-image-container .ad-player-wrapper,.advertory-abo-ad-native-content-video.sa .ad-content .ad-image-container .ad-player-wrapper{height:302px}}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video.bt .ad-content .ad-text-container .ad-title,.advertory-abo-ad-native-content-video.sa .ad-content .ad-text-container .ad-title{font-size:23px}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_btv2-
|
|
1
|
+
import{i as e}from"./_auto-entry_btv2-Br28Rkuw.js";import"react/jsx-runtime";e(".advertory-abo-ad-native-video{width:100%;min-height:250px;margin:auto;color:#000;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}.advertory-abo-ad-native-video *{box-sizing:border-box;line-height:normal;text-transform:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-video{width:580px;height:400px}}.advertory-abo-ad-native-video .ad-info{position:absolute;height:26px;width:26px;top:20px;left:0;z-index:1000;background-color:hsla(0,0%,100%,.4509803922);border-bottom-right-radius:13px;transform:none;transform-origin:center}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-info{top:30px}}.advertory-abo-ad-native-video .ad-info .gdprAdTransparencyCogWheelButton{background-color:rgba(0,0,0,0);border-bottom-right-radius:13px;z-index:10}.advertory-abo-ad-native-video .ad-content .ad-image-container{position:relative;line-height:0}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header{position:absolute;height:20px;width:100%;font-size:13px;line-height:20px;color:#4c3d00;background:rgba(255,205,0,.8);z-index:100}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header span{margin-left:8px}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header{height:30px;line-height:30px;padding-left:16px}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header span{margin:0}}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:56.4971751412vw;width:100%}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:326px}}.advertory-abo-ad-native-video .ad-content .ad-text-container{background:#fff6d1;overflow:auto}.advertory-abo-ad-native-video .ad-content .ad-text-container .sponsored-by{color:#64625a;font-size:10px;margin:8px 8px 3px 8px;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-text-container .sponsored-by{font-size:13px;margin:8px 16px}}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link{text-decoration:none;display:flex;flex-direction:column}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link,.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link:focus,.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link:hover,.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link:visited{color:#000}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-title{margin:0 8px 7px 8px;min-height:52px;line-height:24px;color:#000;font-size:20px;font-weight:700;display:flex;flex-direction:column}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-title{font-size:22px;margin:0 16px 9px 16px;height:35px;min-height:auto;line-height:35px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;display:block}}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-description{display:none;border-top:1px solid rgba(128,128,128,.5019607843);margin:0 8px 12px 8px;padding-top:8px;color:#6a6a6a;font-style:normal;font-weight:normal;font-size:12px;line-height:14px}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-description{font-size:13px;margin:8px 16px;line-height:16px}}");
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Tracker from '@schibsted/pulse-sdk';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { Identity, HasSessionSuccessResponse } from '@schibsted/account-sdk-browser';
|
|
3
4
|
|
|
@@ -170,24 +171,17 @@ interface TrackerInstance {
|
|
|
170
171
|
pageViewId?: string;
|
|
171
172
|
};
|
|
172
173
|
}
|
|
173
|
-
interface
|
|
174
|
-
pulseTracker?: TrackerInstance;
|
|
174
|
+
interface PulseLegacyExtras {
|
|
175
175
|
trackElementView?: (eventInput: unknown) => Promise<void>;
|
|
176
176
|
trackElementClick?: (eventInput: unknown) => Promise<void>;
|
|
177
177
|
trackClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
178
178
|
trackViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
179
|
-
trackLegacyClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
180
|
-
trackLegacyViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
181
179
|
}
|
|
182
|
-
interface
|
|
180
|
+
interface PulseConfig {
|
|
183
181
|
clientId: string;
|
|
184
|
-
instance:
|
|
182
|
+
instance: Tracker & PulseLegacyExtras;
|
|
185
183
|
hasherUrl?: string;
|
|
186
184
|
}
|
|
187
|
-
interface Pulse {
|
|
188
|
-
clientId: string;
|
|
189
|
-
instance: PulseInstance;
|
|
190
|
-
}
|
|
191
185
|
|
|
192
186
|
declare const Newsrooms: {
|
|
193
187
|
readonly SVD: "svd";
|
|
@@ -234,8 +228,7 @@ interface SiteConfig {
|
|
|
234
228
|
glimr?: GlimrConfig;
|
|
235
229
|
tcf?: TCFConfig;
|
|
236
230
|
prebid?: PrebidConfig;
|
|
237
|
-
|
|
238
|
-
pulse?: Pulse;
|
|
231
|
+
pulse?: PulseConfig;
|
|
239
232
|
finnBlink?: FinnBlinkConfig;
|
|
240
233
|
wallpaper?: WallpaperConfig;
|
|
241
234
|
fullscreenScroll?: FullscreenScrollConfig;
|
|
@@ -684,7 +677,7 @@ declare class DrEditionManager {
|
|
|
684
677
|
private observeCarousel;
|
|
685
678
|
}
|
|
686
679
|
|
|
687
|
-
declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverProperties, identityFacade: IdentityFacade, pulse?:
|
|
680
|
+
declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverProperties, identityFacade: IdentityFacade, pulse?: PulseConfig["instance"]) => DrEditionManager;
|
|
688
681
|
|
|
689
682
|
declare const DrEdition: ({ editionName, fallbackTargetId, children, pulseData, htmlAttributes }: DrEditionComponentProps) => ReactNode;
|
|
690
683
|
|
package/dr-edition/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");function t(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n="opaque",i=e=>t(void 0,void 0,void 0,function*(){if(e.type!==n){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),o={get:(e,...n)=>t(void 0,[e,...n],void 0,function*(e,n={}){var{timeout:o}=n,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["timeout"]);if(o)return((e,n,o)=>t(void 0,void 0,void 0,function*(){const t=new AbortController,r=setTimeout(()=>t.abort(),o);try{const o=yield fetch(e,Object.assign(Object.assign({},n),{signal:t.signal}));return i(o)}finally{clearTimeout(r)}}))(e,r,o);const a=yield fetch(e,r);return i(a)}),post:(e,n,i)=>t(void 0,void 0,void 0,function*(){const t=JSON.stringify(i),o=yield fetch(e,{method:"POST",headers:n,body:t});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},r=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},a=["netboard","board"];class s{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:o}=e,r=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",o),r&&s.searchParams.append("urlData",r),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return t(this,void 0,void 0,function*(){var t,n,i;const a=yield this.identityFacade.getIdentityUser(),s=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",d=(null==a?void 0:a.userId)?String(a.userId):"",l=this.buildUrl(e,{envId:s,spid:d});try{r("Starting fetching DrEdition ad from URL:",l);const e=yield o.get(l);return r("Fetch operation completed successfully."),e}catch(e){r("Error during fetch operation:",e)}return null})}}class d{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:o,creativeId:r}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:o,utm_medium:s},r&&{utm_id:`df-${r}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),o=new URLSearchParams(decodeURIComponent(e.search)),r=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{o.has(e)||r.set(e,null!=t?t:"")}),r.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const o=this.getDrEditionUTMParams(e,t),r=new URL(i);return Object.entries(o).forEach(([e,t])=>{r.searchParams.has(e)||r.searchParams.set(e,null!=t?t:"")}),r.toString()}handleVideo(e,n){return t(this,void 0,void 0,function*(){const{id:t,autoplay:i,mute:o,videoLoop:r,vendor:a}=n.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:t,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:o,vgtvLoop:!!r,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:o}=new URL(n);if(!i.includes("www.vg.no")&&!o.includes("annonsorinnhold"))return[n];const r=o.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const l=e=>new URLSearchParams(window.location.search).get(e),c=e=>{if("0"===l("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&(()=>{const e=document.querySelector(".advertory-wallpaper-background");e&&e.remove()})())},u=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},v=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):r("Dr. Edition container does not have a parent element, cannot remove height lock.")};class p{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,n){return t(this,void 0,void 0,function*(){var t,i;const{drEditionConfig:{options:{containerSelector:o}},renderAsBackfill:a=!1}=n,s=e.querySelector(o);if(!s)return void r(`Container with selector "${o}" not found.`);const d=yield this.drEditionService.fetchData(n);return(null==d?void 0:d.itemId)||a?!(null==d?void 0:d.itemId)&&a?(r("No Dr. Edition ads available to render. Collapsing whole placement."),c(e.id),void v(s)):((null==d?void 0:d.itemId)&&a&&(r("Dr. Edition ad available to render as a Xandr backfill."),u(e.id)),void(d?(d.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(d.css,"style"),yield this.rendererManager.render(s,d,n),yield null===(t=this.videoManager)||void 0===t?void 0:t.handle(d,n),v(s),this.drEditionAds.push(d),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(d.itemId),this.observeAdView(e,d,n),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):v(s))):(r("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(s),this.showBackfill(e),void v(s))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";u(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let o=null;const r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(o&&clearTimeout(o),o=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{r.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{r.observe(e)}),!0}}const g=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return r("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(r("Resolving advertising permission value obtained"),i=!0,t(e))},a=setTimeout(()=>{r("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{r("On Tcf Ready called, waiting for permission"),clearTimeout(a)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(a);const t=Number(e);r("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),m="no",h="se",y="cmp:loaded";let w="undefined"!=typeof window?window._tcf_:void 0,f=!1;const b=(e,n,i)=>{const o=!!(null==e?void 0:e.enabled),a=(null==e?void 0:e.timeout)||3e3,s=l("bypass_tcf"),d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(r("TCF bypass param detected, returning consent: true"),!0):(r("TCF is not enabled, returning consent: true"),!0))(o,s))return!0;if(f)return null;if(!w)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=w.getConsentedToAllSync();return r(`TCF consented to all is: ${t}`),w.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(r("Getting TCF consent manager..."),window._tcf_)return r("TCF consent manager is already available"),w=window._tcf_,void e(w);r("TCF consent manager is not available");const n=()=>{r("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(w=window._tcf_,e(w)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(y,n),f=!0,t(new Error("Timeout waiting for CMP to load"))},a);r("Listening for CMP loaded event..."),document.addEventListener(y,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return r(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&i===h,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&i===m;if(t||n)return r("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield g(e);if(!(null==e?void 0:e.enabled))return!0;const o=d();return null!==o?o:yield new Promise((e,t)=>{try{if(!w)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{r("TCF isConsentedToAll timed out, resolving with false"),n(!1)},a);w.onTcfReady(()=>{r("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),w.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},E=(e,n,i,...o)=>t(void 0,[e,n,i,...o],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return r(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return r(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=b(e,0,n);return(yield o())?(r(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(r(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),P="mobile";class C{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,n,i){return t(this,void 0,void 0,function*(){if(!(null==n?void 0:n.itemId))return;const{getConsentAsync:t}=b(i.tcf,i.isMobileApp,i.country),o=yield t(),r=i.device===P?n.mobileHTML:n.desktopHTML;const a=o?r:r.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var t,o,r;e.search=null!==(r=null===(o=(t=this.newsroomStrategy).getUrlSearchParams)||void 0===o?void 0:o.call(t,e,n,i))&&void 0!==r?r:"",e.onclick=()=>this.pulseManager.trackContentClick(e,n,i)})})}}class T{constructor(e){this.strategy=e}handle(e,n){return t(this,void 0,void 0,function*(){const{videoConfiguration:{id:t,preview:i}={}}=e;(t||i)&&(yield this.importScript(n),yield this.createVideoElement(e,n))})}importScript(e){return t(this,void 0,void 0,function*(){const n=e.drEditionConfig.options.videoScriptUrl,i=document.querySelector(`script[src="${n}"]`);if(n&&!window.autoplayQueue&&!i)try{yield((e,...n)=>t(void 0,[e,...n],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(d)};o.addEventListener("load",r),o.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).catch(e=>{console.error(e)}))}))(n)}catch(e){r("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,n){return t(this,void 0,void 0,function*(){const t=document.createElement("div"),{node:i}=e.videoConfiguration,o=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,n))return;this.strategy.handleVideo(t,e),null==o||o.appendChild(t),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const r=null==o?void 0:o.parentNode;if(!r)return;const a=r.closest("a");r.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,o;const{preview:{url:r,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!r)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",r),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(o=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===o||o.call(i,s),!0))}}class j{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,o=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=o?o:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,n,i){return t(this,void 0,void 0,function*(){var t,o,r,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:i.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const v=this.getEventInput(e,n,i,"view");(null===(t=this.pulse)||void 0===t?void 0:t.trackLegacyViewUIElement)?null===(r=null===(o=this.pulse)||void 0===o?void 0:o.trackLegacyViewUIElement)||void 0===r||r.call(o,v):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,v):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,v)})}trackContentClick(e,n,i){return t(this,void 0,void 0,function*(){var t,o,r,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,n,i,"click");this.pulse.trackLegacyClickUIElement?null===(o=(t=this.pulse).trackLegacyClickUIElement)||void 0===o||o.call(t,l):this.pulse.trackClickUIElement?null===(a=(r=this.pulse).trackClickUIElement)||void 0===a||a.call(r,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class I extends j{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,o,r;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:v,urlPath:p}=null!==(r=null===(o=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===o?void 0:o.call(i,l))&&void 0!==r?r:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,v,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:v,urlPath:p},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class S extends j{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,o,r,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,v=n.editionName,p=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(r=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getPulseObjectId)||void 0===r?void 0:r.call(o))&&void 0!==a?a:v,"@type":"UIElement",position:v,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:v,"@type":p,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var o,r,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:v,url:p,probability:g}={}}=t,m=Math.floor(Date.now()/1e3),h=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),w=this.getTeaserElementText(e,"image"),f=null!==(s=null!==(a=null===(r=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getUrlWithParams)||void 0===r?void 0:r.call(o,t,n))&&void 0!==a?a:p)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:v,link:f,placement:n.editionName,subtitle:y,time:m,title:h,type:i,imageUrl:w,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const k="svd",A="vg",L="aftonbladet",O="e24",U="front",x=e=>t(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),M={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return t(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Q})})}})}};class D{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:n,node:i,autoplay:o,mute:r,vendor:a}}){yield t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const s=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=s)||l.forEach(e=>{M[e](c)});const u={id:n,node:i,autoplay:o,mute:r,vendor:a,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},v=yield x(u);v.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(v,s)}),v.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),v.once("PulseStats:ready",()=>t(this,void 0,void 0,function*(){const e=yield v.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===U?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),o=i.split("/").filter(Boolean);return o.length?[...o.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const _="https://www.aftonbladet.se/video-player-extras/latest/";class N{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:o,vendor:r}}){const a={id:t,node:n,autoplay:i,mute:o,vendor:r,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${_}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${_}external-link.js`]:{name:"ExternalLink"}}};yield x(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const V=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class B{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:n,node:i,autoplay:o,mute:r,vendor:a}}){const s={id:n,node:i,autoplay:o,mute:r,vendor:a,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},V(e)?e:{}),{provider:Object.assign(Object.assign({},V(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${n}`]},requestSettings:{}}}},d=yield x(s);d.once("PulseStats:ready",()=>t(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===U?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class R{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const $=(e,t,n)=>{var i;const{publisher:o,pageType:r,country:a}=e,l={[A]:new d,[O]:new D,[L]:new N,[k]:new B}[o]||new R,c=new(a===h?I:S)(n,l,r),u=new s(t,null!==(i=null==n?void 0:n.pulseTracker)&&void 0!==i?i:n),v=new C(l,c),g=new T(l);return new p(u,v,g,c)},q=()=>t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class F{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return r("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const H=(e,t,n)=>{const{wrapperSelector:i}=e.drEditionConfig.options,o=document.querySelectorAll(i),r=new IntersectionObserver((i,o)=>((e,t,n,i,o)=>{const r=$(n,i,o);e.forEach(e=>{var i,o;if(!e.isIntersecting)return;const a=e.target,s=null!==(i=a.dataset.editionName)&&void 0!==i?i:"",d=null!==(o=a.dataset.pulseColumnname)&&void 0!==o?o:"",l=Number(a.dataset.pulsePrimaryposition)||0;r.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:s,columnName:d,primaryPosition:l})),t.unobserve(a)})})(i,o,e,t,n),{rootMargin:"400% 0px"});o.forEach(e=>r.observe(e))},z=[],W=(e,n)=>t(void 0,void 0,void 0,function*(){var t;const{pulse:i,tcf:o,drEdition:s,pageContext:{deviceType:d,publisher:l,pageType:c,countryCode:u,isMobileApp:v}}=e;if(!(yield E(o,v,u,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,i;const{pageContext:{deviceType:o},placements:r,drEdition:s}=e,d=null===(n=null==s?void 0:s.options)||void 0===n?void 0:n.fallbackGlobalEditionName,l=r[o]||r.desktop,c=(e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e})(t.targetId),u=l.find(e=>e.targetId===c),v=a.some(e=>c.startsWith(e)),p=z.includes(c),g=(null===(i=null==u?void 0:u.drEdition)||void 0===i?void 0:i.editionName)||d;return u&&v&&!p&&g?(z.push(c),Object.assign(Object.assign({},u),{drEdition:Object.assign(Object.assign({},u.drEdition),{editionName:g})})):null})(e,n);if(!p)return;if(!(null==i?void 0:i.instance))return void r("Pulse has not been passed as a prop, aborting");const g=yield q(),m=new F(g),h=$({publisher:l,pageType:c,country:u},m,null==i?void 0:i.instance),y=document.getElementById(n.targetId);if(!y||!s)return;y.classList.value="";const w=document.createElement("div");w.className=s.options.containerSelector.replace(/^[.#:[\]]+/,""),y.innerHTML=w.outerHTML;const f={editionName:(null===(t=null==p?void 0:p.drEdition)||void 0===t?void 0:t.editionName)||"",drEditionConfig:s,device:d,tcf:o,isMobileApp:v,country:u,renderAsBackfill:!0};yield h.fetchAndRenderAd(y,f)});const J=function(e){if("undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var Q=Object.freeze({__proto__:null,default:J});exports.DrEdition=({editionName:t,fallbackTargetId:n,children:i,pulseData:o,htmlAttributes:r})=>{const a=(e,t)=>{const n={};if(!e)return n;for(const[i,o]of Object.entries(e)){n[t?`${t}-${i}`:i]=String(o)}return n},s=a(o,"data-pulse"),d=a(r,"data");return e.jsxs("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":t},s,d,{children:[e.jsx("div",{className:"inscreen-target"}),e.jsx("div",{className:"container"}),e.jsx("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:i})]}))},exports.getDrEditionManager=$,exports.handleDrEdition=e=>t(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield E(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield q(),i=new F(n);H({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),exports.handleDrEditionBackfill=W,exports.handleDrEditionBackfillOnAdblock=(e,n)=>{var i,o,a;if(!(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})())return void r("Ad block not enabled, Dr. Edition backfills will not be rendered");r("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:s},finnBlink:d}=e,l=null===(o=null===(i=null==d?void 0:d.replacementConfig)||void 0===i?void 0:i.adsToReplace)||void 0===o?void 0:o[s],c=null!==(a=null==l?void 0:l.map(([e])=>e))&&void 0!==a?a:[],u=new IntersectionObserver((n,i)=>t(void 0,void 0,void 0,function*(){for(const t of n){if(!t.isIntersecting)continue;const n=t.target;i.unobserve(n),yield W(e,{targetId:n.id})}}),{rootMargin:"400% 0px"});n.filter(e=>!c.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&u.observe(t)})};
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");function t(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n="opaque",i=e=>t(void 0,void 0,void 0,function*(){if(e.type!==n){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),o={get:(e,...n)=>t(void 0,[e,...n],void 0,function*(e,n={}){var{timeout:o}=n,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["timeout"]);if(o)return((e,n,o)=>t(void 0,void 0,void 0,function*(){const t=new AbortController,r=setTimeout(()=>t.abort(),o);try{const o=yield fetch(e,Object.assign(Object.assign({},n),{signal:t.signal}));return i(o)}finally{clearTimeout(r)}}))(e,r,o);const a=yield fetch(e,r);return i(a)}),post:(e,n,i)=>t(void 0,void 0,void 0,function*(){const t=JSON.stringify(i),o=yield fetch(e,{method:"POST",headers:n,body:t});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},r=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},a=["netboard","board"];class s{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:o}=e,r=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",o),r&&s.searchParams.append("urlData",r),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return t(this,void 0,void 0,function*(){var t,n,i;const a=yield this.identityFacade.getIdentityUser(),s=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",d=(null==a?void 0:a.userId)?String(a.userId):"",l=this.buildUrl(e,{envId:s,spid:d});try{r("Starting fetching DrEdition ad from URL:",l);const e=yield o.get(l);return r("Fetch operation completed successfully."),e}catch(e){r("Error during fetch operation:",e)}return null})}}class d{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:o,creativeId:r}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:o,utm_medium:s},r&&{utm_id:`df-${r}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),o=new URLSearchParams(decodeURIComponent(e.search)),r=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{o.has(e)||r.set(e,null!=t?t:"")}),r.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const o=this.getDrEditionUTMParams(e,t),r=new URL(i);return Object.entries(o).forEach(([e,t])=>{r.searchParams.has(e)||r.searchParams.set(e,null!=t?t:"")}),r.toString()}handleVideo(e,n){return t(this,void 0,void 0,function*(){const{id:t,autoplay:i,mute:o,videoLoop:r,vendor:a}=n.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:t,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:o,vgtvLoop:!!r,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:o}=new URL(n);if(!i.includes("www.vg.no")&&!o.includes("annonsorinnhold"))return[n];const r=o.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const l=e=>new URLSearchParams(window.location.search).get(e),c=e=>{if("0"===l("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&(()=>{const e=document.querySelector(".advertory-wallpaper-background");e&&e.remove()})())},u=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},v=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):r("Dr. Edition container does not have a parent element, cannot remove height lock.")};class p{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,n){return t(this,void 0,void 0,function*(){var t,i;const{drEditionConfig:{options:{containerSelector:o}},renderAsBackfill:a=!1}=n,s=e.querySelector(o);if(!s)return void r(`Container with selector "${o}" not found.`);const d=yield this.drEditionService.fetchData(n);return(null==d?void 0:d.itemId)||a?!(null==d?void 0:d.itemId)&&a?(r("No Dr. Edition ads available to render. Collapsing whole placement."),c(e.id),void v(s)):((null==d?void 0:d.itemId)&&a&&(r("Dr. Edition ad available to render as a Xandr backfill."),u(e.id)),void(d?(d.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(d.css,"style"),yield this.rendererManager.render(s,d,n),yield null===(t=this.videoManager)||void 0===t?void 0:t.handle(d,n),v(s),this.drEditionAds.push(d),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(d.itemId),this.observeAdView(e,d,n),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):v(s))):(r("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(s),this.showBackfill(e),void v(s))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";u(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let o=null;const r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(o&&clearTimeout(o),o=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{r.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{r.observe(e)}),!0}}const g=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return r("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(r("Resolving advertising permission value obtained"),i=!0,t(e))},a=setTimeout(()=>{r("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{r("On Tcf Ready called, waiting for permission"),clearTimeout(a)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(a);const t=Number(e);r("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),m="no",h="se",y="cmp:loaded";let w="undefined"!=typeof window?window._tcf_:void 0,f=!1;const b=(e,n,i)=>{const o=!!(null==e?void 0:e.enabled),a=(null==e?void 0:e.timeout)||3e3,s=l("bypass_tcf"),d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(r("TCF bypass param detected, returning consent: true"),!0):(r("TCF is not enabled, returning consent: true"),!0))(o,s))return!0;if(f)return null;if(!w)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=w.getConsentedToAllSync();return r(`TCF consented to all is: ${t}`),w.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(r("Getting TCF consent manager..."),window._tcf_)return r("TCF consent manager is already available"),w=window._tcf_,void e(w);r("TCF consent manager is not available");const n=()=>{r("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(w=window._tcf_,e(w)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(y,n),f=!0,t(new Error("Timeout waiting for CMP to load"))},a);r("Listening for CMP loaded event..."),document.addEventListener(y,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return r(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&i===h,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&i===m;if(t||n)return r("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield g(e);if(!(null==e?void 0:e.enabled))return!0;const o=d();return null!==o?o:yield new Promise((e,t)=>{try{if(!w)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{r("TCF isConsentedToAll timed out, resolving with false"),n(!1)},a);w.onTcfReady(()=>{r("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),w.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},E=(e,n,i,...o)=>t(void 0,[e,n,i,...o],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return r(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return r(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=b(e,0,n);return(yield o())?(r(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(r(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),P="mobile";class C{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,n,i){return t(this,void 0,void 0,function*(){if(!(null==n?void 0:n.itemId))return;const{getConsentAsync:t}=b(i.tcf,i.isMobileApp,i.country),o=yield t(),r=i.device===P?n.mobileHTML:n.desktopHTML;const a=o?r:r.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var t,o,r;e.search=null!==(r=null===(o=(t=this.newsroomStrategy).getUrlSearchParams)||void 0===o?void 0:o.call(t,e,n,i))&&void 0!==r?r:"",e.onclick=()=>this.pulseManager.trackContentClick(e,n,i)})})}}class T{constructor(e){this.strategy=e}handle(e,n){return t(this,void 0,void 0,function*(){const{videoConfiguration:{id:t,preview:i}={}}=e;(t||i)&&(yield this.importScript(n),yield this.createVideoElement(e,n))})}importScript(e){return t(this,void 0,void 0,function*(){const n=e.drEditionConfig.options.videoScriptUrl,i=document.querySelector(`script[src="${n}"]`);if(n&&!window.autoplayQueue&&!i)try{yield((e,...n)=>t(void 0,[e,...n],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(d)};o.addEventListener("load",r),o.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).catch(e=>{console.error(e)}))}))(n)}catch(e){r("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,n){return t(this,void 0,void 0,function*(){const t=document.createElement("div"),{node:i}=e.videoConfiguration,o=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,n))return;this.strategy.handleVideo(t,e),null==o||o.appendChild(t),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const r=null==o?void 0:o.parentNode;if(!r)return;const a=r.closest("a");r.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,o;const{preview:{url:r,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!r)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",r),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(o=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===o||o.call(i,s),!0))}}class j{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,o=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=o?o:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,n,i){return t(this,void 0,void 0,function*(){var t,o,r,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:i.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const v=this.getEventInput(e,n,i,"view");(null===(t=this.pulse)||void 0===t?void 0:t.trackLegacyViewUIElement)?null===(r=null===(o=this.pulse)||void 0===o?void 0:o.trackLegacyViewUIElement)||void 0===r||r.call(o,v):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,v):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,v)})}trackContentClick(e,n,i){return t(this,void 0,void 0,function*(){var t,o,r,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,n,i,"click");this.pulse.trackLegacyClickUIElement?null===(o=(t=this.pulse).trackLegacyClickUIElement)||void 0===o||o.call(t,l):this.pulse.trackClickUIElement?null===(a=(r=this.pulse).trackClickUIElement)||void 0===a||a.call(r,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class I extends j{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,o,r;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:v,urlPath:p}=null!==(r=null===(o=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===o?void 0:o.call(i,l))&&void 0!==r?r:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,v,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:v,urlPath:p},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class S extends j{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,o,r,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,v=n.editionName,p=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(r=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getPulseObjectId)||void 0===r?void 0:r.call(o))&&void 0!==a?a:v,"@type":"UIElement",position:v,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:v,"@type":p,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var o,r,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:v,url:p,probability:g}={}}=t,m=Math.floor(Date.now()/1e3),h=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),w=this.getTeaserElementText(e,"image"),f=null!==(s=null!==(a=null===(r=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getUrlWithParams)||void 0===r?void 0:r.call(o,t,n))&&void 0!==a?a:p)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:v,link:f,placement:n.editionName,subtitle:y,time:m,title:h,type:i,imageUrl:w,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const k="svd",A="vg",L="aftonbladet",O="e24",U="front",x=e=>t(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),M={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return t(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Q})})}})}};class D{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:n,node:i,autoplay:o,mute:r,vendor:a}}){yield t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const s=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=s)||l.forEach(e=>{M[e](c)});const u={id:n,node:i,autoplay:o,mute:r,vendor:a,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},v=yield x(u);v.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(v,s)}),v.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),v.once("PulseStats:ready",()=>t(this,void 0,void 0,function*(){const e=yield v.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===U?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),o=i.split("/").filter(Boolean);return o.length?[...o.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const _="https://www.aftonbladet.se/video-player-extras/latest/";class N{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:o,vendor:r}}){const a={id:t,node:n,autoplay:i,mute:o,vendor:r,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${_}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${_}external-link.js`]:{name:"ExternalLink"}}};yield x(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const V=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class B{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:n,node:i,autoplay:o,mute:r,vendor:a}}){const s={id:n,node:i,autoplay:o,mute:r,vendor:a,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},V(e)?e:{}),{provider:Object.assign(Object.assign({},V(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${n}`]},requestSettings:{}}}},d=yield x(s);d.once("PulseStats:ready",()=>t(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===U?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class R{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const $=(e,t,n)=>{const{publisher:i,pageType:o,country:r}=e,a={[A]:new d,[O]:new D,[L]:new N,[k]:new B}[i]||new R,l=new(r===h?I:S)(n,a,o),c=new s(t,n),u=new C(a,l),v=new T(a);return new p(c,u,v,l)},q=()=>t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class F{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return r("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const H=(e,t,n)=>{const{wrapperSelector:i}=e.drEditionConfig.options,o=document.querySelectorAll(i),r=new IntersectionObserver((i,o)=>((e,t,n,i,o)=>{const r=$(n,i,o);e.forEach(e=>{var i,o;if(!e.isIntersecting)return;const a=e.target,s=null!==(i=a.dataset.editionName)&&void 0!==i?i:"",d=null!==(o=a.dataset.pulseColumnname)&&void 0!==o?o:"",l=Number(a.dataset.pulsePrimaryposition)||0;r.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:s,columnName:d,primaryPosition:l})),t.unobserve(a)})})(i,o,e,t,n),{rootMargin:"400% 0px"});o.forEach(e=>r.observe(e))},z=[],W=(e,n)=>t(void 0,void 0,void 0,function*(){var t;const{pulse:i,tcf:o,drEdition:s,pageContext:{deviceType:d,publisher:l,pageType:c,countryCode:u,isMobileApp:v}}=e;if(!(yield E(o,v,u,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,i;const{pageContext:{deviceType:o},placements:r,drEdition:s}=e,d=null===(n=null==s?void 0:s.options)||void 0===n?void 0:n.fallbackGlobalEditionName,l=r[o]||r.desktop,c=(e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e})(t.targetId),u=l.find(e=>e.targetId===c),v=a.some(e=>c.startsWith(e)),p=z.includes(c),g=(null===(i=null==u?void 0:u.drEdition)||void 0===i?void 0:i.editionName)||d;return u&&v&&!p&&g?(z.push(c),Object.assign(Object.assign({},u),{drEdition:Object.assign(Object.assign({},u.drEdition),{editionName:g})})):null})(e,n);if(!p)return;if(!(null==i?void 0:i.instance))return void r("Pulse has not been passed as a prop, aborting");const g=yield q(),m=new F(g),h=$({publisher:l,pageType:c,country:u},m,null==i?void 0:i.instance),y=document.getElementById(n.targetId);if(!y||!s)return;y.classList.value="";const w=document.createElement("div");w.className=s.options.containerSelector.replace(/^[.#:[\]]+/,""),y.innerHTML=w.outerHTML;const f={editionName:(null===(t=null==p?void 0:p.drEdition)||void 0===t?void 0:t.editionName)||"",drEditionConfig:s,device:d,tcf:o,isMobileApp:v,country:u,renderAsBackfill:!0};yield h.fetchAndRenderAd(y,f)});const J=function(e){if("undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var Q=Object.freeze({__proto__:null,default:J});exports.DrEdition=({editionName:t,fallbackTargetId:n,children:i,pulseData:o,htmlAttributes:r})=>{const a=(e,t)=>{const n={};if(!e)return n;for(const[i,o]of Object.entries(e)){n[t?`${t}-${i}`:i]=String(o)}return n},s=a(o,"data-pulse"),d=a(r,"data");return e.jsxs("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":t},s,d,{children:[e.jsx("div",{className:"inscreen-target"}),e.jsx("div",{className:"container"}),e.jsx("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:i})]}))},exports.getDrEditionManager=$,exports.handleDrEdition=e=>t(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield E(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield q(),i=new F(n);H({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),exports.handleDrEditionBackfill=W,exports.handleDrEditionBackfillOnAdblock=(e,n)=>{var i,o,a;if(!(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})())return void r("Ad block not enabled, Dr. Edition backfills will not be rendered");r("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:s},finnBlink:d}=e,l=null===(o=null===(i=null==d?void 0:d.replacementConfig)||void 0===i?void 0:i.adsToReplace)||void 0===o?void 0:o[s],c=null!==(a=null==l?void 0:l.map(([e])=>e))&&void 0!==a?a:[],u=new IntersectionObserver((n,i)=>t(void 0,void 0,void 0,function*(){for(const t of n){if(!t.isIntersecting)continue;const n=t.target;i.unobserve(n),yield W(e,{targetId:n.id})}}),{rootMargin:"400% 0px"});n.filter(e=>!c.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&u.observe(t)})};
|