@schibsted/advertory 3.6.1-no-issue.1 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/{_auto-entry_aftenposten-BImiylsX.js → _auto-entry_aftenposten-B_BPbr0O.js} +1 -1
- package/aftenposten/es/{events-DTQTfQte.js → events-DEPElncd.js} +1 -1
- package/aftenposten/es/{index-C4GwP9zx.js → index-7T8duSZh.js} +1 -1
- package/aftenposten/es/index-B3-BKjDO.js +1 -0
- package/aftenposten/es/{index-DRbgFho-.js → index-BZAwWcd6.js} +1 -1
- package/aftenposten/es/{index-BGzDpI8C.js → index-BdKvQ0V0.js} +1 -1
- package/aftenposten/es/{index-HqF7ybtk.js → index-Bw5RcYmz.js} +1 -1
- package/aftenposten/es/{index-DbFbTdyn.js → index-Cf9FnhT1.js} +1 -1
- package/aftenposten/es/index-Cz3Vwq1j.js +1 -0
- package/aftenposten/es/{index-7JNV68J3.js → index-NjSp4_J7.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-Be5LV0yL.js → styles-B8UY0MRg.js} +1 -1
- package/aftenposten/es/{styles-CJRcrU86.js → styles-BBhzyr5X.js} +1 -1
- package/aftenposten/es/{styles-K_YWWYsX.js → styles-Bt_FFBC5.js} +1 -1
- package/aftenposten/es/{styles-VUWfCYtI.js → styles-C2s1sQqh.js} +1 -1
- package/aftenposten/es/{styles-BhdLx2B5.js → styles-CEo2pUlL.js} +1 -1
- package/aftenposten/es/styles-CegKTB5g.js +1 -0
- package/aftenposten/es/{styles-DW5GZ7oo.js → styles-CzhDxdLn.js} +1 -1
- package/aftenposten/es/{styles-BNWzPZrt.js → styles-DL3wy5Px.js} +1 -1
- package/aftenposten/es/{styles-CzpLCXNU.js → styles-mYRA-2Fy.js} +1 -1
- package/aftenposten/es/{styles-5rFX2X6N.js → styles-tdsjiqGw.js} +1 -1
- package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-DY2E7rfg.js → _auto-entry_aftenpostenv2-DOpOcaIn.js} +1 -1
- package/aftenpostenv2/es/{events-DoLqffSJ.js → events-CfjD6qUf.js} +1 -1
- package/aftenpostenv2/es/{index-BM0o3ttq.js → index-B1P18LiS.js} +1 -1
- package/aftenpostenv2/es/{index-4iaa0_Dc.js → index-BHue36WX.js} +1 -1
- package/aftenpostenv2/es/index-BIUHS3rh.js +1 -0
- package/aftenpostenv2/es/{index-DEDi5kSj.js → index-C4xk-r_q.js} +1 -1
- package/aftenpostenv2/es/{index-aICVN_6K.js → index-CFuBNzsS.js} +1 -1
- package/aftenpostenv2/es/{index-DG83lQT8.js → index-Cw6cYxkT.js} +1 -1
- package/aftenpostenv2/es/{index-Drk3EBSj.js → index-DqdOJeiM.js} +1 -1
- package/aftenpostenv2/es/index-tFuZyfhJ.js +1 -0
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-Cc2A3B1_.js → styles-A9lTECJS.js} +1 -1
- package/aftenpostenv2/es/{styles-C-0O1qEd.js → styles-Bb-4tRfG.js} +1 -1
- package/aftenpostenv2/es/{styles-j2z30LNn.js → styles-Bx9I_Cmf.js} +1 -1
- package/aftenpostenv2/es/{styles-CyZjG34k.js → styles-CKNcxq8O.js} +1 -1
- package/aftenpostenv2/es/{styles-B212qBZI.js → styles-C_9E2YSe.js} +1 -1
- package/aftenpostenv2/es/{styles-BeK42OjJ.js → styles-D39u2sMy.js} +1 -1
- package/aftenpostenv2/es/styles-DCJ_pKVA.js +1 -0
- package/aftenpostenv2/es/{styles-eYk7KvD8.js → styles-DEPP_LzG.js} +1 -1
- package/aftenpostenv2/es/{styles-B03ILfjK.js → styles-DXS74GTb.js} +1 -1
- package/aftenpostenv2/es/{styles-BoyKOrsT.js → styles-MzFZ5img.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/{_auto-entry_aftonbladet-LZozeAPs.js → _auto-entry_aftonbladet-CgYFuEX7.js} +1 -1
- package/aftonbladet/es/{events-CUCMD3KJ.js → events-RrjLAkCW.js} +1 -1
- package/aftonbladet/es/index-2_YAy_Qz.js +1 -0
- package/aftonbladet/es/{index-qYe0QJdC.js → index-7rdJuYRn.js} +1 -1
- package/aftonbladet/es/{index-6RqWJeuG.js → index-BharLKc9.js} +1 -1
- package/aftonbladet/es/{index-BMnzAng1.js → index-CCHE-PN3.js} +1 -1
- package/aftonbladet/es/index-CKEXIu2l.js +1 -0
- package/aftonbladet/es/{index-rWKKPOdB.js → index-DAoZZ5wD.js} +1 -1
- package/aftonbladet/es/{index-D0uR7bdn.js → index-DV8VTqxL.js} +1 -1
- package/aftonbladet/es/{index-DyMDnc7Y.js → index-WLHb5GJa.js} +1 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-sjzoXkda.js → styles-B8Qyekd_.js} +1 -1
- package/aftonbladet/es/{styles-BpsHQpQS.js → styles-BpAuUGiF.js} +1 -1
- package/aftonbladet/es/{styles-BrTtSoe9.js → styles-CEbYZvDS.js} +1 -1
- package/aftonbladet/es/{styles-AaD2fHcR.js → styles-CUDH03bl.js} +1 -1
- package/aftonbladet/es/{styles-Diez6Okn.js → styles-Dc04X8ru.js} +1 -1
- package/aftonbladet/es/{styles-QCaBkt8q.js → styles-DrbMt2M3.js} +1 -1
- package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-bi6foBMz.js → _auto-entry_aftonbladetv2-DZco0Woh.js} +1 -1
- package/aftonbladetv2/es/{events-CYGWmjFA.js → events-CPL3rM9v.js} +1 -1
- package/aftonbladetv2/es/index-B1qogrV_.js +1 -0
- package/aftonbladetv2/es/index-BAXBBxp-.js +1 -0
- package/aftonbladetv2/es/{index-DeK-VOjX.js → index-CVOg4MtZ.js} +1 -1
- package/aftonbladetv2/es/{index-15brSZbH.js → index-DF1RhNUX.js} +1 -1
- package/aftonbladetv2/es/{index-DwVmQcQx.js → index-Da0I71bo.js} +1 -1
- package/aftonbladetv2/es/{index-WsLHdGsQ.js → index-DdWbIaIV.js} +1 -1
- package/aftonbladetv2/es/{index-DEgWw4w5.js → index-HlMrzQEW.js} +1 -1
- package/aftonbladetv2/es/{index-DTUu0D5o.js → index-Lvx32Flj.js} +1 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-YXuIil-V.js → styles-BOjgx6uS.js} +1 -1
- package/aftonbladetv2/es/{styles-CgZcMN7l.js → styles-By4PZHDv.js} +1 -1
- package/aftonbladetv2/es/{styles-B5D7RYt-.js → styles-C74KoY--.js} +1 -1
- package/aftonbladetv2/es/{styles-cD8Xwu9e.js → styles-DPzMqZTR.js} +1 -1
- package/aftonbladetv2/es/{styles-xHMk0eJl.js → styles-DgcvHi4h.js} +1 -1
- package/aftonbladetv2/es/{styles-Cb_8nsna.js → styles-WtRh4e1n.js} +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/{_auto-entry_bt-QNoD_0RT.js → _auto-entry_bt-Bfl5VGAm.js} +1 -1
- package/bt/es/{events-Blh01CsT.js → events-Ia5zwXTd.js} +1 -1
- package/bt/es/index-BOrjnphM.js +1 -0
- package/{sa/es/index-B-_cJdu9.js → bt/es/index-BY9sjUqa.js} +1 -1
- package/bt/es/index-Cau5SxaW.js +1 -0
- package/bt/es/{index-O-YceiPr.js → index-CftlOrIh.js} +1 -1
- package/bt/es/{index-HUM4B7wV.js → index-DhBf7Abu.js} +1 -1
- package/bt/es/{index-Djw90We6.js → index-DqEkBDo7.js} +1 -1
- package/bt/es/{index-UehEuf8b.js → index-Mhm6cg2J.js} +1 -1
- package/bt/es/{index-D4oWbqwk.js → index-rc9fnSTs.js} +1 -1
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-D5oPWJfz.js → styles-62NXUs_6.js} +1 -1
- package/bt/es/{styles-rOleXtd2.js → styles-CXznAUNR.js} +1 -1
- package/bt/es/{styles-Bh6yDYMD.js → styles-CadK3pg1.js} +1 -1
- package/bt/es/{styles-C7-9SgJf.js → styles-DA93a-QG.js} +1 -1
- package/bt/es/{styles-DoIlstdh.js → styles-DSDx5xao.js} +1 -1
- package/{sa/es/styles-Bl-cCCOn.js → bt/es/styles-DaFVngO7.js} +1 -1
- package/bt/es/styles-Lyx2HwiJ.js +1 -0
- package/bt/es/{styles-_CnDzj2l.js → styles-QwOdMH_7.js} +1 -1
- package/{sa/es/styles-CtfiwAAF.js → bt/es/styles-vnBfbs8q.js} +1 -1
- package/{sav2/es/_auto-entry_sav2-D2PAX2px.js → btv2/es/_auto-entry_btv2-Bv3tgqvD.js} +1 -1
- package/btv2/es/{events-BEHKyES-.js → events-BDeYnOwd.js} +1 -1
- package/btv2/es/{index-CCo4wo_y.js → index-BNrF_FNO.js} +1 -1
- package/btv2/es/index-C8XccOQ6.js +1 -0
- package/{sav2/es/index-BA4u8KKN.js → btv2/es/index-CMnZbhwL.js} +1 -1
- package/btv2/es/{index-CgZKfxsh.js → index-D1rfxBSt.js} +1 -1
- package/btv2/es/{index-jMNYoPQ3.js → index-Du70vfz0.js} +1 -1
- package/btv2/es/{index-CUG4LWO5.js → index-DwIFpfE4.js} +1 -1
- package/btv2/es/{index-MYTsAOAk.js → index-_7LpYvsT.js} +1 -1
- package/btv2/es/index-ykqV1N0u.js +1 -0
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-xep7_uQ1.js → styles-B1yJvxkd.js} +1 -1
- package/{sav2/es/styles-wqUZkfiB.js → btv2/es/styles-BDsr3hvh.js} +1 -1
- package/{vgv2/es/styles-C0N7ieJA.js → btv2/es/styles-BQv56SB9.js} +1 -1
- package/{sav2/es/styles-BS8KxgqT.js → btv2/es/styles-BYi5jM4f.js} +1 -1
- package/btv2/es/{styles-BD8Y-Sll.js → styles-C1GGyRho.js} +1 -1
- package/{sav2/es/styles-Lc2EW8mW.js → btv2/es/styles-DWItgO5j.js} +1 -1
- package/{sav2/es/styles-CbW-BHvw.js → btv2/es/styles-DuUfGkR5.js} +1 -1
- package/{sav2/es/styles-FzQYr7yN.js → btv2/es/styles-_fmUcLzC.js} +1 -1
- package/e24/es/_auto-entry_e24-DwDAEyKl.js +1 -0
- package/e24/es/{events-Dysz3HAh.js → events-Bcpm7uOB.js} +1 -1
- package/e24/es/index-B67yEYTY.js +1 -0
- package/e24/es/{index-D-Bm5OM5.js → index-BVRfqTfp.js} +1 -1
- package/e24/es/{index-DlLjvK-h.js → index-D0d5obz9.js} +1 -1
- package/e24/es/{index-4Pzya-3z.js → index-DMud806Q.js} +1 -1
- package/e24/es/{index-BQS49j6I.js → index-DedGW-1U.js} +1 -1
- package/e24/es/{index-BVI0m_hK.js → index-DpYA-FDE.js} +1 -1
- package/e24/es/{index-oOIB16EQ.js → index-PunRD0FW.js} +1 -1
- package/e24/es/{index-BKlGtT6h.js → index-VNJfzE9l.js} +1 -1
- package/e24/es/index.js +1 -1
- package/{tv4/es/styles-BNCbUSUd.js → e24/es/styles-BhsWfh2D.js} +1 -1
- package/e24/es/styles-BwOBWsQC.js +1 -0
- package/e24/es/{styles-CfhjlnX8.js → styles-CYizcnvl.js} +1 -1
- package/e24/es/{styles-YScg23Wn.js → styles-Cdonyaqo.js} +1 -1
- package/e24/es/{styles-BvOoCVzf.js → styles-Cez0eh19.js} +1 -1
- package/e24/es/{styles-BLdm9p0C.js → styles-ChKCp_TQ.js} +1 -1
- package/e24/es/{styles-BsWiDViB.js → styles-Cw6kf6Sw.js} +1 -1
- package/e24/es/{styles-73maTmFN.js → styles-D8Kpyb6u.js} +1 -1
- package/e24/es/{styles-CLICkLp6.js → styles-DKYE97aX.js} +1 -1
- package/e24/es/{styles-CA16ScgJ.js → styles-ObndgjDP.js} +1 -1
- package/e24/es/{styles-Up8IgP9g.js → styles-zG8trG-A.js} +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-Duktxc3W.js → _auto-entry_fotbollskanalen-DwO2nnh5.js} +1 -1
- package/fotbollskanalen/es/{events-z7M3tiUD.js → events-BtEcG9Ft.js} +1 -1
- package/fotbollskanalen/es/index-B0tDCwlS.js +1 -0
- package/fotbollskanalen/es/{index-2HdpVCe0.js → index-B5Y8bEE5.js} +1 -1
- package/fotbollskanalen/es/{index-Cf5Xf5Iy.js → index-BHROA4NL.js} +1 -1
- package/fotbollskanalen/es/{index-BB5NDM6M.js → index-BVqrnA4N.js} +1 -1
- package/fotbollskanalen/es/{index-rA13ra0N.js → index-BcyDyM7W.js} +1 -1
- package/fotbollskanalen/es/{index-DC0pi6it.js → index-CUuDiVdL.js} +1 -1
- package/fotbollskanalen/es/{index-BuCQ9YRJ.js → index-DKlR0uba.js} +1 -1
- package/fotbollskanalen/es/{index-5HCvR7Zu.js → index-YFM5Uc87.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-CmpOqLxr.js → styles-CONqbIOt.js} +1 -1
- package/godt/cjs/index.js +1 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/{_auto-entry_koket-D-THSr9U.js → _auto-entry_koket-DKjh2I7a.js} +1 -1
- package/koket/es/{events-BDhTOrrW.js → events-D1bwVPuT.js} +1 -1
- package/koket/es/index-0gZOJL8S.js +1 -0
- package/koket/es/{index-DpAVAJZh.js → index-B9SY_iTY.js} +1 -1
- package/{svdv2/es/index-xQOCERms.js → koket/es/index-BTWfthnM.js} +1 -1
- package/koket/es/{index-DylKiYYd.js → index-CrvVz9qf.js} +1 -1
- package/koket/es/{index-b6xuOf1u.js → index-DWv2jU19.js} +1 -1
- package/koket/es/{index-B6voAm8C.js → index-D__2JwcN.js} +1 -1
- package/koket/es/index-DocuE7Fp.js +1 -0
- package/koket/es/{index-CnhH22Xc.js → index-ZC4qEo5b.js} +1 -1
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-CkJKueyX.js → koket/es/styles-us9Z07sa.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/{_auto-entry_sa-SbAuLAEw.js → _auto-entry_sa-DQmzibez.js} +1 -1
- package/sa/es/{events-BaVtgx4X.js → events-bh5YdSrm.js} +1 -1
- package/sa/es/index-3_UtN6Xv.js +1 -0
- package/sa/es/{index-LoM0Xu8j.js → index-B-VH0hsy.js} +1 -1
- package/sa/es/{index-DCgnQXks.js → index-CSN2_g0X.js} +1 -1
- package/sa/es/{index-D1rZu4_M.js → index-DBg0hXcV.js} +1 -1
- package/sa/es/{index-B7ynasyk.js → index-DI6kO9XJ.js} +1 -1
- package/sa/es/index-DphfxfjA.js +1 -0
- package/sa/es/{index-BJNW0JD4.js → index-Ty9hdF-F.js} +1 -1
- package/{bt/es/index-DE-gIBqf.js → sa/es/index-sWkTjMbA.js} +1 -1
- package/sa/es/index.js +1 -1
- package/{bt/es/styles-DPgwMdwW.js → sa/es/styles-0LvAnkqM.js} +1 -1
- package/{vg/es/styles-yFwJsW94.js → sa/es/styles-2fKWn5no.js} +1 -1
- package/sa/es/{styles-DsQ6kBdB.js → styles-4EGHfZhs.js} +1 -1
- package/sa/es/styles-8Qvx-NJB.js +1 -0
- package/sa/es/{styles--ElocMHa.js → styles-B4LbaOsh.js} +1 -1
- package/{vg/es/styles-CzeloeS3.js → sa/es/styles-C2qJqAGf.js} +1 -1
- package/{vg/es/styles-BVAduHxb.js → sa/es/styles-CMoEIIXN.js} +1 -1
- package/sa/es/{styles-Clv-FFmH.js → styles-CQE9QWU1.js} +1 -1
- package/sa/es/{styles-Dxjkjzn-.js → styles-Cs7syE21.js} +1 -1
- package/{btv2/es/_auto-entry_btv2-CNRsEIRJ.js → sav2/es/_auto-entry_sav2-DFDAeFry.js} +1 -1
- package/sav2/es/{events-BTa-WZ9S.js → events-DcXJ7HLh.js} +1 -1
- package/sav2/es/{index-DRmzYhVH.js → index-BRqpesdv.js} +1 -1
- package/sav2/es/{index-CB1gkgtK.js → index-Bk8p0mN0.js} +1 -1
- package/sav2/es/index-BkzDUn2e.js +1 -0
- package/sav2/es/{index-BizM_GEe.js → index-BtKd0L9t.js} +1 -1
- package/sav2/es/{index-Cx_IZLzX.js → index-DKWdgoNo.js} +1 -1
- package/sav2/es/index-DTaRUTsB.js +1 -0
- package/sav2/es/{index-QHwYSfrr.js → index-DzH8KZfg.js} +1 -1
- package/{btv2/es/index-9ODpn9iW.js → sav2/es/index-L2LqrJfQ.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/{vgv2/es/styles-LweHRgGq.js → sav2/es/styles--4yIwH8E.js} +1 -1
- package/{btv2/es/styles-BD8o0Zel.js → sav2/es/styles-BPTfepWW.js} +1 -1
- package/{btv2/es/styles-BYld5J_J.js → sav2/es/styles-BPg8JO5T.js} +1 -1
- package/{vgv2/es/styles-b3FA1FHY.js → sav2/es/styles-Ctgl6vU-.js} +1 -1
- package/sav2/es/{styles-BZpRM5Au.js → styles-D8ibCySe.js} +1 -1
- package/{btv2/es/styles-KEkltLFy.js → sav2/es/styles-DPU18A5x.js} +1 -1
- package/sav2/es/{styles-yrwp5tN1.js → styles-DVa9k_i5.js} +1 -1
- package/sav2/es/{styles-Bd4cXNv-.js → styles-DbTNvCN-.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/{_auto-entry_svd-Bs4772ka.js → _auto-entry_svd-NI-qSGGY.js} +1 -1
- package/svd/es/{events-ClLRL1Mb.js → events-COQgRVv3.js} +1 -1
- package/svd/es/index-BQsnq5Ee.js +1 -0
- package/svd/es/{index-C-TDPShz.js → index-BiXZUWBn.js} +1 -1
- package/svd/es/{index-DICgMRlm.js → index-Bnrx8HWO.js} +1 -1
- package/svd/es/{index-vmw6Lfnt.js → index-CNRdaxjK.js} +1 -1
- package/svd/es/{index-B3n5UmRg.js → index-DPBUBkoD.js} +1 -1
- package/svd/es/{index-CBnViwfb.js → index-De57Uv5I.js} +1 -1
- package/svd/es/{index-DwHw7_tt.js → index-DmBQDCkO.js} +1 -1
- package/svd/es/{index-BMx7dqYi.js → index-l-OA3hIj.js} +1 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-DjqEKtuv.js → styles-Bh7zevCw.js} +1 -1
- package/svd/es/{styles-7I1roCSD.js → styles-C7vktpE6.js} +1 -1
- package/svd/es/{styles-BjmD_my3.js → styles-CauhafZA.js} +1 -1
- package/svd/es/{styles-W56OduLD.js → styles-DWL27JWY.js} +1 -1
- package/svd/es/{styles-CRERoqrr.js → styles-Es4_OUgo.js} +1 -1
- package/svd/es/{styles-C6y-SV8x.js → styles-TsYQ-9NX.js} +1 -1
- package/svdv2/es/{_auto-entry_svdv2-CtEuSHQM.js → _auto-entry_svdv2-DPKVS3JP.js} +1 -1
- package/svdv2/es/{events-mCeGl2_4.js → events-COyRa6Ks.js} +1 -1
- package/svdv2/es/{index-D57mm5FY.js → index-B5QH3Xfl.js} +1 -1
- package/svdv2/es/{index-BleC6sfe.js → index-Cb4XUnoa.js} +1 -1
- package/svdv2/es/{index-Dr65bzZh.js → index-IsfkxTAp.js} +1 -1
- package/svdv2/es/index-LZBwA0Gx.js +1 -0
- package/svdv2/es/{index-BF4m8pIG.js → index-U6vPQocj.js} +1 -1
- package/svdv2/es/{index-D9O1MjEl.js → index-UqEiyv7y.js} +1 -1
- package/{koket/es/index-CmK365wY.js → svdv2/es/index-oM6ndZE6.js} +1 -1
- package/svdv2/es/{index-It6R9dzK.js → index-siGGjZGd.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles-Us1b1VD8.js → svdv2/es/styles-CjlPJ3nZ.js} +1 -1
- package/svdv2/es/{styles-Cp5bIsWf.js → styles-D2vfWCTi.js} +1 -1
- package/svdv2/es/{styles-DHP8ul1R.js → styles-DBx2toB9.js} +1 -1
- package/svdv2/es/{styles-BhjB3Pum.js → styles-DeGuC1Q-.js} +1 -1
- package/svdv2/es/{styles-5MqUR5n_.js → styles-Dipexffb.js} +1 -1
- package/svdv2/es/{styles-BI6tTDUK.js → styles-rWWE-r8u.js} +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/{_auto-entry_tv4-CYCRvkhm.js → _auto-entry_tv4-CpBkVDZq.js} +1 -1
- package/tv4/es/{events-DRVFnxyQ.js → events-Cr68QZkT.js} +1 -1
- package/tv4/es/{index-DMKzz8kY.js → index-7sixGKzI.js} +1 -1
- package/tv4/es/{index-Bbw2Kw18.js → index-Cb30H6No.js} +1 -1
- package/tv4/es/index-CitRFOF-.js +1 -0
- package/tv4/es/{index-Dx_Mt-VN.js → index-Ckfq1edP.js} +1 -1
- package/tv4/es/{index-ChhJajOT.js → index-D58hSF5V.js} +1 -1
- package/tv4/es/{index-BkPDhtF1.js → index-DRLKjYME.js} +1 -1
- package/tv4/es/{index-Ialexfzm.js → index-_wsBYP9p.js} +1 -1
- package/tv4/es/index-bkiytqYr.js +1 -0
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-BnYngXiU.js → tv4/es/styles-BvCP_UZj.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-C9zobrTw.js +1 -0
- package/vg/es/{events-BRaTYVNP.js → events-CQtp1ox1.js} +1 -1
- package/vg/es/{index-XS-iIS5D.js → index-7yueVsN5.js} +1 -1
- package/vg/es/{index-B5fZ-Jub.js → index-Beg4dKDr.js} +1 -1
- package/vg/es/{index-R6gKMM4t.js → index-CAEhGE5S.js} +1 -1
- package/vg/es/index-DXv4Ogy1.js +1 -0
- package/vg/es/{index-6BijGeb8.js → index-Dkr0F9Sj.js} +1 -1
- package/vg/es/{index-BBH9T61Z.js → index-Dq4CLAF1.js} +1 -1
- package/vg/es/{index-FGAc7QKU.js → index-pQrYLbC4.js} +1 -1
- package/vg/es/{index-CrlHoCL4.js → index-r2enATIQ.js} +1 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-CWlmkcoo.js → styles-7q_Z9LE4.js} +1 -1
- package/{bt/es/styles-DMVWPtLi.js → vg/es/styles-Aeg1GvqE.js} +1 -1
- package/vg/es/{styles-1HbmDRoq.js → styles-B9GISZmI.js} +1 -1
- package/vg/es/{styles-BDe_Tvo_.js → styles-BM80RQFS.js} +1 -1
- package/vg/es/{styles-D1mf0NId.js → styles-BTajZ2XW.js} +1 -1
- package/vg/es/{styles-DKiDMbB5.js → styles-C9GWUf8D.js} +1 -1
- package/vg/es/{styles-C2BhLy3_.js → styles-CI3RZ50F.js} +1 -1
- package/{sa/es/styles-C2Ncz_LK.js → vg/es/styles-CRuGmkFL.js} +1 -1
- package/vg/es/{styles-Cs0W1FFU.js → styles-CU6clz2b.js} +1 -1
- package/vg/es/{styles-BQqCnFt5.js → styles-Ca_HNswJ.js} +1 -1
- package/vg/es/{styles-Bnv1zUsA.js → styles-Co4OrjMv.js} +1 -1
- package/vg/es/{styles-0xF8Eudx.js → styles-D42GA45q.js} +1 -1
- package/vg/es/{styles-BAhKrv8I.js → styles-KAXRBqd7.js} +1 -1
- package/{sa/es/styles-B5SqWLCl.js → vg/es/styles-T06YQ5gK.js} +1 -1
- package/vg/es/{styles-ELdhcTC-.js → styles-eoaCG6u_.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-DYB61ujn.js +1 -0
- package/vgv2/es/{events-YG2T0Vf9.js → events-B2OTdfpX.js} +1 -1
- package/vgv2/es/{index-CprUGSCY.js → index-BgBK8Epz.js} +1 -1
- package/vgv2/es/{index-CL6YEvCF.js → index-Bk3L7kKe.js} +1 -1
- package/vgv2/es/{index-DEDvCogv.js → index-BtqA47df.js} +1 -1
- package/vgv2/es/{index-D2Fj8AK6.js → index-CsXabYqg.js} +1 -1
- package/vgv2/es/index-DFd1e8Q5.js +1 -0
- package/vgv2/es/{index-qLfrlUTy.js → index-DNz12be8.js} +1 -1
- package/vgv2/es/{index-CsD5E5AE.js → index-DUT-6rZ-.js} +1 -1
- package/vgv2/es/{index-DnRdPk5I.js → index-DtEvjc7T.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-hvSQJ8A0.js → styles-7mI98jvS.js} +1 -1
- package/vgv2/es/{styles-B-xLQvDP.js → styles-BcccslRC.js} +1 -1
- package/vgv2/es/{styles-CXBtI47R.js → styles-Bx0JvuTT.js} +1 -1
- package/vgv2/es/{styles-UYQrbp9n.js → styles-C4L-ktth.js} +1 -1
- package/vgv2/es/{styles-B9HFDXfl.js → styles-CQS-mKoj.js} +1 -1
- package/vgv2/es/{styles-DYvRNGzo.js → styles-CcUkS66O.js} +1 -1
- package/{btv2/es/styles-CDnS2tEh.js → vgv2/es/styles-CwXxEuHa.js} +1 -1
- package/vgv2/es/{styles-CZ3k4VaW.js → styles-D70YdS3s.js} +1 -1
- package/vgv2/es/{styles-Dr5disIW.js → styles-DFtq7Nv-.js} +1 -1
- package/vgv2/es/{styles-B8CO6VZX.js → styles-DKKTxAjC.js} +1 -1
- package/vgv2/es/{styles-UCIrmDvi.js → styles-DjRV2AM1.js} +1 -1
- package/{btv2/es/styles-BNOK8Uj6.js → vgv2/es/styles-cvPBDcoH.js} +1 -1
- package/vgv2/es/{styles-XOlTfA61.js → styles-yZFBHTA3.js} +1 -1
- package/{btv2/es/styles-BlrdPtNi.js → vgv2/es/styles-yjVOodB8.js} +1 -1
- package/vgv2/es/{styles-BNo-rKgW.js → styles-z-UBZF2N.js} +1 -1
- package/aftenposten/es/index-BC2hssDs.js +0 -1
- package/aftenposten/es/index-QIcWOxCj.js +0 -1
- package/aftenposten/es/styles-BClWDQ-i.js +0 -1
- package/aftenpostenv2/es/index-D34JqNE6.js +0 -1
- package/aftenpostenv2/es/index-DIRuiC9-.js +0 -1
- package/aftenpostenv2/es/styles-jDufizmK.js +0 -1
- package/aftonbladet/es/index-DPiOU2pu.js +0 -1
- package/aftonbladet/es/index-LIxHIl0c.js +0 -1
- package/aftonbladetv2/es/index-DHQ5xiuA.js +0 -1
- package/aftonbladetv2/es/index-xtGcg3OR.js +0 -1
- package/bt/es/index-D4uBfAYL.js +0 -1
- package/bt/es/index-DpDMdc0S.js +0 -1
- package/bt/es/styles-BbTrAm9l.js +0 -1
- package/btv2/es/index-Dbczg6yq.js +0 -1
- package/btv2/es/index-Dr8IVVqW.js +0 -1
- package/e24/es/_auto-entry_e24-Dvz71qWF.js +0 -1
- package/e24/es/index-BrMYqD8Z.js +0 -1
- package/e24/es/styles-pYRWJ75E.js +0 -1
- package/fotbollskanalen/es/index-hjjX2iTv.js +0 -1
- package/koket/es/index-Bk5eEo0m.js +0 -1
- package/koket/es/index-Bx4zOqZq.js +0 -1
- package/sa/es/index-B0kOXJPJ.js +0 -1
- package/sa/es/index-DmdOq3tL.js +0 -1
- package/sa/es/styles-CLlLnOcV.js +0 -1
- package/sav2/es/index-CFITguvz.js +0 -1
- package/sav2/es/index-Cs3M7CZv.js +0 -1
- package/svd/es/index-DYuZxyIg.js +0 -1
- package/svdv2/es/index-8vXUxI9J.js +0 -1
- package/tv4/es/index-BDlP7fp0.js +0 -1
- package/tv4/es/index-BKaTrj8f.js +0 -1
- package/vg/es/_auto-entry_vg-CKXu_v-z.js +0 -1
- package/vg/es/index-Bgc-ZQhK.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-Brbrz-yU.js +0 -1
- package/vgv2/es/index-CNLzVyPC.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as t}from"./_auto-entry_e24-Dvz71qWF.js";import"react/jsx-runtime";t('.advertory-e24-ad-native-content{position:relative;max-width:580px;width:auto;padding:0;border-bottom:1px solid #d4d4d4;border-top:1px solid #d4d4d4;font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);color:#000c26;text-align:left;box-sizing:border-box;background-color:var(--background-color)}.advertory-e24-ad-native-content .ad-info{height:26px;width:26px;cursor:pointer;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.45)}.advertory-e24-ad-native-content *{line-height:normal}@media screen and (min-width: 740px){.advertory-e24-ad-native-content{width:100%;padding-top:23px;border-bottom:1px solid #d6dce4;border-top:1px solid #d6dce4;margin:0 auto calc(-40px + 4rem)}}.advertory-e24-ad-native-content .ad-info{position:absolute;z-index:1000;top:35px;left:8px;height:26px;width:26px;border-bottom-right-radius:13px;background-color:hsla(0,0%,100%,.4509803922);transform:none;transform-origin:center}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-info{top:50px;left:0}}.advertory-e24-ad-native-content .ad-link{color:inherit;text-decoration:none;display:block}.advertory-e24-ad-native-content .ad-link .ad-content{display:flex;flex-direction:column}.advertory-e24-ad-native-content .ad-link .ad-content .ad-header{box-sizing:border-box;display:flex;justify-content:space-between;width:100%;height:44px;padding:calc(.5*var(--space-s, 16px)) var(--space-s, 16px) calc(.5*var(--space-s, 16px)) calc(1.5*var(--space-s, 16px));font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);line-height:44px;background-color:#fffbf8}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-header{font-size:25px;max-height:50px;height:50px}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-header .ad-annonse{color:var(--color-gray-800, rgb(29, 29, 29));display:inline-block;font-size:16px;line-height:19px;font-weight:normal;vertical-align:top;text-transform:uppercase;padding:8px 0}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-header .ad-annonse{padding:10px 0 16px 0}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-header .ad-logo{width:auto;max-width:50%;max-height:36px;vertical-align:middle}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-header .ad-logo{max-height:42px}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-image-container{display:flex;align-items:flex-start;min-height:0;max-height:200px}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-image-container{max-height:262px}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-image-container .ad-image{width:100%;object-position:center 0;height:fit-content;object-fit:cover;max-height:inherit}.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container{display:flex;flex-direction:column;padding:calc(var(--space-s, 16px)*2) calc(var(--space-s, 16px)*1.5) 0;color:var(--color-gray-800, rgb(29, 29, 29));background-color:#fffbf8}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container{padding-bottom:14px}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container .ad-subtitle{font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);padding:16px 0 0 0;font-size:12px;font-style:normal;font-weight:normal}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container .ad-subtitle{font-size:14px;padding:16px 0 4px 0}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container .ad-title{color:var(--color-gray-800, rgb(29, 29, 29));font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);font-size:25px;font-style:normal;font-weight:500;padding:0}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container .ad-title{font-size:32px}}');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as d,q as c}from"./_auto-entry_fotbollskanalen-Duktxc3W.js";import"react/jsx-runtime";const i="#fff",p="#0098da",y=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},m=e=>{const t=w(e),o=A(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},A=e=>{const t=()=>m(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&m(e)};return u(),window.addEventListener("keydown",t),t},g=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),A(e),u(),t.addEventListener("click",()=>{m(e)}),v(!1))},E=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),A(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},f=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>m(e))})(e)},h=e=>{const{takeover:{splash:{showAnnonsLabel:t=!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"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},b=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).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=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).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})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},x=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},T=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=c(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=c(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,x(t))},C=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){var l,s;const{takeover:c}=r.get(),{targetId:u}=o,v=document.querySelector(`#${u}`),m=document.querySelector(".advertory-takeover-wrapper"),A=document.createElement("div");if(A.textContent=`variant: ${a(o)} | pageSectionsSelectors.header: ${null!==(s=null===(l=r.get().pageSectionsSelectors)||void 0===l?void 0:l.header)&&void 0!==s?s:"MISSING"} | targetElement: ${!!v} | adPlacement: ${!!m}`,A.style.cssText="position:fixed !important;top:0 !important;left:0 !important;right:0 !important;z-index:2147483647 !important;background:red !important;color:#fff !important;font:14px monospace !important;padding:8px !important;",document.documentElement.appendChild(A),!v||!m||!c)return;const w=a(o),x=m.offsetHeight,T=window.scrollY>x;m.style.display="block",!T&&y(w,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:h,[e.TOPSCROLLER]:b,[e.VELVET]:S})[o](t)})(m,w),k(),((t,o)=>{({[e.WELCOME_PAGE]:E,[e.TOPSCROLLER]:E,[e.SPLASH]:g,[e.VELVET]:f})[o](t)})(m,w),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:p}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(m,w,c),yield n(),!T&&y(w,!0),d(o,w)});export{q as createTakeoverAd,T as modifyTakeoverAdContent,C as modifyTakeoverIframe};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_koket-D-THSr9U.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-BDhTOrrW.js";import"react/jsx-runtime";n('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const y={Blink:"Blink"},h=new Map,g=n=>{var e;if(!h.has(n)){const e=import(/* webpackIgnore: true */n).then(n=>(n=>{for(const[e,i]of Object.entries(y)){const t=n[e];null!=t&&(window[i]=t)}})(n)).catch(e=>{throw h.delete(n),e});h.set(n,e)}return null!==(e=h.get(n))&&void 0!==e?e:Promise.resolve()},b="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",k=n=>{var e,i;const t=document.querySelector(`[id^="${n}"]`);return null!==(i=null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.finnBlinkId)&&void 0!==i?i:n},$=(n,e)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==e?void 0:e.enabled)||(n=>{var e;const i=document.querySelector(`[id^="${n}"]`);return!!(null===(e=null==i?void 0:i.dataset)||void 0===e?void 0:e.noBidAd)})(n);if(!o||!t)return null;const{height:r,requireImage:d,position:l,offset:a}=(null==e?void 0:e.sdkPayload)||{};return{selector:`#${k(n)}`,enabled:o,position:null!=l?l:n,height:null!=r?r:100,offset:null!=a?a:200,requireImage:d,advertoryTheme:null==e?void 0:e.advertoryTheme}},w=(n,a,s)=>e(void 0,void 0,void 0,function*(){const{placements:c,pageContext:{deviceType:u},appearanceConfig:f}=i.get();t(`rendering finn blink ad for ${n}`);const v=o(n),h=c[u].find(n=>n.targetId===v),g=$(n,null==h?void 0:h.finnBlink);if(!(null==g?void 0:g.enabled))return t(`Finn blink is not enabled on placement: ${n}`),s&&s(n),void p(n);if((n=>{var e;const i=k(n),t=document.querySelector(`[id^="${i}"]`);return!!(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains("finn"))})(n))return void t(`Finn blink already loaded ${n}`);const{publisher:b,countryCode:w,finnBlink:C}=a,{sdkPayload:{channel:x}={}}=null!=C?C:{},I=null!=x?x:`${b}.${w}`,j="dark"===(null==f?void 0:f.theme)?"dark":"light";try{const n=yield r();yield(B=Object.assign(Object.assign({},g),{channel:I,userId:n,theme:j}),e(void 0,void 0,void 0,function*(){const{userId:n,theme:e}=B,i=l(B,["userId","theme"]),t=window[y.Blink];if(!t)return;const o=new t({remote:"https://www.finn.no/distribution-front/external/carousel",userId:n,theme:e});yield o.inject(Object.assign({},i))})),m(g.selector.replace("#",""),g.advertoryTheme)}catch(e){t(`Finn blink error ${e}`),s&&s(n),!s&&d(n),p(n)}var B}),C=()=>e(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{isMobileApp:e,countryCode:o}}=i.get();return!!(yield a(n,e,o,"finn-blink"))||(t("Skip loading finn blink ad due to missing TCF consent."),!1)}),x=(n,o,r,l)=>e(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:e}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${n}`),!(yield C())||e)return r&&r(n),p(n),void(!r&&d(n));try{yield g(b)}catch(n){console.error(n)}yield w(n,o,r),l&&l()}),I=(n,e)=>{var i;(t(`Appending ${e.id} after ${n.id}`),n.parentElement&&(i=n.parentElement,!Array.from(i.children).some(n=>n.classList.contains("advertory-finn-blink-wrapper"))))?(n.parentElement.style.display="none",n.parentElement.insertAdjacentElement("afterend",e)):t(`Cannot perform afterend on: ${n.id}`)},j=(n,o)=>e(void 0,void 0,void 0,function*(){var e,r;if(!o)return;const{replacementConfig:d}=o,l=null===(e=null==d?void 0:d.adsToReplace)||void 0===e?void 0:e[n],a=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[n];s()&&l&&a&&o.enabled?(yield C())&&(yield g(b),l.forEach(([n,e])=>{const o=document.querySelector(`[id^="${n}"]`);if(!o)return;const r=(n=>{const{siteSpecificConfig:{publisherClassName:e}={}}=i.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=n,o.appendChild(r),u(e,r,f.FINN_BLINK),t(`Creating blink container for: ${n}`),o})(e);(n=>{t(`Hiding old ad container: ${n.id}`),n.style.setProperty("display","none","important")})(o),I(o,r),o.dataset.finnBlinkId=e,c().withFullAdsChain(n)})):t(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),B=n=>document.querySelector(`#${n}`),A=n=>e(void 0,void 0,void 0,function*(){if(!n.length)return;const{appearanceConfig:e,pageContext:{deviceType:t}}=i.get(),o=null==e?void 0:e.defaultThreshold[t];for(const e of n){const{requestThreshold:n,targetId:i}=e,t=B(i);t&&(yield v(t,null!=n?n:o))}});export{A as handleFinnBlinkOnlyPlacements,x as loadFinnBlinkAd,j as replaceAdsWithFinnBlink};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as d,q as c}from"./_auto-entry_koket-D-THSr9U.js";import"react/jsx-runtime";const i="#fff",p="#0098da",y=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},m=e=>{const t=w(e),o=A(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},A=e=>{const t=()=>m(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&m(e)};return u(),window.addEventListener("keydown",t),t},g=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),A(e),u(),t.addEventListener("click",()=>{m(e)}),v(!1))},E=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),A(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},h=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>m(e))})(e)},f=e=>{const{takeover:{splash:{showAnnonsLabel:t=!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"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},b=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).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=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).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})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},x=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},T=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=c(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=c(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,x(t))},C=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){var l,s;const{takeover:c}=r.get(),{targetId:u}=o,v=document.querySelector(`#${u}`),m=document.querySelector(".advertory-takeover-wrapper"),A=document.createElement("div");if(A.textContent=`variant: ${a(o)} | pageSectionsSelectors.header: ${null!==(s=null===(l=r.get().pageSectionsSelectors)||void 0===l?void 0:l.header)&&void 0!==s?s:"MISSING"} | targetElement: ${!!v} | adPlacement: ${!!m}`,A.style.cssText="position:fixed !important;top:0 !important;left:0 !important;right:0 !important;z-index:2147483647 !important;background:red !important;color:#fff !important;font:14px monospace !important;padding:8px !important;",document.documentElement.appendChild(A),!v||!m||!c)return;const w=a(o),x=m.offsetHeight,T=window.scrollY>x;m.style.display="block",!T&&y(w,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:f,[e.TOPSCROLLER]:b,[e.VELVET]:S})[o](t)})(m,w),k(),((t,o)=>{({[e.WELCOME_PAGE]:E,[e.TOPSCROLLER]:E,[e.SPLASH]:g,[e.VELVET]:h})[o](t)})(m,w),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:p}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(m,w,c),yield n(),!T&&y(w,!0),d(o,w)});export{q as createTakeoverAd,T as modifyTakeoverAdContent,C as modifyTakeoverIframe};
|
package/sa/es/index-B0kOXJPJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as d,q as c}from"./_auto-entry_sa-SbAuLAEw.js";import"react/jsx-runtime";const i="#fff",p="#0098da",y=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},m=e=>{const t=w(e),o=A(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},A=e=>{const t=()=>m(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&m(e)};return u(),window.addEventListener("keydown",t),t},g=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),A(e),u(),t.addEventListener("click",()=>{m(e)}),v(!1))},E=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),A(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},h=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>m(e))})(e)},f=e=>{const{takeover:{splash:{showAnnonsLabel:t=!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"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},b=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).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=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).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})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},x=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},T=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=c(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=c(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,x(t))},C=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){var l,s;const{takeover:c}=r.get(),{targetId:u}=o,v=document.querySelector(`#${u}`),m=document.querySelector(".advertory-takeover-wrapper"),A=document.createElement("div");if(A.textContent=`variant: ${a(o)} | pageSectionsSelectors.header: ${null!==(s=null===(l=r.get().pageSectionsSelectors)||void 0===l?void 0:l.header)&&void 0!==s?s:"MISSING"} | targetElement: ${!!v} | adPlacement: ${!!m}`,A.style.cssText="position:fixed !important;top:0 !important;left:0 !important;right:0 !important;z-index:2147483647 !important;background:red !important;color:#fff !important;font:14px monospace !important;padding:8px !important;",document.documentElement.appendChild(A),!v||!m||!c)return;const w=a(o),x=m.offsetHeight,T=window.scrollY>x;m.style.display="block",!T&&y(w,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:f,[e.TOPSCROLLER]:b,[e.VELVET]:S})[o](t)})(m,w),k(),((t,o)=>{({[e.WELCOME_PAGE]:E,[e.TOPSCROLLER]:E,[e.SPLASH]:g,[e.VELVET]:h})[o](t)})(m,w),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:p}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(m,w,c),yield n(),!T&&y(w,!0),d(o,w)});export{q as createTakeoverAd,T as modifyTakeoverAdContent,C as modifyTakeoverIframe};
|
package/sa/es/index-DmdOq3tL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_sa-SbAuLAEw.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-BaVtgx4X.js";import"react/jsx-runtime";n('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const y={Blink:"Blink"},h=new Map,g=n=>{var e;if(!h.has(n)){const e=import(/* webpackIgnore: true */n).then(n=>(n=>{for(const[e,i]of Object.entries(y)){const t=n[e];null!=t&&(window[i]=t)}})(n)).catch(e=>{throw h.delete(n),e});h.set(n,e)}return null!==(e=h.get(n))&&void 0!==e?e:Promise.resolve()},b="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",k=n=>{var e,i;const t=document.querySelector(`[id^="${n}"]`);return null!==(i=null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.finnBlinkId)&&void 0!==i?i:n},$=(n,e)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==e?void 0:e.enabled)||(n=>{var e;const i=document.querySelector(`[id^="${n}"]`);return!!(null===(e=null==i?void 0:i.dataset)||void 0===e?void 0:e.noBidAd)})(n);if(!o||!t)return null;const{height:r,requireImage:d,position:l,offset:a}=(null==e?void 0:e.sdkPayload)||{};return{selector:`#${k(n)}`,enabled:o,position:null!=l?l:n,height:null!=r?r:100,offset:null!=a?a:200,requireImage:d,advertoryTheme:null==e?void 0:e.advertoryTheme}},w=(n,a,s)=>e(void 0,void 0,void 0,function*(){const{placements:c,pageContext:{deviceType:u},appearanceConfig:f}=i.get();t(`rendering finn blink ad for ${n}`);const v=o(n),h=c[u].find(n=>n.targetId===v),g=$(n,null==h?void 0:h.finnBlink);if(!(null==g?void 0:g.enabled))return t(`Finn blink is not enabled on placement: ${n}`),s&&s(n),void p(n);if((n=>{var e;const i=k(n),t=document.querySelector(`[id^="${i}"]`);return!!(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains("finn"))})(n))return void t(`Finn blink already loaded ${n}`);const{publisher:b,countryCode:w,finnBlink:C}=a,{sdkPayload:{channel:x}={}}=null!=C?C:{},I=null!=x?x:`${b}.${w}`,j="dark"===(null==f?void 0:f.theme)?"dark":"light";try{const n=yield r();yield(B=Object.assign(Object.assign({},g),{channel:I,userId:n,theme:j}),e(void 0,void 0,void 0,function*(){const{userId:n,theme:e}=B,i=l(B,["userId","theme"]),t=window[y.Blink];if(!t)return;const o=new t({remote:"https://www.finn.no/distribution-front/external/carousel",userId:n,theme:e});yield o.inject(Object.assign({},i))})),m(g.selector.replace("#",""),g.advertoryTheme)}catch(e){t(`Finn blink error ${e}`),s&&s(n),!s&&d(n),p(n)}var B}),C=()=>e(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{isMobileApp:e,countryCode:o}}=i.get();return!!(yield a(n,e,o,"finn-blink"))||(t("Skip loading finn blink ad due to missing TCF consent."),!1)}),x=(n,o,r,l)=>e(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:e}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${n}`),!(yield C())||e)return r&&r(n),p(n),void(!r&&d(n));try{yield g(b)}catch(n){console.error(n)}yield w(n,o,r),l&&l()}),I=(n,e)=>{var i;(t(`Appending ${e.id} after ${n.id}`),n.parentElement&&(i=n.parentElement,!Array.from(i.children).some(n=>n.classList.contains("advertory-finn-blink-wrapper"))))?(n.parentElement.style.display="none",n.parentElement.insertAdjacentElement("afterend",e)):t(`Cannot perform afterend on: ${n.id}`)},j=(n,o)=>e(void 0,void 0,void 0,function*(){var e,r;if(!o)return;const{replacementConfig:d}=o,l=null===(e=null==d?void 0:d.adsToReplace)||void 0===e?void 0:e[n],a=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[n];s()&&l&&a&&o.enabled?(yield C())&&(yield g(b),l.forEach(([n,e])=>{const o=document.querySelector(`[id^="${n}"]`);if(!o)return;const r=(n=>{const{siteSpecificConfig:{publisherClassName:e}={}}=i.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=n,o.appendChild(r),u(e,r,f.FINN_BLINK),t(`Creating blink container for: ${n}`),o})(e);(n=>{t(`Hiding old ad container: ${n.id}`),n.style.setProperty("display","none","important")})(o),I(o,r),o.dataset.finnBlinkId=e,c().withFullAdsChain(n)})):t(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),B=n=>document.querySelector(`#${n}`),A=n=>e(void 0,void 0,void 0,function*(){if(!n.length)return;const{appearanceConfig:e,pageContext:{deviceType:t}}=i.get(),o=null==e?void 0:e.defaultThreshold[t];for(const e of n){const{requestThreshold:n,targetId:i}=e,t=B(i);t&&(yield v(t,null!=n?n:o))}});export{A as handleFinnBlinkOnlyPlacements,x as loadFinnBlinkAd,j as replaceAdsWithFinnBlink};
|
package/sa/es/styles-CLlLnOcV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as t}from"./_auto-entry_sa-SbAuLAEw.js";import"react/jsx-runtime";t('@import"https://fonts.googleapis.com/css?family=Roboto:400&display=swap";.advertory-sa-ad-native-content{position:relative;width:auto;padding:0 8px 0 8px;border-bottom:none;border-top:none;max-width:580px;font-family:"Inter";color:#000c26;text-align:left;background:#fff;box-sizing:border-box}.advertory-sa-ad-native-content *{line-height:normal}@media screen and (min-width: 769px){.advertory-sa-ad-native-content{width:100%;padding:0;border-bottom:1px solid #d6dce4;border-top:1px solid #d6dce4}}.advertory-sa-ad-native-content .ad-info{top:35px;left:8px;position:absolute;height:26px;width:26px;z-index:1000;background-color:hsla(0,0%,100%,.4509803922);border-bottom-right-radius:13px;transform:none;transform-origin:center}@media screen and (min-width: 769px){.advertory-sa-ad-native-content .ad-info{top:50px;left:0}}.advertory-sa-ad-native-content .ad-link{color:inherit;text-decoration:none;display:block}.advertory-sa-ad-native-content .ad-link .ad-content{display:flex;flex-direction:column}.advertory-sa-ad-native-content .ad-link .ad-content .ad-header{font-size:15px;max-height:35px;height:35px;padding-left:0;display:flex;align-items:center;justify-content:space-between;font-weight:normal;color:#000c26;font-family:"Inter"}@media screen and (min-width: 769px){.advertory-sa-ad-native-content .ad-link .ad-content .ad-header{font-size:25px;max-height:50px;height:50px}}.advertory-sa-ad-native-content .ad-link .ad-content .ad-header .ad-annonse{padding:10px 0 10px 0}@media screen and (min-width: 769px){.advertory-sa-ad-native-content .ad-link .ad-content .ad-header .ad-annonse{padding:9px 0 16px 0}}.advertory-sa-ad-native-content .ad-link .ad-content .ad-header .ad-logo{width:auto;max-width:100%;max-height:29px;margin:0}@media screen and (min-width: 769px){.advertory-sa-ad-native-content .ad-link .ad-content .ad-header .ad-logo{max-height:42px}}.advertory-sa-ad-native-content .ad-link .ad-content .ad-image-container{display:flex;align-items:flex-start;min-height:0;max-height:200px}@media screen and (min-width: 769px){.advertory-sa-ad-native-content .ad-link .ad-content .ad-image-container{max-height:262px}}.advertory-sa-ad-native-content .ad-link .ad-content .ad-image-container .ad-image{width:100%;object-position:center 0;height:fit-content;object-fit:cover;max-height:inherit}.advertory-sa-ad-native-content .ad-link .ad-content .ad-text-container{display:flex;flex-direction:column;padding-bottom:21px}@media screen and (min-width: 769px){.advertory-sa-ad-native-content .ad-link .ad-content .ad-text-container{padding-bottom:14px}}.advertory-sa-ad-native-content .ad-link .ad-content .ad-text-container .ad-subtitle{font-family:"Roboto";color:#212529;padding:16px 0 0 0;font-style:normal;font-weight:normal;font-size:12px}@media screen and (min-width: 769px){.advertory-sa-ad-native-content .ad-link .ad-content .ad-text-container .ad-subtitle{font-style:normal;font-weight:normal;font-size:14px;padding:20px 0 4px 0}}.advertory-sa-ad-native-content .ad-link .ad-content .ad-text-container .ad-title{font-family:"TiemposHeadlineMedium";color:#212529;padding:0;font-style:normal;font-weight:500;font-size:25px}@media screen and (min-width: 769px){.advertory-sa-ad-native-content .ad-link .ad-content .ad-text-container .ad-title{font-style:normal;font-weight:bold;font-size:28px}}');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_sav2-D2PAX2px.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-BTa-WZ9S.js";import"react/jsx-runtime";n('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const y={Blink:"Blink"},h=new Map,g=n=>{var e;if(!h.has(n)){const e=import(/* webpackIgnore: true */n).then(n=>(n=>{for(const[e,i]of Object.entries(y)){const t=n[e];null!=t&&(window[i]=t)}})(n)).catch(e=>{throw h.delete(n),e});h.set(n,e)}return null!==(e=h.get(n))&&void 0!==e?e:Promise.resolve()},b="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",k=n=>{var e,i;const t=document.querySelector(`[id^="${n}"]`);return null!==(i=null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.finnBlinkId)&&void 0!==i?i:n},$=(n,e)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==e?void 0:e.enabled)||(n=>{var e;const i=document.querySelector(`[id^="${n}"]`);return!!(null===(e=null==i?void 0:i.dataset)||void 0===e?void 0:e.noBidAd)})(n);if(!o||!t)return null;const{height:r,requireImage:d,position:l,offset:a}=(null==e?void 0:e.sdkPayload)||{};return{selector:`#${k(n)}`,enabled:o,position:null!=l?l:n,height:null!=r?r:100,offset:null!=a?a:200,requireImage:d,advertoryTheme:null==e?void 0:e.advertoryTheme}},w=(n,a,s)=>e(void 0,void 0,void 0,function*(){const{placements:c,pageContext:{deviceType:u},appearanceConfig:f}=i.get();t(`rendering finn blink ad for ${n}`);const v=o(n),h=c[u].find(n=>n.targetId===v),g=$(n,null==h?void 0:h.finnBlink);if(!(null==g?void 0:g.enabled))return t(`Finn blink is not enabled on placement: ${n}`),s&&s(n),void p(n);if((n=>{var e;const i=k(n),t=document.querySelector(`[id^="${i}"]`);return!!(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains("finn"))})(n))return void t(`Finn blink already loaded ${n}`);const{publisher:b,countryCode:w,finnBlink:C}=a,{sdkPayload:{channel:x}={}}=null!=C?C:{},I=null!=x?x:`${b}.${w}`,j="dark"===(null==f?void 0:f.theme)?"dark":"light";try{const n=yield r();yield(B=Object.assign(Object.assign({},g),{channel:I,userId:n,theme:j}),e(void 0,void 0,void 0,function*(){const{userId:n,theme:e}=B,i=l(B,["userId","theme"]),t=window[y.Blink];if(!t)return;const o=new t({remote:"https://www.finn.no/distribution-front/external/carousel",userId:n,theme:e});yield o.inject(Object.assign({},i))})),m(g.selector.replace("#",""),g.advertoryTheme)}catch(e){t(`Finn blink error ${e}`),s&&s(n),!s&&d(n),p(n)}var B}),C=()=>e(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{isMobileApp:e,countryCode:o}}=i.get();return!!(yield a(n,e,o,"finn-blink"))||(t("Skip loading finn blink ad due to missing TCF consent."),!1)}),x=(n,o,r,l)=>e(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:e}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${n}`),!(yield C())||e)return r&&r(n),p(n),void(!r&&d(n));try{yield g(b)}catch(n){console.error(n)}yield w(n,o,r),l&&l()}),I=(n,e)=>{var i;(t(`Appending ${e.id} after ${n.id}`),n.parentElement&&(i=n.parentElement,!Array.from(i.children).some(n=>n.classList.contains("advertory-finn-blink-wrapper"))))?(n.parentElement.style.display="none",n.parentElement.insertAdjacentElement("afterend",e)):t(`Cannot perform afterend on: ${n.id}`)},j=(n,o)=>e(void 0,void 0,void 0,function*(){var e,r;if(!o)return;const{replacementConfig:d}=o,l=null===(e=null==d?void 0:d.adsToReplace)||void 0===e?void 0:e[n],a=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[n];s()&&l&&a&&o.enabled?(yield C())&&(yield g(b),l.forEach(([n,e])=>{const o=document.querySelector(`[id^="${n}"]`);if(!o)return;const r=(n=>{const{siteSpecificConfig:{publisherClassName:e}={}}=i.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=n,o.appendChild(r),u(e,r,f.FINN_BLINK),t(`Creating blink container for: ${n}`),o})(e);(n=>{t(`Hiding old ad container: ${n.id}`),n.style.setProperty("display","none","important")})(o),I(o,r),o.dataset.finnBlinkId=e,c().withFullAdsChain(n)})):t(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),B=n=>document.querySelector(`#${n}`),A=n=>e(void 0,void 0,void 0,function*(){if(!n.length)return;const{appearanceConfig:e,pageContext:{deviceType:t}}=i.get(),o=null==e?void 0:e.defaultThreshold[t];for(const e of n){const{requestThreshold:n,targetId:i}=e,t=B(i);t&&(yield v(t,null!=n?n:o))}});export{A as handleFinnBlinkOnlyPlacements,x as loadFinnBlinkAd,j as replaceAdsWithFinnBlink};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as d,q as c}from"./_auto-entry_sav2-D2PAX2px.js";import"react/jsx-runtime";const i="#fff",p="#0098da",y=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},m=e=>{const t=w(e),o=A(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},A=e=>{const t=()=>m(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&m(e)};return u(),window.addEventListener("keydown",t),t},g=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),A(e),u(),t.addEventListener("click",()=>{m(e)}),v(!1))},E=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),A(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},h=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>m(e))})(e)},f=e=>{const{takeover:{splash:{showAnnonsLabel:t=!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"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},b=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).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=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).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})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},x=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},T=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=c(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=c(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,x(t))},C=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){var l,s;const{takeover:c}=r.get(),{targetId:u}=o,v=document.querySelector(`#${u}`),m=document.querySelector(".advertory-takeover-wrapper"),A=document.createElement("div");if(A.textContent=`variant: ${a(o)} | pageSectionsSelectors.header: ${null!==(s=null===(l=r.get().pageSectionsSelectors)||void 0===l?void 0:l.header)&&void 0!==s?s:"MISSING"} | targetElement: ${!!v} | adPlacement: ${!!m}`,A.style.cssText="position:fixed !important;top:0 !important;left:0 !important;right:0 !important;z-index:2147483647 !important;background:red !important;color:#fff !important;font:14px monospace !important;padding:8px !important;",document.documentElement.appendChild(A),!v||!m||!c)return;const w=a(o),x=m.offsetHeight,T=window.scrollY>x;m.style.display="block",!T&&y(w,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:f,[e.TOPSCROLLER]:b,[e.VELVET]:S})[o](t)})(m,w),k(),((t,o)=>{({[e.WELCOME_PAGE]:E,[e.TOPSCROLLER]:E,[e.SPLASH]:g,[e.VELVET]:h})[o](t)})(m,w),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:p}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(m,w,c),yield n(),!T&&y(w,!0),d(o,w)});export{q as createTakeoverAd,T as modifyTakeoverAdContent,C as modifyTakeoverIframe};
|
package/svd/es/index-DYuZxyIg.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as d,q as c}from"./_auto-entry_svd-Bs4772ka.js";import"react/jsx-runtime";const i="#fff",p="#0098da",y=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},m=e=>{const t=w(e),o=A(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},A=e=>{const t=()=>m(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&m(e)};return u(),window.addEventListener("keydown",t),t},g=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),A(e),u(),t.addEventListener("click",()=>{m(e)}),v(!1))},E=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),A(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},h=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>m(e))})(e)},f=e=>{const{takeover:{splash:{showAnnonsLabel:t=!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"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},b=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).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=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).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})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},x=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},T=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=c(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=c(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,x(t))},C=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){var l,s;const{takeover:c}=r.get(),{targetId:u}=o,v=document.querySelector(`#${u}`),m=document.querySelector(".advertory-takeover-wrapper"),A=document.createElement("div");if(A.textContent=`variant: ${a(o)} | pageSectionsSelectors.header: ${null!==(s=null===(l=r.get().pageSectionsSelectors)||void 0===l?void 0:l.header)&&void 0!==s?s:"MISSING"} | targetElement: ${!!v} | adPlacement: ${!!m}`,A.style.cssText="position:fixed !important;top:0 !important;left:0 !important;right:0 !important;z-index:2147483647 !important;background:red !important;color:#fff !important;font:14px monospace !important;padding:8px !important;",document.documentElement.appendChild(A),!v||!m||!c)return;const w=a(o),x=m.offsetHeight,T=window.scrollY>x;m.style.display="block",!T&&y(w,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:f,[e.TOPSCROLLER]:b,[e.VELVET]:S})[o](t)})(m,w),k(),((t,o)=>{({[e.WELCOME_PAGE]:E,[e.TOPSCROLLER]:E,[e.SPLASH]:g,[e.VELVET]:h})[o](t)})(m,w),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:p}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(m,w,c),yield n(),!T&&y(w,!0),d(o,w)});export{q as createTakeoverAd,T as modifyTakeoverAdContent,C as modifyTakeoverIframe};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as d,q as c}from"./_auto-entry_svdv2-CtEuSHQM.js";import"react/jsx-runtime";const i="#fff",p="#0098da",y=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},m=e=>{const t=w(e),o=A(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},A=e=>{const t=()=>m(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&m(e)};return u(),window.addEventListener("keydown",t),t},g=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),A(e),u(),t.addEventListener("click",()=>{m(e)}),v(!1))},E=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),A(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},h=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>m(e))})(e)},f=e=>{const{takeover:{splash:{showAnnonsLabel:t=!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"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},b=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).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=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).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})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},x=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},T=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=c(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=c(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,x(t))},C=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){var l,s;const{takeover:c}=r.get(),{targetId:u}=o,v=document.querySelector(`#${u}`),m=document.querySelector(".advertory-takeover-wrapper"),A=document.createElement("div");if(A.textContent=`variant: ${a(o)} | pageSectionsSelectors.header: ${null!==(s=null===(l=r.get().pageSectionsSelectors)||void 0===l?void 0:l.header)&&void 0!==s?s:"MISSING"} | targetElement: ${!!v} | adPlacement: ${!!m}`,A.style.cssText="position:fixed !important;top:0 !important;left:0 !important;right:0 !important;z-index:2147483647 !important;background:red !important;color:#fff !important;font:14px monospace !important;padding:8px !important;",document.documentElement.appendChild(A),!v||!m||!c)return;const w=a(o),x=m.offsetHeight,T=window.scrollY>x;m.style.display="block",!T&&y(w,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:f,[e.TOPSCROLLER]:b,[e.VELVET]:S})[o](t)})(m,w),k(),((t,o)=>{({[e.WELCOME_PAGE]:E,[e.TOPSCROLLER]:E,[e.SPLASH]:g,[e.VELVET]:h})[o](t)})(m,w),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:p}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(m,w,c),yield n(),!T&&y(w,!0),d(o,w)});export{q as createTakeoverAd,T as modifyTakeoverAdContent,C as modifyTakeoverIframe};
|
package/tv4/es/index-BDlP7fp0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as d,q as c}from"./_auto-entry_tv4-CYCRvkhm.js";import"react/jsx-runtime";const i="#fff",p="#0098da",y=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},m=e=>{const t=w(e),o=A(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},A=e=>{const t=()=>m(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&m(e)};return u(),window.addEventListener("keydown",t),t},g=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),A(e),u(),t.addEventListener("click",()=>{m(e)}),v(!1))},E=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),A(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},h=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>m(e))})(e)},f=e=>{const{takeover:{splash:{showAnnonsLabel:t=!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"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},b=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).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=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).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})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},x=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},T=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=c(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=c(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,x(t))},C=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){var l,s;const{takeover:c}=r.get(),{targetId:u}=o,v=document.querySelector(`#${u}`),m=document.querySelector(".advertory-takeover-wrapper"),A=document.createElement("div");if(A.textContent=`variant: ${a(o)} | pageSectionsSelectors.header: ${null!==(s=null===(l=r.get().pageSectionsSelectors)||void 0===l?void 0:l.header)&&void 0!==s?s:"MISSING"} | targetElement: ${!!v} | adPlacement: ${!!m}`,A.style.cssText="position:fixed !important;top:0 !important;left:0 !important;right:0 !important;z-index:2147483647 !important;background:red !important;color:#fff !important;font:14px monospace !important;padding:8px !important;",document.documentElement.appendChild(A),!v||!m||!c)return;const w=a(o),x=m.offsetHeight,T=window.scrollY>x;m.style.display="block",!T&&y(w,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:f,[e.TOPSCROLLER]:b,[e.VELVET]:S})[o](t)})(m,w),k(),((t,o)=>{({[e.WELCOME_PAGE]:E,[e.TOPSCROLLER]:E,[e.SPLASH]:g,[e.VELVET]:h})[o](t)})(m,w),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:p}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(m,w,c),yield n(),!T&&y(w,!0),d(o,w)});export{q as createTakeoverAd,T as modifyTakeoverAdContent,C as modifyTakeoverIframe};
|
package/tv4/es/index-BKaTrj8f.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_tv4-CYCRvkhm.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-DRVFnxyQ.js";import"react/jsx-runtime";n('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const y={Blink:"Blink"},h=new Map,g=n=>{var e;if(!h.has(n)){const e=import(/* webpackIgnore: true */n).then(n=>(n=>{for(const[e,i]of Object.entries(y)){const t=n[e];null!=t&&(window[i]=t)}})(n)).catch(e=>{throw h.delete(n),e});h.set(n,e)}return null!==(e=h.get(n))&&void 0!==e?e:Promise.resolve()},b="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",k=n=>{var e,i;const t=document.querySelector(`[id^="${n}"]`);return null!==(i=null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.finnBlinkId)&&void 0!==i?i:n},$=(n,e)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==e?void 0:e.enabled)||(n=>{var e;const i=document.querySelector(`[id^="${n}"]`);return!!(null===(e=null==i?void 0:i.dataset)||void 0===e?void 0:e.noBidAd)})(n);if(!o||!t)return null;const{height:r,requireImage:d,position:l,offset:a}=(null==e?void 0:e.sdkPayload)||{};return{selector:`#${k(n)}`,enabled:o,position:null!=l?l:n,height:null!=r?r:100,offset:null!=a?a:200,requireImage:d,advertoryTheme:null==e?void 0:e.advertoryTheme}},w=(n,a,s)=>e(void 0,void 0,void 0,function*(){const{placements:c,pageContext:{deviceType:u},appearanceConfig:f}=i.get();t(`rendering finn blink ad for ${n}`);const v=o(n),h=c[u].find(n=>n.targetId===v),g=$(n,null==h?void 0:h.finnBlink);if(!(null==g?void 0:g.enabled))return t(`Finn blink is not enabled on placement: ${n}`),s&&s(n),void p(n);if((n=>{var e;const i=k(n),t=document.querySelector(`[id^="${i}"]`);return!!(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains("finn"))})(n))return void t(`Finn blink already loaded ${n}`);const{publisher:b,countryCode:w,finnBlink:C}=a,{sdkPayload:{channel:x}={}}=null!=C?C:{},I=null!=x?x:`${b}.${w}`,j="dark"===(null==f?void 0:f.theme)?"dark":"light";try{const n=yield r();yield(B=Object.assign(Object.assign({},g),{channel:I,userId:n,theme:j}),e(void 0,void 0,void 0,function*(){const{userId:n,theme:e}=B,i=l(B,["userId","theme"]),t=window[y.Blink];if(!t)return;const o=new t({remote:"https://www.finn.no/distribution-front/external/carousel",userId:n,theme:e});yield o.inject(Object.assign({},i))})),m(g.selector.replace("#",""),g.advertoryTheme)}catch(e){t(`Finn blink error ${e}`),s&&s(n),!s&&d(n),p(n)}var B}),C=()=>e(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{isMobileApp:e,countryCode:o}}=i.get();return!!(yield a(n,e,o,"finn-blink"))||(t("Skip loading finn blink ad due to missing TCF consent."),!1)}),x=(n,o,r,l)=>e(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:e}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${n}`),!(yield C())||e)return r&&r(n),p(n),void(!r&&d(n));try{yield g(b)}catch(n){console.error(n)}yield w(n,o,r),l&&l()}),I=(n,e)=>{var i;(t(`Appending ${e.id} after ${n.id}`),n.parentElement&&(i=n.parentElement,!Array.from(i.children).some(n=>n.classList.contains("advertory-finn-blink-wrapper"))))?(n.parentElement.style.display="none",n.parentElement.insertAdjacentElement("afterend",e)):t(`Cannot perform afterend on: ${n.id}`)},j=(n,o)=>e(void 0,void 0,void 0,function*(){var e,r;if(!o)return;const{replacementConfig:d}=o,l=null===(e=null==d?void 0:d.adsToReplace)||void 0===e?void 0:e[n],a=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[n];s()&&l&&a&&o.enabled?(yield C())&&(yield g(b),l.forEach(([n,e])=>{const o=document.querySelector(`[id^="${n}"]`);if(!o)return;const r=(n=>{const{siteSpecificConfig:{publisherClassName:e}={}}=i.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=n,o.appendChild(r),u(e,r,f.FINN_BLINK),t(`Creating blink container for: ${n}`),o})(e);(n=>{t(`Hiding old ad container: ${n.id}`),n.style.setProperty("display","none","important")})(o),I(o,r),o.dataset.finnBlinkId=e,c().withFullAdsChain(n)})):t(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),B=n=>document.querySelector(`#${n}`),A=n=>e(void 0,void 0,void 0,function*(){if(!n.length)return;const{appearanceConfig:e,pageContext:{deviceType:t}}=i.get(),o=null==e?void 0:e.defaultThreshold[t];for(const e of n){const{requestThreshold:n,targetId:i}=e,t=B(i);t&&(yield v(t,null!=n?n:o))}});export{A as handleFinnBlinkOnlyPlacements,x as loadFinnBlinkAd,j as replaceAdsWithFinnBlink};
|