@schibsted/advertory 3.8.2 → 3.9.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 +16 -2
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.d.ts +16 -2
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.d.ts +23 -3
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-CuZOOTrg.js +1 -0
- package/aftenposten/es/{events-De_XNEBM.js → events-C5u9PVF0.js} +1 -1
- package/aftenposten/es/{index-Da8uFqzx.js → index--ICKuVqQ.js} +1 -1
- package/aftenposten/es/{index-B7UHaEno.js → index-B7n4b1dc.js} +1 -1
- package/aftenposten/es/index-B8F94V3r.js +1 -0
- package/aftenposten/es/{index-B3x9U_np.js → index-CFJwjN6C.js} +1 -1
- package/aftenposten/es/{index-VOwb1-CL.js → index-Cwd9idd4.js} +1 -1
- package/aftenposten/es/{index-byvqoWAP.js → index-DPxMBcHY.js} +1 -1
- package/aftenposten/es/{index-BHm7lsx2.js → index-Dh9gaDr5.js} +1 -1
- package/aftenposten/es/{index-Ch1D86AR.js → index-DnWiCQEi.js} +1 -1
- package/aftenposten/es/{index-BV_dKGpc.js → index-DqJcFZDB.js} +1 -1
- package/aftenposten/es/index.d.ts +23 -3
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-D1aw7RIX.js → styles-C4k2OgXZ.js} +1 -1
- package/aftenposten/es/{styles-YQI095fL.js → styles-CfIcBsnO.js} +1 -1
- package/aftenposten/es/{styles-C_8vXBqx.js → styles-D3XIATun.js} +1 -1
- package/aftenposten/es/{styles-CWFBs4ne.js → styles-DA5edeQS.js} +1 -1
- package/aftenposten/es/{styles-KS3U53wj.js → styles-DKupwGXD.js} +1 -1
- package/aftenposten/es/{styles-CBFAj7Fm.js → styles-DexMlq7C.js} +1 -1
- package/aftenposten/es/{styles-DEs_UpWO.js → styles-DjNjfnDk.js} +1 -1
- package/aftenposten/es/{styles-C8ijfuku.js → styles-DlqjGyzO.js} +1 -1
- package/aftenposten/es/{styles-CAT38yg3.js → styles-DttRpXc3.js} +1 -1
- package/aftenposten/es/{styles-CeZGWfIU.js → styles-xYGc9kPZ.js} +1 -1
- package/aftenposten/styles.css +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BXl0FJ01.js +1 -0
- package/aftenpostenv2/es/{events-CfDwPQrw.js → events-BDeF4GuQ.js} +1 -1
- package/aftenpostenv2/es/{index-BKlohwao.js → index-BFcUEljT.js} +1 -1
- package/aftenpostenv2/es/{index-D1aIRnUZ.js → index-BIkvCkqw.js} +1 -1
- package/aftenpostenv2/es/{index-oDJuhPBQ.js → index-BOYmJs7G.js} +1 -1
- package/aftenpostenv2/es/index-CIoimw5r.js +1 -0
- package/aftenpostenv2/es/{index-DgO4gFc5.js → index-CLudG6lr.js} +1 -1
- package/aftenpostenv2/es/{index-DAs9vIRw.js → index-DFb-18Hs.js} +1 -1
- package/aftenpostenv2/es/{index-Dr6jLiGs.js → index-DWJMsl8I.js} +1 -1
- package/aftenpostenv2/es/{index-NYx6fWvA.js → index-DqwKVXtR.js} +1 -1
- package/aftenpostenv2/es/{index-DFViuUoO.js → index-DtVqe3JZ.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +23 -3
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-Bl_D9xGC.js → styles-B1wxexSY.js} +1 -1
- package/aftenpostenv2/es/{styles-BZE6JppJ.js → styles-CFZ_NdGB.js} +1 -1
- package/aftenpostenv2/es/{styles-D7fjqJQd.js → styles-CG7EbvVF.js} +1 -1
- package/aftenpostenv2/es/{styles-CZjNLLvW.js → styles-COqWiHKx.js} +1 -1
- package/aftenpostenv2/es/{styles-CV4lpabF.js → styles-CQ86Y_UZ.js} +1 -1
- package/aftenpostenv2/es/{styles-O7gV6Qrl.js → styles-CbJrZ00K.js} +1 -1
- package/aftenpostenv2/es/{styles-DtY8Z7kN.js → styles-CyHw-a1N.js} +1 -1
- package/aftenpostenv2/es/{styles-CAJXl1qf.js → styles-CzbdoAcS.js} +1 -1
- package/aftenpostenv2/es/{styles-Dohlbq1G.js → styles-DUTuRg1r.js} +1 -1
- package/aftenpostenv2/es/{styles-BZ7cApks.js → styles-g1bg4X5I.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +23 -3
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-BEO4HopU.js +1 -0
- package/aftonbladet/es/{events-CPtNggCH.js → events-MBii8RJz.js} +1 -1
- package/aftonbladet/es/{index-y69nVZXL.js → index-BHKVF3fd.js} +1 -1
- package/aftonbladet/es/{index-IgbhxHBl.js → index-BIBbPxUN.js} +1 -1
- package/aftonbladet/es/index-CI4iwCT4.js +1 -0
- package/aftonbladet/es/{index-B0uNKLi7.js → index-C_fAT5Dj.js} +1 -1
- package/aftonbladet/es/{index-UAPHZ46B.js → index-CxWXzVF4.js} +1 -1
- package/aftonbladet/es/{index-CGvXxUI9.js → index-DJnLxeho.js} +1 -1
- package/aftonbladet/es/{index-C4UHH9uB.js → index-KC1gH-3a.js} +1 -1
- package/aftonbladet/es/{index-O9XAZLg-.js → index-TEgwsWT0.js} +1 -1
- package/aftonbladet/es/{index-BYclcrdN.js → index-xwwxv7eA.js} +1 -1
- package/aftonbladet/es/index.d.ts +23 -3
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-CX11sHS2.js → styles-B2qoV3Ud.js} +1 -1
- package/aftonbladet/es/{styles-CuGCFAMf.js → styles-BPDpyCtB.js} +1 -1
- package/aftonbladet/es/{styles-BiUXUtgT.js → styles-ClqS9bpg.js} +1 -1
- package/aftonbladet/es/{styles-creIo6N0.js → styles-CwrRdCtI.js} +1 -1
- package/aftonbladet/es/{styles-BIBN63xd.js → styles-DtwomKE2.js} +1 -1
- package/aftonbladet/es/{styles-G7ASfQkT.js → styles-NsWV6P-C.js} +1 -1
- package/aftonbladet/styles.css +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-lB2SKLJz.js +1 -0
- package/aftonbladetv2/es/{events-BkfmXiwJ.js → events-BvYRg0da.js} +1 -1
- package/aftonbladetv2/es/{index-DHPHZn9c.js → index-9J0ibtVP.js} +1 -1
- package/aftonbladetv2/es/{index-DS0gpXw2.js → index-Bm9a22kK.js} +1 -1
- package/aftonbladetv2/es/{index-300aBK0_.js → index-CHN0nrWK.js} +1 -1
- package/aftonbladetv2/es/{index-BJEUXBJd.js → index-CP6vk8Hw.js} +1 -1
- package/aftonbladetv2/es/{index-SK0tPuYM.js → index-DNR3jkwa.js} +1 -1
- package/aftonbladetv2/es/{index-BwFYOnLe.js → index-DQ6P_XYV.js} +1 -1
- package/aftonbladetv2/es/{index-DevH6YEa.js → index-DjOPjwA_.js} +1 -1
- package/aftonbladetv2/es/index-_lahIVWi.js +1 -0
- package/aftonbladetv2/es/{index-CKmdujqd.js → index-lSOIhhXs.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +23 -3
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-Del3d0DG.js → styles-29W8EaOf.js} +1 -1
- package/aftonbladetv2/es/{styles-DSB9Drj0.js → styles-BVzAtCbB.js} +1 -1
- package/aftonbladetv2/es/{styles-By-8BpsU.js → styles-CbLnjM-N.js} +1 -1
- package/aftonbladetv2/es/{styles-CfH7i6fq.js → styles-CfDcYpJr.js} +1 -1
- package/aftonbladetv2/es/{styles-BhflNv9C.js → styles-Cz72_Y7R.js} +1 -1
- package/aftonbladetv2/es/{styles-KA24xWg3.js → styles-DU9MmZTT.js} +1 -1
- package/aftonbladetv2/styles.css +1 -1
- package/brandmetrics/cjs/index.js +1 -1
- package/brandmetrics/es/index.js +1 -1
- package/bt/cjs/index.d.ts +23 -3
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-3yUxnPqO.js +1 -0
- package/bt/es/{events-vSYaQpFL.js → events-C9MJvhY-.js} +1 -1
- package/bt/es/{index-Cd7JVwYt.js → index-BIJVD8Dl.js} +1 -1
- package/bt/es/{index-CFspLHrW.js → index-C6ELcMBu.js} +1 -1
- package/bt/es/index-C6b5IlFV.js +1 -0
- package/bt/es/{index-CXiG1BV4.js → index-CPONiEYb.js} +1 -1
- package/{sa/es/index-Dl_qOeD7.js → bt/es/index-CvCbmQEe.js} +1 -1
- package/bt/es/{index-LPJqSZxd.js → index-DKPN_YcZ.js} +1 -1
- package/bt/es/{index-CQK46sRg.js → index-DqriOpkp.js} +1 -1
- package/{sa/es/index-DdgPDdmL.js → bt/es/index-GeFPrRyv.js} +1 -1
- package/bt/es/{index-DMMviw4a.js → index-Pwk9kHv-.js} +1 -1
- package/bt/es/index.d.ts +23 -3
- package/bt/es/index.js +1 -1
- package/{sa/es/styles-BqMi_QI_.js → bt/es/styles-1u2QT7Fw.js} +1 -1
- package/bt/es/{styles-CRCM5dyr.js → styles-7-78H6e6.js} +1 -1
- package/bt/es/{styles-C30uJwWr.js → styles-B1cUb6SH.js} +1 -1
- package/bt/es/{styles-DwrXYYT9.js → styles-B_wNTDPN.js} +1 -1
- package/bt/es/{styles-CLv5x1Fm.js → styles-BtTAaePE.js} +1 -1
- package/bt/es/{styles-HRjZr8ls.js → styles-COOK6SIy.js} +1 -1
- package/bt/es/{styles-BvfpqrqJ.js → styles-Cl8KzOND.js} +1 -1
- package/{sa/es/styles-CxItiM4V.js → bt/es/styles-CoBh5oyN.js} +1 -1
- package/{sa/es/styles-P8QXzT5E.js → bt/es/styles-z7-TrHJk.js} +1 -1
- package/btv2/es/_auto-entry_btv2-Wfvr-0kI.js +1 -0
- package/{omni/es/events-DSHEjWEq.js → btv2/es/events-BUFrhuQX.js} +1 -1
- package/btv2/es/{index-DWBQKRfM.js → index-B1yjQp8N.js} +1 -1
- package/btv2/es/{index-DqqQy-HT.js → index-BIlcFh7D.js} +1 -1
- package/btv2/es/{index-DUxfRiOK.js → index-BVXG2L-o.js} +1 -1
- package/btv2/es/{index-Dr7u-b0Z.js → index-BynM05fq.js} +1 -1
- package/btv2/es/index-CfC_QaSq.js +1 -0
- package/btv2/es/{index-XaZLb9oD.js → index-DWwORwK2.js} +1 -1
- package/btv2/es/{index-CtiH9OpA.js → index-Z8GlQPjz.js} +1 -1
- package/btv2/es/{index-DTXO71jJ.js → index-iUnK_gxt.js} +1 -1
- package/btv2/es/{index-BbIRLslS.js → index-jKixVDHE.js} +1 -1
- package/btv2/es/index.d.ts +23 -3
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-mlsKL0G-.js → btv2/es/styles-BCbSGrlJ.js} +1 -1
- package/{sav2/es/styles-Ch9IBDfZ.js → btv2/es/styles-BnoPWSGN.js} +1 -1
- package/{sav2/es/styles-B4_KBpTZ.js → btv2/es/styles-C2a5SKqb.js} +1 -1
- package/{sav2/es/styles-B_3-whkG.js → btv2/es/styles-CKaOJYil.js} +1 -1
- package/btv2/es/{styles-D-e4qQRV.js → styles-CccCoH6D.js} +1 -1
- package/btv2/es/{styles-Ds87Oq3a.js → styles-DTbzHjym.js} +1 -1
- package/btv2/es/{styles-CHWL1hTn.js → styles-P55sXX35.js} +1 -1
- package/{vgv2/es/styles-C9Rn4nW7.js → btv2/es/styles-waKHMN6k.js} +1 -1
- package/common/cjs/index.js +1 -1
- package/common/es/index.js +1 -1
- package/dr-edition/cjs/index.d.ts +16 -2
- package/dr-edition/es/index.d.ts +16 -2
- package/e24/es/_auto-entry_e24-wYPA0ji6.js +1 -0
- package/e24/es/{events-CbpNuAuB.js → events-CPLroU1U.js} +1 -1
- package/e24/es/{index-CyCFEqzA.js → index-BTIugQeB.js} +1 -1
- package/e24/es/{index-ClnLIdMN.js → index-BYWGZI5X.js} +1 -1
- package/e24/es/index-Bw8tRu3o.js +1 -0
- package/e24/es/{index-NM1PaXW4.js → index-Cs_AXTkg.js} +1 -1
- package/e24/es/{index-C5a9EymD.js → index-D11ueYXf.js} +1 -1
- package/e24/es/{index-CVF6ZO96.js → index-D1ejFMLf.js} +1 -1
- package/e24/es/{index-DsUqXQT6.js → index-DBNXn_xy.js} +1 -1
- package/e24/es/{index-CYT1tNCp.js → index-DRJAlwGJ.js} +1 -1
- package/e24/es/{index-Dog6tp3N.js → index-DwvvvYtP.js} +1 -1
- package/e24/es/index.d.ts +23 -3
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-BX3I89mP.js → styles-B94XdU83.js} +1 -1
- package/e24/es/{styles-BhL647LP.js → styles-Bj2eYyVI.js} +1 -1
- package/e24/es/{styles-U53WHYLF.js → styles-BwAwT2Pf.js} +1 -1
- package/e24/es/{styles-DhLQ_8OP.js → styles-BxW11dxZ.js} +1 -1
- package/e24/es/{styles-Bb2UTZSa.js → styles-Cqt6TYgb.js} +1 -1
- package/e24/es/{styles-Bk0HjfcV.js → styles-DA2Dzkna.js} +1 -1
- package/e24/es/{styles-CnS4yjdb.js → styles-DGVYL94d.js} +1 -1
- package/e24/es/{styles-2P3d8sbR.js → styles-DX3RJxam.js} +1 -1
- package/e24/es/{styles-BnL1UDz0.js → styles-YxayLmbP.js} +1 -1
- package/{tv4/es/styles-CwJ7BYLW.js → e24/es/styles-j2tvqYAB.js} +1 -1
- package/e24/es/{styles-DgFCm_0I.js → styles-mUTrLuxN.js} +1 -1
- package/editory/cjs/index.d.ts +16 -2
- package/editory/cjs/index.js +1 -1
- package/editory/es/index.d.ts +16 -2
- package/editory/es/index.js +1 -1
- package/fotbollskanalen/cjs/index.d.ts +23 -3
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DHfPSYwC.js +1 -0
- package/fotbollskanalen/es/{events-DoLXyFbE.js → events-DhGoXo9G.js} +1 -1
- package/fotbollskanalen/es/{index-DGEGftA6.js → index-4wHfjSlu.js} +1 -1
- package/fotbollskanalen/es/index-BeESyiwi.js +1 -0
- package/fotbollskanalen/es/{index-BCgy2dTJ.js → index-CZBayMKW.js} +1 -1
- package/fotbollskanalen/es/{index-BeeQLR-6.js → index-Cu3ZnyR6.js} +1 -1
- package/fotbollskanalen/es/{index-D40vdQup.js → index-DCOuEnjg.js} +1 -1
- package/fotbollskanalen/es/{index-B2FpyhX_.js → index-DWYgJnwg.js} +1 -1
- package/fotbollskanalen/es/{index-BQxih9it.js → index-DhVglpdL.js} +1 -1
- package/fotbollskanalen/es/{index-DR6h-w6x.js → index-Dw1_d_VA.js} +1 -1
- package/fotbollskanalen/es/{index-DwKOrrUc.js → index-u0qOegJH.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +23 -3
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-BAiocxKr.js → styles-DP9rtrHX.js} +1 -1
- package/fotbollskanalen/es/{styles-CmMTN857.js → styles-XYMr9zkd.js} +1 -1
- package/fotbollskanalen/es/{styles-BWeGtOl5.js → styles-uTKP14L3.js} +1 -1
- package/glimr/cjs/index.js +1 -1
- package/glimr/es/index.js +1 -1
- package/godt/cjs/index.d.ts +23 -3
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +16 -2
- package/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.d.ts +16 -2
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.d.ts +23 -3
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +23 -3
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-BVcgjIWt.js +1 -0
- package/koket/es/{events-CxlMC0Pe.js → events-6LCCHuf-.js} +1 -1
- package/koket/es/{index-B-67vUiq.js → index-0dCHEkH0.js} +1 -1
- package/koket/es/{index-CNEDz5Tp.js → index-B4t_R1zf.js} +1 -1
- package/koket/es/{index-CubByMLk.js → index-BFf-E9qh.js} +1 -1
- package/koket/es/{index-qSi107Kc.js → index-BIATBMkd.js} +1 -1
- package/koket/es/{index-BF1VkH6H.js → index-BOG56Y-s.js} +1 -1
- package/koket/es/index-BUe0OVty.js +1 -0
- package/koket/es/{index-BpuSaMGD.js → index-DgIbvEk4.js} +1 -1
- package/koket/es/{index-CGiWf9n3.js → index-DtfCbUqO.js} +1 -1
- package/{svdv2/es/index-B6rBneoU.js → koket/es/index-iI6c65Nq.js} +1 -1
- package/koket/es/index.d.ts +23 -3
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-CO82pHn7.js → styles-CcRXJ_mV.js} +1 -1
- package/{svdv2/es/styles-CexHBws-.js → koket/es/styles-DBqrZJ4L.js} +1 -1
- package/koket/es/{styles-BprjAY4k.js → styles-DT6YHndJ.js} +1 -1
- package/minmote/cjs/index.d.ts +23 -3
- package/minmote/cjs/index.js +1 -1
- package/omni/es/_auto-entry_omni-BKT9NlKt.js +1 -0
- package/{tvnu/es/events-ChwR2t1s.js → omni/es/events-CogHzF8X.js} +1 -1
- package/omni/es/{index-DGGKxokR.js → index-B15R_7XF.js} +1 -1
- package/omni/es/index-BABqCLLq.js +1 -0
- package/omni/es/{index-DAzmS8rf.js → index-Bt9cgFZ-.js} +1 -1
- package/omni/es/{index-DaQ_dmdJ.js → index-CGxXpTiC.js} +1 -1
- package/omni/es/{index-DB-tHP7y.js → index-DRqL3tiS.js} +1 -1
- package/{sav2/es/index-DBh48a5m.js → omni/es/index-DURQZpI1.js} +1 -1
- package/omni/es/{index-CkdVm9dg.js → index-DdhApfDo.js} +1 -1
- package/omni/es/{index-Bsp823kV.js → index-uMLx2gHS.js} +1 -1
- package/omni/es/{index-DCvgtrOp.js → index-yaDa09sa.js} +1 -1
- package/omni/es/index.d.ts +23 -3
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-BWj6vkZn.js → styles-Dvy7iSh5.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +23 -3
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +23 -3
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-CuYCkRC6.js +1 -0
- package/sa/es/{events-DOd0Afsf.js → events-DAHMwW_e.js} +1 -1
- package/{bt/es/index-CzZ1T04Q.js → sa/es/index-09rUAzem.js} +1 -1
- package/sa/es/{index-rVMp4gTY.js → index-BfctA8E2.js} +1 -1
- package/{vg/es/index-DaWeGVT5.js → sa/es/index-BqKGk5jY.js} +1 -1
- package/sa/es/{index-DB-irIgL.js → index-C9tNcvjy.js} +1 -1
- package/sa/es/{index-DfMDaJEr.js → index-CxpAf_XM.js} +1 -1
- package/sa/es/{index-CF2R1msU.js → index-DqGM7FdG.js} +1 -1
- package/sa/es/{index-2W8OGyqy.js → index-hXfeYXcX.js} +1 -1
- package/{bt/es/index-CO7gdXUq.js → sa/es/index-pGnxPr5A.js} +1 -1
- package/sa/es/index-w3irufo2.js +1 -0
- package/sa/es/index.d.ts +23 -3
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-C6P3u2TZ.js → styles-C7pZ1XBS.js} +1 -1
- package/sa/es/{styles-qxoHZT8g.js → styles-CB6b9tKz.js} +1 -1
- package/{vg/es/styles-BAjUTIsG.js → sa/es/styles-CBEoeVgw.js} +1 -1
- package/sa/es/{styles-4NfTfqd_.js → styles-CfvXvgjF.js} +1 -1
- package/{bt/es/styles-CBk605Zp.js → sa/es/styles-ChS5Hcsx.js} +1 -1
- package/sa/es/{styles-B4yEaoh8.js → styles-CiVbyIAU.js} +1 -1
- package/{vg/es/styles-DrM756ll.js → sa/es/styles-DW-MYRDP.js} +1 -1
- package/{bt/es/styles-pkgvXGWy.js → sa/es/styles-DyQgvzLs.js} +1 -1
- package/sa/es/{styles-BXDzS_7d.js → styles-Vqdajbb8.js} +1 -1
- package/sav2/es/_auto-entry_sav2-D-u9aUEk.js +1 -0
- package/sav2/es/{events-BhAqx0NN.js → events-Bm_ejb_G.js} +1 -1
- package/sav2/es/{index-zqpWwCoI.js → index-9M3eQzWk.js} +1 -1
- package/sav2/es/index-BVE5IsDH.js +1 -0
- package/{tvnu/es/index-Cpt8AoVv.js → sav2/es/index-BWt6p5vf.js} +1 -1
- package/sav2/es/{index-BP7pgjOi.js → index-C1v6ONJf.js} +1 -1
- package/sav2/es/{index-D0gF_y-V.js → index-Cb07js6i.js} +1 -1
- package/sav2/es/{index-BHFXrYso.js → index-DLl6CkEZ.js} +1 -1
- package/sav2/es/{index-bVrgZbvT.js → index-DQuoo7tu.js} +1 -1
- package/{vgv2/es/index-B9JpqDA_.js → sav2/es/index-Dqjf1Ma7.js} +1 -1
- package/sav2/es/{index-Cdu-uTu5.js → index-UCjIih4E.js} +1 -1
- package/sav2/es/index.d.ts +23 -3
- package/sav2/es/index.js +1 -1
- package/{vgv2/es/styles-BxNfnhvc.js → sav2/es/styles-30V8p9Ei.js} +1 -1
- package/{btv2/es/styles-I8q89v-L.js → sav2/es/styles-3Vp7Tlxe.js} +1 -1
- package/{vgv2/es/styles-BOkY4s5z.js → sav2/es/styles-BBAZHFc8.js} +1 -1
- package/sav2/es/{styles-B4He93ZM.js → styles-ChMssAyz.js} +1 -1
- package/{vgv2/es/styles-bcAOnG6k.js → sav2/es/styles-DMzS_SBX.js} +1 -1
- package/{btv2/es/styles-RwTxlja5.js → sav2/es/styles-KmCCflHF.js} +1 -1
- package/sav2/es/{styles-BBlsfaRJ.js → styles-cH5zE_Ej.js} +1 -1
- package/sav2/es/{styles--IGQOzlG.js → styles-ue2279T_.js} +1 -1
- package/svd/cjs/index.d.ts +23 -3
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-B_dR0M__.js +1 -0
- package/svd/es/{events-CABWdVCF.js → events-BlyzNwD6.js} +1 -1
- package/svd/es/index--5E-_IBc.js +1 -0
- package/svd/es/{index-DBclz1lr.js → index-B6eGRb_D.js} +1 -1
- package/svd/es/{index-BC16HRDo.js → index-BTEd_LrX.js} +1 -1
- package/svd/es/{index-BREo8EqT.js → index-Bz7V7U8t.js} +1 -1
- package/svd/es/{index-DLnd39Bp.js → index-C-78DFuv.js} +1 -1
- package/svd/es/{index-BTOZLqYu.js → index-CLTzk2UP.js} +1 -1
- package/svd/es/{index-Dr3NDEo0.js → index-CmbrT1DY.js} +1 -1
- package/svd/es/{index-D379on78.js → index-Cvn84NVe.js} +1 -1
- package/svd/es/{index-B8g3j-UO.js → index-cbZyZ41n.js} +1 -1
- package/svd/es/index.d.ts +23 -3
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-q4nezI7T.js → styles-BDMn7X-z.js} +1 -1
- package/svd/es/{styles-Cr3ZWIa3.js → styles-CCTRK-VH.js} +1 -1
- package/svd/es/{styles-Cul3Jfb9.js → styles-Ce5rb8Cj.js} +1 -1
- package/svd/es/{styles-jKYtLIsC.js → styles-DnehSsh8.js} +1 -1
- package/svd/es/{styles-CcjXlYV8.js → styles-DxzEkgQn.js} +1 -1
- package/svd/es/{styles-B0gdVVui.js → styles-umijz7MP.js} +1 -1
- package/svd/styles.css +1 -1
- package/svdv2/es/_auto-entry_svdv2-Ch92LmpU.js +1 -0
- package/svdv2/es/{events-CpKtSVLE.js → events-DiiTKHD1.js} +1 -1
- package/svdv2/es/{index-D4SnoNeU.js → index-BhrjbHC4.js} +1 -1
- package/{koket/es/index-rs-OV2C2.js → svdv2/es/index-CIS2NBoC.js} +1 -1
- package/svdv2/es/{index-Dr_AGYPr.js → index-CeEW1Ejp.js} +1 -1
- package/svdv2/es/{index-DCGsg_oz.js → index-CrUQU9h4.js} +1 -1
- package/svdv2/es/{index-Bn_LbUGh.js → index-DMEU8X4c.js} +1 -1
- package/svdv2/es/{index-QXU9gcPR.js → index-De9ZmQNy.js} +1 -1
- package/svdv2/es/{index-DF9-ecNl.js → index-GF7KL6sz.js} +1 -1
- package/svdv2/es/index-U451sS6_.js +1 -0
- package/svdv2/es/{index-B9IKK2qC.js → index-z-pbeRcc.js} +1 -1
- package/svdv2/es/index.d.ts +23 -3
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles-BOKkBfgU.js → svdv2/es/styles-0psng0gE.js} +1 -1
- package/svdv2/es/{styles-CEjjfjYH.js → styles-BGKC9KSQ.js} +1 -1
- package/svdv2/es/{styles-C7-ltrsv.js → styles-BN5diuGI.js} +1 -1
- package/svdv2/es/{styles-BundofIV.js → styles-BolXnzQm.js} +1 -1
- package/svdv2/es/{styles-DRWeMnQb.js → styles-DiTs4sHY.js} +1 -1
- package/svdv2/es/{styles-C4hOZPfR.js → styles-DwpPk1Hd.js} +1 -1
- package/svdv2/styles.css +1 -1
- package/tek/cjs/index.d.ts +23 -3
- package/tek/cjs/index.js +1 -1
- package/tracker/cjs/index.d.ts +16 -2
- package/tracker/es/index.d.ts +16 -2
- package/tv4/cjs/index.d.ts +23 -3
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-DdDbZbqV.js +1 -0
- package/tv4/es/{events-CHMrMwjZ.js → events-Dy98-0gN.js} +1 -1
- package/tv4/es/{index-CSDwi5H5.js → index-9UDcWNPe.js} +1 -1
- package/tv4/es/index-CEKVGOx4.js +1 -0
- package/tv4/es/{index-4XrehjG8.js → index-CJkSmTnd.js} +1 -1
- package/tv4/es/{index-BXmX5BFY.js → index-CVc1e08y.js} +1 -1
- package/tv4/es/{index-BCZtrwrU.js → index-DHELahhE.js} +1 -1
- package/tv4/es/{index-Dona4q4B.js → index-DKqSrDAg.js} +1 -1
- package/tv4/es/{index-fe_l3drg.js → index-DioHx2HA.js} +1 -1
- package/tv4/es/{index-CrRlTy6H.js → index-N6xtIF9P.js} +1 -1
- package/tv4/es/{index-Co64wylw.js → index-fYufsWne.js} +1 -1
- package/tv4/es/index.d.ts +23 -3
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-ITrX4mRs.js → styles-BvJEVYZo.js} +1 -1
- package/tv4/es/{styles-DbNMe3dR.js → styles-DgmaJMiI.js} +1 -1
- package/{e24/es/styles-DQnblQ-e.js → tv4/es/styles-PMs6ZmdH.js} +1 -1
- package/tvnu/cjs/index.d.ts +23 -3
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-G5A1zqUB.js +1 -0
- package/{btv2/es/events-DKfTqaRt.js → tvnu/es/events-B158cY-i.js} +1 -1
- package/tvnu/es/{index-CR1PvPV7.js → index-Bd1xEb5Y.js} +1 -1
- package/tvnu/es/{index-CojvHFIp.js → index-BpwUFeW1.js} +1 -1
- package/{sav2/es/index-C3b_LXUu.js → tvnu/es/index-Bv_w_Bwg.js} +1 -1
- package/tvnu/es/{index-CBAbZBXX.js → index-Bvz07aF_.js} +1 -1
- package/tvnu/es/{index-BzTcFYRI.js → index-C5MxwLjd.js} +1 -1
- package/tvnu/es/index-CLrpGCMt.js +1 -0
- package/tvnu/es/{index-JQxZSr45.js → index-DPaLXQjX.js} +1 -1
- package/tvnu/es/{index-Dgaf--Vi.js → index-ZpbJGlLo.js} +1 -1
- package/{omni/es/index-B-A0WAt_.js → tvnu/es/index-aHwdJg2C.js} +1 -1
- package/tvnu/es/index.d.ts +23 -3
- package/tvnu/es/index.js +1 -1
- package/{btv2/es/styles-Dnx9c-Rd.js → tvnu/es/styles-CY_eOUgO.js} +1 -1
- package/tvnu/es/{styles-DpMy4BKZ.js → styles-S1y0WjE-.js} +1 -1
- package/types/index.d.ts +23 -3
- package/vg/cjs/index.d.ts +23 -3
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-CjqE54dS.js +1 -0
- package/vg/es/{events-4e8ic4JW.js → events-lUCpvQb5.js} +1 -1
- package/vg/es/{index-BckJy1hN.js → index-BHlXcqJc.js} +1 -1
- package/vg/es/{index-CHsg0739.js → index-BIulONOf.js} +1 -1
- package/{sa/es/index-BiMl7dWD.js → vg/es/index-BJi-QVAv.js} +1 -1
- package/vg/es/{index-CHvLGzoc.js → index-CMxG82l8.js} +1 -1
- package/vg/es/index-ClD3ElrA.js +1 -0
- package/vg/es/{index-Cy3WeRRV.js → index-DjZ7SGq1.js} +1 -1
- package/vg/es/{index-CNy3j9j6.js → index-FPdoLHu8.js} +1 -1
- package/vg/es/{index-Is4ynno0.js → index-faU0HhzX.js} +1 -1
- package/vg/es/{index-CAe4kSWr.js → index-iZZTHOjx.js} +1 -1
- package/vg/es/index.d.ts +23 -3
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-BCn-8mdK.js → styles-B4BR_ydZ.js} +1 -1
- package/vg/es/{styles-BpLZyb2l.js → styles-BUyBk_4e.js} +1 -1
- package/{bt/es/styles-CgLUOmWs.js → vg/es/styles-BdmuVc4H.js} +1 -1
- package/vg/es/{styles-C0FAiivL.js → styles-Bu-Hajjg.js} +1 -1
- package/vg/es/{styles-EO4Z04eS.js → styles-Buw5zFpP.js} +1 -1
- package/vg/es/{styles-B8CMoKLB.js → styles-C-4_7G5C.js} +1 -1
- package/{sa/es/styles-DigC3QK3.js → vg/es/styles-C-7Xhku6.js} +1 -1
- package/vg/es/{styles-ClR8adLs.js → styles-CG1aVs8L.js} +1 -1
- package/vg/es/{styles-CfXvGBax.js → styles-CSOyluV6.js} +1 -1
- package/vg/es/{styles-W1laIZ6S.js → styles-Cb5yE_EI.js} +1 -1
- package/vg/es/{styles-zJ39jql2.js → styles-CeIeBDyP.js} +1 -1
- package/vg/es/{styles-CQgjpbmw.js → styles-CmmjTUoa.js} +1 -1
- package/vg/es/{styles-bIv4Q47_.js → styles-DzlGagE8.js} +1 -1
- package/vg/es/{styles-D6Rg-ulX.js → styles-KZ2glX5N.js} +1 -1
- package/vg/es/{styles-9ECHynlH.js → styles-jTMMC0Oy.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-DMRmCnNF.js +1 -0
- package/vgv2/es/{events-4ylFIDYC.js → events-Dsdq7E_j.js} +1 -1
- package/vgv2/es/{index-VWpvgpvl.js → index-438xX8Px.js} +1 -1
- package/vgv2/es/index-BXypP1nQ.js +1 -0
- package/vgv2/es/{index-CEsTB_kN.js → index-CZIBtass.js} +1 -1
- package/{tvnu/es/index-BZCzeImC.js → vgv2/es/index-CegyZuAB.js} +1 -1
- package/vgv2/es/{index-dLtCjpUS.js → index-CozQyEKS.js} +1 -1
- package/vgv2/es/{index-BM-vkMOt.js → index-DQDuNoQN.js} +1 -1
- package/vgv2/es/{index-CFXDbRQf.js → index-IRJOgoWt.js} +1 -1
- package/vgv2/es/{index-BVPA8uep.js → index-Yx0CBEyO.js} +1 -1
- package/vgv2/es/{index-CHrr1VyU.js → index-pAxZwoOU.js} +1 -1
- package/vgv2/es/index.d.ts +23 -3
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-D3HCr2vT.js → styles-BNgngtw0.js} +1 -1
- package/vgv2/es/{styles-DtcAZIpd.js → styles-BpQwHO4d.js} +1 -1
- package/vgv2/es/{styles-DwNwjaEO.js → styles-C2-IzwR2.js} +1 -1
- package/{sav2/es/styles-CoizTY-s.js → vgv2/es/styles-CEcnINNS.js} +1 -1
- package/vgv2/es/{styles-CCNC1prS.js → styles-COmAoSDL.js} +1 -1
- package/vgv2/es/{styles-DHEg0KlQ.js → styles-CtV0tjcn.js} +1 -1
- package/vgv2/es/{styles-D7i1H034.js → styles-D0PaSccJ.js} +1 -1
- package/vgv2/es/{styles-bwUKzTlr.js → styles-D2KoRDSx.js} +1 -1
- package/{btv2/es/styles-CBZi2Vg7.js → vgv2/es/styles-D3XTOuas.js} +1 -1
- package/vgv2/es/{styles-BCGHoGS4.js → styles-DWJ_EMpn.js} +1 -1
- package/{tvnu/es/styles-DYbgH_Or.js → vgv2/es/styles-D_lSWh7D.js} +1 -1
- package/vgv2/es/{styles-B5z33JF9.js → styles-DrW5Y_sp.js} +1 -1
- package/{btv2/es/styles-BNAOpime.js → vgv2/es/styles-Du0oMdYa.js} +1 -1
- package/vgv2/es/{styles-SYespUPX.js → styles-Rh_ty11t.js} +1 -1
- package/vgv2/es/{styles-D0IA2Lg4.js → styles-sdP2BY8I.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-BCyk6yXn.js +0 -1
- package/aftenposten/es/index-_VQ1JPu8.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-D-Gf-aaT.js +0 -1
- package/aftenpostenv2/es/index-DOEt8rhF.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-fp81TE2z.js +0 -1
- package/aftonbladet/es/index-ByRtNlAq.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DAnOR99S.js +0 -1
- package/aftonbladetv2/es/index--xnbkaCV.js +0 -1
- package/bt/es/_auto-entry_bt-DdPlAew1.js +0 -1
- package/bt/es/index-UcG1XQgN.js +0 -1
- package/btv2/es/_auto-entry_btv2-CwxbGr-F.js +0 -1
- package/btv2/es/index-CplLJxhV.js +0 -1
- package/e24/es/_auto-entry_e24-xOYSZLi0.js +0 -1
- package/e24/es/index-DZuxNX1s.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-BN9R-Vte.js +0 -1
- package/fotbollskanalen/es/index-z4kH-WyA.js +0 -1
- package/koket/es/_auto-entry_koket-C0ijoPG-.js +0 -1
- package/koket/es/index-BVn2HWkJ.js +0 -1
- package/omni/es/_auto-entry_omni-BmtNR1x1.js +0 -1
- package/omni/es/index-CrKNO2Un.js +0 -1
- package/sa/es/_auto-entry_sa-D5OZvzUI.js +0 -1
- package/sa/es/index-CP1Yj4Ka.js +0 -1
- package/sav2/es/_auto-entry_sav2-Dv-SxFhr.js +0 -1
- package/sav2/es/index-BkthDzfu.js +0 -1
- package/svd/es/_auto-entry_svd-C0m9gdEF.js +0 -1
- package/svd/es/index-BtcpqwMH.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-BB3jweAN.js +0 -1
- package/svdv2/es/index-BvP6-sDg.js +0 -1
- package/tv4/es/_auto-entry_tv4-C36OAWyu.js +0 -1
- package/tv4/es/index-BD9W0hNC.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-BdPpWEQt.js +0 -1
- package/tvnu/es/index-CeG83sJw.js +0 -1
- package/vg/es/_auto-entry_vg-U9mW36wb.js +0 -1
- package/vg/es/index-CldVNTKo.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-D-c2xkPT.js +0 -1
- package/vgv2/es/index-BfhIVMSm.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,N as t,R as n,U as a,V as r,W as l,l as i,X as s,Y as o,h as c,Z as d}from"./_auto-entry_fotbollskanalen-BN9R-Vte.js";import{jsxs as u,jsx as p}from"react/jsx-runtime";class g{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const l=r.split("/");return l.length?[...l.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class m{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,l,i,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)||void 0===s||s.call(i,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,l,i;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(i=(l=this.pulse).trackElementClick)||void 0===i||i.call(l,s)})}}class h extends m{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,l,i;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(i=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===i?void 0:i.call(l,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const y=/^glci_/,k="gender_",f="geo_",b="male",P="female";class w extends m{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:a="",clientName:r="",creativeId:l="",link:i=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:o}=this.getPlacementData(e),c={publicUrl:i,urlPath:i?new URL(i).pathname:""},{publicUrl:d,urlPath:u}=i&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,i))||c;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:s,primaryPosition:o},tags:[r,a,d,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":l,pageTitle:a,publicUrl:d,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const I="[data-k5a-teaser-analytics]",E=(e,n,a,r)=>{const l=document.querySelectorAll("k5a-stream");if(!l.length)return;const i=new(r===t.SE?w:h)(e,n,a),s=new WeakMap,o=e=>{const t=s.get(e);t&&(t.disconnect(),s.delete(e))},c=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(I);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(i.trackContentView(n),t.unobserve(e.target),o(n)):((e,t)=>{if(s.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(I);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(i.trackContentView(e),t.unobserve(e),o(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),s.set(e,n)})(n,t)})},{threshold:.5});l.forEach(e=>{c.observe(e),e.addEventListener("click",()=>i.trackContentClick(e))})},T=()=>e(void 0,void 0,void 0,function*(){try{const a=yield(t=500,e(void 0,void 0,void 0,function*(){return Promise.race([r(),new Promise(e=>setTimeout(()=>e(void 0),t))])})),l=new n(a),i=yield l.getIdentityUser(),{gender:s}=null!=i?i:{};return s===b||s===P?`${k}${s}`:void 0}catch(e){return}var t}),S=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield T(),n=(()=>{const e=a().map(e=>`${f}${e.replace(y,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class U{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===l.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class A{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class D{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===l.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class O{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class j{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:a}}){if(!(null==e?void 0:e.instance))return;const r={[d.VG]:new g,[d.E24]:new U,"no-aftenposten":new A,[d.BT]:new D,"no-bergenstidende":new D,[d.SA]:new K,"no-stavangeraftenblad":new K,[d.SVD]:new C,[d.AFTONBLADET]:new O}[n]||new v;E(e.instance,r,t,a)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield S();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";s(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield o(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:l},kilkaya:i}=t;if(!(null==i?void 0:i.enabled))return;const s=yield c(a,r,l,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=i.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const N=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:l})=>{const i=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=i(r,"data-pulse"),o=i(l,"data");return u("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[p("div",{className:"inscreen-target"}),p("k5a-stream",{name:e,"slot-tag":t}),p("div",{className:"container"}),p("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},L=t=>e(void 0,void 0,void 0,function*(){const e=new j;yield e.run(t)});export{N as Kilkaya,L as runKilkaya};
|
|
1
|
+
import{_ as e,N as t,R as n,U as a,V as r,W as l,l as i,X as s,Y as o,h as c,Z as d}from"./_auto-entry_fotbollskanalen-DHfPSYwC.js";import{jsxs as u,jsx as p}from"react/jsx-runtime";class g{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const l=r.split("/");return l.length?[...l.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class m{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,l,i,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)||void 0===s||s.call(i,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,l,i;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(i=(l=this.pulse).trackElementClick)||void 0===i||i.call(l,s)})}}class h extends m{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,l,i;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(i=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===i?void 0:i.call(l,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const y=/^glci_/,k="gender_",f="geo_",b="male",P="female";class w extends m{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:a="",clientName:r="",creativeId:l="",link:i=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:o}=this.getPlacementData(e),c={publicUrl:i,urlPath:i?new URL(i).pathname:""},{publicUrl:d,urlPath:u}=i&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,i))||c;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:s,primaryPosition:o},tags:[r,a,d,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":l,pageTitle:a,publicUrl:d,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const I="[data-k5a-teaser-analytics]",E=(e,n,a,r)=>{const l=document.querySelectorAll("k5a-stream");if(!l.length)return;const i=new(r===t.SE?w:h)(e,n,a),s=new WeakMap,o=e=>{const t=s.get(e);t&&(t.disconnect(),s.delete(e))},c=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(I);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(i.trackContentView(n),t.unobserve(e.target),o(n)):((e,t)=>{if(s.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(I);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(i.trackContentView(e),t.unobserve(e),o(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),s.set(e,n)})(n,t)})},{threshold:.5});l.forEach(e=>{c.observe(e),e.addEventListener("click",()=>i.trackContentClick(e))})},T=()=>e(void 0,void 0,void 0,function*(){try{const a=yield(t=500,e(void 0,void 0,void 0,function*(){return Promise.race([r(),new Promise(e=>setTimeout(()=>e(void 0),t))])})),l=new n(a),i=yield l.getIdentityUser(),{gender:s}=null!=i?i:{};return s===b||s===P?`${k}${s}`:void 0}catch(e){return}var t}),S=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield T(),n=(()=>{const e=a().map(e=>`${f}${e.replace(y,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class U{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===l.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class A{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class D{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===l.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class O{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class j{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:a}}){if(!(null==e?void 0:e.instance))return;const r={[d.VG]:new g,[d.E24]:new U,"no-aftenposten":new A,[d.BT]:new D,"no-bergenstidende":new D,[d.SA]:new K,"no-stavangeraftenblad":new K,[d.SVD]:new C,[d.AFTONBLADET]:new O}[n]||new v;E(e.instance,r,t,a)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield S();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";s(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield o(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:l},kilkaya:i}=t;if(!(null==i?void 0:i.enabled))return;const s=yield c(a,r,l,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=i.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const N=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:l})=>{const i=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=i(r,"data-pulse"),o=i(l,"data");return u("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[p("div",{className:"inscreen-target"}),p("k5a-stream",{name:e,"slot-tag":t}),p("div",{className:"container"}),p("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},L=t=>e(void 0,void 0,void 0,function*(){const e=new j;yield e.run(t)});export{N as Kilkaya,L as runKilkaya};
|
|
@@ -459,6 +459,12 @@ interface PageContext {
|
|
|
459
459
|
deviceType: DeviceType;
|
|
460
460
|
isMobileApp?: boolean;
|
|
461
461
|
}
|
|
462
|
+
type EditoryPageContext = Partial<PageContext> & Required<Pick<PageContext, 'deviceType'>>;
|
|
463
|
+
type EditoryPageOptions = Partial<AstPageOptions> & Required<Pick<AstPageOptions, 'keywords'>>;
|
|
464
|
+
type EditorySiteConfig = Partial<Omit<SiteConfig, 'pageContext' | 'pageOptions'>> & {
|
|
465
|
+
pageContext: EditoryPageContext;
|
|
466
|
+
pageOptions: EditoryPageOptions;
|
|
467
|
+
};
|
|
462
468
|
interface PageSetup {
|
|
463
469
|
pageOptions?: PageSetupPageOptions;
|
|
464
470
|
tag?: PageSetupTag;
|
|
@@ -649,6 +655,7 @@ interface FullscreenScrollOptions {
|
|
|
649
655
|
overlayStyles?: OverlayStyles;
|
|
650
656
|
cogwheelPosition?: CogwheelPosition;
|
|
651
657
|
iosSafeAreaTopFix?: string;
|
|
658
|
+
annonsLabel?: string;
|
|
652
659
|
}
|
|
653
660
|
interface FullscreenScrollConfig {
|
|
654
661
|
enabled: boolean;
|
|
@@ -659,14 +666,26 @@ interface WelcomePageConfig {
|
|
|
659
666
|
buttonLabel?: string;
|
|
660
667
|
showCloseButton?: boolean;
|
|
661
668
|
}
|
|
662
|
-
interface
|
|
669
|
+
interface LogotypeVariant {
|
|
663
670
|
url: string;
|
|
664
671
|
alt: string;
|
|
665
672
|
}
|
|
666
|
-
interface
|
|
673
|
+
interface Logotype extends LogotypeVariant {
|
|
674
|
+
darkMode?: {
|
|
675
|
+
url?: string;
|
|
676
|
+
alt?: string;
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
interface ThemeColorsVariant {
|
|
667
680
|
backgroundColor: string;
|
|
668
681
|
color: string;
|
|
669
682
|
}
|
|
683
|
+
interface ThemeColors extends ThemeColorsVariant {
|
|
684
|
+
darkMode?: {
|
|
685
|
+
backgroundColor?: string;
|
|
686
|
+
color?: string;
|
|
687
|
+
};
|
|
688
|
+
}
|
|
670
689
|
interface SplashConfig {
|
|
671
690
|
themeColors?: ThemeColors;
|
|
672
691
|
buttonLabel: string;
|
|
@@ -739,6 +758,7 @@ interface RightColumnSplitConfig {
|
|
|
739
758
|
interface EditableConfigurationConfig {
|
|
740
759
|
enabled?: boolean;
|
|
741
760
|
pageTypeToFetch?: string;
|
|
761
|
+
section?: string;
|
|
742
762
|
}
|
|
743
763
|
interface AdNativeBuilderConfig {
|
|
744
764
|
enabled?: boolean;
|
|
@@ -847,7 +867,7 @@ interface VideoStream {
|
|
|
847
867
|
}
|
|
848
868
|
|
|
849
869
|
interface Advertory {
|
|
850
|
-
init: (config: SiteConfig) => Promise<void>;
|
|
870
|
+
init: (config: SiteConfig | EditorySiteConfig) => Promise<void>;
|
|
851
871
|
update: (configToUpdate?: Partial<SiteConfig>, options?: UpdateAdvertoryConfig) => Promise<Array<Placement>>;
|
|
852
872
|
getVideoPPIDs: (country: Country) => Promise<string>;
|
|
853
873
|
createInitNativeAd: (config: CreateInitNativeAdConfig) => InitNativeAd;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a0 as Takeover,$ as default}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
export{a0 as Takeover,$ as default}from"./_auto-entry_fotbollskanalen-DHfPSYwC.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as a}from"./_auto-entry_fotbollskanalen-DHfPSYwC.js";import"react/jsx-runtime";a('.advertory-fotbollskanalen-ad-native-default{border-top:4px solid #2a72dd;position:relative;font-family:var(--font-quattro-new, Roboto, Arial, sans-serif);font-weight:750;font-style:normal;background-color:var(--color-default-box, #ffffff);color:var(--text-color, #000000);width:100%}.advertory-fotbollskanalen-ad-native-default .ad-info{top:2px;right:0;position:absolute;height:26px;width:26px;z-index:1000;border-bottom-left-radius:13px;border-top-right-radius:13px}.advertory-fotbollskanalen-ad-native-default .ad-link{color:inherit;text-decoration:none;display:block}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content{border-left:1px solid rgba(34,34,34,.1);border-right:1px solid rgba(34,34,34,.1);border-bottom:1px solid rgba(34,34,34,.1);display:flex;flex-direction:column}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-header{display:flex;padding:8px 16px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-header .ad-annonse{font-size:14px;font-weight:bold;color:var(--color-primary-link, #2a72dd);content:"ANNONS";display:inline-block;text-align:left;vertical-align:middle}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content{padding:8px 16px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-subtitle{font-family:var(--font-quattro-new, Roboto, Arial, sans-serif);font-weight:normal;font-size:15px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-subtitle .ad-sponsored{color:var(--color-primary-link, #2a72dd);font-weight:bold;text-transform:uppercase}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-title{font-weight:750;font-size:30px;letter-spacing:-1px;line-height:1.08;margin:0 0 4px}@media screen and (min-width: 768px){.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-title{font-size:54px;letter-spacing:-1.8px}}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-image-container .ad-image{position:relative;width:100%;height:100%;aspect-ratio:2.8;object-fit:cover;object-position:center}@media(prefers-color-scheme: dark){.advertory-fotbollskanalen-ad-native-default{background-color:var(--color-default-box, #222222);color:var(--text-color, #ffffff)}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as o}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as o}from"./_auto-entry_fotbollskanalen-DHfPSYwC.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as e}from"./_auto-entry_fotbollskanalen-DHfPSYwC.js";import"react/jsx-runtime";e(".advertory-shared-ad-native-video{width:100%;min-height:250px;height:auto;margin:auto;text-align:left;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}@media screen and (min-width: 768px){.advertory-shared-ad-native-video{width:580px}}.advertory-shared-ad-native-video .ad-info{position:absolute;top:2px;right:24px}.advertory-shared-ad-native-video .ad-info .gdprAdTransparencyCogWheelButton{background-color:rgba(0,0,0,0);border-bottom-right-radius:13px;z-index:10}.advertory-shared-ad-native-video a.ad-link{display:block;text-decoration:none;color:#2b2b2b}.advertory-shared-ad-native-video a.ad-link:hover{text-decoration:none}.advertory-shared-ad-native-video .ad-content .ad-header{font-size:12px;padding:5px 8px;color:#4c3d00;background:rgba(255,205,0,.8);font-weight:bold}.advertory-shared-ad-native-video .ad-content .ad-image-container{position:relative;line-height:0}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-image-container{min-height:300px}}.advertory-shared-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:56.4971751412vw;width:100%}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:326px}}.advertory-shared-ad-native-video .ad-content .ad-text-container{background:#fff6d1;overflow:auto;padding-bottom:15px;padding-left:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container{background:#fff6d1;padding-left:16px;overflow:auto}}.advertory-shared-ad-native-video .ad-content .ad-text-container .sponsored-by{margin:8px 16px 8px 0;color:#64625a;font-size:10px;text-transform:uppercase;display:block;font-weight:600}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container .sponsored-by{font-size:12px}}.advertory-shared-ad-native-video .ad-content .ad-text-container .title{line-height:1;margin:8px 0;font-weight:bold;font-size:20px;font-family:Arial,sans-serif}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container .title{font-size:22px}}");
|
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(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(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 i=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 i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map(function(e){return i(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]=i(e[t],n)}),s(t).forEach(function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))}),r}function d(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=i;var s=Array.isArray(t);return s===Array.isArray(e)?s?r.arrayMerge(e,t,r):l(e,t,r):i(t,r)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},e=d}(),o=n.getDefaultExportFromCjs(i);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))},d=(e,t)=>{console.warn("[Advertory WARN]: ",e)},c=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=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."),r||d("placements is required."),(null==i?void 0:i.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;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===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class u{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 s){const r=e[n];void 0!==r&&(t[n]=r)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=o(u.DEFAULT_SITE_HANDLERS,e)}}u.DEFAULT_SITE_HANDLERS={siteEvents:a,initNativeAd:()=>{}};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 i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},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",h=["glwe_","glwet_"],m={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 i=e=>{r||(l("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{l("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{l("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);l("Advertising permission value obtained asynchronously: ",e),i(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 i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,s=(a="bypass_tcf",new URLSearchParams(window.location.search).get(a));var a;const d=()=>{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))(i,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"))},o);l("Listening for CMP loaded event..."),document.addEventListener(C,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,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 i=d();return null!==i?i: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)},o);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:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,n,...i)=>r(void 0,[e,t,n,...i],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:i}=S(e,0,n);return(yield i())?(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,i,"glimr");return e}const{getConsentAsync:o}=S(t,0,i);return yield o()}),E={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},_=e=>h.some(t=>e.startsWith(t)),P=e=>e.startsWith("glgc_"),j=e=>e.startsWith("glci_"),M=e=>!_(e)&&!P(e),x=(e,t)=>{const n=N();if(!n)return m;const r=((e=[])=>e.filter(_))(n),i=((e=[])=>e.filter(P))(n),o=((e=[],t,n)=>{var r;const i=e.filter(M);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=E[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:o,geofenceTags:i,weatherTags:r}},N=()=>{const e=v.getByTimestamp(p);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};exports.getCityTags=()=>{var e;return((e=[])=>e.filter(j))(null!==(e=N())&&void 0!==e?e:[])},exports.getGlimrKeywords=(e,t)=>r(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:i}={}}=e,o=yield A(e);if(!(null==r?void 0:r.enabled)||!o)return l("No consent for getting glimr tags."),{};const s=(e=>e===y?"no-sno":"se-generic")(i),a=x(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})});
|
|
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)?d((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 d;var n=t.customMerge(e);return"function"==typeof n?n:d}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))}),r}function d(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 d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},e=d}(),i=n.getDefaultExportFromCjs(o);const a={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},s=(e,t)=>i(e,t,a),l={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},d=(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)},u=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.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];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)},g=["placements","takeover","refreshConfig","editory"],f=(e,t)=>Object.assign(Object.assign({},e),t),v={editory:(e,t)=>{var n;return s(null!==(n=e)&&void 0!==n?n:{},t)},pageContext:f,pageOptions:f,tcf:f};class p{set(e){u(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n={};for(const e of g){const r=t[e];void 0===r||e in v||(n[e]=r)}Object.assign(e,n);const r=e;for(const e of Object.keys(v))Object.hasOwn(t,e)&&void 0!==t[e]&&(r[e]=v[e](r[e],t[e]))})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=s(p.DEFAULT_SITE_HANDLERS,e)}}p.DEFAULT_SITE_HANDLERS={siteEvents:l,initNativeAd:()=>{}};const m=new p;m.modifyConfigProperties.bind(m);const b=864e5,y=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return d("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=b)=>{const o={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(o))},getByTimestamp:(t,n=b)=>{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 d("Error with parsing localStorage data"),null}}}})(),h="glimrTags",w=["glwe_","glwet_"],C={geofenceTags:[],geoTags:[],weatherTags:[]},T=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 d("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const o=e=>{r||(d("Resolving advertising permission value obtained"),r=!0,t(e))},i=setTimeout(()=>{d("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{d("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const t=Number(e);d("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),S="no",A="se",O="cmp:loaded";let E="undefined"!=typeof window?window._tcf_:void 0,_=!1;const P=(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 l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(d("TCF bypass param detected, returning consent: true"),!0):(d("TCF is not enabled, returning consent: true"),!0))(o,a))return!0;if(_)return null;if(!E)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=E.getConsentedToAllSync();return d(`TCF consented to all is: ${t}`),E.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(d("Getting TCF consent manager..."),window._tcf_)return d("TCF consent manager is already available"),E=window._tcf_,void e(E);d("TCF consent manager is not available");const n=()=>{d("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(E=window._tcf_,e(E)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(O,n),_=!0,t(new Error("Timeout waiting for CMP to load"))},i);d("Listening for CMP loaded event..."),document.addEventListener(O,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>r(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return d(`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===A,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===S;if(t||r)return d("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield T(e);if(!(null==e?void 0:e.enabled))return!0;const o=l();return null!==o?o:yield new Promise((e,t)=>{try{if(!E)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(()=>{d("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);E.onTcfReady(()=>{d("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),E.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},M=(...e)=>r(void 0,[...e],void 0,function*(e=m.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 d(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return d(`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}=P(e,0,n);return(yield o())?(d(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(d(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(t,n,o,"glimr");return e}const{getConsentAsync:i}=P(t,0,o);return yield i()}),j={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},N=e=>w.some(t=>e.startsWith(t)),x=e=>e.startsWith("glgc_"),F=e=>e.startsWith("glci_"),$=e=>!N(e)&&!x(e),R=(e,t)=>{const n=q();if(!n)return C;const r=((e=[])=>e.filter(N))(n),o=((e=[])=>e.filter(x))(n),i=((e=[],t,n)=>{var r;const o=e.filter($);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=j[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:i,geofenceTags:o,weatherTags:r}},q=()=>{const e=y.getByTimestamp(h);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};exports.getCityTags=()=>{var e;return((e=[])=>e.filter(F))(null!==(e=q())&&void 0!==e?e:[])},exports.getGlimrKeywords=(e,t)=>r(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield M(e);if(!(null==r?void 0:r.enabled)||!i)return d("No consent for getting glimr tags."),{};const a=(e=>e===S?"no-sno":"se-generic")(o),s=R(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}=m.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void d("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)=>{y.setWithTimestamp(h,{tags:e,tagMappings:t}),n(!0)})})}catch(e){d(`Error during getting glimr data: ${e}`)}else d("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,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(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())})}var n,r;"function"==typeof SuppressedError&&SuppressedError;var i=e(function(){if(r)return n;r=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 i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map(function(e){return i(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]=i(e[t],n)}),a(t).forEach(function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))}),r}function d(t,n,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=i;var a=Array.isArray(n);return a===Array.isArray(t)?a?r.arrayMerge(t,n,r):l(t,n,r):i(n,r)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},n=d}());const o=["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)},d=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=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."),r||l("placements is required."),(null==i?void 0:i.defaultThreshold)||l("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=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.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&l(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class c{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 o){const r=e[n];void 0!==r&&(t[n]=r)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=i(c.DEFAULT_SITE_HANDLERS,e)}}c.DEFAULT_SITE_HANDLERS={siteEvents:a,initNativeAd:()=>{}};const u=new c;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,r=g)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=g)=>{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 s("Error with parsing localStorage data"),null}}}})(),v="glimrTags",p=["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 s("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(s("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{s("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{s("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);s("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),m="no",y="se",w="cmp:loaded";let C="undefined"!=typeof window?window._tcf_:void 0,T=!1;const O=(e,n,r)=>{const i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,a=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const d=()=>{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))(i,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..."),r&&clearTimeout(r),window._tcf_?(C=window._tcf_,e(C)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(w,n),T=!0,t(new Error("Timeout waiting for CMP to load"))},o);s("Listening for CMP loaded event..."),document.addEventListener(w,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,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)&&r===y,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===m;if(t||n)return s("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield b(e);if(!(null==e?void 0:e.enabled))return!0;const i=d();return null!==i?i: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))},r=setTimeout(()=>{s("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);C.onTcfReady(()=>{s("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),C.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},S=(...e)=>t(void 0,[...e],void 0,function*(e=u.get()){const{tcf:n,pageContext:{isMobileApp:r,countryCode:i}={}}=e;if(null==n?void 0:n.schibstedConsentToPayEnabled){const e=yield((e,n,r,...i)=>t(void 0,[e,n,r,...i],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return s(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!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 ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=O(e,0,n);return(yield i())?(s(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(s(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(n,r,i,"glimr");return e}const{getConsentAsync:o}=O(n,0,i);return yield o()}),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(r=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),r))])}));var r;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",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},_=e=>p.some(t=>e.startsWith(t)),P=e=>e.startsWith("glgc_"),j=e=>e.startsWith("glci_"),M=e=>!_(e)&&!P(e),N=(e,n)=>t(void 0,void 0,void 0,function*(){const{addPublisherToGeo:t}=n||{},{glimr:r,pageContext:{countryCode:i}={}}=e,o=yield S(e);if(!(null==r?void 0:r.enabled)||!o)return s("No consent for getting glimr tags."),{};const a=(e=>e===m?"no-sno":"se-generic")(i),l=x(e,Boolean(t));return{[`${a}-geo`]:l.geoTags,[`${a}-weather`]:l.weatherTags,[`${a}-geofence`]:l.geofenceTags}}),x=(e,t)=>{const n=$();if(!n)return h;const r=((e=[])=>e.filter(_))(n),i=((e=[])=>e.filter(P))(n),o=((e=[],t,n)=>{var r;const i=e.filter(M);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=E[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:o,geofenceTags:i,weatherTags:r}},$=()=>{const e=f.getByTimestamp(v);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},F=()=>{var e;return((e=[])=>e.filter(j))(null!==(e=$())&&void 0!==e?e:[])};export{F as getCityTags,N as getGlimrKeywords,A as updateGlimr};
|
|
1
|
+
import{g as e}from"./glimr-sdk-B7FY2YN8.js";function n(e,n,t,r){return new(t||(t=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 n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,s)}l((r=r.apply(e,n||[])).next())})}var t,r;"function"==typeof SuppressedError&&SuppressedError;var o=e(function(){if(r)return t;r=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,n){return!1!==n.clone&&n.isMergeableObject(e)?d((t=e,Array.isArray(t)?[]:{}),e,n):e;var t}function i(e,n,t){return e.concat(n).map(function(e){return o(e,t)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return Object.propertyIsEnumerable.call(e,n)}):[]}(e))}function s(e,n){try{return n in e}catch(e){return!1}}function l(e,n,t){var r={};return t.isMergeableObject(e)&&a(e).forEach(function(n){r[n]=o(e[n],t)}),a(n).forEach(function(i){(function(e,n){return s(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))})(e,i)||(s(e,i)&&t.isMergeableObject(n[i])?r[i]=function(e,n){if(!n.customMerge)return d;var t=n.customMerge(e);return"function"==typeof t?t:d}(i,t)(e[i],n[i],t):r[i]=o(n[i],t))}),r}function d(n,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(n)?a?r.arrayMerge(n,t,r):l(n,t,r):o(t,r)}return d.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return d(e,t,n)},{})},t=d}());const i={arrayMerge:(e,n)=>n,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,n)=>o(e,n,i),s={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,n)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},l=(e,n)=>{const t="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(n?console.log(t,e,n):console.log(t,e))},d=(e,n)=>{console.warn("[Advertory WARN]: ",e)},c=e=>{(e=>{const{pageContext:n,pageOptions:t,placements:r,appearanceConfig:o}=null!=e?e:{};(null==n?void 0:n.publisher)||d("pageContext.publisher is required."),(null==n?void 0:n.countryCode)||d("pageContext.countryCode is required."),(null==n?void 0:n.pageType)||d("pageContext.pageType is required."),(null==n?void 0:n.deviceType)||d("pageContext.deviceType is required."),t||d("pageOptions is required."),r||d("placements is required."),(null==o?void 0:o.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var n,t,r,o;const i=e.pageSectionsSelectors,a=[{flag:!!(null===(n=e.takeover)||void 0===n?void 0:n.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(t=e.sponsorstripe)||void 0===t?void 0:t.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:n,featureName:t}of a)e&&!(null==i?void 0:i[n])&&d(`pageSectionsSelectors.${n} is required when ${t} is enabled.`)})(e)},u=["placements","takeover","refreshConfig","editory"],g=(e,n)=>Object.assign(Object.assign({},e),n),f={editory:(e,n)=>{var t;return a(null!==(t=e)&&void 0!==t?t:{},n)},pageContext:g,pageOptions:g,tcf:g};class v{set(e){c(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,n)=>{const t={};for(const e of u){const r=n[e];void 0===r||e in f||(t[e]=r)}Object.assign(e,t);const r=e;for(const e of Object.keys(f))Object.hasOwn(n,e)&&void 0!==n[e]&&(r[e]=f[e](r[e],n[e]))})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=a(v.DEFAULT_SITE_HANDLERS,e)}}v.DEFAULT_SITE_HANDLERS={siteEvents:s,initNativeAd:()=>{}};const p=new v;p.modifyConfigProperties.bind(p);const m=864e5,b=(()=>{const e=e=>{const n=window.localStorage.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch(e){return l("Error with parsing localStorage data"),null}},n=(e,n)=>{window.localStorage.setItem(e,JSON.stringify(n))};return{get:e,set:n,setWithTimestamp:(e,t,r=m)=>{const o={data:t,expirationTime:(new Date).getTime()+r};n(e,JSON.stringify(o))},getByTimestamp:(n,t=m)=>{const r=e(n);if(!r)return null;if(!t)return r;try{const{expirationTime:e,data:n}=JSON.parse(r);return(new Date).getTime()<=e?n:null}catch(e){return l("Error with parsing localStorage data"),null}}}})(),h="glimrTags",y=["glwe_","glwet_"],w={geofenceTags:[],geoTags:[],weatherTags:[]},C=e=>new Promise(n=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void n(!1);const t=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const n=Number(e);return l("Advertising permission value obtained synchronously: ",e),Boolean(n)})();if(null!==t)return void n(t);let r=!1;const o=e=>{r||(l("Resolving advertising permission value obtained"),r=!0,n(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 n=Number(e);l("Advertising permission value obtained asynchronously: ",e),o(Boolean(n))})}),T="no",S="se",A="cmp:loaded";let O="undefined"!=typeof window?window._tcf_:void 0,E=!1;const _=(e,t,r)=>{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 d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,n)=>e?!!n&&(l("TCF bypass param detected, returning consent: true"),!0):(l("TCF is not enabled, returning consent: true"),!0))(o,a))return!0;if(E)return null;if(!O)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const n=O.getConsentedToAllSync();return l(`TCF consented to all is: ${n}`),O.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,n)=>{if(l("Getting TCF consent manager..."),window._tcf_)return l("TCF consent manager is already available"),O=window._tcf_,void e(O);l("TCF consent manager is not available");const t=()=>{l("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(O=window._tcf_,e(O)):n(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(A,t),E=!0,n(new Error("Timeout waiting for CMP to load"))},i);l("Listening for CMP loaded event..."),document.addEventListener(A,t,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>n(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 n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===S,t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===T;if(n||t)return l("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield C(e);if(!(null==e?void 0:e.enabled))return!0;const o=d();return null!==o?o:yield new Promise((e,n)=>{try{if(!O)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let n=!1;const t=t=>{n||(n=!0,e(t))},r=setTimeout(()=>{l("TCF isConsentedToAll timed out, resolving with false"),t(!1)},i);O.onTcfReady(()=>{l("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),O.isConsentedToAll(n=>{clearTimeout(r),e(n)})}catch(e){n(e)}})})}},P=(...e)=>n(void 0,[...e],void 0,function*(e=p.get()){const{tcf:t,pageContext:{isMobileApp:r,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,r,...o)=>n(void 0,[e,t,r,...o],void 0,function*(e,n,t,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}=_(e,0,t);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,r,o,"glimr");return e}const{getConsentAsync:i}=_(t,0,o);return yield i()}),M=()=>n(void 0,void 0,void 0,function*(){const{glimr:e}=p.get();if(!(yield P())||!(null==e?void 0:e.enabled))return void l("No consent for glimr data fetching.");const t=yield(r=500,n(void 0,void 0,void 0,function*(){return yield Promise.race([n(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),r))])}));var r;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{b.setWithTimestamp(h,{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})}),j={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},N=e=>y.some(n=>e.startsWith(n)),x=e=>e.startsWith("glgc_"),$=e=>e.startsWith("glci_"),F=e=>!N(e)&&!x(e),R=(e,t)=>n(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield P(e);if(!(null==r?void 0:r.enabled)||!i)return l("No consent for getting glimr tags."),{};const a=(e=>e===T?"no-sno":"se-generic")(o),s=q(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),q=(e,n)=>{const t=L();if(!t)return w;const r=((e=[])=>e.filter(N))(t),o=((e=[])=>e.filter(x))(t),i=((e=[],n,t)=>{var r;const o=e.filter(F);if(t&&n){const{publisher:e}=null!==(r=n.pageContext)&&void 0!==r?r:{},t=j[e]||e;o.push(t)}return o})(t,e,n);return{geoTags:i,geofenceTags:o,weatherTags:r}},L=()=>{const e=b.getByTimestamp(h);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},k=()=>{var e;return((e=[])=>e.filter($))(null!==(e=L())&&void 0!==e?e:[])};export{k as getCityTags,R as getGlimrKeywords,M as updateGlimr};
|
package/godt/cjs/index.d.ts
CHANGED
|
@@ -459,6 +459,12 @@ interface PageContext {
|
|
|
459
459
|
deviceType: DeviceType;
|
|
460
460
|
isMobileApp?: boolean;
|
|
461
461
|
}
|
|
462
|
+
type EditoryPageContext = Partial<PageContext> & Required<Pick<PageContext, 'deviceType'>>;
|
|
463
|
+
type EditoryPageOptions = Partial<AstPageOptions> & Required<Pick<AstPageOptions, 'keywords'>>;
|
|
464
|
+
type EditorySiteConfig = Partial<Omit<SiteConfig, 'pageContext' | 'pageOptions'>> & {
|
|
465
|
+
pageContext: EditoryPageContext;
|
|
466
|
+
pageOptions: EditoryPageOptions;
|
|
467
|
+
};
|
|
462
468
|
interface PageSetup {
|
|
463
469
|
pageOptions?: PageSetupPageOptions;
|
|
464
470
|
tag?: PageSetupTag;
|
|
@@ -649,6 +655,7 @@ interface FullscreenScrollOptions {
|
|
|
649
655
|
overlayStyles?: OverlayStyles;
|
|
650
656
|
cogwheelPosition?: CogwheelPosition;
|
|
651
657
|
iosSafeAreaTopFix?: string;
|
|
658
|
+
annonsLabel?: string;
|
|
652
659
|
}
|
|
653
660
|
interface FullscreenScrollConfig {
|
|
654
661
|
enabled: boolean;
|
|
@@ -659,14 +666,26 @@ interface WelcomePageConfig {
|
|
|
659
666
|
buttonLabel?: string;
|
|
660
667
|
showCloseButton?: boolean;
|
|
661
668
|
}
|
|
662
|
-
interface
|
|
669
|
+
interface LogotypeVariant {
|
|
663
670
|
url: string;
|
|
664
671
|
alt: string;
|
|
665
672
|
}
|
|
666
|
-
interface
|
|
673
|
+
interface Logotype extends LogotypeVariant {
|
|
674
|
+
darkMode?: {
|
|
675
|
+
url?: string;
|
|
676
|
+
alt?: string;
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
interface ThemeColorsVariant {
|
|
667
680
|
backgroundColor: string;
|
|
668
681
|
color: string;
|
|
669
682
|
}
|
|
683
|
+
interface ThemeColors extends ThemeColorsVariant {
|
|
684
|
+
darkMode?: {
|
|
685
|
+
backgroundColor?: string;
|
|
686
|
+
color?: string;
|
|
687
|
+
};
|
|
688
|
+
}
|
|
670
689
|
interface SplashConfig {
|
|
671
690
|
themeColors?: ThemeColors;
|
|
672
691
|
buttonLabel: string;
|
|
@@ -739,6 +758,7 @@ interface RightColumnSplitConfig {
|
|
|
739
758
|
interface EditableConfigurationConfig {
|
|
740
759
|
enabled?: boolean;
|
|
741
760
|
pageTypeToFetch?: string;
|
|
761
|
+
section?: string;
|
|
742
762
|
}
|
|
743
763
|
interface AdNativeBuilderConfig {
|
|
744
764
|
enabled?: boolean;
|
|
@@ -847,7 +867,7 @@ interface VideoStream {
|
|
|
847
867
|
}
|
|
848
868
|
|
|
849
869
|
interface Advertory {
|
|
850
|
-
init: (config: SiteConfig) => Promise<void>;
|
|
870
|
+
init: (config: SiteConfig | EditorySiteConfig) => Promise<void>;
|
|
851
871
|
update: (configToUpdate?: Partial<SiteConfig>, options?: UpdateAdvertoryConfig) => Promise<Array<Placement>>;
|
|
852
872
|
getVideoPPIDs: (country: Country) => Promise<string>;
|
|
853
873
|
createInitNativeAd: (config: CreateInitNativeAdConfig) => InitNativeAd;
|