@schibsted/advertory 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ad-native/cjs/index.d.ts +5 -2
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.d.ts +5 -2
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.d.ts +5 -2
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-DW5FiNkn.js +1 -0
- package/aftenposten/es/{events-Djfqvmhv.js → events-fVBpRpKp.js} +1 -1
- package/aftenposten/es/{index-BEjmAztd.js → index-ARv1-rtx.js} +1 -1
- package/aftenposten/es/{index-_4wK0wyK.js → index-BXrBgTr1.js} +1 -1
- package/{aftonbladet/es/index-Cs0726uq.js → aftenposten/es/index-BhGQ8Eyk.js} +1 -1
- package/aftenposten/es/{index-CgKKFhy_.js → index-C1WCKnqQ.js} +1 -1
- package/aftenposten/es/{index-CBpU2KIc.js → index-C5o-U2Uo.js} +1 -1
- package/aftenposten/es/{index-PcXZJF3P.js → index-CreFCPqz.js} +1 -1
- package/aftenposten/es/{index-nMvOsVPJ.js → index-dUOxkg1V.js} +1 -1
- package/aftenposten/es/{index-CeWsNDaB.js → index-gtkeAVQA.js} +1 -1
- package/aftenposten/es/index.d.ts +5 -2
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-C6tcHY54.js → styles-7A2DgzY_.js} +1 -1
- package/aftenposten/es/{styles-Bt2UC0GP.js → styles-B2-x60Zm.js} +1 -1
- package/aftenposten/es/{styles-BLJeUwVp.js → styles-BTHy8T1_.js} +1 -1
- package/aftenposten/es/{styles-BOm0-pac.js → styles-BcC2u-rj.js} +1 -1
- package/aftenposten/es/{styles-EPnQvn0h.js → styles-CTFge8Rd.js} +1 -1
- package/aftenposten/es/{styles-CQPBQsiN.js → styles-CVEYbRiK.js} +1 -1
- package/aftenposten/es/{styles-CjsPf5Mm.js → styles-DAt6A-jH.js} +1 -1
- package/aftenposten/es/{styles-DGYj8Sg1.js → styles-JUtz3uDc.js} +1 -1
- package/aftenposten/es/{styles-lK6QfW3y.js → styles-UNM3bDL_.js} +1 -1
- package/aftenposten/es/{styles-Bpctvf2X.js → styles-ldyCER6l.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-hyLeQfFd.js +1 -0
- package/aftenpostenv2/es/{events-CndpkhSn.js → events-DBcyIW5o.js} +1 -1
- package/aftenpostenv2/es/{index-CYFeiwMS.js → index-BHAhFA1g.js} +1 -1
- package/aftenpostenv2/es/{index-CWLSVMOe.js → index-Bm-puEV7.js} +1 -1
- package/aftenpostenv2/es/{index-JAZb5FrS.js → index-BmyR2cZz.js} +1 -1
- package/aftenpostenv2/es/{index-_j6GaOP_.js → index-CMshwIeO.js} +1 -1
- package/aftenpostenv2/es/{index-DubyXeHc.js → index-DMDg7NLz.js} +1 -1
- package/{aftonbladetv2/es/index-CtT25tc8.js → aftenpostenv2/es/index-DMrkuCeC.js} +1 -1
- package/aftenpostenv2/es/{index-B_YRSCxb.js → index-DjTEblmv.js} +1 -1
- package/aftenpostenv2/es/{index-Rtj84XW5.js → index-Dp5dKdq0.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +5 -2
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-iVONP82z.js → styles-BCNkSPy_.js} +1 -1
- package/aftenpostenv2/es/{styles-3FeDMacn.js → styles-BTyOhgPK.js} +1 -1
- package/aftenpostenv2/es/{styles-yDLhwGY2.js → styles-BgUd0fzw.js} +1 -1
- package/aftenpostenv2/es/{styles-B3sh40Mg.js → styles-CF9xNxEB.js} +1 -1
- package/aftenpostenv2/es/{styles-1jFCjqut.js → styles-CLKIpD49.js} +1 -1
- package/aftenpostenv2/es/{styles-CcRxjZv8.js → styles-CPXP0KtI.js} +1 -1
- package/aftenpostenv2/es/{styles-CTM6Bmhq.js → styles-D6qGT_Ww.js} +1 -1
- package/aftenpostenv2/es/{styles-kN89OYoQ.js → styles-DiSgKUYB.js} +1 -1
- package/aftenpostenv2/es/{styles-DVmlwU9r.js → styles-TYM8SJ5E.js} +1 -1
- package/aftenpostenv2/es/{styles-jW7kpPuM.js → styles-citddene.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +5 -2
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-aF3r2-IF.js +1 -0
- package/aftonbladet/es/{events-FfqW4onK.js → events-C-ojFJke.js} +1 -1
- package/aftonbladet/es/{index-DJOCCLbR.js → index-B4MXTwFf.js} +1 -1
- package/aftonbladet/es/{index-4WX1LTEE.js → index-BCuVg1CU.js} +1 -1
- package/aftonbladet/es/{index-BNwdb5kX.js → index-BQefKLSG.js} +1 -1
- package/aftonbladet/es/{index-CtjlVj8c.js → index-C_UCEKIZ.js} +1 -1
- package/{aftenposten/es/index-BYFTKDzx.js → aftonbladet/es/index-Cymiebzg.js} +1 -1
- package/aftonbladet/es/{index-DWLq3UtD.js → index-D4NWG_wJ.js} +1 -1
- package/aftonbladet/es/{index-Bbx3cUtD.js → index-D4bY4K5D.js} +1 -1
- package/aftonbladet/es/{index-BxM5dlcJ.js → index-Ickiqfsh.js} +1 -1
- package/aftonbladet/es/index.d.ts +5 -2
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-CKHwolqP.js → styles-B94Gha8S.js} +1 -1
- package/aftonbladet/es/{styles-DuW_-Qiu.js → styles-DcXaCvkL.js} +1 -1
- package/aftonbladet/es/{styles-BRj5Pm1h.js → styles-Dn-HNFHX.js} +1 -1
- package/aftonbladet/es/{styles-DOcJFO_g.js → styles-jy9TQ3Oh.js} +1 -1
- package/aftonbladet/es/{styles-Cc_VBiUa.js → styles-pjfyqT3B.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-BE-eohdT.js +1 -0
- package/aftonbladetv2/es/{events-BGNPwius.js → events-B2owop2t.js} +1 -1
- package/aftonbladetv2/es/index-5f2ZT_Ju.js +1 -0
- package/aftonbladetv2/es/{index-DGrkYg33.js → index-B4PxxF90.js} +1 -1
- package/{aftenpostenv2/es/index-B_oEucht.js → aftonbladetv2/es/index-BAxkIAm0.js} +1 -1
- package/aftonbladetv2/es/{index-7JdG7yFN.js → index-Bv1zLlCA.js} +1 -1
- package/aftonbladetv2/es/{index-BMaA1Spt.js → index-CZwdfS0S.js} +1 -1
- package/aftonbladetv2/es/{index-DclYS9iH.js → index-CvGS_z9U.js} +1 -1
- package/aftonbladetv2/es/{index-DsXHlqiw.js → index-GrP4rish.js} +1 -1
- package/aftonbladetv2/es/{index-C-f5W8w-.js → index-jdoEKV4R.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +5 -2
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-ztp40LNv.js → styles-C1XQILhX.js} +1 -1
- package/aftonbladetv2/es/{styles-CIeejDSp.js → styles-C7b_lBln.js} +1 -1
- package/aftonbladetv2/es/{styles-D-FXcaqa.js → styles-D6KzrjWN.js} +1 -1
- package/aftonbladetv2/es/{styles-DXa8dXuS.js → styles-PhXU7exd.js} +1 -1
- package/aftonbladetv2/es/{styles-PC2UmnHJ.js → styles-q8f8uuGU.js} +1 -1
- package/brandmetrics/cjs/index.js +1 -1
- package/brandmetrics/es/index.js +1 -1
- package/bt/cjs/index.d.ts +5 -2
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-z9Kg1rXY.js +1 -0
- package/bt/es/{events-CA3YRpvp.js → events-C4YIlyQT.js} +1 -1
- package/bt/es/{index-C9DASDNY.js → index-BocjnLWK.js} +1 -1
- package/bt/es/{index-CfKBejm1.js → index-By90m-Nt.js} +1 -1
- package/bt/es/{index-Ds4bW_9u.js → index-CSaa9bDY.js} +1 -1
- package/{sa/es/index-CFP8H4af.js → bt/es/index-ClAE8apF.js} +1 -1
- package/bt/es/{index-mi7RH9av.js → index-D8h9j3OL.js} +1 -1
- package/{sa/es/index-BoSR75BB.js → bt/es/index-DU-GmW-W.js} +1 -1
- package/bt/es/{index-D_vlG00c.js → index-DY9BE7oQ.js} +1 -1
- package/bt/es/{index-B6lsxBQR.js → index-GSmkTDbb.js} +1 -1
- package/bt/es/index.d.ts +5 -2
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-DBbJ5wGK.js → styles-1oD0v0OI.js} +1 -1
- package/bt/es/{styles-Crc0_1WT.js → styles-8BQ-HMKy.js} +1 -1
- package/{sa/es/styles-DXXIe2QG.js → bt/es/styles-BoN1lBN6.js} +1 -1
- package/{vg/es/styles-DPa3-Ig9.js → bt/es/styles-CWamUn94.js} +1 -1
- package/{vg/es/styles-HcRDb4-y.js → bt/es/styles-CzA-WXl0.js} +1 -1
- package/bt/es/{styles-DaRuPKss.js → styles-DBUanVZD.js} +1 -1
- package/bt/es/{styles-D5a6lNis.js → styles-DenbLlNL.js} +1 -1
- package/bt/es/{styles-D9d8Cdnp.js → styles-f0I0kE9C.js} +1 -1
- package/{sa/es/styles-ByPIiUBY.js → bt/es/styles-vQXEOJfP.js} +1 -1
- package/btv2/es/_auto-entry_btv2-CO2vH-Za.js +1 -0
- package/btv2/es/{events-nvcCEZqq.js → events-Cfcjr6pn.js} +1 -1
- package/btv2/es/{index-CO9bqR3D.js → index-A-i4gtil.js} +1 -1
- package/btv2/es/{index-DCQjdWE2.js → index-BER4wRvz.js} +1 -1
- package/btv2/es/{index-CH4mbydt.js → index-BFX495WH.js} +1 -1
- package/btv2/es/{index-Bb_ltY--.js → index-BJMlGlGU.js} +1 -1
- package/btv2/es/{index-DtC7HUrt.js → index-Coz_46Aj.js} +1 -1
- package/btv2/es/{index-DBTavN3i.js → index-Cuf5ReML.js} +1 -1
- package/btv2/es/{index-YoJh-uAw.js → index-D8wy00WJ.js} +1 -1
- package/btv2/es/{index-Dc1WxnvN.js → index-DQD_DZhI.js} +1 -1
- package/btv2/es/index.d.ts +5 -2
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-DEhkap7F.js → btv2/es/styles-BJ9HJy3v.js} +1 -1
- package/{sav2/es/styles-CnyuqiNE.js → btv2/es/styles-CL9NzBNe.js} +1 -1
- package/{vgv2/es/styles-laGMxCg-.js → btv2/es/styles-CQZFlgyE.js} +1 -1
- package/{vgv2/es/styles-eK9B_gwr.js → btv2/es/styles-D8WA8aad.js} +1 -1
- package/{sav2/es/styles-BWDDPnmK.js → btv2/es/styles-PvrlMo2p.js} +1 -1
- package/btv2/es/{styles-CHNp59OO.js → styles-WNotEG6z.js} +1 -1
- package/btv2/es/{styles-7tdU6_5z.js → styles-Y6apvbzI.js} +1 -1
- package/btv2/es/{styles-gccX6iHh.js → styles-tT473SAS.js} +1 -1
- package/common/cjs/index.js +1 -1
- package/common/es/index.js +1 -1
- package/dr-edition/cjs/index.d.ts +5 -2
- package/dr-edition/es/index.d.ts +5 -2
- package/e24/es/_auto-entry_e24-BU2OrpYX.js +1 -0
- package/e24/es/{events-em44BUfv.js → events-C_QROQjB.js} +1 -1
- package/e24/es/{index-D_sYdHQP.js → index--tM80_Xl.js} +1 -1
- package/e24/es/{index-BSpizElz.js → index-BWDJPTDB.js} +1 -1
- package/e24/es/{index-B24bkIcI.js → index-BWfP8QBT.js} +1 -1
- package/e24/es/{index-C9G2urqf.js → index-BiEZKwx8.js} +1 -1
- package/{svd/es/index-h6Bzcdoy.js → e24/es/index-D79AVdu2.js} +1 -1
- package/e24/es/{index-Dh9HbOwe.js → index-DWCdYl06.js} +1 -1
- package/e24/es/{index-IbhHnJx4.js → index-Ds8Z94Ik.js} +1 -1
- package/e24/es/{index-BowvVP4w.js → index-aKSYtCgh.js} +1 -1
- package/e24/es/index.d.ts +5 -2
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-DWz69iBs.js → styles-050t8UH_.js} +1 -1
- package/e24/es/{styles-DZuy0mfh.js → styles-Bn0I9HO2.js} +1 -1
- package/{tv4/es/styles-Cp2FvVtO.js → e24/es/styles-Bnrg6oWv.js} +1 -1
- package/e24/es/{styles-cRKv7sg0.js → styles-CJCDInuA.js} +1 -1
- package/e24/es/{styles-CMZPVch5.js → styles-CKWdW_ML.js} +1 -1
- package/e24/es/{styles-CophI7fE.js → styles-CTJnU9Eh.js} +1 -1
- package/e24/es/{styles-CKqmN_4y.js → styles-ClCgb9T-.js} +1 -1
- package/e24/es/{styles-JhEc7HC2.js → styles-CldoQzlZ.js} +1 -1
- package/e24/es/{styles-CodlP39y.js → styles-DMLUkslt.js} +1 -1
- package/e24/es/{styles-D5paQVK2.js → styles-Di6w4JZM.js} +1 -1
- package/e24/es/{styles-Cg88eyjZ.js → styles-wsXemYjg.js} +1 -1
- package/fotbollskanalen/cjs/index.d.ts +5 -2
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DlZt4ga-.js +1 -0
- package/fotbollskanalen/es/{events-PLuiQnF7.js → events-DCiBIHRx.js} +1 -1
- package/fotbollskanalen/es/{index-PSmgZEW6.js → index-4VxJTVyO.js} +1 -1
- package/fotbollskanalen/es/{index-BwA9wqyq.js → index-B9ktfSq1.js} +1 -1
- package/fotbollskanalen/es/{index-Dp1HC5I1.js → index-BXxoRFTH.js} +1 -1
- package/fotbollskanalen/es/{index-DyH5dIHK.js → index-BYqdvP3u.js} +1 -1
- package/fotbollskanalen/es/{index-Ehw2Kpl3.js → index-CHctAKMZ.js} +1 -1
- package/fotbollskanalen/es/{index-Bxj-o644.js → index-CMGzQzNY.js} +1 -1
- package/fotbollskanalen/es/{index-Cb1SwEs8.js → index-Cgpaf7GJ.js} +1 -1
- package/fotbollskanalen/es/{index-ChypEeNl.js → index-DdG9rSVp.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +5 -2
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-C3R9fizq.js → styles-DH8KBCpz.js} +1 -1
- package/glimr/cjs/index.js +1 -1
- package/glimr/es/index.js +1 -1
- package/godare/cjs/index.d.ts +5 -2
- package/godare/cjs/index.js +1 -1
- package/godt/cjs/index.d.ts +5 -2
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +5 -2
- package/kilkaya/es/index.d.ts +5 -2
- package/klart/cjs/index.d.ts +5 -2
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +5 -2
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-B1VvKHFS.js +1 -0
- package/koket/es/{events-CzsjR_MV.js → events-CqmCLZYf.js} +1 -1
- package/koket/es/{index-BRZQdk8p.js → index-B3HB2JAb.js} +1 -1
- package/koket/es/{index-GRCdBgCV.js → index-BuGuFSjO.js} +1 -1
- package/{svdv2/es/index-B9f-toqF.js → koket/es/index-CPR8OqrE.js} +1 -1
- package/koket/es/{index-CiQAYWNj.js → index-Cq9AfCdO.js} +1 -1
- package/koket/es/{index-Dj18FjMk.js → index-D2xTCGIA.js} +1 -1
- package/koket/es/{index-BDCnUC2s.js → index-DI3AHGgv.js} +1 -1
- package/koket/es/{index-P--7EjDD.js → index-DT_GPwwm.js} +1 -1
- package/koket/es/{index-CZmk3t6g.js → index-DsRR33Ql.js} +1 -1
- package/koket/es/index.d.ts +5 -2
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-BRf_hpwP.js → koket/es/styles-C8rvAFp5.js} +1 -1
- package/minmote/cjs/index.d.ts +5 -2
- package/minmote/cjs/index.js +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +5 -2
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +5 -2
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-Ci2HwDAd.js +1 -0
- package/sa/es/{events-WBCBTZjF.js → events-CbRAeoLr.js} +1 -1
- package/sa/es/{index-DzEpOvYS.js → index-0L2g2PsN.js} +1 -1
- package/sa/es/{index-DLfELXlD.js → index-27f28to-.js} +1 -1
- package/sa/es/{index-CXWVT_nG.js → index-BKwXq-Lh.js} +1 -1
- package/sa/es/{index-CrY6ka1r.js → index-C_YVEbft.js} +1 -1
- package/sa/es/{index-DJ1FaFc_.js → index-DPOOmTvs.js} +1 -1
- package/{bt/es/index-Bf8N98sz.js → sa/es/index-DQLuNVj9.js} +1 -1
- package/{bt/es/index-Y0bNHpHd.js → sa/es/index-Dgp7HdYo.js} +1 -1
- package/sa/es/{index-CizwqGwp.js → index-rYTowG8e.js} +1 -1
- package/sa/es/index.d.ts +5 -2
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-MSfXGQPh.js → styles-BxuIMux6.js} +1 -1
- package/{vg/es/styles-BuXFVgDs.js → sa/es/styles-CCPB7DAa.js} +1 -1
- package/sa/es/{styles-cY3tb9kS.js → styles-Cnifwgf4.js} +1 -1
- package/sa/es/{styles-ZuIe8hPt.js → styles-D6FcHOuY.js} +1 -1
- package/{bt/es/styles-Btg_p1x7.js → sa/es/styles-DJgebMIx.js} +1 -1
- package/{vg/es/styles-CYLKYYNm.js → sa/es/styles-DVfxrneE.js} +1 -1
- package/{bt/es/styles-CuCBLxM3.js → sa/es/styles-Dr92Rwhf.js} +1 -1
- package/sa/es/{styles-BfHw4SN0.js → styles-PUjYMhLK.js} +1 -1
- package/sa/es/{styles-DfK0973d.js → styles-aWCVUC-K.js} +1 -1
- package/sav2/es/_auto-entry_sav2-WxpOB1lG.js +1 -0
- package/sav2/es/{events-BNNYKSl_.js → events-Cgh2BErE.js} +1 -1
- package/sav2/es/{index-Ba5T08yN.js → index-B-FBdm8J.js} +1 -1
- package/sav2/es/{index-Wl29K0Nx.js → index-B8iKj6s3.js} +1 -1
- package/sav2/es/{index-AkCXsWbF.js → index-Bf-B7mJM.js} +1 -1
- package/sav2/es/{index-B1fhSS-l.js → index-C0oOXck1.js} +1 -1
- package/sav2/es/{index-BqPfD7Ip.js → index-CIHKogVB.js} +1 -1
- package/sav2/es/{index-C7L5OOos.js → index-ClDyI3TB.js} +1 -1
- package/sav2/es/{index-CAn6DhEJ.js → index-DtWnHPfg.js} +1 -1
- package/sav2/es/{index-DHuWz9k2.js → index-Dy3-DOAm.js} +1 -1
- package/sav2/es/index.d.ts +5 -2
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-C_2P0tPt.js → sav2/es/styles-5jpCyocI.js} +1 -1
- package/{vgv2/es/styles--cDFm4qw.js → sav2/es/styles-B0-qbUgf.js} +1 -1
- package/sav2/es/{styles-BcgDoMe9.js → styles-BMHPVzpc.js} +1 -1
- package/sav2/es/{styles-C6t6X01E.js → styles-B_352IFQ.js} +1 -1
- package/{vgv2/es/styles-C8vJ3VCb.js → sav2/es/styles-CR7rb1m6.js} +1 -1
- package/sav2/es/{styles-BSdCPpIT.js → styles-CSqNiKKs.js} +1 -1
- package/{btv2/es/styles-Il_rUi-I.js → sav2/es/styles-CUhD2yOb.js} +1 -1
- package/sav2/es/{styles-DkG4K21y.js → styles-GPrywa-V.js} +1 -1
- package/svd/cjs/index.d.ts +5 -2
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-CgYZh9cQ.js +1 -0
- package/svd/es/{events-Dc74p5db.js → events-DliFMGvx.js} +1 -1
- package/svd/es/{index-NmbRNRUw.js → index-7LvlQIj_.js} +1 -1
- package/svd/es/{index-xY6BCab4.js → index-BqdLvpke.js} +1 -1
- package/svd/es/{index-CYvPoDH_.js → index-Br9oB5Ij.js} +1 -1
- package/svd/es/{index-CCSmUghY.js → index-C3MnSDVk.js} +1 -1
- package/svd/es/{index-jEszNFTZ.js → index-CWEA4knb.js} +1 -1
- package/{tv4/es/index-cnPU_J5b.js → svd/es/index-CwcLrXL2.js} +1 -1
- package/svd/es/{index-CaIQZBO-.js → index-D_wcmp4Z.js} +1 -1
- package/{tv4/es/index-C54e5MHM.js → svd/es/index-yvJXogvN.js} +1 -1
- package/svd/es/index.d.ts +5 -2
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-CWVyawaj.js → styles-0pv_N2tO.js} +1 -1
- package/svd/es/{styles-C-Cr12Op.js → styles-Af4IP1WF.js} +1 -1
- package/svd/es/{styles-YIV9nwKM.js → styles-CESomLE9.js} +1 -1
- package/svd/es/{styles-Ds1RXJqP.js → styles-CluLvl8D.js} +1 -1
- package/svd/es/{styles-C4Xo9Bvf.js → styles-Ctd5RF_4.js} +1 -1
- package/svd/es/{styles-BYbxmJ40.js → styles-J9wd-ppq.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-xZkoM4eO.js +1 -0
- package/svdv2/es/{events-Dt_m5TPf.js → events-pYagBxFV.js} +1 -1
- package/{koket/es/index-CO57-9Au.js → svdv2/es/index-BI-oQMfT.js} +1 -1
- package/svdv2/es/{index-DmG1v1CA.js → index-DDNx9FnV.js} +1 -1
- package/svdv2/es/{index-J4az83QG.js → index-DW_OzOXa.js} +1 -1
- package/svdv2/es/{index-BSZZi5GI.js → index-Du0VgO1Y.js} +1 -1
- package/svdv2/es/{index-BYngheL6.js → index-MRCnkXO4.js} +1 -1
- package/svdv2/es/{index-BaDP-cad.js → index-_dx9ZTt8.js} +1 -1
- package/svdv2/es/{index-DYD6E_tC.js → index-fewi4Guw.js} +1 -1
- package/svdv2/es/{index-CBfxDGKY.js → index-sAWEiLve.js} +1 -1
- package/svdv2/es/index.d.ts +5 -2
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles--7f0Nr3w.js → svdv2/es/styles-CIENRrhO.js} +1 -1
- package/svdv2/es/{styles-BoGBiTj0.js → styles-DvG5GaKF.js} +1 -1
- package/svdv2/es/{styles-LXalyj75.js → styles-DwHOEo1T.js} +1 -1
- package/svdv2/es/{styles-CXO8wiFt.js → styles-fZrz5WHd.js} +1 -1
- package/svdv2/es/{styles-C-b4aFA7.js → styles-wYd2KvmX.js} +1 -1
- package/svdv2/es/{styles-DF2PxzZE.js → styles-yQntoPdr.js} +1 -1
- package/tek/cjs/index.d.ts +5 -2
- package/tek/cjs/index.js +1 -1
- package/tracker/cjs/index.d.ts +5 -2
- package/tracker/es/index.d.ts +5 -2
- package/tv4/cjs/index.d.ts +5 -2
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-BD_PtBev.js +1 -0
- package/tv4/es/{events-TfOtE8Rp.js → events-D7CQP5ST.js} +1 -1
- package/tv4/es/{index-Hoeb7sme.js → index-9HDVqv93.js} +1 -1
- package/tv4/es/{index-DyrFopn0.js → index-BSLPAr3V.js} +1 -1
- package/{e24/es/index-BkgL8ip0.js → tv4/es/index-CfJ0kV8y.js} +1 -1
- package/tv4/es/{index-BLXhEkKV.js → index-CuVyVYya.js} +1 -1
- package/{svd/es/index-D7A5kDQO.js → tv4/es/index-D-SE3PAG.js} +1 -1
- package/tv4/es/{index-C8Quh3hJ.js → index-DM7-KofP.js} +1 -1
- package/tv4/es/{index-DAafrO3d.js → index-DWvnYxbR.js} +1 -1
- package/tv4/es/{index-DYZfYgBL.js → index-ZFHakMha.js} +1 -1
- package/tv4/es/index.d.ts +5 -2
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-DxYzwa7J.js → tv4/es/styles-DNinGpvp.js} +1 -1
- package/tvnu/cjs/index.d.ts +5 -2
- package/tvnu/cjs/index.js +1 -1
- package/types/index.d.ts +5 -2
- package/vg/cjs/index.d.ts +5 -2
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-bymjzVux.js +1 -0
- package/vg/es/{events-F13GBwE8.js → events-DOcSTFGM.js} +1 -1
- package/vg/es/{index-7sH2E5Xo.js → index-BOjuAuWj.js} +1 -1
- package/vg/es/{index-DQrqTh0o.js → index-BTS_PjF-.js} +1 -1
- package/vg/es/{index-5caaawmi.js → index-BZpNeBvX.js} +1 -1
- package/vg/es/{index-Zr0SPBQa.js → index-BcgyQ1qu.js} +1 -1
- package/vg/es/{index-UVH95gU3.js → index-DNo70a1v.js} +1 -1
- package/vg/es/{index-DgQz3V-C.js → index-DW43m4oF.js} +1 -1
- package/vg/es/{index-xninFcUR.js → index-DZY2xc_E.js} +1 -1
- package/vg/es/{index-ihC9WhpI.js → index-Dm_GpS6d.js} +1 -1
- package/vg/es/index.d.ts +5 -2
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-DwZ_BSYx.js → styles-BGTRMrs8.js} +1 -1
- package/vg/es/{styles-CScQqFvz.js → styles-BbMHPi0j.js} +1 -1
- package/vg/es/{styles-CZ3whug1.js → styles-Bq_tTBj5.js} +1 -1
- package/vg/es/{styles-BPV3MlKX.js → styles-C1NHnOLa.js} +1 -1
- package/vg/es/{styles-Dxkqfzn2.js → styles-C1bhidXn.js} +1 -1
- package/vg/es/{styles-D1zCat6A.js → styles-C5vtcO2Y.js} +1 -1
- package/{sa/es/styles-CJLAi4zU.js → vg/es/styles-CSEEYSz5.js} +1 -1
- package/{bt/es/styles-B_xNBSOu.js → vg/es/styles-CimKOAxN.js} +1 -1
- package/vg/es/{styles-amhUmZbz.js → styles-CsHHaKfo.js} +1 -1
- package/{bt/es/styles-BikhjQDd.js → vg/es/styles-CymhRz2U.js} +1 -1
- package/vg/es/{styles-C-bZuhKG.js → styles-DFw6ND_n.js} +1 -1
- package/vg/es/{styles-CWOGI1-4.js → styles-D_VdjFOF.js} +1 -1
- package/{sa/es/styles-MssR3kMl.js → vg/es/styles-DanNmJeX.js} +1 -1
- package/vg/es/{styles-DO8BSKYD.js → styles-Do_vdtxj.js} +1 -1
- package/vg/es/{styles-DcseWAUm.js → styles-Dy9mUfqt.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-BNvzsWAP.js +1 -0
- package/vgv2/es/{events-CIoOLi7R.js → events-DWESo44J.js} +1 -1
- package/vgv2/es/{index-nl3TFAkV.js → index-1ojdyH8e.js} +1 -1
- package/vgv2/es/{index-Brau04J6.js → index-B17W6-pg.js} +1 -1
- package/vgv2/es/{index-CeJH3igu.js → index-B9MMKdZv.js} +1 -1
- package/vgv2/es/{index-D1KDSGPz.js → index-CDrWTXSv.js} +1 -1
- package/vgv2/es/{index-pliPd0-E.js → index-CfxjXCEI.js} +1 -1
- package/vgv2/es/{index-C7VCZ5Iq.js → index-DPA6vezi.js} +1 -1
- package/vgv2/es/{index-H2B1KCL5.js → index-De0RI3vq.js} +1 -1
- package/vgv2/es/{index-C7op-1gX.js → index-DrC03b3o.js} +1 -1
- package/vgv2/es/index.d.ts +5 -2
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-D0rTm569.js → styles-3foDwyhj.js} +1 -1
- package/{btv2/es/styles-Dj__4uxu.js → vgv2/es/styles-BBQZwyUW.js} +1 -1
- package/vgv2/es/{styles-CM-phSer.js → styles-BHWVtEqi.js} +1 -1
- package/vgv2/es/{styles-D09S7b49.js → styles-BMmf636_.js} +1 -1
- package/{sav2/es/styles-BhvrH8C6.js → vgv2/es/styles-BYP9Z3nV.js} +1 -1
- package/{btv2/es/styles-B4tRP_n_.js → vgv2/es/styles-BtugIxKG.js} +1 -1
- package/vgv2/es/{styles-4MxgYTrg.js → styles-CBYtKKuI.js} +1 -1
- package/vgv2/es/{styles-PUgHkvUt.js → styles-CI0QFGUK.js} +1 -1
- package/vgv2/es/{styles-DxZWJTW9.js → styles-CqjyI_wE.js} +1 -1
- package/{btv2/es/styles-gYEcWwyP.js → vgv2/es/styles-D-QWrKee.js} +1 -1
- package/vgv2/es/{styles-BXHi2XrG.js → styles-D3K55C_G.js} +1 -1
- package/vgv2/es/{styles-ZXMUMbLV.js → styles-Dt0Ik47Y.js} +1 -1
- package/vgv2/es/{styles-DFhQAIF7.js → styles-EadQwu_f.js} +1 -1
- package/vgv2/es/{styles-DIrGP10x.js → styles-bYSMAqvn.js} +1 -1
- package/vgv2/es/{styles-gPqzB0Zu.js → styles-rNAOVQ6c.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-BvY6NMzY.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CcWCkVln.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CXFDMyh3.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CdZIRMex.js +0 -1
- package/aftonbladetv2/es/index-CiAInXOA.js +0 -1
- package/bt/es/_auto-entry_bt-BT8bdkOH.js +0 -1
- package/btv2/es/_auto-entry_btv2-D7E0GRM1.js +0 -1
- package/e24/es/_auto-entry_e24-lmXr-cWc.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-CUUcS1-A.js +0 -1
- package/koket/es/_auto-entry_koket-EbhH8wUC.js +0 -1
- package/sa/es/_auto-entry_sa-CAUxeTAQ.js +0 -1
- package/sav2/es/_auto-entry_sav2-DT28TY88.js +0 -1
- package/svd/es/_auto-entry_svd-gTLzQisZ.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-D8BNicMx.js +0 -1
- package/tv4/es/_auto-entry_tv4-D6j8Evpj.js +0 -1
- package/vg/es/_auto-entry_vg-WcOa48Sl.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-CBelsbx4.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","editableConfiguration"],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,o;const r=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.fullscreenScroll)||void 0===i?void 0:i.enabled),property:"main",featureName:"fullscreenScroll"},{flag:!!(null===(o=e.widescreenSwitching)||void 0===o?void 0:o.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==r?void 0:r[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,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",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: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=["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: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.fullscreenScroll)||void 0===i?void 0:i.enabled),property:"main",featureName:"fullscreenScroll"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"}];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)};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 r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},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 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))})}),J="cmp:loaded";let G="undefined"!=typeof window?window._tcf_:void 0,Q=!1;const Y=(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(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)&&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 z(t);if(!(null==t?void 0:t.enabled))return!0;const o=c();return null!==o?o: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,...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}=Y(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)}),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:r,pageContext:{countryCode:o}={}}=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:r}=Y(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=re(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),re=(e,t)=>{const n=oe();if(!n)return W;const i=((e=[])=>e.filter(ee))(n),r=((e=[])=>e.filter(te))(n),o=((e=[],t,n)=>{var i;const r=e.filter(ne);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=Z[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},oe=()=>{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),r=yield fetch(t,{method:"POST",headers:n,body:e});if(!r.ok)throw new Error(r.statusText);return yield r.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 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:""}},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,r,o,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===(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}}:{});q.set(ae,r)}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 r=yield((t,n)=>e(void 0,void 0,void 0,function*(){const e=yield t.getUserId();return e?`${pe[n]}:${e}`:null}))(n,i),o=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:r},environmentId:{plain:o},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:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},fe=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:r}=Y(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}),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,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?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: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 X(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}=ge.getPPIDs(),{ppid1:n,ppid2:i}=he.getPPIDs(),r=(new ve).add(t,de[f]).add(e,le[f]).add(i,ce[f]).add(n,ue[f]);return yield new Promise(e=>{e(r.buildVideoEids())})}));var f;const y=yield fe({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)=>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`]: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`]: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,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 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: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({},Se(o,n)),Ee(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")})}}}},$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};
|