@schibsted/advertory 3.11.3 → 3.11.5-inv-2016.2
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.d.ts +11 -1
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-uUJxqH4d.js +1 -0
- package/aftenposten/es/{events-nsk358M-.js → events-oowebcdX.js} +1 -1
- package/aftenposten/es/{index-BQHmLgLP.js → index-BMEgv2sK.js} +1 -1
- package/aftenposten/es/{index-DMMR3v6M.js → index-BNTw1sYT.js} +1 -1
- package/aftenposten/es/{index-BhUXel6E.js → index-BVQD7bB7.js} +1 -1
- package/aftenposten/es/{index-YYyuArHz.js → index-CWtqz2K6.js} +1 -1
- package/aftenposten/es/{index-2AGsrhOU.js → index-D21Mff7p.js} +1 -1
- package/aftenposten/es/{index-CX1MnfbV.js → index-DU8y7PEZ.js} +1 -1
- package/aftenposten/es/{index-DZuR56CH.js → index-Dki6M5oQ.js} +1 -1
- package/aftenposten/es/{index-CwdJv-IP.js → index-JlyHe8dR.js} +1 -1
- package/aftenposten/es/{index-96FMZFpj.js → index-qVdNkysk.js} +1 -1
- package/aftenposten/es/index.d.ts +11 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-DkUAz8uR.js → styles-3zFcjPfb.js} +1 -1
- package/aftenposten/es/{styles-XJwMYCGo.js → styles-B-UvFm2M.js} +1 -1
- package/aftenposten/es/{styles-Z_buTKY4.js → styles-BvOAIIU-.js} +1 -1
- package/aftenposten/es/{styles-BajOGSep.js → styles-CMrfLiGk.js} +1 -1
- package/aftenposten/es/{styles-ByApghoG.js → styles-CWkNVCXh.js} +1 -1
- package/aftenposten/es/{styles-DrxTexo-.js → styles-CdVw18K-.js} +1 -1
- package/aftenposten/es/{styles-B1pAN5tp.js → styles-DIAPsmhx.js} +1 -1
- package/aftenposten/es/{styles-Dd4ePNeU.js → styles-DNijisSW.js} +1 -1
- package/aftenposten/es/{styles-2mjY3-tx.js → styles-DyQMc0gU.js} +1 -1
- package/aftenposten/es/{styles-DMml0iId.js → styles-b10LSVmS.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-DzGgGohe.js +1 -0
- package/aftenpostenv2/es/{events-CAH25ehN.js → events-WcqkCTCg.js} +1 -1
- package/aftenpostenv2/es/{index-Is4Vozq7.js → index-BMufIJZk.js} +1 -1
- package/aftenpostenv2/es/{index-C76xBXMc.js → index-Bjg4Ux_b.js} +1 -1
- package/aftenpostenv2/es/{index-DBKkP3mZ.js → index-CsnlnhBg.js} +1 -1
- package/aftenpostenv2/es/{index-DsbgAvYG.js → index-D8LcLGEy.js} +1 -1
- package/aftenpostenv2/es/{index-CmM2MSxL.js → index-DD0iJIX_.js} +1 -1
- package/aftenpostenv2/es/{index-Cc5Q1hET.js → index-DDLsn_yH.js} +1 -1
- package/aftenpostenv2/es/{index-CA48RWvC.js → index-D_s86qm4.js} +1 -1
- package/aftenpostenv2/es/{index-C0Jt6WVB.js → index-L-uvZ0Y3.js} +1 -1
- package/aftenpostenv2/es/{index-Da-nCE5Q.js → index-vWBQwY1z.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +11 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-BGUpnQxa.js → styles-AdV3-ejq.js} +1 -1
- package/aftenpostenv2/es/{styles-vinaHZW-.js → styles-BNbRfZ2i.js} +1 -1
- package/aftenpostenv2/es/{styles-DLZuTOmu.js → styles-C27IyQ-S.js} +1 -1
- package/aftenpostenv2/es/{styles-y-PbNVnR.js → styles-C7f7bqyE.js} +1 -1
- package/aftenpostenv2/es/{styles-CVoQLhmu.js → styles-CZgme4Sv.js} +1 -1
- package/aftenpostenv2/es/{styles-DXriDpW2.js → styles-CgmT-lXG.js} +1 -1
- package/aftenpostenv2/es/{styles-BwRoPUyf.js → styles-Ck0r9QzO.js} +1 -1
- package/aftenpostenv2/es/{styles-DopCBGuN.js → styles-Qy0V38Jb.js} +1 -1
- package/aftenpostenv2/es/{styles-BCxVrGsE.js → styles-atDteXQW.js} +1 -1
- package/aftenpostenv2/es/{styles-CHjeG9KA.js → styles-mfGZROlP.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +11 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-DQMRJVxp.js +1 -0
- package/aftonbladet/es/{events-BWZhBudp.js → events-BmuPc2zI.js} +1 -1
- package/aftonbladet/es/{index-CCTxzCZA.js → index-B5SG_L6H.js} +1 -1
- package/aftonbladet/es/{index-67whYd86.js → index-BztYZKOs.js} +1 -1
- package/aftonbladet/es/{index-CjFytudG.js → index-CDvY3-nU.js} +1 -1
- package/aftonbladet/es/{index-C0t_DY9w.js → index-CNTqMI3C.js} +1 -1
- package/aftonbladet/es/{index-Vr5J3T7T.js → index-CQYbkVBG.js} +1 -1
- package/aftonbladet/es/{index-B73aGBHa.js → index-CeApDoWL.js} +1 -1
- package/aftonbladet/es/{index-DY4RLQFn.js → index-DJmHBBvi.js} +1 -1
- package/aftonbladet/es/{index-7l_VTBo8.js → index-Dc9x2tHL.js} +1 -1
- package/aftonbladet/es/{index-DYlLWEi5.js → index-gvqchnDu.js} +1 -1
- package/aftonbladet/es/index.d.ts +11 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-BR-QFFot.js → styles-3bkTLEJR.js} +1 -1
- package/aftonbladet/es/{styles-BBt6xRoA.js → styles-CA1lPwqE.js} +1 -1
- package/aftonbladet/es/{styles-wRanWsVU.js → styles-CW4M8OZK.js} +1 -1
- package/aftonbladet/es/{styles-DrfqVaQ1.js → styles-DCR4rAaW.js} +1 -1
- package/aftonbladet/es/{styles-eH5tXoQ1.js → styles-DEFiBi-e.js} +1 -1
- package/aftonbladet/es/{styles-CV1u5ZmX.js → styles-UFwMSzVW.js} +1 -1
- package/aftonbladet/styles.css +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-D1n0LoZT.js +1 -0
- package/aftonbladetv2/es/{events-Dm0m2xz5.js → events-BLfMFK2i.js} +1 -1
- package/aftonbladetv2/es/{index-BWtIN1Hp.js → index-B78tjZeo.js} +1 -1
- package/aftonbladetv2/es/{index-C-UROjQK.js → index-BG0ZZjLD.js} +1 -1
- package/aftonbladetv2/es/{index-DUevXbBF.js → index-BGDR-TSE.js} +1 -1
- package/aftonbladetv2/es/{index-BNuKCo9L.js → index-Ct3ncX3B.js} +1 -1
- package/aftonbladetv2/es/{index-Cy0kcT7-.js → index-D0SomnT_.js} +1 -1
- package/aftonbladetv2/es/{index-BxEb76Wq.js → index-D71qmC1b.js} +1 -1
- package/aftonbladetv2/es/{index-DDE4BFpc.js → index-diUTzHDQ.js} +1 -1
- package/aftonbladetv2/es/{index-Czz2upwo.js → index-n8iWhEqG.js} +1 -1
- package/aftonbladetv2/es/{index-Df18Bdg_.js → index-uXj6JeVW.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +11 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-BI8CBmP_.js → styles--lPU1159.js} +1 -1
- package/aftonbladetv2/es/{styles-CounPcw6.js → styles-C1H7JGL5.js} +1 -1
- package/aftonbladetv2/es/{styles-DI6w6lU1.js → styles-C4FHakLm.js} +1 -1
- package/aftonbladetv2/es/{styles-DU0SCQ4S.js → styles-CRiuUPTn.js} +1 -1
- package/aftonbladetv2/es/{styles-CLNGzypJ.js → styles-CdZakqJp.js} +1 -1
- package/aftonbladetv2/es/{styles-BmPc5pox.js → styles-D1L0dKgW.js} +1 -1
- package/aftonbladetv2/styles.css +1 -1
- package/brandmetrics/cjs/index.js +1 -1
- package/brandmetrics/es/index.js +1 -1
- package/bt/cjs/index.d.ts +11 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-CLHpDz34.js +1 -0
- package/bt/es/{events-C5Vfp2fQ.js → events-Delt2KrV.js} +1 -1
- package/bt/es/{index-DE5WEsEj.js → index-B81FhrVl.js} +1 -1
- package/bt/es/{index-BMVe-s5A.js → index-CKfRcDMQ.js} +1 -1
- package/bt/es/{index-BZOp95N7.js → index-Czha8usz.js} +1 -1
- package/bt/es/{index-Cmkvsx2v.js → index-D-pf4xC5.js} +1 -1
- package/bt/es/{index-B6dF9WO_.js → index-D2U0VzdB.js} +1 -1
- package/{sa/es/index-BSD9DKuY.js → bt/es/index-DYoky3Rt.js} +1 -1
- package/bt/es/{index-0AnQnOtJ.js → index-Dw8knlc1.js} +1 -1
- package/bt/es/{index-DgNVRtG6.js → index-jbSHJs46.js} +1 -1
- package/bt/es/{index-BlSTY7c1.js → index-qIaG2S86.js} +1 -1
- package/bt/es/index.d.ts +11 -1
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-Dk0-cpfl.js → styles-B3MVIcyC.js} +1 -1
- package/bt/es/{styles-g1ImdD-o.js → styles-BHxI0kb0.js} +1 -1
- package/bt/es/{styles-BHVNu3qz.js → styles-BJ5Lxelc.js} +1 -1
- package/{sa/es/styles-D8vjH9VI.js → bt/es/styles-C-9URtVU.js} +1 -1
- package/bt/es/{styles-CAWWfhGG.js → styles-CkBxlHD3.js} +1 -1
- package/{sa/es/styles-Brg1x2wH.js → bt/es/styles-DmTjWDHy.js} +1 -1
- package/bt/es/{styles-Bzql0eFq.js → styles-WSZpaqOS.js} +1 -1
- package/bt/es/{styles-BMSEyDSa.js → styles-XtMk880y.js} +1 -1
- package/bt/es/{styles-BkluC2fq.js → styles-f4XwYR1B.js} +1 -1
- package/btv2/es/_auto-entry_btv2-BWstbr-H.js +1 -0
- package/{omni/es/events-DW0QIrcv.js → btv2/es/events-0Vt9HCsr.js} +1 -1
- package/{omni/es/index-BAJwK4IB.js → btv2/es/index-BH01wI9o.js} +1 -1
- package/btv2/es/{index-f-rR9com.js → index-BOnzFg7P.js} +1 -1
- package/btv2/es/{index-D48PMuz6.js → index-BpFOn2mt.js} +1 -1
- package/btv2/es/{index-Dbqw164l.js → index-Bv6svwmN.js} +1 -1
- package/btv2/es/{index-DiHx3T42.js → index-CPTdWrEZ.js} +1 -1
- package/btv2/es/{index-Cpo6qPgg.js → index-CapJDq9U.js} +1 -1
- package/{sav2/es/index-DzceG9uT.js → btv2/es/index-Ch04IAuo.js} +1 -1
- package/btv2/es/{index-BKH6BCtv.js → index-DEXZ3VGk.js} +1 -1
- package/{omni/es/index-C3-alUB1.js → btv2/es/index-_4LIrNnQ.js} +1 -1
- package/btv2/es/index.d.ts +11 -1
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-CSK2XKx8.js → btv2/es/styles-BGeRf38f.js} +1 -1
- package/btv2/es/{styles-Ch1d5lRc.js → styles-Bs4gws72.js} +1 -1
- package/btv2/es/{styles-Nzp3SK5A.js → styles-C2kDu2ji.js} +1 -1
- package/btv2/es/{styles-BvV_7cLZ.js → styles-Cy9R3NuG.js} +1 -1
- package/{sav2/es/styles-DlPgkHVI.js → btv2/es/styles-DXP5sfJ3.js} +1 -1
- package/{sav2/es/styles-BWZFpTRh.js → btv2/es/styles-DqY6VzxO.js} +1 -1
- package/btv2/es/{styles-DIiYNZYT.js → styles-nISv7__T.js} +1 -1
- package/{sav2/es/styles-DYhzQUDm.js → btv2/es/styles-pNiHG2xl.js} +1 -1
- package/common/cjs/index.js +1 -1
- package/common/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-CDUVzklP.js +1 -0
- package/e24/es/{events-Bm-_jhu6.js → events-DbklY88J.js} +1 -1
- package/e24/es/{index-CLZfBC6U.js → index-0yj1kGfp.js} +1 -1
- package/e24/es/{index-DxJcyrfR.js → index-BIIgvLke.js} +1 -1
- package/e24/es/{index-BJoLL5LV.js → index-CWA9GAF9.js} +1 -1
- package/e24/es/{index--1TQpcBo.js → index-DFSHJjie.js} +1 -1
- package/e24/es/{index-REsjH2Re.js → index-Dmu0Smok.js} +1 -1
- package/e24/es/{index-QrFn7O8_.js → index-DphueMsP.js} +1 -1
- package/e24/es/{index-AQjfcM3c.js → index-DtakbwIl.js} +1 -1
- package/{tv4/es/index-Cqg_CMUC.js → e24/es/index-FB4smybo.js} +1 -1
- package/e24/es/{index-Dk7geDY3.js → index-SonRz8Q8.js} +1 -1
- package/e24/es/index.d.ts +11 -1
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-DEsADpyi.js → styles-0otZ2EAT.js} +1 -1
- package/e24/es/{styles-DmwyPDW_.js → styles-BMyJ4uVH.js} +1 -1
- package/e24/es/{styles-Df60c9_L.js → styles-BVZp3fji.js} +1 -1
- package/e24/es/{styles-DZqgEFDI.js → styles-BZQ_5fST.js} +1 -1
- package/e24/es/{styles-Cbk2ebUv.js → styles-C9BgFqwj.js} +1 -1
- package/e24/es/{styles-CGm-v9qC.js → styles-CQmnKsJY.js} +1 -1
- package/e24/es/{styles-DxBAc-_k.js → styles-CTZxuXit.js} +1 -1
- package/e24/es/{styles-c8LZEOIU.js → styles-CUZ2L_0Q.js} +1 -1
- package/{tv4/es/styles-D35l6xRE.js → e24/es/styles-CvoBEgTp.js} +1 -1
- package/e24/es/{styles-BgzTGpBD.js → styles-DKlbkCRL.js} +1 -1
- package/e24/es/{styles-1Eo78a1Q.js → styles-_Aac3pHB.js} +1 -1
- package/editory/cjs/index.js +1 -1
- package/editory/es/index.js +1 -1
- package/fotbollskanalen/cjs/index.d.ts +11 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-naFn6ehi.js +1 -0
- package/fotbollskanalen/es/{events-BhgSbP41.js → events-DAz910F7.js} +1 -1
- package/fotbollskanalen/es/{index-CnwnA1uW.js → index-Bhtd9UhV.js} +1 -1
- package/fotbollskanalen/es/{index-0aPe7UNm.js → index-DUuxtiOs.js} +1 -1
- package/fotbollskanalen/es/{index-BI-WllpS.js → index-DXhI1VFx.js} +1 -1
- package/fotbollskanalen/es/{index-ugYGuXtJ.js → index-DgrUc2Mf.js} +1 -1
- package/fotbollskanalen/es/{index-DrulIq-F.js → index-Ds4nq1_q.js} +1 -1
- package/fotbollskanalen/es/{index-CWTeIbeC.js → index-Dv6Y4NxW.js} +1 -1
- package/fotbollskanalen/es/{index-V6Dk-KSN.js → index-MAAfDiU9.js} +1 -1
- package/fotbollskanalen/es/{index-Ci_tuKru.js → index-OU1_GnMC.js} +1 -1
- package/fotbollskanalen/es/{index-iBCOj5i7.js → index-feGOYRzY.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +11 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-CNY62arv.js → styles-7jN7Zt14.js} +1 -1
- package/fotbollskanalen/es/{styles-CL0_PfIa.js → styles-CNomqwdY.js} +1 -1
- package/fotbollskanalen/es/{styles-DLnupYRq.js → styles-Cslku5A6.js} +1 -1
- package/fotbollskanalen/es/{styles-B-l1MRz6.js → styles-DEICgiky.js} +1 -1
- package/glimr/cjs/index.js +1 -1
- package/glimr/es/index.js +1 -1
- package/godt/cjs/index.d.ts +11 -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.d.ts +11 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +11 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-C16JoqJi.js +1 -0
- package/koket/es/{events-sY_c54z6.js → events-eSCdLqO-.js} +1 -1
- package/koket/es/{index-DR8XjZK7.js → index-18XopGuv.js} +1 -1
- package/{svdv2/es/index-C0p71puA.js → koket/es/index-B021A6ty.js} +1 -1
- package/koket/es/{index-CHZaJRWq.js → index-B2PiHYrK.js} +1 -1
- package/{svdv2/es/index-nGDBundo.js → koket/es/index-COmy07hD.js} +1 -1
- package/koket/es/{index-BMgG2cYO.js → index-CUhHvLJo.js} +1 -1
- package/koket/es/{index-_IE1ifiM.js → index-DNHyIek7.js} +1 -1
- package/koket/es/{index-DEbhL37L.js → index-DOT-7mAg.js} +1 -1
- package/koket/es/{index-D37SyUSU.js → index-DUX1lB70.js} +1 -1
- package/koket/es/{index-64cWa7st.js → index-gJZPc3eA.js} +1 -1
- package/koket/es/index.d.ts +11 -1
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-DaPEVuLv.js → koket/es/styles-Cf91Uj_a.js} +1 -1
- package/koket/es/{styles-BkJDlYzt.js → styles-Cthdy59c.js} +1 -1
- package/koket/es/{styles-CXHTWAnl.js → styles-D8o1kalz.js} +1 -1
- package/{svdv2/es/styles-EilP7zDa.js → koket/es/styles-DWrVNtmu.js} +1 -1
- package/minmote/cjs/index.d.ts +11 -1
- package/minmote/cjs/index.js +1 -1
- package/omni/es/_auto-entry_omni-xUxPDlJp.js +1 -0
- package/{tvnu/es/events-B84MidTn.js → omni/es/events-C9gOKOoF.js} +1 -1
- package/omni/es/{index-CQK7l158.js → index-CI7VBPtC.js} +1 -1
- package/omni/es/{index-DBhcyxKf.js → index-CPSI26eM.js} +1 -1
- package/omni/es/{index--7GkJCti.js → index-CSeSBVLD.js} +1 -1
- package/{btv2/es/index-DzCoaVdX.js → omni/es/index-CtM3QoYA.js} +1 -1
- package/omni/es/{index-BFDi5X4P.js → index-DSRgiqCm.js} +1 -1
- package/omni/es/{index-BljCOtsR.js → index-PWg3nP1K.js} +1 -1
- package/{btv2/es/index-CAuAnJFh.js → omni/es/index-_T0988jv.js} +1 -1
- package/{vgv2/es/index-DkxQHWJ7.js → omni/es/index-rU3dv0Gv.js} +1 -1
- package/omni/es/{index-C54WgxmT.js → index-sBWYMmrV.js} +1 -1
- package/omni/es/index.d.ts +11 -1
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-BSySeYkp.js → styles-DvIUAW8v.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +11 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +11 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-zA-Tx-Zn.js +1 -0
- package/sa/es/{events-4M770iBI.js → events-PwcJ0Xnv.js} +1 -1
- package/{bt/es/index--_VGP-lT.js → sa/es/index-0nDfb8Sz.js} +1 -1
- package/sa/es/{index-BbgVzHas.js → index-BUZ1FjAP.js} +1 -1
- package/sa/es/{index-BFXVxN4V.js → index-BXgipt3o.js} +1 -1
- package/{vg/es/index-Bnvz56K7.js → sa/es/index-BmfSJjLc.js} +1 -1
- package/sa/es/{index-DttGwclM.js → index-BonIzH1N.js} +1 -1
- package/{vg/es/index-CwKoZpdV.js → sa/es/index-C0W1h0a0.js} +1 -1
- package/sa/es/{index-BpmILhOH.js → index-Ce1eve-k.js} +1 -1
- package/sa/es/{index-DTweE7Qk.js → index-Djq9zm3M.js} +1 -1
- package/sa/es/{index-Cyp-Y1Kf.js → index-KSAK7mEm.js} +1 -1
- package/sa/es/index.d.ts +11 -1
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-wkZGjANQ.js → styles-BfSnLi8i.js} +1 -1
- package/{bt/es/styles-awQNXRSs.js → sa/es/styles-BwV0ldLH.js} +1 -1
- package/sa/es/{styles-DH6JtuKB.js → styles-CM9Z7epu.js} +1 -1
- package/{vg/es/styles-DJKO4Zz5.js → sa/es/styles-CgOwXkIX.js} +1 -1
- package/sa/es/{styles-BM8z4Itc.js → styles-DDAtFq96.js} +1 -1
- package/{vg/es/styles-BRhRIzNN.js → sa/es/styles-DQ8b4KFl.js} +1 -1
- package/sa/es/{styles-C9bBKGaz.js → styles-DsQk8h9d.js} +1 -1
- package/sa/es/{styles-gTP7llOj.js → styles-LSNufKHs.js} +1 -1
- package/sa/es/{styles-CP8oV9Sv.js → styles-qzMELAIs.js} +1 -1
- package/sav2/es/_auto-entry_sav2-CsPfKG8V.js +1 -0
- package/sav2/es/{events-AkFxwslb.js → events-D5imFjL3.js} +1 -1
- package/sav2/es/{index-uYxZxacu.js → index-BVy9t7jR.js} +1 -1
- package/{tvnu/es/index-0MzIilpM.js → sav2/es/index-Bv5YfABl.js} +1 -1
- package/sav2/es/{index-BI4Fg4zU.js → index-CVkZFfpD.js} +1 -1
- package/sav2/es/{index-DRQ2zSXb.js → index-CWlF_rz7.js} +1 -1
- package/sav2/es/{index-BY7cLcqC.js → index-ChGRsyz5.js} +1 -1
- package/sav2/es/{index-B5p2baAu.js → index-Ci1YEgT4.js} +1 -1
- package/{btv2/es/index-CCVgkYD2.js → sav2/es/index-DEeFttgY.js} +1 -1
- package/{vgv2/es/index-Dq6Ssp1q.js → sav2/es/index-DPVgkpqo.js} +1 -1
- package/sav2/es/{index-BiR3Wesc.js → index-haGc9z35.js} +1 -1
- package/sav2/es/index.d.ts +11 -1
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-Cfcj0IF0.js → sav2/es/styles-B17DMKcA.js} +1 -1
- package/{vgv2/es/styles-BReU5_oU.js → sav2/es/styles-BKiT0Xs6.js} +1 -1
- package/sav2/es/{styles-DU3EaGCF.js → styles-BxKJ2r4h.js} +1 -1
- package/{vgv2/es/styles-Bgou8U36.js → sav2/es/styles-CUqPuytM.js} +1 -1
- package/sav2/es/{styles-HwegnTtA.js → styles-DRhw1Zl5.js} +1 -1
- package/{vgv2/es/styles-tto1PhYu.js → sav2/es/styles-DjxjfmM5.js} +1 -1
- package/sav2/es/{styles-B0c7xMnY.js → styles-Dy40qeQV.js} +1 -1
- package/{btv2/es/styles-CK20IuR1.js → sav2/es/styles-wHcQlWSZ.js} +1 -1
- package/svd/cjs/index.d.ts +11 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-Bqmhzef1.js +1 -0
- package/svd/es/{events-CxPIQpHA.js → events-BwaMP1UY.js} +1 -1
- package/svd/es/{index-DnJD7Irl.js → index-3nOPR82k.js} +1 -1
- package/svd/es/{index-DiWRI3BG.js → index-COjNZvTC.js} +1 -1
- package/svd/es/{index-DOzDz68L.js → index-CZJQ5SDz.js} +1 -1
- package/svd/es/{index-BgrxoXUD.js → index-DTC_og_s.js} +1 -1
- package/svd/es/{index-Bb44EPDW.js → index-DTkDtGJE.js} +1 -1
- package/svd/es/{index-CJz0raDb.js → index-DVQgvpWs.js} +1 -1
- package/svd/es/{index-BYdQuH0p.js → index-DWihdJtm.js} +1 -1
- package/svd/es/{index-CBy-FXvo.js → index-Dbnx98t8.js} +1 -1
- package/svd/es/{index-C5nDMnvr.js → index-OBw39y03.js} +1 -1
- package/svd/es/index.d.ts +11 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-C4ASbQcL.js → styles-BFi5Z-7z.js} +1 -1
- package/svd/es/{styles-DprL741k.js → styles-BxvBLkWb.js} +1 -1
- package/svd/es/{styles-Cn_P8Upx.js → styles-C_MPxLGX.js} +1 -1
- package/svd/es/{styles-DHeNBhOV.js → styles-DKPJkl0i.js} +1 -1
- package/svd/es/{styles-C1vFRrtf.js → styles-DLCX22XR.js} +1 -1
- package/svd/es/{styles-B9O7YhW0.js → styles-XiVAQhP8.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-Co4stGMB.js +1 -0
- package/svdv2/es/{events-Bs_lB2Zj.js → events-DSsMj8gE.js} +1 -1
- package/svdv2/es/{index-CTRmEEtC.js → index-9P7IOlck.js} +1 -1
- package/svdv2/es/{index-JFOU3Qo6.js → index-B2ESQfoV.js} +1 -1
- package/svdv2/es/{index-DGy5mAMT.js → index-BV6vXVSX.js} +1 -1
- package/svdv2/es/{index-EAi_HX1C.js → index-CxLS3a38.js} +1 -1
- package/svdv2/es/{index-18hoSa_Z.js → index-D8VcY3YA.js} +1 -1
- package/{koket/es/index-CVGYHFLe.js → svdv2/es/index-RF_bjX6r.js} +1 -1
- package/svdv2/es/{index-CcqajLoH.js → index-TxHOq61H.js} +1 -1
- package/{koket/es/index--zzUpGvZ.js → svdv2/es/index-rOdXiXS7.js} +1 -1
- package/svdv2/es/{index-CwnNV3SO.js → index-ucS3Xg52.js} +1 -1
- package/svdv2/es/index.d.ts +11 -1
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-Cho_tTy_.js → styles-B-rml97p.js} +1 -1
- package/svdv2/es/{styles-BypgSZH7.js → styles-B7JlKFfz.js} +1 -1
- package/svdv2/es/{styles-BUNvg-Zq.js → styles-BPXDS_1w.js} +1 -1
- package/{koket/es/styles-NMk5HGRr.js → svdv2/es/styles-BnWLnP9z.js} +1 -1
- package/{koket/es/styles-D8fqtFZD.js → svdv2/es/styles-BrtNreA9.js} +1 -1
- package/svdv2/es/{styles-CDJXerDy.js → styles-NWy4FCEH.js} +1 -1
- package/svdv2/es/{styles-B44X8Ke4.js → styles-W5BUrkeE.js} +1 -1
- package/tek/cjs/index.d.ts +11 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.d.ts +11 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-Bohkf3Hd.js +1 -0
- package/tv4/es/{events-ALdo2azJ.js → events-DoIA6fQv.js} +1 -1
- package/tv4/es/{index-19x0CrM4.js → index-BHJvMXkp.js} +1 -1
- package/tv4/es/{index-YQZeirOD.js → index-BeC1q_iG.js} +1 -1
- package/tv4/es/{index-DUtbumXg.js → index-Bqy_imba.js} +1 -1
- package/tv4/es/{index-BJ-OFZoU.js → index-BubcJopf.js} +1 -1
- package/tv4/es/{index-C0NXTjHS.js → index-CEqF3V-m.js} +1 -1
- package/tv4/es/{index-DnjuWHYx.js → index-D9dehYzb.js} +1 -1
- package/tv4/es/{index-BIXVH9Qg.js → index-DWKKqeg_.js} +1 -1
- package/tv4/es/{index-Da83O537.js → index-JgXpvk9g.js} +1 -1
- package/{e24/es/index-aO98hmxc.js → tv4/es/index-rrXlLqhR.js} +1 -1
- package/tv4/es/index.d.ts +11 -1
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-CsouvYCv.js → styles-B0DEYJaF.js} +1 -1
- package/{e24/es/styles-Ay63zQHI.js → tv4/es/styles-C1QIpF43.js} +1 -1
- package/tv4/es/{styles-DvkhtY2N.js → styles-CmxTzbj1.js} +1 -1
- package/tv4/es/{styles-B4PLambZ.js → styles-DcilEZBu.js} +1 -1
- package/tvnu/cjs/index.d.ts +11 -1
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-BgFymd5q.js +1 -0
- package/{btv2/es/events-CqO4tjgE.js → tvnu/es/events-B6k-Q087.js} +1 -1
- package/tvnu/es/{index-DO7MOGCT.js → index-C6L_PvsD.js} +1 -1
- package/tvnu/es/{index-B3i2c2rJ.js → index-CeorXOR_.js} +1 -1
- package/tvnu/es/{index-D1ldgjNX.js → index-D42FXN7n.js} +1 -1
- package/tvnu/es/{index-DVN6yGmH.js → index-D46Zhwq5.js} +1 -1
- package/{sav2/es/index-D0I4g_dH.js → tvnu/es/index-D8ipEy9p.js} +1 -1
- package/tvnu/es/{index-kN9AZVOU.js → index-DQm0ZcIb.js} +1 -1
- package/tvnu/es/{index-HYm2z-NS.js → index-DTAPkyHq.js} +1 -1
- package/tvnu/es/{index-CUOWnZ5f.js → index-DZNXmsbZ.js} +1 -1
- package/{omni/es/index-hBobZKyE.js → tvnu/es/index-DsN1R6UX.js} +1 -1
- package/tvnu/es/index.d.ts +11 -1
- package/tvnu/es/index.js +1 -1
- package/tvnu/es/{styles-Cwum3Owj.js → styles-CbFkml4-.js} +1 -1
- package/tvnu/es/{styles-BQpX5NnW.js → styles-DHyEzAIG.js} +1 -1
- package/{btv2/es/styles-SZxyNHBb.js → tvnu/es/styles-LYXvzSHN.js} +1 -1
- package/types/index.d.ts +12 -2
- package/vg/cjs/index.d.ts +11 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-ye6ADZ1c.js +1 -0
- package/vg/es/{events-BMlRl2TA.js → events-DrzfYqRd.js} +1 -1
- package/{sa/es/index-B9IAULYT.js → vg/es/index-959-e3qg.js} +1 -1
- package/vg/es/{index-SN_Fq3LO.js → index-Bud28cNo.js} +1 -1
- package/vg/es/{index-9yvfBBak.js → index-CBUXuGmG.js} +1 -1
- package/{sa/es/index-7NAaY04-.js → vg/es/index-CNhVK7sr.js} +1 -1
- package/vg/es/{index-D4aM7iCc.js → index-D88N1JCZ.js} +1 -1
- package/vg/es/{index-hL2yr9B-.js → index-Dq29g_H4.js} +1 -1
- package/vg/es/{index-CV8jjm9g.js → index-Dxschdsc.js} +1 -1
- package/vg/es/{index-CdEv-_Ba.js → index-Lu05VUTn.js} +1 -1
- package/vg/es/{index-CazJyBSO.js → index-wkwls13v.js} +1 -1
- package/vg/es/index.d.ts +11 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-DewDR96Z.js → styles-AEijs-Xf.js} +1 -1
- package/vg/es/{styles-2W8zrW_d.js → styles-B5mwHG7Z.js} +1 -1
- package/vg/es/{styles-Dc-5MdxD.js → styles-Bp-3f9Uc.js} +1 -1
- package/vg/es/{styles-CJecdRNV.js → styles-BsJ_2JBp.js} +1 -1
- package/vg/es/{styles-BIdiE5kI.js → styles-Bxn7oUBb.js} +1 -1
- package/vg/es/{styles-xtDzulVQ.js → styles-BznN2kum.js} +1 -1
- package/vg/es/{styles-CPQ6JBwL.js → styles-C0CG_4df.js} +1 -1
- package/vg/es/{styles-BbYDtruG.js → styles-Co6g4zsv.js} +1 -1
- package/{sa/es/styles-8l2z2iQy.js → vg/es/styles-DVT7bQwN.js} +1 -1
- package/vg/es/{styles-DKMsmKBv.js → styles-DfpSwGDm.js} +1 -1
- package/vg/es/{styles-BtsC45RH.js → styles-DoPpPyB4.js} +1 -1
- package/vg/es/{styles-ZP8_ksRz.js → styles-E2Q2aLMc.js} +1 -1
- package/vg/es/{styles-C0Z4-JlK.js → styles-EGmPQT_2.js} +1 -1
- package/{bt/es/styles-Dm4TifGG.js → vg/es/styles-Z17Am5Ip.js} +1 -1
- package/vg/es/{styles-DB3J6WJY.js → styles-pRAxIZmi.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-CbxyFdiS.js +1 -0
- package/vgv2/es/{events-DYWBKEGL.js → events-DbpvsaHk.js} +1 -1
- package/{tvnu/es/index-Bbwxgg6T.js → vgv2/es/index-5_o_QeXm.js} +1 -1
- package/vgv2/es/{index-CToH0n2I.js → index-B2CuoWCa.js} +1 -1
- package/vgv2/es/{index-BVkn4Khn.js → index-BWGoU95D.js} +1 -1
- package/{sav2/es/index-lh-3lbOw.js → vgv2/es/index-BieKfOim.js} +1 -1
- package/vgv2/es/{index-sZQfdNcB.js → index-CAjXDCho.js} +1 -1
- package/vgv2/es/{index-C8EJP05e.js → index-DBdigGH-.js} +1 -1
- package/vgv2/es/{index-CpleIK9h.js → index-DfXQeOna.js} +1 -1
- package/vgv2/es/{index-DzrsjHEr.js → index-XTMGKTCI.js} +1 -1
- package/vgv2/es/{index-CEM4IZa_.js → index-pORFXPZc.js} +1 -1
- package/vgv2/es/index.d.ts +11 -1
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-Bpxt_77P.js → styles-B08wZLL5.js} +1 -1
- package/{tvnu/es/styles-CDP7pqtl.js → vgv2/es/styles-B2YFuU0A.js} +1 -1
- package/vgv2/es/{styles-5ulYiRAz.js → styles-BiYbp5pf.js} +1 -1
- package/vgv2/es/{styles-BhJIxiGE.js → styles-Bml10ric.js} +1 -1
- package/vgv2/es/{styles-CmQfdGTO.js → styles-C2fMhMrZ.js} +1 -1
- package/{btv2/es/styles-k-nJZx59.js → vgv2/es/styles-CH0tP6aR.js} +1 -1
- package/vgv2/es/{styles-6XzajrtV.js → styles-CXk6D9kH.js} +1 -1
- package/vgv2/es/{styles-CzMnEs9R.js → styles-CuDXHuLX.js} +1 -1
- package/vgv2/es/{styles-Djpd_82i.js → styles-DO2pdiCG.js} +1 -1
- package/vgv2/es/{styles-BTcyiQgA.js → styles-DlkPAj1_.js} +1 -1
- package/vgv2/es/{styles-CZP8huUz.js → styles-DrIggONC.js} +1 -1
- package/vgv2/es/{styles-DOeIla8H.js → styles-SzSSsJ8p.js} +1 -1
- package/vgv2/es/{styles-aSEA4R_r.js → styles-VEvvm2zE.js} +1 -1
- package/vgv2/es/{styles-CPlT7d5o.js → styles-ezUtAD3N.js} +1 -1
- package/{sav2/es/styles-6MJ1djl7.js → vgv2/es/styles-j-CYfNWA.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-BlJhj3Ql.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CMtc6wZn.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CKhFl9Xv.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Bvinn9kM.js +0 -1
- package/bt/es/_auto-entry_bt-COBJCYcZ.js +0 -1
- package/btv2/es/_auto-entry_btv2-DFy9lImU.js +0 -1
- package/e24/es/_auto-entry_e24-OdDkcuLD.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-BOm4cjto.js +0 -1
- package/koket/es/_auto-entry_koket-DANR0pLW.js +0 -1
- package/omni/es/_auto-entry_omni-CQpCf4dD.js +0 -1
- package/sa/es/_auto-entry_sa-dg8DnFX7.js +0 -1
- package/sav2/es/_auto-entry_sav2-Dz0yz_qE.js +0 -1
- package/svd/es/_auto-entry_svd-Bez2zeNh.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-CzhxIlgv.js +0 -1
- package/tv4/es/_auto-entry_tv4-B-qGumza.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-DW-waNRl.js +0 -1
- package/vg/es/_auto-entry_vg-6wil4vmi.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-ByYI3Qta.js +0 -1
package/video/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{d(i.next(e))}catch(e){o(e)}}function a(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(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 r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),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"}},r={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},o=e=>(null==e?void 0:e.parent)?[...o(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]=o(e);return r[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:o(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",P="{deviceType}",C="{position}",I="afp_",T=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),_="1-1",S="16-9",E="3-4",j="9-16",A="responsive",$={[_]:1,[S]:1.78,[j]:.56,[A]:1},k={[_]:1,[S]:1.78,[E]:1.33,[j]:.56},N=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},s=v===n?f:y,a=r.replace(P,s);return(e,n)=>{if(e===O)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(C,O).replace(/-([a-z]+)_/,"-article-"))(a);if(n&&T.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(P,s).replace(C,e)}return a.replace(C,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 r(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 o(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var s={};return i.isMergeableObject(e)&&r(e).forEach(function(t){s[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?s[r]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(r,i)(e[r],t[r],i):s[r]=n(t[r],i))}),s}function a(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(t)?a?o.arrayMerge(t,r,o):s(t,r,o):n(r,o)}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={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},H=(e,t)=>R(e,t,U),F={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:n,placements:i,appearanceConfig:r}=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==r?void 0:r.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,s=[{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"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},V=["placements","takeover","refreshConfig","editory"],B=(e,t)=>Object.assign(Object.assign({},e),t),q={editory:(e,t)=>{var n;return H(null!==(n=e)&&void 0!==n?n:{},t)},pageContext:B,pageOptions:B,tcf:B};class K{set(e){L(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n={};for(const e of V){const i=t[e];void 0===i||e in q||(n[e]=i)}Object.assign(e,n);const i=e;for(const e of Object.keys(q))Object.hasOwn(t,e)&&void 0!==t[e]&&(i[e]=q[e](i[e],t[e]))})(this.config,e)}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=H(K.DEFAULT_SITE_HANDLERS,e)}}K.DEFAULT_SITE_HANDLERS={siteEvents:F,initNativeAd:()=>{}};const W=new K;W.modifyConfigProperties.bind(W);const z=864e5,J=(()=>{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=z)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=z)=>{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}}}})(),G=["glwe_","glwet_"],Q={geofenceTags:[],geoTags:[],weatherTags:[]},Y=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 r=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),X="cmp:loaded";let Z="undefined"!=typeof window?window._tcf_:void 0,ee=!1;const te=(t,i,r)=>{const o=!!(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))(o,d))return!0;if(ee)return null;if(!Z)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=Z.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),Z.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"),Z=window._tcf_,void e(Z);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(Z=window._tcf_,e(Z)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(X,n),ee=!0,t(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(X,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)&&r===n.SE,i=(null==t?void 0:t.advertisingCMPSignalEnabled)&&r===n.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Y(t);if(!(null==t?void 0:t.enabled))return!0;const o=c();return null!==o?o:yield new Promise((e,t)=>{try{if(!Z)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);Z.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),Z.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},ne=(t,n,i,...r)=>e(void 0,[t,n,i,...r],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:r}=te(e,0,n);return(yield r())?(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)}),ie={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},re=e=>G.some(t=>e.startsWith(t)),oe=e=>e.startsWith("glgc_"),se=e=>!re(e)&&!oe(e),ae=(t,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:r,pageContext:{countryCode:o}={}}=t,s=yield((...t)=>e(void 0,[...t],void 0,function*(e=W.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled)return yield ne(t,n,i,"glimr");const{getConsentAsync:r}=te(t,0,i);return yield r()}))(t);if(!(null==r?void 0:r.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===n.NO?"no-sno":"se-generic")(o),l=de(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),de=(e,t)=>{const n=le();if(!n)return Q;const i=((e=[])=>e.filter(re))(n),r=((e=[])=>e.filter(oe))(n),o=((e=[],t,n)=>{var i;const r=e.filter(se);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=ie[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},le=()=>{const e=J.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},ce="opaque",ue=t=>e(void 0,void 0,void 0,function*(){if(t.type!==ce){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),pe={get:(t,...n)=>e(void 0,[t,...n],void 0,function*(t,n={}){var{timeout:i}=n,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(n,["timeout"]);if(i)return((t,n,i)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,r=setTimeout(()=>e.abort(),i);try{const i=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return ue(i)}finally{clearTimeout(r)}}))(t,r,i);const o=yield fetch(t,r);return ue(o)}),post:(t,n,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),r=yield fetch(t,{method:"POST",headers:n,body:e});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ve="advertory:ppids-cache",ge={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},he={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},fe={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ye={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},be={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class me{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 we=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 r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.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:""}},Oe=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,r,o,s,a,d,l,c,u,p;const v=J.get(ve),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===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",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 r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=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}}:{});J.set(ve,r)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield pe.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 r=yield((t,n)=>e(void 0,void 0,void 0,function*(){const e=yield t.getUserId();return e?`${be[n]}:${e}`:null}))(n,i),o=yield(s=n,e(void 0,void 0,void 0,function*(){const e=yield s.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var s;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:t},userId:{plain:r},environmentId:{plain:o},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},Pe=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:r}=te(e,0,i);if(!(yield r()))return;const o=(e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null})("_pulse2data");return o?o.split(",")[9]:void 0}),Ce=()=>{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"},Ie=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Te=()=>{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},_e=()=>{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},Se=()=>{const e=null!==(t=_e()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=_e()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ee=()=>Object.fromEntries(new URLSearchParams(window.location.search)),je=(n,i)=>e(void 0,void 0,void 0,function*(){const{tcf:r,pageContext:{publisher:o,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:n.isApp,countryCode:s,publisher:o,pageType:"front",deviceType:n.deviceType},c=(yield ne(r,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}=we.getPPIDs(),{ppid1:n,ppid2:i}=Oe.getPPIDs(),r=(new me).add(t,ge[f]).add(e,he[f]).add(i,fe[f]).add(n,ye[f]);return yield new Promise(e=>{e(r.buildVideoEids())})}));var f;const y=yield Pe({tcf:r,pageContext:l}),O=null!==(P=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==P?P:"";var P;const C=((e=1)=>Ie(k,Number(e.toFixed(2))))(n.instreamAspectRatio),I=(T=n.playerAspectRatio)?Ie($,Number(T.toFixed(2))):A;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`]:o,[`${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`]:Ce(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Se(),[`${b}-tags`]:n.tags,[`${b}-articleid`]:O,"article-id":O},yield ae(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),n.isUserPresentOnFrontPage&&n.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),n.pageAdsKeywords),Object.keys(Ee()).some(e=>e.includes(w))&&(()=>{const e=Ee(),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":C,"aa-sch-player_aspectratio":I}),u),{eids:p})}),Ae=["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"],$e=["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"],ke=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ne=(e,t)=>{const n=[...Ae,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||ke.includes(e)?e:`kw_${e}`,t]))},xe=e=>Object.fromEntries(Object.entries(e).filter(([e])=>$e.includes(e))),Me=(t,n)=>e(void 0,void 0,void 0,function*(){var e,r,o,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===(r=null===(e=n.attributes)||void 0===e?void 0:e.id)||void 0===r?void 0:r.toString(),h=t.assetId===g,f=null!==(o=Number(t.aspectRatio))&&void 0!==o?o:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield je({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:Te(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),De=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,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,r),"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({},Ne(o,n)),xe(o)),{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({},o),{"se-generic-adformat":c("pause")})}}}},Re=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield Me(t,n);return De(e,t)});export{t as getTcfConsentKeywords,Re as getVideoAdsConfig};
|
|
1
|
+
function e(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{d(i.next(e))}catch(e){o(e)}}function a(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(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 r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),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"}},r={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},o=e=>(null==e?void 0:e.parent)?[...o(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]=o(e);return r[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:o(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",j="9-16",A="responsive",$={[_]:1,[S]:1.78,[j]:.56,[A]:1},k={[_]:1,[S]:1.78,[E]:1.33,[j]:.56},N=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},s=v===n?f:y,a=r.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&&o?o: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 r(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 o(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var s={};return i.isMergeableObject(e)&&r(e).forEach(function(t){s[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?s[r]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(r,i)(e[r],t[r],i):s[r]=n(t[r],i))}),s}function a(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(t)?a?o.arrayMerge(t,r,o):s(t,r,o):n(r,o)}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={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},H=(e,t)=>R(e,t,U),F=(e,t)=>Object.assign(Object.assign({},e),t),L=(e,t)=>{var n;return H(null!==(n=e)&&void 0!==n?n:{},t)},V={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},B=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=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==r?void 0:r.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,s=[{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"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},q={placements:(e,t)=>t,takeover:L,refreshConfig:F,editory:L,appearanceConfig:L,pageContext:F,pageOptions:F,tcf:F};class K{set(e){B(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(q)){const i=t[e];void 0!==i&&(n[e]=q[e](n[e],i))}})(this.config,e)}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=H(K.DEFAULT_SITE_HANDLERS,e)}}K.DEFAULT_SITE_HANDLERS={siteEvents:V,initNativeAd:()=>{}};const W=new K;W.modifyConfigProperties.bind(W);const z=864e5,J=(()=>{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=z)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=z)=>{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}}}})(),G=["glwe_","glwet_"],Q={geofenceTags:[],geoTags:[],weatherTags:[]},Y=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 r=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),X="cmp:loaded";let Z="undefined"!=typeof window?window._tcf_:void 0,ee=!1;const te=(t,i,r)=>{const o=!!(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))(o,d))return!0;if(ee)return null;if(!Z)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=Z.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),Z.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"),Z=window._tcf_,void e(Z);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(Z=window._tcf_,e(Z)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(X,n),ee=!0,t(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(X,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)&&r===n.SE,i=(null==t?void 0:t.advertisingCMPSignalEnabled)&&r===n.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Y(t);if(!(null==t?void 0:t.enabled))return!0;const o=c();return null!==o?o:yield new Promise((e,t)=>{try{if(!Z)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);Z.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),Z.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},ne=(t,n,i,...r)=>e(void 0,[t,n,i,...r],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:r}=te(e,0,n);return(yield r())?(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)}),ie={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},re=e=>G.some(t=>e.startsWith(t)),oe=e=>e.startsWith("glgc_"),se=e=>!re(e)&&!oe(e),ae=(t,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:r,pageContext:{countryCode:o}={}}=t,s=yield((...t)=>e(void 0,[...t],void 0,function*(e=W.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled)return yield ne(t,n,i,"glimr");const{getConsentAsync:r}=te(t,0,i);return yield r()}))(t);if(!(null==r?void 0:r.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===n.NO?"no-sno":"se-generic")(o),l=de(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),de=(e,t)=>{const n=le();if(!n)return Q;const i=((e=[])=>e.filter(re))(n),r=((e=[])=>e.filter(oe))(n),o=((e=[],t,n)=>{var i;const r=e.filter(se);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=ie[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},le=()=>{const e=J.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},ce="opaque",ue=t=>e(void 0,void 0,void 0,function*(){if(t.type!==ce){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),pe={get:(t,...n)=>e(void 0,[t,...n],void 0,function*(t,n={}){var{timeout:i}=n,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(n,["timeout"]);if(i)return((t,n,i)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,r=setTimeout(()=>e.abort(),i);try{const i=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return ue(i)}finally{clearTimeout(r)}}))(t,r,i);const o=yield fetch(t,r);return ue(o)}),post:(t,n,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),r=yield fetch(t,{method:"POST",headers:n,body:e});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ve="advertory:ppids-cache",ge={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},he={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},fe={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ye={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},be={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class me{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 we=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 r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.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:""}},Oe=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,r,o,s,a,d,l,c,u,p;const v=J.get(ve),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===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",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 r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=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}}:{});J.set(ve,r)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield pe.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 r=yield((t,n)=>e(void 0,void 0,void 0,function*(){const e=yield t.getUserId();return e?`${be[n]}:${e}`:null}))(n,i),o=yield(s=n,e(void 0,void 0,void 0,function*(){const e=yield s.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var s;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:t},userId:{plain:r},environmentId:{plain:o},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},Ce=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:r}=te(e,0,i);if(!(yield r()))return;const o=(e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null})("_pulse2data");return o?o.split(",")[9]:void 0}),Pe=()=>{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"},Ie=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Te=()=>{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},_e=()=>{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},Se=()=>{const e=null!==(t=_e()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=_e()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ee=()=>Object.fromEntries(new URLSearchParams(window.location.search)),je=(n,i)=>e(void 0,void 0,void 0,function*(){const{tcf:r,pageContext:{publisher:o,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:n.isApp,countryCode:s,publisher:o,pageType:"front",deviceType:n.deviceType},c=(yield ne(r,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}=we.getPPIDs(),{ppid1:n,ppid2:i}=Oe.getPPIDs(),r=(new me).add(t,ge[f]).add(e,he[f]).add(i,fe[f]).add(n,ye[f]);return yield new Promise(e=>{e(r.buildVideoEids())})}));var f;const y=yield Ce({tcf:r,pageContext:l}),O=null!==(C=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==C?C:"";var C;const P=((e=1)=>Ie(k,Number(e.toFixed(2))))(n.instreamAspectRatio),I=(T=n.playerAspectRatio)?Ie($,Number(T.toFixed(2))):A;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`]:o,[`${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`]:Pe(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Se(),[`${b}-tags`]:n.tags,[`${b}-articleid`]:O,"article-id":O},yield ae(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),n.isUserPresentOnFrontPage&&n.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),n.pageAdsKeywords),Object.keys(Ee()).some(e=>e.includes(w))&&(()=>{const e=Ee(),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})}),Ae=["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"],$e=["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"],ke=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ne=(e,t)=>{const n=[...Ae,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||ke.includes(e)?e:`kw_${e}`,t]))},xe=e=>Object.fromEntries(Object.entries(e).filter(([e])=>$e.includes(e))),Me=(t,n)=>e(void 0,void 0,void 0,function*(){var e,r,o,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===(r=null===(e=n.attributes)||void 0===e?void 0:e.id)||void 0===r?void 0:r.toString(),h=t.assetId===g,f=null!==(o=Number(t.aspectRatio))&&void 0!==o?o:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield je({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:Te(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),De=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,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,r),"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({},Ne(o,n)),xe(o)),{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({},o),{"se-generic-adformat":c("pause")})}}}},Re=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield Me(t,n);return De(e,t)});export{t as getTcfConsentKeywords,Re as getVideoAdsConfig};
|