@schibsted/advertory 3.11.1 → 3.11.3
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/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/{_auto-entry_aftenposten-BsjkcKch.js → _auto-entry_aftenposten-BlJhj3Ql.js} +1 -1
- package/aftenposten/es/{events-vh6_5VEQ.js → events-nsk358M-.js} +1 -1
- package/aftenposten/es/{index-DEmH3sWV.js → index-2AGsrhOU.js} +1 -1
- package/aftenposten/es/{index-Bf7ecWDr.js → index-96FMZFpj.js} +1 -1
- package/aftenposten/es/{index-DYvEZSEc.js → index-BQHmLgLP.js} +1 -1
- package/aftenposten/es/{index-CJMokavl.js → index-BhUXel6E.js} +1 -1
- package/aftenposten/es/{index-CppgVA-I.js → index-CX1MnfbV.js} +1 -1
- package/aftenposten/es/index-CwdJv-IP.js +1 -0
- package/aftenposten/es/{index-DjdRllfg.js → index-DMMR3v6M.js} +1 -1
- package/aftenposten/es/index-DZuR56CH.js +1 -0
- package/aftenposten/es/{index-CRaG-q4i.js → index-YYyuArHz.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-DEdrkUBz.js → styles-2mjY3-tx.js} +1 -1
- package/aftenposten/es/{styles-C6chbYPO.js → styles-B1pAN5tp.js} +1 -1
- package/aftenposten/es/{styles-Bug8JAZc.js → styles-BajOGSep.js} +1 -1
- package/aftenposten/es/{styles-BgEQSFpd.js → styles-ByApghoG.js} +1 -1
- package/aftenposten/es/{styles-DMmeoW4I.js → styles-DMml0iId.js} +1 -1
- package/aftenposten/es/{styles-fkMfh1G5.js → styles-Dd4ePNeU.js} +1 -1
- package/aftenposten/es/{styles-BVApOK4i.js → styles-DkUAz8uR.js} +1 -1
- package/aftenposten/es/{styles-DEWpZd3N.js → styles-DrxTexo-.js} +1 -1
- package/aftenposten/es/{styles-kpb6n0yu.js → styles-XJwMYCGo.js} +1 -1
- package/aftenposten/es/{styles-BNvqJJ4S.js → styles-Z_buTKY4.js} +1 -1
- package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-DGtNgWgg.js → _auto-entry_aftenpostenv2-CMtc6wZn.js} +1 -1
- package/aftenpostenv2/es/{events-B-fDYyFi.js → events-CAH25ehN.js} +1 -1
- package/aftenpostenv2/es/index-C0Jt6WVB.js +1 -0
- package/aftenpostenv2/es/{index-C4PG0Jbl.js → index-C76xBXMc.js} +1 -1
- package/{aftonbladetv2/es/index-BSOwZjwl.js → aftenpostenv2/es/index-CA48RWvC.js} +1 -1
- package/aftenpostenv2/es/{index-CFurygyM.js → index-Cc5Q1hET.js} +1 -1
- package/aftenpostenv2/es/{index-CLkGiEOx.js → index-CmM2MSxL.js} +1 -1
- package/aftenpostenv2/es/{index-CTwSa_EQ.js → index-DBKkP3mZ.js} +1 -1
- package/aftenpostenv2/es/{index-fjbyl7Q8.js → index-Da-nCE5Q.js} +1 -1
- package/aftenpostenv2/es/{index-DU7y4zf7.js → index-DsbgAvYG.js} +1 -1
- package/{aftonbladetv2/es/index-BEmugucO.js → aftenpostenv2/es/index-Is4Vozq7.js} +1 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-6Wf9ZQDa.js → styles-BCxVrGsE.js} +1 -1
- package/aftenpostenv2/es/{styles-Bx-APWMt.js → styles-BGUpnQxa.js} +1 -1
- package/aftenpostenv2/es/{styles-C5TI7hE3.js → styles-BwRoPUyf.js} +1 -1
- package/aftenpostenv2/es/{styles-DNzLEAoo.js → styles-CHjeG9KA.js} +1 -1
- package/aftenpostenv2/es/{styles-Dz9xjp_K.js → styles-CVoQLhmu.js} +1 -1
- package/aftenpostenv2/es/{styles-BF35J4Wx.js → styles-DLZuTOmu.js} +1 -1
- package/aftenpostenv2/es/{styles-CEK-gJZG.js → styles-DXriDpW2.js} +1 -1
- package/aftenpostenv2/es/{styles-9tCbYMAs.js → styles-DopCBGuN.js} +1 -1
- package/aftenpostenv2/es/{styles-D0QndG28.js → styles-vinaHZW-.js} +1 -1
- package/aftenpostenv2/es/{styles-D2m8CwE4.js → styles-y-PbNVnR.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/{_auto-entry_aftonbladet-CunDdnV6.js → _auto-entry_aftonbladet-CKhFl9Xv.js} +1 -1
- package/aftonbladet/es/{events-Bh_xJAqb.js → events-BWZhBudp.js} +1 -1
- package/aftonbladet/es/{index-su8NAn5T.js → index-67whYd86.js} +1 -1
- package/aftonbladet/es/index-7l_VTBo8.js +1 -0
- package/aftonbladet/es/{index-2-RE8h2A.js → index-B73aGBHa.js} +1 -1
- package/aftonbladet/es/{index-D57JuDdb.js → index-C0t_DY9w.js} +1 -1
- package/aftonbladet/es/{index-B8vyIwLj.js → index-CCTxzCZA.js} +1 -1
- package/aftonbladet/es/index-CjFytudG.js +1 -0
- package/aftonbladet/es/{index-BOutqvj9.js → index-DY4RLQFn.js} +1 -1
- package/aftonbladet/es/{index-Cy3NKKDF.js → index-DYlLWEi5.js} +1 -1
- package/aftonbladet/es/{index-Dp_2RXkZ.js → index-Vr5J3T7T.js} +1 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-BiJ8POXj.js → styles-BBt6xRoA.js} +1 -1
- package/aftonbladet/es/{styles-CTvLHL5i.js → styles-BR-QFFot.js} +1 -1
- package/aftonbladet/es/{styles-DCVkUeI3.js → styles-CV1u5ZmX.js} +1 -1
- package/aftonbladet/es/{styles-DZUONGSS.js → styles-DrfqVaQ1.js} +1 -1
- package/aftonbladet/es/{styles-C55NzBoL.js → styles-eH5tXoQ1.js} +1 -1
- package/aftonbladet/es/{styles-BAOfPN-4.js → styles-wRanWsVU.js} +1 -1
- package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-nySWVcQ0.js → _auto-entry_aftonbladetv2-Bvinn9kM.js} +1 -1
- package/aftonbladetv2/es/{events-Chryhn--.js → events-Dm0m2xz5.js} +1 -1
- package/aftonbladetv2/es/index-BNuKCo9L.js +1 -0
- package/aftonbladetv2/es/{index-D18D9htu.js → index-BWtIN1Hp.js} +1 -1
- package/aftonbladetv2/es/{index-DBJVsqfO.js → index-BxEb76Wq.js} +1 -1
- package/aftonbladetv2/es/{index-Dg7Z8afR.js → index-C-UROjQK.js} +1 -1
- package/aftonbladetv2/es/{index-DXssP05g.js → index-Cy0kcT7-.js} +1 -1
- package/aftonbladetv2/es/{index-BeEzqZU8.js → index-Czz2upwo.js} +1 -1
- package/{aftenpostenv2/es/index-hAAjtFA-.js → aftonbladetv2/es/index-DDE4BFpc.js} +1 -1
- package/aftonbladetv2/es/index-DUevXbBF.js +1 -0
- package/aftonbladetv2/es/{index-1SCQKthM.js → index-Df18Bdg_.js} +1 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-cYEqpQoy.js → styles-BI8CBmP_.js} +1 -1
- package/aftonbladetv2/es/{styles-DyHjSO0W.js → styles-BmPc5pox.js} +1 -1
- package/aftonbladetv2/es/{styles-DAnaUWg8.js → styles-CLNGzypJ.js} +1 -1
- package/aftonbladetv2/es/{styles-DdhzmKZq.js → styles-CounPcw6.js} +1 -1
- package/aftonbladetv2/es/{styles-Qzuamv-L.js → styles-DI6w6lU1.js} +1 -1
- package/aftonbladetv2/es/{styles-BEBarmNJ.js → styles-DU0SCQ4S.js} +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/{_auto-entry_bt-DeM1K7lO.js → _auto-entry_bt-COBJCYcZ.js} +1 -1
- package/bt/es/{events-CC8wnsfv.js → events-C5Vfp2fQ.js} +1 -1
- package/{sa/es/index-hLkK9BxL.js → bt/es/index--_VGP-lT.js} +1 -1
- package/bt/es/{index-BdDkZT_s.js → index-0AnQnOtJ.js} +1 -1
- package/bt/es/{index-B1hJRZMB.js → index-B6dF9WO_.js} +1 -1
- package/bt/es/{index-B0KUA7wF.js → index-BMVe-s5A.js} +1 -1
- package/{sa/es/index-6NDrz9WH.js → bt/es/index-BZOp95N7.js} +1 -1
- package/{vg/es/index-BX-TGK75.js → bt/es/index-BlSTY7c1.js} +1 -1
- package/bt/es/index-Cmkvsx2v.js +1 -0
- package/{sa/es/index-DgvhWVld.js → bt/es/index-DE5WEsEj.js} +1 -1
- package/bt/es/{index-CHr-e1K-.js → index-DgNVRtG6.js} +1 -1
- package/bt/es/index.js +1 -1
- package/{vg/es/styles-CPKynMzD.js → bt/es/styles-BHVNu3qz.js} +1 -1
- package/bt/es/{styles-yBjMxtf6.js → styles-BMSEyDSa.js} +1 -1
- package/bt/es/{styles-Ct8bfd2D.js → styles-BkluC2fq.js} +1 -1
- package/bt/es/{styles-5SiEjgK3.js → styles-Bzql0eFq.js} +1 -1
- package/bt/es/{styles-D7zVGNCb.js → styles-CAWWfhGG.js} +1 -1
- package/{sa/es/styles-BfNmc4gu.js → bt/es/styles-Dk0-cpfl.js} +1 -1
- package/{sa/es/styles-Di5uL2hb.js → bt/es/styles-Dm4TifGG.js} +1 -1
- package/{sa/es/styles-Bcnvjnd3.js → bt/es/styles-awQNXRSs.js} +1 -1
- package/bt/es/{styles-BK2U9fH2.js → styles-g1ImdD-o.js} +1 -1
- package/btv2/es/{_auto-entry_btv2-BFssy6fL.js → _auto-entry_btv2-DFy9lImU.js} +1 -1
- package/{omni/es/events-DiBAW9hx.js → btv2/es/events-CqO4tjgE.js} +1 -1
- package/btv2/es/{index-DS2Zbno9.js → index-BKH6BCtv.js} +1 -1
- package/{omni/es/index-BGyJZrA-.js → btv2/es/index-CAuAnJFh.js} +1 -1
- package/btv2/es/{index-eCu6_BxR.js → index-CCVgkYD2.js} +1 -1
- package/btv2/es/{index-hM10KrFe.js → index-Cpo6qPgg.js} +1 -1
- package/btv2/es/index-D48PMuz6.js +1 -0
- package/btv2/es/{index-MqmxJShG.js → index-Dbqw164l.js} +1 -1
- package/btv2/es/{index-CNMhYiVh.js → index-DiHx3T42.js} +1 -1
- package/btv2/es/{index-DNH4eF_L.js → index-DzCoaVdX.js} +1 -1
- package/btv2/es/{index-DxTGBlmV.js → index-f-rR9com.js} +1 -1
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-BCfLYUXL.js → styles-BvV_7cLZ.js} +1 -1
- package/{sav2/es/styles-CuXLZwJ-.js → btv2/es/styles-CK20IuR1.js} +1 -1
- package/{sav2/es/styles-CdJoJTde.js → btv2/es/styles-Cfcj0IF0.js} +1 -1
- package/btv2/es/{styles-Ck2lyD3y.js → styles-Ch1d5lRc.js} +1 -1
- package/btv2/es/{styles-DGhG8Oau.js → styles-DIiYNZYT.js} +1 -1
- package/btv2/es/{styles-DaJsvZGt.js → styles-Nzp3SK5A.js} +1 -1
- package/{sav2/es/styles-B8K_GwRp.js → btv2/es/styles-SZxyNHBb.js} +1 -1
- package/{sav2/es/styles-CZhXYJ-X.js → btv2/es/styles-k-nJZx59.js} +1 -1
- package/e24/es/{_auto-entry_e24-LyVQ7s9o.js → _auto-entry_e24-OdDkcuLD.js} +1 -1
- package/e24/es/{events-BXdOuUwY.js → events-Bm-_jhu6.js} +1 -1
- package/e24/es/{index-DM2TQG78.js → index--1TQpcBo.js} +1 -1
- package/{svd/es/index-BX3JzJK7.js → e24/es/index-AQjfcM3c.js} +1 -1
- package/e24/es/{index-408676Fz.js → index-BJoLL5LV.js} +1 -1
- package/e24/es/{index-CTV0__d4.js → index-CLZfBC6U.js} +1 -1
- package/e24/es/{index-YwFS83Qm.js → index-Dk7geDY3.js} +1 -1
- package/e24/es/{index-D198JQ8K.js → index-DxJcyrfR.js} +1 -1
- package/e24/es/{index-_MtnfABb.js → index-QrFn7O8_.js} +1 -1
- package/e24/es/{index-C9fjCOs8.js → index-REsjH2Re.js} +1 -1
- package/e24/es/index-aO98hmxc.js +1 -0
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-QsJq4lRz.js → styles-1Eo78a1Q.js} +1 -1
- package/{tv4/es/styles-D8t_OJM5.js → e24/es/styles-Ay63zQHI.js} +1 -1
- package/e24/es/{styles-vP5CEAZX.js → styles-BgzTGpBD.js} +1 -1
- package/e24/es/{styles-ksrsS9YI.js → styles-CGm-v9qC.js} +1 -1
- package/e24/es/{styles-O06Ts9rs.js → styles-Cbk2ebUv.js} +1 -1
- package/e24/es/{styles-VdslETKm.js → styles-DEsADpyi.js} +1 -1
- package/e24/es/{styles-xojE_WtK.js → styles-DZqgEFDI.js} +1 -1
- package/e24/es/{styles-CMPUmAOF.js → styles-Df60c9_L.js} +1 -1
- package/e24/es/{styles-BNEz-g0o.js → styles-DmwyPDW_.js} +1 -1
- package/e24/es/{styles-XbVkKFKZ.js → styles-DxBAc-_k.js} +1 -1
- package/e24/es/{styles-Cac3u0dx.js → styles-c8LZEOIU.js} +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-D3r9GKpQ.js → _auto-entry_fotbollskanalen-BOm4cjto.js} +1 -1
- package/fotbollskanalen/es/{events-BjpAd7Dy.js → events-BhgSbP41.js} +1 -1
- package/fotbollskanalen/es/{index-4q4XOxbP.js → index-0aPe7UNm.js} +1 -1
- package/fotbollskanalen/es/index-BI-WllpS.js +1 -0
- package/fotbollskanalen/es/{index-PcMM5Jm5.js → index-CWTeIbeC.js} +1 -1
- package/fotbollskanalen/es/{index-BC4ePXfQ.js → index-Ci_tuKru.js} +1 -1
- package/fotbollskanalen/es/{index-ItCfX1Lf.js → index-CnwnA1uW.js} +1 -1
- package/fotbollskanalen/es/{index-B9Mf9HqG.js → index-DrulIq-F.js} +1 -1
- package/fotbollskanalen/es/index-V6Dk-KSN.js +1 -0
- package/fotbollskanalen/es/{index-CV-9tMT8.js → index-iBCOj5i7.js} +1 -1
- package/fotbollskanalen/es/{index-sCgzFifI.js → index-ugYGuXtJ.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-_1P04GZx.js → styles-B-l1MRz6.js} +1 -1
- package/fotbollskanalen/es/{styles-64g1zh4K.js → styles-CL0_PfIa.js} +1 -1
- package/fotbollskanalen/es/{styles-CKDjRk7G.js → styles-CNY62arv.js} +1 -1
- package/fotbollskanalen/es/{styles-B5rqrTuR.js → styles-DLnupYRq.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-DHf44lJI.js → _auto-entry_koket-DANR0pLW.js} +1 -1
- package/koket/es/{events-D3iwXFHj.js → events-sY_c54z6.js} +1 -1
- package/koket/es/{index-Dl5gbZlp.js → index--zzUpGvZ.js} +1 -1
- package/koket/es/{index-C5p1Vq3N.js → index-64cWa7st.js} +1 -1
- package/koket/es/{index-D3J269qb.js → index-BMgG2cYO.js} +1 -1
- package/koket/es/{index-BY6D8toC.js → index-CHZaJRWq.js} +1 -1
- package/{svdv2/es/index-SiN_Bsk9.js → koket/es/index-CVGYHFLe.js} +1 -1
- package/koket/es/index-D37SyUSU.js +1 -0
- package/{svdv2/es/index-Db8CBQLR.js → koket/es/index-DEbhL37L.js} +1 -1
- package/koket/es/{index-Bvo_bf_r.js → index-DR8XjZK7.js} +1 -1
- package/koket/es/{index-DEi-yPS2.js → index-_IE1ifiM.js} +1 -1
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-COMulFKB.js → styles-BkJDlYzt.js} +1 -1
- package/koket/es/{styles-3oVEjjSv.js → styles-CXHTWAnl.js} +1 -1
- package/{svdv2/es/styles-CB1pQeBj.js → koket/es/styles-D8fqtFZD.js} +1 -1
- package/{svdv2/es/styles-JnYeZB57.js → koket/es/styles-NMk5HGRr.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/omni/es/{_auto-entry_omni-DBrUSMP0.js → _auto-entry_omni-CQpCf4dD.js} +1 -1
- package/{tvnu/es/events-CjwwdvBq.js → omni/es/events-DW0QIrcv.js} +1 -1
- package/omni/es/{index-CuPxphWa.js → index--7GkJCti.js} +1 -1
- package/{tvnu/es/index-CXjgm2p1.js → omni/es/index-BAJwK4IB.js} +1 -1
- package/omni/es/{index-DBv-bHP2.js → index-BFDi5X4P.js} +1 -1
- package/omni/es/{index-CHqnCG1G.js → index-BljCOtsR.js} +1 -1
- package/{btv2/es/index-DY10tS96.js → omni/es/index-C3-alUB1.js} +1 -1
- package/omni/es/{index-CBKqsaxK.js → index-C54WgxmT.js} +1 -1
- package/omni/es/{index-UXOgg6zg.js → index-CQK7l158.js} +1 -1
- package/omni/es/{index-COBZzkCq.js → index-DBhcyxKf.js} +1 -1
- package/omni/es/index-hBobZKyE.js +1 -0
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-D5YmoRzY.js → styles-BSySeYkp.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-RJIZslUO.js → _auto-entry_sa-dg8DnFX7.js} +1 -1
- package/sa/es/{events-oK0FHJNl.js → events-4M770iBI.js} +1 -1
- package/{vg/es/index-D0T6ug11.js → sa/es/index-7NAaY04-.js} +1 -1
- package/sa/es/index-B9IAULYT.js +1 -0
- package/sa/es/index-BFXVxN4V.js +1 -0
- package/{bt/es/index-LKhynQ4r.js → sa/es/index-BSD9DKuY.js} +1 -1
- package/{bt/es/index-DtTBOJ6K.js → sa/es/index-BbgVzHas.js} +1 -1
- package/{bt/es/index-jePwvR4z.js → sa/es/index-BpmILhOH.js} +1 -1
- package/sa/es/{index-B5gHI8Fx.js → index-Cyp-Y1Kf.js} +1 -1
- package/sa/es/{index-CBXUyUgw.js → index-DTweE7Qk.js} +1 -1
- package/sa/es/{index-CKfwWJY-.js → index-DttGwclM.js} +1 -1
- package/sa/es/index.js +1 -1
- package/{bt/es/styles-stqFcK9a.js → sa/es/styles-8l2z2iQy.js} +1 -1
- package/sa/es/{styles-DmI0lYlc.js → styles-BM8z4Itc.js} +1 -1
- package/{vg/es/styles-BkiaSbJR.js → sa/es/styles-Brg1x2wH.js} +1 -1
- package/sa/es/{styles-DkQA_0sV.js → styles-C9bBKGaz.js} +1 -1
- package/sa/es/{styles-DuOSSzKh.js → styles-CP8oV9Sv.js} +1 -1
- package/{bt/es/styles-I9bGhZ0m.js → sa/es/styles-D8vjH9VI.js} +1 -1
- package/sa/es/{styles-DWZg38uj.js → styles-DH6JtuKB.js} +1 -1
- package/{bt/es/styles-C1RCJBJQ.js → sa/es/styles-gTP7llOj.js} +1 -1
- package/sa/es/{styles-CoKkL8wY.js → styles-wkZGjANQ.js} +1 -1
- package/sav2/es/{_auto-entry_sav2-DT2rxqGp.js → _auto-entry_sav2-Dz0yz_qE.js} +1 -1
- package/sav2/es/{events-90cC9E0y.js → events-AkFxwslb.js} +1 -1
- package/sav2/es/{index-DsTBq6s8.js → index-B5p2baAu.js} +1 -1
- package/sav2/es/{index-BQh1iXx0.js → index-BI4Fg4zU.js} +1 -1
- package/sav2/es/{index-DpTZMNp_.js → index-BY7cLcqC.js} +1 -1
- package/sav2/es/{index-hBQIieF4.js → index-BiR3Wesc.js} +1 -1
- package/{vgv2/es/index-6ssh0c8W.js → sav2/es/index-D0I4g_dH.js} +1 -1
- package/sav2/es/{index-Do9DCr7n.js → index-DRQ2zSXb.js} +1 -1
- package/sav2/es/{index-B-tOVShw.js → index-DzceG9uT.js} +1 -1
- package/sav2/es/index-lh-3lbOw.js +1 -0
- package/sav2/es/{index-CoRDXzEk.js → index-uYxZxacu.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/{vgv2/es/styles-D7HIes9a.js → sav2/es/styles-6MJ1djl7.js} +1 -1
- package/sav2/es/{styles-DoYgGepL.js → styles-B0c7xMnY.js} +1 -1
- package/{btv2/es/styles-C3o8Fqn4.js → sav2/es/styles-BWZFpTRh.js} +1 -1
- package/{vgv2/es/styles-CDD1BFZr.js → sav2/es/styles-CSK2XKx8.js} +1 -1
- package/sav2/es/{styles-DEN__rwm.js → styles-DU3EaGCF.js} +1 -1
- package/{btv2/es/styles-CRVLFkLT.js → sav2/es/styles-DYhzQUDm.js} +1 -1
- package/{vgv2/es/styles-DgD9z5zQ.js → sav2/es/styles-DlPgkHVI.js} +1 -1
- package/sav2/es/{styles-Jnt8vB7g.js → styles-HwegnTtA.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/{_auto-entry_svd-GZiiJdbF.js → _auto-entry_svd-Bez2zeNh.js} +1 -1
- package/svd/es/{events-B0VsC-Lc.js → events-CxPIQpHA.js} +1 -1
- package/svd/es/{index-Du01o95m.js → index-BYdQuH0p.js} +1 -1
- package/svd/es/{index-C4WnRw-K.js → index-Bb44EPDW.js} +1 -1
- package/svd/es/{index-B1F3BROG.js → index-BgrxoXUD.js} +1 -1
- package/svd/es/{index-lrYd5aMM.js → index-C5nDMnvr.js} +1 -1
- package/svd/es/{index-D8OrgGdf.js → index-CBy-FXvo.js} +1 -1
- package/svd/es/index-CJz0raDb.js +1 -0
- package/{tv4/es/index-Cpzv-Ifg.js → svd/es/index-DOzDz68L.js} +1 -1
- package/svd/es/{index-CoQS_tZ_.js → index-DiWRI3BG.js} +1 -1
- package/svd/es/{index-ZALq7GcY.js → index-DnJD7Irl.js} +1 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-l1BwZemX.js → styles-B9O7YhW0.js} +1 -1
- package/svd/es/{styles-uluJM-A6.js → styles-C1vFRrtf.js} +1 -1
- package/svd/es/{styles-0bEzS6j7.js → styles-C4ASbQcL.js} +1 -1
- package/svd/es/{styles-C6rOw3Oa.js → styles-Cn_P8Upx.js} +1 -1
- package/svd/es/{styles-DjSCF7in.js → styles-DHeNBhOV.js} +1 -1
- package/svd/es/{styles-G3byY_gO.js → styles-DprL741k.js} +1 -1
- package/svdv2/es/{_auto-entry_svdv2-Dl-KnAlW.js → _auto-entry_svdv2-CzhxIlgv.js} +1 -1
- package/svdv2/es/{events-BWGqcBNK.js → events-Bs_lB2Zj.js} +1 -1
- package/svdv2/es/{index-BS2Mw8Ii.js → index-18hoSa_Z.js} +1 -1
- package/svdv2/es/{index-B0Kb3nKA.js → index-C0p71puA.js} +1 -1
- package/svdv2/es/{index-Cyt3YP8F.js → index-CTRmEEtC.js} +1 -1
- package/svdv2/es/{index-Arbw_yRU.js → index-CcqajLoH.js} +1 -1
- package/svdv2/es/index-CwnNV3SO.js +1 -0
- package/svdv2/es/{index-Cet9CoMo.js → index-DGy5mAMT.js} +1 -1
- package/svdv2/es/{index-Chi28uPD.js → index-EAi_HX1C.js} +1 -1
- package/svdv2/es/index-JFOU3Qo6.js +1 -0
- package/{koket/es/index-B42Tbe1o.js → svdv2/es/index-nGDBundo.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-BQpJQhy8.js → styles-B44X8Ke4.js} +1 -1
- package/svdv2/es/{styles-qH5VF7q7.js → styles-BUNvg-Zq.js} +1 -1
- package/svdv2/es/{styles-DXZ0CHTH.js → styles-BypgSZH7.js} +1 -1
- package/svdv2/es/{styles-BMyBNvlx.js → styles-CDJXerDy.js} +1 -1
- package/svdv2/es/{styles-BXzg4h0_.js → styles-Cho_tTy_.js} +1 -1
- package/{koket/es/styles-B5uv3TNa.js → svdv2/es/styles-DaPEVuLv.js} +1 -1
- package/{koket/es/styles-DvXryh4u.js → svdv2/es/styles-EilP7zDa.js} +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/{_auto-entry_tv4-Dr0BmzX9.js → _auto-entry_tv4-B-qGumza.js} +1 -1
- package/tv4/es/{events-BvZl-O1N.js → events-ALdo2azJ.js} +1 -1
- package/tv4/es/{index-DzpJq0Yd.js → index-19x0CrM4.js} +1 -1
- package/tv4/es/{index-DCY-h4lh.js → index-BIXVH9Qg.js} +1 -1
- package/tv4/es/{index-GmdtLKyG.js → index-BJ-OFZoU.js} +1 -1
- package/tv4/es/{index-BxqbL11A.js → index-C0NXTjHS.js} +1 -1
- package/tv4/es/index-Cqg_CMUC.js +1 -0
- package/tv4/es/{index-pUxPGs_K.js → index-DUtbumXg.js} +1 -1
- package/tv4/es/{index-fXMO20yY.js → index-Da83O537.js} +1 -1
- package/tv4/es/{index-9WmdMWPP.js → index-DnjuWHYx.js} +1 -1
- package/tv4/es/index-YQZeirOD.js +1 -0
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-ByMt4bGd.js → styles-B4PLambZ.js} +1 -1
- package/tv4/es/{styles-BKCeUpLI.js → styles-CsouvYCv.js} +1 -1
- package/{e24/es/styles-C484YMdx.js → tv4/es/styles-D35l6xRE.js} +1 -1
- package/tv4/es/{styles-Cjied2Fe.js → styles-DvkhtY2N.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/{_auto-entry_tvnu-Dth5iMD9.js → _auto-entry_tvnu-DW-waNRl.js} +1 -1
- package/{btv2/es/events-qtyJydKX.js → tvnu/es/events-B84MidTn.js} +1 -1
- package/tvnu/es/index-0MzIilpM.js +1 -0
- package/tvnu/es/{index-d0sE6RQX.js → index-B3i2c2rJ.js} +1 -1
- package/{sav2/es/index-bLbiYCRg.js → tvnu/es/index-Bbwxgg6T.js} +1 -1
- package/tvnu/es/{index-VkgIoggI.js → index-CUOWnZ5f.js} +1 -1
- package/tvnu/es/{index-sT--ze6C.js → index-D1ldgjNX.js} +1 -1
- package/{omni/es/index-5WuReApC.js → tvnu/es/index-DO7MOGCT.js} +1 -1
- package/tvnu/es/{index-ByV_A8mj.js → index-DVN6yGmH.js} +1 -1
- package/tvnu/es/{index-CBwggYA4.js → index-HYm2z-NS.js} +1 -1
- package/tvnu/es/{index-CD-DeRg5.js → index-kN9AZVOU.js} +1 -1
- package/tvnu/es/index.js +1 -1
- package/tvnu/es/{styles-5z2aVUl3.js → styles-BQpX5NnW.js} +1 -1
- package/{btv2/es/styles-Bfd2tGu2.js → tvnu/es/styles-CDP7pqtl.js} +1 -1
- package/tvnu/es/{styles-CIn6lgXM.js → styles-Cwum3Owj.js} +1 -1
- package/types/index.d.ts +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/{_auto-entry_vg-DyHqdXRa.js → _auto-entry_vg-6wil4vmi.js} +1 -1
- package/vg/es/{events-wtT4uDFE.js → events-BMlRl2TA.js} +1 -1
- package/vg/es/{index-DWk6-lZH.js → index-9yvfBBak.js} +1 -1
- package/{sa/es/index-WaaXifK7.js → vg/es/index-Bnvz56K7.js} +1 -1
- package/vg/es/{index-oP_PJj11.js → index-CV8jjm9g.js} +1 -1
- package/vg/es/{index-3jcv74Cx.js → index-CazJyBSO.js} +1 -1
- package/vg/es/index-CdEv-_Ba.js +1 -0
- package/vg/es/index-CwKoZpdV.js +1 -0
- package/vg/es/{index-CML9DSqI.js → index-D4aM7iCc.js} +1 -1
- package/vg/es/{index-DySeK9z7.js → index-SN_Fq3LO.js} +1 -1
- package/vg/es/{index-D2dyCthN.js → index-hL2yr9B-.js} +1 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-CZ3sgv6_.js → styles-2W8zrW_d.js} +1 -1
- package/vg/es/{styles-ClPUiLik.js → styles-BIdiE5kI.js} +1 -1
- package/{bt/es/styles-B0u93Mb5.js → vg/es/styles-BRhRIzNN.js} +1 -1
- package/vg/es/{styles-C3QAVnpa.js → styles-BbYDtruG.js} +1 -1
- package/vg/es/{styles-D_09u3ov.js → styles-BtsC45RH.js} +1 -1
- package/vg/es/{styles-C2mFjMJt.js → styles-C0Z4-JlK.js} +1 -1
- package/vg/es/{styles-D6kiZjuI.js → styles-CJecdRNV.js} +1 -1
- package/vg/es/{styles-DBrWoLlB.js → styles-CPQ6JBwL.js} +1 -1
- package/vg/es/{styles-DqP50WKT.js → styles-DB3J6WJY.js} +1 -1
- package/{sa/es/styles-G-U2hMg8.js → vg/es/styles-DJKO4Zz5.js} +1 -1
- package/vg/es/{styles-CrkUwRbx.js → styles-DKMsmKBv.js} +1 -1
- package/vg/es/{styles-CJ3I4Aq0.js → styles-Dc-5MdxD.js} +1 -1
- package/vg/es/{styles-CQVhk1zO.js → styles-DewDR96Z.js} +1 -1
- package/vg/es/{styles-fhq7j4JO.js → styles-ZP8_ksRz.js} +1 -1
- package/vg/es/{styles-1PE8B4nd.js → styles-xtDzulVQ.js} +1 -1
- package/vgv2/es/{_auto-entry_vgv2-B1APkOvY.js → _auto-entry_vgv2-ByYI3Qta.js} +1 -1
- package/vgv2/es/{events-FCOMEhiM.js → events-DYWBKEGL.js} +1 -1
- package/vgv2/es/{index-omdxOHKA.js → index-BVkn4Khn.js} +1 -1
- package/vgv2/es/{index-D1fXP4Hx.js → index-C8EJP05e.js} +1 -1
- package/vgv2/es/{index-DnS-xLRQ.js → index-CEM4IZa_.js} +1 -1
- package/vgv2/es/{index-D77RkWIC.js → index-CToH0n2I.js} +1 -1
- package/vgv2/es/{index-C036Izxk.js → index-CpleIK9h.js} +1 -1
- package/vgv2/es/index-DkxQHWJ7.js +1 -0
- package/{tvnu/es/index-CuCXYdDC.js → vgv2/es/index-Dq6Ssp1q.js} +1 -1
- package/vgv2/es/{index-qN9VfqSz.js → index-DzrsjHEr.js} +1 -1
- package/vgv2/es/{index-DZdrVKYG.js → index-sZQfdNcB.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-R6H7CAfY.js → styles-5ulYiRAz.js} +1 -1
- package/vgv2/es/{styles-C0BFBQdg.js → styles-6XzajrtV.js} +1 -1
- package/{sav2/es/styles-Yoy0EYKc.js → vgv2/es/styles-BReU5_oU.js} +1 -1
- package/vgv2/es/{styles-BAtJ2oiI.js → styles-BTcyiQgA.js} +1 -1
- package/{tvnu/es/styles-ncYX7Hhm.js → vgv2/es/styles-Bgou8U36.js} +1 -1
- package/vgv2/es/{styles-86F6L7U9.js → styles-BhJIxiGE.js} +1 -1
- package/vgv2/es/{styles-zWtGfrJL.js → styles-Bpxt_77P.js} +1 -1
- package/vgv2/es/{styles-DBWxw5aI.js → styles-CPlT7d5o.js} +1 -1
- package/vgv2/es/{styles-BJoQkgIL.js → styles-CZP8huUz.js} +1 -1
- package/vgv2/es/{styles-C3usAvqT.js → styles-CmQfdGTO.js} +1 -1
- package/vgv2/es/{styles-D5FNunNJ.js → styles-CzMnEs9R.js} +1 -1
- package/vgv2/es/{styles-CbrFTlVP.js → styles-DOeIla8H.js} +1 -1
- package/vgv2/es/{styles-Dp0z2fzz.js → styles-Djpd_82i.js} +1 -1
- package/vgv2/es/{styles-DscmtspM.js → styles-aSEA4R_r.js} +1 -1
- package/{btv2/es/styles-W740UDSr.js → vgv2/es/styles-tto1PhYu.js} +1 -1
- package/vgv2/styles.css +1 -1
- package/aftenposten/es/index-Dys7ggCU.js +0 -1
- package/aftenposten/es/index-KW_Ho80c.js +0 -1
- package/aftenpostenv2/es/index-BpiHGUU3.js +0 -1
- package/aftenpostenv2/es/index-Hl1c1GeL.js +0 -1
- package/aftonbladet/es/index-DUuG8ZwY.js +0 -1
- package/aftonbladet/es/index-Dt0xSC8-.js +0 -1
- package/aftonbladetv2/es/index-C_3Opmsz.js +0 -1
- package/bt/es/index-B0WimhKJ.js +0 -1
- package/bt/es/index-DMLkkxuf.js +0 -1
- package/btv2/es/index-k-21zS5A.js +0 -1
- package/e24/es/index-DHtaqtM9.js +0 -1
- package/e24/es/index-DjKT3fLw.js +0 -1
- package/fotbollskanalen/es/index-5a-d5vDd.js +0 -1
- package/fotbollskanalen/es/index-Dmifyu8s.js +0 -1
- package/koket/es/index-4A-LVuxy.js +0 -1
- package/koket/es/index-Cg251zeu.js +0 -1
- package/omni/es/index-Cl3_gmHa.js +0 -1
- package/sa/es/index-GnVx4oe4.js +0 -1
- package/sa/es/index-IqnOeQ0p.js +0 -1
- package/sav2/es/index-DGjPCHlg.js +0 -1
- package/svd/es/index-Brmz7lll.js +0 -1
- package/svdv2/es/index-jPBI0Qls.js +0 -1
- package/tv4/es/index-_3F3S4Oi.js +0 -1
- package/tvnu/es/index-DXNFgtPc.js +0 -1
- package/vg/es/index-BMhIRUfn.js +0 -1
- package/vgv2/es/index-KXf9sk50.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as d,q as c,r as i}from"./_auto-entry_aftonbladetv2-nySWVcQ0.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:d}=o(l,r),c=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!d){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&c&&(o.style.color=c.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&c&&(o.style.setProperty("background-color",c.backgroundColor,"important"),o.style.color=c.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=c(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=c(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,c=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!c||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),d(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
package/bt/es/index-B0WimhKJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,B as e,l as i}from"./_auto-entry_bt-DeM1K7lO.js";import"react/jsx-runtime";const l=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=(i,r,n)=>{var a,o;const s=document.querySelector(`#${i.targetId}`),{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:f}={},fullWidth:u,pageContext:{deviceType:c}}=t.get();if(!s)return null;const p=s.parentElement,m=e(c)||n;if(s.style.width=m?"100vw":"100%",s.style.position="relative",p&&(p.style.width=m?"100vw":"100%",p.style.position="relative"),d&&f){const t=`advertory-${d}-${f}`;s.classList.add(`${t}__${r}`),null==p||p.classList.add(`${t}-wrapper__${r}`)}const v=null===(o=null===(a=null==u?void 0:u.options)||void 0===a?void 0:a.styles)||void 0===o?void 0:o[c],y=(null==u?void 0:u.enabled)&&v;return!y&&p&&m&&(p.style.left="50%",p.style.marginLeft="-50vw"),y&&v.adContainer&&l(s,v.adContainer),y&&v.adContainerWrapper&&p&&l(p,v.adContainerWrapper),s},n=(t,e,l,n,a)=>{const o=r(t,n,a);if(!o)return void i("[Ad full width] adContainer not found");const s=o.querySelector("iframe"),d=null==s?void 0:s.parentElement;if(!s||!d)return void i("[Ad full width] iframe or iframeWrapper not found");const f=`calc(100vw / ${e}px)`;i(`[Ad full width] ratioWidth ${e}, ratioHeight ${l}, adObjWidth: ${t.width}, scaleFactor ${f}`),d.style.transform=`scale(${f})`,d.style.transformOrigin="left top",o.style.aspectRatio=`${e} / ${l}`},a=i=>{const l=r(i,"fullwidth-ad",!1);if(!l)return;const n=l.querySelector("iframe");if(!n)return;const{deviceType:a}=t.get().pageContext;n.style.width=e(a)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=e(a)?"100vw":"100%")},o=t=>{n(t,1080,1920,"ninesixteen-ad",!0)},s=t=>{n(t,1080,1080,"fullsquare-ad",!0)};export{s as applyFullsquareFormat,a as applyFullwidthFormat,o as applyNinesixteenFormat};
|
package/bt/es/index-DMLkkxuf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_bt-DeM1K7lO.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),c(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_btv2-BFssy6fL.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),c(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
package/e24/es/index-DHtaqtM9.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,u as i}from"./_auto-entry_e24-LyVQ7s9o.js";import"react/jsx-runtime";const u="#fff",y="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:u,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:y}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const u=a(o),y=i.offsetHeight,v=window.scrollY>y;i.style.display="block",!v&&w(u,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,u),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&w(u,!0),c(o,u)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
package/e24/es/index-DjKT3fLw.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,C as e,l as i}from"./_auto-entry_e24-LyVQ7s9o.js";import"react/jsx-runtime";const l=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=(i,r,n)=>{var a,o;const s=document.querySelector(`#${i.targetId}`),{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:f}={},fullWidth:u,pageContext:{deviceType:c}}=t.get();if(!s)return null;const p=s.parentElement,m=e(c)||n;if(s.style.width=m?"100vw":"100%",s.style.position="relative",p&&(p.style.width=m?"100vw":"100%",p.style.position="relative"),d&&f){const t=`advertory-${d}-${f}`;s.classList.add(`${t}__${r}`),null==p||p.classList.add(`${t}-wrapper__${r}`)}const v=null===(o=null===(a=null==u?void 0:u.options)||void 0===a?void 0:a.styles)||void 0===o?void 0:o[c],y=(null==u?void 0:u.enabled)&&v;return!y&&p&&m&&(p.style.left="50%",p.style.marginLeft="-50vw"),y&&v.adContainer&&l(s,v.adContainer),y&&v.adContainerWrapper&&p&&l(p,v.adContainerWrapper),s},n=(t,e,l,n,a)=>{const o=r(t,n,a);if(!o)return void i("[Ad full width] adContainer not found");const s=o.querySelector("iframe"),d=null==s?void 0:s.parentElement;if(!s||!d)return void i("[Ad full width] iframe or iframeWrapper not found");const f=`calc(100vw / ${e}px)`;i(`[Ad full width] ratioWidth ${e}, ratioHeight ${l}, adObjWidth: ${t.width}, scaleFactor ${f}`),d.style.transform=`scale(${f})`,d.style.transformOrigin="left top",o.style.aspectRatio=`${e} / ${l}`},a=i=>{const l=r(i,"fullwidth-ad",!1);if(!l)return;const n=l.querySelector("iframe");if(!n)return;const{deviceType:a}=t.get().pageContext;n.style.width=e(a)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=e(a)?"100vw":"100%")},o=t=>{n(t,1080,1920,"ninesixteen-ad",!0)},s=t=>{n(t,1080,1080,"fullsquare-ad",!0)};export{s as applyFullsquareFormat,a as applyFullwidthFormat,o as applyNinesixteenFormat};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_fotbollskanalen-D3r9GKpQ.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),c(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,B as e,l}from"./_auto-entry_fotbollskanalen-D3r9GKpQ.js";import"react/jsx-runtime";const i=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},n=(l,n,r)=>{var a,o;const s=document.querySelector(`#${l.targetId}`),{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:f}={},fullWidth:u,pageContext:{deviceType:c}}=t.get();if(!s)return null;const p=s.parentElement,m=e(c)||r;if(s.style.width=m?"100vw":"100%",s.style.position="relative",p&&(p.style.width=m?"100vw":"100%",p.style.position="relative"),d&&f){const t=`advertory-${d}-${f}`;s.classList.add(`${t}__${n}`),null==p||p.classList.add(`${t}-wrapper__${n}`)}const v=null===(o=null===(a=null==u?void 0:u.options)||void 0===a?void 0:a.styles)||void 0===o?void 0:o[c],y=(null==u?void 0:u.enabled)&&v;return!y&&p&&m&&(p.style.left="50%",p.style.marginLeft="-50vw"),y&&v.adContainer&&i(s,v.adContainer),y&&v.adContainerWrapper&&p&&i(p,v.adContainerWrapper),s},r=(t,e,i,r,a)=>{const o=n(t,r,a);if(!o)return void l("[Ad full width] adContainer not found");const s=o.querySelector("iframe"),d=null==s?void 0:s.parentElement;if(!s||!d)return void l("[Ad full width] iframe or iframeWrapper not found");const f=`calc(100vw / ${e}px)`;l(`[Ad full width] ratioWidth ${e}, ratioHeight ${i}, adObjWidth: ${t.width}, scaleFactor ${f}`),d.style.transform=`scale(${f})`,d.style.transformOrigin="left top",o.style.aspectRatio=`${e} / ${i}`},a=l=>{const i=n(l,"fullwidth-ad",!1);if(!i)return;const r=i.querySelector("iframe");if(!r)return;const{deviceType:a}=t.get().pageContext;r.style.width=e(a)?"100vw":"100%",(null==r?void 0:r.parentElement)&&(r.parentElement.style.width=e(a)?"100vw":"100%")},o=t=>{r(t,1080,1920,"ninesixteen-ad",!0)},s=t=>{r(t,1080,1080,"fullsquare-ad",!0)};export{s as applyFullsquareFormat,a as applyFullwidthFormat,o as applyNinesixteenFormat};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_koket-DHf44lJI.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),c(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,B as e,l as i}from"./_auto-entry_koket-DHf44lJI.js";import"react/jsx-runtime";const l=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=(i,r,n)=>{var a,o;const s=document.querySelector(`#${i.targetId}`),{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:f}={},fullWidth:u,pageContext:{deviceType:c}}=t.get();if(!s)return null;const p=s.parentElement,m=e(c)||n;if(s.style.width=m?"100vw":"100%",s.style.position="relative",p&&(p.style.width=m?"100vw":"100%",p.style.position="relative"),d&&f){const t=`advertory-${d}-${f}`;s.classList.add(`${t}__${r}`),null==p||p.classList.add(`${t}-wrapper__${r}`)}const v=null===(o=null===(a=null==u?void 0:u.options)||void 0===a?void 0:a.styles)||void 0===o?void 0:o[c],y=(null==u?void 0:u.enabled)&&v;return!y&&p&&m&&(p.style.left="50%",p.style.marginLeft="-50vw"),y&&v.adContainer&&l(s,v.adContainer),y&&v.adContainerWrapper&&p&&l(p,v.adContainerWrapper),s},n=(t,e,l,n,a)=>{const o=r(t,n,a);if(!o)return void i("[Ad full width] adContainer not found");const s=o.querySelector("iframe"),d=null==s?void 0:s.parentElement;if(!s||!d)return void i("[Ad full width] iframe or iframeWrapper not found");const f=`calc(100vw / ${e}px)`;i(`[Ad full width] ratioWidth ${e}, ratioHeight ${l}, adObjWidth: ${t.width}, scaleFactor ${f}`),d.style.transform=`scale(${f})`,d.style.transformOrigin="left top",o.style.aspectRatio=`${e} / ${l}`},a=i=>{const l=r(i,"fullwidth-ad",!1);if(!l)return;const n=l.querySelector("iframe");if(!n)return;const{deviceType:a}=t.get().pageContext;n.style.width=e(a)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=e(a)?"100vw":"100%")},o=t=>{n(t,1080,1920,"ninesixteen-ad",!0)},s=t=>{n(t,1080,1080,"fullsquare-ad",!0)};export{s as applyFullsquareFormat,a as applyFullwidthFormat,o as applyNinesixteenFormat};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_omni-DBrUSMP0.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),c(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
package/sa/es/index-GnVx4oe4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_sa-RJIZslUO.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),c(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
package/sa/es/index-IqnOeQ0p.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,B as e,l as i}from"./_auto-entry_sa-RJIZslUO.js";import"react/jsx-runtime";const l=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=(i,r,n)=>{var a,o;const s=document.querySelector(`#${i.targetId}`),{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:f}={},fullWidth:u,pageContext:{deviceType:c}}=t.get();if(!s)return null;const p=s.parentElement,m=e(c)||n;if(s.style.width=m?"100vw":"100%",s.style.position="relative",p&&(p.style.width=m?"100vw":"100%",p.style.position="relative"),d&&f){const t=`advertory-${d}-${f}`;s.classList.add(`${t}__${r}`),null==p||p.classList.add(`${t}-wrapper__${r}`)}const v=null===(o=null===(a=null==u?void 0:u.options)||void 0===a?void 0:a.styles)||void 0===o?void 0:o[c],y=(null==u?void 0:u.enabled)&&v;return!y&&p&&m&&(p.style.left="50%",p.style.marginLeft="-50vw"),y&&v.adContainer&&l(s,v.adContainer),y&&v.adContainerWrapper&&p&&l(p,v.adContainerWrapper),s},n=(t,e,l,n,a)=>{const o=r(t,n,a);if(!o)return void i("[Ad full width] adContainer not found");const s=o.querySelector("iframe"),d=null==s?void 0:s.parentElement;if(!s||!d)return void i("[Ad full width] iframe or iframeWrapper not found");const f=`calc(100vw / ${e}px)`;i(`[Ad full width] ratioWidth ${e}, ratioHeight ${l}, adObjWidth: ${t.width}, scaleFactor ${f}`),d.style.transform=`scale(${f})`,d.style.transformOrigin="left top",o.style.aspectRatio=`${e} / ${l}`},a=i=>{const l=r(i,"fullwidth-ad",!1);if(!l)return;const n=l.querySelector("iframe");if(!n)return;const{deviceType:a}=t.get().pageContext;n.style.width=e(a)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=e(a)?"100vw":"100%")},o=t=>{n(t,1080,1920,"ninesixteen-ad",!0)},s=t=>{n(t,1080,1080,"fullsquare-ad",!0)};export{s as applyFullsquareFormat,a as applyFullwidthFormat,o as applyNinesixteenFormat};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_sav2-DT2rxqGp.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),c(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
package/svd/es/index-Brmz7lll.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as d,q as c,r as i}from"./_auto-entry_svd-GZiiJdbF.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:d}=o(l,r),c=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!d){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&c&&(o.style.color=c.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&c&&(o.style.setProperty("background-color",c.backgroundColor,"important"),o.style.color=c.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=c(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=c(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,c=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!c||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),d(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as d,q as c,r as i}from"./_auto-entry_svdv2-Dl-KnAlW.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:d}=o(l,r),c=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!d){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&c&&(o.style.color=c.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&c&&(o.style.setProperty("background-color",c.backgroundColor,"important"),o.style.color=c.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=c(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=c(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,c=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!c||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),d(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
package/tv4/es/index-_3F3S4Oi.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_tv4-Dr0BmzX9.js";import"react/jsx-runtime";const y="#fff",u="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:y,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:u}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const y=a(o),u=i.offsetHeight,v=window.scrollY>u;i.style.display="block",!v&&w(y,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,y),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,y),p(i,y,t,null==l?void 0:l.theme),yield n(),!v&&w(y,!0),c(o,y)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,r as i}from"./_auto-entry_tvnu-Dth5iMD9.js";import"react/jsx-runtime";const u="#fff",y="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:u,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:y}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const u=a(o),y=i.offsetHeight,v=window.scrollY>y;i.style.display="block",!v&&w(u,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,u),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&w(u,!0),c(o,u)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
package/vg/es/index-BMhIRUfn.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,u as i}from"./_auto-entry_vg-DyHqdXRa.js";import"react/jsx-runtime";const u="#fff",y="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:u,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:y}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const u=a(o),y=i.offsetHeight,v=window.scrollY>y;i.style.display="block",!v&&w(u,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,u),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&w(u,!0),c(o,u)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,k as o,D as t,c as r,m as l,_ as s,n as a,o as n,p as c,q as d,u as i}from"./_auto-entry_vgv2-B1APkOvY.js";import"react/jsx-runtime";const u="#fff",y="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:u,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:y}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=e=>{document.body.style.overflow=e?"initial":"hidden"},g=e=>{const o=f(e),t=h(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),b(!0),e.style.display="none",window.removeEventListener("keydown",o),window.removeEventListener("advertory:closeTakeover",t)},h=e=>{const o=()=>g(e);return window.addEventListener("advertory:closeTakeover",o),m(),o},f=e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&g(e)};return m(),window.addEventListener("keydown",o),o},E=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&(f(e),h(e),m(),o.addEventListener("click",()=>{g(e)}),b(!1))},L=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),h(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>g(e))})(e)},S=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},T=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},q=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},x=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},A=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},C=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},O=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,C(o))},P=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},R=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const u=a(o),y=i.offsetHeight,v=window.scrollY>y;i.style.display="block",!v&&w(u,!1),((o,t)=>{({[e.WELCOME_PAGE]:q,[e.SPLASH]:S,[e.TOPSCROLLER]:T,[e.VELVET]:x})[t](o)})(i,u),A(),((o,t)=>{({[e.WELCOME_PAGE]:L,[e.TOPSCROLLER]:L,[e.SPLASH]:E,[e.VELVET]:k})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&w(u,!0),c(o,u)});export{R as createTakeoverAd,O as modifyTakeoverAdContent,P as modifyTakeoverIframe};
|