@schibsted/advertory 3.1.2 → 3.2.1
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 +6 -2
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-Bd2emt9q.js +1 -0
- package/aftenposten/es/{events-Djfqvmhv.js → events-DsQFrxmV.js} +1 -1
- package/{aftonbladet/es/index-Cs0726uq.js → aftenposten/es/index-0sJigzK5.js} +1 -1
- package/aftenposten/es/{index-_4wK0wyK.js → index-BUlfwjAH.js} +1 -1
- package/aftenposten/es/{index-BEjmAztd.js → index-C2JpoPk9.js} +1 -1
- package/aftenposten/es/{index-PcXZJF3P.js → index-C4-eGeT_.js} +1 -1
- package/aftenposten/es/{index-CgKKFhy_.js → index-CAfgbuby.js} +1 -1
- package/aftenposten/es/{index-CBpU2KIc.js → index-CDxNb0XY.js} +1 -1
- package/aftenposten/es/{index-CeWsNDaB.js → index-CoioP3Wh.js} +1 -1
- package/aftenposten/es/{index-nMvOsVPJ.js → index-zY_FQKm-.js} +1 -1
- package/aftenposten/es/index.d.ts +6 -2
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-DGYj8Sg1.js → styles-5SNjjjQZ.js} +1 -1
- package/aftenposten/es/{styles-C6tcHY54.js → styles-BF7NIuxl.js} +1 -1
- package/aftenposten/es/{styles-Bpctvf2X.js → styles-BnHmvigj.js} +1 -1
- package/aftenposten/es/{styles-lK6QfW3y.js → styles-BpcTO6PV.js} +1 -1
- package/aftenposten/es/{styles-EPnQvn0h.js → styles-Cjw-tN_C.js} +1 -1
- package/aftenposten/es/{styles-BOm0-pac.js → styles-DSrvaprv.js} +1 -1
- package/aftenposten/es/{styles-CjsPf5Mm.js → styles-Dryy4_Wo.js} +1 -1
- package/aftenposten/es/{styles-CQPBQsiN.js → styles-QdOVjrM_.js} +1 -1
- package/aftenposten/es/{styles-Bt2UC0GP.js → styles-aJFVoUCo.js} +1 -1
- package/aftenposten/es/{styles-BLJeUwVp.js → styles-lo6SUpOY.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-B0vf3eN3.js +1 -0
- package/aftenpostenv2/es/{events-CndpkhSn.js → events-CLrrSUeS.js} +1 -1
- package/aftenpostenv2/es/{index-Rtj84XW5.js → index-B75NcbM0.js} +1 -1
- package/aftenpostenv2/es/{index-CYFeiwMS.js → index-BT3aSlKe.js} +1 -1
- package/aftenpostenv2/es/{index-_j6GaOP_.js → index-BWkpv-wE.js} +1 -1
- package/{aftonbladetv2/es/index-CtT25tc8.js → aftenpostenv2/es/index-C565sWWc.js} +1 -1
- package/aftenpostenv2/es/{index-CWLSVMOe.js → index-DrtEbO6t.js} +1 -1
- package/aftenpostenv2/es/{index-B_YRSCxb.js → index-DsGA6oJz.js} +1 -1
- package/aftenpostenv2/es/{index-JAZb5FrS.js → index-NSdIu3lS.js} +1 -1
- package/aftenpostenv2/es/{index-DubyXeHc.js → index-egBqi81J.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +6 -2
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-jW7kpPuM.js → styles-B8vUiZY6.js} +1 -1
- package/aftenpostenv2/es/{styles-kN89OYoQ.js → styles-CtJ0NZNy.js} +1 -1
- package/aftenpostenv2/es/{styles-DVmlwU9r.js → styles-Cw5d6JOJ.js} +1 -1
- package/aftenpostenv2/es/{styles-1jFCjqut.js → styles-D5H6irXk.js} +1 -1
- package/aftenpostenv2/es/{styles-B3sh40Mg.js → styles-DJryDrUf.js} +1 -1
- package/aftenpostenv2/es/{styles-CTM6Bmhq.js → styles-DWVkDvyN.js} +1 -1
- package/aftenpostenv2/es/{styles-yDLhwGY2.js → styles-JCDB5PxZ.js} +1 -1
- package/aftenpostenv2/es/{styles-CcRxjZv8.js → styles-bPWu64_n.js} +1 -1
- package/aftenpostenv2/es/{styles-iVONP82z.js → styles-iFl7lAZu.js} +1 -1
- package/aftenpostenv2/es/{styles-3FeDMacn.js → styles-mVCw8rk3.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +6 -2
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CPZIgCYb.js +1 -0
- package/aftonbladet/es/{events-FfqW4onK.js → events-Ct__bbEC.js} +1 -1
- package/aftonbladet/es/{index-4WX1LTEE.js → index-BOPuv0nz.js} +1 -1
- package/aftonbladet/es/{index-DWLq3UtD.js → index-Ba0q2O3b.js} +1 -1
- package/aftonbladet/es/{index-Bbx3cUtD.js → index-CZb1KpKx.js} +1 -1
- package/{aftenposten/es/index-BYFTKDzx.js → aftonbladet/es/index-DQ9z7_Ob.js} +1 -1
- package/aftonbladet/es/{index-DJOCCLbR.js → index-DTKWgMQC.js} +1 -1
- package/aftonbladet/es/{index-BxM5dlcJ.js → index-DbmthQCb.js} +1 -1
- package/aftonbladet/es/{index-CtjlVj8c.js → index-L2yKqS3W.js} +1 -1
- package/aftonbladet/es/{index-BNwdb5kX.js → index-w5unz3KG.js} +1 -1
- package/aftonbladet/es/index.d.ts +6 -2
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-Cc_VBiUa.js → styles-D8J0NQNy.js} +1 -1
- package/aftonbladet/es/{styles-DuW_-Qiu.js → styles-LdcM9OMv.js} +1 -1
- package/aftonbladet/es/{styles-BRj5Pm1h.js → styles-b9W2b6mf.js} +1 -1
- package/aftonbladet/es/{styles-DOcJFO_g.js → styles-hBFOOZQP.js} +1 -1
- package/aftonbladet/es/{styles-CKHwolqP.js → styles-vqbrEwnp.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DuQgAtXH.js +1 -0
- package/aftonbladetv2/es/{events-BGNPwius.js → events-28t4wdys.js} +1 -1
- package/aftonbladetv2/es/{index-DclYS9iH.js → index-BLKmfoag.js} +1 -1
- package/aftonbladetv2/es/{index-C-f5W8w-.js → index-BlrobmEM.js} +1 -1
- package/aftonbladetv2/es/{index-DsXHlqiw.js → index-CCLSPsb4.js} +1 -1
- package/aftonbladetv2/es/index-CHPlHFS6.js +1 -0
- package/aftonbladetv2/es/{index-7JdG7yFN.js → index-CHxN9mfc.js} +1 -1
- package/aftonbladetv2/es/{index-BMaA1Spt.js → index-DfsaxS9r.js} +1 -1
- package/aftonbladetv2/es/{index-DGrkYg33.js → index-Dx_Pu0WG.js} +1 -1
- package/{aftenpostenv2/es/index-B_oEucht.js → aftonbladetv2/es/index-I9zolFpI.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +6 -2
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-DXa8dXuS.js → styles-D1RjAg9O.js} +1 -1
- package/aftonbladetv2/es/{styles-ztp40LNv.js → styles-DDl_UR_e.js} +1 -1
- package/aftonbladetv2/es/{styles-D-FXcaqa.js → styles-DaFHw-sS.js} +1 -1
- package/aftonbladetv2/es/{styles-CIeejDSp.js → styles-UGBx1ven.js} +1 -1
- package/aftonbladetv2/es/{styles-PC2UmnHJ.js → styles-n5imq2ME.js} +1 -1
- package/brandmetrics/cjs/index.js +1 -1
- package/brandmetrics/es/index.js +1 -1
- package/bt/cjs/index.d.ts +6 -2
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-0N36wcn7.js +1 -0
- package/bt/es/{events-CA3YRpvp.js → events-ZqQWFgwa.js} +1 -1
- package/bt/es/{index-mi7RH9av.js → index-39pdBt8H.js} +1 -1
- package/bt/es/{index-CfKBejm1.js → index-506a3Tjn.js} +1 -1
- package/bt/es/{index-D_vlG00c.js → index-CGoBlage.js} +1 -1
- package/{sa/es/index-BoSR75BB.js → bt/es/index-CgPxmg7o.js} +1 -1
- package/{sa/es/index-CFP8H4af.js → bt/es/index-CwYsa-y5.js} +1 -1
- package/bt/es/{index-C9DASDNY.js → index-DJnPTlC9.js} +1 -1
- package/bt/es/{index-B6lsxBQR.js → index-DY8txiAw.js} +1 -1
- package/bt/es/{index-Ds4bW_9u.js → index-rch5ptdj.js} +1 -1
- package/bt/es/index.d.ts +6 -2
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-DBbJ5wGK.js → styles-B6QLFQH-.js} +1 -1
- package/{vg/es/styles-DPa3-Ig9.js → bt/es/styles-BemFFJnt.js} +1 -1
- package/{sa/es/styles-DXXIe2QG.js → bt/es/styles-Bl0wEHDc.js} +1 -1
- package/bt/es/{styles-DaRuPKss.js → styles-CBt0Rz73.js} +1 -1
- package/{vg/es/styles-HcRDb4-y.js → bt/es/styles-CMwLrxMf.js} +1 -1
- package/{sa/es/styles-BfHw4SN0.js → bt/es/styles-D82bOldJ.js} +1 -1
- package/bt/es/{styles-Crc0_1WT.js → styles-DGLlYRsD.js} +1 -1
- package/bt/es/{styles-D5a6lNis.js → styles-DowlRoui.js} +1 -1
- package/{sa/es/styles-ByPIiUBY.js → bt/es/styles-osw65sOl.js} +1 -1
- package/btv2/es/_auto-entry_btv2-DJYGuXkU.js +1 -0
- package/btv2/es/{events-nvcCEZqq.js → events-DG6GqVWV.js} +1 -1
- package/btv2/es/{index-Dc1WxnvN.js → index-BEr1QBBH.js} +1 -1
- package/btv2/es/{index-CO9bqR3D.js → index-C5Gx9sn7.js} +1 -1
- package/btv2/es/{index-DCQjdWE2.js → index-CTgTAmkz.js} +1 -1
- package/btv2/es/{index-Bb_ltY--.js → index-CUml9jU6.js} +1 -1
- package/btv2/es/{index-YoJh-uAw.js → index-DS0ccu1m.js} +1 -1
- package/btv2/es/{index-CH4mbydt.js → index-DYRTaYFm.js} +1 -1
- package/btv2/es/{index-DtC7HUrt.js → index-DdtKoUz_.js} +1 -1
- package/btv2/es/{index-DBTavN3i.js → index-Dznk6KvY.js} +1 -1
- package/btv2/es/index.d.ts +6 -2
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-CHNp59OO.js → styles-BClJtCs1.js} +1 -1
- package/{sav2/es/styles-DEhkap7F.js → btv2/es/styles-BVNQM-7G.js} +1 -1
- package/{vgv2/es/styles-eK9B_gwr.js → btv2/es/styles-Bs1VM9lr.js} +1 -1
- package/{vgv2/es/styles-laGMxCg-.js → btv2/es/styles-Bz5ld1xw.js} +1 -1
- package/btv2/es/{styles-gccX6iHh.js → styles-CA4xKBOT.js} +1 -1
- package/{sav2/es/styles-BWDDPnmK.js → btv2/es/styles-CPp2GMda.js} +1 -1
- package/{sav2/es/styles-CnyuqiNE.js → btv2/es/styles-CysC7a6u.js} +1 -1
- package/btv2/es/{styles-7tdU6_5z.js → styles-gYMfOSNa.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-BmJ35-ev.js +1 -0
- package/e24/es/{events-em44BUfv.js → events-DLGmjmcP.js} +1 -1
- package/e24/es/{index-B24bkIcI.js → index-1lw9-aIO.js} +1 -1
- package/e24/es/{index-IbhHnJx4.js → index-BHDy4BcI.js} +1 -1
- package/e24/es/{index-C9G2urqf.js → index-BzzPOEur.js} +1 -1
- package/e24/es/{index-Dh9HbOwe.js → index-CG4hFp6z.js} +1 -1
- package/e24/es/{index-BSpizElz.js → index-CaBDy7W1.js} +1 -1
- package/e24/es/{index-D_sYdHQP.js → index-DmhZrdJt.js} +1 -1
- package/{svd/es/index-h6Bzcdoy.js → e24/es/index-DrODeame.js} +1 -1
- package/e24/es/{index-BowvVP4w.js → index-P1dQyYRp.js} +1 -1
- package/e24/es/index.d.ts +6 -2
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-DZuy0mfh.js → styles--qcNUGsg.js} +1 -1
- package/e24/es/{styles-Cg88eyjZ.js → styles-BVvyODMi.js} +1 -1
- package/e24/es/{styles-CodlP39y.js → styles-BfFaKHmi.js} +1 -1
- package/e24/es/{styles-CKqmN_4y.js → styles-CGWGVSqB.js} +1 -1
- package/{tv4/es/styles-Cp2FvVtO.js → e24/es/styles-Ccxhio04.js} +1 -1
- package/e24/es/{styles-DWz69iBs.js → styles-CkbpTcrs.js} +1 -1
- package/e24/es/{styles-CMZPVch5.js → styles-CtGEj4SE.js} +1 -1
- package/e24/es/{styles-cRKv7sg0.js → styles-CzeJHY8s.js} +1 -1
- package/e24/es/{styles-D5paQVK2.js → styles-DrgQyfL8.js} +1 -1
- package/e24/es/{styles-CophI7fE.js → styles-Nvs8klcA.js} +1 -1
- package/e24/es/{styles-JhEc7HC2.js → styles-xZkc7QKK.js} +1 -1
- package/fotbollskanalen/cjs/index.d.ts +6 -2
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-ioz6UJgA.js +1 -0
- package/fotbollskanalen/es/{events-PLuiQnF7.js → events-9SuVW6Ea.js} +1 -1
- package/fotbollskanalen/es/{index-PSmgZEW6.js → index-Au2pldXZ.js} +1 -1
- package/fotbollskanalen/es/{index-BwA9wqyq.js → index-BklVXLJm.js} +1 -1
- package/fotbollskanalen/es/{index-Ehw2Kpl3.js → index-Cf6GYaMz.js} +1 -1
- package/fotbollskanalen/es/{index-DyH5dIHK.js → index-CyJBm9w8.js} +1 -1
- package/fotbollskanalen/es/{index-Dp1HC5I1.js → index-DSet3BSx.js} +1 -1
- package/fotbollskanalen/es/{index-Cb1SwEs8.js → index-DpYAXoXj.js} +1 -1
- package/fotbollskanalen/es/{index-ChypEeNl.js → index-DtiwrQhx.js} +1 -1
- package/fotbollskanalen/es/{index-Bxj-o644.js → index-_Sovftnh.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +6 -2
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-C3R9fizq.js → styles-BZus5f-U.js} +1 -1
- package/glimr/cjs/index.js +1 -1
- package/glimr/es/index.js +1 -1
- package/godare/cjs/index.d.ts +6 -2
- package/godare/cjs/index.js +1 -1
- package/godt/cjs/index.d.ts +6 -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 +6 -2
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +6 -2
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-BK3EkRO-.js +1 -0
- package/koket/es/{events-CzsjR_MV.js → events-B7rnDqaR.js} +1 -1
- package/koket/es/{index-CiQAYWNj.js → index-BYDRrKBv.js} +1 -1
- package/{svdv2/es/index-B9f-toqF.js → koket/es/index-Bgh9rUAR.js} +1 -1
- package/koket/es/{index-GRCdBgCV.js → index-CCPW90XQ.js} +1 -1
- package/koket/es/{index-BRZQdk8p.js → index-CvQ9n6k6.js} +1 -1
- package/koket/es/{index-BDCnUC2s.js → index-DG6pXA30.js} +1 -1
- package/koket/es/{index-Dj18FjMk.js → index-DnOsl8vy.js} +1 -1
- package/koket/es/{index-P--7EjDD.js → index-MxwyKOzi.js} +1 -1
- package/koket/es/{index-CZmk3t6g.js → index-Q-3SCxus.js} +1 -1
- package/koket/es/index.d.ts +6 -2
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-BRf_hpwP.js → koket/es/styles-CPYpzvBn.js} +1 -1
- package/minmote/cjs/index.d.ts +6 -2
- package/minmote/cjs/index.js +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +6 -2
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +6 -2
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-ClIDgsvb.js +1 -0
- package/sa/es/{events-WBCBTZjF.js → events-BXauur8K.js} +1 -1
- package/{bt/es/index-Y0bNHpHd.js → sa/es/index-B4qkVATf.js} +1 -1
- package/sa/es/{index-CXWVT_nG.js → index-BsVs3OOD.js} +1 -1
- package/sa/es/{index-CizwqGwp.js → index-CYG3kxRR.js} +1 -1
- package/sa/es/{index-CrY6ka1r.js → index-CgjiIPJ8.js} +1 -1
- package/{bt/es/index-Bf8N98sz.js → sa/es/index-DMxxrhov.js} +1 -1
- package/sa/es/{index-DJ1FaFc_.js → index-DvZbNSe2.js} +1 -1
- package/sa/es/{index-DLfELXlD.js → index-fe9N_ESV.js} +1 -1
- package/sa/es/{index-DzEpOvYS.js → index-wRnQvZg8.js} +1 -1
- package/sa/es/index.d.ts +6 -2
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-cY3tb9kS.js → styles-B8hu3Ici.js} +1 -1
- package/sa/es/{styles-DfK0973d.js → styles-BVnWQbga.js} +1 -1
- package/{vg/es/styles-CYLKYYNm.js → sa/es/styles-CaryB6sC.js} +1 -1
- package/sa/es/{styles-MSfXGQPh.js → styles-ClCezny6.js} +1 -1
- package/{bt/es/styles-Btg_p1x7.js → sa/es/styles-DMeCwFVO.js} +1 -1
- package/{bt/es/styles-CuCBLxM3.js → sa/es/styles-DUOmMFMA.js} +1 -1
- package/sa/es/{styles-ZuIe8hPt.js → styles-DmBt6JYy.js} +1 -1
- package/{bt/es/styles-D9d8Cdnp.js → sa/es/styles-DvAwSOUV.js} +1 -1
- package/{vg/es/styles-BuXFVgDs.js → sa/es/styles-vwQTnKMG.js} +1 -1
- package/sav2/es/_auto-entry_sav2-C-pDZ-pu.js +1 -0
- package/sav2/es/{events-BNNYKSl_.js → events-Bu-Z-EUx.js} +1 -1
- package/sav2/es/{index-C7L5OOos.js → index-BmzuIBp-.js} +1 -1
- package/sav2/es/{index-B1fhSS-l.js → index-C9YfkQMg.js} +1 -1
- package/sav2/es/{index-AkCXsWbF.js → index-CJwU8HK6.js} +1 -1
- package/sav2/es/{index-CAn6DhEJ.js → index-Ca3Acl1g.js} +1 -1
- package/sav2/es/{index-Ba5T08yN.js → index-CwMQSftF.js} +1 -1
- package/sav2/es/{index-DHuWz9k2.js → index-QWlE4fEb.js} +1 -1
- package/sav2/es/{index-Wl29K0Nx.js → index-Sd5GDPaz.js} +1 -1
- package/sav2/es/{index-BqPfD7Ip.js → index-U23dGtjE.js} +1 -1
- package/sav2/es/index.d.ts +6 -2
- package/sav2/es/index.js +1 -1
- package/sav2/es/{styles-DkG4K21y.js → styles-BYOjz_X6.js} +1 -1
- package/sav2/es/{styles-C6t6X01E.js → styles-Bz6R7C6B.js} +1 -1
- package/{btv2/es/styles-Il_rUi-I.js → sav2/es/styles-C-AQcTbm.js} +1 -1
- package/sav2/es/{styles-BSdCPpIT.js → styles-D8mTxuIt.js} +1 -1
- package/{vgv2/es/styles-C8vJ3VCb.js → sav2/es/styles-DWxF0ypR.js} +1 -1
- package/sav2/es/{styles-BcgDoMe9.js → styles-ZWAllyAj.js} +1 -1
- package/{btv2/es/styles-C_2P0tPt.js → sav2/es/styles-kDNgPkT5.js} +1 -1
- package/{vgv2/es/styles--cDFm4qw.js → sav2/es/styles-plDwU7mo.js} +1 -1
- package/svd/cjs/index.d.ts +6 -2
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-Bjc3u8rS.js +1 -0
- package/svd/es/{events-Dc74p5db.js → events-C5tiC0zZ.js} +1 -1
- package/{tv4/es/index-C54e5MHM.js → svd/es/index-B4rttRmd.js} +1 -1
- package/svd/es/{index-CYvPoDH_.js → index-Bew3sFXa.js} +1 -1
- package/svd/es/{index-jEszNFTZ.js → index-BjikbY5D.js} +1 -1
- package/svd/es/{index-NmbRNRUw.js → index-BjzcmUW1.js} +1 -1
- package/svd/es/{index-xY6BCab4.js → index-CwJ3qTC6.js} +1 -1
- package/{tv4/es/index-cnPU_J5b.js → svd/es/index-DNbeL-m1.js} +1 -1
- package/svd/es/{index-CCSmUghY.js → index-ZIexKFHJ.js} +1 -1
- package/svd/es/{index-CaIQZBO-.js → index-p47l6ace.js} +1 -1
- package/svd/es/index.d.ts +6 -2
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-YIV9nwKM.js → styles-B8Ucowrs.js} +1 -1
- package/svd/es/{styles-C4Xo9Bvf.js → styles-CGWnvGAL.js} +1 -1
- package/svd/es/{styles-C-Cr12Op.js → styles-CH-DrA0r.js} +1 -1
- package/svd/es/{styles-CWVyawaj.js → styles-D53kJLyH.js} +1 -1
- package/svd/es/{styles-BYbxmJ40.js → styles-Do3Oly_8.js} +1 -1
- package/svd/es/{styles-Ds1RXJqP.js → styles-EHkwohCi.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-Cpd4hpu-.js +1 -0
- package/svdv2/es/{events-Dt_m5TPf.js → events-CxKmpguK.js} +1 -1
- package/svdv2/es/{index-BSZZi5GI.js → index-BEoZbs7S.js} +1 -1
- package/svdv2/es/{index-DYD6E_tC.js → index-C5vRRoeP.js} +1 -1
- package/svdv2/es/{index-J4az83QG.js → index-CEONRS28.js} +1 -1
- package/{koket/es/index-CO57-9Au.js → svdv2/es/index-CkXIYjYw.js} +1 -1
- package/svdv2/es/{index-BaDP-cad.js → index-D-e24kQB.js} +1 -1
- package/svdv2/es/{index-BYngheL6.js → index-DyktjUPG.js} +1 -1
- package/svdv2/es/{index-CBfxDGKY.js → index-OLCMWP1c.js} +1 -1
- package/svdv2/es/{index-DmG1v1CA.js → index-_Ksqae0J.js} +1 -1
- package/svdv2/es/index.d.ts +6 -2
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-BoGBiTj0.js → styles-9ofy7EpE.js} +1 -1
- package/svdv2/es/{styles-DF2PxzZE.js → styles-BNja60Kr.js} +1 -1
- package/{koket/es/styles--7f0Nr3w.js → svdv2/es/styles-C1_jxEBI.js} +1 -1
- package/svdv2/es/{styles-CXO8wiFt.js → styles-DcncASkN.js} +1 -1
- package/svdv2/es/{styles-C-b4aFA7.js → styles-Dpefko07.js} +1 -1
- package/svdv2/es/{styles-LXalyj75.js → styles-R3bR60Fs.js} +1 -1
- package/tek/cjs/index.d.ts +6 -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 +6 -2
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-Dn_tpmA6.js +1 -0
- package/tv4/es/{events-TfOtE8Rp.js → events-BUYbrrAG.js} +1 -1
- package/tv4/es/{index-DYZfYgBL.js → index--tFVLD5i.js} +1 -1
- package/tv4/es/{index-DyrFopn0.js → index-5_cyt17o.js} +1 -1
- package/tv4/es/{index-BLXhEkKV.js → index-BP_1njtD.js} +1 -1
- package/tv4/es/{index-C8Quh3hJ.js → index-BqYzqwK2.js} +1 -1
- package/tv4/es/{index-Hoeb7sme.js → index-CdFhbqEr.js} +1 -1
- package/{svd/es/index-D7A5kDQO.js → tv4/es/index-DIMdcSi0.js} +1 -1
- package/tv4/es/{index-DAafrO3d.js → index-HEb1bBfL.js} +1 -1
- package/{e24/es/index-BkgL8ip0.js → tv4/es/index-j8016YwR.js} +1 -1
- package/tv4/es/index.d.ts +6 -2
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-DxYzwa7J.js → tv4/es/styles-DKaYkXpz.js} +1 -1
- package/tvnu/cjs/index.d.ts +6 -2
- package/tvnu/cjs/index.js +1 -1
- package/types/index.d.ts +6 -2
- package/vg/cjs/index.d.ts +6 -2
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-BmInGtXM.js +1 -0
- package/vg/es/{events-F13GBwE8.js → events-CuEvnwaE.js} +1 -1
- package/vg/es/{index-5caaawmi.js → index-6Aoz24bq.js} +1 -1
- package/vg/es/{index-Zr0SPBQa.js → index-B4GklBgV.js} +1 -1
- package/vg/es/{index-DQrqTh0o.js → index-BQJcsUiX.js} +1 -1
- package/vg/es/{index-7sH2E5Xo.js → index-D3CuzSin.js} +1 -1
- package/vg/es/{index-ihC9WhpI.js → index-DGYwAaCK.js} +1 -1
- package/vg/es/{index-DgQz3V-C.js → index-QlbDNOKP.js} +1 -1
- package/vg/es/{index-UVH95gU3.js → index-XHfzOOu8.js} +1 -1
- package/vg/es/{index-xninFcUR.js → index-fyhFRFlG.js} +1 -1
- package/vg/es/index.d.ts +6 -2
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-DO8BSKYD.js → styles--pLbJfzN.js} +1 -1
- package/vg/es/{styles-CZ3whug1.js → styles-5l6TpI1H.js} +1 -1
- package/vg/es/{styles-BPV3MlKX.js → styles-B-JndxF8.js} +1 -1
- package/vg/es/{styles-C-bZuhKG.js → styles-B7wlkA7o.js} +1 -1
- package/{bt/es/styles-BikhjQDd.js → vg/es/styles-BOswSxZ7.js} +1 -1
- package/{bt/es/styles-B_xNBSOu.js → vg/es/styles-BqTjLUzR.js} +1 -1
- package/vg/es/{styles-DcseWAUm.js → styles-CjjjhkOB.js} +1 -1
- package/{sa/es/styles-CJLAi4zU.js → vg/es/styles-D5hv8nxu.js} +1 -1
- package/vg/es/{styles-DwZ_BSYx.js → styles-DGwAbnxA.js} +1 -1
- package/{sa/es/styles-MssR3kMl.js → vg/es/styles-DIZLLnA5.js} +1 -1
- package/vg/es/{styles-amhUmZbz.js → styles-DpPgBF6Q.js} +1 -1
- package/vg/es/{styles-D1zCat6A.js → styles-Dx-zKYNE.js} +1 -1
- package/vg/es/{styles-Dxkqfzn2.js → styles-DxVRSM3w.js} +1 -1
- package/vg/es/{styles-CScQqFvz.js → styles-Za6xh4N0.js} +1 -1
- package/vg/es/{styles-CWOGI1-4.js → styles-rqg2JP0p.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-Ex_xHCdQ.js +1 -0
- package/vgv2/es/{events-CIoOLi7R.js → events-Doye3wL3.js} +1 -1
- package/vgv2/es/{index-C7op-1gX.js → index-0Jm7xmC9.js} +1 -1
- package/vgv2/es/{index-CeJH3igu.js → index-BaYoHm4D.js} +1 -1
- package/vgv2/es/{index-pliPd0-E.js → index-CWsGcM74.js} +1 -1
- package/vgv2/es/{index-nl3TFAkV.js → index-DBHBy3Sf.js} +1 -1
- package/vgv2/es/{index-D1KDSGPz.js → index-DKFug5os.js} +1 -1
- package/vgv2/es/{index-C7VCZ5Iq.js → index-DNBpEBWy.js} +1 -1
- package/vgv2/es/{index-Brau04J6.js → index-DsjbVRdP.js} +1 -1
- package/vgv2/es/{index-H2B1KCL5.js → index-vNu2Pmet.js} +1 -1
- package/vgv2/es/index.d.ts +6 -2
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-BXHi2XrG.js → styles-7txV4W1R.js} +1 -1
- package/{btv2/es/styles-B4tRP_n_.js → vgv2/es/styles-B-PXQmyb.js} +1 -1
- package/vgv2/es/{styles-CM-phSer.js → styles-B9ItMxw1.js} +1 -1
- package/vgv2/es/{styles-DxZWJTW9.js → styles-BJp4I-rS.js} +1 -1
- package/vgv2/es/{styles-ZXMUMbLV.js → styles-Bm-cLXqq.js} +1 -1
- package/vgv2/es/{styles-DIrGP10x.js → styles-CG1eBVpu.js} +1 -1
- package/{btv2/es/styles-gYEcWwyP.js → vgv2/es/styles-CGmq2T4Q.js} +1 -1
- package/vgv2/es/{styles-4MxgYTrg.js → styles-CipXWJfY.js} +1 -1
- package/vgv2/es/{styles-D0rTm569.js → styles-CmB-PjkX.js} +1 -1
- package/vgv2/es/{styles-D09S7b49.js → styles-D14qSaOV.js} +1 -1
- package/vgv2/es/{styles-PUgHkvUt.js → styles-DN8kfnXf.js} +1 -1
- package/vgv2/es/{styles-DFhQAIF7.js → styles-DYu8iVm4.js} +1 -1
- package/{btv2/es/styles-Dj__4uxu.js → vgv2/es/styles-DmzVvSgp.js} +1 -1
- package/{sav2/es/styles-BhvrH8C6.js → vgv2/es/styles-DrECs1tX.js} +1 -1
- package/vgv2/es/{styles-gPqzB0Zu.js → styles-z3FvQqyV.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
|
@@ -207,6 +207,7 @@ interface AstDefineTagParams {
|
|
|
207
207
|
safeframeConfig?: SafeFrameConfig;
|
|
208
208
|
dynamicSizeWidthCheck?: boolean;
|
|
209
209
|
allowSmallerSizes?: boolean;
|
|
210
|
+
globalPlacementId?: string;
|
|
210
211
|
}
|
|
211
212
|
interface SafeFrameConfig {
|
|
212
213
|
allowExpansionByPush?: boolean;
|
|
@@ -437,7 +438,7 @@ interface SiteConfig {
|
|
|
437
438
|
drEdition?: DrEditionConfig;
|
|
438
439
|
kilkaya?: KilkayaConfig;
|
|
439
440
|
rightColumnSplit?: RightColumnSplitConfig;
|
|
440
|
-
|
|
441
|
+
editory?: EditoryConfig;
|
|
441
442
|
adScaleConfig?: AdScaleConfig;
|
|
442
443
|
widescreenSwitching?: WidescreenSwitchingConfig;
|
|
443
444
|
fullWidth?: FullWidthConfig;
|
|
@@ -731,9 +732,12 @@ interface RightColumnSplitConfig {
|
|
|
731
732
|
trackSelector?: string;
|
|
732
733
|
}
|
|
733
734
|
interface EditableConfigurationConfig {
|
|
734
|
-
|
|
735
|
+
enabled?: boolean;
|
|
735
736
|
pageTypeToFetch?: string;
|
|
736
737
|
}
|
|
738
|
+
interface EditoryConfig {
|
|
739
|
+
editableConfiguration?: EditableConfigurationConfig;
|
|
740
|
+
}
|
|
737
741
|
interface AdScaleConfig {
|
|
738
742
|
enabled: boolean;
|
|
739
743
|
adsToBeScaled: Partial<Record<DeviceType, Array<string>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{W as Takeover,V as default}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
export{W as Takeover,V as default}from"./_auto-entry_fotbollskanalen-ioz6UJgA.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as o}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as o}from"./_auto-entry_fotbollskanalen-ioz6UJgA.js";import"react/jsx-runtime";const t=o("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");export{t as default};
|
package/glimr/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t,n=require("./glimr-sdk-mS8sOhxy.js");function r(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var o=function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach(function(t){r[t]=o(e[t],n)}),a(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))}),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}return c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})},e=c}(),i=n.getDefaultExportFromCjs(o);const a=["placements","takeover","refreshConfig","editableConfiguration"],s={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},l=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},c=(e,t)=>{console.warn("[Advertory WARN]: ",e)},d=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||c("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||c("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||c("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||c("pageContext.deviceType is required."),n||c("pageOptions is required."),r||c("placements is required."),(null==o?void 0:o.defaultThreshold)||c("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,o;const i=e.pageSectionsSelectors,a=[{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===(r=e.fullscreenScroll)||void 0===r?void 0:r.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 a)e&&!(null==i?void 0:i[t])&&c(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class u{set(e){d(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 a){const r=e[n];void 0!==r&&(t[n]=r)}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=i(u.DEFAULT_SITE_HANDLERS,e)}}u.DEFAULT_SITE_HANDLERS={siteEvents:s,initNativeAd:function(){}};const g=new u;g.modifyConfigProperties.bind(g);const f=864e5,v=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return l("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=f)=>{const o={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(o))},getByTimestamp:(t,n=f)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return l("Error with parsing localStorage data"),null}}}})(),p="glimrTags",m=["glwe_","glwet_"],h={geofenceTags:[],geoTags:[],weatherTags:[]},b=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 l("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const o=e=>{r||(l("Resolving advertising permission value obtained"),r=!0,t(e))},i=setTimeout(()=>{l("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{l("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const t=Number(e);l("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),y="no",w="se",C="cmp:loaded";let T="undefined"!=typeof window?window._tcf_:void 0,O=!1;const S=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,a=(s="bypass_tcf",new URLSearchParams(window.location.search).get(s));var s;const c=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(l("TCF bypass param detected, returning consent: true"),!0):(l("TCF is not enabled, returning consent: true"),!0))(o,a))return!0;if(O)return null;if(!T)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=T.getConsentedToAllSync();return l(`TCF consented to all is: ${t}`),T.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(l("Getting TCF consent manager..."),window._tcf_)return l("TCF consent manager is already available"),T=window._tcf_,void e(T);l("TCF consent manager is not available");const n=()=>{l("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(T=window._tcf_,e(T)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(C,n),O=!0,t(new Error("Timeout waiting for CMP to load"))},i);l("Listening for CMP loaded event..."),document.addEventListener(C,n,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>r(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===w,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===y;if(t||r)return l("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield b(e);if(!(null==e?void 0:e.enabled))return!0;const o=c();return null!==o?o:yield new Promise((e,t)=>{try{if(!T)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{l("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);T.onTcfReady(()=>{l("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),T.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},A=(...e)=>r(void 0,[...e],void 0,function*(e=g.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,n,...o)=>r(void 0,[e,t,n,...o],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return l(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=S(e,0,n);return(yield o())?(l(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(l(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(t,n,o,"glimr");return e}const{getConsentAsync:i}=S(t,0,o);return yield i()}),E={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"},P=e=>m.some(t=>e.startsWith(t)),_=e=>e.startsWith("glgc_"),j=e=>!P(e)&&!_(e),M=(e,t)=>{const n=N();if(!n)return h;const r=((e=[])=>e.filter(P))(n),o=((e=[])=>e.filter(_))(n),i=((e=[],t,n)=>{var r;const o=e.filter(j);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=E[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:i,geofenceTags:o,weatherTags:r}},N=()=>{const e=v.getByTimestamp(p);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};exports.getGlimrKeywords=(e,t)=>r(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield A(e);if(!(null==r?void 0:r.enabled)||!i)return l("No consent for getting glimr tags."),{};const a=(e=>e===y?"no-sno":"se-generic")(o),s=M(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),exports.updateGlimr=()=>r(void 0,void 0,void 0,function*(){const{glimr:e}=g.get();if(!(yield A())||!(null==e?void 0:e.enabled))return void l("No consent for glimr data fetching.");const t=yield(n=500,r(void 0,void 0,void 0,function*(){return yield Promise.race([r(void 0,void 0,void 0,function*(){const e=yield Promise.resolve().then(function(){return require("./glimr-BIcFSFRk.js")}).then(function(e){return e.glimr});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{v.setWithTimestamp(p,{tags:e,tagMappings:t}),n(!0)})})}catch(e){l(`Error during getting glimr data: ${e}`)}else l("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})});
|
|
1
|
+
"use strict";var e,t,n=require("./glimr-sdk-mS8sOhxy.js");function r(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var o=function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach(function(t){r[t]=o(e[t],n)}),s(t).forEach(function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))}),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var s=Array.isArray(t);return s===Array.isArray(e)?s?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}return c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})},e=c}(),i=n.getDefaultExportFromCjs(o);const s=["placements","takeover","refreshConfig","editory"],a={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},l=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},c=(e,t)=>{console.warn("[Advertory WARN]: ",e)},d=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||c("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||c("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||c("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||c("pageContext.deviceType is required."),n||c("pageOptions is required."),r||c("placements is required."),(null==o?void 0:o.defaultThreshold)||c("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,o;const i=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===(r=e.fullscreenScroll)||void 0===r?void 0:r.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==i?void 0:i[t])&&c(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class u{set(e){d(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 s){const r=e[n];void 0!==r&&(t[n]=r)}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=i(u.DEFAULT_SITE_HANDLERS,e)}}u.DEFAULT_SITE_HANDLERS={siteEvents:a,initNativeAd:function(){}};const g=new u;g.modifyConfigProperties.bind(g);const f=864e5,v=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return l("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=f)=>{const o={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(o))},getByTimestamp:(t,n=f)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return l("Error with parsing localStorage data"),null}}}})(),p="glimrTags",m=["glwe_","glwet_"],h={geofenceTags:[],geoTags:[],weatherTags:[]},b=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 l("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const o=e=>{r||(l("Resolving advertising permission value obtained"),r=!0,t(e))},i=setTimeout(()=>{l("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{l("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const t=Number(e);l("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),y="no",w="se",C="cmp:loaded";let T="undefined"!=typeof window?window._tcf_:void 0,O=!1;const S=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,s=(a="bypass_tcf",new URLSearchParams(window.location.search).get(a));var a;const c=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(l("TCF bypass param detected, returning consent: true"),!0):(l("TCF is not enabled, returning consent: true"),!0))(o,s))return!0;if(O)return null;if(!T)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=T.getConsentedToAllSync();return l(`TCF consented to all is: ${t}`),T.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(l("Getting TCF consent manager..."),window._tcf_)return l("TCF consent manager is already available"),T=window._tcf_,void e(T);l("TCF consent manager is not available");const n=()=>{l("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(T=window._tcf_,e(T)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(C,n),O=!0,t(new Error("Timeout waiting for CMP to load"))},i);l("Listening for CMP loaded event..."),document.addEventListener(C,n,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>r(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===w,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===y;if(t||r)return l("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield b(e);if(!(null==e?void 0:e.enabled))return!0;const o=c();return null!==o?o:yield new Promise((e,t)=>{try{if(!T)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{l("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);T.onTcfReady(()=>{l("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),T.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},A=(...e)=>r(void 0,[...e],void 0,function*(e=g.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,n,...o)=>r(void 0,[e,t,n,...o],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return l(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=S(e,0,n);return(yield o())?(l(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(l(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(t,n,o,"glimr");return e}const{getConsentAsync:i}=S(t,0,o);return yield i()}),E={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"},P=e=>m.some(t=>e.startsWith(t)),_=e=>e.startsWith("glgc_"),j=e=>!P(e)&&!_(e),M=(e,t)=>{const n=N();if(!n)return h;const r=((e=[])=>e.filter(P))(n),o=((e=[])=>e.filter(_))(n),i=((e=[],t,n)=>{var r;const o=e.filter(j);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=E[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:i,geofenceTags:o,weatherTags:r}},N=()=>{const e=v.getByTimestamp(p);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};exports.getGlimrKeywords=(e,t)=>r(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield A(e);if(!(null==r?void 0:r.enabled)||!i)return l("No consent for getting glimr tags."),{};const s=(e=>e===y?"no-sno":"se-generic")(o),a=M(e,Boolean(n));return{[`${s}-geo`]:a.geoTags,[`${s}-weather`]:a.weatherTags,[`${s}-geofence`]:a.geofenceTags}}),exports.updateGlimr=()=>r(void 0,void 0,void 0,function*(){const{glimr:e}=g.get();if(!(yield A())||!(null==e?void 0:e.enabled))return void l("No consent for glimr data fetching.");const t=yield(n=500,r(void 0,void 0,void 0,function*(){return yield Promise.race([r(void 0,void 0,void 0,function*(){const e=yield Promise.resolve().then(function(){return require("./glimr-BIcFSFRk.js")}).then(function(e){return e.glimr});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{v.setWithTimestamp(p,{tags:e,tagMappings:t}),n(!0)})})}catch(e){l(`Error during getting glimr data: ${e}`)}else l("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})});
|
package/glimr/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e}from"./glimr-sdk-B7FY2YN8.js";function t(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})}var n,o;"function"==typeof SuppressedError&&SuppressedError;var r=e(function(){if(o)return n;o=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 r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var o={};return n.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=r(e[t],n)}),a(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))}),o}function c(t,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(t)?a?o.arrayMerge(t,n,o):l(t,n,o):r(n,o)}return c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})},n=c}());const i=["placements","takeover","refreshConfig","editableConfiguration"],a={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},s=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},l=(e,t)=>{console.warn("[Advertory WARN]: ",e)},c=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||l("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||l("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||l("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||l("pageContext.deviceType is required."),n||l("pageOptions is required."),o||l("placements is required."),(null==r?void 0:r.defaultThreshold)||l("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,r;const i=e.pageSectionsSelectors,a=[{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===(o=e.fullscreenScroll)||void 0===o?void 0:o.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 a)e&&!(null==i?void 0:i[t])&&l(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class d{set(e){c(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 i){const o=e[n];void 0!==o&&(t[n]=o)}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(d.DEFAULT_SITE_HANDLERS,e)}}d.DEFAULT_SITE_HANDLERS={siteEvents:a,initNativeAd:function(){}};const u=new d;u.modifyConfigProperties.bind(u);const g=864e5,f=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return s("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=g)=>{const r={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(r))},getByTimestamp:(t,n=g)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return s("Error with parsing localStorage data"),null}}}})(),v="glimrTags",p=["glwe_","glwet_"],b={geofenceTags:[],geoTags:[],weatherTags:[]},h=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 s("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const r=e=>{o||(s("Resolving advertising permission value obtained"),o=!0,t(e))},i=setTimeout(()=>{s("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{s("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const t=Number(e);s("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),m="no",y="se",w="cmp:loaded";let C="undefined"!=typeof window?window._tcf_:void 0,T=!1;const O=(e,n,o)=>{const r=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,a=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const c=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(s("TCF bypass param detected, returning consent: true"),!0):(s("TCF is not enabled, returning consent: true"),!0))(r,a))return!0;if(T)return null;if(!C)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=C.getConsentedToAllSync();return s(`TCF consented to all is: ${t}`),C.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(s("Getting TCF consent manager..."),window._tcf_)return s("TCF consent manager is already available"),C=window._tcf_,void e(C);s("TCF consent manager is not available");const n=()=>{s("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(C=window._tcf_,e(C)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(w,n),T=!0,t(new Error("Timeout waiting for CMP to load"))},i);s("Listening for CMP loaded event..."),document.addEventListener(w,n,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===y,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===m;if(t||n)return s("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield h(e);if(!(null==e?void 0:e.enabled))return!0;const r=c();return null!==r?r:yield new Promise((e,t)=>{try{if(!C)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{s("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);C.onTcfReady(()=>{s("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),C.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},S=(...e)=>t(void 0,[...e],void 0,function*(e=u.get()){const{tcf:n,pageContext:{isMobileApp:o,countryCode:r}={}}=e;if(null==n?void 0:n.schibstedConsentToPayEnabled){const e=yield((e,n,o,...r)=>t(void 0,[e,n,o,...r],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return s(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=O(e,0,n);return(yield r())?(s(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(s(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}))(n,o,r,"glimr");return e}const{getConsentAsync:i}=O(n,0,r);return yield i()}),A=()=>t(void 0,void 0,void 0,function*(){const{glimr:e}=u.get();if(!(yield S())||!(null==e?void 0:e.enabled))return void s("No consent for glimr data fetching.");const n=yield(o=500,t(void 0,void 0,void 0,function*(){return yield Promise.race([t(void 0,void 0,void 0,function*(){const e=yield import("./glimr-Crymyq4O.js").then(function(e){return e.g});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),o))])}));var o;if(n)try{n.setTagCacheTimeInSeconds(300),yield new Promise(t=>{n.getTags(e.clientId,(e,n)=>{f.setWithTimestamp(v,{tags:e,tagMappings:n}),t(!0)})})}catch(e){s(`Error during getting glimr data: ${e}`)}else s("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:n})}),E={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"},P=e=>p.some(t=>e.startsWith(t)),_=e=>e.startsWith("glgc_"),j=e=>!P(e)&&!_(e),M=(e,n)=>t(void 0,void 0,void 0,function*(){const{addPublisherToGeo:t}=n||{},{glimr:o,pageContext:{countryCode:r}={}}=e,i=yield S(e);if(!(null==o?void 0:o.enabled)||!i)return s("No consent for getting glimr tags."),{};const a=(e=>e===m?"no-sno":"se-generic")(r),l=N(e,Boolean(t));return{[`${a}-geo`]:l.geoTags,[`${a}-weather`]:l.weatherTags,[`${a}-geofence`]:l.geofenceTags}}),N=(e,t)=>{const n=x();if(!n)return b;const o=((e=[])=>e.filter(P))(n),r=((e=[])=>e.filter(_))(n),i=((e=[],t,n)=>{var o;const r=e.filter(j);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=E[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:i,geofenceTags:r,weatherTags:o}},x=()=>{const e=f.getByTimestamp(v);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};export{M as getGlimrKeywords,A as updateGlimr};
|
|
1
|
+
import{g as e}from"./glimr-sdk-B7FY2YN8.js";function t(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})}var n,o;"function"==typeof SuppressedError&&SuppressedError;var r=e(function(){if(o)return n;o=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 r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var o={};return n.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=r(e[t],n)}),a(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))}),o}function c(t,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(t)?a?o.arrayMerge(t,n,o):l(t,n,o):r(n,o)}return c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})},n=c}());const i=["placements","takeover","refreshConfig","editory"],a={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},s=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},l=(e,t)=>{console.warn("[Advertory WARN]: ",e)},c=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||l("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||l("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||l("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||l("pageContext.deviceType is required."),n||l("pageOptions is required."),o||l("placements is required."),(null==r?void 0:r.defaultThreshold)||l("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,r;const i=e.pageSectionsSelectors,a=[{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===(o=e.fullscreenScroll)||void 0===o?void 0:o.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 a)e&&!(null==i?void 0:i[t])&&l(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class d{set(e){c(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 i){const o=e[n];void 0!==o&&(t[n]=o)}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(d.DEFAULT_SITE_HANDLERS,e)}}d.DEFAULT_SITE_HANDLERS={siteEvents:a,initNativeAd:function(){}};const u=new d;u.modifyConfigProperties.bind(u);const g=864e5,f=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return s("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=g)=>{const r={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(r))},getByTimestamp:(t,n=g)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return s("Error with parsing localStorage data"),null}}}})(),v="glimrTags",p=["glwe_","glwet_"],h={geofenceTags:[],geoTags:[],weatherTags:[]},m=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 s("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const r=e=>{o||(s("Resolving advertising permission value obtained"),o=!0,t(e))},i=setTimeout(()=>{s("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{s("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const t=Number(e);s("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),b="no",y="se",w="cmp:loaded";let C="undefined"!=typeof window?window._tcf_:void 0,T=!1;const O=(e,n,o)=>{const r=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,a=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const c=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(s("TCF bypass param detected, returning consent: true"),!0):(s("TCF is not enabled, returning consent: true"),!0))(r,a))return!0;if(T)return null;if(!C)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=C.getConsentedToAllSync();return s(`TCF consented to all is: ${t}`),C.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(s("Getting TCF consent manager..."),window._tcf_)return s("TCF consent manager is already available"),C=window._tcf_,void e(C);s("TCF consent manager is not available");const n=()=>{s("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(C=window._tcf_,e(C)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(w,n),T=!0,t(new Error("Timeout waiting for CMP to load"))},i);s("Listening for CMP loaded event..."),document.addEventListener(w,n,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===y,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===b;if(t||n)return s("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield m(e);if(!(null==e?void 0:e.enabled))return!0;const r=c();return null!==r?r:yield new Promise((e,t)=>{try{if(!C)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{s("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);C.onTcfReady(()=>{s("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),C.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},S=(...e)=>t(void 0,[...e],void 0,function*(e=u.get()){const{tcf:n,pageContext:{isMobileApp:o,countryCode:r}={}}=e;if(null==n?void 0:n.schibstedConsentToPayEnabled){const e=yield((e,n,o,...r)=>t(void 0,[e,n,o,...r],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return s(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=O(e,0,n);return(yield r())?(s(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(s(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}))(n,o,r,"glimr");return e}const{getConsentAsync:i}=O(n,0,r);return yield i()}),A=()=>t(void 0,void 0,void 0,function*(){const{glimr:e}=u.get();if(!(yield S())||!(null==e?void 0:e.enabled))return void s("No consent for glimr data fetching.");const n=yield(o=500,t(void 0,void 0,void 0,function*(){return yield Promise.race([t(void 0,void 0,void 0,function*(){const e=yield import("./glimr-Crymyq4O.js").then(function(e){return e.g});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),o))])}));var o;if(n)try{n.setTagCacheTimeInSeconds(300),yield new Promise(t=>{n.getTags(e.clientId,(e,n)=>{f.setWithTimestamp(v,{tags:e,tagMappings:n}),t(!0)})})}catch(e){s(`Error during getting glimr data: ${e}`)}else s("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:n})}),E={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"},P=e=>p.some(t=>e.startsWith(t)),_=e=>e.startsWith("glgc_"),j=e=>!P(e)&&!_(e),M=(e,n)=>t(void 0,void 0,void 0,function*(){const{addPublisherToGeo:t}=n||{},{glimr:o,pageContext:{countryCode:r}={}}=e,i=yield S(e);if(!(null==o?void 0:o.enabled)||!i)return s("No consent for getting glimr tags."),{};const a=(e=>e===b?"no-sno":"se-generic")(r),l=N(e,Boolean(t));return{[`${a}-geo`]:l.geoTags,[`${a}-weather`]:l.weatherTags,[`${a}-geofence`]:l.geofenceTags}}),N=(e,t)=>{const n=x();if(!n)return h;const o=((e=[])=>e.filter(P))(n),r=((e=[])=>e.filter(_))(n),i=((e=[],t,n)=>{var o;const r=e.filter(j);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=E[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:i,geofenceTags:r,weatherTags:o}},x=()=>{const e=f.getByTimestamp(v);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};export{M as getGlimrKeywords,A as updateGlimr};
|
package/godare/cjs/index.d.ts
CHANGED
|
@@ -207,6 +207,7 @@ interface AstDefineTagParams {
|
|
|
207
207
|
safeframeConfig?: SafeFrameConfig;
|
|
208
208
|
dynamicSizeWidthCheck?: boolean;
|
|
209
209
|
allowSmallerSizes?: boolean;
|
|
210
|
+
globalPlacementId?: string;
|
|
210
211
|
}
|
|
211
212
|
interface SafeFrameConfig {
|
|
212
213
|
allowExpansionByPush?: boolean;
|
|
@@ -437,7 +438,7 @@ interface SiteConfig {
|
|
|
437
438
|
drEdition?: DrEditionConfig;
|
|
438
439
|
kilkaya?: KilkayaConfig;
|
|
439
440
|
rightColumnSplit?: RightColumnSplitConfig;
|
|
440
|
-
|
|
441
|
+
editory?: EditoryConfig;
|
|
441
442
|
adScaleConfig?: AdScaleConfig;
|
|
442
443
|
widescreenSwitching?: WidescreenSwitchingConfig;
|
|
443
444
|
fullWidth?: FullWidthConfig;
|
|
@@ -731,9 +732,12 @@ interface RightColumnSplitConfig {
|
|
|
731
732
|
trackSelector?: string;
|
|
732
733
|
}
|
|
733
734
|
interface EditableConfigurationConfig {
|
|
734
|
-
|
|
735
|
+
enabled?: boolean;
|
|
735
736
|
pageTypeToFetch?: string;
|
|
736
737
|
}
|
|
738
|
+
interface EditoryConfig {
|
|
739
|
+
editableConfiguration?: EditableConfigurationConfig;
|
|
740
|
+
}
|
|
737
741
|
interface AdScaleConfig {
|
|
738
742
|
enabled: boolean;
|
|
739
743
|
adsToBeScaled: Partial<Record<DeviceType, Array<string>>>;
|