@schibsted/advertory 3.0.9 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ad-native/cjs/index.d.ts +26 -8
- package/ad-native/es/index.d.ts +26 -8
- package/aftenposten/cjs/index.d.ts +26 -8
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-DU8V5uq3.js +1 -0
- package/aftenposten/es/{events-CLu9WhE9.js → events-yliYqfOC.js} +1 -1
- package/{aftonbladet/es/index-ySQNo1u8.js → aftenposten/es/index-8Gs0ZUnH.js} +1 -1
- package/aftenposten/es/{index-CpCxxAaS.js → index-9vv_VnGX.js} +1 -1
- package/aftenposten/es/index-BhmEb-RG.js +1 -0
- package/aftenposten/es/index-C50gd16G.js +1 -0
- package/aftenposten/es/{index-B_uDF46T.js → index-CP4ZWjzx.js} +1 -1
- package/aftenposten/es/{index-bT4YXWB1.js → index-D6mtOCx3.js} +1 -1
- package/aftenposten/es/{index-5_9BZU2h.js → index-DCZfnOad.js} +1 -1
- package/aftenposten/es/{index-BKSoSDR9.js → index-Dk_A6WRk.js} +1 -1
- package/aftenposten/es/index.d.ts +26 -8
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-DgUjw8KY.js → styles-A-ZzYAHZ.js} +1 -1
- package/aftenposten/es/{styles-Bd7wJzie.js → styles-B7FKpRCo.js} +1 -1
- package/aftenposten/es/{styles-Baq5Ezbu.js → styles-BTTzyRjj.js} +1 -1
- package/aftenposten/es/{styles-EP04iNvW.js → styles-CcvBCbS2.js} +1 -1
- package/aftenposten/es/{styles-D7jAXeZ9.js → styles-CeAB51fT.js} +1 -1
- package/aftenposten/es/{styles-Dfo17omJ.js → styles-Cy2GD_pK.js} +1 -1
- package/aftenposten/es/{styles-DmFIB5BG.js → styles-D_fo9tuC.js} +1 -1
- package/aftenposten/es/{styles-D4lv-cQ5.js → styles-DvdWc3Dw.js} +1 -1
- package/aftenposten/es/{styles-ys_lB2uU.js → styles-DzGaydAj.js} +1 -1
- package/aftenposten/es/{styles-C17s-D85.js → styles-Xk5jBHXL.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-oK4Rb57W.js +1 -0
- package/aftenpostenv2/es/{events-CLFsMd40.js → events-CK6Yh2e2.js} +1 -1
- package/aftenpostenv2/es/index-BfYRcutn.js +1 -0
- package/aftenpostenv2/es/{index-4wsFW4vR.js → index-CgQV3xEU.js} +1 -1
- package/aftenpostenv2/es/index-D7GVbDzA.js +1 -0
- package/aftenpostenv2/es/{index-CDOwIwSg.js → index-DqFATPzr.js} +1 -1
- package/aftenpostenv2/es/{index-BOD-JyTw.js → index-IAvOT3ej.js} +1 -1
- package/aftenpostenv2/es/{index-KgD9_1BH.js → index-OPuFOQir.js} +1 -1
- package/aftenpostenv2/es/{index-zbtVaHAt.js → index-QQ97vmoD.js} +1 -1
- package/{aftonbladetv2/es/index-C_avelPJ.js → aftenpostenv2/es/index-oFLC6DTt.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +26 -8
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-Klf__Vv9.js → styles-6cyOk9cg.js} +1 -1
- package/aftenpostenv2/es/{styles-BlUmY7Dh.js → styles-BCbJ8Yvi.js} +1 -1
- package/aftenpostenv2/es/{styles-j6ldBnRh.js → styles-BGcigVfW.js} +1 -1
- package/aftenpostenv2/es/{styles-BhbVANLq.js → styles-BPFqk2pl.js} +1 -1
- package/aftenpostenv2/es/{styles-CGlAPeSy.js → styles-CAk0EqNU.js} +1 -1
- package/aftenpostenv2/es/{styles-DgojDSyC.js → styles-D4cyPHdr.js} +1 -1
- package/aftenpostenv2/es/{styles-CV_-DLEh.js → styles-Djka1Tw3.js} +1 -1
- package/aftenpostenv2/es/{styles-4hfsgISD.js → styles-FlHd4TuD.js} +1 -1
- package/aftenpostenv2/es/{styles-rIJXQHnz.js → styles-R2Kmc0to.js} +1 -1
- package/aftenpostenv2/es/{styles-DMnLqhl_.js → styles-nbMQaIj0.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +26 -8
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-DQsJCc_j.js +1 -0
- package/aftonbladet/es/{events-CEaJHu3m.js → events-DhNCgbCo.js} +1 -1
- package/{aftenposten/es/index-BDo3pJv6.js → aftonbladet/es/index-B6TdXecq.js} +1 -1
- package/aftonbladet/es/{index-D9zUPszl.js → index-Bqt_XE8I.js} +1 -1
- package/aftonbladet/es/{index-CfjGy0X9.js → index-C8Ow8hFh.js} +1 -1
- package/aftonbladet/es/index-CA4IyV6K.js +1 -0
- package/aftonbladet/es/{index-CcEDxo_l.js → index-C_OfDbzP.js} +1 -1
- package/aftonbladet/es/{index-BzifCoKN.js → index-Cy-tOdmU.js} +1 -1
- package/aftonbladet/es/{index-BbfH_JE2.js → index-D2wR6pNy.js} +1 -1
- package/aftonbladet/es/{index-BaYfJLeA.js → index-DxLbReWK.js} +1 -1
- package/aftonbladet/es/index.d.ts +26 -8
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-KUAPzCkM.js → styles-BUfTIzrZ.js} +1 -1
- package/aftonbladet/es/{styles-QwQbwJ4_.js → styles-CBnmzVKB.js} +1 -1
- package/aftonbladet/es/{styles-B3W2g5iI.js → styles-CqhPPOLK.js} +1 -1
- package/aftonbladet/es/{styles-A0TbAbzN.js → styles-Dc8EI6a-.js} +1 -1
- package/aftonbladet/es/{styles-DWsZ4nEc.js → styles-uxk5IoAL.js} +1 -1
- package/aftonbladet/styles.css +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Djgcfxl-.js +1 -0
- package/aftonbladetv2/es/{events-Bny82xg7.js → events-DZl4_J08.js} +1 -1
- package/aftonbladetv2/es/index-B2QwXUEO.js +1 -0
- package/aftonbladetv2/es/{index-BfedPJ4a.js → index-BND4LAC5.js} +1 -1
- package/aftonbladetv2/es/index-CeWfH63g.js +1 -0
- package/aftonbladetv2/es/{index-DyfUCqTk.js → index-EOWyxc8F.js} +1 -1
- package/aftonbladetv2/es/{index-BEuVj4Q4.js → index-FgrirXff.js} +1 -1
- package/aftonbladetv2/es/{index-B-wealpt.js → index-J64G5n0c.js} +1 -1
- package/aftonbladetv2/es/{index-DOmwW0Ss.js → index-NADXTKGj.js} +1 -1
- package/{aftenpostenv2/es/index-BEGtd2lz.js → aftonbladetv2/es/index-pNY5Ztpl.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +26 -8
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-D_bSSM10.js → styles-BCceqX-0.js} +1 -1
- package/aftonbladetv2/es/{styles-DHz2nQWG.js → styles-Bzb2K0pX.js} +1 -1
- package/aftonbladetv2/es/{styles-5B8Ku1LX.js → styles-CGOTU6QN.js} +1 -1
- package/aftonbladetv2/es/{styles-DsruEkBe.js → styles-ChxOOLGD.js} +1 -1
- package/aftonbladetv2/es/{styles-DwotkCe0.js → styles-D3nZpOF4.js} +1 -1
- package/aftonbladetv2/styles.css +1 -1
- package/bt/cjs/index.d.ts +26 -8
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-Dly6sBnc.js +1 -0
- package/bt/es/{events-CBy8vMhe.js → events-CWPev8pl.js} +1 -1
- package/{sa/es/index-67Bd-vn3.js → bt/es/index-B610pT5_.js} +1 -1
- package/bt/es/{index-PJsNBIYd.js → index-BHt0q6G3.js} +1 -1
- package/{sa/es/index-lhth1woM.js → bt/es/index-Bo0RQAjz.js} +1 -1
- package/bt/es/index-BpgWIc0r.js +1 -0
- package/bt/es/{index-DDRr8MYB.js → index-CeWtEIeu.js} +1 -1
- package/bt/es/{index-D8O_17Mx.js → index-DaJfwK3H.js} +1 -1
- package/bt/es/index-FskBAApb.js +1 -0
- package/bt/es/{index-DjHumHTB.js → index-jKF_36rL.js} +1 -1
- package/bt/es/index.d.ts +26 -8
- package/bt/es/index.js +1 -1
- package/{vg/es/styles-CJBC5MTw.js → bt/es/styles-8IjXJFPe.js} +1 -1
- package/bt/es/{styles-BRSsolNR.js → styles-B8zz6C0U.js} +1 -1
- package/{sa/es/styles-CWwty8xS.js → bt/es/styles-BoMCpdBx.js} +1 -1
- package/{sa/es/styles-CBZ4PpKe.js → bt/es/styles-CY65idgd.js} +1 -1
- package/bt/es/{styles-Zz8BrbFG.js → styles-Cy1sn0oB.js} +1 -1
- package/{sa/es/styles-CphOIxsM.js → bt/es/styles-DNU08wYz.js} +1 -1
- package/bt/es/{styles-B_CkRrIK.js → styles-DQYk37_q.js} +1 -1
- package/{sa/es/styles-D706y9SM.js → bt/es/styles-qK6-eK6B.js} +1 -1
- package/bt/es/{styles-B4aycg8F.js → styles-zcW9Sx28.js} +1 -1
- package/btv2/es/_auto-entry_btv2-BMBxtlku.js +1 -0
- package/btv2/es/{events-B3SsiDCn.js → events-BBMBGzjF.js} +1 -1
- package/btv2/es/{index-BmBMWQ2f.js → index-BFfh_nXv.js} +1 -1
- package/btv2/es/{index-1Po2M0vE.js → index-BJtCyaPU.js} +1 -1
- package/btv2/es/index-CjL1gzv8.js +1 -0
- package/btv2/es/index-D2nJrq0W.js +1 -0
- package/btv2/es/{index-CqEPoWH1.js → index-D9UoiKdN.js} +1 -1
- package/btv2/es/{index-TmB6HMtm.js → index-DF2v5i01.js} +1 -1
- package/btv2/es/{index-DuekyXC1.js → index-DIX3iT0Q.js} +1 -1
- package/btv2/es/{index-B7m8ntI1.js → index-DPUe0Za4.js} +1 -1
- package/btv2/es/index.d.ts +26 -8
- package/btv2/es/index.js +1 -1
- package/{vgv2/es/styles-CrTsteeB.js → btv2/es/styles-BW19vldz.js} +1 -1
- package/btv2/es/{styles-DtAng8Cn.js → styles-CDgXxsLm.js} +1 -1
- package/{sav2/es/styles-CaJpZDfU.js → btv2/es/styles-CVEHPOCl.js} +1 -1
- package/btv2/es/{styles-BIO6ucYx.js → styles-CikOGq7W.js} +1 -1
- package/{sav2/es/styles-Dr4bTwHu.js → btv2/es/styles-DCfCybm7.js} +1 -1
- package/btv2/es/{styles-DyOM6ra4.js → styles-DHN2GM4N.js} +1 -1
- package/{sav2/es/styles-Cgv_a8jY.js → btv2/es/styles-OfbWciWE.js} +1 -1
- package/{vgv2/es/styles-DKlksm_A.js → btv2/es/styles-aZAhDzyA.js} +1 -1
- package/dr-edition/cjs/index.d.ts +26 -8
- package/dr-edition/cjs/index.js +1 -1
- package/dr-edition/es/index.d.ts +26 -8
- package/dr-edition/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-CP_X5jGM.js +1 -0
- package/e24/es/{events-Dv24iAWb.js → events-B-i5FsRn.js} +1 -1
- package/e24/es/{index-DyWDKlfi.js → index-B5g6P2Ui.js} +1 -1
- package/e24/es/index-CGoZW0ZV.js +1 -0
- package/e24/es/{index-D1N9nZ6r.js → index-CM0ugFDY.js} +1 -1
- package/e24/es/{index-BCwYuvla.js → index-CoQdTLiP.js} +1 -1
- package/e24/es/{index-BeQPubkf.js → index-D1zuXhAC.js} +1 -1
- package/e24/es/index-DglthAm2.js +1 -0
- package/e24/es/{index-BQN7SNT0.js → index-DsZw8SDP.js} +1 -1
- package/e24/es/{index-D4KRAOjc.js → index-yuIg4ct4.js} +1 -1
- package/e24/es/index.d.ts +26 -8
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-BRkC3ajG.js → styles-B9FQK353.js} +1 -1
- package/e24/es/{styles-BDHgdbt4.js → styles-CPDVmy9-.js} +1 -1
- package/e24/es/{styles-DMVWp_i5.js → styles-CSStxtSn.js} +1 -1
- package/e24/es/{styles-Cj0cVHVU.js → styles-CSzy2tpL.js} +1 -1
- package/e24/es/{styles-DHfSzwlR.js → styles-CX7Qq_93.js} +1 -1
- package/e24/es/{styles-Cv6W4L0q.js → styles-D9ZAT7m8.js} +1 -1
- package/e24/es/{styles-cXrBEbeK.js → styles-DkOJ5VCx.js} +1 -1
- package/e24/es/{styles-DAA6j6C-.js → styles-DpiEj4_v.js} +1 -1
- package/e24/es/{styles-toH9avUo.js → styles-DyVSfwhf.js} +1 -1
- package/{tv4/es/styles-Df21_T1u.js → e24/es/styles-DyzUs7Uv.js} +1 -1
- package/e24/es/{styles-BbNK2q7U.js → styles-nCtCGtUu.js} +1 -1
- package/fotbollskanalen/cjs/index.d.ts +26 -8
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-CQROX3n3.js +1 -0
- package/fotbollskanalen/es/{events-PAiFjuo7.js → events-B9G7KvfD.js} +1 -1
- package/fotbollskanalen/es/{index-Cjrda5bk.js → index-BIbkcKYq.js} +1 -1
- package/fotbollskanalen/es/{index-kGpjRJPO.js → index-CcUVSwT0.js} +1 -1
- package/fotbollskanalen/es/{index-C877yvVk.js → index-D-pDLDeE.js} +1 -1
- package/fotbollskanalen/es/{index-DHYXsVU0.js → index-D6Pb6iJK.js} +1 -1
- package/fotbollskanalen/es/{index-Cg91G46Z.js → index-DF7RNI1t.js} +1 -1
- package/fotbollskanalen/es/index-Dc-AGLo4.js +1 -0
- package/fotbollskanalen/es/{index-CHvOEPoq.js → index-DfGpbEJM.js} +1 -1
- package/fotbollskanalen/es/index-DnbATiuq.js +1 -0
- package/fotbollskanalen/es/index.d.ts +26 -8
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-CHejHEcx.js → styles-CfNIIBKK.js} +1 -1
- package/godare/cjs/index.d.ts +26 -8
- package/godare/cjs/index.js +1 -1
- package/godt/cjs/index.d.ts +26 -8
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +26 -8
- package/kilkaya/es/index.d.ts +26 -8
- package/klart/cjs/index.d.ts +26 -8
- package/klart/cjs/index.js +1 -1
- package/klart/styles.css +1 -1
- package/koket/cjs/index.d.ts +26 -8
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-C0iyqM-S.js +1 -0
- package/koket/es/{events-BvwCoqGo.js → events-BcZTaLeW.js} +1 -1
- package/koket/es/{index-BFLC9tsL.js → index-Bz2OsIEg.js} +1 -1
- package/koket/es/{index-BqcUAnIN.js → index-CiYfJOQD.js} +1 -1
- package/koket/es/{index-BmWE5eUE.js → index-CoXLaLEm.js} +1 -1
- package/koket/es/index-CukU7Jn6.js +1 -0
- package/koket/es/index-Cyy2WUwq.js +1 -0
- package/koket/es/{index-DHfNKG7L.js → index-D6KcKOHv.js} +1 -1
- package/koket/es/{index-B0GE64uH.js → index-Wi7e-yT9.js} +1 -1
- package/koket/es/{index-C3SesVhC.js → index-bFrGnnxi.js} +1 -1
- package/koket/es/index.d.ts +26 -8
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-DWpSWJWy.js → koket/es/styles-DZ8lBM1O.js} +1 -1
- package/minmote/cjs/index.d.ts +26 -8
- package/minmote/cjs/index.js +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +26 -8
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +26 -8
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-CW6Oi0dd.js +1 -0
- package/sa/es/{events-B_AkQY4w.js → events-CyNtol2-.js} +1 -1
- package/sa/es/{index-DWJIaXcV.js → index-BNzKL6bS.js} +1 -1
- package/sa/es/{index-Dpcps0Cv.js → index-BmPQkUrk.js} +1 -1
- package/sa/es/index-D7pWhos7.js +1 -0
- package/sa/es/{index-DyusPcn_.js → index-DOITUJPV.js} +1 -1
- package/{bt/es/index-BYhxVbf7.js → sa/es/index-D_O9gVLd.js} +1 -1
- package/sa/es/{index-C7q4-6n2.js → index-DgG4w3r6.js} +1 -1
- package/sa/es/index-DzbWhtj4.js +1 -0
- package/{bt/es/index-B_CSGyv9.js → sa/es/index-bZRj-NcA.js} +1 -1
- package/sa/es/index.d.ts +26 -8
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-bQoZW5YG.js → styles-AmHsD-RA.js} +1 -1
- package/{bt/es/styles-ajrj4Tc_.js → sa/es/styles-BwnQ7OKM.js} +1 -1
- package/{vg/es/styles-Dtqx_Iyi.js → sa/es/styles-CxnXppQ5.js} +1 -1
- package/{vg/es/styles-DzWFXrGP.js → sa/es/styles-DQgvHtrv.js} +1 -1
- package/{bt/es/styles-qwY6PJ4D.js → sa/es/styles-DminGM8h.js} +1 -1
- package/sa/es/{styles-Degf0P68.js → styles-Ds3mgS9x.js} +1 -1
- package/sa/es/{styles-CHEeJ7cu.js → styles-fKNPZATB.js} +1 -1
- package/sa/es/{styles-DF9R2wTT.js → styles-jQf0W6Eg.js} +1 -1
- package/{vg/es/styles-D6KA3nzn.js → sa/es/styles-z-Vz9oES.js} +1 -1
- package/sav2/es/_auto-entry_sav2-BuJquBtj.js +1 -0
- package/sav2/es/{events-Dy90bU7v.js → events-DI8q_Qnz.js} +1 -1
- package/sav2/es/{index-BmSnpQyk.js → index-BhSNVI7o.js} +1 -1
- package/sav2/es/{index-BJHgPsUt.js → index-CTSqdux6.js} +1 -1
- package/sav2/es/{index-CSqYxGu8.js → index-CfRPxcGD.js} +1 -1
- package/sav2/es/{index-BLbqfEWx.js → index-ClbvLzX2.js} +1 -1
- package/sav2/es/index-Cqg7B7yx.js +1 -0
- package/sav2/es/index-DSduSE7R.js +1 -0
- package/sav2/es/{index-Ccu4GltL.js → index-Di7jU0jr.js} +1 -1
- package/sav2/es/{index-DYueosPW.js → index-o2_jlSkg.js} +1 -1
- package/sav2/es/index.d.ts +26 -8
- package/sav2/es/index.js +1 -1
- package/sav2/es/{styles-C-HN-Baq.js → styles-BRPdAx8Y.js} +1 -1
- package/sav2/es/{styles-DpNklgJH.js → styles-C5u773TN.js} +1 -1
- package/{btv2/es/styles-B4DdUbfP.js → sav2/es/styles-CGs4MkqV.js} +1 -1
- package/{vgv2/es/styles-BbbuT45O.js → sav2/es/styles-CpIFysfC.js} +1 -1
- package/{btv2/es/styles-IlmavUol.js → sav2/es/styles-D8zham8y.js} +1 -1
- package/{vgv2/es/styles-D7HsNqkv.js → sav2/es/styles-DsRA_Ls1.js} +1 -1
- package/sav2/es/{styles-DlwQQU5N.js → styles-DzjukE7A.js} +1 -1
- package/sav2/es/{styles-Cw5M7Drc.js → styles-wSOxK2H_.js} +1 -1
- package/svd/cjs/index.d.ts +26 -8
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-DfWuipHk.js +1 -0
- package/svd/es/{events-vcsTNIjI.js → events-B9fy8MvP.js} +1 -1
- package/svd/es/{index-B6mEhFFK.js → index-BKmYhjp4.js} +1 -1
- package/svd/es/{index-D4M5klSP.js → index-BsIKH9v6.js} +1 -1
- package/svd/es/{index-BcD-agLO.js → index-DEczVjHq.js} +1 -1
- package/svd/es/index-DTJ5fyP4.js +1 -0
- package/{tv4/es/index-PC9fGmH8.js → svd/es/index-DqdGxmQU.js} +1 -1
- package/svd/es/{index-DEycD-Fd.js → index-WeoENtv0.js} +1 -1
- package/svd/es/{index-BVpAbMce.js → index-b71iTJh6.js} +1 -1
- package/svd/es/{index-DVdA1MsS.js → index-q4kRFTm_.js} +1 -1
- package/svd/es/index.d.ts +26 -8
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-npI4DFOE.js → styles-BRczJBV7.js} +1 -1
- package/svd/es/{styles-DrO_5I-V.js → styles-BkRMHTAw.js} +1 -1
- package/svd/es/{styles-DdDCc5Ad.js → styles-C0cr8pEH.js} +1 -1
- package/svd/es/{styles-BKATK5MH.js → styles-C8BiJfH_.js} +1 -1
- package/svd/es/{styles-DVFPBtVA.js → styles-CvEYQ-Nm.js} +1 -1
- package/svd/es/{styles-BJ0Dttp2.js → styles-DjX0P_lu.js} +1 -1
- package/svd/styles.css +1 -1
- package/svdv2/es/_auto-entry_svdv2-rS_Q5zyR.js +1 -0
- package/svdv2/es/{events-LH8Rwmc5.js → events-B81mMIaP.js} +1 -1
- package/svdv2/es/{index-Tgnif2ZJ.js → index-D0IoTa1B.js} +1 -1
- package/svdv2/es/{index-CCpij6nf.js → index-DKT0OPU4.js} +1 -1
- package/svdv2/es/{index-D24L1_Eu.js → index-DT3zdHOo.js} +1 -1
- package/svdv2/es/{index-DrE9Oj47.js → index-Zc_uFqie.js} +1 -1
- package/svdv2/es/{index-DVg3m3u_.js → index-iguCimhM.js} +1 -1
- package/svdv2/es/index-lC41Qy7v.js +1 -0
- package/svdv2/es/{index-Dlxv0wxl.js → index-tYoirwmq.js} +1 -1
- package/svdv2/es/index-yAxz9Lfh.js +1 -0
- package/svdv2/es/index.d.ts +26 -8
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-BKgWUypt.js → styles-78-Iyys8.js} +1 -1
- package/svdv2/es/{styles-DGLEbCBe.js → styles-BPaJIxiZ.js} +1 -1
- package/svdv2/es/{styles-CD8gudnM.js → styles-BsO5oiS_.js} +1 -1
- package/svdv2/es/{styles-Du54Z3aW.js → styles-D4bR4OJH.js} +1 -1
- package/{koket/es/styles-DWhemvCW.js → svdv2/es/styles-D5-jbYLA.js} +1 -1
- package/svdv2/es/{styles-RM4iZ99z.js → styles-GtQDj6P7.js} +1 -1
- package/svdv2/styles.css +1 -1
- package/tek/cjs/index.d.ts +26 -8
- package/tek/cjs/index.js +1 -1
- package/tracker/cjs/index.d.ts +26 -8
- package/tracker/es/index.d.ts +26 -8
- package/tv4/cjs/index.d.ts +26 -8
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-BrhMiCYY.js +1 -0
- package/tv4/es/{events-CmhvusJj.js → events-8qqQt5gX.js} +1 -1
- package/tv4/es/index-7kV2geAZ.js +1 -0
- package/tv4/es/{index-BFd40gTe.js → index-AtB7D187.js} +1 -1
- package/tv4/es/{index-DKIHEu4R.js → index-CBL76Cff.js} +1 -1
- package/tv4/es/{index-BS8IyRYc.js → index-CGo2whl-.js} +1 -1
- package/tv4/es/index-CaN0iPss.js +1 -0
- package/{svd/es/index-D7xb1-Ng.js → tv4/es/index-Fm09Gw9I.js} +1 -1
- package/tv4/es/{index-CE6Z-BOq.js → index-TDy_flx_.js} +1 -1
- package/tv4/es/{index-B_pVXnSb.js → index-YGNGA0TO.js} +1 -1
- package/tv4/es/index.d.ts +26 -8
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-D-pkus2w.js → tv4/es/styles-EphLf12N.js} +1 -1
- package/tvnu/cjs/index.d.ts +26 -8
- package/tvnu/cjs/index.js +1 -1
- package/types/index.d.ts +26 -8
- package/vg/cjs/index.d.ts +26 -8
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-C8ePd2cs.js +1 -0
- package/vg/es/{events-CnXys1Zi.js → events-Dd_s97Rf.js} +1 -1
- package/vg/es/{index-DmPfeCrT.js → index-BBsGqir9.js} +1 -1
- package/vg/es/{index-Cxqza1dF.js → index-BTxG0IzG.js} +1 -1
- package/vg/es/{index-CSotidSA.js → index-BZ-o2dvD.js} +1 -1
- package/vg/es/{index-6TVBHSgI.js → index-BeGtvXXs.js} +1 -1
- package/vg/es/{index-DHSE4doX.js → index-C3himFxZ.js} +1 -1
- package/vg/es/index-D995T3Mt.js +1 -0
- package/vg/es/{index-DFcW-IQF.js → index-Ga00wLLk.js} +1 -1
- package/vg/es/index-wn6KJuPX.js +1 -0
- package/vg/es/index.d.ts +26 -8
- package/vg/es/index.js +1 -1
- package/{bt/es/styles-Bxrm_Sgk.js → vg/es/styles-B4lkkgsZ.js} +1 -1
- package/{bt/es/styles-BKyqwNys.js → vg/es/styles-BA0XTH86.js} +1 -1
- package/vg/es/{styles-DSyDdp0R.js → styles-BItE1P8e.js} +1 -1
- package/vg/es/{styles-CliHWZ_3.js → styles-BPcjN2qg.js} +1 -1
- package/vg/es/{styles-B8G0YeJq.js → styles-CKumPz1z.js} +1 -1
- package/{sa/es/styles-BV0qYUwB.js → vg/es/styles-CUJIjjqJ.js} +1 -1
- package/{bt/es/styles-BbXcqWwU.js → vg/es/styles-CsjIdsAA.js} +1 -1
- package/vg/es/{styles-DXkl62T9.js → styles-CuF_EWEp.js} +1 -1
- package/vg/es/{styles-C2FdrgPc.js → styles-Cw--TGd3.js} +1 -1
- package/vg/es/{styles-BOcOBo9C.js → styles-D6PCpY3e.js} +1 -1
- package/vg/es/{styles-DrELy3eP.js → styles-DFF1ID35.js} +1 -1
- package/vg/es/{styles-BRGW26UD.js → styles-DGZuqDRs.js} +1 -1
- package/vg/es/{styles-BQucZqmh.js → styles-DJrIJKV4.js} +1 -1
- package/vg/es/{styles-CxvW80pe.js → styles-e3AK702S.js} +1 -1
- package/vg/es/{styles-DQZl1kr1.js → styles-zttgsXIc.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-DIIyQQCs.js +1 -0
- package/vgv2/es/{events-Cq7csg5I.js → events-4oJPhpxW.js} +1 -1
- package/vgv2/es/{index-Dwszgdmc.js → index-B0omUW-g.js} +1 -1
- package/vgv2/es/{index-C7RMeZil.js → index-BiuPB7qH.js} +1 -1
- package/vgv2/es/{index-Kp7_MJys.js → index-Bk_IVtWY.js} +1 -1
- package/vgv2/es/index-CGaW8UZb.js +1 -0
- package/vgv2/es/{index-Bp-ks7x9.js → index-CerFd6rk.js} +1 -1
- package/vgv2/es/{index-nZ0FUDKR.js → index-Cfdcx7YY.js} +1 -1
- package/vgv2/es/{index-C1ar8NXn.js → index-D4FA0xLg.js} +1 -1
- package/vgv2/es/index-DVekNehC.js +1 -0
- package/vgv2/es/index.d.ts +26 -8
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-Ceayw1va.js → styles-4jNEHLBc.js} +1 -1
- package/vgv2/es/{styles-Dxakr1Gf.js → styles-ANUyhLzk.js} +1 -1
- package/vgv2/es/{styles-KPPGvSX8.js → styles-BDrWsuu6.js} +1 -1
- package/{btv2/es/styles-5LEUKUhS.js → vgv2/es/styles-BgE0G1OQ.js} +1 -1
- package/vgv2/es/{styles-C38lcWGe.js → styles-BqL9fuym.js} +1 -1
- package/vgv2/es/{styles-CLPvM5ML.js → styles-BqOCGnZk.js} +1 -1
- package/vgv2/es/{styles-CjOoN7r2.js → styles-CQXgtQoL.js} +1 -1
- package/vgv2/es/{styles-Cd0dpIPu.js → styles-D0GxW-vO.js} +1 -1
- package/vgv2/es/{styles-BItKV7lf.js → styles-D6myjf8r.js} +1 -1
- package/vgv2/es/{styles-QgUS5hJD.js → styles-DeGP-f1M.js} +1 -1
- package/vgv2/es/{styles-UXYxtRWD.js → styles-DuT5Faai.js} +1 -1
- package/vgv2/es/{styles-DfRbFxS5.js → styles-HbpAFnkf.js} +1 -1
- package/{sav2/es/styles-BA8mAyIe.js → vgv2/es/styles-bkHY3zJl.js} +1 -1
- package/{btv2/es/styles-oOL4L59M.js → vgv2/es/styles-f57eMM_e.js} +1 -1
- package/{btv2/es/styles-CzMvE4Ct.js → vgv2/es/styles-jazeZfsa.js} +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-DQm5I4hp.js +0 -1
- package/aftenposten/es/index-CL_6Ijvb.js +0 -1
- package/aftenposten/es/index-zerHyw1F.js +0 -1
- package/aftenposten/es/scale-ad-DNyvCG9y.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-COmN_rMc.js +0 -1
- package/aftenpostenv2/es/index-Dp10fvLI.js +0 -1
- package/aftenpostenv2/es/index-lCJTj9FD.js +0 -1
- package/aftenpostenv2/es/scale-ad-C3UxfUhY.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-DfsNK9YG.js +0 -1
- package/aftonbladet/es/index-9ILbX4p6.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CQSAbp_Q.js +0 -1
- package/aftonbladetv2/es/index-CrEOClHI.js +0 -1
- package/aftonbladetv2/es/index-RJ7AjB1Z.js +0 -1
- package/aftonbladetv2/es/scale-ad-VvNFBDL0.js +0 -1
- package/bt/es/_auto-entry_bt-CL1HGDfN.js +0 -1
- package/bt/es/index-CYn4N_wP.js +0 -1
- package/bt/es/index-DiUe_YIG.js +0 -1
- package/bt/es/scale-ad-CbB427qG.js +0 -1
- package/btv2/es/_auto-entry_btv2-CVp-n3ck.js +0 -1
- package/btv2/es/index-B5Z4dirh.js +0 -1
- package/btv2/es/index-Cxv1g4ei.js +0 -1
- package/btv2/es/scale-ad-zDw6BLjX.js +0 -1
- package/e24/es/_auto-entry_e24-COl4EbsU.js +0 -1
- package/e24/es/index-BSKRcAYA.js +0 -1
- package/e24/es/index-h0x83nGG.js +0 -1
- package/e24/es/scale-ad-zQttMKZA.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DqDdM23m.js +0 -1
- package/fotbollskanalen/es/index-B8hAdUeJ.js +0 -1
- package/fotbollskanalen/es/index-mmxvRb3c.js +0 -1
- package/fotbollskanalen/es/scale-ad-D3gxPfQg.js +0 -1
- package/koket/es/_auto-entry_koket-C48J8KxZ.js +0 -1
- package/koket/es/index-BKa-1wk1.js +0 -1
- package/koket/es/index-T4KqLXn3.js +0 -1
- package/koket/es/scale-ad-CypQr_a9.js +0 -1
- package/sa/es/_auto-entry_sa-C2O3W95-.js +0 -1
- package/sa/es/index-BaBi-EbC.js +0 -1
- package/sa/es/index-DiQCCxiE.js +0 -1
- package/sa/es/scale-ad-t_PFaWNl.js +0 -1
- package/sav2/es/_auto-entry_sav2-GZukctTY.js +0 -1
- package/sav2/es/index-BIVEkke9.js +0 -1
- package/sav2/es/index-CAKzVYiK.js +0 -1
- package/sav2/es/scale-ad-Bl1N9sV8.js +0 -1
- package/svd/es/_auto-entry_svd-D5RrcHO5.js +0 -1
- package/svd/es/index-BNw3P6N7.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-p0K1CtR7.js +0 -1
- package/svdv2/es/index-CF7g0aK-.js +0 -1
- package/svdv2/es/index-CgHAmt-Z.js +0 -1
- package/svdv2/es/scale-ad-CKz3c7a6.js +0 -1
- package/tv4/es/_auto-entry_tv4-hpV2mS7-.js +0 -1
- package/tv4/es/index-BDOCKubD.js +0 -1
- package/tv4/es/index-D8tfFuVH.js +0 -1
- package/tv4/es/scale-ad-fAq7RnE3.js +0 -1
- package/vg/es/_auto-entry_vg-DiwAKbPE.js +0 -1
- package/vg/es/index-B919RnoX.js +0 -1
- package/vg/es/index-DB1tns1N.js +0 -1
- package/vg/es/scale-ad-U1-_NZ5U.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-yb_BOqwj.js +0 -1
- package/vgv2/es/index-B_ngjvfi.js +0 -1
- package/vgv2/es/index-CsHr_ayb.js +0 -1
- package/vgv2/es/scale-ad-C2rI3LbT.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,l as e,Q as a,R as n,j as i,U as l}from"./_auto-entry_btv2-
|
|
1
|
+
import{_ as t,l as e,Q as a,R as n,j as i,U as l}from"./_auto-entry_btv2-BMBxtlku.js";import{jsxs as r,jsx as s}from"react/jsx-runtime";class o{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let a;if(a=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!a)return[];const{host:n,pathname:i}=new URL(a);if(!n.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[a];const l=i.split("/");return l.length?[...l.filter(Boolean).slice(1).map(t=>t),a]:[a]}}class c{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}class d{constructor(t,e){this.pulse=t,this.newsroomStrategy=e}getEventInput(t,e){return{}}parseKilkayaData(t){const e=t.querySelector("article");if(!e)return{};const a=e.dataset.k5aTeaserAnalytics;try{return a?JSON.parse(a):{}}catch(t){return{}}}mapPageType(t){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[t||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(t){const{url:e,title:a,itemId:n}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:e}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)?null===(i=null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)||void 0===i||i.call(n,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)||void 0===s||s.call(r,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(a=(t=this.pulse).trackLegacyClickUIElement)||void 0===a||a.call(t,s):this.pulse.trackClickUIElement?null===(i=(n=this.pulse).trackClickUIElement)||void 0===i||i.call(n,s):null===(r=(l=this.pulse).trackElementClick)||void 0===r||r.call(l,s)})}}class u extends d{constructor(t,e,a){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=a}getEventBaseData(t){var e,a,n,i,l,r;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(t),u=this.mapPageType(this.pageType),v=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(n=null===(a=this.newsroomStrategy)||void 0===a?void 0:a.getPulseObjectId)||void 0===n?void 0:n.call(a))&&void 0!==i?i:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=v?v:d,"@type":u,url:location.origin},tags:null===(r=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===r?void 0:r.call(l,t)}}getEventTarget(t){const{link:e,itemId:a,title:n}=this.parseKilkayaData(t);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}getEventInput(t,e){return{object:this.getEventBaseData(t),partnerstudio:this.getEventPartnerstudioData(t,e),target:this.getEventTarget(t),provider:this.getProviderData()}}getEventPartnerstudioData(t,e){const a=this.parseKilkayaData(t);return Object.assign(Object.assign({},a),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v="[data-k5a-teaser-analytics]",p=(t,e,a)=>{const n=document.querySelectorAll("k5a-stream");if(!n.length)return;const i=new u(t,e,a),l=new WeakMap,r=t=>{const e=l.get(t);e&&(e.disconnect(),l.delete(t))},s=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(!t.isIntersecting)return;const a=t.target,n=a.querySelector(v);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)?(i.trackContentView(a),e.unobserve(t.target),r(a)):((t,e)=>{if(l.has(t))return;const a=new MutationObserver(()=>{const a=t.querySelector(v);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)&&(i.trackContentView(t),e.unobserve(t),r(t))});a.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),l.set(t,a)})(a,e)})},{threshold:.5});n.forEach(t=>{s.observe(t),t.addEventListener("click",()=>i.trackContentClick(t))})};class g{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a}}){if(!(null==t?void 0:t.instance))return;const n={[l.VG]:new o}[a]||new c;p(t.instance,n,e)}injectKilkayaMeta(t){const e=document.createElement("script");e.textContent=`var k5aMeta = { consent: ${t} };`,document.head.appendChild(e)}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var a;const n=null===(a=null==t?void 0:t.detail)||void 0===a?void 0:a.streamSlot;if(!n)return;const i=n.parentElement;i&&(e(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(i))})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";a(i)}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield n(e)})}run(e){return t(this,void 0,void 0,function*(){var t,a;const{tcf:n,pageContext:{isMobileApp:l,countryCode:r},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const o=yield i(n,l,r,"kilkaya");o&&(this.observeForKilkayaBackfills(),this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(a=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==a?a:""),this.handleKilkayaStreamTracking(e))})}}const h=({placementName:t,slotTag:e,fallbackTargetId:a,children:n,pulseData:i,htmlAttributes:l})=>{const o=(t,e)=>{const a={};if(!t)return a;for(const[n,i]of Object.entries(t)){a[e?`${e}-${n}`:n]=String(i)}return a},c=o(i,"data-pulse"),d=o(l,"data");return r("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},c,d,{children:[s("div",{className:"inscreen-target"}),s("k5a-stream",{name:t,"slot-tag":e}),s("div",{className:"container"}),s("div",{className:"fallback","data-fallback-target-id":a,style:{display:"none"},children:n})]}))},k=e=>t(void 0,void 0,void 0,function*(){const t=new g;yield t.run(e)});export{h as Kilkaya,k as runKilkaya};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e,o as t,D as o,c as r,p as l,_ as s,q as a,r as n,v as c,w as d}from"./_auto-entry_btv2-
|
|
1
|
+
import{T as e,o as t,D as o,c as r,p as l,_ as s,q as a,r as n,v as c,w as d}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";const i="#fff",y="#0098da",p=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},A=e=>{const t=w(e),o=m(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},m=e=>{const t=()=>A(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&A(e)};return u(),window.addEventListener("keydown",t),t},E=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),m(e),u(),t.addEventListener("click",()=>{A(e)}),v(!1))},g=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),m(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},b=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>A(e))})(e)},h=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},f=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},T=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},C=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=d(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=d(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,T(t))},x=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){const{takeover:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),u=document.querySelector(".advertory-takeover-wrapper");if(!d||!u||!l)return;const v=a(o),A=u.offsetHeight,m=window.scrollY>A;u.style.display="block",!m&&p(v,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:h,[e.TOPSCROLLER]:f,[e.VELVET]:S})[o](t)})(u,v),k(),((t,o)=>{({[e.WELCOME_PAGE]:g,[e.TOPSCROLLER]:g,[e.SPLASH]:E,[e.VELVET]:b})[o](t)})(u,v),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:y}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(u,v,l),yield n(),!m&&p(v,!0),c(o,v)});export{q as createTakeoverAd,C as modifyTakeoverAdContent,x as modifyTakeoverIframe};
|
package/btv2/es/index.d.ts
CHANGED
|
@@ -440,6 +440,7 @@ interface SiteConfig {
|
|
|
440
440
|
editableConfiguration?: EditableConfigurationConfig;
|
|
441
441
|
adScaleConfig?: AdScaleConfig;
|
|
442
442
|
widescreenSwitching?: WidescreenSwitchingConfig;
|
|
443
|
+
fullWidth?: FullWidthConfig;
|
|
443
444
|
}
|
|
444
445
|
interface PageContext {
|
|
445
446
|
publisher: string;
|
|
@@ -588,17 +589,19 @@ interface FinnBlinkSDKPayload {
|
|
|
588
589
|
theme?: Theme;
|
|
589
590
|
uuid?: string;
|
|
590
591
|
}
|
|
592
|
+
interface FinnBlinkSizes {
|
|
593
|
+
width: number;
|
|
594
|
+
height: number;
|
|
595
|
+
}
|
|
596
|
+
interface FinnBlinkReplacementConfig {
|
|
597
|
+
adsToReplace?: Partial<Record<DeviceType, Array<Array<string>>>>;
|
|
598
|
+
sizes?: Partial<Record<DeviceType, FinnBlinkSizes>>;
|
|
599
|
+
}
|
|
591
600
|
interface FinnBlinkConfig {
|
|
592
601
|
enabled?: boolean;
|
|
593
602
|
identifierUrl?: string;
|
|
594
603
|
sdkPayload?: FinnBlinkSDKPayload;
|
|
595
|
-
replacementConfig?:
|
|
596
|
-
adsToReplace?: Array<Array<string>>;
|
|
597
|
-
sizes?: {
|
|
598
|
-
width: number;
|
|
599
|
-
height: number;
|
|
600
|
-
};
|
|
601
|
-
};
|
|
604
|
+
replacementConfig?: FinnBlinkReplacementConfig;
|
|
602
605
|
}
|
|
603
606
|
interface FinnBlinkPlacementSDKPayload {
|
|
604
607
|
position?: string;
|
|
@@ -629,7 +632,7 @@ interface OverlayStyles {
|
|
|
629
632
|
backgroundColor?: string;
|
|
630
633
|
foregroundColor?: string;
|
|
631
634
|
articlesContainerWidth?: number;
|
|
632
|
-
margin?: string
|
|
635
|
+
margin?: Partial<Record<DeviceType, string>>;
|
|
633
636
|
beforeContentValue?: string;
|
|
634
637
|
}
|
|
635
638
|
interface FullscreenScrollOptions {
|
|
@@ -744,6 +747,21 @@ interface WidescreenSwitchingConfig {
|
|
|
744
747
|
enabled: boolean;
|
|
745
748
|
options?: WidescreenSwitchingOptions;
|
|
746
749
|
}
|
|
750
|
+
interface FullWidthBreakoutStyles {
|
|
751
|
+
left?: string;
|
|
752
|
+
marginLeft?: string;
|
|
753
|
+
}
|
|
754
|
+
interface FullWidthStyles {
|
|
755
|
+
adContainer?: FullWidthBreakoutStyles;
|
|
756
|
+
adContainerWrapper?: FullWidthBreakoutStyles;
|
|
757
|
+
}
|
|
758
|
+
interface FullWidthOptions {
|
|
759
|
+
styles?: Partial<Record<DeviceType, FullWidthStyles>>;
|
|
760
|
+
}
|
|
761
|
+
interface FullWidthConfig {
|
|
762
|
+
enabled: boolean;
|
|
763
|
+
options?: FullWidthOptions;
|
|
764
|
+
}
|
|
747
765
|
interface SiteHandlers {
|
|
748
766
|
prepareTag: (tag: AstDefineTagParams) => AstDefineTagParams;
|
|
749
767
|
siteEvents: Events;
|
package/btv2/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{W as Netboard,X as Sponsorstripe,Y as Takeover,Z as Topboard,V as default}from"./_auto-entry_btv2-
|
|
1
|
+
export{W as Netboard,X as Sponsorstripe,Y as Takeover,Z as Topboard,V as default}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";a('.advertory-no-ad-native-seamless .ad-info div[role=button]{left:100%;transform:translateX(-100%);background-color:hsla(0,0%,100%,.45);border-bottom-left-radius:13px}.advertory-no-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-no-ad-native-seamless .ad-link .ad-content{min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;border-radius:10px;background-color:var(--color-background-secondary, #ffffff);color:var(--color-text-primary, #333)}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-header{padding:8px 10px 10px 10px}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand{display:flex;align-items:center;gap:12px;margin-bottom:11px}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-logo{max-height:44px;border-radius:50%}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-brand-text{display:flex;flex-direction:column;gap:3px;align-items:start}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-brand-text .sponsored-by{font-size:16px;font-weight:500;line-height:1}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-brand-text .ad-annons{font-size:14px;font-weight:400;line-height:1.1;color:var(--color-text-primary, #333);text-transform:lowercase}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-brand-text .ad-annons::first-letter{text-transform:uppercase}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-header .ad-headline{margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;object-fit:cover}@media screen and (min-width: 768px){.advertory-no-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;padding-right:8px;align-items:start}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-domain{font-size:11px;line-height:1;color:#666;text-transform:uppercase;text-align:left;font-weight:500}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}.advertory-no-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:12px;line-height:1;color:var(--color-text-primary, #111111);white-space:nowrap;background-color:var(--color-background-tertiary, #d9d9d9);border-radius:12px;font-weight:500}.advertory-aftenposten-native-ad-wrapper__front:has(.advertory-no-ad-native-seamless),.advertory-aftenposten-native-ad__front:has(.advertory-no-ad-native-seamless),.advertory-bt-native-ad-wrapper__front:has(.advertory-no-ad-native-seamless),.advertory-bt-native-ad__front:has(.advertory-no-ad-native-seamless),.advertory-sa-native-ad-wrapper__front:has(.advertory-no-ad-native-seamless){max-width:100%}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_btv2-
|
|
1
|
+
import{i as e}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";e(".advertory-abo-ad-native-video{width:100%;min-height:250px;margin:auto;color:#000;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}.advertory-abo-ad-native-video *{box-sizing:border-box;line-height:normal;text-transform:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-video{width:580px;height:400px}}.advertory-abo-ad-native-video .ad-info{position:absolute;height:26px;width:26px;top:20px;left:0;z-index:1000;background-color:hsla(0,0%,100%,.4509803922);border-bottom-right-radius:13px;transform:none;transform-origin:center}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-info{top:30px}}.advertory-abo-ad-native-video .ad-info .gdprAdTransparencyCogWheelButton{background-color:rgba(0,0,0,0);border-bottom-right-radius:13px;z-index:10}.advertory-abo-ad-native-video .ad-content .ad-image-container{position:relative;line-height:0}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header{position:absolute;height:20px;width:100%;font-size:13px;line-height:20px;color:#4c3d00;background:rgba(255,205,0,.8);z-index:100}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header span{margin-left:8px}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header{height:30px;line-height:30px;padding-left:16px}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header span{margin:0}}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:56.4971751412vw;width:100%}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:326px}}.advertory-abo-ad-native-video .ad-content .ad-text-container{background:#fff6d1;overflow:auto}.advertory-abo-ad-native-video .ad-content .ad-text-container .sponsored-by{color:#64625a;font-size:10px;margin:8px 8px 3px 8px;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-text-container .sponsored-by{font-size:13px;margin:8px 16px}}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link{text-decoration:none;display:flex;flex-direction:column}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link,.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link:focus,.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link:hover,.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link:visited{color:#000}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-title{margin:0 8px 7px 8px;min-height:52px;line-height:24px;color:#000;font-size:20px;font-weight:700;display:flex;flex-direction:column}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-title{font-size:22px;margin:0 16px 9px 16px;height:35px;min-height:auto;line-height:35px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;display:block}}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-description{display:none;border-top:1px solid rgba(128,128,128,.5019607843);margin:0 8px 12px 8px;padding-top:8px;color:#6a6a6a;font-style:normal;font-weight:normal;font-size:12px;line-height:14px}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-description{font-size:13px;margin:8px 16px;line-height:16px}}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";a('.advertory-no-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#dfdfdf;font-family:"Inter",sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;font-size:14px}@media screen and (min-width: 768px){.advertory-no-ad-native-default{width:580px;height:400px}}.advertory-no-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-default .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-default .ad-content{display:block}.advertory-no-ad-native-default .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}.advertory-no-ad-native-default .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-default .ad-text-container{background:#f5faff;overflow:auto;padding:8px}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-default .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}.advertory-vg-native-ad__front .advertory-no-ad-native-default{width:100%;height:auto}.advertory-aftenposten-native-ad-wrapper__front{justify-content:center}.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(-40px + 4rem)}@media screen and (min-width: 768px){.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(12px + .75rem)}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_btv2-
|
|
1
|
+
import{i as e}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";e('.advertory-no-ad-native-recirc{width:100%;min-height:250px;margin:0 auto;color:#000;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;background-color:#fff;font-family:"Inter",sans-serif;font-weight:600;text-align:left;font-size:14px;container-type:inline-size}.advertory-no-ad-native-recirc *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-recirc .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-recirc .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-recirc .ad-content{display:flex;flex-direction:column}.advertory-no-ad-native-recirc .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}@container (min-width: dna.$md){.advertory-no-ad-native-recirc .ad-image-container{min-height:0}}.advertory-no-ad-native-recirc .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-recirc .ad-text-container{background:#f5faff;overflow:auto;padding:8px;container-type:inline-size}@container (min-width: dna.$md){.advertory-no-ad-native-recirc .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-recirc .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@container (min-width: dna.$md){.advertory-no-ad-native-recirc .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-recirc .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-recirc .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@container (min-width: 420px){.advertory-no-ad-native-recirc .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";a(".advertory-abo-ad-native-recirc{width:100%;min-height:250px;margin:auto;color:#000;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}@media screen and (min-width: 768px){.advertory-abo-ad-native-recirc{max-width:283px;height:400px}}.advertory-abo-ad-native-recirc .ad-info{position:absolute;top:0;height:26px;width:26px;left:0;z-index:1000;background-color:hsla(0,0%,100%,.4509803922);border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-abo-ad-native-recirc .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0)}.advertory-abo-ad-native-recirc .ad-content{display:block}.advertory-abo-ad-native-recirc .ad-image-container{position:relative;line-height:0}.advertory-abo-ad-native-recirc .ad-image-container .ad-header{height:30px;font-size:13px;line-height:30px;font-weight:600;color:#4c3d00;background:rgba(255,205,0,.8);padding-left:32px;font-family:-apple-system,BlinkMacSystemFont,sans-serif;border-top-right-radius:10px;border-top-left-radius:10px}.advertory-abo-ad-native-recirc .ad-image-container .ad-image{width:100%}.advertory-abo-ad-native-recirc .ad-image-container .ad-logo{position:absolute;height:30px;width:auto;top:auto;bottom:8px;left:8px;right:auto}@media screen and (min-width: 768px){.advertory-abo-ad-native-recirc .ad-image-container .ad-logo{left:16px;bottom:16px}}.advertory-abo-ad-native-recirc .ad-text-container{background:#fff6d1;overflow:auto;border-bottom-right-radius:10px;border-bottom-left-radius:10px}.advertory-abo-ad-native-recirc .ad-text-container .ad-sponsored-by{display:block;color:#64625a;font-size:13px;padding:5px 8px;text-transform:uppercase;font-family:Roboto,sans-serif}.advertory-abo-ad-native-recirc .ad-text-container .ad-title{padding:6px 8px;margin-bottom:12px;color:#000;font-size:17px;font-weight:700;font-family:Arial,sans-serif}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-entry_btv2-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";a('.advertory-abo-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#000;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-weight:600;text-align:left;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}.advertory-abo-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-default{width:580px;height:400px}}.advertory-abo-ad-native-default .ad-info{position:absolute;top:20px;height:26px;width:26px;left:0;z-index:1000;background-color:hsla(0,0%,100%,.4509803922);border-bottom-right-radius:13px;transform:none;transform-origin:center}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-info{top:30px}}.advertory-abo-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0)}.advertory-abo-ad-native-default .ad-content{display:block}.advertory-abo-ad-native-default .ad-image-container{position:relative;line-height:0}.advertory-abo-ad-native-default .ad-image-container .ad-header{position:absolute;height:20px;width:100%;font-size:13px;line-height:20px;color:#4c3d00;background:rgba(255,205,0,.8)}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-image-container .ad-header{height:30px;line-height:30px;padding-left:16px}}.advertory-abo-ad-native-default .ad-image-container .ad-header span{margin-left:8px}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-image-container .ad-header span{margin:0}}.advertory-abo-ad-native-default .ad-image-container .ad-image{position:static;width:100%;height:52.3560209424vw}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-image-container .ad-image{height:301px}}.advertory-abo-ad-native-default .ad-image-container .ad-logo{position:absolute;height:30px;width:auto;top:auto;bottom:8px;left:8px;right:auto}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-image-container .ad-logo{left:16px;bottom:16px}}.advertory-abo-ad-native-default .ad-text-container{background:#fff6d1;overflow:auto}.advertory-abo-ad-native-default .ad-text-container .ad-sponsored-by{color:#64625a;font-size:10px;margin:8px 8px 3px 8px;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-text-container .ad-sponsored-by{font-size:13px;margin:8px 16px}}.advertory-abo-ad-native-default .ad-text-container .ad-title{margin:0 8px 7px 8px;min-height:52px;line-height:24px;color:#000;font-size:20px;font-weight:700;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-abo-ad-native-default .ad-text-container .ad-title{font-size:24px;margin:0 16px 8px 16px;height:59px;min-height:auto;line-height:normal;overflow:hidden}}.advertory-abo-ad-native-default.bt .ad-text-container .ad-title{font-family:"TabacG2",serif;font-weight:500}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t}from"./_auto-
|
|
1
|
+
import{i as t}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";t('.advertory-abo-ad-native-content-video{position:relative;display:table;table-layout:fixed;width:100%;margin:0 auto;background:#fff;font-family:"Inter",sans-serif;font-weight:700;text-align:left;color:#000}.advertory-abo-ad-native-content-video *{line-height:1}.advertory-abo-ad-native-content-video a.ad-link{display:block;text-decoration:none;color:inherit}.advertory-abo-ad-native-content-video a.ad-link:hover{text-decoration:none}.advertory-abo-ad-native-content-video .ad-info{z-index:10;top:44px}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-info{top:50px}}.advertory-abo-ad-native-content-video .ad-info div[role=button]{top:44px !important;border-bottom-right-radius:13px;background-color:hsla(0,0%,100%,.45);z-index:10}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-info div[role=button]{top:51px !important}}.advertory-abo-ad-native-content-video .ad-content{display:flex;flex-direction:column}.advertory-abo-ad-native-content-video .ad-content .ad-header{position:relative;height:44px;display:flex;align-items:center;text-transform:uppercase;padding:0 8px}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-header{height:51px;min-height:0}}.advertory-abo-ad-native-content-video .ad-content .ad-header span{font-weight:700;font-size:13px;position:absolute;top:50%;transform:translateY(-50%)}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-header span{font-size:20px;padding-left:12px}}.advertory-abo-ad-native-content-video .ad-content .ad-header .ad-logo{position:absolute;right:0;width:auto;height:40px;margin-right:8px}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-header .ad-logo{width:auto;height:35px}}.advertory-abo-ad-native-content-video .ad-content .ad-image-container{display:flex;position:relative}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-image-container{min-height:0}}.advertory-abo-ad-native-content-video .ad-content .ad-image-container .ad-image{width:100%;height:auto;object-fit:cover;object-position:center 0}.advertory-abo-ad-native-content-video .ad-content .ad-image-container .ad-player-wrapper{height:56.4971751412vw;width:100%}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-image-container .ad-player-wrapper{height:407px}}.advertory-abo-ad-native-content-video .ad-content .ad-text-container{display:flex;flex-direction:column;color:#2b2b2b;padding-bottom:10px}.advertory-abo-ad-native-content-video .ad-content .ad-text-container .sponsored-by{display:block;padding:8px;font-size:12px;font-weight:normal;text-transform:uppercase}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-text-container .sponsored-by{padding:8px 10px}}.advertory-abo-ad-native-content-video .ad-content .ad-text-container .ad-title{display:block;padding:0 8px;margin-left:0;margin-bottom:0;font-size:var(--mobileTitleSize);font-weight:bold;line-height:1}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-text-container .ad-title{padding:4px 12px 8px 12px;font-size:var(--desktopTitleSize)}}.advertory-abo-ad-native-content-video .ad-content .ad-text-container .ad-description{margin:4px 0;padding:0 8px;font-size:16px;line-height:calc(15px);color:#000}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video .ad-content .ad-text-container .ad-description{padding:0 12px}}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video.bt .ad-content .ad-image-container .ad-player-wrapper,.advertory-abo-ad-native-content-video.sa .ad-content .ad-image-container .ad-player-wrapper{height:302px}}@media screen and (min-width: 768px){.advertory-abo-ad-native-content-video.bt .ad-content .ad-text-container .ad-title,.advertory-abo-ad-native-content-video.sa .ad-content .ad-text-container .ad-title{font-size:23px}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t}from"./_auto-
|
|
1
|
+
import{i as t}from"./_auto-entry_btv2-BMBxtlku.js";import"react/jsx-runtime";const o=t("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");export{o as default};
|
|
@@ -248,6 +248,7 @@ interface SiteConfig {
|
|
|
248
248
|
editableConfiguration?: EditableConfigurationConfig;
|
|
249
249
|
adScaleConfig?: AdScaleConfig;
|
|
250
250
|
widescreenSwitching?: WidescreenSwitchingConfig;
|
|
251
|
+
fullWidth?: FullWidthConfig;
|
|
251
252
|
}
|
|
252
253
|
interface PageContext {
|
|
253
254
|
publisher: string;
|
|
@@ -396,17 +397,19 @@ interface FinnBlinkSDKPayload {
|
|
|
396
397
|
theme?: Theme;
|
|
397
398
|
uuid?: string;
|
|
398
399
|
}
|
|
400
|
+
interface FinnBlinkSizes {
|
|
401
|
+
width: number;
|
|
402
|
+
height: number;
|
|
403
|
+
}
|
|
404
|
+
interface FinnBlinkReplacementConfig {
|
|
405
|
+
adsToReplace?: Partial<Record<DeviceType, Array<Array<string>>>>;
|
|
406
|
+
sizes?: Partial<Record<DeviceType, FinnBlinkSizes>>;
|
|
407
|
+
}
|
|
399
408
|
interface FinnBlinkConfig {
|
|
400
409
|
enabled?: boolean;
|
|
401
410
|
identifierUrl?: string;
|
|
402
411
|
sdkPayload?: FinnBlinkSDKPayload;
|
|
403
|
-
replacementConfig?:
|
|
404
|
-
adsToReplace?: Array<Array<string>>;
|
|
405
|
-
sizes?: {
|
|
406
|
-
width: number;
|
|
407
|
-
height: number;
|
|
408
|
-
};
|
|
409
|
-
};
|
|
412
|
+
replacementConfig?: FinnBlinkReplacementConfig;
|
|
410
413
|
}
|
|
411
414
|
interface FinnBlinkPlacementSDKPayload {
|
|
412
415
|
position?: string;
|
|
@@ -437,7 +440,7 @@ interface OverlayStyles {
|
|
|
437
440
|
backgroundColor?: string;
|
|
438
441
|
foregroundColor?: string;
|
|
439
442
|
articlesContainerWidth?: number;
|
|
440
|
-
margin?: string
|
|
443
|
+
margin?: Partial<Record<DeviceType, string>>;
|
|
441
444
|
beforeContentValue?: string;
|
|
442
445
|
}
|
|
443
446
|
interface FullscreenScrollOptions {
|
|
@@ -552,6 +555,21 @@ interface WidescreenSwitchingConfig {
|
|
|
552
555
|
enabled: boolean;
|
|
553
556
|
options?: WidescreenSwitchingOptions;
|
|
554
557
|
}
|
|
558
|
+
interface FullWidthBreakoutStyles {
|
|
559
|
+
left?: string;
|
|
560
|
+
marginLeft?: string;
|
|
561
|
+
}
|
|
562
|
+
interface FullWidthStyles {
|
|
563
|
+
adContainer?: FullWidthBreakoutStyles;
|
|
564
|
+
adContainerWrapper?: FullWidthBreakoutStyles;
|
|
565
|
+
}
|
|
566
|
+
interface FullWidthOptions {
|
|
567
|
+
styles?: Partial<Record<DeviceType, FullWidthStyles>>;
|
|
568
|
+
}
|
|
569
|
+
interface FullWidthConfig {
|
|
570
|
+
enabled: boolean;
|
|
571
|
+
options?: FullWidthOptions;
|
|
572
|
+
}
|
|
555
573
|
interface DevicePlacementBatches {
|
|
556
574
|
[key: string]: Array<string>;
|
|
557
575
|
}
|
package/dr-edition/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");function t(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n={get:(e,n)=>t(void 0,void 0,void 0,function*(){const t=yield fetch(e,n);if(!t.ok)throw new Error(t.statusText);return yield t.json()}),post:(e,n,i)=>t(void 0,void 0,void 0,function*(){const t=JSON.stringify(i),o=yield fetch(e,{method:"POST",headers:n,body:t});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},i=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},o=["netboard","board"];class r{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:o}=e,r=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",o),r&&s.searchParams.append("urlData",r),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return t(this,void 0,void 0,function*(){var t,o,r;const a=yield this.identityFacade.getIdentityUser(),s=null!==(r=yield null===(o=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===o?void 0:o.call(t))&&void 0!==r?r:"",d=(null==a?void 0:a.userId)?String(a.userId):"",l=this.buildUrl(e,{envId:s,spid:d});try{i("Starting fetching DrEdition ad from URL:",l);const e={method:"GET"},t=yield n.get(l,e);return i("Fetch operation completed successfully."),t}catch(e){i("Error during fetch operation:",e)}return null})}}class a{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:o,creativeId:r}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:o,utm_medium:s},r&&{utm_id:`df-${r}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),o=new URLSearchParams(decodeURIComponent(e.search)),r=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{o.has(e)||r.set(e,null!=t?t:"")}),r.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const o=this.getDrEditionUTMParams(e,t),r=new URL(i);return Object.entries(o).forEach(([e,t])=>{r.searchParams.has(e)||r.searchParams.set(e,null!=t?t:"")}),r.toString()}handleVideo(e,n){return t(this,void 0,void 0,function*(){const{id:t,autoplay:i,mute:o,videoLoop:r,vendor:a}=n.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:t,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:o,vgtvLoop:!!r,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:o}=new URL(n);if(!i.includes("www.vg.no")&&!o.includes("annonsorinnhold"))return[n];const r=o.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const s=e=>new URLSearchParams(window.location.search).get(e),d=e=>{if("0"===s("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&(()=>{const e=document.querySelector(".advertory-wallpaper-background");e&&e.remove()})())},l=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},c=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):i("Dr. Edition container does not have a parent element, cannot remove height lock.")};class u{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,n){return t(this,void 0,void 0,function*(){var t,o;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:a=!1}=n,s=e.querySelector(r);if(!s)return void i(`Container with selector "${r}" not found.`);const u=yield this.drEditionService.fetchData(n);return(null==u?void 0:u.itemId)||a?!(null==u?void 0:u.itemId)&&a?(i("No Dr. Edition ads available to render. Collapsing whole placement."),d(e.id),void c(s)):((null==u?void 0:u.itemId)&&a&&(i("Dr. Edition ad available to render as a Xandr backfill."),l(e.id)),void(u?(u.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(u.css,"style"),yield this.rendererManager.render(s,u,n),yield null===(t=this.videoManager)||void 0===t?void 0:t.handle(u,n),c(s),this.drEditionAds.push(u),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(u.itemId),this.observeAdView(e,u,n),null===(o=e.querySelector("a"))||void 0===o||o.addEventListener("pointerup",()=>null)):c(s))):(i("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(s),this.showBackfill(e),void c(s))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let o=null;const r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(o&&clearTimeout(o),o=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{r.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{r.observe(e)}),!0}}const v=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return i("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const r=e=>{o||(i("Resolving advertising permission value obtained"),o=!0,t(e))},a=setTimeout(()=>{i("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{i("On Tcf Ready called, waiting for permission"),clearTimeout(a)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(a);const t=Number(e);i("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),p="no",g="se",m="cmp:loaded";let h="undefined"!=typeof window?window._tcf_:void 0,y=!1;const w=(e,n,o)=>{const r=!!(null==e?void 0:e.enabled),a=(null==e?void 0:e.timeout)||3e3,d=s("bypass_tcf"),l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(i("TCF bypass param detected, returning consent: true"),!0):(i("TCF is not enabled, returning consent: true"),!0))(r,d))return!0;if(y)return null;if(!h)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=h.getConsentedToAllSync();return i(`TCF consented to all is: ${t}`),h.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(i("Getting TCF consent manager..."),window._tcf_)return i("TCF consent manager is already available"),h=window._tcf_,void e(h);i("TCF consent manager is not available");const n=()=>{i("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(h=window._tcf_,e(h)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(m,n),y=!0,t(new Error("Timeout waiting for CMP to load"))},a);i("Listening for CMP loaded event..."),document.addEventListener(m,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return i(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===g,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===p;if(t||n)return i("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield v(e);if(!(null==e?void 0:e.enabled))return!0;const r=l();return null!==r?r:yield new Promise((e,t)=>{try{if(!h)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{i("TCF isConsentedToAll timed out, resolving with false"),n(!1)},a);h.onTcfReady(()=>{i("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),h.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},f=(e,n,o,...r)=>t(void 0,[e,n,o,...r],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return i(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return i(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=w(e,0,n);return(yield r())?(i(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(i(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),b="mobile";class E{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,n,i){return t(this,void 0,void 0,function*(){if(!(null==n?void 0:n.itemId))return;const{getConsentAsync:t}=w(i.tcf,i.isMobileApp,i.country),o=yield t(),r=i.device===b?n.mobileHTML:n.desktopHTML;const a=o?r:r.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var t,o,r;e.search=null!==(r=null===(o=(t=this.newsroomStrategy).getUrlSearchParams)||void 0===o?void 0:o.call(t,e,n,i))&&void 0!==r?r:"",e.onclick=()=>this.pulseManager.trackContentClick(e,n,i)})})}}class P{constructor(e){this.strategy=e}handle(e,n){return t(this,void 0,void 0,function*(){const{videoConfiguration:{id:t,preview:i}={}}=e;(t||i)&&(yield this.importScript(n),yield this.createVideoElement(e,n))})}importScript(e){return t(this,void 0,void 0,function*(){const n=e.drEditionConfig.options.videoScriptUrl,o=document.querySelector(`script[src="${n}"]`);if(n&&!window.autoplayQueue&&!o)try{yield((e,...n)=>t(void 0,[e,...n],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(d)};o.addEventListener("load",r),o.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).catch(e=>{console.error(e)}))}))(n)}catch(e){i("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,n){return t(this,void 0,void 0,function*(){const t=document.createElement("div"),{node:i}=e.videoConfiguration,o=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,n))return;this.strategy.handleVideo(t,e),null==o||o.appendChild(t),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const r=null==o?void 0:o.parentNode;if(!r)return;const a=r.closest("a");r.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,o;const{preview:{url:r,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!r)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",r),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(o=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===o||o.call(i,s),!0))}}class C{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,o=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=o?o:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,n,i){return t(this,void 0,void 0,function*(){var t,o,r,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:i.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const v=this.getEventInput(e,n,i,"view");(null===(t=this.pulse)||void 0===t?void 0:t.trackLegacyViewUIElement)?null===(r=null===(o=this.pulse)||void 0===o?void 0:o.trackLegacyViewUIElement)||void 0===r||r.call(o,v):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,v):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,v)})}trackContentClick(e,n,i){return t(this,void 0,void 0,function*(){var t,o,r,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,n,i,"click");this.pulse.trackLegacyClickUIElement?null===(o=(t=this.pulse).trackLegacyClickUIElement)||void 0===o||o.call(t,l):this.pulse.trackClickUIElement?null===(a=(r=this.pulse).trackClickUIElement)||void 0===a||a.call(r,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class T extends C{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,o,r;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:v,urlPath:p}=null!==(r=null===(o=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===o?void 0:o.call(i,l))&&void 0!==r?r:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,v,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:v,urlPath:p},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class I extends C{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,o,r,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,v=n.editionName,p=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(r=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getPulseObjectId)||void 0===r?void 0:r.call(o))&&void 0!==a?a:v,"@type":"UIElement",position:v,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:v,"@type":p,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var o,r,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:v,url:p,probability:g}={}}=t,m=Math.floor(Date.now()/1e3),h=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),w=this.getTeaserElementText(e,"image"),f=null!==(s=null!==(a=null===(r=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getUrlWithParams)||void 0===r?void 0:r.call(o,t,n))&&void 0!==a?a:p)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:v,link:f,placement:n.editionName,subtitle:y,time:m,title:h,type:i,imageUrl:w,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const j="svd",k="vg",S="aftonbladet",A="e24",L="front",U=e=>t(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),M={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return t(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return W})})}})}};class x{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:n,node:i,autoplay:o,mute:r,vendor:a}}){yield t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const s=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=s)||l.forEach(e=>{M[e](c)});const u={id:n,node:i,autoplay:o,mute:r,vendor:a,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},v=yield U(u);v.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(v,s)}),v.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),v.once("PulseStats:ready",()=>t(this,void 0,void 0,function*(){const e=yield v.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===L?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),o=i.split("/").filter(Boolean);return o.length?[...o.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const D="https://www.aftonbladet.se/video-player-extras/latest/";class _{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:o,vendor:r}}){const a={id:t,node:n,autoplay:i,mute:o,vendor:r,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${D}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${D}external-link.js`]:{name:"ExternalLink"}}};yield U(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const O=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class N{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:n,node:i,autoplay:o,mute:r,vendor:a}}){const s={id:n,node:i,autoplay:o,mute:r,vendor:a,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},O(e)?e:{}),{provider:Object.assign(Object.assign({},O(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${n}`]},requestSettings:{}}}},d=yield U(s);d.once("PulseStats:ready",()=>t(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===L?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class V{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const B=(e,t,n)=>{var i;const{publisher:o,pageType:s,country:d}=e,l={[k]:new a,[A]:new x,[S]:new _,[j]:new N}[o]||new V,c=new(d===g?T:I)(n,l,s),v=new r(t,null!==(i=null==n?void 0:n.pulseTracker)&&void 0!==i?i:n),p=new E(l,c),m=new P(l);return new u(v,p,m,c)},R=()=>t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class ${constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return i("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const F=(e,t,n)=>{const{wrapperSelector:i}=null==e?void 0:e.drEditionConfig.options,o=document.querySelectorAll(i),r=new IntersectionObserver((i,o)=>((e,t,n,i,o)=>{const r=B(n,i,o);e.forEach(e=>{var i,o,a;if(!e.isIntersecting)return;const s=e.target,d=null!==(i=s.dataset.editionName)&&void 0!==i?i:"",l=null!==(o=s.dataset.pulseColumnname)&&void 0!==o?o:"",c=null!==(a=s.dataset.pulsePrimaryposition)&&void 0!==a?a:"";r.fetchAndRenderAd(s,Object.assign(Object.assign({},n),{editionName:d,columnName:l,primaryPosition:c})),t.unobserve(s)})})(i,o,e,t,n),{rootMargin:"400% 0px"});o.forEach(e=>r.observe(e))},q=[],H=(e,n)=>t(void 0,void 0,void 0,function*(){var t;const{pulse:r,tcf:a,drEdition:s,pageContext:{deviceType:d,publisher:l,pageType:c,countryCode:u,isMobileApp:v}}=e;if(!(yield f(a,v,u,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:a,drEdition:s}=e,d=null===(n=null==s?void 0:s.options)||void 0===n?void 0:n.fallbackGlobalEditionName,l=a[r]||a.desktop,c=(e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e})(t.targetId),u=l.find(e=>e.targetId===c),v=o.some(e=>c.startsWith(e)),p=q.includes(c),g=(null===(i=null==u?void 0:u.drEdition)||void 0===i?void 0:i.editionName)||d;return u&&v&&!p&&g?(q.push(c),Object.assign(Object.assign({},u),{drEdition:Object.assign(Object.assign({},u.drEdition),{editionName:g})})):null})(e,n);if(!p)return;if(!(null==r?void 0:r.instance))return void i("Pulse has not been passed as a prop, aborting");const g=yield R(),m=new $(g),h=B({publisher:l,pageType:c,country:u},m,null==r?void 0:r.instance),y=document.getElementById(n.targetId);if(!y||!s)return;y.classList.value="";const w=document.createElement("div");w.className=s.options.containerSelector.replace(/^[.#:[\]]+/,""),y.innerHTML=w.outerHTML;const b={editionName:(null===(t=null==p?void 0:p.drEdition)||void 0===t?void 0:t.editionName)||"",drEditionConfig:s,device:d,tcf:a,isMobileApp:v,country:u,renderAsBackfill:!0};yield h.fetchAndRenderAd(y,b)});const z=function(e){if("undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var W=Object.freeze({__proto__:null,default:z});exports.DrEdition=({editionName:t,fallbackTargetId:n,children:i,pulseData:o,htmlAttributes:r})=>{const a=(e,t)=>{const n={};if(!e)return n;for(const[i,o]of Object.entries(e)){n[t?`${t}-${i}`:i]=String(o)}return n},s=a(o,"data-pulse"),d=a(r,"data");return e.jsxs("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":t},s,d,{children:[e.jsx("div",{className:"inscreen-target"}),e.jsx("div",{className:"container"}),e.jsx("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:i})]}))},exports.getDrEditionManager=B,exports.handleDrEdition=e=>t(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield f(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield R(),i=new $(n);F({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),exports.handleDrEditionBackfill=H,exports.handleDrEditionBackfillOnAdblock=(e,n)=>{var o,r,a,s;if(!(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})())return void i("Ad block not enabled, Dr. Edition backfills will not be rendered");i("Ad block is enabled, Dr. Edition backfills will be rendered");const d=null!==(s=null===(a=null===(r=null===(o=e.finnBlink)||void 0===o?void 0:o.replacementConfig)||void 0===r?void 0:r.adsToReplace)||void 0===a?void 0:a.map(([e])=>e))&&void 0!==s?s:[],l=new IntersectionObserver((n,i)=>t(void 0,void 0,void 0,function*(){for(const t of n){if(!t.isIntersecting)continue;const n=t.target;i.unobserve(n),yield H(e,{targetId:n.id})}}),{rootMargin:"400% 0px"});n.filter(e=>!d.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&l.observe(t)})};
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");function t(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n={get:(e,n)=>t(void 0,void 0,void 0,function*(){const t=yield fetch(e,n);if(!t.ok)throw new Error(t.statusText);return yield t.json()}),post:(e,n,i)=>t(void 0,void 0,void 0,function*(){const t=JSON.stringify(i),o=yield fetch(e,{method:"POST",headers:n,body:t});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},i=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},o=["netboard","board"];class r{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:o}=e,r=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",o),r&&s.searchParams.append("urlData",r),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return t(this,void 0,void 0,function*(){var t,o,r;const a=yield this.identityFacade.getIdentityUser(),s=null!==(r=yield null===(o=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===o?void 0:o.call(t))&&void 0!==r?r:"",d=(null==a?void 0:a.userId)?String(a.userId):"",l=this.buildUrl(e,{envId:s,spid:d});try{i("Starting fetching DrEdition ad from URL:",l);const e={method:"GET"},t=yield n.get(l,e);return i("Fetch operation completed successfully."),t}catch(e){i("Error during fetch operation:",e)}return null})}}class a{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:o,creativeId:r}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:o,utm_medium:s},r&&{utm_id:`df-${r}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),o=new URLSearchParams(decodeURIComponent(e.search)),r=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{o.has(e)||r.set(e,null!=t?t:"")}),r.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const o=this.getDrEditionUTMParams(e,t),r=new URL(i);return Object.entries(o).forEach(([e,t])=>{r.searchParams.has(e)||r.searchParams.set(e,null!=t?t:"")}),r.toString()}handleVideo(e,n){return t(this,void 0,void 0,function*(){const{id:t,autoplay:i,mute:o,videoLoop:r,vendor:a}=n.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:t,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:o,vgtvLoop:!!r,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:o}=new URL(n);if(!i.includes("www.vg.no")&&!o.includes("annonsorinnhold"))return[n];const r=o.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const s=e=>new URLSearchParams(window.location.search).get(e),d=e=>{if("0"===s("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&(()=>{const e=document.querySelector(".advertory-wallpaper-background");e&&e.remove()})())},l=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},c=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):i("Dr. Edition container does not have a parent element, cannot remove height lock.")};class u{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,n){return t(this,void 0,void 0,function*(){var t,o;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:a=!1}=n,s=e.querySelector(r);if(!s)return void i(`Container with selector "${r}" not found.`);const u=yield this.drEditionService.fetchData(n);return(null==u?void 0:u.itemId)||a?!(null==u?void 0:u.itemId)&&a?(i("No Dr. Edition ads available to render. Collapsing whole placement."),d(e.id),void c(s)):((null==u?void 0:u.itemId)&&a&&(i("Dr. Edition ad available to render as a Xandr backfill."),l(e.id)),void(u?(u.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(u.css,"style"),yield this.rendererManager.render(s,u,n),yield null===(t=this.videoManager)||void 0===t?void 0:t.handle(u,n),c(s),this.drEditionAds.push(u),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(u.itemId),this.observeAdView(e,u,n),null===(o=e.querySelector("a"))||void 0===o||o.addEventListener("pointerup",()=>null)):c(s))):(i("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(s),this.showBackfill(e),void c(s))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let o=null;const r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(o&&clearTimeout(o),o=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{r.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{r.observe(e)}),!0}}const v=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return i("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const r=e=>{o||(i("Resolving advertising permission value obtained"),o=!0,t(e))},a=setTimeout(()=>{i("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{i("On Tcf Ready called, waiting for permission"),clearTimeout(a)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(a);const t=Number(e);i("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),p="no",g="se",m="cmp:loaded";let h="undefined"!=typeof window?window._tcf_:void 0,y=!1;const w=(e,n,o)=>{const r=!!(null==e?void 0:e.enabled),a=(null==e?void 0:e.timeout)||3e3,d=s("bypass_tcf"),l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(i("TCF bypass param detected, returning consent: true"),!0):(i("TCF is not enabled, returning consent: true"),!0))(r,d))return!0;if(y)return null;if(!h)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=h.getConsentedToAllSync();return i(`TCF consented to all is: ${t}`),h.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(i("Getting TCF consent manager..."),window._tcf_)return i("TCF consent manager is already available"),h=window._tcf_,void e(h);i("TCF consent manager is not available");const n=()=>{i("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(h=window._tcf_,e(h)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(m,n),y=!0,t(new Error("Timeout waiting for CMP to load"))},a);i("Listening for CMP loaded event..."),document.addEventListener(m,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return i(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===g,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===p;if(t||n)return i("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield v(e);if(!(null==e?void 0:e.enabled))return!0;const r=l();return null!==r?r:yield new Promise((e,t)=>{try{if(!h)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{i("TCF isConsentedToAll timed out, resolving with false"),n(!1)},a);h.onTcfReady(()=>{i("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),h.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},f=(e,n,o,...r)=>t(void 0,[e,n,o,...r],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return i(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return i(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=w(e,0,n);return(yield r())?(i(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(i(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),b="mobile";class E{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,n,i){return t(this,void 0,void 0,function*(){if(!(null==n?void 0:n.itemId))return;const{getConsentAsync:t}=w(i.tcf,i.isMobileApp,i.country),o=yield t(),r=i.device===b?n.mobileHTML:n.desktopHTML;const a=o?r:r.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var t,o,r;e.search=null!==(r=null===(o=(t=this.newsroomStrategy).getUrlSearchParams)||void 0===o?void 0:o.call(t,e,n,i))&&void 0!==r?r:"",e.onclick=()=>this.pulseManager.trackContentClick(e,n,i)})})}}class P{constructor(e){this.strategy=e}handle(e,n){return t(this,void 0,void 0,function*(){const{videoConfiguration:{id:t,preview:i}={}}=e;(t||i)&&(yield this.importScript(n),yield this.createVideoElement(e,n))})}importScript(e){return t(this,void 0,void 0,function*(){const n=e.drEditionConfig.options.videoScriptUrl,o=document.querySelector(`script[src="${n}"]`);if(n&&!window.autoplayQueue&&!o)try{yield((e,...n)=>t(void 0,[e,...n],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(d)};o.addEventListener("load",r),o.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).catch(e=>{console.error(e)}))}))(n)}catch(e){i("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,n){return t(this,void 0,void 0,function*(){const t=document.createElement("div"),{node:i}=e.videoConfiguration,o=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,n))return;this.strategy.handleVideo(t,e),null==o||o.appendChild(t),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const r=null==o?void 0:o.parentNode;if(!r)return;const a=r.closest("a");r.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,o;const{preview:{url:r,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!r)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",r),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(o=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===o||o.call(i,s),!0))}}class C{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,o=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=o?o:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,n,i){return t(this,void 0,void 0,function*(){var t,o,r,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:i.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const v=this.getEventInput(e,n,i,"view");(null===(t=this.pulse)||void 0===t?void 0:t.trackLegacyViewUIElement)?null===(r=null===(o=this.pulse)||void 0===o?void 0:o.trackLegacyViewUIElement)||void 0===r||r.call(o,v):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,v):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,v)})}trackContentClick(e,n,i){return t(this,void 0,void 0,function*(){var t,o,r,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,n,i,"click");this.pulse.trackLegacyClickUIElement?null===(o=(t=this.pulse).trackLegacyClickUIElement)||void 0===o||o.call(t,l):this.pulse.trackClickUIElement?null===(a=(r=this.pulse).trackClickUIElement)||void 0===a||a.call(r,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class T extends C{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,o,r;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:v,urlPath:p}=null!==(r=null===(o=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===o?void 0:o.call(i,l))&&void 0!==r?r:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,v,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:v,urlPath:p},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class I extends C{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,o,r,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,v=n.editionName,p=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(r=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getPulseObjectId)||void 0===r?void 0:r.call(o))&&void 0!==a?a:v,"@type":"UIElement",position:v,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:v,"@type":p,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var o,r,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:v,url:p,probability:g}={}}=t,m=Math.floor(Date.now()/1e3),h=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),w=this.getTeaserElementText(e,"image"),f=null!==(s=null!==(a=null===(r=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getUrlWithParams)||void 0===r?void 0:r.call(o,t,n))&&void 0!==a?a:p)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:v,link:f,placement:n.editionName,subtitle:y,time:m,title:h,type:i,imageUrl:w,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const j="svd",k="vg",S="aftonbladet",A="e24",L="front",U=e=>t(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),M={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return t(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return W})})}})}};class x{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:n,node:i,autoplay:o,mute:r,vendor:a}}){yield t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const s=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=s)||l.forEach(e=>{M[e](c)});const u={id:n,node:i,autoplay:o,mute:r,vendor:a,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},v=yield U(u);v.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(v,s)}),v.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),v.once("PulseStats:ready",()=>t(this,void 0,void 0,function*(){const e=yield v.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===L?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),o=i.split("/").filter(Boolean);return o.length?[...o.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const D="https://www.aftonbladet.se/video-player-extras/latest/";class _{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:o,vendor:r}}){const a={id:t,node:n,autoplay:i,mute:o,vendor:r,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${D}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${D}external-link.js`]:{name:"ExternalLink"}}};yield U(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const O=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class N{handleVideo(e,n){return t(this,arguments,void 0,function*(e,{videoConfiguration:{id:n,node:i,autoplay:o,mute:r,vendor:a}}){const s={id:n,node:i,autoplay:o,mute:r,vendor:a,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},O(e)?e:{}),{provider:Object.assign(Object.assign({},O(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${n}`]},requestSettings:{}}}},d=yield U(s);d.once("PulseStats:ready",()=>t(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===L?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class V{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const B=(e,t,n)=>{var i;const{publisher:o,pageType:s,country:d}=e,l={[k]:new a,[A]:new x,[S]:new _,[j]:new N}[o]||new V,c=new(d===g?T:I)(n,l,s),v=new r(t,null!==(i=null==n?void 0:n.pulseTracker)&&void 0!==i?i:n),p=new E(l,c),m=new P(l);return new u(v,p,m,c)},R=()=>t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class ${constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return i("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const F=(e,t,n)=>{const{wrapperSelector:i}=null==e?void 0:e.drEditionConfig.options,o=document.querySelectorAll(i),r=new IntersectionObserver((i,o)=>((e,t,n,i,o)=>{const r=B(n,i,o);e.forEach(e=>{var i,o,a;if(!e.isIntersecting)return;const s=e.target,d=null!==(i=s.dataset.editionName)&&void 0!==i?i:"",l=null!==(o=s.dataset.pulseColumnname)&&void 0!==o?o:"",c=null!==(a=s.dataset.pulsePrimaryposition)&&void 0!==a?a:"";r.fetchAndRenderAd(s,Object.assign(Object.assign({},n),{editionName:d,columnName:l,primaryPosition:c})),t.unobserve(s)})})(i,o,e,t,n),{rootMargin:"400% 0px"});o.forEach(e=>r.observe(e))},q=[],H=(e,n)=>t(void 0,void 0,void 0,function*(){var t;const{pulse:r,tcf:a,drEdition:s,pageContext:{deviceType:d,publisher:l,pageType:c,countryCode:u,isMobileApp:v}}=e;if(!(yield f(a,v,u,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:a,drEdition:s}=e,d=null===(n=null==s?void 0:s.options)||void 0===n?void 0:n.fallbackGlobalEditionName,l=a[r]||a.desktop,c=(e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e})(t.targetId),u=l.find(e=>e.targetId===c),v=o.some(e=>c.startsWith(e)),p=q.includes(c),g=(null===(i=null==u?void 0:u.drEdition)||void 0===i?void 0:i.editionName)||d;return u&&v&&!p&&g?(q.push(c),Object.assign(Object.assign({},u),{drEdition:Object.assign(Object.assign({},u.drEdition),{editionName:g})})):null})(e,n);if(!p)return;if(!(null==r?void 0:r.instance))return void i("Pulse has not been passed as a prop, aborting");const g=yield R(),m=new $(g),h=B({publisher:l,pageType:c,country:u},m,null==r?void 0:r.instance),y=document.getElementById(n.targetId);if(!y||!s)return;y.classList.value="";const w=document.createElement("div");w.className=s.options.containerSelector.replace(/^[.#:[\]]+/,""),y.innerHTML=w.outerHTML;const b={editionName:(null===(t=null==p?void 0:p.drEdition)||void 0===t?void 0:t.editionName)||"",drEditionConfig:s,device:d,tcf:a,isMobileApp:v,country:u,renderAsBackfill:!0};yield h.fetchAndRenderAd(y,b)});const z=function(e){if("undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var W=Object.freeze({__proto__:null,default:z});exports.DrEdition=({editionName:t,fallbackTargetId:n,children:i,pulseData:o,htmlAttributes:r})=>{const a=(e,t)=>{const n={};if(!e)return n;for(const[i,o]of Object.entries(e)){n[t?`${t}-${i}`:i]=String(o)}return n},s=a(o,"data-pulse"),d=a(r,"data");return e.jsxs("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":t},s,d,{children:[e.jsx("div",{className:"inscreen-target"}),e.jsx("div",{className:"container"}),e.jsx("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:i})]}))},exports.getDrEditionManager=B,exports.handleDrEdition=e=>t(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield f(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield R(),i=new $(n);F({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),exports.handleDrEditionBackfill=H,exports.handleDrEditionBackfillOnAdblock=(e,n)=>{var o,r,a;if(!(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})())return void i("Ad block not enabled, Dr. Edition backfills will not be rendered");i("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:s},finnBlink:d}=e,l=null===(r=null===(o=null==d?void 0:d.replacementConfig)||void 0===o?void 0:o.adsToReplace)||void 0===r?void 0:r[s],c=null!==(a=null==l?void 0:l.map(([e])=>e))&&void 0!==a?a:[],u=new IntersectionObserver((n,i)=>t(void 0,void 0,void 0,function*(){for(const t of n){if(!t.isIntersecting)continue;const n=t.target;i.unobserve(n),yield H(e,{targetId:n.id})}}),{rootMargin:"400% 0px"});n.filter(e=>!c.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&u.observe(t)})};
|
package/dr-edition/es/index.d.ts
CHANGED
|
@@ -248,6 +248,7 @@ interface SiteConfig {
|
|
|
248
248
|
editableConfiguration?: EditableConfigurationConfig;
|
|
249
249
|
adScaleConfig?: AdScaleConfig;
|
|
250
250
|
widescreenSwitching?: WidescreenSwitchingConfig;
|
|
251
|
+
fullWidth?: FullWidthConfig;
|
|
251
252
|
}
|
|
252
253
|
interface PageContext {
|
|
253
254
|
publisher: string;
|
|
@@ -396,17 +397,19 @@ interface FinnBlinkSDKPayload {
|
|
|
396
397
|
theme?: Theme;
|
|
397
398
|
uuid?: string;
|
|
398
399
|
}
|
|
400
|
+
interface FinnBlinkSizes {
|
|
401
|
+
width: number;
|
|
402
|
+
height: number;
|
|
403
|
+
}
|
|
404
|
+
interface FinnBlinkReplacementConfig {
|
|
405
|
+
adsToReplace?: Partial<Record<DeviceType, Array<Array<string>>>>;
|
|
406
|
+
sizes?: Partial<Record<DeviceType, FinnBlinkSizes>>;
|
|
407
|
+
}
|
|
399
408
|
interface FinnBlinkConfig {
|
|
400
409
|
enabled?: boolean;
|
|
401
410
|
identifierUrl?: string;
|
|
402
411
|
sdkPayload?: FinnBlinkSDKPayload;
|
|
403
|
-
replacementConfig?:
|
|
404
|
-
adsToReplace?: Array<Array<string>>;
|
|
405
|
-
sizes?: {
|
|
406
|
-
width: number;
|
|
407
|
-
height: number;
|
|
408
|
-
};
|
|
409
|
-
};
|
|
412
|
+
replacementConfig?: FinnBlinkReplacementConfig;
|
|
410
413
|
}
|
|
411
414
|
interface FinnBlinkPlacementSDKPayload {
|
|
412
415
|
position?: string;
|
|
@@ -437,7 +440,7 @@ interface OverlayStyles {
|
|
|
437
440
|
backgroundColor?: string;
|
|
438
441
|
foregroundColor?: string;
|
|
439
442
|
articlesContainerWidth?: number;
|
|
440
|
-
margin?: string
|
|
443
|
+
margin?: Partial<Record<DeviceType, string>>;
|
|
441
444
|
beforeContentValue?: string;
|
|
442
445
|
}
|
|
443
446
|
interface FullscreenScrollOptions {
|
|
@@ -552,6 +555,21 @@ interface WidescreenSwitchingConfig {
|
|
|
552
555
|
enabled: boolean;
|
|
553
556
|
options?: WidescreenSwitchingOptions;
|
|
554
557
|
}
|
|
558
|
+
interface FullWidthBreakoutStyles {
|
|
559
|
+
left?: string;
|
|
560
|
+
marginLeft?: string;
|
|
561
|
+
}
|
|
562
|
+
interface FullWidthStyles {
|
|
563
|
+
adContainer?: FullWidthBreakoutStyles;
|
|
564
|
+
adContainerWrapper?: FullWidthBreakoutStyles;
|
|
565
|
+
}
|
|
566
|
+
interface FullWidthOptions {
|
|
567
|
+
styles?: Partial<Record<DeviceType, FullWidthStyles>>;
|
|
568
|
+
}
|
|
569
|
+
interface FullWidthConfig {
|
|
570
|
+
enabled: boolean;
|
|
571
|
+
options?: FullWidthOptions;
|
|
572
|
+
}
|
|
555
573
|
interface DevicePlacementBatches {
|
|
556
574
|
[key: string]: Array<string>;
|
|
557
575
|
}
|