@schibsted/advertory 3.4.13 → 3.4.14-inv-2675.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 +6 -27
- package/ad-native/es/index.d.ts +6 -27
- package/aftenposten/cjs/index.d.ts +6 -27
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-DuZ2R6ZV.js +1 -0
- package/aftenposten/es/{events-DKEPGfkM.js → events-klv_sqJ8.js} +1 -1
- package/aftenposten/es/{index-DWEtV0NR.js → index-3VbfeT1t.js} +1 -1
- package/aftenposten/es/{index-BNB3C6E-.js → index-C1d8G-jR.js} +1 -1
- package/aftenposten/es/{index-CCE-C1HN.js → index-D-b1az0h.js} +1 -1
- package/aftenposten/es/{index-BhbxE_25.js → index-DK8g_wXr.js} +1 -1
- package/aftenposten/es/{index-C9D1A7fz.js → index-D_3BGLoO.js} +1 -1
- package/aftenposten/es/{index-JUbNdRuz.js → index-DpAWPFjj.js} +1 -1
- package/aftenposten/es/{index-CHRLj_VV.js → index-DxbMTSa6.js} +1 -1
- package/aftenposten/es/{index-B9jM8uJp.js → index-S_lHH7sP.js} +1 -1
- package/aftenposten/es/index.d.ts +6 -27
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-Cdv34tFr.js → styles-Br-BnZ09.js} +1 -1
- package/aftenposten/es/{styles-DPLTaMqa.js → styles-C-cqp70Q.js} +1 -1
- package/aftenposten/es/{styles-DRo2gfi-.js → styles-C6-krtlR.js} +1 -1
- package/aftenposten/es/{styles-2jZnGzOL.js → styles-C9xjLFRm.js} +1 -1
- package/aftenposten/es/{styles-CkK0N-wj.js → styles-CUKzkjG7.js} +1 -1
- package/aftenposten/es/{styles-BSf3bvgL.js → styles-D6qs1vF4.js} +1 -1
- package/aftenposten/es/{styles-DhO41e2R.js → styles-DzB4gu9n.js} +1 -1
- package/aftenposten/es/{styles-CVdL3mGq.js → styles-RWxAxb9h.js} +1 -1
- package/aftenposten/es/{styles-Drrmd6ic.js → styles-UxvyGS2D.js} +1 -1
- package/aftenposten/es/{styles-CbWNyowJ.js → styles-XlMPH-76.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-C6d-yyE-.js +1 -0
- package/aftenpostenv2/es/{events-cGs04mSN.js → events-DZXDCDoz.js} +1 -1
- package/aftenpostenv2/es/{index-aNIUHXze.js → index-BkX4kxMU.js} +1 -1
- package/aftenpostenv2/es/{index-DWvJchU6.js → index-C3ZOJmMT.js} +1 -1
- package/aftenpostenv2/es/{index-BDTGsSwd.js → index-CMYm3oM9.js} +1 -1
- package/aftenpostenv2/es/{index-CLljdOgE.js → index-CNWPYqjq.js} +1 -1
- package/aftenpostenv2/es/{index-D7ptGGO-.js → index-CNbl2bvN.js} +1 -1
- package/aftenpostenv2/es/{index-BhSR3kGL.js → index-CYREmyXw.js} +1 -1
- package/aftenpostenv2/es/{index-kaOiEg3O.js → index-Cm_d0knF.js} +1 -1
- package/aftenpostenv2/es/{index-Dxxj-XUF.js → index-tRHGunv4.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +6 -27
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-Jd_XZ1sX.js → styles-BLOOOS8-.js} +1 -1
- package/aftenpostenv2/es/{styles-Cf3flzw_.js → styles-Bgk1Pq4s.js} +1 -1
- package/aftenpostenv2/es/{styles-D4CN1Pbp.js → styles-BpDsvS5q.js} +1 -1
- package/aftenpostenv2/es/{styles-BQRJOeWA.js → styles-CIRgrjDD.js} +1 -1
- package/aftenpostenv2/es/{styles-CWIHh5ES.js → styles-DH6bbrL1.js} +1 -1
- package/aftenpostenv2/es/{styles-Dqbg_h90.js → styles-Dgrxzv-R.js} +1 -1
- package/aftenpostenv2/es/{styles-DcbX8XpP.js → styles-DgsrLl9M.js} +1 -1
- package/aftenpostenv2/es/{styles-Bb8KCS67.js → styles-DyzfMPwo.js} +1 -1
- package/aftenpostenv2/es/{styles-CjWMsJWa.js → styles-DzIO4y8G.js} +1 -1
- package/aftenpostenv2/es/{styles-BUi1KOiu.js → styles-ZbJL0y6g.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +6 -27
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-B4kfeeay.js +1 -0
- package/aftonbladet/es/{events-CqHPJ25E.js → events-D8dercD3.js} +1 -1
- package/aftonbladet/es/{index-DbLqYJQ1.js → index-8gjdjqr0.js} +1 -1
- package/aftonbladet/es/{index-DRC_jUIR.js → index-BNZxUvQ5.js} +1 -1
- package/aftonbladet/es/{index-BfYyv1Y3.js → index-BUuVhUHr.js} +1 -1
- package/aftonbladet/es/{index-DPBovzTm.js → index-BY6H8RWH.js} +1 -1
- package/aftonbladet/es/{index-DMXydSy1.js → index-C7URi_rg.js} +1 -1
- package/aftonbladet/es/{index-C-aG3CSr.js → index-CFqbgbis.js} +1 -1
- package/aftonbladet/es/{index-DD-wmA3b.js → index-ffRDgOt8.js} +1 -1
- package/aftonbladet/es/{index-wu_uZJ3I.js → index-h6Hxbb6e.js} +1 -1
- package/aftonbladet/es/index.d.ts +6 -27
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-CrqmyCRC.js → styles-8ujEJD1J.js} +1 -1
- package/aftonbladet/es/{styles-B2yIShmI.js → styles-CwO7gDWt.js} +1 -1
- package/aftonbladet/es/{styles-CRybZj4C.js → styles-Cy1oJ6nH.js} +1 -1
- package/aftonbladet/es/{styles-7WtKxzhO.js → styles-DMV1q7sG.js} +1 -1
- package/aftonbladet/es/{styles-BvQVtKqM.js → styles-DadFushW.js} +1 -1
- package/aftonbladet/es/{styles-B7F00SJC.js → styles-LGqDNwDt.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CXni7Y8e.js +1 -0
- package/aftonbladetv2/es/{events-F2MAm7hP.js → events-jzBe4O9k.js} +1 -1
- package/aftonbladetv2/es/{index-DK6d1n72.js → index-C0agCt_D.js} +1 -1
- package/aftonbladetv2/es/{index-3t-TtZA7.js → index-C74KeUrl.js} +1 -1
- package/aftonbladetv2/es/{index-DSy4XN0k.js → index-CHgGiMoZ.js} +1 -1
- package/aftonbladetv2/es/{index-Bmq3vLe7.js → index-CoquvRVh.js} +1 -1
- package/aftonbladetv2/es/{index-vrLkrA5Q.js → index-DgSLCMKG.js} +1 -1
- package/aftonbladetv2/es/{index-CH80zQJg.js → index-ErlU_AWB.js} +1 -1
- package/aftonbladetv2/es/{index-mZot56VG.js → index-bx4msqNn.js} +1 -1
- package/aftonbladetv2/es/{index-BxhMMu8S.js → index-w51AgsDE.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +6 -27
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-Bf-nc3ar.js → styles-BU4A5XwI.js} +1 -1
- package/aftonbladetv2/es/{styles-BDXIY7L6.js → styles-BposrOK8.js} +1 -1
- package/aftonbladetv2/es/{styles-tb8NbiL9.js → styles-Bzlov_9z.js} +1 -1
- package/aftonbladetv2/es/{styles-BnM-vUtg.js → styles-CelZRDgV.js} +1 -1
- package/aftonbladetv2/es/{styles-B_SLUOOm.js → styles-D2SWD-NT.js} +1 -1
- package/aftonbladetv2/es/{styles-D9MbCPbR.js → styles-DH3VdIXo.js} +1 -1
- package/bt/cjs/index.d.ts +6 -27
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-IZ3zzqhM.js +1 -0
- package/bt/es/{events-BiZTUccz.js → events-CQXl03Tu.js} +1 -1
- package/bt/es/{index-CCWVerJg.js → index-6THw9zmd.js} +1 -1
- package/bt/es/{index-47maYTIw.js → index-BYFp_8uw.js} +1 -1
- package/bt/es/{index-C0SDG27K.js → index-BkpeyVDy.js} +1 -1
- package/bt/es/{index-WW1ggdD2.js → index-BmTSnWbR.js} +1 -1
- package/bt/es/{index-Ctn9l5sF.js → index-CV4ADMBE.js} +1 -1
- package/bt/es/{index-D4CTTpHq.js → index-CYZFbpHN.js} +1 -1
- package/{sa/es/index-CVo2bvHa.js → bt/es/index-CjNxaT7G.js} +1 -1
- package/bt/es/{index-PBYkoefE.js → index-puFdNhWA.js} +1 -1
- package/bt/es/index.d.ts +6 -27
- package/bt/es/index.js +1 -1
- package/{sa/es/styles-Cn4mlkwu.js → bt/es/styles-6eYlwVom.js} +1 -1
- package/bt/es/{styles-K196H2g8.js → styles-B47NSseg.js} +1 -1
- package/bt/es/{styles-Cj7qoYzk.js → styles-B9Yg1bMU.js} +1 -1
- package/bt/es/{styles-D-Vefwdc.js → styles-CIjPiz-7.js} +1 -1
- package/{sa/es/styles-B0fUHg6e.js → bt/es/styles-D0foZe1-.js} +1 -1
- package/bt/es/{styles-D3b_zDLG.js → styles-DEMp8e3E.js} +1 -1
- package/bt/es/{styles-DzpOal2h.js → styles-DPhx-0hG.js} +1 -1
- package/bt/es/{styles-BvtgJJvA.js → styles-qQ5ygvkL.js} +1 -1
- package/bt/es/{styles-vp9TKNef.js → styles-qS0KYnpc.js} +1 -1
- package/btv2/es/_auto-entry_btv2-BBF3K8TB.js +1 -0
- package/btv2/es/{events-BzjCXDmD.js → events-CJRisxxP.js} +1 -1
- package/btv2/es/{index-ypDJbRmv.js → index-BWTCDo9D.js} +1 -1
- package/btv2/es/{index-CH4xAaPD.js → index-CDcezIvH.js} +1 -1
- package/btv2/es/{index-D2xGJKyH.js → index-CmzziY7Z.js} +1 -1
- package/btv2/es/{index-DSSpySZH.js → index-CxEyXAMi.js} +1 -1
- package/btv2/es/{index-DXx3mLih.js → index-Cy2JRpgZ.js} +1 -1
- package/btv2/es/{index-i76Dw8aX.js → index-D0hGEFoi.js} +1 -1
- package/btv2/es/{index-CrEzAmOq.js → index-DP1WtGJa.js} +1 -1
- package/{sav2/es/index-DK1oTN1u.js → btv2/es/index-DiQcLyEw.js} +1 -1
- package/btv2/es/index.d.ts +6 -27
- package/btv2/es/index.js +1 -1
- package/{vgv2/es/styles-BBZMSzoF.js → btv2/es/styles-B-UZvrtN.js} +1 -1
- package/{vgv2/es/styles-BPT-qUNq.js → btv2/es/styles-Be5pGrEi.js} +1 -1
- package/{sav2/es/styles-Cbs2drMD.js → btv2/es/styles-CFwhAOay.js} +1 -1
- package/{sav2/es/styles-B6yetf03.js → btv2/es/styles-CNJOP5eq.js} +1 -1
- package/btv2/es/{styles-Cex1nobv.js → styles-DFs0Zm4b.js} +1 -1
- package/{sav2/es/styles-DJw6pIzH.js → btv2/es/styles-KlE0k6wn.js} +1 -1
- package/btv2/es/{styles-DQuTQjle.js → styles-S40OMycj.js} +1 -1
- package/{sav2/es/styles-BlHvtXYb.js → btv2/es/styles-z3Dga7zL.js} +1 -1
- package/dr-edition/cjs/index.d.ts +6 -13
- package/dr-edition/cjs/index.js +1 -1
- package/dr-edition/es/index.d.ts +6 -13
- package/dr-edition/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-DwH7UbDx.js +1 -0
- package/e24/es/{events-Bn2T7T9a.js → events-BSGbPBA9.js} +1 -1
- package/{tv4/es/index-BRrn8QKt.js → e24/es/index-8gb5T-xE.js} +1 -1
- package/e24/es/{index-dWe5Rx5B.js → index-CQ83Vrt0.js} +1 -1
- package/e24/es/{index-BQv3Sxf9.js → index-CxFkN_C2.js} +1 -1
- package/e24/es/{index-ByW4jH_X.js → index-D2jApR7I.js} +1 -1
- package/e24/es/{index-BZcVv812.js → index-SfqJgrrv.js} +1 -1
- package/e24/es/{index-CduaDIrS.js → index-l3e6JVMS.js} +1 -1
- package/e24/es/{index-CF9p3gqF.js → index-xyPq5joO.js} +1 -1
- package/e24/es/{index-W3BxJEHG.js → index-zyemhpF4.js} +1 -1
- package/e24/es/index.d.ts +6 -27
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-BpT05fHe.js → styles-5PZdUVM_.js} +1 -1
- package/e24/es/{styles-0iI9RREc.js → styles-B67i0Ycz.js} +1 -1
- package/e24/es/{styles-Ce1bu28P.js → styles-BF6t3KZE.js} +1 -1
- package/{tv4/es/styles-CWeSNH-n.js → e24/es/styles-BfhohSX5.js} +1 -1
- package/e24/es/{styles-BiDCLCW7.js → styles-Bj6UupBW.js} +1 -1
- package/e24/es/{styles-pdDQ694q.js → styles-BtAD8Siq.js} +1 -1
- package/e24/es/{styles-f5hwcx2V.js → styles-CEXNyOcu.js} +1 -1
- package/e24/es/{styles-CrOq1uSB.js → styles-DFV-fOTl.js} +1 -1
- package/e24/es/{styles-CdBHjteb.js → styles-DRJqo5gY.js} +1 -1
- package/e24/es/{styles-Cf4ypcKM.js → styles-Dk-rXaO1.js} +1 -1
- package/e24/es/{styles-BZ62iRdG.js → styles-DuA4Bavg.js} +1 -1
- package/fotbollskanalen/cjs/index.d.ts +6 -27
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DRZg_gJT.js +1 -0
- package/fotbollskanalen/es/{events-szJnDbry.js → events-MxOWff6Y.js} +1 -1
- package/fotbollskanalen/es/{index-qdqyfUtE.js → index-8oy-q4p7.js} +1 -1
- package/fotbollskanalen/es/{index-BQHqJCPe.js → index-BzepXHsE.js} +1 -1
- package/fotbollskanalen/es/{index-ZvfM5Yz1.js → index-C9W7XTIl.js} +1 -1
- package/fotbollskanalen/es/{index-CrDNIO4l.js → index-CBL9IjvS.js} +1 -1
- package/fotbollskanalen/es/{index-CNnVOwXm.js → index-CW6x9lZU.js} +1 -1
- package/fotbollskanalen/es/{index-DvCXcWg2.js → index-Ci7R1RTK.js} +1 -1
- package/fotbollskanalen/es/{index-CjLD1zkx.js → index-D0Nbz3hL.js} +1 -1
- package/fotbollskanalen/es/{index-D7CjRRto.js → index-DZGQUWj9.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +6 -27
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-RQCqAO4d.js → styles-BetCQoPj.js} +1 -1
- package/godt/cjs/index.d.ts +6 -27
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +5 -27
- package/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.d.ts +5 -27
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.d.ts +6 -27
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +6 -27
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-CVjegpiF.js +1 -0
- package/koket/es/{events-BdWyZJzS.js → events-BgUwFadx.js} +1 -1
- package/koket/es/{index-0VMjhDYm.js → index-AynmqJO3.js} +1 -1
- package/koket/es/{index-D3ygEfot.js → index-BCLR-S2_.js} +1 -1
- package/koket/es/{index-BpEUYR1h.js → index-Cgw9fn7R.js} +1 -1
- package/{svdv2/es/index-BFuceDfK.js → koket/es/index-DUC-9pBx.js} +1 -1
- package/koket/es/{index-DkSEuan0.js → index-Db-q1hdx.js} +1 -1
- package/{svdv2/es/index-C4pN98HM.js → koket/es/index-DzQ9bquE.js} +1 -1
- package/koket/es/{index-CQRM1_9Z.js → index-DzTedObl.js} +1 -1
- package/koket/es/{index-DKcphVAX.js → index-o3ka4jBF.js} +1 -1
- package/koket/es/index.d.ts +6 -27
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-CsRH7OwY.js → koket/es/styles-CuEH92T3.js} +1 -1
- package/minmote/cjs/index.d.ts +6 -27
- package/minmote/cjs/index.js +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +6 -27
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +6 -27
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-sHn4kql2.js +1 -0
- package/sa/es/{events-CpHcIBzh.js → events-BNtwHfQ4.js} +1 -1
- package/sa/es/{index-tLG8ciGB.js → index-BnuB7KJd.js} +1 -1
- package/sa/es/{index-Dd1Y97lw.js → index-DEn1qASH.js} +1 -1
- package/{bt/es/index-BgBCbmKK.js → sa/es/index-DIW6auI0.js} +1 -1
- package/sa/es/{index-Dff3FrSE.js → index-DdrsEfVG.js} +1 -1
- package/sa/es/{index-Bl-YU1dP.js → index-DgZBz3Uf.js} +1 -1
- package/sa/es/{index-Dm912f7j.js → index-DwCows_K.js} +1 -1
- package/sa/es/{index-BGQPYUjf.js → index-L5EHyBZi.js} +1 -1
- package/sa/es/{index-CwCnQRNv.js → index-N-T6qVK2.js} +1 -1
- package/sa/es/index.d.ts +6 -27
- package/sa/es/index.js +1 -1
- package/{vg/es/styles-BS_Oh73M.js → sa/es/styles-BuT032cq.js} +1 -1
- package/{vg/es/styles-C7LhgQkX.js → sa/es/styles-CIH-AgDI.js} +1 -1
- package/sa/es/{styles-DwXHz4p-.js → styles-CKEBnEH2.js} +1 -1
- package/sa/es/{styles-CViyCPXH.js → styles-CLa0JPYq.js} +1 -1
- package/{bt/es/styles-Dxz3L0fX.js → sa/es/styles-D9GxBQtt.js} +1 -1
- package/sa/es/{styles-6eCduJjk.js → styles-DGyO_to4.js} +1 -1
- package/sa/es/{styles-CFJdZolS.js → styles-DIib0UT-.js} +1 -1
- package/sa/es/{styles-BzaRI9FD.js → styles-MYor7S5O.js} +1 -1
- package/sa/es/{styles-BgvUhWZT.js → styles-RAwCt6EC.js} +1 -1
- package/sav2/es/_auto-entry_sav2-Dw50QvDu.js +1 -0
- package/sav2/es/{events-Dog8n166.js → events-DSh6UZin.js} +1 -1
- package/sav2/es/{index-CqRijYqt.js → index-0KUvCpv6.js} +1 -1
- package/sav2/es/{index-CFrKD4N4.js → index-CJHnCXvi.js} +1 -1
- package/sav2/es/{index-C2vTQtRr.js → index-CPjOKbAu.js} +1 -1
- package/sav2/es/{index-IfeBZfAv.js → index-Cd-yKGWJ.js} +1 -1
- package/{btv2/es/index-DCAju2n6.js → sav2/es/index-DZ17umNE.js} +1 -1
- package/sav2/es/{index-BVyGMuqV.js → index-M7zN8nkh.js} +1 -1
- package/sav2/es/{index-8h2QQSc2.js → index-q2K24hAf.js} +1 -1
- package/sav2/es/{index-DlVGuIRO.js → index-vyDaw9G6.js} +1 -1
- package/sav2/es/index.d.ts +6 -27
- package/sav2/es/index.js +1 -1
- package/{vgv2/es/styles-ByxjhGhY.js → sav2/es/styles-Bfohitvh.js} +1 -1
- package/{btv2/es/styles-D_OVqIdW.js → sav2/es/styles-Bh-2pbfL.js} +1 -1
- package/{btv2/es/styles--cN6_CNi.js → sav2/es/styles-CukSY_7e.js} +1 -1
- package/sav2/es/{styles-3YwI1h2-.js → styles-DGd9V3yE.js} +1 -1
- package/sav2/es/{styles-B3oMClUn.js → styles-DkIwYGAh.js} +1 -1
- package/sav2/es/{styles-B3vIzWMl.js → styles-DwNgYGDs.js} +1 -1
- package/{btv2/es/styles-wXMjHens.js → sav2/es/styles-jwgJY5_i.js} +1 -1
- package/sav2/es/{styles-RC2bhv68.js → styles-l1YADz9J.js} +1 -1
- package/svd/cjs/index.d.ts +6 -27
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-CUsvbG8c.js +1 -0
- package/svd/es/{events-CzwVC4qY.js → events-HDdXSGro.js} +1 -1
- package/svd/es/{index-Dv1udWqy.js → index-C0E22D2m.js} +1 -1
- package/svd/es/{index-D07O6Cdm.js → index-CXxR25A6.js} +1 -1
- package/{e24/es/index-C5JK4Qx4.js → svd/es/index-CYHCQ1O2.js} +1 -1
- package/svd/es/{index-ClvSP2ZW.js → index-CfGP5SUU.js} +1 -1
- package/svd/es/{index-5ln_jpoV.js → index-DLcRy5Qk.js} +1 -1
- package/svd/es/{index-COmMOm0t.js → index-RU9D6lHG.js} +1 -1
- package/svd/es/{index-AxMmynyO.js → index-n8gd9ijz.js} +1 -1
- package/svd/es/{index-Z_kOo7dB.js → index-r8JZbQo7.js} +1 -1
- package/svd/es/index.d.ts +6 -27
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-DPnCh2t5.js → styles-5bQ-VJBX.js} +1 -1
- package/svd/es/{styles-Dn6Zt-RJ.js → styles-CG752RlT.js} +1 -1
- package/svd/es/{styles-BWFlVQnU.js → styles-DtFDqLZZ.js} +1 -1
- package/svd/es/{styles-T716n3-R.js → styles-Dz_SMwfc.js} +1 -1
- package/svd/es/{styles-DxYChK1b.js → styles-Gv3Xl2Fq.js} +1 -1
- package/svd/es/{styles--z8Dgl02.js → styles-uDPbmFbo.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-CmXKM5R8.js +1 -0
- package/svdv2/es/{events-DcyH6O_V.js → events-CWnKzDsn.js} +1 -1
- package/svdv2/es/{index-Ba6e0PrX.js → index-BC-RAIHg.js} +1 -1
- package/{koket/es/index-BMfC4ihY.js → svdv2/es/index-BlAEV6_h.js} +1 -1
- package/svdv2/es/{index-hQ40Xo1i.js → index-C-X9vVJ_.js} +1 -1
- package/svdv2/es/{index-BxwG5_mt.js → index-ClkA7ew-.js} +1 -1
- package/svdv2/es/{index-S3a66jhs.js → index-CtJ_mZmt.js} +1 -1
- package/svdv2/es/{index-D3YfK_Rr.js → index-DUlJCHET.js} +1 -1
- package/{koket/es/index-B4RxuN92.js → svdv2/es/index-ZwgfN5Ys.js} +1 -1
- package/svdv2/es/{index-DfLPDKWG.js → index-sczy6qFW.js} +1 -1
- package/svdv2/es/index.d.ts +6 -27
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-ygGFK_Nz.js → styles-7vNc-2un.js} +1 -1
- package/svdv2/es/{styles-B2ke3usj.js → styles-BpAiQyh0.js} +1 -1
- package/svdv2/es/{styles-DoZ4OR3i.js → styles-CQcDCdQy.js} +1 -1
- package/svdv2/es/{styles-CrLSHnyW.js → styles-Citcmx1-.js} +1 -1
- package/{koket/es/styles-CDfsgc7e.js → svdv2/es/styles-D3H6NPnK.js} +1 -1
- package/svdv2/es/{styles-Cpk3jqGg.js → styles-_zpVWaMm.js} +1 -1
- package/tek/cjs/index.d.ts +6 -27
- package/tek/cjs/index.js +1 -1
- package/tracker/cjs/index.d.ts +6 -27
- package/tracker/cjs/index.js +1 -1
- package/tracker/es/index.d.ts +6 -27
- package/tracker/es/index.js +1 -1
- package/tv4/cjs/index.d.ts +6 -27
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-C2tSzRur.js +1 -0
- package/tv4/es/{events-wcexbD6c.js → events-2YzZnQLw.js} +1 -1
- package/tv4/es/{index-DOPye16D.js → index-BGZvfF9Y.js} +1 -1
- package/tv4/es/{index-CJLyjRUy.js → index-BdnPPynq.js} +1 -1
- package/tv4/es/{index-CojPSAod.js → index-COqpRbCY.js} +1 -1
- package/tv4/es/{index-C27mV0sI.js → index-D5eyMcDN.js} +1 -1
- package/tv4/es/{index-CJrmaByc.js → index-DbOni98-.js} +1 -1
- package/tv4/es/{index-DwwSIWUX.js → index-Z0jDa2hs.js} +1 -1
- package/tv4/es/{index-zUieoZtt.js → index-cq-91Ybj.js} +1 -1
- package/{svd/es/index-CtQAlx1i.js → tv4/es/index-gPCQX9mt.js} +1 -1
- package/tv4/es/index.d.ts +6 -27
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-DbPaaQhx.js → tv4/es/styles-CjSvGIaa.js} +1 -1
- package/tvnu/cjs/index.d.ts +6 -27
- package/tvnu/cjs/index.js +1 -1
- package/types/index.d.ts +6 -27
- package/vg/cjs/index.d.ts +6 -27
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-5OLK1PaL.js +1 -0
- package/vg/es/{events-Ca8PEFxH.js → events-DT2plgiZ.js} +1 -1
- package/vg/es/{index-lAaEINKY.js → index-BAvo-YI1.js} +1 -1
- package/vg/es/{index-CY5_yPNz.js → index-Bjz9t3_b.js} +1 -1
- package/vg/es/{index-iwIx2csi.js → index-BtunkKzR.js} +1 -1
- package/vg/es/{index-2ViM6Z_E.js → index-CJ3-QGcp.js} +1 -1
- package/vg/es/{index-Dw4tkJm9.js → index-CKKIrm06.js} +1 -1
- package/vg/es/{index-BhoMjnwi.js → index-CYXjOfxz.js} +1 -1
- package/vg/es/{index-2HBwWrDZ.js → index-ClwbnLdv.js} +1 -1
- package/vg/es/{index-gh-qdWl3.js → index-qXahbyn0.js} +1 -1
- package/vg/es/index.d.ts +6 -27
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-KWo4tdyB.js → styles-3_fhCooD.js} +1 -1
- package/vg/es/{styles-DyU85Yem.js → styles-BBETR16i.js} +1 -1
- package/vg/es/{styles-CxEdAEsm.js → styles-BdkLriyK.js} +1 -1
- package/vg/es/{styles-CcSukju-.js → styles-C_GkKCGG.js} +1 -1
- package/{sa/es/styles-Bzr7re6i.js → vg/es/styles-CfWx8XLc.js} +1 -1
- package/vg/es/{styles-CfChsdxf.js → styles-ChRVQ7gD.js} +1 -1
- package/vg/es/{styles-BoAqtXI-.js → styles-Chqxs34X.js} +1 -1
- package/vg/es/{styles-h_Sz1ik5.js → styles-Cne6G_JT.js} +1 -1
- package/vg/es/{styles-DeJdP1N1.js → styles-DJTfgRnh.js} +1 -1
- package/vg/es/{styles-DGCn2CYN.js → styles-DU12P5SB.js} +1 -1
- package/vg/es/{styles-B7mPwht_.js → styles-Dc4oKzhM.js} +1 -1
- package/{bt/es/styles-B1VaBJsk.js → vg/es/styles-LTs9Y7O2.js} +1 -1
- package/vg/es/{styles-COAPuyTC.js → styles-LoNd54MB.js} +1 -1
- package/vg/es/{styles-CEOa8SJF.js → styles-YZYyF6yL.js} +1 -1
- package/vg/es/{styles-Cq8gyMtO.js → styles-s9m6EdRR.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-DjAcHCff.js +1 -0
- package/vgv2/es/{events-DNkN18vT.js → events-CdCPzm4B.js} +1 -1
- package/vgv2/es/{index-DK-aVwq5.js → index-B8_gSYpA.js} +1 -1
- package/vgv2/es/{index-StiNpJYN.js → index-BzgSnVa9.js} +1 -1
- package/vgv2/es/{index-Bg9q612m.js → index-C2EhjMUF.js} +1 -1
- package/vgv2/es/{index-C1ElJMPL.js → index-CVjJ4Gf3.js} +1 -1
- package/vgv2/es/{index-CFfew_Hr.js → index-CiCXPuCl.js} +1 -1
- package/vgv2/es/{index-BAOSiCkF.js → index-CwPvxIc6.js} +1 -1
- package/vgv2/es/{index-DNScSEfq.js → index-DMsXgnOF.js} +1 -1
- package/vgv2/es/{index-C9W2H7yU.js → index-DUfgQLoG.js} +1 -1
- package/vgv2/es/index.d.ts +6 -27
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-BEfPRcna.js → styles-0RlDabJb.js} +1 -1
- package/vgv2/es/{styles-C1D_9t7l.js → styles-AKNODZi0.js} +1 -1
- package/vgv2/es/{styles-QY_ZMd8I.js → styles-BCa_rKUY.js} +1 -1
- package/vgv2/es/{styles-D6HQ6xcn.js → styles-BOlo8I8_.js} +1 -1
- package/vgv2/es/{styles-BeBDnUVA.js → styles-BjE495Bp.js} +1 -1
- package/vgv2/es/{styles-BcpiLYlT.js → styles-Bw0cwTZy.js} +1 -1
- package/vgv2/es/{styles-Dbde7ciA.js → styles-C1niuRIR.js} +1 -1
- package/{btv2/es/styles-DEI95laR.js → vgv2/es/styles-CjwrIlHa.js} +1 -1
- package/vgv2/es/{styles-C3B5JUB_.js → styles-D1zJKlJ_.js} +1 -1
- package/vgv2/es/{styles-CC39I9et.js → styles-DKpsaAl9.js} +1 -1
- package/vgv2/es/{styles-CGoOi8H3.js → styles-DqmQTogg.js} +1 -1
- package/vgv2/es/{styles-CYFBwqUu.js → styles-J3niUfzt.js} +1 -1
- package/{btv2/es/styles-BlLbcdMF.js → vgv2/es/styles-N4yg2ZRS.js} +1 -1
- package/{btv2/es/styles-rgnDm1KE.js → vgv2/es/styles-RN5Jfk16.js} +1 -1
- package/vgv2/es/{styles-BPnYKeGp.js → styles-danoFIP3.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-Cl0fdATI.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-DmzCVOLI.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-C8UPlgHW.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-BRG4vCT_.js +0 -1
- package/bt/es/_auto-entry_bt-Bk5yuKAV.js +0 -1
- package/btv2/es/_auto-entry_btv2-yQhIazsa.js +0 -1
- package/e24/es/_auto-entry_e24-B8BbWljb.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-awwUwT11.js +0 -1
- package/koket/es/_auto-entry_koket-B5W_TYr9.js +0 -1
- package/sa/es/_auto-entry_sa-Bb5FVWBc.js +0 -1
- package/sav2/es/_auto-entry_sav2-AZVx6DD8.js +0 -1
- package/svd/es/_auto-entry_svd-CENb3dWh.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-B2oqDqqQ.js +0 -1
- package/tv4/es/_auto-entry_tv4-B41KwUm2.js +0 -1
- package/vg/es/_auto-entry_vg-DKyKS-W5.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-BOwVYPRZ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as e,B as t,C as n,c as r,E as o,S as i,F as d}from"./_auto-entry_btv2-
|
|
1
|
+
import{I as e,B as t,C as n,c as r,E as o,S as i,F as d}from"./_auto-entry_btv2-BBF3K8TB.js";import"react/jsx-runtime";const s=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},l=(e,t=window.screen.width,n,r)=>{const o=s(e,t);if(n&&n(e,o),r)return void r(e);const i=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);i&&(i.style.transform=`scale(${o})`,i.style.transformOrigin="left top")},c=(e,t)=>{if(e&&t)return t/e},a=new Map;a.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),a.set("panorama",{scale:.79,transformOrigin:"center center"}),a.set("outstream",{scale:.79,transformOrigin:"center center"}),a.set("integration",{scale:.79,transformOrigin:"center center"}),a.set("toppanorama",{scale:.8,transformOrigin:"left center"});const u=r=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>e&&(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.clientWidth)<=t))return;var o,i;const d=n(r),s=a.get(d),l=document.querySelector(`#${r.targetId}`);if(!l||!s)return;if(l.style.transformOrigin=s.transformOrigin,l.style.transform=`scale(${s.scale})`,!(null==s?void 0:s.cogwheelAdjust))return;const c=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==l?void 0:l.offsetWidth;c&&"number"==typeof u&&!isNaN(u)&&c.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,s,c,a,u;const{adScaleConfig:f,pageContext:{deviceType:m}}=r.get();if(!(null==f?void 0:f.enabled))return;if(o(e,i.ANY_FULLSCREEN))return;const v=null!==(t=f.adsToBeScaled[m])&&void 0!==t?t:[],g=d(e.targetId.split("-")[0]);if(!v.includes(g))return;const w=null!==(s=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==s?s:0,p=document.getElementById(e.targetId),y=null!==(c=null==p?void 0:p.offsetWidth)&&void 0!==c?c:window.screen.width,h=null!==(u=null===(a=null==p?void 0:p.parentElement)||void 0===a?void 0:a.offsetWidth)&&void 0!==u?u:window.screen.width;l(e,(y<h?y:h)-w)};export{s as calculateScaleFactor,c as getAspectRatio,l as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,z as e}from"./_auto-entry_btv2-
|
|
1
|
+
import{c as t,z as e}from"./_auto-entry_btv2-BBF3K8TB.js";import"react/jsx-runtime";const n=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=(r,l)=>{var i,s;const a=document.querySelector(`#${r.targetId}`),{siteSpecificConfig:{publisherClassName:o,fullWidthFormatClassName:d}={},fullWidth:f,pageContext:{deviceType:u}}=t.get();if(!a)return null;const c=a.parentElement;if(a.style.width=e(u)?"100vw":"100%",a.style.position="relative",c&&(c.style.width=e(u)?"100vw":"100%",c.style.position="relative"),o&&d){const t=`advertory-${o}-${d}`;a.classList.add(`${t}__${l}`),null==c||c.classList.add(`${t}-wrapper__${l}`)}const p=null===(s=null===(i=null==f?void 0:f.options)||void 0===i?void 0:i.styles)||void 0===s?void 0:s[u],y=(null==f?void 0:f.enabled)&&p;return!y&&c&&e(u)&&(c.style.left="50%",c.style.marginLeft="-50vw"),y&&p.adContainer&&n(a,p.adContainer),y&&p.adContainerWrapper&&c&&n(c,p.adContainerWrapper),a},l=(t,e,n,l)=>{const i=r(t,l);if(!i)return;const s=i.querySelector("iframe"),a=null==s?void 0:s.parentElement;if(!s||!a)return;const o=i.offsetWidth,d=o/t.width;a.style.transform=`scale(${d})`,a.style.transformOrigin="left top";const f=Math.round(o/e*n);i.style.height=`${f}px`},i=n=>{const l=r(n,"fullwidth-ad");if(!l)return;const i=l.querySelector("iframe");if(!i)return;const{deviceType:s}=t.get().pageContext;i.style.width=e(s)?"100vw":"100%",(null==i?void 0:i.parentElement)&&(i.parentElement.style.width=e(s)?"100vw":"100%")},s=t=>{l(t,1080,1920,"ninesixteen-ad")},a=t=>{l(t,1080,1080,"fullsquare-ad")};export{a as applyFullsquareFormat,i as applyFullwidthFormat,s as applyNinesixteenFormat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{G as getDrEditionManager,H as handleDrEdition,J as handleDrEditionBackfill,K as handleDrEditionBackfillOnAdblock}from"./_auto-entry_btv2-
|
|
1
|
+
export{G as getDrEditionManager,H as handleDrEdition,J as handleDrEditionBackfill,K as handleDrEditionBackfillOnAdblock}from"./_auto-entry_btv2-BBF3K8TB.js";import{jsxs as a,jsx as t}from"react/jsx-runtime";const e=({editionName:e,fallbackTargetId:i,children:n,pulseData:r,htmlAttributes:d})=>{const l=(a,t)=>{const e={};if(!a)return e;for(const[i,n]of Object.entries(a)){e[t?`${t}-${i}`:i]=String(n)}return e},s=l(r,"data-pulse"),o=l(d,"data");return a("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":e},s,o,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:n})]}))};export{e as DrEdition};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,N as t,O as n,P as a,Q as r,l as i,R as l,U as s,h as o,V as c}from"./_auto-
|
|
1
|
+
import{_ as e,N as t,O as n,P as a,Q as r,l as i,R as l,U as s,h as o,V as c}from"./_auto-entry_btv2-BBF3K8TB.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",P=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),E=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield P(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield E();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const O=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},j=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{O as Kilkaya,j as runKilkaya};
|
package/btv2/es/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import Tracker from '@schibsted/pulse-sdk';
|
|
2
|
+
|
|
1
3
|
type AstAdType = 'banner' | 'video' | 'native' | 'outstream';
|
|
2
4
|
interface AstBanner {
|
|
3
5
|
content: string;
|
|
@@ -296,39 +298,17 @@ declare const PageTypes: {
|
|
|
296
298
|
};
|
|
297
299
|
type PageType = (typeof PageTypes)[keyof typeof PageTypes];
|
|
298
300
|
|
|
299
|
-
interface
|
|
300
|
-
xandr?: {
|
|
301
|
-
ppId1?: string;
|
|
302
|
-
ppId2?: string;
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
interface TrackerInstance {
|
|
306
|
-
getAdvertisingIdentifiers: () => Promise<AdvertisingIdentifiers>;
|
|
307
|
-
getUserId: () => Promise<undefined | string | number>;
|
|
308
|
-
getEnvironmentId: () => Promise<undefined | string>;
|
|
309
|
-
getActor: () => Promise<undefined | unknown>;
|
|
310
|
-
state?: {
|
|
311
|
-
pageViewId?: string;
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
interface PulseInstance extends TrackerInstance {
|
|
315
|
-
pulseTracker?: TrackerInstance;
|
|
301
|
+
interface PulseLegacyExtras {
|
|
316
302
|
trackElementView?: (eventInput: unknown) => Promise<void>;
|
|
317
303
|
trackElementClick?: (eventInput: unknown) => Promise<void>;
|
|
318
304
|
trackClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
319
305
|
trackViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
320
|
-
trackLegacyClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
321
|
-
trackLegacyViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
322
306
|
}
|
|
323
|
-
interface
|
|
307
|
+
interface PulseConfig {
|
|
324
308
|
clientId: string;
|
|
325
|
-
instance:
|
|
309
|
+
instance: Tracker & PulseLegacyExtras;
|
|
326
310
|
hasherUrl?: string;
|
|
327
311
|
}
|
|
328
|
-
interface Pulse {
|
|
329
|
-
clientId: string;
|
|
330
|
-
instance: PulseInstance;
|
|
331
|
-
}
|
|
332
312
|
|
|
333
313
|
declare const Newsrooms: {
|
|
334
314
|
readonly SVD: "svd";
|
|
@@ -432,8 +412,7 @@ interface SiteConfig {
|
|
|
432
412
|
glimr?: GlimrConfig;
|
|
433
413
|
tcf?: TCFConfig;
|
|
434
414
|
prebid?: PrebidConfig;
|
|
435
|
-
|
|
436
|
-
pulse?: Pulse;
|
|
415
|
+
pulse?: PulseConfig;
|
|
437
416
|
finnBlink?: FinnBlinkConfig;
|
|
438
417
|
wallpaper?: WallpaperConfig;
|
|
439
418
|
fullscreenScroll?: FullscreenScrollConfig;
|
package/btv2/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{X as Netboard,a0 as Skyscraper,Y as Sponsorstripe,Z as Takeover,$ as Topboard,a1 as Wallpaper,W as default}from"./_auto-entry_btv2-
|
|
1
|
+
export{X as Netboard,a0 as Skyscraper,Y as Sponsorstripe,Z as Takeover,$ as Topboard,a1 as Wallpaper,W as default}from"./_auto-entry_btv2-BBF3K8TB.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BBF3K8TB.js";import"react/jsx-runtime";a('.advertory-shared-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-shared-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-shared-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-shared-ad-native-seamless .ad-link .ad-content .ad-header{padding:8px 10px 10px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand{display:flex;align-items:center;gap:12px;margin-bottom:11px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-logo{max-height:44px;border-radius:50%}.advertory-shared-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-shared-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-shared-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-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-brand .ad-brand-text .ad-annons::first-letter{text-transform:uppercase}.advertory-shared-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-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;object-fit:cover}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-domain{font-size:11px;line-height:1;color:#666;text-transform:uppercase;text-align:left;font-weight:500}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}.advertory-shared-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-shared-ad-native-seamless),.advertory-aftenposten-native-ad__front:has(.advertory-shared-ad-native-seamless),.advertory-bt-native-ad-wrapper__front:has(.advertory-shared-ad-native-seamless),.advertory-bt-native-ad__front:has(.advertory-shared-ad-native-seamless),.advertory-sa-native-ad-wrapper__front:has(.advertory-shared-ad-native-seamless){max-width:100%}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t}from"./_auto-
|
|
1
|
+
import{i as t}from"./_auto-entry_btv2-BBF3K8TB.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BBF3K8TB.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-
|
|
1
|
+
import{i as e}from"./_auto-entry_btv2-BBF3K8TB.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 e}from"./_auto-entry_btv2-
|
|
1
|
+
import{i as e}from"./_auto-entry_btv2-BBF3K8TB.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-BBF3K8TB.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-entry_btv2-
|
|
1
|
+
import{i as t}from"./_auto-entry_btv2-BBF3K8TB.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 a}from"./_auto-
|
|
1
|
+
import{i as a}from"./_auto-entry_btv2-BBF3K8TB.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,3 +1,4 @@
|
|
|
1
|
+
import Tracker from '@schibsted/pulse-sdk';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { Identity, HasSessionSuccessResponse } from '@schibsted/account-sdk-browser';
|
|
3
4
|
|
|
@@ -170,24 +171,17 @@ interface TrackerInstance {
|
|
|
170
171
|
pageViewId?: string;
|
|
171
172
|
};
|
|
172
173
|
}
|
|
173
|
-
interface
|
|
174
|
-
pulseTracker?: TrackerInstance;
|
|
174
|
+
interface PulseLegacyExtras {
|
|
175
175
|
trackElementView?: (eventInput: unknown) => Promise<void>;
|
|
176
176
|
trackElementClick?: (eventInput: unknown) => Promise<void>;
|
|
177
177
|
trackClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
178
178
|
trackViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
179
|
-
trackLegacyClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
180
|
-
trackLegacyViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
181
179
|
}
|
|
182
|
-
interface
|
|
180
|
+
interface PulseConfig {
|
|
183
181
|
clientId: string;
|
|
184
|
-
instance:
|
|
182
|
+
instance: Tracker & PulseLegacyExtras;
|
|
185
183
|
hasherUrl?: string;
|
|
186
184
|
}
|
|
187
|
-
interface Pulse {
|
|
188
|
-
clientId: string;
|
|
189
|
-
instance: PulseInstance;
|
|
190
|
-
}
|
|
191
185
|
|
|
192
186
|
declare const Newsrooms: {
|
|
193
187
|
readonly SVD: "svd";
|
|
@@ -234,8 +228,7 @@ interface SiteConfig {
|
|
|
234
228
|
glimr?: GlimrConfig;
|
|
235
229
|
tcf?: TCFConfig;
|
|
236
230
|
prebid?: PrebidConfig;
|
|
237
|
-
|
|
238
|
-
pulse?: Pulse;
|
|
231
|
+
pulse?: PulseConfig;
|
|
239
232
|
finnBlink?: FinnBlinkConfig;
|
|
240
233
|
wallpaper?: WallpaperConfig;
|
|
241
234
|
fullscreenScroll?: FullscreenScrollConfig;
|
|
@@ -680,7 +673,7 @@ declare class DrEditionManager {
|
|
|
680
673
|
private observeCarousel;
|
|
681
674
|
}
|
|
682
675
|
|
|
683
|
-
declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverProperties, identityFacade: IdentityFacade, pulse?:
|
|
676
|
+
declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverProperties, identityFacade: IdentityFacade, pulse?: PulseConfig["instance"]) => DrEditionManager;
|
|
684
677
|
|
|
685
678
|
declare const DrEdition: ({ editionName, fallbackTargetId, children, pulseData, htmlAttributes }: DrEditionComponentProps) => ReactNode;
|
|
686
679
|
|
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}=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)})};
|
|
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)=>{const{publisher:i,pageType:o,country:s}=e,d={[k]:new a,[A]:new x,[S]:new _,[j]:new N}[i]||new V,l=new(s===g?T:I)(n,d,o),c=new r(t,n),v=new E(d,l),p=new P(d);return new u(c,v,p,l)},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}=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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Tracker from '@schibsted/pulse-sdk';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { Identity, HasSessionSuccessResponse } from '@schibsted/account-sdk-browser';
|
|
3
4
|
|
|
@@ -170,24 +171,17 @@ interface TrackerInstance {
|
|
|
170
171
|
pageViewId?: string;
|
|
171
172
|
};
|
|
172
173
|
}
|
|
173
|
-
interface
|
|
174
|
-
pulseTracker?: TrackerInstance;
|
|
174
|
+
interface PulseLegacyExtras {
|
|
175
175
|
trackElementView?: (eventInput: unknown) => Promise<void>;
|
|
176
176
|
trackElementClick?: (eventInput: unknown) => Promise<void>;
|
|
177
177
|
trackClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
178
178
|
trackViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
179
|
-
trackLegacyClickUIElement?: (eventInput: unknown) => Promise<void>;
|
|
180
|
-
trackLegacyViewUIElement?: (eventInput: unknown) => Promise<void>;
|
|
181
179
|
}
|
|
182
|
-
interface
|
|
180
|
+
interface PulseConfig {
|
|
183
181
|
clientId: string;
|
|
184
|
-
instance:
|
|
182
|
+
instance: Tracker & PulseLegacyExtras;
|
|
185
183
|
hasherUrl?: string;
|
|
186
184
|
}
|
|
187
|
-
interface Pulse {
|
|
188
|
-
clientId: string;
|
|
189
|
-
instance: PulseInstance;
|
|
190
|
-
}
|
|
191
185
|
|
|
192
186
|
declare const Newsrooms: {
|
|
193
187
|
readonly SVD: "svd";
|
|
@@ -234,8 +228,7 @@ interface SiteConfig {
|
|
|
234
228
|
glimr?: GlimrConfig;
|
|
235
229
|
tcf?: TCFConfig;
|
|
236
230
|
prebid?: PrebidConfig;
|
|
237
|
-
|
|
238
|
-
pulse?: Pulse;
|
|
231
|
+
pulse?: PulseConfig;
|
|
239
232
|
finnBlink?: FinnBlinkConfig;
|
|
240
233
|
wallpaper?: WallpaperConfig;
|
|
241
234
|
fullscreenScroll?: FullscreenScrollConfig;
|
|
@@ -680,7 +673,7 @@ declare class DrEditionManager {
|
|
|
680
673
|
private observeCarousel;
|
|
681
674
|
}
|
|
682
675
|
|
|
683
|
-
declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverProperties, identityFacade: IdentityFacade, pulse?:
|
|
676
|
+
declare const getDrEditionManager: (drEditionPageProperties: DrEditionObserverProperties, identityFacade: IdentityFacade, pulse?: PulseConfig["instance"]) => DrEditionManager;
|
|
684
677
|
|
|
685
678
|
declare const DrEdition: ({ editionName, fallbackTargetId, children, pulseData, htmlAttributes }: DrEditionComponentProps) => ReactNode;
|
|
686
679
|
|