@schibsted/advertory 3.11.4 → 3.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.d.ts +11 -1
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-BCFSWw0C.js +1 -0
- package/aftenposten/es/{events-Ccj_hyG-.js → events-SEzD5VuW.js} +1 -1
- package/aftenposten/es/{index-CIl8iIWU.js → index-B5U6Fwke.js} +1 -1
- package/aftenposten/es/{index-Kh_7aXJ6.js → index-Bq-ERiBN.js} +1 -1
- package/aftenposten/es/{index-BJpGmhSP.js → index-CSPjUt_W.js} +1 -1
- package/aftenposten/es/{index-CoSX-XPA.js → index-D7mhCQMh.js} +1 -1
- package/aftenposten/es/{index-PdJJsBBD.js → index-DRS0_zRY.js} +1 -1
- package/aftenposten/es/{index-DEaV7xPZ.js → index-DTOJPTIk.js} +1 -1
- package/aftenposten/es/{index-iuCK31PD.js → index-DWPegaLx.js} +1 -1
- package/aftenposten/es/{index-Cr0Mj1lz.js → index-JfceP1Kn.js} +1 -1
- package/aftenposten/es/{index-Cv4LP8YQ.js → index-i_HRRUVo.js} +1 -1
- package/aftenposten/es/index.d.ts +11 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-B1DYDwkg.js → styles-C7L5sfge.js} +1 -1
- package/aftenposten/es/{styles-DD5wG0xb.js → styles-CT01eBDg.js} +1 -1
- package/aftenposten/es/{styles-DJ5IYmRR.js → styles-C_27TVCc.js} +1 -1
- package/aftenposten/es/{styles-Day-E1X5.js → styles-CnaEAPzZ.js} +1 -1
- package/aftenposten/es/{styles-DoMf6FTn.js → styles-Cpz6SUhv.js} +1 -1
- package/aftenposten/es/{styles-Cf8NYWq0.js → styles-DcDXOGzi.js} +1 -1
- package/aftenposten/es/{styles-C_maLT4U.js → styles-De-s7fmZ.js} +1 -1
- package/aftenposten/es/{styles-hUHjaXLn.js → styles-Dn5Hxli4.js} +1 -1
- package/aftenposten/es/{styles-DBZ6kAP9.js → styles-k7DnoS00.js} +1 -1
- package/aftenposten/es/{styles-Bm6FvEUA.js → styles-oDV4UnQE.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-P_8eVMva.js +1 -0
- package/aftenpostenv2/es/{events-QIJaNwGt.js → events-8mmD6zoh.js} +1 -1
- package/aftenpostenv2/es/{index-Buzv3ZIY.js → index-4QBjVCmo.js} +1 -1
- package/aftenpostenv2/es/{index-Ewe3b7d9.js → index-BZVdOI2K.js} +1 -1
- package/aftenpostenv2/es/{index-BtR5MLly.js → index-B_9Bv8Av.js} +1 -1
- package/aftenpostenv2/es/{index-CxV9Im-P.js → index-C0DFsWjI.js} +1 -1
- package/aftenpostenv2/es/{index-CYATFY3T.js → index-CDooln1R.js} +1 -1
- package/aftenpostenv2/es/{index-DWiKXFMY.js → index-CIhMa_3P.js} +1 -1
- package/aftenpostenv2/es/{index-BAviAWw-.js → index-CQXMOMEG.js} +1 -1
- package/aftenpostenv2/es/{index-BYNMysD1.js → index-DTzFVDj2.js} +1 -1
- package/aftenpostenv2/es/{index-C5MuFYwv.js → index-DZWMOk4I.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +11 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-6MHAxV1G.js → styles-BQoxbA3x.js} +1 -1
- package/aftenpostenv2/es/{styles-DiSU2UFS.js → styles-Bajk4MnU.js} +1 -1
- package/aftenpostenv2/es/{styles-yAg8NmZC.js → styles-BomiHI0X.js} +1 -1
- package/aftenpostenv2/es/{styles-4C7okTxZ.js → styles-C5cpOauD.js} +1 -1
- package/aftenpostenv2/es/{styles-CwWRVWvA.js → styles-DVFRZkZJ.js} +1 -1
- package/aftenpostenv2/es/{styles-9Lc9kTQO.js → styles-DspDBU1t.js} +1 -1
- package/aftenpostenv2/es/{styles-C-dv1sYj.js → styles-E9hUNjG9.js} +1 -1
- package/aftenpostenv2/es/{styles-BSeTCeZK.js → styles-cYgK7LdB.js} +1 -1
- package/aftenpostenv2/es/{styles-DfmWmZ2K.js → styles-hOm8pmGb.js} +1 -1
- package/aftenpostenv2/es/{styles-C9uSymMX.js → styles-o4KQaCrj.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +11 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-BQHbwJRM.js +1 -0
- package/aftonbladet/es/{events-DhfbFiPo.js → events-Bsz4SPaP.js} +1 -1
- package/aftonbladet/es/{index-BWbmoCIU.js → index-2mRHI9G0.js} +1 -1
- package/aftonbladet/es/{index-OmwD65ab.js → index-BZUU5a3e.js} +1 -1
- package/aftonbladet/es/{index-DH3EfdLp.js → index-C5RK1vrE.js} +1 -1
- package/aftonbladet/es/{index-Cfidrdnd.js → index-CQuyVL_Y.js} +1 -1
- package/aftonbladet/es/{index-Cp2JulSJ.js → index-ChjGu31R.js} +1 -1
- package/aftonbladet/es/{index-DJe_vj7O.js → index-D-Jcb6rp.js} +1 -1
- package/aftonbladet/es/{index-CsjLCdHr.js → index-D39x-BE0.js} +1 -1
- package/aftonbladet/es/{index-BYj88MA1.js → index-DSvXBFwU.js} +1 -1
- package/aftonbladet/es/{index-C5w-x5BX.js → index-gYO7CDuf.js} +1 -1
- package/aftonbladet/es/index.d.ts +11 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-HwY9E4bK.js → styles-BkFB39r8.js} +1 -1
- package/aftonbladet/es/{styles-DTiCYBZu.js → styles-C4Dhl8wc.js} +1 -1
- package/aftonbladet/es/{styles-Buckzq8l.js → styles-CPexHqPg.js} +1 -1
- package/aftonbladet/es/{styles-huj_2fOX.js → styles-DGrYrmeU.js} +1 -1
- package/aftonbladet/es/{styles-9miFAFkx.js → styles-cmHEV4z2.js} +1 -1
- package/aftonbladet/es/{styles-BI1L7SI4.js → styles-qRWc8OBX.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-C3FrCgEc.js +1 -0
- package/aftonbladetv2/es/{events-Dms4x6XL.js → events-239WIghQ.js} +1 -1
- package/aftonbladetv2/es/{index-ZlPHWpeX.js → index-BE0omApE.js} +1 -1
- package/aftonbladetv2/es/{index-DvCRUUOG.js → index-BIRF0ZPG.js} +1 -1
- package/aftonbladetv2/es/{index-x6UM4Clu.js → index-BdQIYNuS.js} +1 -1
- package/aftonbladetv2/es/{index-CKcdYsmz.js → index-C5krHHfp.js} +1 -1
- package/aftonbladetv2/es/{index-DsJe3gXo.js → index-D2RxgLs9.js} +1 -1
- package/aftonbladetv2/es/{index-Ct99Y0fg.js → index-DN0HNt-Y.js} +1 -1
- package/aftonbladetv2/es/{index-BnRszSE0.js → index-DX3W_5Vg.js} +1 -1
- package/aftonbladetv2/es/{index-BYCBLB57.js → index-DYnF_pf7.js} +1 -1
- package/aftonbladetv2/es/{index-XPieFyFs.js → index-p_MU8C4z.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +11 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-f3DH74p3.js → styles-1xPeadLr.js} +1 -1
- package/aftonbladetv2/es/{styles-D3cX3KDx.js → styles-B3Svelzb.js} +1 -1
- package/aftonbladetv2/es/{styles-L9zC1hFj.js → styles-BgqiVKcr.js} +1 -1
- package/aftonbladetv2/es/{styles-onzl2DAF.js → styles-D2nSf6Xw.js} +1 -1
- package/aftonbladetv2/es/{styles-C_YZWhmh.js → styles-DL_z7S8m.js} +1 -1
- package/aftonbladetv2/es/{styles-DOnb-fRZ.js → styles-DSoFClhc.js} +1 -1
- package/brandmetrics/cjs/index.js +1 -1
- package/brandmetrics/es/index.js +1 -1
- package/bt/cjs/index.d.ts +11 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-tOqN7IEk.js +1 -0
- package/bt/es/{events-DWFF0XlU.js → events-C9Emfz4X.js} +1 -1
- package/{sa/es/index-CP-nPIQE.js → bt/es/index-9nNqk9m5.js} +1 -1
- package/bt/es/{index-CeMqRLv9.js → index-BiK8vYf8.js} +1 -1
- package/bt/es/{index-DpvT-Rrq.js → index-BlKuBzKH.js} +1 -1
- package/{sa/es/index-DQnxrNq4.js → bt/es/index-C7xpLl6L.js} +1 -1
- package/bt/es/{index-DgGZRNce.js → index-CMLDbTpy.js} +1 -1
- package/bt/es/{index-FOIl5etK.js → index-Cfw2kPbW.js} +1 -1
- package/bt/es/{index-DAEf_J_m.js → index-DahqNMVx.js} +1 -1
- package/bt/es/{index-CpzuQsNV.js → index-ci3uA_vZ.js} +1 -1
- package/bt/es/{index-BccJjfqs.js → index-mq8xEWNe.js} +1 -1
- package/bt/es/index.d.ts +11 -1
- package/bt/es/index.js +1 -1
- package/{sa/es/styles-Bw7iQjmQ.js → bt/es/styles-81xnhgzw.js} +1 -1
- package/bt/es/{styles-liJVXEyL.js → styles-B97qfeVz.js} +1 -1
- package/bt/es/{styles-DOVb1LXQ.js → styles-BI7M61Yo.js} +1 -1
- package/{sa/es/styles-B_vZCwlP.js → bt/es/styles-BjnV_wJy.js} +1 -1
- package/bt/es/{styles-hUjXuztl.js → styles-BmQmckWG.js} +1 -1
- package/bt/es/{styles-DGilIOGm.js → styles-Bobrj9Nk.js} +1 -1
- package/bt/es/{styles-tvoIe4og.js → styles-DxxlUV7W.js} +1 -1
- package/bt/es/{styles-DScF1nIO.js → styles-fSIROIt1.js} +1 -1
- package/bt/es/{styles-2ahzQYLo.js → styles-o2FvW4jF.js} +1 -1
- package/btv2/es/_auto-entry_btv2-u3Fn9KkE.js +1 -0
- package/{omni/es/events-BuXhgHRk.js → btv2/es/events-Cr8xJHha.js} +1 -1
- package/btv2/es/{index-zDoaQ7NH.js → index-BHwmjKZR.js} +1 -1
- package/{omni/es/index-DsIOTrCa.js → btv2/es/index-C7l_DF-N.js} +1 -1
- package/btv2/es/{index-DDE1UQHd.js → index-CORZpQrE.js} +1 -1
- package/btv2/es/{index-BK_EeLbd.js → index-CQc0AYpk.js} +1 -1
- package/btv2/es/{index-D5Jf6Mxl.js → index-CX5-zccK.js} +1 -1
- package/btv2/es/{index-Ch1F3WIs.js → index-CslvpoQ3.js} +1 -1
- package/btv2/es/{index-BrBPm5DB.js → index-CubXN6rg.js} +1 -1
- package/btv2/es/{index-BPtzYdTv.js → index-I3v_pp1V.js} +1 -1
- package/{sav2/es/index-DKTKKPyF.js → btv2/es/index-zy7J-ana.js} +1 -1
- package/btv2/es/index.d.ts +11 -1
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-CFKBjzwt.js → btv2/es/styles-BBPVU-SM.js} +1 -1
- package/btv2/es/{styles-CDgK5_Jw.js → styles-BKvKJRno.js} +1 -1
- package/btv2/es/{styles-CqRyul8W.js → styles-CYl7PPTE.js} +1 -1
- package/btv2/es/{styles-DsTbmZ3J.js → styles-CcXZzc2o.js} +1 -1
- package/{vgv2/es/styles-Bg6NWiWb.js → btv2/es/styles-Ci0pRTHq.js} +1 -1
- package/{sav2/es/styles-BxibrvAz.js → btv2/es/styles-DQkk_yxs.js} +1 -1
- package/{sav2/es/styles-aOV4AUSS.js → btv2/es/styles-DW4-O7-s.js} +1 -1
- package/btv2/es/{styles-BNy8wN_y.js → styles-DmX-w2tg.js} +1 -1
- package/common/cjs/index.js +1 -1
- package/common/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-C5_H5i1H.js +1 -0
- package/e24/es/{events-D87tYoTu.js → events--4rBfeL5.js} +1 -1
- package/e24/es/{index-CPGCtbJX.js → index-Bgalh2We.js} +1 -1
- package/{tv4/es/index-CKo2TJRA.js → e24/es/index-BsUcPsFk.js} +1 -1
- package/e24/es/{index-CDqQ6Jsm.js → index-CW6UASm8.js} +1 -1
- package/e24/es/{index-Ci9XTJAb.js → index-DM3BN1pk.js} +1 -1
- package/e24/es/{index-e4uJJnH7.js → index-DWW8ZwfE.js} +1 -1
- package/e24/es/{index-D9UIZfAT.js → index-DXqAMocf.js} +1 -1
- package/e24/es/{index-Cm_41bR3.js → index-DloYTKBT.js} +1 -1
- package/e24/es/{index-i3Gwwhq7.js → index-QAJeBN7t.js} +1 -1
- package/e24/es/{index-CcROKN7u.js → index-QY6WkN91.js} +1 -1
- package/e24/es/index.d.ts +11 -1
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-DeJha6Mk.js → styles-B1dSW24L.js} +1 -1
- package/e24/es/{styles-Bg09hj_f.js → styles-BgJtvSlU.js} +1 -1
- package/e24/es/{styles-3mwX7uG7.js → styles-BkjJoM7x.js} +1 -1
- package/e24/es/{styles-BxgGUSqa.js → styles-BnUdWJCj.js} +1 -1
- package/e24/es/{styles-Be782pgc.js → styles-CmZmO3G8.js} +1 -1
- package/e24/es/{styles-B12TirGn.js → styles-Cx0AESvC.js} +1 -1
- package/{tv4/es/styles-CEtPXuhU.js → e24/es/styles-D1q6hdtD.js} +1 -1
- package/e24/es/{styles-JMI_kJaR.js → styles-DRKp1wkO.js} +1 -1
- package/e24/es/{styles-Dbo-EEAy.js → styles-JHOX_TgW.js} +1 -1
- package/e24/es/{styles-9GyP0Fh9.js → styles-LCxYxD-S.js} +1 -1
- package/e24/es/{styles-ssgxp-9a.js → styles-_bZN_BOG.js} +1 -1
- package/editory/cjs/index.js +1 -1
- package/editory/es/index.js +1 -1
- package/fotbollskanalen/cjs/index.d.ts +11 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-0RK9Nx8o.js +1 -0
- package/fotbollskanalen/es/{events-CtxazKOE.js → events-C6r8CwA5.js} +1 -1
- package/fotbollskanalen/es/{index-BYryqJTh.js → index-8M_d7tXN.js} +1 -1
- package/fotbollskanalen/es/{index-J_M26Tn6.js → index-Bic8NAq_.js} +1 -1
- package/fotbollskanalen/es/{index-CtCKs0AB.js → index-BnkwrjhG.js} +1 -1
- package/fotbollskanalen/es/{index-BMFX7sXH.js → index-CMZk2a_-.js} +1 -1
- package/fotbollskanalen/es/{index-Bqxya_Ea.js → index-CeRU10Fr.js} +1 -1
- package/fotbollskanalen/es/{index-C66zLngc.js → index-Cm_4QmdO.js} +1 -1
- package/fotbollskanalen/es/{index-pJqKndSC.js → index-DDEjeTqt.js} +1 -1
- package/fotbollskanalen/es/{index-Dt0hwls7.js → index-RmLswLFk.js} +1 -1
- package/fotbollskanalen/es/{index-BwIEuu8Q.js → index-UJotCr_U.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +11 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-CkY6AFKa.js → styles-B0XCCrRJ.js} +1 -1
- package/fotbollskanalen/es/{styles-1WfRQUTI.js → styles-CHw3shQD.js} +1 -1
- package/fotbollskanalen/es/{styles-FD5FTjff.js → styles-Ca4DVit4.js} +1 -1
- package/fotbollskanalen/es/{styles-BY0U63am.js → styles-DX7OSuN9.js} +1 -1
- package/glimr/cjs/index.js +1 -1
- package/glimr/es/index.js +1 -1
- package/godt/cjs/index.d.ts +11 -1
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.d.ts +11 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +11 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket--RAQlJyQ.js +1 -0
- package/koket/es/{events-Bt32B6c1.js → events-6-reK9wQ.js} +1 -1
- package/koket/es/{index-CgUuSPu8.js → index-B-HsZKd5.js} +1 -1
- package/koket/es/{index-BmgYc41P.js → index-BLRI2ZWB.js} +1 -1
- package/{svdv2/es/index-BtvKoiYy.js → koket/es/index-BMqi62Al.js} +1 -1
- package/koket/es/{index-Dg5Bu40T.js → index-BztSLr4H.js} +1 -1
- package/koket/es/{index-Dj_MPGTU.js → index-CKP9_liv.js} +1 -1
- package/koket/es/{index-ByKgL3ea.js → index-COmFv1tw.js} +1 -1
- package/koket/es/{index-arriLO-o.js → index-CfO1zSMs.js} +1 -1
- package/koket/es/{index-CxIoty2V.js → index-CsQ_SG6r.js} +1 -1
- package/koket/es/{index-z-UMmbkx.js → index-DzpwZT0e.js} +1 -1
- package/koket/es/index.d.ts +11 -1
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-COOJuQnA.js → styles-BXJL-RTB.js} +1 -1
- package/{svdv2/es/styles-Bo9WXwRO.js → koket/es/styles-CiOJ6jw0.js} +1 -1
- package/koket/es/{styles-fabjxGVn.js → styles-Cxd9hMvz.js} +1 -1
- package/{svdv2/es/styles-1nnooC2v.js → koket/es/styles-DP-V2IOI.js} +1 -1
- package/minmote/cjs/index.d.ts +11 -1
- package/minmote/cjs/index.js +1 -1
- package/omni/es/_auto-entry_omni-4lR3sQmV.js +1 -0
- package/{tvnu/es/events-dbJoWEmm.js → omni/es/events-BjX5eT1F.js} +1 -1
- package/omni/es/{index-impki1Mb.js → index-B1fcRsyP.js} +1 -1
- package/omni/es/{index-CT7nbdp2.js → index-BOFNw9oe.js} +1 -1
- package/omni/es/{index-B-R5kQ40.js → index-BTpVVir8.js} +1 -1
- package/omni/es/{index-Bt3KZGss.js → index-Bz9vC17j.js} +1 -1
- package/{vgv2/es/index-H0d2uPHA.js → omni/es/index-C0gomK79.js} +1 -1
- package/omni/es/{index-DajyiIJT.js → index-Cr_PGnS2.js} +1 -1
- package/omni/es/{index-C2FBvkC1.js → index-CvE3l4Li.js} +1 -1
- package/{btv2/es/index-DKtbULvt.js → omni/es/index-Mo1_SzsV.js} +1 -1
- package/{sav2/es/index-C2rnBaVI.js → omni/es/index-PgA9cKRJ.js} +1 -1
- package/omni/es/index.d.ts +11 -1
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-DlRYfEt6.js → styles-DNVjr38F.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +11 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +11 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-C-xi1GVe.js +1 -0
- package/sa/es/{events-1TEwqTkG.js → events-DgnkqZNy.js} +1 -1
- package/sa/es/{index-CkkJwXj_.js → index-B9B46fj2.js} +1 -1
- package/sa/es/{index-C88BkO5U.js → index-C1guaNvc.js} +1 -1
- package/{vg/es/index-PD1cyzVk.js → sa/es/index-CG9NpLKr.js} +1 -1
- package/{bt/es/index-_x8j0ZGq.js → sa/es/index-CO1cvyCJ.js} +1 -1
- package/{vg/es/index-uMX4FX7Y.js → sa/es/index-D1waT7vc.js} +1 -1
- package/{bt/es/index-DkGka7Df.js → sa/es/index-D2bJYGWW.js} +1 -1
- package/sa/es/{index-CZZuqSqk.js → index-DCeAiW8P.js} +1 -1
- package/sa/es/{index-C9p9PikE.js → index-DpHMZ5B0.js} +1 -1
- package/sa/es/{index-rrkjfWVa.js → index-ZsXyu7yu.js} +1 -1
- package/sa/es/index.d.ts +11 -1
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-BY2Gkdu9.js → styles-B0UKJVW7.js} +1 -1
- package/sa/es/{styles-CnmR25Yj.js → styles-B7QLe_I4.js} +1 -1
- package/sa/es/{styles-DBHxy_Aj.js → styles-C9N2SXhC.js} +1 -1
- package/sa/es/{styles-BhmiKXv_.js → styles-CCrWlTdM.js} +1 -1
- package/{vg/es/styles-exk1Q4Xe.js → sa/es/styles-CSCXvNc_.js} +1 -1
- package/{bt/es/styles-MkzmBBZX.js → sa/es/styles-CnziLELQ.js} +1 -1
- package/{vg/es/styles-b3SSaru7.js → sa/es/styles-DA8MS_ch.js} +1 -1
- package/sa/es/{styles-CPDzgQT5.js → styles-DMHq0fBd.js} +1 -1
- package/sa/es/{styles-C2Cs1ZNx.js → styles-DY9sYxha.js} +1 -1
- package/sav2/es/_auto-entry_sav2-xIrIIXqs.js +1 -0
- package/sav2/es/{events-CWY0BMHN.js → events-C_1241lj.js} +1 -1
- package/sav2/es/{index-CDZrvE3m.js → index-BVR-aDU2.js} +1 -1
- package/sav2/es/{index-DOoyPAPP.js → index-BiuhbHTx.js} +1 -1
- package/sav2/es/{index-CqpfkEC2.js → index-DSFdmAU3.js} +1 -1
- package/{btv2/es/index-Re6BJZQG.js → sav2/es/index-DScsszd8.js} +1 -1
- package/{vgv2/es/index-D9_rBGQh.js → sav2/es/index-DUiqEFUH.js} +1 -1
- package/{tvnu/es/index-DhQu269Q.js → sav2/es/index-DgQSFQ6o.js} +1 -1
- package/sav2/es/{index-DaPXi-LE.js → index-Dr22wr8z.js} +1 -1
- package/sav2/es/{index-57a-nwHV.js → index-Rgm4pnH-.js} +1 -1
- package/sav2/es/{index-CpMFZBdk.js → index-hUs8dAlO.js} +1 -1
- package/sav2/es/index.d.ts +11 -1
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-UsItCb38.js → sav2/es/styles-BfLMrF_G.js} +1 -1
- package/{vgv2/es/styles-BLO38Nt2.js → sav2/es/styles-DBALiprc.js} +1 -1
- package/{btv2/es/styles-BMPzs3vK.js → sav2/es/styles-DYjK1CsA.js} +1 -1
- package/sav2/es/{styles-7rBOZLvq.js → styles-DnFkjVeK.js} +1 -1
- package/{btv2/es/styles-BvtD47PR.js → sav2/es/styles-UJgc0Cfo.js} +1 -1
- package/sav2/es/{styles-CORJPKkB.js → styles-WhlMspLn.js} +1 -1
- package/sav2/es/{styles-BRM0cCGo.js → styles-idw9k6ZV.js} +1 -1
- package/{vgv2/es/styles-3DE7d40Y.js → sav2/es/styles-yrSTNWQy.js} +1 -1
- package/svd/cjs/index.d.ts +11 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-NgPCKJj7.js +1 -0
- package/svd/es/{events-DiOBkdaR.js → events-BlzT_W2w.js} +1 -1
- package/svd/es/{index--sKTdtaT.js → index-A_jtyJ-U.js} +1 -1
- package/svd/es/{index-0F-kTJmJ.js → index-B4km51uD.js} +1 -1
- package/svd/es/{index-D40yVVBZ.js → index-B7Tfzm28.js} +1 -1
- package/svd/es/{index-Cl6JJIRM.js → index-BEgV5oos.js} +1 -1
- package/svd/es/{index-CAl6Zwoj.js → index-BIC9PGAO.js} +1 -1
- package/svd/es/{index-BRAFolUo.js → index-BXFJ_bqE.js} +1 -1
- package/svd/es/{index-Cxuqrll-.js → index-C-SVGskz.js} +1 -1
- package/svd/es/{index-M4mHpeZ9.js → index-CMO0MqtZ.js} +1 -1
- package/svd/es/{index-BtTo0Fso.js → index-CO9uRwiL.js} +1 -1
- package/svd/es/index.d.ts +11 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-Cb1ST55Q.js → styles-BSSOq3-w.js} +1 -1
- package/svd/es/{styles-BxHb_AY-.js → styles-BlXHuEOV.js} +1 -1
- package/svd/es/{styles-BNcv7vzA.js → styles-Coi8cPm2.js} +1 -1
- package/svd/es/{styles-CBZoYMk0.js → styles-DFsfj60X.js} +1 -1
- package/svd/es/{styles-C88ucB5d.js → styles-LKMZabGw.js} +1 -1
- package/svd/es/{styles-CN5w3c9N.js → styles-RFVU2m2h.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-C_9KSiOk.js +1 -0
- package/svdv2/es/{events-DLT5FeOJ.js → events-DQcF7YVf.js} +1 -1
- package/svdv2/es/{index-CVOlBcKd.js → index-BmYJxh4J.js} +1 -1
- package/svdv2/es/{index-EXEwAGC6.js → index-CP5dXNbz.js} +1 -1
- package/svdv2/es/{index-BejCxTtE.js → index-CpQ3Z7TD.js} +1 -1
- package/svdv2/es/{index-C5DfoDVV.js → index-DF8rXCM4.js} +1 -1
- package/svdv2/es/{index-DyChcZYn.js → index-DTt-VqU2.js} +1 -1
- package/{koket/es/index-OTjAuTDs.js → svdv2/es/index-DVvOMDUA.js} +1 -1
- package/svdv2/es/{index-CmBcbolT.js → index-DW7g8HVe.js} +1 -1
- package/svdv2/es/{index-c4l7gc-i.js → index-Ms3zsihk.js} +1 -1
- package/svdv2/es/{index-cVqg6UOM.js → index-yXy4oGZY.js} +1 -1
- package/svdv2/es/index.d.ts +11 -1
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-CGqNPahf.js → styles-B-y8f6Qo.js} +1 -1
- package/svdv2/es/{styles-BaBOxLPL.js → styles-BHIWT2fu.js} +1 -1
- package/{koket/es/styles-Dc88VGSM.js → svdv2/es/styles-CMWyZaIX.js} +1 -1
- package/svdv2/es/{styles-CuGr2z59.js → styles-CaKYlhoL.js} +1 -1
- package/svdv2/es/{styles-B-XdO_8n.js → styles-DBGttQHd.js} +1 -1
- package/svdv2/es/{styles-CPy1p8Vp.js → styles-DbUYG2gR.js} +1 -1
- package/{koket/es/styles-Sh5ZhRbJ.js → svdv2/es/styles-DfGXvngh.js} +1 -1
- package/tek/cjs/index.d.ts +11 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.d.ts +11 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-BzLnNa_m.js +1 -0
- package/tv4/es/{events-C4-f_Upn.js → events-DuF5PyCk.js} +1 -1
- package/tv4/es/{index-S2xTybr0.js → index-BNHFmkmC.js} +1 -1
- package/tv4/es/{index-c6tvVjeX.js → index-Bqpfm1b8.js} +1 -1
- package/tv4/es/{index-q_MBrICn.js → index-Bv-SpwYZ.js} +1 -1
- package/{e24/es/index-D6kn_Zhe.js → tv4/es/index-C205_n5m.js} +1 -1
- package/tv4/es/{index-kAU6gDyG.js → index-CBhUBoIX.js} +1 -1
- package/tv4/es/{index-DoL3zLlk.js → index-CTqmzQjm.js} +1 -1
- package/tv4/es/{index-DYUShRtI.js → index-CaCkpwVH.js} +1 -1
- package/tv4/es/{index-D_tclyKQ.js → index-DxGar8w_.js} +1 -1
- package/tv4/es/{index-DR6KGreJ.js → index-JRO2HBOP.js} +1 -1
- package/tv4/es/index.d.ts +11 -1
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-BA8xLm-k.js → styles-B9fA5d80.js} +1 -1
- package/tv4/es/{styles-CqQae2eO.js → styles-Bm03DJ1H.js} +1 -1
- package/{e24/es/styles-BzWi44RO.js → tv4/es/styles-Dc913p9C.js} +1 -1
- package/tv4/es/{styles-BCMxfYdQ.js → styles-E5nGnKOc.js} +1 -1
- package/tvnu/cjs/index.d.ts +11 -1
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-PoAFuCy-.js +1 -0
- package/{btv2/es/events-Cp-BhIzn.js → tvnu/es/events-_qUKAU1E.js} +1 -1
- package/tvnu/es/{index-Cf_g-D_j.js → index-C0bujubT.js} +1 -1
- package/tvnu/es/{index-C8jADDhX.js → index-C4EEzezT.js} +1 -1
- package/tvnu/es/{index-Z6AurkfQ.js → index-C76Qh1J3.js} +1 -1
- package/{sav2/es/index-xDoLqi7x.js → tvnu/es/index-C8iC6S9Y.js} +1 -1
- package/tvnu/es/{index-BA7L6VHL.js → index-CLc3VzZ5.js} +1 -1
- package/tvnu/es/{index-DWVQiJqx.js → index-DS8AI9hM.js} +1 -1
- package/tvnu/es/{index-DNR8_fQJ.js → index-LQSdMw5v.js} +1 -1
- package/{omni/es/index-Dz2oue_R.js → tvnu/es/index-p4nEtDqM.js} +1 -1
- package/tvnu/es/{index-DbDMRhOk.js → index-yUL_qnnm.js} +1 -1
- package/tvnu/es/index.d.ts +11 -1
- package/tvnu/es/index.js +1 -1
- package/{btv2/es/styles-D-1NJfxL.js → tvnu/es/styles-BLA_p-Di.js} +1 -1
- package/tvnu/es/{styles-9qS0ITG2.js → styles-BMScJnAv.js} +1 -1
- package/tvnu/es/{styles-B4aU3vbm.js → styles-eIuqDnYx.js} +1 -1
- package/types/index.d.ts +12 -2
- package/vg/cjs/index.d.ts +11 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-DM7DaUN_.js +1 -0
- package/vg/es/{events-CCqqUdoK.js → events-Ds_dm-aY.js} +1 -1
- package/{sa/es/index-B4O9clcj.js → vg/es/index-B6C5Wneb.js} +1 -1
- package/vg/es/{index-DkfrSby4.js → index-CBuaTr1b.js} +1 -1
- package/vg/es/{index-eDu7oy6w.js → index-CP-P43gR.js} +1 -1
- package/{sa/es/index-Bl5mnbMc.js → vg/es/index-CS0DPxFk.js} +1 -1
- package/vg/es/{index-LCEKsPE0.js → index-D6y0ue_z.js} +1 -1
- package/vg/es/{index-C-wVERAL.js → index-DDicK2WC.js} +1 -1
- package/vg/es/{index-Z3c1Odq3.js → index-DMDP_t2h.js} +1 -1
- package/vg/es/{index-ji7IQU-H.js → index-Da8ZvSCS.js} +1 -1
- package/vg/es/{index-B-Ey9AQF.js → index-cxgkGyCM.js} +1 -1
- package/vg/es/index.d.ts +11 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-C3y8Kczo.js → styles-B9dM91o1.js} +1 -1
- package/vg/es/{styles-BPAGV6Lk.js → styles-BQiJrhfx.js} +1 -1
- package/{sa/es/styles-Bog6G99I.js → vg/es/styles-BY1kvDJp.js} +1 -1
- package/vg/es/{styles-Dy-EHNYS.js → styles-BmTitzFM.js} +1 -1
- package/vg/es/{styles-CDdKTX7E.js → styles-Bn0gS2_v.js} +1 -1
- package/vg/es/{styles-CEU82aFa.js → styles-C4X5cSKD.js} +1 -1
- package/vg/es/{styles-CpAVRXKf.js → styles-CJywrN2H.js} +1 -1
- package/vg/es/{styles-BPyXCsb2.js → styles-CbVr2_U3.js} +1 -1
- package/vg/es/{styles-DN72_48A.js → styles-CdPWTybh.js} +1 -1
- package/{bt/es/styles-CUYGp__R.js → vg/es/styles-Cq1mO1Au.js} +1 -1
- package/vg/es/{styles-DP1dvony.js → styles-Cym1bR2U.js} +1 -1
- package/vg/es/{styles-BdrYiQO_.js → styles-DJh0REO_.js} +1 -1
- package/vg/es/{styles-iGp2q3ok.js → styles-DnlbA82G.js} +1 -1
- package/vg/es/{styles-Du_Hz1vz.js → styles-KXMTD_dz.js} +1 -1
- package/vg/es/{styles-9daC3Bxg.js → styles-WQ1oGPA8.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-DHL7FZnd.js +1 -0
- package/vgv2/es/{events-Lx2NOz7D.js → events-qVNOgm82.js} +1 -1
- package/{omni/es/index-BuA9KLWq.js → vgv2/es/index-BNO8Mlud.js} +1 -1
- package/vgv2/es/{index-CEqN_Vxf.js → index-BmXhidB0.js} +1 -1
- package/vgv2/es/{index-78Fdj1VA.js → index-CLnGy27P.js} +1 -1
- package/vgv2/es/{index-Btfn-YxW.js → index-CVcLpPxc.js} +1 -1
- package/vgv2/es/{index-BL4KAq3u.js → index-DHlwGLIT.js} +1 -1
- package/vgv2/es/{index-9WXQ2dEc.js → index-DI6p_9uE.js} +1 -1
- package/{tvnu/es/index-C4h8mNsE.js → vgv2/es/index-JA1JACl8.js} +1 -1
- package/vgv2/es/{index-C5jN7jaq.js → index-QuZp2cYT.js} +1 -1
- package/vgv2/es/{index-Br7HhVnA.js → index-S3vII8yR.js} +1 -1
- package/vgv2/es/index.d.ts +11 -1
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-CVBHX8qm.js → styles-7YL4I3E_.js} +1 -1
- package/vgv2/es/{styles-DPJtWX3a.js → styles-B53DkETH.js} +1 -1
- package/vgv2/es/{styles-BqTCR9Zr.js → styles-Bo_pFhQZ.js} +1 -1
- package/vgv2/es/{styles-PclyX2Fu.js → styles-ByJT0Vpx.js} +1 -1
- package/vgv2/es/{styles-54itSzwJ.js → styles-CC18dNAm.js} +1 -1
- package/vgv2/es/{styles-auZzGw_9.js → styles-CYVMmkYX.js} +1 -1
- package/vgv2/es/{styles-B0nVnMpO.js → styles-Ci6rJ_r1.js} +1 -1
- package/{tvnu/es/styles-CAXiRleF.js → vgv2/es/styles-CxPxQNjt.js} +1 -1
- package/vgv2/es/{styles-KhLdFF7f.js → styles-Deko1CRY.js} +1 -1
- package/vgv2/es/{styles-I1woEUs8.js → styles-Djn3TpiD.js} +1 -1
- package/vgv2/es/{styles-D6-LbdhJ.js → styles-DyNY5RQa.js} +1 -1
- package/{sav2/es/styles-BrFyTMxa.js → vgv2/es/styles-OAvA9_Sj.js} +1 -1
- package/{sav2/es/styles-DQ2PyzIm.js → vgv2/es/styles-bv_4fEYH.js} +1 -1
- package/vgv2/es/{styles-7J_vDCTE.js → styles-iC3p2qcs.js} +1 -1
- package/vgv2/es/{styles-D4-wWQCf.js → styles-lt4nYxtr.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-PZL1C7pW.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-B2SdifSb.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-0klSZ2a6.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DyxfbT17.js +0 -1
- package/bt/es/_auto-entry_bt-zmqosl5i.js +0 -1
- package/btv2/es/_auto-entry_btv2-BH44guox.js +0 -1
- package/e24/es/_auto-entry_e24-CMNWnUkJ.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DXOfh0Bk.js +0 -1
- package/koket/es/_auto-entry_koket-DzUtiLSd.js +0 -1
- package/omni/es/_auto-entry_omni-DGc_NIMQ.js +0 -1
- package/sa/es/_auto-entry_sa-izXaHro7.js +0 -1
- package/sav2/es/_auto-entry_sav2-aSzshq0U.js +0 -1
- package/svd/es/_auto-entry_svd-D1L2EdNT.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-O84IVSUQ.js +0 -1
- package/tv4/es/_auto-entry_tv4-CadJ2M9s.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-B37EXWfF.js +0 -1
- package/vg/es/_auto-entry_vg-Bn30BWxq.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-BGlbp4YW.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_fotbollskanalen-0RK9Nx8o.js";import"react/jsx-runtime";const u="#fff",y="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:u,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:y}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},m=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},w=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=new WeakMap,g=(e,o,t)=>{var r;window.addEventListener(o,t),b.set(e,[...null!==(r=b.get(e))&&void 0!==r?r:[],()=>window.removeEventListener(o,t)])},h=e=>{document.body.style.overflow=e?"initial":"hidden"},f=e=>{(e=>{var o;null===(o=b.get(e))||void 0===o||o.forEach(e=>e()),b.delete(e)})(e),w(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),h(!0),e.style.display="none"},E=e=>{const o=()=>f(e);return g(e,"advertory:closeTakeover",o),w(),o},L=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&((e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&f(e)};w(),g(e,"keydown",o)})(e),E(e),w(),o.addEventListener("click",()=>{f(e)}),h(!1))},k=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),E(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},S=e=>{(e=>{g(e,"advertory:closeTakeover",()=>f(e))})(e)},T=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},q=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},x=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},A=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},C=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},O=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},P=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,O(o))},R=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},M=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const u=a(o),y=i.offsetHeight,v=window.scrollY>y;i.style.display="block",!v&&m(u,!1),((o,t)=>{({[e.WELCOME_PAGE]:x,[e.SPLASH]:T,[e.TOPSCROLLER]:q,[e.VELVET]:A})[t](o)})(i,u),C(),((o,t)=>{({[e.WELCOME_PAGE]:k,[e.TOPSCROLLER]:k,[e.SPLASH]:L,[e.VELVET]:S})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&m(u,!0),c(o,u)});export{M as createTakeoverAd,P as modifyTakeoverAdContent,R as modifyTakeoverIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as e,C as t,E as n,c as r,F as o,S as i,G as d}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{I as e,C as t,E as n,c as r,F as o,S as i,G as d}from"./_auto-entry_fotbollskanalen-0RK9Nx8o.js";import"react/jsx-runtime";const l=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},s=(e,t=window.screen.width,n,r)=>{const o=l(e,t);if(n&&n(e,o),r)return void r(e);const i=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);i&&(i.style.transform=`scale(${o})`,i.style.transformOrigin="left top")},a=(e,t)=>{if(e&&t)return t/e},c=new Map;c.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),c.set("panorama",{scale:.79,transformOrigin:"center center"}),c.set("outstream",{scale:.79,transformOrigin:"center center"}),c.set("integration",{scale:.79,transformOrigin:"center center"}),c.set("toppanorama",{scale:.8,transformOrigin:"left center"});const u=r=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>e&&(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.clientWidth)<=t))return;var o,i;const d=n(r),l=c.get(d),s=document.querySelector(`#${r.targetId}`);if(!s||!l)return;if(s.style.transformOrigin=l.transformOrigin,s.style.transform=`scale(${l.scale})`,!(null==l?void 0:l.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==s?void 0:s.offsetWidth;a&&"number"==typeof u&&!isNaN(u)&&a.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,l,a,c,u;const{adScaleConfig:f,pageContext:{deviceType:m}}=r.get();if(!(null==f?void 0:f.enabled))return;if(o(e,i.ANY_FULLSCREEN))return;const v=null!==(t=f.adsToBeScaled[m])&&void 0!==t?t:[],g=d(e.targetId.split("-")[0]);if(!v.includes(g))return;const w=null!==(l=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==l?l:0,p=document.getElementById(e.targetId),y=null!==(a=null==p?void 0:p.offsetWidth)&&void 0!==a?a:window.screen.width,h=null!==(u=null===(c=null==p?void 0:p.parentElement)||void 0===c?void 0:c.offsetWidth)&&void 0!==u?u:window.screen.width;s(e,(y<h?y:h)-w)};export{l as calculateScaleFactor,a as getAspectRatio,s as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as t,P as e,Q as n}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{O as t,P as e,Q as n}from"./_auto-entry_fotbollskanalen-0RK9Nx8o.js";import"react/jsx-runtime";const o=".advertory-right-column-track",r="--advertory-right-column-track-height",i=t=>t.getBoundingClientRect().top+window.scrollY,a=(t,e)=>`${t}-${e}`,l=(o,l,d)=>{var c;const s=Array.from(null!==(c=o.querySelectorAll(l))&&void 0!==c?c:[]),u=(t=>t.map(t=>{var e;return null===(e=document.querySelector(`[id^="${t}"]`))||void 0===e?void 0:e.parentElement}).map((t,e)=>({point:t,originalIndex:e})).filter(t=>Boolean(t.point)))(d);if(0===u.length)return;const v=i(o);u.forEach(({point:o,originalIndex:l})=>{((o,l,d)=>{const c=i(o),s=a(r,l),u=c-d,v=a("--advertory-right-column-split-point-height",l),m=t(o);e({[s]:n(u),[v]:n(m)})})(o,l+1,v),(o=>{const r=null==o?void 0:o.id;if(!r)return;const i=a("--advertory-right-column-ad-height",r),l=t(o);e({[i]:n(l)})})(s[l])});((t,o)=>{const a=i(t)-o;e({[r]:n(a)})})(u[Math.min(s.length,u.length-1)].point,v)};let d=!1;const c=t=>{if(!(null==t?void 0:t.enabled)||d)return;const{splitPointIDs:e,adSelector:n,trackSelector:r=o}=t,i=document.querySelector(r);if(!i)return;d=!0;const a=()=>{l(i,n,e)};a(),window.addEventListener("resize",a),window.addEventListener("orientationchange",a),window.addEventListener("load",a),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(a)});new ResizeObserver(a).observe(i)};export{c as initRightColumnSplit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,j as t,t as o}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{c as e,j as t,t as o}from"./_auto-entry_fotbollskanalen-0RK9Nx8o.js";import"react/jsx-runtime";const n=1e4,r=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let s;const a=()=>{const{widescreenSwitching:t}=e.get(),{enabled:a,options:{rotationInterval:i=n,widescreenIdPrefix:l}={}}=null!=t?t:{};if(!a)return;const c=((t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();return o?Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`))):[]})(l);let y=0,p=Date.now(),d=r(c);if(!c.length)return;s&&window.removeEventListener("scroll",s);const m=(e,t,o)=>{e.forEach(e=>{e&&e.style.setProperty(t,o)})},w=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(c);const u=o(()=>{d||(d=r(c)||d,p=Date.now());Date.now()-p>=i&&((()=>{const e=w(y),t=c.map(e=>e[y]),o=c.map(t=>t[e]);m(t,"opacity","0"),setTimeout(()=>{m(t,"display","none"),m(o,"opacity","0"),m(o,"display","block"),setTimeout(()=>{m(o,"opacity","1")},450)},450)})(),y=w(y),p=Date.now())},1e3);s=u,window.addEventListener("scroll",u)};export{a as initWidescreenSwitching};
|
|
@@ -809,6 +809,16 @@ interface DevicePlacementBatches {
|
|
|
809
809
|
type PlacementBatchesConfig = {
|
|
810
810
|
[device in DeviceType]: DevicePlacementBatches;
|
|
811
811
|
};
|
|
812
|
+
interface UpdatableSiteConfig {
|
|
813
|
+
placements?: SiteConfig['placements'];
|
|
814
|
+
takeover?: SiteConfig['takeover'];
|
|
815
|
+
refreshConfig?: SiteConfig['refreshConfig'];
|
|
816
|
+
editory?: SiteConfig['editory'];
|
|
817
|
+
tcf?: SiteConfig['tcf'];
|
|
818
|
+
pageContext?: Partial<PageContext>;
|
|
819
|
+
pageOptions?: Partial<AstPageOptions>;
|
|
820
|
+
appearanceConfig?: Partial<AppearanceConfig>;
|
|
821
|
+
}
|
|
812
822
|
|
|
813
823
|
declare const siteSpecificConfig: SiteSpecificConfig;
|
|
814
824
|
|
|
@@ -870,7 +880,7 @@ interface VideoStream {
|
|
|
870
880
|
|
|
871
881
|
interface Advertory {
|
|
872
882
|
init: (config: SiteConfig | EditorySiteConfig) => Promise<void>;
|
|
873
|
-
update: (configToUpdate?:
|
|
883
|
+
update: (configToUpdate?: UpdatableSiteConfig, options?: UpdateAdvertoryConfig) => Promise<Array<Placement>>;
|
|
874
884
|
renderNativeAd: (adObj: AstAdObj, options?: Partial<SiteConfig>) => void;
|
|
875
885
|
getVideoPPIDs: (country: Country) => Promise<string>;
|
|
876
886
|
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-0RK9Nx8o.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as e}from"./_auto-entry_fotbollskanalen-0RK9Nx8o.js";import"react/jsx-runtime";e('.advertory-shared-ad-native-seamless{position:relative;overflow:hidden;border-radius:10px}.advertory-shared-ad-native-seamless .ad-info{position:absolute;top:0;right:0;z-index:1}.advertory-shared-ad-native-seamless .ad-info div[role=button]{top:0;right:0;left:auto;transform:none;background-color:hsla(0,0%,100%,.45);border-bottom-left-radius:13px}.advertory-shared-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-shared-ad-native-seamless .ad-link .ad-content{position:relative;min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:var(--color-background-secondary, #ffffff);color:var(--color-text-primary, #333)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header{padding:0 0 8px 10px;margin-right:18px;display:flex;justify-content:space-between;gap:50px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-logo{max-width:100%;max-height:45px;min-width:0;object-fit:contain;object-position:left center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons{flex-shrink:0;margin-left:auto;margin-right:5px;font-size:10px;font-weight:400;color:var(--color-text-primary, #333);white-space:nowrap;line-height:.7;text-transform:lowercase}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;max-width:100%;object-fit:cover}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left;color:var(--color-text-secondary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:14px;line-height:1;color:var(--color-text-on-accent, #111111);white-space:nowrap;background-color:var(--color-accent, #d9d9d9);border-radius:99px;font-weight:500}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as a}from"./_auto-entry_fotbollskanalen-0RK9Nx8o.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-0RK9Nx8o.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-0RK9Nx8o.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(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})});
|
|
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=(e,t)=>Object.assign(Object.assign({},e),t),d=(e,t)=>{var n;return s(null!==(n=e)&&void 0!==n?n:{},t)},c={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},u=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},g=(e,t)=>{console.warn("[Advertory WARN]: ",e)},f=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||g("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||g("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||g("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||g("pageContext.deviceType is required."),n||g("pageOptions is required."),r||g("placements is required."),(null==o?void 0:o.defaultThreshold)||g("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])&&g(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},v={placements:(e,t)=>t,takeover:d,refreshConfig:l,editory:d,appearanceConfig:d,pageContext:l,pageOptions:l,tcf:l};class p{set(e){f(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(v)){const r=t[e];void 0!==r&&(n[e]=v[e](n[e],r))}})(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:c,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 u("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 u("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 u("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const o=e=>{r||(u("Resolving advertising permission value obtained"),r=!0,t(e))},i=setTimeout(()=>{u("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{u("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const t=Number(e);u("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&&(u("TCF bypass param detected, returning consent: true"),!0):(u("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 u(`TCF consented to all is: ${t}`),E.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(u("Getting TCF consent manager..."),window._tcf_)return u("TCF consent manager is already available"),E=window._tcf_,void e(E);u("TCF consent manager is not available");const n=()=>{u("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);u("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 u(`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 u("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(()=>{u("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);E.onTcfReady(()=>{u("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 u(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return u(`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())?(u(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(u(`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 u("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 u("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){u(`Error during getting glimr data: ${e}`)}else u("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 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};
|
|
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=(e,n)=>Object.assign(Object.assign({},e),n),l=(e,n)=>{var t;return a(null!==(t=e)&&void 0!==t?t:{},n)},d={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,n)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},c=(e,n)=>{const t="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(n?console.log(t,e,n):console.log(t,e))},u=(e,n)=>{console.warn("[Advertory WARN]: ",e)},g=e=>{(e=>{const{pageContext:n,pageOptions:t,placements:r,appearanceConfig:o}=null!=e?e:{};(null==n?void 0:n.publisher)||u("pageContext.publisher is required."),(null==n?void 0:n.countryCode)||u("pageContext.countryCode is required."),(null==n?void 0:n.pageType)||u("pageContext.pageType is required."),(null==n?void 0:n.deviceType)||u("pageContext.deviceType is required."),t||u("pageOptions is required."),r||u("placements is required."),(null==o?void 0:o.defaultThreshold)||u("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])&&u(`pageSectionsSelectors.${n} is required when ${t} is enabled.`)})(e)},f={placements:(e,n)=>n,takeover:l,refreshConfig:s,editory:l,appearanceConfig:l,pageContext:s,pageOptions:s,tcf:s};class v{set(e){g(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,n)=>{const t=e;for(const e of Object.keys(f)){const r=n[e];void 0!==r&&(t[e]=f[e](t[e],r))}})(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:d,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 c("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 c("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 c("Advertising permission value obtained synchronously: ",e),Boolean(n)})();if(null!==t)return void n(t);let r=!1;const o=e=>{r||(c("Resolving advertising permission value obtained"),r=!0,n(e))},i=setTimeout(()=>{c("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{c("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const n=Number(e);c("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 l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,n)=>e?!!n&&(c("TCF bypass param detected, returning consent: true"),!0):(c("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 c(`TCF consented to all is: ${n}`),O.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,n)=>{if(c("Getting TCF consent manager..."),window._tcf_)return c("TCF consent manager is already available"),O=window._tcf_,void e(O);c("TCF consent manager is not available");const t=()=>{c("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);c("Listening for CMP loaded event..."),document.addEventListener(A,t,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`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 c("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield C(e);if(!(null==e?void 0:e.enabled))return!0;const o=l();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(()=>{c("TCF isConsentedToAll timed out, resolving with false"),t(!1)},i);O.onTcfReady(()=>{c("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 c(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`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())?(c(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(c(`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 c("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){c(`Error during getting glimr data: ${e}`)}else c("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 c("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
|
@@ -809,6 +809,16 @@ interface DevicePlacementBatches {
|
|
|
809
809
|
type PlacementBatchesConfig = {
|
|
810
810
|
[device in DeviceType]: DevicePlacementBatches;
|
|
811
811
|
};
|
|
812
|
+
interface UpdatableSiteConfig {
|
|
813
|
+
placements?: SiteConfig['placements'];
|
|
814
|
+
takeover?: SiteConfig['takeover'];
|
|
815
|
+
refreshConfig?: SiteConfig['refreshConfig'];
|
|
816
|
+
editory?: SiteConfig['editory'];
|
|
817
|
+
tcf?: SiteConfig['tcf'];
|
|
818
|
+
pageContext?: Partial<PageContext>;
|
|
819
|
+
pageOptions?: Partial<AstPageOptions>;
|
|
820
|
+
appearanceConfig?: Partial<AppearanceConfig>;
|
|
821
|
+
}
|
|
812
822
|
|
|
813
823
|
declare const siteSpecificConfig: SiteSpecificConfig;
|
|
814
824
|
|
|
@@ -870,7 +880,7 @@ interface VideoStream {
|
|
|
870
880
|
|
|
871
881
|
interface Advertory {
|
|
872
882
|
init: (config: SiteConfig | EditorySiteConfig) => Promise<void>;
|
|
873
|
-
update: (configToUpdate?:
|
|
883
|
+
update: (configToUpdate?: UpdatableSiteConfig, options?: UpdateAdvertoryConfig) => Promise<Array<Placement>>;
|
|
874
884
|
renderNativeAd: (adObj: AstAdObj, options?: Partial<SiteConfig>) => void;
|
|
875
885
|
getVideoPPIDs: (country: Country) => Promise<string>;
|
|
876
886
|
createInitNativeAd: (config: CreateInitNativeAdConfig) => InitNativeAd;
|