@schibsted/advertory 3.4.3 → 3.4.4
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.js +1 -1
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-Bhf0yykF.js +1 -0
- package/aftenposten/es/{events-NnSzXfBl.js → events-X-dYeO4s.js} +1 -1
- package/aftenposten/es/{index-BoHZbtvc.js → index-BPvpr5v_.js} +1 -1
- package/aftenposten/es/{index-CNA8zraa.js → index-Brrd55Va.js} +1 -1
- package/aftenposten/es/{index-ugv9cbWi.js → index-C_hXCdJd.js} +1 -1
- package/aftenposten/es/{index-D_TH5NqJ.js → index-CcJ0g9uo.js} +1 -1
- package/aftenposten/es/{index-B-bCMyfh.js → index-D0v1GQVx.js} +1 -1
- package/aftenposten/es/{index-YkvmFU9i.js → index-DLQxzMX6.js} +1 -1
- package/aftenposten/es/{index-D_SPMvbh.js → index-Dedh95YD.js} +1 -1
- package/aftenposten/es/{index-CtSALZoL.js → index-Df77cMV7.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-Dcaz9B_b.js → styles-BXqQupbI.js} +1 -1
- package/aftenposten/es/{styles-CH2IHDJ9.js → styles-CknRy_Qx.js} +1 -1
- package/aftenposten/es/{styles-B6NYCtN5.js → styles-D6RymBPT.js} +1 -1
- package/aftenposten/es/{styles-DsmX2Bkk.js → styles-D9wpJp3b.js} +1 -1
- package/aftenposten/es/{styles-DgIIlODG.js → styles-DEvWRRgu.js} +1 -1
- package/aftenposten/es/{styles-CdMmAQMn.js → styles-DKxxtORm.js} +1 -1
- package/aftenposten/es/{styles-B1QkS-Tu.js → styles-DRELkr_H.js} +1 -1
- package/aftenposten/es/{styles-BBgt5Y74.js → styles-DrCgleuK.js} +1 -1
- package/aftenposten/es/{styles-Dcq7smdy.js → styles-IgBG4ryC.js} +1 -1
- package/aftenposten/es/{styles-BZKdLQdQ.js → styles-V5LlDQpd.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BDfo8K1D.js +1 -0
- package/aftenpostenv2/es/{events-Cnab7Blq.js → events-otaRviLL.js} +1 -1
- package/aftenpostenv2/es/{index-BOn8NG8s.js → index-B9G2G5Ln.js} +1 -1
- package/aftenpostenv2/es/{index-d7VPppTG.js → index-Bj8e0ohd.js} +1 -1
- package/aftenpostenv2/es/{index-rbhALMfT.js → index-C-DVaVfL.js} +1 -1
- package/aftenpostenv2/es/{index-CKtxrDao.js → index-CFvd4fNa.js} +1 -1
- package/aftenpostenv2/es/{index-rCL_u628.js → index-CvrL5ggt.js} +1 -1
- package/aftenpostenv2/es/{index-OSrhum0M.js → index-D-wr1b38.js} +1 -1
- package/aftenpostenv2/es/{index-Bo8dH9dZ.js → index-DYk7DSSt.js} +1 -1
- package/{aftonbladetv2/es/index-CeMlmW09.js → aftenpostenv2/es/index-DqBPA2qv.js} +1 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-BhR8eqnn.js → styles-7MB8eZNf.js} +1 -1
- package/aftenpostenv2/es/{styles-D2a7P9CN.js → styles-BRFIxZOd.js} +1 -1
- package/aftenpostenv2/es/{styles-CEgVPUEk.js → styles-BbPbb9x5.js} +1 -1
- package/aftenpostenv2/es/{styles-DibJU_k9.js → styles-Bf7Gl-A7.js} +1 -1
- package/aftenpostenv2/es/{styles-D6P3hDZH.js → styles-COT3aknE.js} +1 -1
- package/aftenpostenv2/es/{styles-DN1DCMAy.js → styles-Crf3CBko.js} +1 -1
- package/aftenpostenv2/es/{styles-BYNw8MX1.js → styles-D1d5UAy_.js} +1 -1
- package/aftenpostenv2/es/{styles-CA9MEUTa.js → styles-DFI0TxiT.js} +1 -1
- package/aftenpostenv2/es/{styles-BkrGJb9X.js → styles-DUoEGCMj.js} +1 -1
- package/aftenpostenv2/es/{styles-B-oYlwJT.js → styles-DVVNN8UI.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-bQhax--t.js +1 -0
- package/aftonbladet/es/{events-BHFOHoyn.js → events-DPDf5jcW.js} +1 -1
- package/aftonbladet/es/{index-C1PA0ALz.js → index-CamqQOrz.js} +1 -1
- package/aftonbladet/es/{index-DI9bWWvG.js → index-DGG1RtzD.js} +1 -1
- package/aftonbladet/es/{index-BCk_Gk7v.js → index-DgUlnlwD.js} +1 -1
- package/aftonbladet/es/{index-B5mB5u2K.js → index-DuHBkR0k.js} +1 -1
- package/aftonbladet/es/{index-EVcf9Ip6.js → index-DuJN6N7Q.js} +1 -1
- package/aftonbladet/es/{index-EfVIB7Gv.js → index-TRFE2Xfn.js} +1 -1
- package/aftonbladet/es/{index-CjPESS_b.js → index-VUMQL8Z0.js} +1 -1
- package/aftonbladet/es/{index-BSDqET-H.js → index-Yj9dRgd-.js} +1 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-C-JcMEge.js → styles-42ccInUr.js} +1 -1
- package/aftonbladet/es/{styles-Cej3BgmO.js → styles-9OkbPFxr.js} +1 -1
- package/aftonbladet/es/{styles-ZmkmjoME.js → styles-B-jfqYpP.js} +1 -1
- package/aftonbladet/es/{styles-B5CB69I9.js → styles-CqpGPj5k.js} +1 -1
- package/aftonbladet/es/{styles-MVjaRlEo.js → styles-DCA0EqsJ.js} +1 -1
- package/aftonbladet/es/{styles-DlCRkGHz.js → styles-DUmh8CGB.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-2vzHH5dY.js +1 -0
- package/aftonbladetv2/es/{events-z_o1b8qR.js → events-Gz_LB5GE.js} +1 -1
- package/aftonbladetv2/es/{index-x2N9B4gx.js → index-10ySr6zB.js} +1 -1
- package/aftonbladetv2/es/{index-BWSHw4Hs.js → index-6p7hrIlz.js} +1 -1
- package/aftonbladetv2/es/{index-DcYEG4Ma.js → index-Ck5tqhOJ.js} +1 -1
- package/aftonbladetv2/es/{index--CxcKaLx.js → index-Cy7osinK.js} +1 -1
- package/aftonbladetv2/es/{index-Btd1raGJ.js → index-D8crw21t.js} +1 -1
- package/aftonbladetv2/es/{index-Cb_FajHZ.js → index-DHfz6V6b.js} +1 -1
- package/aftonbladetv2/es/{index-BrzOIZxv.js → index-YKvKZUjf.js} +1 -1
- package/{aftenpostenv2/es/index-wav3Ilhc.js → aftonbladetv2/es/index-tnqwhfdq.js} +1 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-H5iSq0WK.js → styles-B3vde6pE.js} +1 -1
- package/aftonbladetv2/es/{styles--NlGcgEn.js → styles-BH7sQJJG.js} +1 -1
- package/aftonbladetv2/es/{styles-NNA5aMrt.js → styles-COQNXwI5.js} +1 -1
- package/aftonbladetv2/es/{styles-Bxs3egn6.js → styles-CeEwmllW.js} +1 -1
- package/aftonbladetv2/es/{styles-B4TmTxlw.js → styles-Chi-PjLS.js} +1 -1
- package/aftonbladetv2/es/{styles-Cxd99rZx.js → styles-RMP-4RAU.js} +1 -1
- package/brandmetrics/cjs/index.js +1 -1
- package/brandmetrics/es/index.js +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-BQP7GfEz.js +1 -0
- package/bt/es/{events-zPCh9Dr7.js → events-BWxrUFS8.js} +1 -1
- package/bt/es/{index-B374ZTR0.js → index-BNR6BtJp.js} +1 -1
- package/bt/es/{index-qANg1i3l.js → index-Cxd1srtv.js} +1 -1
- package/bt/es/{index-OKKHjcPk.js → index-D5o0TQOa.js} +1 -1
- package/bt/es/{index-BukxABtk.js → index-DJOnP4Lo.js} +1 -1
- package/bt/es/{index-DuR946AX.js → index-DakBjK1q.js} +1 -1
- package/{sa/es/index-2cEqSIWE.js → bt/es/index-DouAiNRC.js} +1 -1
- package/bt/es/{index-CyViFPDy.js → index-DxSc2TRT.js} +1 -1
- package/bt/es/{index-n742gQbA.js → index-Lrh3Kbbw.js} +1 -1
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-Dn2Es8yM.js → styles-BViX_ai_.js} +1 -1
- package/bt/es/{styles-BS81h46v.js → styles-CDCnQw3l.js} +1 -1
- package/bt/es/{styles-DEK9k80p.js → styles-CItFSNiz.js} +1 -1
- package/bt/es/{styles-B54qJ6kH.js → styles-C_Qlt8u0.js} +1 -1
- package/bt/es/{styles-BRG2_e2X.js → styles-D3mqFIe5.js} +1 -1
- package/bt/es/{styles-CQaijpqa.js → styles-DEBOUzUi.js} +1 -1
- package/{sa/es/styles-6T2-Xu_7.js → bt/es/styles-Dh2uOIpi.js} +1 -1
- package/bt/es/{styles-CCW_KItv.js → styles-DyZuMNGn.js} +1 -1
- package/bt/es/{styles-wg0OSL5b.js → styles-bQqZn_XE.js} +1 -1
- package/btv2/es/_auto-entry_btv2-BFERV4k3.js +1 -0
- package/btv2/es/{events-Od0V0sIJ.js → events-DbRwqeWY.js} +1 -1
- package/btv2/es/{index-ADlvP4Gn.js → index-6zLiGrPg.js} +1 -1
- package/btv2/es/{index-uDCrosab.js → index-B0k7BoxE.js} +1 -1
- package/btv2/es/{index-C-QSQ4l1.js → index-BT7dgSQS.js} +1 -1
- package/btv2/es/{index-BxiIQM4F.js → index-BcukMuzG.js} +1 -1
- package/btv2/es/{index-iH9-1GZR.js → index-C2EVI2gn.js} +1 -1
- package/btv2/es/{index-DnIyhRwO.js → index-CrB2LU5e.js} +1 -1
- package/btv2/es/{index-ChkWOyeK.js → index-DGAyNkVL.js} +1 -1
- package/btv2/es/{index-D-BgwAW1.js → index-D_oxqGL_.js} +1 -1
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-B_ZOH_kH.js → btv2/es/styles-B6g4yNVo.js} +1 -1
- package/{vgv2/es/styles-DHXBSpkp.js → btv2/es/styles-CN3azPHF.js} +1 -1
- package/{sav2/es/styles-CjtxSWvS.js → btv2/es/styles-CXNU4R3I.js} +1 -1
- package/{vgv2/es/styles-DtfaEsMv.js → btv2/es/styles-Dzf3m6rk.js} +1 -1
- package/{sav2/es/styles-0vSewplK.js → btv2/es/styles-EunRAAOJ.js} +1 -1
- package/{sav2/es/styles-BbWQEkUQ.js → btv2/es/styles-RG3eewEG.js} +1 -1
- package/btv2/es/{styles-D2eFIJem.js → styles-VMPL62vB.js} +1 -1
- package/{sav2/es/styles-VfFB9Dwd.js → btv2/es/styles-a4JOrBPo.js} +1 -1
- package/common/cjs/index.js +1 -1
- package/common/es/index.js +1 -1
- package/dr-edition/cjs/index.js +1 -1
- package/dr-edition/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-BEKLtA7Y.js +1 -0
- package/e24/es/{events-BjCGGsU2.js → events-Yd36UysJ.js} +1 -1
- package/e24/es/{index-nUjddkRa.js → index-BGapFJQk.js} +1 -1
- package/e24/es/{index-RwCfpaAf.js → index-BpmYLE2f.js} +1 -1
- package/{tv4/es/index-DTaWGKTf.js → e24/es/index-ByrAuocy.js} +1 -1
- package/e24/es/{index-CE9nW0UL.js → index-COKHAJhe.js} +1 -1
- package/e24/es/{index-BbhbYZrs.js → index-CRLFyN8P.js} +1 -1
- package/e24/es/{index-AHPkpdVk.js → index-CoBmEzXT.js} +1 -1
- package/e24/es/{index-Du6WV54Y.js → index-DCD0FkMq.js} +1 -1
- package/e24/es/{index-nhRF4FiM.js → index-EvP5fwqa.js} +1 -1
- package/e24/es/index.js +1 -1
- package/{tv4/es/styles-oSp-rScU.js → e24/es/styles-C8NvGvar.js} +1 -1
- package/e24/es/{styles-a9xWuDhY.js → styles-C9XvVZBY.js} +1 -1
- package/e24/es/{styles-C_uBtBmd.js → styles-CmbQcdvB.js} +1 -1
- package/e24/es/{styles-Bkw70ZfS.js → styles-CsMHQajS.js} +1 -1
- package/e24/es/{styles-DN-q9mWV.js → styles-D1nI60Zv.js} +1 -1
- package/e24/es/{styles-X8boPmVk.js → styles-DGv06M3G.js} +1 -1
- package/e24/es/{styles-nlKDivG3.js → styles-Dm7XvLbx.js} +1 -1
- package/e24/es/{styles-D9tpuT2p.js → styles-HX_bpt29.js} +1 -1
- package/e24/es/{styles-EhbzKsM9.js → styles-OsWwU4Rj.js} +1 -1
- package/e24/es/{styles-Cv-SFH42.js → styles-aeUKq6dx.js} +1 -1
- package/e24/es/{styles-Cc5iqSLl.js → styles-ziSdUigy.js} +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-Baj19g0T.js +1 -0
- package/fotbollskanalen/es/{events-B3E3vMdN.js → events-DjGycYd2.js} +1 -1
- package/fotbollskanalen/es/{index-fvpCpghV.js → index-92eOLgTV.js} +1 -1
- package/fotbollskanalen/es/{index-ZgSfKCrx.js → index-BIBTI_Jh.js} +1 -1
- package/fotbollskanalen/es/{index-BB8KUpU5.js → index-Bmtv9--e.js} +1 -1
- package/fotbollskanalen/es/{index-DwhgZ-35.js → index-BrUe1khl.js} +1 -1
- package/fotbollskanalen/es/{index-DX0ZnMDa.js → index-BuOM47k5.js} +1 -1
- package/fotbollskanalen/es/{index-D-TrDk2c.js → index-CksSFyzA.js} +1 -1
- package/fotbollskanalen/es/{index-CmHD0hoF.js → index-Md5U1C6J.js} +1 -1
- package/fotbollskanalen/es/{index-DttRpxjB.js → index-j6fBf8VB.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-wZ4ZqgEf.js → styles-BrbSyGNH.js} +1 -1
- package/glimr/cjs/index.js +1 -1
- package/glimr/es/index.js +1 -1
- package/godare/cjs/index.js +1 -1
- package/godt/cjs/index.js +1 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-DL9mfUrb.js +1 -0
- package/koket/es/{events-CvwWG2Nq.js → events-9Q6ytjT9.js} +1 -1
- package/koket/es/{index-DrPzXuzI.js → index-CQn23TuZ.js} +1 -1
- package/koket/es/{index-R-GeDn_C.js → index-CciXtL8E.js} +1 -1
- package/koket/es/{index-DQbH03TR.js → index-DO8jV11Q.js} +1 -1
- package/koket/es/{index-COV7xlV2.js → index-DYxv6SzB.js} +1 -1
- package/koket/es/{index-UYyfZtbd.js → index-DfyfmbVt.js} +1 -1
- package/koket/es/{index-CFfHFpgw.js → index-DxxEwxfr.js} +1 -1
- package/koket/es/{index-B072v10m.js → index-Tc503bXN.js} +1 -1
- package/koket/es/{index-BmG5eAvR.js → index-YDhc36i5.js} +1 -1
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-C8F2H7Zd.js → koket/es/styles-CElTjNBQ.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-wY_EUefU.js +1 -0
- package/sa/es/{events-Bvgy15qT.js → events-CZJqcBzn.js} +1 -1
- package/sa/es/{index-CgtIgNa1.js → index-BxxbObcn.js} +1 -1
- package/sa/es/{index-9P60WzXZ.js → index-CKAFPlFc.js} +1 -1
- package/sa/es/{index-4IheX1Qx.js → index-Cm982Cvh.js} +1 -1
- package/sa/es/{index-DYV0i3R0.js → index-D-7QoEu7.js} +1 -1
- package/sa/es/{index-Cux-4pkD.js → index-DWNojKUK.js} +1 -1
- package/{bt/es/index-CB0e87Yr.js → sa/es/index-Dg_60TLd.js} +1 -1
- package/sa/es/{index-eigLJXXM.js → index-DkfcDGKo.js} +1 -1
- package/sa/es/{index-DgiFn2Ge.js → index-Txagwucq.js} +1 -1
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-Ed-e5-yf.js → styles-CI40Pps1.js} +1 -1
- package/sa/es/{styles-mmE9VHHn.js → styles-DHqWx4kk.js} +1 -1
- package/sa/es/{styles-DWa2H7Aj.js → styles-DLEYispL.js} +1 -1
- package/{vg/es/styles-Dr7A3HpS.js → sa/es/styles-DUSWg3JA.js} +1 -1
- package/sa/es/{styles-BHaLvTs-.js → styles-Do0sOJVo.js} +1 -1
- package/{vg/es/styles-Bskzm7WU.js → sa/es/styles-DuOTXl8z.js} +1 -1
- package/sa/es/{styles-DjfA1U9_.js → styles-KTlWlFs0.js} +1 -1
- package/sa/es/{styles-Bb1RceEA.js → styles-V8Ex-OKo.js} +1 -1
- package/sa/es/{styles-CE-oof_T.js → styles-cboPgZpg.js} +1 -1
- package/sav2/es/_auto-entry_sav2-CnCVAQdF.js +1 -0
- package/sav2/es/{events-CSBAJTl_.js → events-2jHZOPwR.js} +1 -1
- package/sav2/es/{index-FzjhlqAu.js → index-BWZoWfjV.js} +1 -1
- package/sav2/es/{index-DFGVi5Jp.js → index-Bb-YOHvE.js} +1 -1
- package/sav2/es/{index-CDjwJyxU.js → index-BiB2aOAL.js} +1 -1
- package/sav2/es/{index-D-f5Ljk-.js → index-BpK1TtYH.js} +1 -1
- package/sav2/es/{index-D7uB61Lg.js → index-Bt0pEy8l.js} +1 -1
- package/sav2/es/{index-C9emf_ZQ.js → index-DxnDOPzx.js} +1 -1
- package/sav2/es/{index-CUN4Irqp.js → index-KCTlR2wg.js} +1 -1
- package/sav2/es/{index-sRdPGxGV.js → index-qMRowoqW.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-D8ARyZMy.js → sav2/es/styles-BIUV-RNC.js} +1 -1
- package/sav2/es/{styles-W-hW7AaY.js → styles-CJw_lkpK.js} +1 -1
- package/sav2/es/{styles-lBK9P7Ta.js → styles-CM-oSSUc.js} +1 -1
- package/{btv2/es/styles-Cq4cAkY2.js → sav2/es/styles-DHLrp8VL.js} +1 -1
- package/{btv2/es/styles-CgitEZi2.js → sav2/es/styles-DOBpUHnu.js} +1 -1
- package/{vgv2/es/styles-CC3XnDMT.js → sav2/es/styles-Dpq612kt.js} +1 -1
- package/{btv2/es/styles-CUAxlQm_.js → sav2/es/styles-Dv-eBXgZ.js} +1 -1
- package/sav2/es/{styles-CNClKD_e.js → styles-Ul5sOoE8.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-gWaZONI8.js +1 -0
- package/svd/es/{events-BBOO1qLH.js → events-Bjd-4Rj5.js} +1 -1
- package/svd/es/{index-DZgUWO_O.js → index-51zCHEiR.js} +1 -1
- package/svd/es/{index-DxVke-LG.js → index-6EgbUtYp.js} +1 -1
- package/svd/es/{index-Clkes_JW.js → index-B5-1tBxg.js} +1 -1
- package/svd/es/{index-HGBVAill.js → index-Baauiaf1.js} +1 -1
- package/svd/es/{index-Blog_T_h.js → index-DJZyobVc.js} +1 -1
- package/svd/es/{index-C6gIJ3YT.js → index-D_8M3fv2.js} +1 -1
- package/svd/es/{index-Bq68FeSG.js → index-Dkflf4MB.js} +1 -1
- package/{e24/es/index-DwX_MoIe.js → svd/es/index-Dwb1fq0B.js} +1 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-BRuux0td.js → styles-2105q1_Q.js} +1 -1
- package/svd/es/{styles-CfoPL3Kl.js → styles-CFjNMv5T.js} +1 -1
- package/svd/es/{styles-C0M9uL7v.js → styles-D6JZVB8d.js} +1 -1
- package/svd/es/{styles-B2u9U58U.js → styles-DFqZc2GE.js} +1 -1
- package/svd/es/{styles-eReOfxOY.js → styles-DemChIJH.js} +1 -1
- package/svd/es/{styles-DOUeUzPw.js → styles-nM1cAR1X.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-CBT-yIIh.js +1 -0
- package/svdv2/es/{events-QZIpKmMd.js → events-Cv0WDScT.js} +1 -1
- package/svdv2/es/{index-D9bLY9Q7.js → index-B-BCWavy.js} +1 -1
- package/svdv2/es/{index-DL7tMz3m.js → index-B8batGia.js} +1 -1
- package/svdv2/es/{index-CObZnuh4.js → index-BTR1-A5h.js} +1 -1
- package/svdv2/es/{index-CyX6sdFR.js → index-BW3Rr9Nx.js} +1 -1
- package/svdv2/es/{index-o-hKUjPb.js → index-BxC8o1uZ.js} +1 -1
- package/svdv2/es/{index-Dzh4smy5.js → index-C1R9Ki5K.js} +1 -1
- package/svdv2/es/{index-Cpr2XoWk.js → index-DNK3AfFB.js} +1 -1
- package/svdv2/es/{index-CC37DurP.js → index-TJKz3Y9E.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-BtKOxohT.js → styles-2ebgmgKC.js} +1 -1
- package/svdv2/es/{styles-BXETvW1L.js → styles-BVKaXt1D.js} +1 -1
- package/svdv2/es/{styles-C9ILjoKk.js → styles-C7kJ3a5A.js} +1 -1
- package/{koket/es/styles-vY_YaN5w.js → svdv2/es/styles-D4fzUgLd.js} +1 -1
- package/svdv2/es/{styles-3rR6vWcw.js → styles-DOxiZsGC.js} +1 -1
- package/svdv2/es/{styles-ByAM4CUV.js → styles-e-LUgOYk.js} +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-CgjDpm2n.js +1 -0
- package/tv4/es/{events-C_M50L_F.js → events-C_-_Xowx.js} +1 -1
- package/tv4/es/{index-Bl1OnFFG.js → index-BWStV20R.js} +1 -1
- package/tv4/es/{index-BzzXS1lo.js → index-CFuhcqwm.js} +1 -1
- package/tv4/es/{index-Cgr7rPoH.js → index-CkbH_SEP.js} +1 -1
- package/{svd/es/index-BWMzzOgK.js → tv4/es/index-DA_qj0r7.js} +1 -1
- package/tv4/es/{index-C1KsDELJ.js → index-DroR5xBF.js} +1 -1
- package/tv4/es/{index-CGFe4ZCU.js → index-Dy9jE6h-.js} +1 -1
- package/tv4/es/{index-BfLhM5py.js → index-P3D3vQx4.js} +1 -1
- package/tv4/es/{index-6RdCSFSp.js → index-ydad3sUV.js} +1 -1
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-B_OHnQ7F.js → tv4/es/styles-Bh4MC17S.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-BVmx9OMx.js +1 -0
- package/vg/es/{events-Bd-iygyH.js → events-Bmkna1Gc.js} +1 -1
- package/vg/es/{index-DpdK5XhH.js → index-B_di9fdW.js} +1 -1
- package/vg/es/{index-C1Rx8Dx2.js → index-BixkAKMD.js} +1 -1
- package/vg/es/{index-7-RNSGyQ.js → index-BrkCMRgV.js} +1 -1
- package/vg/es/{index-BXRR3qnn.js → index-Camom7m-.js} +1 -1
- package/vg/es/{index-DMHVzKpf.js → index-Cyqw9XoG.js} +1 -1
- package/vg/es/{index-BjKt1e9m.js → index-DET4dXfU.js} +1 -1
- package/vg/es/{index-1XciwLyG.js → index-Dn7htXn0.js} +1 -1
- package/vg/es/{index-cnVG6KwK.js → index-wYIgmMRk.js} +1 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-Dq2kfMxh.js → styles-BWOcFLKa.js} +1 -1
- package/{sa/es/styles-KLP-sDIg.js → vg/es/styles-BcLLBwR8.js} +1 -1
- package/vg/es/{styles-B8U-Fsay.js → styles-COsX5v1m.js} +1 -1
- package/vg/es/{styles-CeXOnNz5.js → styles-C_FwIyaP.js} +1 -1
- package/vg/es/{styles-BAyDEkIO.js → styles-CkFvNN2A.js} +1 -1
- package/vg/es/{styles-EHM4khu3.js → styles-DAOlUI8E.js} +1 -1
- package/vg/es/{styles-DieMs8S_.js → styles-DQ_YpbXO.js} +1 -1
- package/vg/es/{styles-OS52MZJU.js → styles-DSm1LVi_.js} +1 -1
- package/vg/es/{styles-PhrVBHh5.js → styles-DX6tqWSV.js} +1 -1
- package/vg/es/{styles-CEv3g75Z.js → styles-DrcSgO9F.js} +1 -1
- package/vg/es/{styles-B3g_WQKY.js → styles-GAPVZ_FS.js} +1 -1
- package/vg/es/{styles-B7FSVEQF.js → styles-Mm1WitR1.js} +1 -1
- package/vg/es/{styles-CFzBy5b9.js → styles-gPJ19t67.js} +1 -1
- package/{bt/es/styles-VWcrgyF-.js → vg/es/styles-gUWXxhs6.js} +1 -1
- package/vg/es/{styles-C57iKHBK.js → styles-gbRx5TBW.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-DcMSsK7I.js +1 -0
- package/vgv2/es/{events-DQrgkrtZ.js → events-CbYlhHdS.js} +1 -1
- package/vgv2/es/{index-CyFptD50.js → index-BOuAoWaz.js} +1 -1
- package/vgv2/es/{index-DKL_UxWW.js → index-BkOJekt_.js} +1 -1
- package/vgv2/es/{index-C7UmytTB.js → index-BlRGr3Dm.js} +1 -1
- package/vgv2/es/{index-D-L-68nH.js → index-D5fU51zY.js} +1 -1
- package/vgv2/es/{index-DpGZ6Qy1.js → index-DyttIDdn.js} +1 -1
- package/vgv2/es/{index-D2c6CNMO.js → index-cUI_MUN6.js} +1 -1
- package/vgv2/es/{index-BsbQbbLL.js → index-klHcuLjs.js} +1 -1
- package/vgv2/es/{index-CsWjy0nP.js → index-u92vc7dj.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-BZ6R4Cta.js → styles-BLubo9Bp.js} +1 -1
- package/vgv2/es/{styles-CmIv2nA5.js → styles-BT_VTSD-.js} +1 -1
- package/{btv2/es/styles-1ccH2_0E.js → vgv2/es/styles-BctjGJwA.js} +1 -1
- package/vgv2/es/{styles-CEZvQ0yR.js → styles-Bfu3dSV_.js} +1 -1
- package/vgv2/es/{styles-DLajemP4.js → styles-C0hhsVb0.js} +1 -1
- package/vgv2/es/{styles-C3o4VBe7.js → styles-C9HM66T0.js} +1 -1
- package/{btv2/es/styles-CLrNsJNG.js → vgv2/es/styles-Ci7iXNLj.js} +1 -1
- package/vgv2/es/{styles-BcAsg-p5.js → styles-CidTlAlB.js} +1 -1
- package/vgv2/es/{styles-BcbDxXWF.js → styles-D2ZPwGu7.js} +1 -1
- package/vgv2/es/{styles-B7Pt1sHE.js → styles-D3xxSj65.js} +1 -1
- package/vgv2/es/{styles-kbvRAbcm.js → styles-D8XUKIYz.js} +1 -1
- package/vgv2/es/{styles-DHgg-Bq2.js → styles-DZxPQN4T.js} +1 -1
- package/{btv2/es/styles-CKoeXLY-.js → vgv2/es/styles-DvRCmjdM.js} +1 -1
- package/vgv2/es/{styles-AolPFBXK.js → styles-DvRMHT7W.js} +1 -1
- package/vgv2/es/{styles-C0jG0YmH.js → styles-Vcv7SAHX.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-BWVHX_dR.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BPR2QCdL.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CQFYKsWd.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-ecI7HhuB.js +0 -1
- package/bt/es/_auto-entry_bt-DNfUcUzB.js +0 -1
- package/btv2/es/_auto-entry_btv2-BQRePf9J.js +0 -1
- package/e24/es/_auto-entry_e24-DTlP0xtS.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DAgIUSHM.js +0 -1
- package/koket/es/_auto-entry_koket-CtflJ85C.js +0 -1
- package/sa/es/_auto-entry_sa-dcJlXx1N.js +0 -1
- package/sav2/es/_auto-entry_sav2-wlTjDJL2.js +0 -1
- package/svd/es/_auto-entry_svd-D4S7UpT_.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-CFiE0z1M.js +0 -1
- package/tv4/es/_auto-entry_tv4-D8L10tTo.js +0 -1
- package/vg/es/_auto-entry_vg-BOJf3ej1.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-D9t5nfSh.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as e,B as t,C as n,c as r,E as o,S as i,F as d}from"./_auto-entry_btv2-
|
|
1
|
+
import{I as e,B as t,C as n,c as r,E as o,S as i,F as d}from"./_auto-entry_btv2-BFERV4k3.js";import"react/jsx-runtime";const s=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},l=(e,t=window.screen.width,n,r)=>{const o=s(e,t);if(n&&n(e,o),r)return void r(e);const i=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);i&&(i.style.transform=`scale(${o})`,i.style.transformOrigin="left top")},c=(e,t)=>{if(e&&t)return t/e},a=new Map;a.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),a.set("panorama",{scale:.79,transformOrigin:"center center"}),a.set("outstream",{scale:.79,transformOrigin:"center center"}),a.set("integration",{scale:.79,transformOrigin:"center center"}),a.set("toppanorama",{scale:.8,transformOrigin:"left center"});const u=r=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>e&&(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.clientWidth)<=t))return;var o,i;const d=n(r),s=a.get(d),l=document.querySelector(`#${r.targetId}`);if(!l||!s)return;if(l.style.transformOrigin=s.transformOrigin,l.style.transform=`scale(${s.scale})`,!(null==s?void 0:s.cogwheelAdjust))return;const c=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==l?void 0:l.offsetWidth;c&&"number"==typeof u&&!isNaN(u)&&c.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,s,c,a,u;const{adScaleConfig:f,pageContext:{deviceType:m}}=r.get();if(!(null==f?void 0:f.enabled))return;if(o(e,i.ANY_FULLSCREEN))return;const v=null!==(t=f.adsToBeScaled[m])&&void 0!==t?t:[],g=d(e.targetId.split("-")[0]);if(!v.includes(g))return;const w=null!==(s=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==s?s:0,p=document.getElementById(e.targetId),y=null!==(c=null==p?void 0:p.offsetWidth)&&void 0!==c?c:window.screen.width,h=null!==(u=null===(a=null==p?void 0:p.parentElement)||void 0===a?void 0:a.offsetWidth)&&void 0!==u?u:window.screen.width;l(e,(y<h?y:h)-w)};export{s as calculateScaleFactor,c as getAspectRatio,l as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
|
|
@@ -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-BFERV4k3.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-DbRwqeWY.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
|
-
import{_ as t,c as e,h as o,L as n,M as s}from"./_auto-entry_btv2-
|
|
1
|
+
import{_ as t,c as e,h as o,L as n,M as s}from"./_auto-entry_btv2-BFERV4k3.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:c}=e.get(),r=yield o(c,a,d,"norstat");if(!s||a||!r)return;const m=n(d);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,j as t,t as o}from"./_auto-entry_btv2-
|
|
1
|
+
import{c as e,j as t,t as o}from"./_auto-entry_btv2-BFERV4k3.js";import"react/jsx-runtime";const r=1e4,n=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let s;const i=()=>{const{widescreenSwitching:t}=e.get(),{enabled:i,options:{rotationInterval:a=r,widescreenIdPrefix:c}={}}=null!=t?t:{};if(!i)return;const l=((t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();return o?Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`))):[]})(c);let y=0,p=Date.now(),d=n(l);if(!l.length)return;s&&window.removeEventListener("scroll",s);const m=(e,t,o)=>{e.forEach(e=>{e&&e.style.setProperty(t,o)})},w=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(l);const u=o(()=>{d||(d=n(l)||d,p=Date.now());Date.now()-p>=a&&((()=>{const e=w(y),t=l.map(e=>e[y]),o=l.map(t=>t[e]);m(t,"opacity","0"),setTimeout(()=>{m(t,"display","none"),m(o,"opacity","0"),m(o,"display","block"),setTimeout(()=>{m(o,"opacity","1")},450)},450)})(),y=w(y),p=Date.now())},1e3);s=u,window.addEventListener("scroll",u)};export{i as initWidescreenSwitching};
|
|
@@ -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-BFERV4k3.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};
|
|
@@ -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-BFERV4k3.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};
|
package/btv2/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{R as Netboard,X as Skyscraper,U as Sponsorstripe,V as Takeover,W as Topboard,Y as Wallpaper,Q as default}from"./_auto-entry_btv2-
|
|
1
|
+
export{R as Netboard,X as Skyscraper,U as Sponsorstripe,V as Takeover,W as Topboard,Y as Wallpaper,Q as default}from"./_auto-entry_btv2-BFERV4k3.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BFERV4k3.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 a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BFERV4k3.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 a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BFERV4k3.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 t}from"./_auto-
|
|
1
|
+
import{i as t}from"./_auto-entry_btv2-BFERV4k3.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 e}from"./_auto-
|
|
1
|
+
import{i as e}from"./_auto-entry_btv2-BFERV4k3.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 t}from"./_auto-
|
|
1
|
+
import{i as t}from"./_auto-entry_btv2-BFERV4k3.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-BFERV4k3.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 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BFERV4k3.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)}}');
|
package/common/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");const t="disable-cogwheel";function r(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}r(".advertory-wrapper-common-wallpaper{display:none}");"function"==typeof SuppressedError&&SuppressedError;const o=(e,t)=>{console.warn("[Advertory WARN]: ",e)};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,i;var s=n(function(){if(i)return a;i=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,o){return e.concat(t).map(function(e){return r(e,o)})}function n(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function c(e,t,o){var a={};return o.isMergeableObject(e)&&n(e).forEach(function(t){a[t]=r(e[t],o)}),n(t).forEach(function(n){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(s(e,n)&&o.isMergeableObject(t[n])?a[n]=function(e,t){if(!t.customMerge)return d;var r=t.customMerge(e);return"function"==typeof r?r:d}(n,o)(e[n],t[n],o):a[n]=r(t[n],o))}),a}function d(t,n,a){(a=a||{}).arrayMerge=a.arrayMerge||o,a.isMergeableObject=a.isMergeableObject||e,a.cloneUnlessOtherwiseSpecified=r;var i=Array.isArray(n);return i===Array.isArray(t)?i?a.arrayMerge(t,n,a):c(t,n,a):r(n,a)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return d(e,r,t)},{})},a=d}());const c=["placements","takeover","refreshConfig","editory"],d={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},p=e=>{(e=>{const{pageContext:t,pageOptions:r,placements:n,appearanceConfig:a}=null!=e?e:{};(null==t?void 0:t.publisher)||o("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||o("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||o("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||o("pageContext.deviceType is required."),r||o("pageOptions is required."),n||o("placements is required."),(null==a?void 0:a.defaultThreshold)||o("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,r,n;const a=e.pageSectionsSelectors,i=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(r=e.sponsorstripe)||void 0===r?void 0:r.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(n=e.widescreenSwitching)||void 0===n?void 0:n.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:r}of i)e&&!(null==a?void 0:a[t])&&o(`pageSectionsSelectors.${t} is required when ${r} is enabled.`)})(e)};class l{set(e){p(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const r of c){const o=e[r];void 0!==o&&(t[r]=o)}Object.assign(this.config,t),Object.
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");const t="disable-cogwheel";function r(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}r(".advertory-wrapper-common-wallpaper{display:none}");"function"==typeof SuppressedError&&SuppressedError;const o=(e,t)=>{console.warn("[Advertory WARN]: ",e)};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,i;var s=n(function(){if(i)return a;i=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,o){return e.concat(t).map(function(e){return r(e,o)})}function n(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function c(e,t,o){var a={};return o.isMergeableObject(e)&&n(e).forEach(function(t){a[t]=r(e[t],o)}),n(t).forEach(function(n){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(s(e,n)&&o.isMergeableObject(t[n])?a[n]=function(e,t){if(!t.customMerge)return d;var r=t.customMerge(e);return"function"==typeof r?r:d}(n,o)(e[n],t[n],o):a[n]=r(t[n],o))}),a}function d(t,n,a){(a=a||{}).arrayMerge=a.arrayMerge||o,a.isMergeableObject=a.isMergeableObject||e,a.cloneUnlessOtherwiseSpecified=r;var i=Array.isArray(n);return i===Array.isArray(t)?i?a.arrayMerge(t,n,a):c(t,n,a):r(n,a)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return d(e,r,t)},{})},a=d}());const c=["placements","takeover","refreshConfig","editory"],d={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},p=e=>{(e=>{const{pageContext:t,pageOptions:r,placements:n,appearanceConfig:a}=null!=e?e:{};(null==t?void 0:t.publisher)||o("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||o("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||o("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||o("pageContext.deviceType is required."),r||o("pageOptions is required."),n||o("placements is required."),(null==a?void 0:a.defaultThreshold)||o("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,r,n;const a=e.pageSectionsSelectors,i=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(r=e.sponsorstripe)||void 0===r?void 0:r.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(n=e.widescreenSwitching)||void 0===n?void 0:n.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:r}of i)e&&!(null==a?void 0:a[t])&&o(`pageSectionsSelectors.${t} is required when ${r} is enabled.`)})(e)};class l{set(e){p(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const r of c){const o=e[r];void 0!==o&&(t[r]=o)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=s(l.DEFAULT_SITE_HANDLERS,e)}}l.DEFAULT_SITE_HANDLERS={siteEvents:d,initNativeAd:()=>{}};const m=new l;m.modifyConfigProperties.bind(m);((e,t=(...e)=>{})=>{const r=t.toString();if(0===e.length)return r;const o=r.substring(0,r.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),n=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")),a=o.map((t,r)=>`${t} = "${e[r]}"`);new Function(...a,n).toString()})([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});const u=e=>{const t={wrapper:"",container:"",theme:""};return e?(e.wrapper&&(t.wrapper=e.wrapper),e.container&&(t.container=e.container),e.theme&&(t.theme=e.theme),t):t};r('.advertory-common-skyscraperleft_1,.advertory-common-skyscraperright_1{position:relative;font-size:0}.advertory-common-skyscraperleft_1>div[role=button],.advertory-common-skyscraperright_1>div[role=button]{top:15px !important}.advertory-common-skyscraperleft_1>div[id*=utif],.advertory-common-skyscraperright_1>div[id*=utif]{position:relative;height:auto !important;width:auto !important}.advertory-common-skyscraperleft_1::before,.advertory-common-skyscraperright_1::before{display:block;content:"annonse";color:#6b6b6b;font-size:12px;text-transform:none;font-family:Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:normal;letter-spacing:1px;line-height:15px;visibility:visible}.advertory-wrapper-common-skyscraperright_1{background:none}.advertory-common-skyscraperright_1>div[id*=utif]{float:left}.advertory-wrapper-common-skyscraperleft_1{background:none}.advertory-common-skyscraperleft_1{float:right}.advertory-common-skyscraperleft_1>div[id*=utif]{float:right}');r('.advertory-common-netboard-wrapper{display:flex;justify-content:center;width:auto}@media screen and (min-width: 720px){.advertory-common-netboard-wrapper{max-width:none}}.advertory-common-netboard-wrapper.advertory-native-ad{background:none}.advertory-common-netboard-wrapper.advertory-native-ad .advertory-common-netboard::before{content:"" !important}.advertory-common-netboard-wrapper:nth-child(1){margin-bottom:0}.advertory-common-netboard{position:relative;display:table;text-align:center;font-size:0;clear:both;transform-origin:0 0}.advertory-common-netboard:not(.advertory-native-ad)::before{display:flex;content:"annonse";color:#6b6b6b;font-size:12px;text-transform:none;font-family:Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:normal;letter-spacing:1px;line-height:15px}.advertory-common-netboard>div[role=button]{position:absolute;top:15px !important;z-index:10;background-color:hsla(0,0%,100%,.45);border-bottom-right-radius:50%;height:26px !important;width:26px !important}.advertory-common-netboard>div[id*=utif]{position:relative;height:auto !important;width:auto !important;max-width:100%;margin:auto;display:block !important;overflow:hidden;z-index:0}@media screen and (min-width: 768px){.advertory-common-netboard{display:block;margin:0 auto}}');r(".advertory-common-sponsorstripe-wrapper{z-index:50;position:sticky;top:var(--fixed-header-height-mobile);height:auto;margin-bottom:0;clear:both;text-align:left;background-color:rgba(0,0,0,0)}.advertory-common-sponsorstripe{position:absolute;top:0;left:0;width:100%;margin:0;border:medium;padding:0;background-color:rgba(0,0,0,0);text-align:left}");exports.Netboard=({targetId:t,probableHeight:r,probableWidth:o,classNames:n})=>{const{wrapper:a,container:i,theme:s}=u(n);return e.jsx("div",{className:`advertory-common-netboard-wrapper ${a} ${s}`,children:e.jsx("div",{"data-probable-height":r,"data-probable-width":o,style:{minWidth:o,minHeight:r},id:t,className:`advertory-common-netboard ${i}`})})},exports.Skyscraper=({targetId:r,probableWidth:o,classNames:n})=>{const{wrapper:a,container:i,theme:s}=u(n),c=r.includes("skyscraperleft")?t:"";return e.jsx("div",{className:`advertory-wrapper-common-${r} ${a} ${s}`,children:e.jsx("div",{style:{minWidth:o},id:r,className:`advertory-common-${r} ${i} ${c}`})})},exports.Sponsorstripe=({targetId:t,classNames:r})=>{const{wrapper:o,container:n,theme:a}=u(r);return e.jsx("div",{className:`advertory-common-sponsorstripe-wrapper ${o} ${a}`,children:e.jsx("div",{id:t,className:`advertory-common-sponsorstripe ${n}`})})},exports.Wallpaper=({targetId:r})=>e.jsx("div",{className:"advertory-wrapper-common-wallpaper wallpaper",children:e.jsx("div",{id:r,className:`advertory-common-wallpaper ${t}`})});
|
package/common/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";const t="disable-cogwheel";function r(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}r(".advertory-wrapper-common-wallpaper{display:none}");const o=({targetId:r})=>e("div",{className:"advertory-wrapper-common-wallpaper wallpaper",children:e("div",{id:r,className:`advertory-common-wallpaper ${t}`})});"function"==typeof SuppressedError&&SuppressedError;const n=(e,t)=>{console.warn("[Advertory WARN]: ",e)};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i,s;var c=a(function(){if(s)return i;s=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,o){return e.concat(t).map(function(e){return r(e,o)})}function n(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function c(e,t,o){var i={};return o.isMergeableObject(e)&&n(e).forEach(function(t){i[t]=r(e[t],o)}),n(t).forEach(function(n){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(a(e,n)&&o.isMergeableObject(t[n])?i[n]=function(e,t){if(!t.customMerge)return d;var r=t.customMerge(e);return"function"==typeof r?r:d}(n,o)(e[n],t[n],o):i[n]=r(t[n],o))}),i}function d(t,n,a){(a=a||{}).arrayMerge=a.arrayMerge||o,a.isMergeableObject=a.isMergeableObject||e,a.cloneUnlessOtherwiseSpecified=r;var i=Array.isArray(n);return i===Array.isArray(t)?i?a.arrayMerge(t,n,a):c(t,n,a):r(n,a)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return d(e,r,t)},{})},i=d}());const d=["placements","takeover","refreshConfig","editory"],p={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},l=e=>{(e=>{const{pageContext:t,pageOptions:r,placements:o,appearanceConfig:a}=null!=e?e:{};(null==t?void 0:t.publisher)||n("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||n("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||n("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||n("pageContext.deviceType is required."),r||n("pageOptions is required."),o||n("placements is required."),(null==a?void 0:a.defaultThreshold)||n("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,r,o;const a=e.pageSectionsSelectors,i=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(r=e.sponsorstripe)||void 0===r?void 0:r.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(o=e.widescreenSwitching)||void 0===o?void 0:o.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:r}of i)e&&!(null==a?void 0:a[t])&&n(`pageSectionsSelectors.${t} is required when ${r} is enabled.`)})(e)};class m{set(e){l(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const r of d){const o=e[r];void 0!==o&&(t[r]=o)}Object.assign(this.config,t),Object.
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t="disable-cogwheel";function r(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}r(".advertory-wrapper-common-wallpaper{display:none}");const o=({targetId:r})=>e("div",{className:"advertory-wrapper-common-wallpaper wallpaper",children:e("div",{id:r,className:`advertory-common-wallpaper ${t}`})});"function"==typeof SuppressedError&&SuppressedError;const n=(e,t)=>{console.warn("[Advertory WARN]: ",e)};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i,s;var c=a(function(){if(s)return i;s=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,o){return e.concat(t).map(function(e){return r(e,o)})}function n(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function c(e,t,o){var i={};return o.isMergeableObject(e)&&n(e).forEach(function(t){i[t]=r(e[t],o)}),n(t).forEach(function(n){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(a(e,n)&&o.isMergeableObject(t[n])?i[n]=function(e,t){if(!t.customMerge)return d;var r=t.customMerge(e);return"function"==typeof r?r:d}(n,o)(e[n],t[n],o):i[n]=r(t[n],o))}),i}function d(t,n,a){(a=a||{}).arrayMerge=a.arrayMerge||o,a.isMergeableObject=a.isMergeableObject||e,a.cloneUnlessOtherwiseSpecified=r;var i=Array.isArray(n);return i===Array.isArray(t)?i?a.arrayMerge(t,n,a):c(t,n,a):r(n,a)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return d(e,r,t)},{})},i=d}());const d=["placements","takeover","refreshConfig","editory"],p={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},l=e=>{(e=>{const{pageContext:t,pageOptions:r,placements:o,appearanceConfig:a}=null!=e?e:{};(null==t?void 0:t.publisher)||n("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||n("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||n("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||n("pageContext.deviceType is required."),r||n("pageOptions is required."),o||n("placements is required."),(null==a?void 0:a.defaultThreshold)||n("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,r,o;const a=e.pageSectionsSelectors,i=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(r=e.sponsorstripe)||void 0===r?void 0:r.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(o=e.widescreenSwitching)||void 0===o?void 0:o.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:r}of i)e&&!(null==a?void 0:a[t])&&n(`pageSectionsSelectors.${t} is required when ${r} is enabled.`)})(e)};class m{set(e){l(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const r of d){const o=e[r];void 0!==o&&(t[r]=o)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=c(m.DEFAULT_SITE_HANDLERS,e)}}m.DEFAULT_SITE_HANDLERS={siteEvents:p,initNativeAd:()=>{}};const u=new m;u.modifyConfigProperties.bind(u);((e,t=(...e)=>{})=>{const r=t.toString();if(0===e.length)return r;const o=r.substring(0,r.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),n=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")),a=o.map((t,r)=>`${t} = "${e[r]}"`);new Function(...a,n).toString()})([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});const f=e=>{const t={wrapper:"",container:"",theme:""};return e?(e.wrapper&&(t.wrapper=e.wrapper),e.container&&(t.container=e.container),e.theme&&(t.theme=e.theme),t):t};r('.advertory-common-skyscraperleft_1,.advertory-common-skyscraperright_1{position:relative;font-size:0}.advertory-common-skyscraperleft_1>div[role=button],.advertory-common-skyscraperright_1>div[role=button]{top:15px !important}.advertory-common-skyscraperleft_1>div[id*=utif],.advertory-common-skyscraperright_1>div[id*=utif]{position:relative;height:auto !important;width:auto !important}.advertory-common-skyscraperleft_1::before,.advertory-common-skyscraperright_1::before{display:block;content:"annonse";color:#6b6b6b;font-size:12px;text-transform:none;font-family:Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:normal;letter-spacing:1px;line-height:15px;visibility:visible}.advertory-wrapper-common-skyscraperright_1{background:none}.advertory-common-skyscraperright_1>div[id*=utif]{float:left}.advertory-wrapper-common-skyscraperleft_1{background:none}.advertory-common-skyscraperleft_1{float:right}.advertory-common-skyscraperleft_1>div[id*=utif]{float:right}');const g=({targetId:r,probableWidth:o,classNames:n})=>{const{wrapper:a,container:i,theme:s}=f(n),c=r.includes("skyscraperleft")?t:"";return e("div",{className:`advertory-wrapper-common-${r} ${a} ${s}`,children:e("div",{style:{minWidth:o},id:r,className:`advertory-common-${r} ${i} ${c}`})})};r('.advertory-common-netboard-wrapper{display:flex;justify-content:center;width:auto}@media screen and (min-width: 720px){.advertory-common-netboard-wrapper{max-width:none}}.advertory-common-netboard-wrapper.advertory-native-ad{background:none}.advertory-common-netboard-wrapper.advertory-native-ad .advertory-common-netboard::before{content:"" !important}.advertory-common-netboard-wrapper:nth-child(1){margin-bottom:0}.advertory-common-netboard{position:relative;display:table;text-align:center;font-size:0;clear:both;transform-origin:0 0}.advertory-common-netboard:not(.advertory-native-ad)::before{display:flex;content:"annonse";color:#6b6b6b;font-size:12px;text-transform:none;font-family:Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:normal;letter-spacing:1px;line-height:15px}.advertory-common-netboard>div[role=button]{position:absolute;top:15px !important;z-index:10;background-color:hsla(0,0%,100%,.45);border-bottom-right-radius:50%;height:26px !important;width:26px !important}.advertory-common-netboard>div[id*=utif]{position:relative;height:auto !important;width:auto !important;max-width:100%;margin:auto;display:block !important;overflow:hidden;z-index:0}@media screen and (min-width: 768px){.advertory-common-netboard{display:block;margin:0 auto}}');const b=({targetId:t,probableHeight:r,probableWidth:o,classNames:n})=>{const{wrapper:a,container:i,theme:s}=f(n);return e("div",{className:`advertory-common-netboard-wrapper ${a} ${s}`,children:e("div",{"data-probable-height":r,"data-probable-width":o,style:{minWidth:o,minHeight:r},id:t,className:`advertory-common-netboard ${i}`})})};r(".advertory-common-sponsorstripe-wrapper{z-index:50;position:sticky;top:var(--fixed-header-height-mobile);height:auto;margin-bottom:0;clear:both;text-align:left;background-color:rgba(0,0,0,0)}.advertory-common-sponsorstripe{position:absolute;top:0;left:0;width:100%;margin:0;border:medium;padding:0;background-color:rgba(0,0,0,0);text-align:left}");const h=({targetId:t,classNames:r})=>{const{wrapper:o,container:n,theme:a}=f(r);return e("div",{className:`advertory-common-sponsorstripe-wrapper ${o} ${a}`,children:e("div",{id:t,className:`advertory-common-sponsorstripe ${n}`})})};export{b as Netboard,g as Skyscraper,h as Sponsorstripe,o as Wallpaper};
|
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={get:(e,n)=>t(void 0,void 0,void 0,function*(){const t=yield fetch(e,n);if(!t.ok)throw new Error(t.statusText);return yield t.json()}),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()})},i=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},o=["netboard","board"];class r{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,o,r;const a=yield this.identityFacade.getIdentityUser(),s=null!==(r=yield null===(o=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===o?void 0:o.call(t))&&void 0!==r?r:"",d=(null==a?void 0:a.userId)?String(a.userId):"",l=this.buildUrl(e,{envId:s,spid:d});try{i("Starting fetching DrEdition ad from URL:",l);const e={method:"GET"},t=yield n.get(l,e);return i("Fetch operation completed successfully."),t}catch(e){i("Error during fetch operation:",e)}return null})}}class a{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 s=e=>new URLSearchParams(window.location.search).get(e),d=e=>{if("0"===s("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()})())},l=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"))},c=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):i("Dr. Edition container does not have a parent element, cannot remove height lock.")};class u{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,o;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:a=!1}=n,s=e.querySelector(r);if(!s)return void i(`Container with selector "${r}" not found.`);const u=yield this.drEditionService.fetchData(n);return(null==u?void 0:u.itemId)||a?!(null==u?void 0:u.itemId)&&a?(i("No Dr. Edition ads available to render. Collapsing whole placement."),d(e.id),void c(s)):((null==u?void 0:u.itemId)&&a&&(i("Dr. Edition ad available to render as a Xandr backfill."),l(e.id)),void(u?(u.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(u.css,"style"),yield this.rendererManager.render(s,u,n),yield null===(t=this.videoManager)||void 0===t?void 0:t.handle(u,n),c(s),this.drEditionAds.push(u),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(u.itemId),this.observeAdView(e,u,n),null===(o=e.querySelector("a"))||void 0===o||o.addEventListener("pointerup",()=>null)):c(s))):(i("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(s),this.showBackfill(e),void c(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:"";l(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 v=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 i("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const r=e=>{o||(i("Resolving advertising permission value obtained"),o=!0,t(e))},a=setTimeout(()=>{i("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{i("On Tcf Ready called, waiting for permission"),clearTimeout(a)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(a);const t=Number(e);i("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),p="no",g="se",m="cmp:loaded";let h="undefined"!=typeof window?window._tcf_:void 0,y=!1;const w=(e,n,o)=>{const r=!!(null==e?void 0:e.enabled),a=(null==e?void 0:e.timeout)||3e3,d=s("bypass_tcf"),l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(i("TCF bypass param detected, returning consent: true"),!0):(i("TCF is not enabled, returning consent: true"),!0))(r,d))return!0;if(y)return null;if(!h)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=h.getConsentedToAllSync();return i(`TCF consented to all is: ${t}`),h.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(i("Getting TCF consent manager..."),window._tcf_)return i("TCF consent manager is already available"),h=window._tcf_,void e(h);i("TCF consent manager is not available");const n=()=>{i("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(h=window._tcf_,e(h)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(m,n),y=!0,t(new Error("Timeout waiting for CMP to load"))},a);i("Listening for CMP loaded event..."),document.addEventListener(m,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return i(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===g,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===p;if(t||n)return i("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield v(e);if(!(null==e?void 0:e.enabled))return!0;const r=l();return null!==r?r:yield new Promise((e,t)=>{try{if(!h)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{i("TCF isConsentedToAll timed out, resolving with false"),n(!1)},a);h.onTcfReady(()=>{i("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),h.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},f=(e,n,o,...r)=>t(void 0,[e,n,o,...r],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return i(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return i(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=w(e,0,n);return(yield r())?(i(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(i(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),b="mobile";class E{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}=w(i.tcf,i.isMobileApp,i.country),o=yield t(),r=i.device===b?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 P{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,o=document.querySelector(`script[src="${n}"]`);if(n&&!window.autoplayQueue&&!o)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){i("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 C{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 T extends C{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 I extends C{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 j="svd",k="vg",S="aftonbladet",A="e24",L="front",U=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 W})})}})}};class x{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 U(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===L?"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 D="https://www.aftonbladet.se/video-player-extras/latest/";class _{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:{[`${D}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${D}external-link.js`]:{name:"ExternalLink"}}};yield U(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 O=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class N{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({},O(e)?e:{}),{provider:Object.assign(Object.assign({},O(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 U(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===L?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class V{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const B=(e,t,n)=>{var i;const{publisher:o,pageType:s,country:d}=e,l={[k]:new a,[A]:new x,[S]:new _,[j]:new N}[o]||new V,c=new(d===g?T:I)(n,l,s),v=new r(t,null!==(i=null==n?void 0:n.pulseTracker)&&void 0!==i?i:n),p=new E(l,c),m=new P(l);return new u(v,p,m,c)},R=()=>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 ${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 i("[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 F=(e,t,n)=>{const{wrapperSelector:i}=null==e?void 0:e.drEditionConfig.options,o=document.querySelectorAll(i),r=new IntersectionObserver((i,o)=>((e,t,n,i,o)=>{const r=B(n,i,o);e.forEach(e=>{var i,o,a;if(!e.isIntersecting)return;const s=e.target,d=null!==(i=s.dataset.editionName)&&void 0!==i?i:"",l=null!==(o=s.dataset.pulseColumnname)&&void 0!==o?o:"",c=null!==(a=s.dataset.pulsePrimaryposition)&&void 0!==a?a:"";r.fetchAndRenderAd(s,Object.assign(Object.assign({},n),{editionName:d,columnName:l,primaryPosition:c})),t.unobserve(s)})})(i,o,e,t,n),{rootMargin:"400% 0px"});o.forEach(e=>r.observe(e))},q=[],H=(e,n)=>t(void 0,void 0,void 0,function*(){var t;const{pulse:r,tcf:a,drEdition:s,pageContext:{deviceType:d,publisher:l,pageType:c,countryCode:u,isMobileApp:v}}=e;if(!(yield f(a,v,u,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:a,drEdition:s}=e,d=null===(n=null==s?void 0:s.options)||void 0===n?void 0:n.fallbackGlobalEditionName,l=a[r]||a.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=o.some(e=>c.startsWith(e)),p=q.includes(c),g=(null===(i=null==u?void 0:u.drEdition)||void 0===i?void 0:i.editionName)||d;return u&&v&&!p&&g?(q.push(c),Object.assign(Object.assign({},u),{drEdition:Object.assign(Object.assign({},u.drEdition),{editionName:g})})):null})(e,n);if(!p)return;if(!(null==r?void 0:r.instance))return void i("Pulse has not been passed as a prop, aborting");const g=yield R(),m=new $(g),h=B({publisher:l,pageType:c,country:u},m,null==r?void 0:r.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 b={editionName:(null===(t=null==p?void 0:p.drEdition)||void 0===t?void 0:t.editionName)||"",drEditionConfig:s,device:d,tcf:a,isMobileApp:v,country:u,renderAsBackfill:!0};yield h.fetchAndRenderAd(y,b)});const z=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 W=Object.freeze({__proto__:null,default:z});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=B,exports.handleDrEdition=e=>t(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield f(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield R(),i=new $(n);F({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=H,exports.handleDrEditionBackfillOnAdblock=(e,n)=>{var o,r,a;if(!(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})())return void i("Ad block not enabled, Dr. Edition backfills will not be rendered");i("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:s},finnBlink:d}=e,l=null===(r=null===(o=null==d?void 0:d.replacementConfig)||void 0===o?void 0:o.adsToReplace)||void 0===r?void 0:r[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 H(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={get:(e,n)=>t(void 0,void 0,void 0,function*(){const t=yield fetch(e,n);if(!t.ok)throw new Error(t.statusText);return yield t.json()}),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()})},i=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},o=["netboard","board"];class r{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,o,r;const a=yield this.identityFacade.getIdentityUser(),s=null!==(r=yield null===(o=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===o?void 0:o.call(t))&&void 0!==r?r:"",d=(null==a?void 0:a.userId)?String(a.userId):"",l=this.buildUrl(e,{envId:s,spid:d});try{i("Starting fetching DrEdition ad from URL:",l);const e={method:"GET"},t=yield n.get(l,e);return i("Fetch operation completed successfully."),t}catch(e){i("Error during fetch operation:",e)}return null})}}class a{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 s=e=>new URLSearchParams(window.location.search).get(e),d=e=>{if("0"===s("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()})())},l=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"))},c=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):i("Dr. Edition container does not have a parent element, cannot remove height lock.")};class u{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,o;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:a=!1}=n,s=e.querySelector(r);if(!s)return void i(`Container with selector "${r}" not found.`);const u=yield this.drEditionService.fetchData(n);return(null==u?void 0:u.itemId)||a?!(null==u?void 0:u.itemId)&&a?(i("No Dr. Edition ads available to render. Collapsing whole placement."),d(e.id),void c(s)):((null==u?void 0:u.itemId)&&a&&(i("Dr. Edition ad available to render as a Xandr backfill."),l(e.id)),void(u?(u.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(u.css,"style"),yield this.rendererManager.render(s,u,n),yield null===(t=this.videoManager)||void 0===t?void 0:t.handle(u,n),c(s),this.drEditionAds.push(u),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(u.itemId),this.observeAdView(e,u,n),null===(o=e.querySelector("a"))||void 0===o||o.addEventListener("pointerup",()=>null)):c(s))):(i("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(s),this.showBackfill(e),void c(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:"";l(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 v=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 i("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const r=e=>{o||(i("Resolving advertising permission value obtained"),o=!0,t(e))},a=setTimeout(()=>{i("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{i("On Tcf Ready called, waiting for permission"),clearTimeout(a)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(a);const t=Number(e);i("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),p="no",g="se",m="cmp:loaded";let h="undefined"!=typeof window?window._tcf_:void 0,y=!1;const w=(e,n,o)=>{const r=!!(null==e?void 0:e.enabled),a=(null==e?void 0:e.timeout)||3e3,d=s("bypass_tcf"),l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(i("TCF bypass param detected, returning consent: true"),!0):(i("TCF is not enabled, returning consent: true"),!0))(r,d))return!0;if(y)return null;if(!h)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=h.getConsentedToAllSync();return i(`TCF consented to all is: ${t}`),h.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(i("Getting TCF consent manager..."),window._tcf_)return i("TCF consent manager is already available"),h=window._tcf_,void e(h);i("TCF consent manager is not available");const n=()=>{i("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(h=window._tcf_,e(h)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(m,n),y=!0,t(new Error("Timeout waiting for CMP to load"))},a);i("Listening for CMP loaded event..."),document.addEventListener(m,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return i(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===g,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===p;if(t||n)return i("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield v(e);if(!(null==e?void 0:e.enabled))return!0;const r=l();return null!==r?r:yield new Promise((e,t)=>{try{if(!h)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{i("TCF isConsentedToAll timed out, resolving with false"),n(!1)},a);h.onTcfReady(()=>{i("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),h.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},f=(e,n,o,...r)=>t(void 0,[e,n,o,...r],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return i(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return i(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=w(e,0,n);return(yield r())?(i(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(i(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),b="mobile";class E{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}=w(i.tcf,i.isMobileApp,i.country),o=yield t(),r=i.device===b?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 P{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,o=document.querySelector(`script[src="${n}"]`);if(n&&!window.autoplayQueue&&!o)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){i("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 C{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 T extends C{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 I extends C{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 j="svd",k="vg",S="aftonbladet",A="e24",L="front",U=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 W})})}})}};class x{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 U(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===L?"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 D="https://www.aftonbladet.se/video-player-extras/latest/";class _{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:{[`${D}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${D}external-link.js`]:{name:"ExternalLink"}}};yield U(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 O=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class N{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({},O(e)?e:{}),{provider:Object.assign(Object.assign({},O(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 U(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===L?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class V{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const B=(e,t,n)=>{var i;const{publisher:o,pageType:s,country:d}=e,l={[k]:new a,[A]:new x,[S]:new _,[j]:new N}[o]||new V,c=new(d===g?T:I)(n,l,s),v=new r(t,null!==(i=null==n?void 0:n.pulseTracker)&&void 0!==i?i:n),p=new E(l,c),m=new P(l);return new u(v,p,m,c)},R=()=>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 ${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 i("[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 F=(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=B(n,i,o);e.forEach(e=>{var i,o,a;if(!e.isIntersecting)return;const s=e.target,d=null!==(i=s.dataset.editionName)&&void 0!==i?i:"",l=null!==(o=s.dataset.pulseColumnname)&&void 0!==o?o:"",c=null!==(a=s.dataset.pulsePrimaryposition)&&void 0!==a?a:"";r.fetchAndRenderAd(s,Object.assign(Object.assign({},n),{editionName:d,columnName:l,primaryPosition:c})),t.unobserve(s)})})(i,o,e,t,n),{rootMargin:"400% 0px"});o.forEach(e=>r.observe(e))},q=[],H=(e,n)=>t(void 0,void 0,void 0,function*(){var t;const{pulse:r,tcf:a,drEdition:s,pageContext:{deviceType:d,publisher:l,pageType:c,countryCode:u,isMobileApp:v}}=e;if(!(yield f(a,v,u,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:a,drEdition:s}=e,d=null===(n=null==s?void 0:s.options)||void 0===n?void 0:n.fallbackGlobalEditionName,l=a[r]||a.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=o.some(e=>c.startsWith(e)),p=q.includes(c),g=(null===(i=null==u?void 0:u.drEdition)||void 0===i?void 0:i.editionName)||d;return u&&v&&!p&&g?(q.push(c),Object.assign(Object.assign({},u),{drEdition:Object.assign(Object.assign({},u.drEdition),{editionName:g})})):null})(e,n);if(!p)return;if(!(null==r?void 0:r.instance))return void i("Pulse has not been passed as a prop, aborting");const g=yield R(),m=new $(g),h=B({publisher:l,pageType:c,country:u},m,null==r?void 0:r.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 b={editionName:(null===(t=null==p?void 0:p.drEdition)||void 0===t?void 0:t.editionName)||"",drEditionConfig:s,device:d,tcf:a,isMobileApp:v,country:u,renderAsBackfill:!0};yield h.fetchAndRenderAd(y,b)});const z=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 W=Object.freeze({__proto__:null,default:z});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=B,exports.handleDrEdition=e=>t(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield f(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield R(),i=new $(n);F({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=H,exports.handleDrEditionBackfillOnAdblock=(e,n)=>{var o,r,a;if(!(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})())return void i("Ad block not enabled, Dr. Edition backfills will not be rendered");i("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:s},finnBlink:d}=e,l=null===(r=null===(o=null==d?void 0:d.replacementConfig)||void 0===o?void 0:o.adsToReplace)||void 0===r?void 0:r[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 H(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)})};
|