@schibsted/advertory 3.4.3 → 3.4.5
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-BBSeflAn.js +1 -0
- package/aftenposten/es/{events-NnSzXfBl.js → events-CIKVfxXf.js} +1 -1
- package/aftenposten/es/{index-D_TH5NqJ.js → index-BtHoHY_T.js} +1 -1
- package/aftenposten/es/{index-YkvmFU9i.js → index-By6xWJMH.js} +1 -1
- package/aftenposten/es/{index-D_SPMvbh.js → index-Bz5_jqOu.js} +1 -1
- package/aftenposten/es/{index-CtSALZoL.js → index-C3dN37Eg.js} +1 -1
- package/aftenposten/es/{index-BoHZbtvc.js → index-C5uwjucj.js} +1 -1
- package/aftenposten/es/{index-CNA8zraa.js → index-CCM9CxKe.js} +1 -1
- package/aftenposten/es/index-Cz_ZbI_Z.js +1 -0
- package/aftenposten/es/{index-B-bCMyfh.js → index-JsKlUAVh.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-DsmX2Bkk.js → styles-2m3vymnI.js} +1 -1
- package/aftenposten/es/{styles-CH2IHDJ9.js → styles-C0KdwoVr.js} +1 -1
- package/aftenposten/es/{styles-B1QkS-Tu.js → styles-CpX5Za9j.js} +1 -1
- package/aftenposten/es/{styles-B6NYCtN5.js → styles-D1oBmHC7.js} +1 -1
- package/aftenposten/es/{styles-BZKdLQdQ.js → styles-DPZnAp3P.js} +1 -1
- package/aftenposten/es/{styles-BBgt5Y74.js → styles-DXvE8C0L.js} +1 -1
- package/aftenposten/es/{styles-DgIIlODG.js → styles-EeUBBhGi.js} +1 -1
- package/aftenposten/es/{styles-CdMmAQMn.js → styles-UoN2ZG3a.js} +1 -1
- package/aftenposten/es/{styles-Dcq7smdy.js → styles-boIfsWQf.js} +1 -1
- package/aftenposten/es/{styles-Dcaz9B_b.js → styles-sQvg_jmA.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-DXR3AVbX.js +1 -0
- package/aftenpostenv2/es/{events-Cnab7Blq.js → events-BgywybVq.js} +1 -1
- package/aftenpostenv2/es/{index-rbhALMfT.js → index-8oXzDEUa.js} +1 -1
- package/aftenpostenv2/es/{index-CKtxrDao.js → index-BhC4fZ7D.js} +1 -1
- package/aftenpostenv2/es/{index-BOn8NG8s.js → index-C7J8ciI7.js} +1 -1
- package/aftenpostenv2/es/{index-OSrhum0M.js → index-Cey6N8b4.js} +1 -1
- package/aftenpostenv2/es/{index-d7VPppTG.js → index-CiYXGKaj.js} +1 -1
- package/aftenpostenv2/es/{index-rCL_u628.js → index-DDrxdI5p.js} +1 -1
- package/aftenpostenv2/es/{index-Bo8dH9dZ.js → index-DZu5ma_k.js} +1 -1
- package/aftenpostenv2/es/index-fJF5CAO8.js +1 -0
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-BhR8eqnn.js → styles-1Gkvrl8w.js} +1 -1
- package/aftenpostenv2/es/{styles-D6P3hDZH.js → styles-B_Ob9-4S.js} +1 -1
- package/aftenpostenv2/es/{styles-B-oYlwJT.js → styles-C9sq16YF.js} +1 -1
- package/aftenpostenv2/es/{styles-DN1DCMAy.js → styles-CACjSWFL.js} +1 -1
- package/aftenpostenv2/es/{styles-CEgVPUEk.js → styles-CPlEksZN.js} +1 -1
- package/aftenpostenv2/es/{styles-BYNw8MX1.js → styles-CY_5W-eC.js} +1 -1
- package/aftenpostenv2/es/{styles-DibJU_k9.js → styles-CodHZR01.js} +1 -1
- package/aftenpostenv2/es/{styles-BkrGJb9X.js → styles-DETqgAu2.js} +1 -1
- package/aftenpostenv2/es/{styles-D2a7P9CN.js → styles-DdeI_ZYX.js} +1 -1
- package/aftenpostenv2/es/{styles-CA9MEUTa.js → styles-d87gyenF.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-DIjJkmZc.js +1 -0
- package/aftonbladet/es/{events-BHFOHoyn.js → events-CLLwYAtu.js} +1 -1
- package/aftonbladet/es/{index-BCk_Gk7v.js → index-5QjPzrSq.js} +1 -1
- package/aftonbladet/es/{index-CjPESS_b.js → index-BgN_Fx4H.js} +1 -1
- package/aftonbladet/es/{index-EfVIB7Gv.js → index-C5-KK-pn.js} +1 -1
- package/aftonbladet/es/{index-C1PA0ALz.js → index-CifiRCjv.js} +1 -1
- package/aftonbladet/es/{index-DI9bWWvG.js → index-D8GcOPH5.js} +1 -1
- package/aftonbladet/es/{index-B5mB5u2K.js → index-LhAaYIjm.js} +1 -1
- package/aftonbladet/es/{index-EVcf9Ip6.js → index-NaNJzFDX.js} +1 -1
- package/aftonbladet/es/index-vczaos3M.js +1 -0
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-B5CB69I9.js → styles-Bks9KC9T.js} +1 -1
- package/aftonbladet/es/{styles-ZmkmjoME.js → styles-CpGwdqHF.js} +1 -1
- package/aftonbladet/es/{styles-Cej3BgmO.js → styles-D4QPgdny.js} +1 -1
- package/aftonbladet/es/{styles-C-JcMEge.js → styles-DK1dZ4XR.js} +1 -1
- package/aftonbladet/es/{styles-DlCRkGHz.js → styles-HX8oObfY.js} +1 -1
- package/aftonbladet/es/{styles-MVjaRlEo.js → styles-aKqio0J3.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-t9cREqcj.js +1 -0
- package/aftonbladetv2/es/{events-z_o1b8qR.js → events-D0DKE7hm.js} +1 -1
- package/aftonbladetv2/es/{index-x2N9B4gx.js → index-BEii9kXw.js} +1 -1
- package/aftonbladetv2/es/{index-BrzOIZxv.js → index-Bj1ijOKe.js} +1 -1
- package/aftonbladetv2/es/{index-DcYEG4Ma.js → index-Bm3ZBfIj.js} +1 -1
- package/aftonbladetv2/es/index-CmOe-_8-.js +1 -0
- package/aftonbladetv2/es/{index-Cb_FajHZ.js → index-CuZJ0mk0.js} +1 -1
- package/aftonbladetv2/es/{index-Btd1raGJ.js → index-D6pc9NXK.js} +1 -1
- package/aftonbladetv2/es/{index-BWSHw4Hs.js → index-DCnA9EyQ.js} +1 -1
- package/aftonbladetv2/es/{index--CxcKaLx.js → index-oZmnYQxX.js} +1 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-NNA5aMrt.js → styles-BPD6Opbw.js} +1 -1
- package/aftonbladetv2/es/{styles-H5iSq0WK.js → styles-CVcjfzcr.js} +1 -1
- package/aftonbladetv2/es/{styles--NlGcgEn.js → styles-ClIHQkH-.js} +1 -1
- package/aftonbladetv2/es/{styles-Cxd99rZx.js → styles-D1YVnH_e.js} +1 -1
- package/aftonbladetv2/es/{styles-Bxs3egn6.js → styles-DIbKKlwV.js} +1 -1
- package/aftonbladetv2/es/{styles-B4TmTxlw.js → styles-PD43Voeq.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-DYZKUYT6.js +1 -0
- package/bt/es/{events-zPCh9Dr7.js → events-C3joUj0E.js} +1 -1
- package/bt/es/{index-B374ZTR0.js → index-BD6zFHBZ.js} +1 -1
- package/{sa/es/index-2cEqSIWE.js → bt/es/index-BhkJK3DA.js} +1 -1
- package/bt/es/{index-n742gQbA.js → index-C8soa08-.js} +1 -1
- package/bt/es/{index-BukxABtk.js → index-D4u0NXo-.js} +1 -1
- package/bt/es/{index-CyViFPDy.js → index-DBYC-24k.js} +1 -1
- package/bt/es/{index-DuR946AX.js → index-DPzLztvj.js} +1 -1
- package/bt/es/{index-qANg1i3l.js → index-DZFa7cL_.js} +1 -1
- package/bt/es/index-DZIs20tq.js +1 -0
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-CCW_KItv.js → styles-BK8EjpqJ.js} +1 -1
- package/bt/es/{styles-Dn2Es8yM.js → styles-C3wFKBPS.js} +1 -1
- package/bt/es/{styles-BS81h46v.js → styles-Cewq9xmz.js} +1 -1
- package/bt/es/{styles-CQaijpqa.js → styles-D6mtZLGH.js} +1 -1
- package/bt/es/{styles-DEK9k80p.js → styles-DPjEw5TC.js} +1 -1
- package/{sa/es/styles-6T2-Xu_7.js → bt/es/styles-DTmpGsFf.js} +1 -1
- package/bt/es/{styles-wg0OSL5b.js → styles-DwYpDat4.js} +1 -1
- package/bt/es/{styles-B54qJ6kH.js → styles-MPQdE51Q.js} +1 -1
- package/bt/es/{styles-BRG2_e2X.js → styles-NpdMFaMa.js} +1 -1
- package/btv2/es/_auto-entry_btv2-DUbYspvd.js +1 -0
- package/btv2/es/{events-Od0V0sIJ.js → events-DSa1dsgJ.js} +1 -1
- package/btv2/es/{index-D-BgwAW1.js → index-B328EtWv.js} +1 -1
- package/btv2/es/index-B4ygBxpe.js +1 -0
- package/btv2/es/{index-iH9-1GZR.js → index-BMVm27mS.js} +1 -1
- package/btv2/es/{index-BxiIQM4F.js → index-COqF6-on.js} +1 -1
- package/btv2/es/{index-DnIyhRwO.js → index-D9A3SdFc.js} +1 -1
- package/btv2/es/{index-ChkWOyeK.js → index-DZ4dMrsx.js} +1 -1
- package/btv2/es/{index-ADlvP4Gn.js → index-JKEXHWMY.js} +1 -1
- package/btv2/es/{index-C-QSQ4l1.js → index-hKnxlu2K.js} +1 -1
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-0vSewplK.js → btv2/es/styles--Tl9BpsP.js} +1 -1
- package/btv2/es/{styles-D2eFIJem.js → styles-C-17j7dt.js} +1 -1
- package/{vgv2/es/styles-DHXBSpkp.js → btv2/es/styles-Cye0MErz.js} +1 -1
- package/{sav2/es/styles-VfFB9Dwd.js → btv2/es/styles-DZSUjRB4.js} +1 -1
- package/{sav2/es/styles-BbWQEkUQ.js → btv2/es/styles-J5rmBG6Q.js} +1 -1
- package/{vgv2/es/styles-DtfaEsMv.js → btv2/es/styles-Rh5NqJhU.js} +1 -1
- package/{sav2/es/styles-B_ZOH_kH.js → btv2/es/styles-h6fWk9MC.js} +1 -1
- package/{sav2/es/styles-CjtxSWvS.js → btv2/es/styles-tL8bLCfF.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-BgKxn_Qz.js +1 -0
- package/e24/es/{events-BjCGGsU2.js → events-Dkuoqglo.js} +1 -1
- package/e24/es/{index-Du6WV54Y.js → index-BqfmVe_r.js} +1 -1
- package/e24/es/{index-AHPkpdVk.js → index-BrW8zLXE.js} +1 -1
- package/{tv4/es/index-DTaWGKTf.js → e24/es/index-C3XqENwt.js} +1 -1
- package/e24/es/index-CP-KxAJi.js +1 -0
- package/e24/es/{index-RwCfpaAf.js → index-DnD4eHt8.js} +1 -1
- package/e24/es/{index-BbhbYZrs.js → index-Fa-ez5Cu.js} +1 -1
- package/e24/es/{index-CE9nW0UL.js → index-FoJSNIWU.js} +1 -1
- package/e24/es/{index-nhRF4FiM.js → index-N7Czkef-.js} +1 -1
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-X8boPmVk.js → styles-0m7nGLjo.js} +1 -1
- package/e24/es/{styles-D9tpuT2p.js → styles-5aOw4_oJ.js} +1 -1
- package/e24/es/{styles-DN-q9mWV.js → styles-9-wvnyk1.js} +1 -1
- package/e24/es/{styles-Bkw70ZfS.js → styles-9JYhtEDI.js} +1 -1
- package/e24/es/{styles-C_uBtBmd.js → styles-9OH6mqy_.js} +1 -1
- package/e24/es/{styles-nlKDivG3.js → styles-Ba-tg0gT.js} +1 -1
- package/{tv4/es/styles-oSp-rScU.js → e24/es/styles-Ct-5Dm5R.js} +1 -1
- package/e24/es/{styles-EhbzKsM9.js → styles-D5wBfIqf.js} +1 -1
- package/e24/es/{styles-Cc5iqSLl.js → styles-DCY2X8vZ.js} +1 -1
- package/e24/es/{styles-a9xWuDhY.js → styles-DLXh0jsY.js} +1 -1
- package/e24/es/{styles-Cv-SFH42.js → styles-SLniwUdI.js} +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-BNx4ILYh.js +1 -0
- package/fotbollskanalen/es/{events-B3E3vMdN.js → events-tJAUOCQs.js} +1 -1
- package/fotbollskanalen/es/{index-D-TrDk2c.js → index--zLQcJo1.js} +1 -1
- package/fotbollskanalen/es/{index-CmHD0hoF.js → index-BIZ2SPG0.js} +1 -1
- package/fotbollskanalen/es/{index-DttRpxjB.js → index-BxlR6_Rs.js} +1 -1
- package/fotbollskanalen/es/{index-BB8KUpU5.js → index-CFtetxYo.js} +1 -1
- package/fotbollskanalen/es/{index-DwhgZ-35.js → index-DIJVvM2n.js} +1 -1
- package/fotbollskanalen/es/index-DNFUMRKw.js +1 -0
- package/fotbollskanalen/es/{index-DX0ZnMDa.js → index-Dn6Od-Hc.js} +1 -1
- package/fotbollskanalen/es/{index-fvpCpghV.js → index-vqG7FUzz.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-wZ4ZqgEf.js → styles-DHkiAEi8.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/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-cJNuN1HP.js +1 -0
- package/koket/es/{events-CvwWG2Nq.js → events-CVK2zyfC.js} +1 -1
- package/koket/es/{index-B072v10m.js → index-BvV4IBpe.js} +1 -1
- package/koket/es/{index-DrPzXuzI.js → index-CfXnqhsy.js} +1 -1
- package/koket/es/index-CkZ2qnF2.js +1 -0
- package/koket/es/{index-COV7xlV2.js → index-Cr0lHDCI.js} +1 -1
- package/koket/es/{index-UYyfZtbd.js → index-CtHhOcte.js} +1 -1
- package/koket/es/{index-DQbH03TR.js → index-ZLtL--0_.js} +1 -1
- package/koket/es/{index-BmG5eAvR.js → index-dGbsj2Zx.js} +1 -1
- package/koket/es/{index-R-GeDn_C.js → index-uBSa27IB.js} +1 -1
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-C8F2H7Zd.js → koket/es/styles-PH2sE2Sv.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-D8tn-g6r.js +1 -0
- package/sa/es/{events-Bvgy15qT.js → events-BeqSBbHk.js} +1 -1
- package/sa/es/index-83LPkza2.js +1 -0
- package/sa/es/{index-4IheX1Qx.js → index-BVkJKyuN.js} +1 -1
- package/{bt/es/index-CB0e87Yr.js → sa/es/index-Bjp3LZhG.js} +1 -1
- package/sa/es/{index-CgtIgNa1.js → index-CWnj9600.js} +1 -1
- package/sa/es/{index-DgiFn2Ge.js → index-D28V3CEP.js} +1 -1
- package/sa/es/{index-eigLJXXM.js → index-DQPWqAWj.js} +1 -1
- package/sa/es/{index-Cux-4pkD.js → index-j53LA_uZ.js} +1 -1
- package/sa/es/{index-9P60WzXZ.js → index-jbyypkdn.js} +1 -1
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-CE-oof_T.js → styles-A3H_g72U.js} +1 -1
- package/{vg/es/styles-Bskzm7WU.js → sa/es/styles-BCGYinqV.js} +1 -1
- package/sa/es/{styles-Ed-e5-yf.js → styles-CFGzRbGb.js} +1 -1
- package/sa/es/{styles-DjfA1U9_.js → styles-Cn12RJQm.js} +1 -1
- package/sa/es/{styles-DWa2H7Aj.js → styles-CnhTqFOx.js} +1 -1
- package/sa/es/{styles-mmE9VHHn.js → styles-CsPAEzD5.js} +1 -1
- package/sa/es/{styles-Bb1RceEA.js → styles-Cu4WdoV8.js} +1 -1
- package/{vg/es/styles-Dr7A3HpS.js → sa/es/styles-D5WNRKkY.js} +1 -1
- package/sa/es/{styles-BHaLvTs-.js → styles-lOrAPwP_.js} +1 -1
- package/sav2/es/_auto-entry_sav2-DzX2GvyE.js +1 -0
- package/sav2/es/{events-CSBAJTl_.js → events-BHKuYYxN.js} +1 -1
- package/sav2/es/{index-C9emf_ZQ.js → index-Br8hPuTZ.js} +1 -1
- package/sav2/es/{index-CUN4Irqp.js → index-CvS7nSDC.js} +1 -1
- package/sav2/es/{index-D7uB61Lg.js → index-D46UoAvZ.js} +1 -1
- package/sav2/es/index-DNIk4Qx6.js +1 -0
- package/sav2/es/{index-FzjhlqAu.js → index-DUijTwVR.js} +1 -1
- package/sav2/es/{index-DFGVi5Jp.js → index-Dme-dmgR.js} +1 -1
- package/sav2/es/{index-CDjwJyxU.js → index-HKp2c2s-.js} +1 -1
- package/sav2/es/{index-D-f5Ljk-.js → index-b4ac42M3.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-CUAxlQm_.js → sav2/es/styles-8YLb7P9n.js} +1 -1
- package/sav2/es/{styles-CNClKD_e.js → styles-BhSwJE7K.js} +1 -1
- package/{btv2/es/styles-Cq4cAkY2.js → sav2/es/styles-CKCLU2uO.js} +1 -1
- package/sav2/es/{styles-W-hW7AaY.js → styles-CKygoMdq.js} +1 -1
- package/{btv2/es/styles-CgitEZi2.js → sav2/es/styles-CZlY-f2J.js} +1 -1
- package/sav2/es/{styles-lBK9P7Ta.js → styles-D8N-rRYn.js} +1 -1
- package/{vgv2/es/styles-CC3XnDMT.js → sav2/es/styles-JIN4Av81.js} +1 -1
- package/{btv2/es/styles-D8ARyZMy.js → sav2/es/styles-QZmWpaFU.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-DBvWCpDJ.js +1 -0
- package/svd/es/{events-BBOO1qLH.js → events-DG1tENxq.js} +1 -1
- package/svd/es/{index-DxVke-LG.js → index-3rtERb5S.js} +1 -1
- package/{e24/es/index-DwX_MoIe.js → svd/es/index-B8rDQRdP.js} +1 -1
- package/svd/es/{index-Clkes_JW.js → index-BT6gpbwI.js} +1 -1
- package/svd/es/{index-Blog_T_h.js → index-CGBiT7Al.js} +1 -1
- package/svd/es/{index-Bq68FeSG.js → index-DsmoL2Lq.js} +1 -1
- package/svd/es/{index-DZgUWO_O.js → index-Q0i8CuqJ.js} +1 -1
- package/svd/es/{index-C6gIJ3YT.js → index-hC9HAHKU.js} +1 -1
- package/svd/es/index-yLs7wYu9.js +1 -0
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-eReOfxOY.js → styles-B4SECvc2.js} +1 -1
- package/svd/es/{styles-BRuux0td.js → styles-BCU7rfmw.js} +1 -1
- package/svd/es/{styles-B2u9U58U.js → styles-ComGSOCV.js} +1 -1
- package/svd/es/{styles-C0M9uL7v.js → styles-DT1a-Faz.js} +1 -1
- package/svd/es/{styles-CfoPL3Kl.js → styles-Dv7udCRs.js} +1 -1
- package/svd/es/{styles-DOUeUzPw.js → styles-rPGcAlSq.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-BiF0rTw8.js +1 -0
- package/svdv2/es/{events-QZIpKmMd.js → events-CWbu7TQw.js} +1 -1
- package/svdv2/es/index-BURh9Nkf.js +1 -0
- package/svdv2/es/{index-o-hKUjPb.js → index-ByCgCjdX.js} +1 -1
- package/svdv2/es/{index-DL7tMz3m.js → index-CKhOHkI1.js} +1 -1
- package/svdv2/es/{index-CyX6sdFR.js → index-CQ9V6tZQ.js} +1 -1
- package/svdv2/es/{index-CC37DurP.js → index-DNNQW4In.js} +1 -1
- package/svdv2/es/{index-Dzh4smy5.js → index-DcJ1VkTq.js} +1 -1
- package/svdv2/es/{index-Cpr2XoWk.js → index-DkuqaMJV.js} +1 -1
- package/svdv2/es/{index-CObZnuh4.js → index-ehzk1aZk.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-3rR6vWcw.js → styles-0o2NJS16.js} +1 -1
- package/svdv2/es/{styles-C9ILjoKk.js → styles-6P0LRxVg.js} +1 -1
- package/{koket/es/styles-vY_YaN5w.js → svdv2/es/styles-BEQ2-xwh.js} +1 -1
- package/svdv2/es/{styles-ByAM4CUV.js → styles-BR414DzV.js} +1 -1
- package/svdv2/es/{styles-BtKOxohT.js → styles-Bc66VjO-.js} +1 -1
- package/svdv2/es/{styles-BXETvW1L.js → styles-Dgyyj7Le.js} +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-CropCCnT.js +1 -0
- package/tv4/es/{events-C_M50L_F.js → events-DxXMRvOd.js} +1 -1
- package/tv4/es/index-BjhxhCJ1.js +1 -0
- package/tv4/es/{index-Bl1OnFFG.js → index-Bw0ToOIr.js} +1 -1
- package/tv4/es/{index-CGFe4ZCU.js → index-CBAbbnT_.js} +1 -1
- package/tv4/es/{index-C1KsDELJ.js → index-C_RO-ZOf.js} +1 -1
- package/tv4/es/{index-Cgr7rPoH.js → index-DZXa3-VJ.js} +1 -1
- package/tv4/es/{index-6RdCSFSp.js → index-blcv068B.js} +1 -1
- package/tv4/es/{index-BfLhM5py.js → index-br_Ud0HH.js} +1 -1
- package/{svd/es/index-BWMzzOgK.js → tv4/es/index-x5iDULbk.js} +1 -1
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-B_OHnQ7F.js → tv4/es/styles-CExWvWFv.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-CIBfHLMt.js +1 -0
- package/vg/es/{events-Bd-iygyH.js → events-C5F0PuBI.js} +1 -1
- package/vg/es/{index-BXRR3qnn.js → index-5yE4wJq1.js} +1 -1
- package/vg/es/{index-1XciwLyG.js → index-C2x4Mkus.js} +1 -1
- package/vg/es/{index-BjKt1e9m.js → index-CbQ2KuQt.js} +1 -1
- package/vg/es/{index-7-RNSGyQ.js → index-Cr9xlqU9.js} +1 -1
- package/vg/es/{index-cnVG6KwK.js → index-D79bAzC2.js} +1 -1
- package/vg/es/{index-DpdK5XhH.js → index-DW9VnWin.js} +1 -1
- package/vg/es/{index-DMHVzKpf.js → index-GBzS9LYy.js} +1 -1
- package/vg/es/index-KZdTw3qZ.js +1 -0
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-C57iKHBK.js → styles-AlWEddgI.js} +1 -1
- package/vg/es/{styles-CFzBy5b9.js → styles-BXPsYyy_.js} +1 -1
- package/vg/es/{styles-B3g_WQKY.js → styles-BwK7MafB.js} +1 -1
- package/vg/es/{styles-Dq2kfMxh.js → styles-Ca2jh4Hc.js} +1 -1
- package/vg/es/{styles-B8U-Fsay.js → styles-CaV3U63h.js} +1 -1
- package/vg/es/{styles-EHM4khu3.js → styles-Ckhkmka9.js} +1 -1
- package/vg/es/{styles-CeXOnNz5.js → styles-DB8x9G4a.js} +1 -1
- package/{bt/es/styles-VWcrgyF-.js → vg/es/styles-DHfiUW0S.js} +1 -1
- package/vg/es/{styles-CEv3g75Z.js → styles-DZ-942Wi.js} +1 -1
- package/{sa/es/styles-KLP-sDIg.js → vg/es/styles-DdytjalC.js} +1 -1
- package/vg/es/{styles-OS52MZJU.js → styles-DwFXYuKq.js} +1 -1
- package/vg/es/{styles-BAyDEkIO.js → styles-F6EdXxzC.js} +1 -1
- package/vg/es/{styles-PhrVBHh5.js → styles-XtlXtpLi.js} +1 -1
- package/vg/es/{styles-DieMs8S_.js → styles-Zaz_B2dz.js} +1 -1
- package/vg/es/{styles-B7FSVEQF.js → styles-_VouA2eN.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-BsnyENvg.js +1 -0
- package/vgv2/es/{events-DQrgkrtZ.js → events-D2xGH27N.js} +1 -1
- package/vgv2/es/{index-DpGZ6Qy1.js → index-BUN-cI5r.js} +1 -1
- package/vgv2/es/{index-DKL_UxWW.js → index-BgNoycLt.js} +1 -1
- package/vgv2/es/{index-D2c6CNMO.js → index-C4fgzc7N.js} +1 -1
- package/vgv2/es/{index-C7UmytTB.js → index-C5Sl6uxK.js} +1 -1
- package/vgv2/es/{index-CyFptD50.js → index-D6Pw-lcl.js} +1 -1
- package/vgv2/es/index-DBB3xmgK.js +1 -0
- package/vgv2/es/{index-BsbQbbLL.js → index-DH3nMDX-.js} +1 -1
- package/vgv2/es/{index-D-L-68nH.js → index-DbV8iCf4.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-BcAsg-p5.js → styles-B4DRtFVV.js} +1 -1
- package/{btv2/es/styles-1ccH2_0E.js → vgv2/es/styles-BPfkBbkX.js} +1 -1
- package/vgv2/es/{styles-C3o4VBe7.js → styles-BpXobaZJ.js} +1 -1
- package/vgv2/es/{styles-DHgg-Bq2.js → styles-BpurVPp0.js} +1 -1
- package/{btv2/es/styles-CLrNsJNG.js → vgv2/es/styles-C85yrn2i.js} +1 -1
- package/vgv2/es/{styles-kbvRAbcm.js → styles-CXS7gUvG.js} +1 -1
- package/vgv2/es/{styles-BcbDxXWF.js → styles-Cca1C3xA.js} +1 -1
- package/vgv2/es/{styles-C0jG0YmH.js → styles-CdQFHCMN.js} +1 -1
- package/vgv2/es/{styles-CmIv2nA5.js → styles-ChOfJksc.js} +1 -1
- package/{btv2/es/styles-CKoeXLY-.js → vgv2/es/styles-CwWXZBG-.js} +1 -1
- package/vgv2/es/{styles-AolPFBXK.js → styles-CwmsiSBL.js} +1 -1
- package/vgv2/es/{styles-B7Pt1sHE.js → styles-DPqzO0Vt.js} +1 -1
- package/vgv2/es/{styles-DLajemP4.js → styles-Dry1laTe.js} +1 -1
- package/vgv2/es/{styles-CEZvQ0yR.js → styles-DsfZWdaW.js} +1 -1
- package/vgv2/es/{styles-BZ6R4Cta.js → styles-IpHn4rD-.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/aftenposten/es/index-ugv9cbWi.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BPR2QCdL.js +0 -1
- package/aftenpostenv2/es/index-wav3Ilhc.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CQFYKsWd.js +0 -1
- package/aftonbladet/es/index-BSDqET-H.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-ecI7HhuB.js +0 -1
- package/aftonbladetv2/es/index-CeMlmW09.js +0 -1
- package/bt/es/_auto-entry_bt-DNfUcUzB.js +0 -1
- package/bt/es/index-OKKHjcPk.js +0 -1
- package/btv2/es/_auto-entry_btv2-BQRePf9J.js +0 -1
- package/btv2/es/index-uDCrosab.js +0 -1
- package/e24/es/_auto-entry_e24-DTlP0xtS.js +0 -1
- package/e24/es/index-nUjddkRa.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DAgIUSHM.js +0 -1
- package/fotbollskanalen/es/index-ZgSfKCrx.js +0 -1
- package/koket/es/_auto-entry_koket-CtflJ85C.js +0 -1
- package/koket/es/index-CFfHFpgw.js +0 -1
- package/sa/es/_auto-entry_sa-dcJlXx1N.js +0 -1
- package/sa/es/index-DYV0i3R0.js +0 -1
- package/sav2/es/_auto-entry_sav2-wlTjDJL2.js +0 -1
- package/sav2/es/index-sRdPGxGV.js +0 -1
- package/svd/es/_auto-entry_svd-D4S7UpT_.js +0 -1
- package/svd/es/index-HGBVAill.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-CFiE0z1M.js +0 -1
- package/svdv2/es/index-D9bLY9Q7.js +0 -1
- package/tv4/es/_auto-entry_tv4-D8L10tTo.js +0 -1
- package/tv4/es/index-BzzXS1lo.js +0 -1
- package/vg/es/_auto-entry_vg-BOJf3ej1.js +0 -1
- package/vg/es/index-C1Rx8Dx2.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-D9t5nfSh.js +0 -1
- package/vgv2/es/index-CsWjy0nP.js +0 -1
package/video/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{d(i.next(e))}catch(e){r(e)}}function a(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(s,a)}d((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const t=()=>e(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var o;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(o=n.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),n={NO:"no",SE:"se"},i={pageContext:{publisher:"aftonbladet",countryCode:n.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},o={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},r=e=>(null==e?void 0:e.parent)?[...r(e.parent),e.shortPath||"unknown"]:[],s=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=r(e);return o[n]||"ovrigaavdelningar"})(e)}_{position}`,a=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},d=(e,t)=>{console.warn("[Advertory WARN]: ",e)},l={aftonbladet:i},c={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:s(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:r(e).join(":")}}},u=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},p=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),v="desktop",g="web_desktop",h="web_phone",f="wde",y="wph",b="se-generic",m="aa-sch",w="kv_",O="pause",C="{deviceType}",P="{position}",I="afp_",T=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),_="1-1",S="16-9",E="3-4",A="9-16",j="responsive",$={[_]:1,[S]:1.78,[A]:.56,[j]:1},k={[_]:1,[S]:1.78,[E]:1.33,[A]:.56},N=(e,t,n,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},s=v===n?f:y,a=o.replace(C,s);return(e,n)=>{if(e===O)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(P,O).replace(/-([a-z]+)_/,"-article-"))(a);if(n&&T.has(e)){return(i&&r?r:t.frontpageInvCodeTemplate).replace(C,s).replace(P,e)}return a.replace(P,e)}};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,D;var R=x(function(){if(D)return M;D=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function o(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 r(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var s={};return i.isMergeableObject(e)&&o(e).forEach(function(t){s[t]=n(e[t],i)}),o(t).forEach(function(o){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r(e,o)&&i.isMergeableObject(t[o])?s[o]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(o,i)(e[o],t[o],i):s[o]=n(t[o],i))}),s}function a(t,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(o);return a===Array.isArray(t)?a?r.arrayMerge(t,o,r):s(t,o,r):n(o,r)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},M=a}());const U=["placements","takeover","refreshConfig","editory"],H={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},F=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||d("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||d("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||d("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||d("pageContext.deviceType is required."),n||d("pageOptions is required."),i||d("placements is required."),(null==o?void 0:o.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i;const o=e.pageSectionsSelectors,r=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:n}of r)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class L{set(e){F(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const n of U){const i=e[n];void 0!==i&&(t[n]=i)}Object.assign(this.config,t),Object.prototype.hasOwnProperty.call(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.prototype.hasOwnProperty.call(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.prototype.hasOwnProperty.call(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=R(L.DEFAULT_SITE_HANDLERS,e)}}L.DEFAULT_SITE_HANDLERS={siteEvents:H,initNativeAd:function(){}};const V=new L;V.modifyConfigProperties.bind(V);const B=864e5,q=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return a("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=B)=>{const o={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(o))},getByTimestamp:(t,n=B)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return a("Error with parsing localStorage data"),null}}}})(),K=["glwe_","glwet_"],W={geofenceTags:[],geoTags:[],weatherTags:[]},z=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 a("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),J="cmp:loaded";let G="undefined"!=typeof window?window._tcf_:void 0,Q=!1;const Y=(t,i,o)=>{const r=!!(null==t?void 0:t.enabled),s=(null==t?void 0:t.timeout)||3e3,d=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const c=()=>{if(!(null==t?void 0:t.enabled))return!0;if(((e,t)=>e?!!t&&(a("TCF bypass param detected, returning consent: true"),!0):(a("TCF is not enabled, returning consent: true"),!0))(r,d))return!0;if(Q)return null;if(!G)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=G.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),G.getConsentedToAllSync()};return{initConsentManager:()=>(null==t?void 0:t.enabled)?new Promise((e,t)=>{if(a("Getting TCF consent manager..."),window._tcf_)return a("TCF consent manager is already available"),G=window._tcf_,void e(G);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(G=window._tcf_,e(G)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(J,n),Q=!0,t(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(J,n,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>e(void 0,void 0,void 0,function*(){if(null==t?void 0:t.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${t.schibstedAdChoicesOverrideValue}`),Boolean(Number(t.schibstedAdChoicesOverrideValue));const e=(null==t?void 0:t.advertisingCMPSignalEnabled)&&o===n.SE,i=(null==t?void 0:t.advertisingCMPSignalEnabled)&&o===n.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield z(t);if(!(null==t?void 0:t.enabled))return!0;const r=c();return null!==r?r:yield new Promise((e,t)=>{try{if(!G)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{a("TCF isConsentedToAll timed out, resolving with false"),n(!1)},s);G.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),G.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},X=(t,n,i,...o)=>e(void 0,[t,n,i,...o],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return a(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=Y(e,0,n);return(yield o())?(a(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(a(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),Z={svd:"svd",vg:"vg",godare:"godare",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},ee=e=>K.some(t=>e.startsWith(t)),te=e=>e.startsWith("glgc_"),ne=e=>!ee(e)&&!te(e),ie=(t,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:o,pageContext:{countryCode:r}={}}=t,s=yield((...t)=>e(void 0,[...t],void 0,function*(e=V.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled)return yield X(t,n,i,"glimr");const{getConsentAsync:o}=Y(t,0,i);return yield o()}))(t);if(!(null==o?void 0:o.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===n.NO?"no-sno":"se-generic")(r),l=oe(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),oe=(e,t)=>{const n=re();if(!n)return W;const i=((e=[])=>e.filter(ee))(n),o=((e=[])=>e.filter(te))(n),r=((e=[],t,n)=>{var i;const o=e.filter(ne);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=Z[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:r,geofenceTags:o,weatherTags:i}},re=()=>{const e=q.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},se={get:(t,n)=>e(void 0,void 0,void 0,function*(){const e=yield fetch(t,n);if(!e.ok)throw new Error(e.statusText);return yield e.json()}),post:(t,n,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),o=yield fetch(t,{method:"POST",headers:n,body:e});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},ae="advertory:ppids-cache",de={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},le={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},ce={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ue={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},pe={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class ve{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const ge=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(t){return e(this,arguments,void 0,function*(e,t=1e4){var n,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=o.xandr)||void 0===n?void 0:n.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},he=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(t,n){return e(this,void 0,void 0,function*(){var e,i,o,r,s,a,d,l,c,u,p;const v=q.get(ae),g=yield this.getNewPPIDs(t,n);if(this.shouldHash(v,g)){const n=null!==(e=t.hasherUrl)&&void 0!==e?e:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,n);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(s=c.environmentId)&&void 0!==s?s:"",null===(a=g.idfv)||void 0===a?void 0:a.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const o in e){if((null===(n=e[o])||void 0===n?void 0:n.plain)!==(null===(i=t[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const o=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});q.set(ae,o)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield se.post(n,e,t)}catch(e){return a("Error with hashing PPIDs",e),null}})}getNewPPIDs(t,n){return e(this,arguments,void 0,function*({clientId:t,instance:n},i){const o=yield((t,n)=>e(void 0,void 0,void 0,function*(){const e=yield t.getUserId();return e?`${pe[n]}:${e}`:null}))(n,i),r=yield(t=>e(void 0,void 0,void 0,function*(){const e=yield t.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}))(n),s=window.advertory_idfv,a=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:t},userId:{plain:o},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},s?{idfv:{plain:s}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:o.plain}}},fe=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:o}=Y(e,0,i);if(!(yield o()))return;const r=(e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null})("_pulse2data");return r?r.split(",")[9]:void 0}),ye=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},be=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,o])=>{const r=Math.abs(e[n]-t);return Math.abs(o-t)<r?i:n},n[0][0])},me=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},we=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},Oe=()=>{const e=null!==(t=we()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=we()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ce=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Pe=(n,i)=>e(void 0,void 0,void 0,function*(){const{tcf:o,pageContext:{publisher:r,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:n.isApp,countryCode:s,publisher:r,pageType:"front",deviceType:n.deviceType},c=(yield X(o,n.isApp,s,"video"))?"1":"0",u=yield t(),p=yield(f=s,e(void 0,void 0,void 0,function*(){const{ppid1:e,ppid2:t}=ge.getPPIDs(),{ppid1:n,ppid2:i}=he.getPPIDs(),o=(new ve).add(t,de[f]).add(e,le[f]).add(i,ce[f]).add(n,ue[f]);return yield new Promise(e=>{e(o.buildVideoEids())})}));var f;const y=yield fe({tcf:o,pageContext:l}),O=null!==(C=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==C?C:"";var C;const P=((e=1)=>be(k,Number(e.toFixed(2))))(n.instreamAspectRatio),I=(T=n.playerAspectRatio)?be($,Number(T.toFixed(2))):j;var T,_;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${m}-country_code`]:s,[`${m}-publisher`]:r,[`${m}-supply_type`]:(_=n.deviceType,_===v?g:h),[`kw_${m}-page_type`]:"collection",[`${m}-page_type`]:"collection",[`${b}-appmode`]:n.isAndroidApp?"hybrid":"notinapp",[`kw_${b}-page`]:"index",[`${b}-page`]:"index",[`${b}-screenheight`]:String(window.screen.height),[`${b}-screenwidth`]:String(window.screen.width),[`${b}-viewportheight`]:String(d),[`${b}-viewportwidth`]:String(a),[`${b}-loggedin`]:n.isUserLoggedIn?"yes":"no",[`${b}-mobile-os`]:ye(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Oe(),[`${b}-tags`]:n.tags,[`${b}-articleid`]:O,"article-id":O},yield ie(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),n.isUserPresentOnFrontPage&&n.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),n.pageAdsKeywords),Object.keys(Ce()).some(e=>e.includes(w))&&(()=>{const e=Ce(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(w)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[i.sectionKeyword]:n.sections.split(":"),"aa-sch-cmp_advertising":c,"kw_aa-sch-cmp_advertising":c,"aa-sch-instream_player_aspectratio":P,"aa-sch-player_aspectratio":I}),u),{eids:p})}),Ie=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],Te=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],_e=["external_uid","gdpr","gdpr_consent","eids","article-id"],Se=(e,t)=>{const n=[...Ie,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||_e.includes(e)?e:`kw_${e}`,t]))},Ee=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Te.includes(e))),Ae=(t,n)=>e(void 0,void 0,void 0,function*(){var e,o,r,s;const a=(e=>{var t;l[e]||d(`[video] No config found for publisher "${e}"`);return null!==(t=l[e])&&void 0!==t?t:i})(t.publisher),p=(e=>{var t;return null!==(t=c[e])&&void 0!==t?t:c.aftonbladet})(t.publisher)(t.assetSection,t.isLiveStudio),v="/"===window.location.pathname,g=null===(o=null===(e=n.attributes)||void 0===e?void 0:e.id)||void 0===o?void 0:o.toString(),h=t.assetId===g,f=null!==(r=Number(t.aspectRatio))&&void 0!==r?r:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield Pe({pageAdsKeywords:t.pageAdsKeywords,tags:(b=t.tags,b?b.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(s=null==p?void 0:p.sections)&&void 0!==s?s:"",isUserLoggedIn:t.isUserLoggedIn,isUserPresentOnFrontPage:v,isInitialVideo:h,instreamAspectRatio:f,playerAspectRatio:me(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),je=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:s,playbackMethod:a}=e,{invCode:d}=i||{},l=N(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(I)?`${I}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(s,o),"se-generic-playback-method":p.get(a),"kw_se-generic-adformat":c(s)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Se(r,n)),Ee(r)),{vskippable:"0",referrer:u,vplaybackmethod:a})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},$e=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield Ae(t,n);return je(e,t)});export{t as getTcfConsentKeywords,$e as getVideoAdsConfig};
|
|
1
|
+
function e(e,n,t,i){return new(t||(t=Promise))(function(o,r){function s(e){try{d(i.next(e))}catch(e){r(e)}}function a(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,a)}d((i=i.apply(e,n||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n=()=>e(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((n,t)=>{e("addEventListener",2,(t,i)=>{var o;i||n(""),"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus||(n(null!==(o=t.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},t.listenerId))})}))}:{};var e}),t={NO:"no",SE:"se"},i={pageContext:{publisher:"aftonbladet",countryCode:t.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},o={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},r=e=>(null==e?void 0:e.parent)?[...r(e.parent),e.shortPath||"unknown"]:[],s=(e,n)=>n?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var n;if(null===(n=null==e?void 0:e.metadata)||void 0===n?void 0:n.afp)return"afp";const[,t]=r(e);return o[t]||"ovrigaavdelningar"})(e)}_{position}`,a=(e,n)=>{const t="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(n?console.log(t,e,n):console.log(t,e))},d=(e,n)=>{console.warn("[Advertory WARN]: ",e)},l={aftonbladet:i},c={aftonbladet:(e,n)=>{if(!e)return null;return{invCode:s(e,n),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:r(e).join(":")}}},u=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},p=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),v="desktop",g="web_desktop",h="web_phone",f="wde",y="wph",b="se-generic",m="aa-sch",w="kv_",O="pause",C="{deviceType}",P="{position}",I="afp_",T=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),_="1-1",S="16-9",E="3-4",A="9-16",j="responsive",$={[_]:1,[S]:1.78,[A]:.56,[j]:1},k={[_]:1,[S]:1.78,[E]:1.33,[A]:.56},N=(e,n,t,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},s=v===t?f:y,a=o.replace(C,s);return(e,t)=>{if(e===O)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(P,O).replace(/-([a-z]+)_/,"-article-"))(a);if(t&&T.has(e)){return(i&&r?r:n.frontpageInvCodeTemplate).replace(C,s).replace(P,e)}return a.replace(P,e)}};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,D;var R=x(function(){if(D)return M;D=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function t(e,n){return!1!==n.clone&&n.isMergeableObject(e)?a((t=e,Array.isArray(t)?[]:{}),e,n):e;var t}function i(e,n,i){return e.concat(n).map(function(e){return t(e,i)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return Object.propertyIsEnumerable.call(e,n)}):[]}(e))}function r(e,n){try{return n in e}catch(e){return!1}}function s(e,n,i){var s={};return i.isMergeableObject(e)&&o(e).forEach(function(n){s[n]=t(e[n],i)}),o(n).forEach(function(o){(function(e,n){return r(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))})(e,o)||(r(e,o)&&i.isMergeableObject(n[o])?s[o]=function(e,n){if(!n.customMerge)return a;var t=n.customMerge(e);return"function"==typeof t?t:a}(o,i)(e[o],n[o],i):s[o]=t(n[o],i))}),s}function a(n,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=t;var a=Array.isArray(o);return a===Array.isArray(n)?a?r.arrayMerge(n,o,r):s(n,o,r):t(o,r)}return a.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return a(e,t,n)},{})},M=a}());const U=["placements","takeover","refreshConfig","editory"],H={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,n)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},F=e=>{(e=>{const{pageContext:n,pageOptions:t,placements:i,appearanceConfig:o}=null!=e?e:{};(null==n?void 0:n.publisher)||d("pageContext.publisher is required."),(null==n?void 0:n.countryCode)||d("pageContext.countryCode is required."),(null==n?void 0:n.pageType)||d("pageContext.pageType is required."),(null==n?void 0:n.deviceType)||d("pageContext.deviceType is required."),t||d("pageOptions is required."),i||d("placements is required."),(null==o?void 0:o.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var n,t,i;const o=e.pageSectionsSelectors,r=[{flag:!!(null===(n=e.takeover)||void 0===n?void 0:n.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(t=e.sponsorstripe)||void 0===t?void 0:t.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:n,featureName:t}of r)e&&!(null==o?void 0:o[n])&&d(`pageSectionsSelectors.${n} is required when ${t} is enabled.`)})(e)};class L{set(e){F(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const n={};for(const t of U){const i=e[t];void 0!==i&&(n[t]=i)}Object.assign(this.config,n),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=R(L.DEFAULT_SITE_HANDLERS,e)}}L.DEFAULT_SITE_HANDLERS={siteEvents:H,initNativeAd:()=>{}};const V=new L;V.modifyConfigProperties.bind(V);const B=864e5,q=(()=>{const e=e=>{const n=window.localStorage.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch(e){return a("Error with parsing localStorage data"),null}},n=(e,n)=>{window.localStorage.setItem(e,JSON.stringify(n))};return{get:e,set:n,setWithTimestamp:(e,t,i=B)=>{const o={data:t,expirationTime:(new Date).getTime()+i};n(e,JSON.stringify(o))},getByTimestamp:(n,t=B)=>{const i=e(n);if(!i)return null;if(!t)return i;try{const{expirationTime:e,data:n}=JSON.parse(i);return(new Date).getTime()<=e?n:null}catch(e){return a("Error with parsing localStorage data"),null}}}})(),K=["glwe_","glwet_"],W={geofenceTags:[],geoTags:[],weatherTags:[]},z=e=>new Promise(n=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void n(!1);const t=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const n=Number(e);return a("Advertising permission value obtained synchronously: ",e),Boolean(n)})();if(null!==t)return void n(t);let i=!1;const o=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,n(e))},r=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const n=Number(e);a("Advertising permission value obtained asynchronously: ",e),o(Boolean(n))})}),J="cmp:loaded";let G="undefined"!=typeof window?window._tcf_:void 0,Q=!1;const Y=(n,i,o)=>{const r=!!(null==n?void 0:n.enabled),s=(null==n?void 0:n.timeout)||3e3,d=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const c=()=>{if(!(null==n?void 0:n.enabled))return!0;if(((e,n)=>e?!!n&&(a("TCF bypass param detected, returning consent: true"),!0):(a("TCF is not enabled, returning consent: true"),!0))(r,d))return!0;if(Q)return null;if(!G)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=G.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),G.getConsentedToAllSync()};return{initConsentManager:()=>(null==n?void 0:n.enabled)?new Promise((e,n)=>{if(a("Getting TCF consent manager..."),window._tcf_)return a("TCF consent manager is already available"),G=window._tcf_,void e(G);a("TCF consent manager is not available");const t=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(G=window._tcf_,e(G)):n(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(J,t),Q=!0,n(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(J,t,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>e(void 0,void 0,void 0,function*(){if(null==n?void 0:n.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${n.schibstedAdChoicesOverrideValue}`),Boolean(Number(n.schibstedAdChoicesOverrideValue));const e=(null==n?void 0:n.advertisingCMPSignalEnabled)&&o===t.SE,i=(null==n?void 0:n.advertisingCMPSignalEnabled)&&o===t.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield z(n);if(!(null==n?void 0:n.enabled))return!0;const r=c();return null!==r?r:yield new Promise((e,n)=>{try{if(!G)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let n=!1;const t=t=>{n||(n=!0,e(t))},i=setTimeout(()=>{a("TCF isConsentedToAll timed out, resolving with false"),t(!1)},s);G.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),G.isConsentedToAll(n=>{clearTimeout(i),e(n)})}catch(e){n(e)}})})}},X=(n,t,i,...o)=>e(void 0,[n,t,i,...o],void 0,function*(e,n,t,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return a(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=Y(e,0,t);return(yield o())?(a(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(a(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),Z={svd:"svd",vg:"vg",godare:"godare",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},ee=e=>K.some(n=>e.startsWith(n)),ne=e=>e.startsWith("glgc_"),te=e=>!ee(e)&&!ne(e),ie=(n,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:o,pageContext:{countryCode:r}={}}=n,s=yield((...n)=>e(void 0,[...n],void 0,function*(e=V.get()){const{tcf:n,pageContext:{isMobileApp:t,countryCode:i}={}}=e;if(null==n?void 0:n.schibstedConsentToPayEnabled)return yield X(n,t,i,"glimr");const{getConsentAsync:o}=Y(n,0,i);return yield o()}))(n);if(!(null==o?void 0:o.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===t.NO?"no-sno":"se-generic")(r),l=oe(n,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),oe=(e,n)=>{const t=re();if(!t)return W;const i=((e=[])=>e.filter(ee))(t),o=((e=[])=>e.filter(ne))(t),r=((e=[],n,t)=>{var i;const o=e.filter(te);if(t&&n){const{publisher:e}=null!==(i=n.pageContext)&&void 0!==i?i:{},t=Z[e]||e;o.push(t)}return o})(t,e,n);return{geoTags:r,geofenceTags:o,weatherTags:i}},re=()=>{const e=q.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},se={get:(n,t)=>e(void 0,void 0,void 0,function*(){const e=yield fetch(n,t);if(!e.ok)throw new Error(e.statusText);return yield e.json()}),post:(n,t,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),o=yield fetch(n,{method:"POST",headers:t,body:e});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},ae="advertory:ppids-cache",de={[t.SE]:`SCH${t.SE.toUpperCase()}-EnvHash`,[t.NO]:`SCH${t.NO.toUpperCase()}-EnvHash`},le={[t.SE]:`SCH${t.SE.toUpperCase()}-UserHash`,[t.NO]:`SCH${t.NO.toUpperCase()}-UserHash`},ce={[t.SE]:`sch${t.SE}-envhash-v3`,[t.NO]:`sch${t.NO}-envhash-v3`},ue={[t.SE]:`sch${t.SE}-userhash-v3`,[t.NO]:`sch${t.NO}-userhash-v3`},pe={[t.SE]:"sdrn:schibsted.com:user",[t.NO]:"sdrn:spid.no:user"};class ve{constructor(){this.eids=[]}add(e,n){return e&&this.eids.push({id:e,source:n}),this}buildRyEids(){return this.eids.map(({id:e,source:n})=>({source:n,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:n})=>`${n},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const n=new URLSearchParams;return this.eids.slice(1).forEach(({id:t,source:i})=>{n.append(e,`${i}-${t}`)}),n}}const ge=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(n){return e(this,arguments,void 0,function*(e,n=1e4){var t,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),n)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(t=o.xandr)||void 0===t?void 0:t.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,n;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(n=this.ppid2)&&void 0!==n?n:""}}setPPIDs(e,n){this.ppid1=null!=e?e:"",this.ppid2=null!=n?n:""}},he=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(n,t){return e(this,void 0,void 0,function*(){var e,i,o,r,s,a,d,l,c,u,p;const v=q.get(ae),g=yield this.getNewPPIDs(n,t);if(this.shouldHash(v,g)){const t=null!==(e=n.hasherUrl)&&void 0!==e?e:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(s=c.environmentId)&&void 0!==s?s:"",null===(a=g.idfv)||void 0===a?void 0:a.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,n;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(n=this.ppid2)&&void 0!==n?n:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,n,t,i){this.ppid1=null!=e?e:"",this.ppid2=null!=n?n:"",this.idfv=null!=t?t:null,this.anId=null!=i?i:null}shouldHash(e,n){var t,i;if(!e)return!0;for(const o in e){if((null===(t=e[o])||void 0===t?void 0:t.plain)!==(null===(i=n[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,n,t,i){const o=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:n.userId},environmentId:{plain:e.environmentId,hashed:n.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},t?{idfv:{plain:t}}:{}),i?{anId:{plain:i}}:{});q.set(ae,o)}hashPPIDs(n,t){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield se.post(t,e,n)}catch(e){return a("Error with hashing PPIDs",e),null}})}getNewPPIDs(n,t){return e(this,arguments,void 0,function*({clientId:n,instance:t},i){const o=yield((n,t)=>e(void 0,void 0,void 0,function*(){const e=yield n.getUserId();return e?`${pe[t]}:${e}`:null}))(t,i),r=yield(n=>e(void 0,void 0,void 0,function*(){const e=yield n.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}))(t),s=window.advertory_idfv,a=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:n},userId:{plain:o},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},s?{idfv:{plain:s}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:n,trackerVersion:t,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:n.plain,trackerVersion:t.plain,userId:i.plain,environmentId:o.plain}}},fe=n=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:i}={}}=n,{getConsentAsync:o}=Y(e,0,i);if(!(yield o()))return;const r=(e=>{const n=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),t=new RegExp(`(?:(?:^|.*;)\\s*${n}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(t,"$1"))||null})("_pulse2data");return r?r.split(",")[9]:void 0}),ye=()=>{const e=window.navigator.userAgent.toLowerCase(),n=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([n])=>e.includes(n));return n?n[1]:"unknown"},be=(e,n)=>{const t=Object.entries(e);return t.reduce((t,[i,o])=>{const r=Math.abs(e[t]-n);return Math.abs(o-n)<r?i:t},t[0][0])},me=()=>{var e,n;const t=jwplayer().getContainer(),i=null!==(n=null===(e=document.getElementById(t.id))||void 0===e?void 0:e.parentElement)&&void 0!==n?n:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},we=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(n=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==n?n:"").split(",");var e,n},Oe=()=>{const e=null!==(n=we()[9])&&void 0!==n?n:null;var n;const t=(()=>{var e;return null!==(e=we()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(t)):0},Ce=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Pe=(t,i)=>e(void 0,void 0,void 0,function*(){const{tcf:o,pageContext:{publisher:r,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:t.isApp,countryCode:s,publisher:r,pageType:"front",deviceType:t.deviceType},c=(yield X(o,t.isApp,s,"video"))?"1":"0",u=yield n(),p=yield(f=s,e(void 0,void 0,void 0,function*(){const{ppid1:e,ppid2:n}=ge.getPPIDs(),{ppid1:t,ppid2:i}=he.getPPIDs(),o=(new ve).add(n,de[f]).add(e,le[f]).add(i,ce[f]).add(t,ue[f]);return yield new Promise(e=>{e(o.buildVideoEids())})}));var f;const y=yield fe({tcf:o,pageContext:l}),O=null!==(C=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==C?C:"";var C;const P=((e=1)=>be(k,Number(e.toFixed(2))))(t.instreamAspectRatio),I=(T=t.playerAspectRatio)?be($,Number(T.toFixed(2))):j;var T,_;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${m}-country_code`]:s,[`${m}-publisher`]:r,[`${m}-supply_type`]:(_=t.deviceType,_===v?g:h),[`kw_${m}-page_type`]:"collection",[`${m}-page_type`]:"collection",[`${b}-appmode`]:t.isAndroidApp?"hybrid":"notinapp",[`kw_${b}-page`]:"index",[`${b}-page`]:"index",[`${b}-screenheight`]:String(window.screen.height),[`${b}-screenwidth`]:String(window.screen.width),[`${b}-viewportheight`]:String(d),[`${b}-viewportwidth`]:String(a),[`${b}-loggedin`]:t.isUserLoggedIn?"yes":"no",[`${b}-mobile-os`]:ye(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Oe(),[`${b}-tags`]:t.tags,[`${b}-articleid`]:O,"article-id":O},yield ie(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),t.isUserPresentOnFrontPage&&t.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),t.pageAdsKeywords),Object.keys(Ce()).some(e=>e.includes(w))&&(()=>{const e=Ce(),n=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(w)).map(([e,n])=>[e.slice(3),n]));return Object.keys(n).length>0?n:void 0})()),{[i.sectionKeyword]:t.sections.split(":"),"aa-sch-cmp_advertising":c,"kw_aa-sch-cmp_advertising":c,"aa-sch-instream_player_aspectratio":P,"aa-sch-player_aspectratio":I}),u),{eids:p})}),Ie=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],Te=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],_e=["external_uid","gdpr","gdpr_consent","eids","article-id"],Se=(e,n)=>{const t=[...Ie,...n.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!t.includes(e)).map(([e,n])=>[e.includes("kw")||_e.includes(e)?e:`kw_${e}`,n]))},Ee=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Te.includes(e))),Ae=(n,t)=>e(void 0,void 0,void 0,function*(){var e,o,r,s;const a=(e=>{var n;l[e]||d(`[video] No config found for publisher "${e}"`);return null!==(n=l[e])&&void 0!==n?n:i})(n.publisher),p=(e=>{var n;return null!==(n=c[e])&&void 0!==n?n:c.aftonbladet})(n.publisher)(n.assetSection,n.isLiveStudio),v="/"===window.location.pathname,g=null===(o=null===(e=t.attributes)||void 0===e?void 0:e.id)||void 0===o?void 0:o.toString(),h=n.assetId===g,f=null!==(r=Number(n.aspectRatio))&&void 0!==r?r:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield Pe({pageAdsKeywords:n.pageAdsKeywords,tags:(b=n.tags,b?b.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(s=null==p?void 0:p.sections)&&void 0!==s?s:"",isUserLoggedIn:n.isUserLoggedIn,isUserPresentOnFrontPage:v,isInitialVideo:h,instreamAspectRatio:f,playerAspectRatio:me(),isApp:n.isApp,deviceType:n.deviceType,isAndroidApp:n.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(n.startMode)}}),je=(e,n)=>{const{siteConfig:t,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:s,playbackMethod:a}=e,{invCode:d}=i||{},l=N(i,t,n.deviceType,n.isUsedInOverlayVideoPlayer),c=((e="")=>n=>e.includes(I)?`${I}${n}`:n)(d),u=window.location.href;return{member:t.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(s,o),"se-generic-playback-method":p.get(a),"kw_se-generic-adformat":c(s)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Se(r,t)),Ee(r)),{vskippable:"0",referrer:u,vplaybackmethod:a})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},$e=n=>t=>e(void 0,void 0,void 0,function*(){const e=yield Ae(n,t);return je(e,n)});export{n as getTcfConsentKeywords,$e as getVideoAdsConfig};
|