@schibsted/advertory 3.13.2 → 3.13.4-inv-2763.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.js +1 -1
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-YsrDMsGX.js +1 -0
- package/aftenposten/es/{events-CtN1p8Dq.js → events-BbuVJSVq.js} +1 -1
- package/aftenposten/es/{index-DY5tRbVm.js → index-B5_OSXg3.js} +1 -1
- package/aftenposten/es/{index-XStQfnF5.js → index-CPxAN5WO.js} +1 -1
- package/aftenposten/es/{index-Anf947x6.js → index-CUyFD9WO.js} +1 -1
- package/aftenposten/es/{index-DKfnAIAp.js → index-CzI9o4qN.js} +1 -1
- package/aftenposten/es/{index-Dh8O0tfr.js → index-DO0LtwJm.js} +1 -1
- package/aftenposten/es/{index-DW5bQdLw.js → index-DRRK2Mel.js} +1 -1
- package/aftenposten/es/{index-CQTPrRzB.js → index-DojVCoR9.js} +1 -1
- package/aftenposten/es/{index-D2BpzXfJ.js → index-DrXAcSDK.js} +1 -1
- package/aftenposten/es/index-DzaWRSQq.js +1 -0
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-BHMMZl3s.js → styles-B6rkCUPN.js} +1 -1
- package/aftenposten/es/{styles-Bo0R1mYA.js → styles-BMZyG6uH.js} +1 -1
- package/aftenposten/es/{styles-Fgl-TEqE.js → styles-CGFXOsFr.js} +1 -1
- package/aftenposten/es/styles-CJvSokU8.js +1 -0
- package/aftenposten/es/{styles-C0veN8cL.js → styles-CZOY3_cQ.js} +1 -1
- package/aftenposten/es/styles-CvVp7zop.js +1 -0
- package/aftenposten/es/{styles-DKeZpdIO.js → styles-Db_qXA0h.js} +1 -1
- package/aftenposten/es/{styles-h-pSWN0q.js → styles-Dn-5sBs_.js} +1 -1
- package/aftenposten/es/{styles-BaMg4raF.js → styles-DsHNSECN.js} +1 -1
- package/aftenposten/es/{styles-D7Y30A43.js → styles-KvYROVof.js} +1 -1
- package/aftenposten/es/{styles-n2uF8YnQ.js → styles-wlaP2r3f.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-DSNNwd0t.js +1 -0
- package/aftenpostenv2/es/{events-DSL2UzQJ.js → events-DGNbq-0l.js} +1 -1
- package/aftenpostenv2/es/{index-e-yC7fe8.js → index-B2hKTBC8.js} +1 -1
- package/aftenpostenv2/es/{index-BgPj0kDE.js → index-BWJNw0SQ.js} +1 -1
- package/aftenpostenv2/es/{index-FedJJ3Vr.js → index-C-LaIdEs.js} +1 -1
- package/aftenpostenv2/es/{index-wmOcUC7v.js → index-CRxDc8yK.js} +1 -1
- package/aftenpostenv2/es/{index-DtY9Abl_.js → index-CaSdOLa-.js} +1 -1
- package/aftenpostenv2/es/{index-D-37TZnJ.js → index-D8yZQkPy.js} +1 -1
- package/aftenpostenv2/es/{index-Cv0WT8U9.js → index-DsMs9KWc.js} +1 -1
- package/aftenpostenv2/es/index-oNMQgNll.js +1 -0
- package/aftenpostenv2/es/{index-CaSG54tW.js → index-sR8k4OVQ.js} +1 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-BXgV2JlO.js → styles-BWpYhE_h.js} +1 -1
- package/aftenpostenv2/es/{styles-B0WeKYG3.js → styles-Bv9vx9KB.js} +1 -1
- package/aftenpostenv2/es/styles-C5QtEnXp.js +1 -0
- package/aftenpostenv2/es/{styles-D8X7ziTp.js → styles-C_ndzVRP.js} +1 -1
- package/aftenpostenv2/es/{styles-CzOHg9Gm.js → styles-D-52Q4s9.js} +1 -1
- package/aftenpostenv2/es/styles-D73JpfQW.js +1 -0
- package/aftenpostenv2/es/{styles-Ky7vmEpw.js → styles-DGjsCIfB.js} +1 -1
- package/aftenpostenv2/es/{styles-Kv1nisNW.js → styles-DGnW2T_K.js} +1 -1
- package/aftenpostenv2/es/{styles-DcNQkPgV.js → styles-DIpcRyzZ.js} +1 -1
- package/aftenpostenv2/es/{styles-CuvteKti.js → styles-KwsDpJe_.js} +1 -1
- package/aftenpostenv2/es/{styles-CNLLx22N.js → styles-cenGgFhv.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-D4HdP6qr.js +1 -0
- package/aftonbladet/es/{events-D2z45Wmm.js → events-zMfi5Ydv.js} +1 -1
- package/aftonbladet/es/{index-IXTGLOFV.js → index-BjHPsnfa.js} +1 -1
- package/aftonbladet/es/{index-Yr0EFnVa.js → index-BxvAixjz.js} +1 -1
- package/aftonbladet/es/{index-Bo16gEOt.js → index-C6j1tA1W.js} +1 -1
- package/aftonbladet/es/{index-BthHyEfe.js → index-CJw6Lt4X.js} +1 -1
- package/aftonbladet/es/{index-ntYG7AKc.js → index-D2Y_GFte.js} +1 -1
- package/aftonbladet/es/{index-CvkSQB46.js → index-D7iBO6sY.js} +1 -1
- package/aftonbladet/es/{index-BNNgsVOg.js → index-DPCi3VXj.js} +1 -1
- package/aftonbladet/es/{index-YzP8slL5.js → index-DbaqH3LR.js} +1 -1
- package/aftonbladet/es/index-hdrIG11C.js +1 -0
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-DaFeHEoN.js → styles-B-jQCZQU.js} +1 -1
- package/aftonbladet/es/{styles-VFQyWuct.js → styles-BzZXzSl3.js} +1 -1
- package/aftonbladet/es/{styles-DwwUI_Pq.js → styles-C20vUmaH.js} +1 -1
- package/aftonbladet/es/{styles-CoUJOgFr.js → styles-Cv8h2kxI.js} +1 -1
- package/aftonbladet/es/styles-D2vPce5h.js +1 -0
- package/aftonbladet/es/{styles-3ovBuBHE.js → styles-D7FXykLP.js} +1 -1
- package/aftonbladet/es/styles-u2zwi1J5.js +1 -0
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DK398BGE.js +1 -0
- package/aftonbladetv2/es/{events-Ca3FrO90.js → events-qbOMpSng.js} +1 -1
- package/aftonbladetv2/es/{index-D5Z_apN2.js → index-1gEYMNRJ.js} +1 -1
- package/aftonbladetv2/es/{index-BYP8yE3n.js → index-BH4E_Vvg.js} +1 -1
- package/aftonbladetv2/es/{index-DbBdSFCM.js → index-BZK_WoWe.js} +1 -1
- package/aftonbladetv2/es/{index-Cq3fx3Hf.js → index-BsPJGX_5.js} +1 -1
- package/aftonbladetv2/es/index-CHY9Q8le.js +1 -0
- package/aftonbladetv2/es/{index-DEnW3KWi.js → index-D9brP6PU.js} +1 -1
- package/aftonbladetv2/es/{index-DD4Cq8Mg.js → index-FPlyJlMn.js} +1 -1
- package/aftonbladetv2/es/{index-BkDI0TCR.js → index-l-7kipOl.js} +1 -1
- package/aftonbladetv2/es/{index-Co9J8KPH.js → index-xRATSLwa.js} +1 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/styles-B3lxzH34.js +1 -0
- package/aftonbladetv2/es/{styles-7t3Fyexs.js → styles-C1Ife_u6.js} +1 -1
- package/aftonbladetv2/es/{styles-Bwo5KXtV.js → styles-CnP34GkM.js} +1 -1
- package/aftonbladetv2/es/styles-CuXglXv7.js +1 -0
- package/aftonbladetv2/es/{styles-JRAhrJ6Y.js → styles-CuwX-gXx.js} +1 -1
- package/aftonbladetv2/es/{styles-Bn45Ldyv.js → styles-DH75zMtU.js} +1 -1
- package/aftonbladetv2/es/{styles-BXdL55Bu.js → styles-Kv_DiqPI.js} +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-DDbu5nLa.js +1 -0
- package/bt/es/{events-HC0QUz_w.js → events-NYF7tBqk.js} +1 -1
- package/{sa/es/index-D8l-L264.js → bt/es/index-B4RBtoQG.js} +1 -1
- package/bt/es/{index-plg8836x.js → index-B4RKr0f-.js} +1 -1
- package/{sa/es/index-CjNx-qI4.js → bt/es/index-B9rOU9Pj.js} +1 -1
- package/bt/es/{index-DFiBcuXQ.js → index-BSXEKDlF.js} +1 -1
- package/bt/es/{index-Bim-LdTQ.js → index-CgREzDHO.js} +1 -1
- package/bt/es/{index-R_p-GiTD.js → index-DaFjEMnv.js} +1 -1
- package/bt/es/{index-KbW-zfIR.js → index-DroxKqwV.js} +1 -1
- package/bt/es/{index-BqqhBXSc.js → index-Dw3fEs7x.js} +1 -1
- package/bt/es/index-E-galEbu.js +1 -0
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-BooU_OpR.js → styles--bdRKSEe.js} +1 -1
- package/bt/es/styles-0go28SxQ.js +1 -0
- package/bt/es/{styles-Bw6pY1nz.js → styles-27mAgm_N.js} +1 -1
- package/{sa/es/styles-B56-bTGz.js → bt/es/styles-BIg8Rj72.js} +1 -1
- package/bt/es/{styles-DIdbUTqT.js → styles-BjiseP7D.js} +1 -1
- package/bt/es/styles-COyeNj2j.js +1 -0
- package/bt/es/{styles-wpCcay6P.js → styles-CYSvE3bb.js} +1 -1
- package/{sa/es/styles-BClUJr0c.js → bt/es/styles-D-RRhrrv.js} +1 -1
- package/bt/es/{styles-BvJbV6ox.js → styles-dIL4f7_e.js} +1 -1
- package/bt/es/{styles-D_ReAy3l.js → styles-wB2GYG17.js} +1 -1
- package/btv2/es/_auto-entry_btv2-BL46naEC.js +1 -0
- package/{omni/es/events-B4C8cRyT.js → btv2/es/events-EI2-AXCt.js} +1 -1
- package/btv2/es/{index-882ZJAWf.js → index-6P-SmQz6.js} +1 -1
- package/btv2/es/index-BHyJavOW.js +1 -0
- package/btv2/es/{index--mZw6Is2.js → index-DDMp4vqR.js} +1 -1
- package/{omni/es/index-BlHwKOkl.js → btv2/es/index-DM6insRW.js} +1 -1
- package/btv2/es/{index-CITRN8WW.js → index-DQQoUTh3.js} +1 -1
- package/btv2/es/{index-Chg0WRqo.js → index-DaH_kXLq.js} +1 -1
- package/btv2/es/{index-DViiiqa5.js → index-DnrSz_GB.js} +1 -1
- package/btv2/es/{index-CE9xoxly.js → index-_ppe1wnE.js} +1 -1
- package/{omni/es/index-D2lZ8PW9.js → btv2/es/index-mwqrixJN.js} +1 -1
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-DxaB2IaE.js → btv2/es/styles-9xpXZ2es.js} +1 -1
- package/{sav2/es/styles-C48uORYW.js → btv2/es/styles-B8YW8Zp_.js} +1 -1
- package/{sav2/es/styles-BGViscdA.js → btv2/es/styles-BdgEGO79.js} +1 -1
- package/btv2/es/{styles-BrAC4_xE.js → styles-BmN3ncN1.js} +1 -1
- package/btv2/es/{styles-Bx-fHk29.js → styles-CYr4iuHq.js} +1 -1
- package/btv2/es/styles-CqzdzEUN.js +1 -0
- package/btv2/es/styles-DIl_jFbG.js +1 -0
- package/{sav2/es/styles-BYVkxcNr.js → btv2/es/styles-JxuBQ3xM.js} +1 -1
- package/btv2/es/{styles-DPT5al_O.js → styles-l4vlmE0X.js} +1 -1
- package/btv2/styles.css +1 -1
- package/dr-edition/cjs/index.js +1 -1
- package/dr-edition/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-D_nt3FxH.js +1 -0
- package/e24/es/{events-DxuSB0Su.js → events-B7Y36CM5.js} +1 -1
- package/e24/es/{index-D8fRmdoM.js → index-BV0fa1oV.js} +1 -1
- package/e24/es/{index-G8XUeV67.js → index-BwAEn4bw.js} +1 -1
- package/e24/es/{index-DjRfBzw8.js → index-CIPXlnPM.js} +1 -1
- package/e24/es/{index-D_pnsbDa.js → index-Cx-AN1wJ.js} +1 -1
- package/{tv4/es/index-HCudY1Qo.js → e24/es/index-Dm-4I0ft.js} +1 -1
- package/e24/es/{index-CvxTt5C3.js → index-Dw5j_TVc.js} +1 -1
- package/e24/es/{index-Ca2k_SRY.js → index-EAXySos3.js} +1 -1
- package/e24/es/index-eBvJrKrN.js +1 -0
- package/e24/es/{index-DIcOC5WP.js → index-mbZOa3DW.js} +1 -1
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-BjMDK2MY.js → styles-BJJJQSzH.js} +1 -1
- package/e24/es/{styles-BZDssWZ8.js → styles-BQKbbzbn.js} +1 -1
- package/e24/es/{styles-DM2FwD9a.js → styles-BSQJLKEC.js} +1 -1
- package/e24/es/{styles-CilkMw6t.js → styles-BfoBjAv8.js} +1 -1
- package/e24/es/styles-BnDOWlqk.js +1 -0
- package/e24/es/{styles-CIE7y17Y.js → styles-C54q8Uj-.js} +1 -1
- package/e24/es/{styles-mZWSevNy.js → styles-C_v_M4NY.js} +1 -1
- package/e24/es/{styles-DWjFwPGO.js → styles-CewgLHWl.js} +1 -1
- package/e24/es/{styles-DqjMzRrx.js → styles-DBhrOnXG.js} +1 -1
- package/e24/es/styles-N8RUPDi-.js +1 -0
- package/{tv4/es/styles-DiCUmxit.js → e24/es/styles-P_BORthG.js} +1 -1
- package/e24/es/{styles-DIaYtwvc.js → styles-UMoO2Rnm.js} +1 -1
- package/editory/cjs/index.js +1 -1
- package/editory/es/index.js +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DnfZ5M4d.js +1 -0
- package/fotbollskanalen/es/{events-4UgYTCzD.js → events-CfrIQSPC.js} +1 -1
- package/fotbollskanalen/es/index-B91ZkoWW.js +1 -0
- package/fotbollskanalen/es/{index-Ck3ji5xr.js → index-BQ7rgnaN.js} +1 -1
- package/fotbollskanalen/es/{index-Bg1wGEPl.js → index-D1sOKOOU.js} +1 -1
- package/fotbollskanalen/es/{index-CC3eJUBJ.js → index-DoAqN60K.js} +1 -1
- package/fotbollskanalen/es/{index-BsdiTf8Y.js → index-DtmZo8zk.js} +1 -1
- package/fotbollskanalen/es/{index-C1nBSRXO.js → index-I1pvEOei.js} +1 -1
- package/fotbollskanalen/es/{index--pubU0fa.js → index-Vttn5yUE.js} +1 -1
- package/fotbollskanalen/es/{index-Rd6k4Qbr.js → index-ZNdg2AsA.js} +1 -1
- package/fotbollskanalen/es/{index-BYdwXjFy.js → index-ZoU5IUt5.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-CtW6fWvs.js → styles-Cca3VdUW.js} +1 -1
- package/fotbollskanalen/es/styles-Cz8Hhhma.js +1 -0
- package/fotbollskanalen/es/styles-DTQvelgg.js +1 -0
- package/fotbollskanalen/es/{styles-ZS9hJ72l.js → styles-JD-Vs1H3.js} +1 -1
- package/fotbollskanalen/es/{styles-BBdGMHeL.js → styles-r_G1hkuV.js} +1 -1
- package/godt/cjs/index.js +1 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-CqRGO4sz.js +1 -0
- package/koket/es/{events-CD6tJ04S.js → events-BkwyqXd8.js} +1 -1
- package/koket/es/{index-DVnXkbmM.js → index-C7qjosRt.js} +1 -1
- package/{svdv2/es/index-CHKUK-Qj.js → koket/es/index-C9tjGlAZ.js} +1 -1
- package/koket/es/{index-rT4x6Inp.js → index-CZ6Zu2HH.js} +1 -1
- package/koket/es/{index-X7xgOMss.js → index-CiF0ltVD.js} +1 -1
- package/koket/es/{index-CCWd85PV.js → index-Cx98w8m0.js} +1 -1
- package/koket/es/{index-CbnJA4Oz.js → index-CxayIzcp.js} +1 -1
- package/koket/es/{index-Daeu98WA.js → index-DoLrA9W9.js} +1 -1
- package/koket/es/{index-mR30TMCa.js → index-cJr3ns96.js} +1 -1
- package/koket/es/index-efH2AIo7.js +1 -0
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-z1CC1X2b.js → koket/es/styles-CSW4CoU5.js} +1 -1
- package/koket/es/styles-CxO6qOZF.js +1 -0
- package/{svdv2/es/styles-T7_AFDgN.js → koket/es/styles-GaQQQ08I.js} +1 -1
- package/koket/es/styles-YMNYru2A.js +1 -0
- package/koket/es/{styles-DitlYRS3.js → styles-pRw93x51.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/omni/es/_auto-entry_omni-CKsThSMO.js +1 -0
- package/{tvnu/es/events-B_pzC7-T.js → omni/es/events-BskmQCiY.js} +1 -1
- package/{vgv2/es/index-B6bWStF7.js → omni/es/index-B-jap7gc.js} +1 -1
- package/omni/es/{index-DSfRjF0d.js → index-BwXkPOIm.js} +1 -1
- package/omni/es/{index-D-3Pk4dw.js → index-CDTn1BlI.js} +1 -1
- package/omni/es/{index-BxE-LaJE.js → index-CfurFZC_.js} +1 -1
- package/omni/es/index-CzAtWuRO.js +1 -0
- package/omni/es/{index-B-BbQKC0.js → index-DPo7QClZ.js} +1 -1
- package/{btv2/es/index-2Ivo2WRB.js → omni/es/index-XzlTXtdT.js} +1 -1
- package/omni/es/{index-TT3b7h7k.js → index-aBJvYHM0.js} +1 -1
- package/{btv2/es/index-fTvGErks.js → omni/es/index-yv5_dHWQ.js} +1 -1
- package/omni/es/index.js +1 -1
- package/omni/es/styles-B_bWMPYx.js +1 -0
- package/omni/es/{styles-CfyzCEwm.js → styles-CB5CGwOz.js} +1 -1
- package/omni/es/{styles-M3dg8qV_.js → styles-CwRZCDu5.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-BRh3tI-N.js +1 -0
- package/sa/es/{events-Bu11M_ii.js → events-CZfUdWln.js} +1 -1
- package/{bt/es/index-Cd1gvXha.js → sa/es/index-6BJfexNJ.js} +1 -1
- package/{bt/es/index-iY8ie0fS.js → sa/es/index-BHgpAlZ7.js} +1 -1
- package/sa/es/index-Ba9B9mqE.js +1 -0
- package/sa/es/{index-D3K1HfK1.js → index-C4S7oCLB.js} +1 -1
- package/{vg/es/index-eee6pO48.js → sa/es/index-DKjYsXTM.js} +1 -1
- package/sa/es/{index-BMplOhVK.js → index-DcmF2Qxo.js} +1 -1
- package/sa/es/{index-BTP68N4M.js → index-DfgH4Dc2.js} +1 -1
- package/{vg/es/index-C-HwFKK6.js → sa/es/index-RG3mIchj.js} +1 -1
- package/sa/es/{index-Wovkf8TE.js → index-unhg1UgJ.js} +1 -1
- package/sa/es/index.js +1 -1
- package/{bt/es/styles-B8C-gsLP.js → sa/es/styles-8QanDSVa.js} +1 -1
- package/sa/es/styles-AOIMPL3-.js +1 -0
- package/{vg/es/styles-B3vaF2mk.js → sa/es/styles-BHJSnx1N.js} +1 -1
- package/sa/es/{styles-C4NZJ_Mi.js → styles-BldY3nMc.js} +1 -1
- package/sa/es/{styles-BOf2F84g.js → styles-C6C1go5V.js} +1 -1
- package/sa/es/{styles-BncFhfv9.js → styles-CvVcRnIa.js} +1 -1
- package/sa/es/styles-D-pwIjVg.js +1 -0
- package/sa/es/{styles-T2N7jzMz.js → styles-DtX1SQmq.js} +1 -1
- package/sa/es/{styles-43YdaV5y.js → styles-krBUsNTM.js} +1 -1
- package/{vg/es/styles-Goq3f6Zf.js → sa/es/styles-wVX6bNDF.js} +1 -1
- package/sav2/es/_auto-entry_sav2-DSgl_85s.js +1 -0
- package/sav2/es/{events-BnvaZqd4.js → events-BYIXxxIo.js} +1 -1
- package/sav2/es/{index-BbNduLka.js → index-86VGn1Ss.js} +1 -1
- package/{tvnu/es/index-CK4QsDTa.js → sav2/es/index-8w0Wi_hK.js} +1 -1
- package/sav2/es/{index-i8AXCMZ5.js → index-CDnxnVkn.js} +1 -1
- package/sav2/es/{index-BrtOzEsE.js → index-CupLqeas.js} +1 -1
- package/sav2/es/index-Cy5HmG3V.js +1 -0
- package/{vgv2/es/index-D6qh3gfi.js → sav2/es/index-DGEM0tPX.js} +1 -1
- package/sav2/es/{index-BlQED6X_.js → index-DwCVRRGf.js} +1 -1
- package/{vgv2/es/index-B-g4x5ua.js → sav2/es/index-NW77mrqP.js} +1 -1
- package/sav2/es/{index-BcLWRXhI.js → index-lfV0qpcH.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/sav2/es/{styles-CeUzppGA.js → styles-B3Z6hXtz.js} +1 -1
- package/{btv2/es/styles-CR9BcG9L.js → sav2/es/styles-B3x1Zj8N.js} +1 -1
- package/sav2/es/styles-BA5X0XId.js +1 -0
- package/{vgv2/es/styles-VQo7Q-x6.js → sav2/es/styles-BaFoM5O0.js} +1 -1
- package/sav2/es/styles-BwEq8vUC.js +1 -0
- package/sav2/es/{styles-BlrKGfxq.js → styles-Cg4lkrpF.js} +1 -1
- package/{btv2/es/styles-DstKbbW1.js → sav2/es/styles-Ddxlie7J.js} +1 -1
- package/sav2/es/{styles-C0yrtCM_.js → styles-UA47PaVt.js} +1 -1
- package/{vgv2/es/styles-D3zAmLrQ.js → sav2/es/styles-prt1K42Y.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-D4d4ChHJ.js +1 -0
- package/svd/es/{events-BtUjJ4GP.js → events-CmAsPbjG.js} +1 -1
- package/svd/es/{index-CEpfqKlN.js → index-B24njhS-.js} +1 -1
- package/svd/es/{index-DbKE8015.js → index-Ba2n_9Jr.js} +1 -1
- package/svd/es/{index-BSGJmxfr.js → index-Cahvqz97.js} +1 -1
- package/svd/es/{index-BJNYbC-N.js → index-CsQD6MZc.js} +1 -1
- package/svd/es/index-D4ycbVay.js +1 -0
- package/svd/es/{index-DQrjU8PS.js → index-DIS5nBF0.js} +1 -1
- package/svd/es/{index-Bpl1dmfO.js → index-DyZ0s10w.js} +1 -1
- package/svd/es/{index-xaajdLGE.js → index-jOfZjKRJ.js} +1 -1
- package/svd/es/{index-BpFsXFuR.js → index-m9r2mPvl.js} +1 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-DQepjBWA.js → styles-BWsmQhDK.js} +1 -1
- package/svd/es/{styles-CmGGs4iq.js → styles-Cetpirww.js} +1 -1
- package/svd/es/styles-DQFHMWAD.js +1 -0
- package/svd/es/{styles-Co14blCL.js → styles-Ds-rsJqp.js} +1 -1
- package/svd/es/{styles-nZ57VKmk.js → styles-Ds5nX7aq.js} +1 -1
- package/svd/es/{styles-CDnyvhYu.js → styles-Dtzc0JHY.js} +1 -1
- package/svd/es/styles-yA7mAam_.js +1 -0
- package/svd/es/{styles-CzH79zzp.js → styles-zw6p9osK.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-z9j50BUW.js +1 -0
- package/svdv2/es/{events-DwGKoRtt.js → events-D8OjqpTu.js} +1 -1
- package/svdv2/es/index-0Xy6EonE.js +1 -0
- package/svdv2/es/{index-C3i4dT8K.js → index-BCQAxMna.js} +1 -1
- package/svdv2/es/{index-rR5UKb1N.js → index-CCgxxTyD.js} +1 -1
- package/{koket/es/index-BNQg7Uty.js → svdv2/es/index-CSNJH_1w.js} +1 -1
- package/svdv2/es/{index-CBYOKPNP.js → index-DGC8GPme.js} +1 -1
- package/svdv2/es/{index-B9TSvs7I.js → index-DgbZ2KUr.js} +1 -1
- package/svdv2/es/{index-jE9OSui2.js → index-DndzWX_v.js} +1 -1
- package/svdv2/es/{index-C-3sF4e8.js → index-NLqhkrod.js} +1 -1
- package/svdv2/es/{index-BTmHytve.js → index-jHusMPSr.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/styles-Ak8MTn03.js +1 -0
- package/svdv2/es/{styles-KWjKvkDy.js → styles-BEGDPgdP.js} +1 -1
- package/svdv2/es/{styles-DOKqoUYV.js → styles-BPPLeecT.js} +1 -1
- package/{koket/es/styles-ClW_CRR5.js → svdv2/es/styles-CtRZixVi.js} +1 -1
- package/svdv2/es/{styles-BYrvQslZ.js → styles-CzJXs6X1.js} +1 -1
- package/{koket/es/styles-BOyD1cvV.js → svdv2/es/styles-DY9hHo2Q.js} +1 -1
- package/svdv2/es/styles-L96mpl7z.js +1 -0
- package/svdv2/es/{styles-CphYJjp2.js → styles-WYSwRuuD.js} +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-BgY42l2W.js +1 -0
- package/tv4/es/{events-BUC5t9Mu.js → events-CPa0D2VV.js} +1 -1
- package/tv4/es/{index-C1FSQPrE.js → index-37FZZTOg.js} +1 -1
- package/{e24/es/index-D9xXnxao.js → tv4/es/index-BUCUmRIx.js} +1 -1
- package/tv4/es/{index-D-9f0BZn.js → index-ByP7Runu.js} +1 -1
- package/tv4/es/{index-CUR7YvIL.js → index-CAbHcHqw.js} +1 -1
- package/tv4/es/{index-D4rk7WVx.js → index-CPQ7oFkk.js} +1 -1
- package/tv4/es/index-CTchvkn_.js +1 -0
- package/tv4/es/{index-DwZFOu_Y.js → index-DkvgqlST.js} +1 -1
- package/tv4/es/{index-CvIpnxZC.js → index-Dyn19F0j.js} +1 -1
- package/tv4/es/{index-CWlAxTc4.js → index-zx7GapiO.js} +1 -1
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-SBkYhJLe.js → styles-BgC3KRwh.js} +1 -1
- package/{e24/es/styles-CoCdQ6Ae.js → tv4/es/styles-C9nL5vEi.js} +1 -1
- package/tv4/es/{styles-Bw5cdd4-.js → styles-Ci2-34B6.js} +1 -1
- package/tv4/es/styles-dyJr_tqB.js +1 -0
- package/tv4/es/styles-w5dTNHk0.js +1 -0
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-CAKG4YRn.js +1 -0
- package/{btv2/es/events-CpZYAdNa.js → tvnu/es/events-DtV4Mpyp.js} +1 -1
- package/{sav2/es/index-BYqHIjPV.js → tvnu/es/index-BYUJZtEr.js} +1 -1
- package/tvnu/es/{index-C77Jh2I7.js → index-BvGJxNEq.js} +1 -1
- package/tvnu/es/{index-1_S-dhei.js → index-CBTKcG_g.js} +1 -1
- package/tvnu/es/{index-Doh5RxUl.js → index-CC5cyyOB.js} +1 -1
- package/tvnu/es/{index-Dx46D7fU.js → index-CanmmjvK.js} +1 -1
- package/{omni/es/index-D07BA1vM.js → tvnu/es/index-CcOxeikL.js} +1 -1
- package/tvnu/es/{index-DrcK46ze.js → index-CtD2_Tjg.js} +1 -1
- package/tvnu/es/index-DY55GDJD.js +1 -0
- package/tvnu/es/{index-EUgpe9Mo.js → index-ShEyzQG6.js} +1 -1
- package/tvnu/es/index.js +1 -1
- package/tvnu/es/{styles-DbHaiJWu.js → styles-BsSvKJYy.js} +1 -1
- package/tvnu/es/styles-BwhURH7g.js +1 -0
- package/{btv2/es/styles-DLO2izxr.js → tvnu/es/styles-CCbNXfPw.js} +1 -1
- package/tvnu/es/styles-D99Lsy3r.js +1 -0
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-D7Zse8oA.js +1 -0
- package/vg/es/{events-Atbd3WlP.js → events-D2iBQ556.js} +1 -1
- package/vg/es/{index-40yQZ24I.js → index-AR6d2Rzv.js} +1 -1
- package/vg/es/{index-DrIwcDcY.js → index-BBNTqj8D.js} +1 -1
- package/{sa/es/index-D_MaRNmg.js → vg/es/index-BgPqrwhl.js} +1 -1
- package/vg/es/{index-CpUQdKpm.js → index-Bn8doT-E.js} +1 -1
- package/vg/es/index-C-nHZl7H.js +1 -0
- package/vg/es/{index-DUy3K_LA.js → index-CXmhazHL.js} +1 -1
- package/vg/es/{index-QAdAhQK6.js → index-CfXQvjHE.js} +1 -1
- package/{sa/es/index-NiU1QvML.js → vg/es/index-Df9KDF4P.js} +1 -1
- package/vg/es/{index-DQ3KjtPt.js → index-emkAgkFi.js} +1 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-CYtxQabn.js → styles-1cwNdcmO.js} +1 -1
- package/vg/es/{styles-BpKrQHSJ.js → styles-5EVggN_J.js} +1 -1
- package/{sa/es/styles-CdXa0saB.js → vg/es/styles-B_UOlFli.js} +1 -1
- package/vg/es/{styles-CWZ_sP8N.js → styles-BjRAuRA1.js} +1 -1
- package/vg/es/styles-Bsof0Uhz.js +1 -0
- package/vg/es/{styles-D9QWxHZc.js → styles-C_SJtXUC.js} +1 -1
- package/vg/es/{styles-K4W3IJ9U.js → styles-D6Y1ohsx.js} +1 -1
- package/vg/es/{styles-BpSNo4Qn.js → styles-DEw1Bw7F.js} +1 -1
- package/{bt/es/styles-BXFeEgEL.js → vg/es/styles-DNd9SeO-.js} +1 -1
- package/vg/es/{styles-GBdotgBw.js → styles-E7vQawuM.js} +1 -1
- package/vg/es/{styles-DVUrHgsJ.js → styles-Nf4R85Zg.js} +1 -1
- package/vg/es/{styles-CDPozIcU.js → styles-dRgXEFcS.js} +1 -1
- package/vg/es/styles-kOMT31YJ.js +1 -0
- package/vg/es/{styles-B5b_vC0E.js → styles-ozV9t9c7.js} +1 -1
- package/vg/es/{styles-yg_aMnNY.js → styles-tfcdds0b.js} +1 -1
- package/vg/es/{styles-BIDSQCk-.js → styles-wr1bNjpT.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-D_La1LsG.js +1 -0
- package/vgv2/es/{events-CFQQ_umi.js → events-B1Iwj6Va.js} +1 -1
- package/vgv2/es/{index-BBPODR94.js → index-BAhNXY6m.js} +1 -1
- package/vgv2/es/{index-DM7nHN0P.js → index-BDpafj7d.js} +1 -1
- package/vgv2/es/index-Bfda4Yla.js +1 -0
- package/{sav2/es/index-CaBHwycF.js → vgv2/es/index-Ce3pqdc8.js} +1 -1
- package/{sav2/es/index--cHjiOBA.js → vgv2/es/index-CtFT0V4T.js} +1 -1
- package/vgv2/es/{index-Bd839OBZ.js → index-Dtc2l_Z2.js} +1 -1
- package/vgv2/es/{index-BlnuMINz.js → index-bLl0474F.js} +1 -1
- package/vgv2/es/{index-f8rMrC4T.js → index-uUBoOqaS.js} +1 -1
- package/{tvnu/es/index-B-9GvoSa.js → vgv2/es/index-uo2PGvod.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-D2hFHsV5.js → styles-BECHK1JX.js} +1 -1
- package/{btv2/es/styles-1xWm6PGR.js → vgv2/es/styles-BEwSxmmc.js} +1 -1
- package/vgv2/es/{styles-B-4yB4td.js → styles-BSPuwMaj.js} +1 -1
- package/vgv2/es/{styles-mgdiCIH6.js → styles-BlpikGLn.js} +1 -1
- package/vgv2/es/{styles-Dmyd-MWa.js → styles-Bvgg8GT6.js} +1 -1
- package/vgv2/es/{styles-oU7oWzec.js → styles-CIsHpReQ.js} +1 -1
- package/vgv2/es/styles-CVXX_Img.js +1 -0
- package/vgv2/es/{styles-CjymgGQZ.js → styles-Cl5nbIi5.js} +1 -1
- package/vgv2/es/{styles-DBiqD2fE.js → styles-D2hSO22g.js} +1 -1
- package/vgv2/es/{styles-Cp0z6QPs.js → styles-D358IdbM.js} +1 -1
- package/vgv2/es/{styles-BmCf_MRl.js → styles-DnyEB-G8.js} +1 -1
- package/vgv2/es/styles-DqNoL7CK.js +1 -0
- package/vgv2/es/{styles-BRsmGqWd.js → styles-IYQiy776.js} +1 -1
- package/{tvnu/es/styles-WpdUb4D7.js → vgv2/es/styles-dabZU4Vp.js} +1 -1
- package/vgv2/es/{styles-D0qH_fpU.js → styles-ogkk0PYp.js} +1 -1
- package/vgv2/es/{styles-DCaYCfen.js → styles-zNN4UfND.js} +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-wip8sCr3.js +0 -1
- package/aftenposten/es/index-DAsE42lt.js +0 -1
- package/aftenposten/es/styles-B4OFy5IJ.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-8V7xJhdT.js +0 -1
- package/aftenpostenv2/es/index-DSBRd2m6.js +0 -1
- package/aftenpostenv2/es/styles-CgO5fAMY.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-DKgn_0jI.js +0 -1
- package/aftonbladet/es/index-CXRgqZ2X.js +0 -1
- package/aftonbladet/es/styles-ULhB0b7a.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DHQULHIV.js +0 -1
- package/aftonbladetv2/es/index-LBVgp7OE.js +0 -1
- package/aftonbladetv2/es/styles-DARjZPC3.js +0 -1
- package/bt/es/_auto-entry_bt-CysmhnHG.js +0 -1
- package/bt/es/index-DeuxHp-P.js +0 -1
- package/bt/es/styles-B3xfQsbg.js +0 -1
- package/btv2/es/_auto-entry_btv2-BmggC0uE.js +0 -1
- package/btv2/es/index-C_BxeyHY.js +0 -1
- package/btv2/es/styles-DnoG50rJ.js +0 -1
- package/e24/es/_auto-entry_e24-D6RKwQfI.js +0 -1
- package/e24/es/index-DNkx1Vje.js +0 -1
- package/e24/es/styles-Co4WW-nm.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-CvcU3zqU.js +0 -1
- package/fotbollskanalen/es/index-CV1irDmV.js +0 -1
- package/fotbollskanalen/es/styles-JauA3dC9.js +0 -1
- package/koket/es/_auto-entry_koket-BdpEl-FW.js +0 -1
- package/koket/es/index-BH4xlEAL.js +0 -1
- package/koket/es/styles-sOUHRbW9.js +0 -1
- package/omni/es/_auto-entry_omni-CeUuTsvb.js +0 -1
- package/omni/es/index-ck1mMPtY.js +0 -1
- package/sa/es/_auto-entry_sa-BNYQ0o6K.js +0 -1
- package/sa/es/index-mb9jrJoA.js +0 -1
- package/sa/es/styles-CLG-_6P1.js +0 -1
- package/sav2/es/_auto-entry_sav2-Ba5P2hE2.js +0 -1
- package/sav2/es/index-5cZdTQMD.js +0 -1
- package/sav2/es/styles-CLGMprWo.js +0 -1
- package/svd/es/_auto-entry_svd-C_ppqQ_z.js +0 -1
- package/svd/es/index-CWYjKWZw.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-BJy9mQfK.js +0 -1
- package/svdv2/es/index-DBbzFqKL.js +0 -1
- package/svdv2/es/styles-DXROA0fx.js +0 -1
- package/tv4/es/_auto-entry_tv4-Ccjmr7GM.js +0 -1
- package/tv4/es/index-C7AMsD5G.js +0 -1
- package/tv4/es/styles-ckELchim.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-ChbrC2DU.js +0 -1
- package/tvnu/es/index-B8wrgCn1.js +0 -1
- package/tvnu/es/styles-ISAPJGR3.js +0 -1
- package/vg/es/_auto-entry_vg-3Iu8JLNf.js +0 -1
- package/vg/es/index-Cs4rhzuz.js +0 -1
- package/vg/es/styles-Rxd3uUc5.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-CvkC9xiP.js +0 -1
- package/vgv2/es/index-B9MSz06B.js +0 -1
- package/vgv2/es/styles-HGzV208f.js +0 -1
package/dr-edition/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";function n(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 i="opaque",o=e=>n(void 0,void 0,void 0,function*(){if(e.type!==i){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),r={get:(e,...t)=>n(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:i}=t,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(t,["timeout"]);if(i)return((e,t,i)=>n(void 0,void 0,void 0,function*(){const n=new AbortController,r=setTimeout(()=>n.abort(),i);try{const i=yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}));return o(i)}finally{clearTimeout(r)}}))(e,r,i);const a=yield fetch(e,r);return o(a)}),post:(e,t,i)=>n(void 0,void 0,void 0,function*(){const n=JSON.stringify(i),o=yield fetch(e,{method:"POST",headers:t,body:n});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},a=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},s=["netboard","board"];class d{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 n(this,void 0,void 0,function*(){var t,n,i;const o=yield this.identityFacade.getIdentityUser(),s=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",d=(null==o?void 0:o.userId)?String(o.userId):"",l=this.buildUrl(e,{envId:s,spid:d});try{a("Starting fetching DrEdition ad from URL:",l);const e=yield r.get(l);return a("Fetch operation completed successfully."),e}catch(e){a("Error during fetch operation:",e)}return null})}}class l{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,t){return n(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:o,videoLoop:r,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,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 c=e=>new URLSearchParams(window.location.search).get(e),u=e=>{if("0"===c("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()})())},v=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"))},p=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):a("Dr. Edition container does not have a parent element, cannot remove height lock.")};class g{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return n(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:o}},renderAsBackfill:r=!1}=t,s=e.querySelector(o);if(!s)return void a(`Container with selector "${o}" not found.`);const d=yield this.drEditionService.fetchData(t);return(null==d?void 0:d.itemId)||r?!(null==d?void 0:d.itemId)&&r?(a("No Dr. Edition ads available to render. Collapsing whole placement."),u(e.id),void p(s)):((null==d?void 0:d.itemId)&&r&&(a("Dr. Edition ad available to render as a Xandr backfill."),v(e.id)),void(d?(d.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(d.css,"style"),yield this.rendererManager.render(s,d,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(d,t),p(s),this.drEditionAds.push(d),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(d.itemId),this.observeAdView(e,d,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):p(s))):(a("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(s),this.showBackfill(e),void p(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:"";v(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 m=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 a("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),h="no",y="se",w="cmp:loaded";let f="undefined"!=typeof window?window._tcf_:void 0,b=!1;const E=(e,t,i)=>{const o=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,s=c("bypass_tcf"),d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(a("TCF bypass param detected, returning consent: true"),!0):(a("TCF is not enabled, returning consent: true"),!0))(o,s))return!0;if(b)return null;if(!f)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=f.getConsentedToAllSync();return a(`TCF consented to all is: ${t}`),f.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(a("Getting TCF consent manager..."),window._tcf_)return a("TCF consent manager is already available"),f=window._tcf_,void e(f);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(f=window._tcf_,e(f)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(w,n),b=!0,t(new Error("Timeout waiting for CMP to load"))},r);a("Listening for CMP loaded event..."),document.addEventListener(w,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&i===y,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&i===h;if(t||n)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield m(e);if(!(null==e?void 0:e.enabled))return!0;const o=d();return null!==o?o:yield new Promise((e,t)=>{try{if(!f)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{a("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);f.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),f.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},P=(e,t,i,...o)=>n(void 0,[e,t,i,...o],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return a(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=E(e,0,n);return(yield o())?(a(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(a(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),C="mobile";class T{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,i){return n(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:n}=E(i.tcf,i.isMobileApp,i.country),o=yield n(),r=i.device===C?t.mobileHTML:t.desktopHTML;const a=o?r:r.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var n,o,r;e.search=null!==(r=null===(o=(n=this.newsroomStrategy).getUrlSearchParams)||void 0===o?void 0:o.call(n,e,t,i))&&void 0!==r?r:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,i)})})}}class I{constructor(e){this.strategy=e}handle(e,t){return n(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return n(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,i=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!i)try{yield((e,...t)=>n(void 0,[e,...t],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)}))}))(t)}catch(e){a("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return n(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,o=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==o||o.appendChild(n),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 j{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,t,i){return n(this,void 0,void 0,function*(){var n,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,t,i,"view");(null===(n=this.pulse)||void 0===n?void 0:n.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,t,i){return n(this,void 0,void 0,function*(){var n,o,r,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,i,"click");this.pulse.trackLegacyClickUIElement?null===(o=(n=this.pulse).trackLegacyClickUIElement)||void 0===o||o.call(n,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 S extends j{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 k extends j{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 A="svd",L="vg",O="aftonbladet",U="e24",M="front",_=e=>n(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)))}))}),x={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 n(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return K})})}})}};class N{handleVideo(e,t){return n(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:i,autoplay:o,mute:r,vendor:a}}){yield n(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=>{x[e](c)});const u={id:t,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);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",()=>n(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===M?"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 V{handleVideo(e,t){return n(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 _(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 B=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class R{handleVideo(e,t){return n(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:i,autoplay:o,mute:r,vendor:a}}){const s={id:t,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({},B(e)?e:{}),{provider:Object.assign(Object.assign({},B(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-${t}`]},requestSettings:{}}}},d=yield _(s);d.once("PulseStats:ready",()=>n(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===M?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class ${handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const F=(e,t,n)=>{const{publisher:i,pageType:o,country:r}=e,a={[L]:new l,[U]:new N,[O]:new V,[A]:new R}[i]||new $,s=new(r===y?S:k)(n,a,o),c=new d(t,n),u=new T(a,s),v=new I(a);return new g(c,u,v,s)},q=({editionName:n,fallbackTargetId:i,children:o,pulseData:r,htmlAttributes:a})=>{const s=(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},d=s(r,"data-pulse"),l=s(a,"data");return e("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":n},d,l,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:o})]}))},H=()=>n(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 z{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 n(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 a("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return n(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 W=(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=F(n,i,o);e.forEach(e=>{var i,o;if(!e.isIntersecting)return;const a=e.target,s=null!==(i=a.dataset.editionName)&&void 0!==i?i:"",d=null!==(o=a.dataset.pulseColumnname)&&void 0!==o?o:"",l=Number(a.dataset.pulsePrimaryposition)||0;r.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:s,columnName:d,primaryPosition:l})),t.unobserve(a)})})(i,o,e,t,n),{rootMargin:"400% 0px"});o.forEach(e=>r.observe(e))},J=[],Q=(e,t)=>n(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:o,drEdition:r,pageContext:{deviceType:d,publisher:l,pageType:c,countryCode:u,isMobileApp:v}}=e;if(!(yield P(o,v,u,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,i;const{pageContext:{deviceType:o},placements:r,drEdition:a}=e,d=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,l=r[o]||r.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=s.some(e=>c.startsWith(e)),p=J.includes(c),g=(null===(i=null==u?void 0:u.drEdition)||void 0===i?void 0:i.editionName)||d;return u&&v&&!p&&g?(J.push(c),Object.assign(Object.assign({},u),{drEdition:Object.assign(Object.assign({},u.drEdition),{editionName:g})})):null})(e,t);if(!p)return;if(!(null==i?void 0:i.instance))return void a("Pulse has not been passed as a prop, aborting");const g=yield H(),m=new z(g),h=F({publisher:l,pageType:c,country:u},m,null==i?void 0:i.instance),y=document.getElementById(t.targetId);if(!y||!r)return;y.classList.value="";const w=document.createElement("div");w.className=r.options.containerSelector.replace(/^[.#:[\]]+/,""),y.innerHTML=w.outerHTML;const f={editionName:(null===(n=null==p?void 0:p.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:r,device:d,tcf:o,isMobileApp:v,country:u,renderAsBackfill:!0};yield h.fetchAndRenderAd(y,f)}),G=e=>n(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield P(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield H(),i=new z(n);W({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)}),X=(e,t)=>{var i,o,r;if(!(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})())return void a("Ad block not enabled, Dr. Edition backfills will not be rendered");a("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:s},finnBlink:d}=e,l=null===(o=null===(i=null==d?void 0:d.replacementConfig)||void 0===i?void 0:i.adsToReplace)||void 0===o?void 0:o[s],c=null!==(r=null==l?void 0:l.map(([e])=>e))&&void 0!==r?r:[],u=new IntersectionObserver((t,i)=>n(void 0,void 0,void 0,function*(){for(const n of t){if(!n.isIntersecting)continue;const t=n.target;i.unobserve(t),yield Q(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!c.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&u.observe(t)})};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 K=Object.freeze({__proto__:null,default:Z});export{q as DrEdition,F as getDrEditionManager,G as handleDrEdition,Q as handleDrEditionBackfill,X as handleDrEditionBackfillOnAdblock};
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";function n(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 i="opaque",o=e=>n(void 0,void 0,void 0,function*(){if(e.type!==i){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),r={get:(e,...t)=>n(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:i}=t,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(t,["timeout"]);if(i)return((e,t,i)=>n(void 0,void 0,void 0,function*(){const n=new AbortController,r=setTimeout(()=>n.abort(),i);try{const i=yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}));return o(i)}finally{clearTimeout(r)}}))(e,r,i);const a=yield fetch(e,r);return o(a)}),post:(e,t,i)=>n(void 0,void 0,void 0,function*(){const n=JSON.stringify(i),o=yield fetch(e,{method:"POST",headers:t,body:n});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},a=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},s=["netboard","board"];class d{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 n(this,void 0,void 0,function*(){var t,n,i;const o=yield this.identityFacade.getIdentityUser(),s=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",d=(null==o?void 0:o.userId)?String(o.userId):"",l=this.buildUrl(e,{envId:s,spid:d});try{a("Starting fetching DrEdition ad from URL:",l);const e=yield r.get(l);return a("Fetch operation completed successfully."),e}catch(e){a("Error during fetch operation:",e)}return null})}}class l{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,t){return n(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:o,videoLoop:r,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,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 c=e=>new URLSearchParams(window.location.search).get(e),u=e=>{if("0"===c("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()})())},v=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"))},p=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):a("Dr. Edition container does not have a parent element, cannot remove height lock.")};class g{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return n(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:o}},renderAsBackfill:r=!1}=t,s=e.querySelector(o);if(!s)return void a(`Container with selector "${o}" not found.`);const d=yield this.drEditionService.fetchData(t);return(null==d?void 0:d.itemId)||r?!(null==d?void 0:d.itemId)&&r?(a("No Dr. Edition ads available to render. Collapsing whole placement."),u(e.id),void p(s)):((null==d?void 0:d.itemId)&&r&&(a("Dr. Edition ad available to render as a Xandr backfill."),v(e.id)),void(d?(d.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(d.css,"style"),yield this.rendererManager.render(s,d,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(d,t),p(s),this.drEditionAds.push(d),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(d.itemId),this.observeAdView(e,d,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):p(s))):(a("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(s),this.showBackfill(e),void p(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:"";v(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 m=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 a("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),h="no",y="se",w="cmp:loaded";let f="undefined"!=typeof window?window._tcf_:void 0,b=!1;const E=(e,t,i)=>{const o=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,s=c("bypass_tcf"),d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(a("TCF bypass param detected, returning consent: true"),!0):(a("TCF is not enabled, returning consent: true"),!0))(o,s))return!0;if(b)return null;if(!f)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=f.getConsentedToAllSync();return a(`TCF consented to all is: ${t}`),f.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(a("Getting TCF consent manager..."),window._tcf_)return a("TCF consent manager is already available"),f=window._tcf_,void e(f);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(f=window._tcf_,e(f)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(w,n),b=!0,t(new Error("Timeout waiting for CMP to load"))},r);a("Listening for CMP loaded event..."),document.addEventListener(w,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&i===y,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&i===h;if(t||n)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield m(e);if(!(null==e?void 0:e.enabled))return!0;const o=d();return null!==o?o:yield new Promise((e,t)=>{try{if(!f)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{a("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);f.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),f.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},P=(e,t,i,...o)=>n(void 0,[e,t,i,...o],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return a(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=E(e,0,n);return(yield o())?(a(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(a(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),C="mobile";class T{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,i){return n(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:n}=E(i.tcf,i.isMobileApp,i.country),o=yield n(),r=i.device===C?t.mobileHTML:t.desktopHTML;const a=o?r:r.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var n,o,r;e.search=null!==(r=null===(o=(n=this.newsroomStrategy).getUrlSearchParams)||void 0===o?void 0:o.call(n,e,t,i))&&void 0!==r?r:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,i)})})}}class j{constructor(e){this.strategy=e}handle(e,t){return n(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return n(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,i=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!i)try{yield((e,...t)=>n(void 0,[e,...t],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)}))}))(t)}catch(e){a("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return n(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,o=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==o||o.appendChild(n),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 I{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,t,i){return n(this,void 0,void 0,function*(){var n,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,t,i,"view");(null===(n=this.pulse)||void 0===n?void 0:n.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,t,i){return n(this,void 0,void 0,function*(){var n,o,r,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,i,"click");this.pulse.trackLegacyClickUIElement?null===(o=(n=this.pulse).trackLegacyClickUIElement)||void 0===o||o.call(n,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 S extends I{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 k extends I{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 A="svd",L="vg",O="aftonbladet",U="e24",M="front",_=e=>n(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)))}))}),x={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 n(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return te})})}})},SeamlessVideo:()=>{window.SVP.Player.Plugins.register({getName:()=>"SeamlessVideo",setup(){return n(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Y})})}})}};class V{handleVideo(e,t){return n(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:i,autoplay:o,mute:r,vendor:a}}){yield n(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=>{x[e](c)});const u={id:t,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);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",()=>n(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===M?"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 N="https://www.aftonbladet.se/video-player-extras/latest/";class D{handleVideo(e,t){return n(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:{[`${N}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${N}external-link.js`]:{name:"ExternalLink"}}};yield _(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 B=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class R{handleVideo(e,t){return n(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:i,autoplay:o,mute:r,vendor:a}}){const s={id:t,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({},B(e)?e:{}),{provider:Object.assign(Object.assign({},B(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-${t}`]},requestSettings:{}}}},d=yield _(s);d.once("PulseStats:ready",()=>n(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===M?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class ${handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const F=(e,t,n)=>{const{publisher:i,pageType:o,country:r}=e,a={[L]:new l,[U]:new V,[O]:new D,[A]:new R}[i]||new $,s=new(r===y?S:k)(n,a,o),c=new d(t,n),u=new T(a,s),v=new j(a);return new g(c,u,v,s)},q=({editionName:n,fallbackTargetId:i,children:o,pulseData:r,htmlAttributes:a})=>{const s=(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},d=s(r,"data-pulse"),l=s(a,"data");return e("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":n},d,l,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:o})]}))},H=()=>n(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 z{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 n(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 a("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return n(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 W=(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=F(n,i,o);e.forEach(e=>{var i,o;if(!e.isIntersecting)return;const a=e.target,s=null!==(i=a.dataset.editionName)&&void 0!==i?i:"",d=null!==(o=a.dataset.pulseColumnname)&&void 0!==o?o:"",l=Number(a.dataset.pulsePrimaryposition)||0;r.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:s,columnName:d,primaryPosition:l})),t.unobserve(a)})})(i,o,e,t,n),{rootMargin:"400% 0px"});o.forEach(e=>r.observe(e))},J=[],Q=(e,t)=>n(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:o,drEdition:r,pageContext:{deviceType:d,publisher:l,pageType:c,countryCode:u,isMobileApp:v}}=e;if(!(yield P(o,v,u,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,i;const{pageContext:{deviceType:o},placements:r,drEdition:a}=e,d=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,l=r[o]||r.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=s.some(e=>c.startsWith(e)),p=J.includes(c),g=(null===(i=null==u?void 0:u.drEdition)||void 0===i?void 0:i.editionName)||d;return u&&v&&!p&&g?(J.push(c),Object.assign(Object.assign({},u),{drEdition:Object.assign(Object.assign({},u.drEdition),{editionName:g})})):null})(e,t);if(!p)return;if(!(null==i?void 0:i.instance))return void a("Pulse has not been passed as a prop, aborting");const g=yield H(),m=new z(g),h=F({publisher:l,pageType:c,country:u},m,null==i?void 0:i.instance),y=document.getElementById(t.targetId);if(!y||!r)return;y.classList.value="";const w=document.createElement("div");w.className=r.options.containerSelector.replace(/^[.#:[\]]+/,""),y.innerHTML=w.outerHTML;const f={editionName:(null===(n=null==p?void 0:p.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:r,device:d,tcf:o,isMobileApp:v,country:u,renderAsBackfill:!0};yield h.fetchAndRenderAd(y,f)}),G=e=>n(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield P(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield H(),i=new z(n);W({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)}),X=(e,t)=>{var i,o,r;if(!(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})())return void a("Ad block not enabled, Dr. Edition backfills will not be rendered");a("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:s},finnBlink:d}=e,l=null===(o=null===(i=null==d?void 0:d.replacementConfig)||void 0===i?void 0:i.adsToReplace)||void 0===o?void 0:o[s],c=null!==(r=null==l?void 0:l.map(([e])=>e))&&void 0!==r?r:[],u=new IntersectionObserver((t,i)=>n(void 0,void 0,void 0,function*(){for(const n of t){if(!n.isIntersecting)continue;const t=n.target;i.unobserve(t),yield Q(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!c.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&u.observe(t)})};function Z(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}const K=Z(".ad-player-wrapper .jw-slider-time{display:none}.ad-player-wrapper .jw-button-container{padding:0}.ad-player-wrapper .jw-icon{color:#fff}.ad-player-wrapper .jw-icon-volume,.ad-player-wrapper .jw-icon-playback{width:30px}");var Y=Object.freeze({__proto__:null,default:K});const ee=Z("[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 te=Object.freeze({__proto__:null,default:ee});export{q as DrEdition,F as getDrEditionManager,G as handleDrEdition,Q as handleDrEditionBackfill,X as handleDrEditionBackfillOnAdblock};
|