@schibsted/advertory 3.17.3 → 3.18.0-no-issue.1
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 -1
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.d.ts +6 -1
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.d.ts +25 -4
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-BWUl_s4k.js +1 -0
- package/aftenposten/es/{events-BakZyPiF.js → events-CZJW-RDX.js} +1 -1
- package/aftenposten/es/identity-facade-DxRuUHtC.js +1 -0
- package/aftenposten/es/{index-DmAryKai.js → index-BbLJDzU9.js} +1 -1
- package/aftenposten/es/{index-Y61-K0-j.js → index-BqBcmig8.js} +1 -1
- package/aftenposten/es/index-CZPGZviN.js +1 -0
- package/aftenposten/es/index-Cpfp7go_.js +1 -0
- package/aftenposten/es/{index-DE2eFbE4.js → index-DNZe4EyH.js} +1 -1
- package/aftenposten/es/{index-Ci5Fq3pY.js → index-DdDdPtI1.js} +1 -1
- package/aftenposten/es/{index-BqtiIE9j.js → index-P_-01_ir.js} +1 -1
- package/aftenposten/es/{index-B0weyrUI.js → index-U4THMtW5.js} +1 -1
- package/aftenposten/es/index.d.ts +25 -4
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-BP8RnxXT.js → styles-B0I8pfXO.js} +1 -1
- package/aftenposten/es/{styles-pDM1TuiG.js → styles-BErqrDLT.js} +1 -1
- package/aftenposten/es/{styles-B3DQSVEX.js → styles-BL6j2JsH.js} +1 -1
- package/aftenposten/es/{styles-Dc-23vIm.js → styles-BqLOGjcB.js} +1 -1
- package/aftenposten/es/{styles-Cnb69FPt.js → styles-Bz4HZdkm.js} +1 -1
- package/aftenposten/es/{styles-DXaafc97.js → styles-C5_9_i7v.js} +1 -1
- package/aftenposten/es/{styles-w7N9sIkQ.js → styles-CKu2Bs1_.js} +1 -1
- package/aftenposten/es/{styles-DbkR_81Z.js → styles-DVGIUlpj.js} +1 -1
- package/aftenposten/es/{styles-BMgTMPVA.js → styles-hPr8HcnU.js} +1 -1
- package/aftenposten/es/{styles-fSCaFYq3.js → styles-jqkq4APO.js} +1 -1
- package/aftenposten/es/{styles-DCGX00AR.js → styles-ufEgf-Hq.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-_z7Q5Q7B.js +1 -0
- package/aftenpostenv2/es/{events-vFxFcBFY.js → events-Ckp13LaN.js} +1 -1
- package/aftenpostenv2/es/identity-facade-B65CiuOZ.js +1 -0
- package/aftenpostenv2/es/index-B6p9Vrp9.js +1 -0
- package/aftenpostenv2/es/{index-BORfNCfl.js → index-BbgvELNh.js} +1 -1
- package/aftenpostenv2/es/{index-BzIPIQlR.js → index-BoUbnbEA.js} +1 -1
- package/aftenpostenv2/es/{index-bu82MskF.js → index-CJnEhN8f.js} +1 -1
- package/aftenpostenv2/es/index-CcQkQ71N.js +1 -0
- package/aftenpostenv2/es/{index-BNsm3sza.js → index-CrvRuKDj.js} +1 -1
- package/aftenpostenv2/es/{index-CE3zyO-s.js → index-CvqzXHiz.js} +1 -1
- package/aftenpostenv2/es/{index-C6o6H3rD.js → index-D3-ANsZW.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +25 -4
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-CrKxUXak.js → styles-BTYRHLRq.js} +1 -1
- package/aftenpostenv2/es/{styles-CfDUxRlT.js → styles-BggaavQu.js} +1 -1
- package/aftenpostenv2/es/{styles-DSZABaqe.js → styles-CAquGrAo.js} +1 -1
- package/aftenpostenv2/es/{styles-C3tA1qVG.js → styles-CJHoS2U6.js} +1 -1
- package/aftenpostenv2/es/{styles-C9KcvIrm.js → styles-Cn00TiUa.js} +1 -1
- package/aftenpostenv2/es/{styles-Bv3fC79e.js → styles-CqDqFvay.js} +1 -1
- package/aftenpostenv2/es/{styles-DGYGS77o.js → styles-CwZd3grk.js} +1 -1
- package/aftenpostenv2/es/{styles-Bo1Osfh2.js → styles-CwjH-wAn.js} +1 -1
- package/aftenpostenv2/es/{styles-CpTRDnEr.js → styles-DbIo_xoe.js} +1 -1
- package/aftenpostenv2/es/{styles-D9mUlhzN.js → styles-Dj_EN_Hw.js} +1 -1
- package/aftenpostenv2/es/{styles-Dod5Pact.js → styles-V0ekT45h.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +25 -4
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CdiGgrtm.js +1 -0
- package/aftonbladet/es/{events-CllJmzBm.js → events-474Sp70g.js} +1 -1
- package/aftonbladet/es/identity-facade-Dj5-DopI.js +1 -0
- package/aftonbladet/es/{index-DSWRH1Jg.js → index--6Ve3pvg.js} +1 -1
- package/aftonbladet/es/{index-CQZ4fqal.js → index-BSmdGy__.js} +1 -1
- package/aftonbladet/es/index-CCXMTLPZ.js +1 -0
- package/aftonbladet/es/{index-DxCSaps1.js → index-D6aO0uq-.js} +1 -1
- package/aftonbladet/es/index-Df3dJExx.js +1 -0
- package/aftonbladet/es/{index-BMrgDbpw.js → index-L_5KP2Dl.js} +1 -1
- package/aftonbladet/es/{index-BtWKibaA.js → index-Lk7dCEOo.js} +1 -1
- package/aftonbladet/es/{index-CNg6LTKO.js → index-WjtO0BpT.js} +1 -1
- package/aftonbladet/es/index.d.ts +25 -4
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-D9Tu4mQ5.js → styles-BUsuC6Vt.js} +1 -1
- package/aftonbladet/es/{styles-w-g-y6lI.js → styles-BjINrUVV.js} +1 -1
- package/aftonbladet/es/{styles-CYGn0uwQ.js → styles-CvfT_zUc.js} +1 -1
- package/aftonbladet/es/{styles-DSuXLA-G.js → styles-Du2flY4N.js} +1 -1
- package/aftonbladet/es/{styles-Ds_pdjCT.js → styles-FB9dlHgS.js} +1 -1
- package/aftonbladet/es/{styles-DajJqIJ6.js → styles-JRGM57lr.js} +1 -1
- package/aftonbladet/es/{styles-BaT7xTNZ.js → styles-_yHnhosG.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-BjaS1StL.js +1 -0
- package/aftonbladetv2/es/{events-BTQYlE4z.js → events-lxftMUS5.js} +1 -1
- package/aftonbladetv2/es/identity-facade--kUhyv2K.js +1 -0
- package/aftonbladetv2/es/index-B87m1_QT.js +1 -0
- package/aftonbladetv2/es/{index-DLKbIJ-6.js → index-CqGf0TtK.js} +1 -1
- package/aftonbladetv2/es/{index-C5NPR1-m.js → index-D2hQqkfx.js} +1 -1
- package/aftonbladetv2/es/{index-BVz8_dGm.js → index-DVAxLpvT.js} +1 -1
- package/aftonbladetv2/es/{index-DGryPq5p.js → index-Ddx_llgj.js} +1 -1
- package/aftonbladetv2/es/{index-DKIljxtC.js → index-OOy5kNjB.js} +1 -1
- package/aftonbladetv2/es/{index-CI4mHGgl.js → index-dCwA_AlF.js} +1 -1
- package/aftonbladetv2/es/index-zGBUVKso.js +1 -0
- package/aftonbladetv2/es/index.d.ts +25 -4
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-BuDgf6Qh.js → styles-BMcAuvPo.js} +1 -1
- package/aftonbladetv2/es/{styles-Dm48yxHj.js → styles-CmkcQw05.js} +1 -1
- package/aftonbladetv2/es/{styles-CtZYGlVa.js → styles-CsP5z0lL.js} +1 -1
- package/aftonbladetv2/es/{styles-LIJqt1Fs.js → styles-D610lhpC.js} +1 -1
- package/aftonbladetv2/es/{styles-BHjBufYm.js → styles-DALNcZV7.js} +1 -1
- package/aftonbladetv2/es/{styles-DNvKyAG2.js → styles-DX67sWfR.js} +1 -1
- package/aftonbladetv2/es/{styles-BhGxCZKJ.js → styles-p_eawZTm.js} +1 -1
- package/brandmetrics/cjs/index.js +1 -1
- package/brandmetrics/es/index.js +1 -1
- package/bt/cjs/index.d.ts +25 -4
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-q3esUuvn.js +1 -0
- package/bt/es/{events-QdGrCsME.js → events-BMecocbf.js} +1 -1
- package/bt/es/identity-facade-Br6nKhQr.js +1 -0
- package/bt/es/index-3ub03vbq.js +1 -0
- package/bt/es/{index-CWyqinTF.js → index-7HVaEndb.js} +1 -1
- package/bt/es/{index-DE5oE3LU.js → index-Ctvv5Tkb.js} +1 -1
- package/bt/es/{index-BNwzTf_4.js → index-Czd1zTYi.js} +1 -1
- package/{sa/es/index-sAZnIVZD.js → bt/es/index-DX-0jkcE.js} +1 -1
- package/bt/es/index-Hs9PnSDf.js +1 -0
- package/bt/es/{index-BPq3-G1u.js → index-PLNExfvm.js} +1 -1
- package/bt/es/{index-CbsaLJJs.js → index-tCd5A2I_.js} +1 -1
- package/bt/es/index.d.ts +25 -4
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-C-HKDal6.js → styles-AGJSGeYa.js} +1 -1
- package/bt/es/{styles-B_CfTWpC.js → styles-AvVEXQua.js} +1 -1
- package/bt/es/{styles-Dz_mjOky.js → styles-B11xbsFG.js} +1 -1
- package/{sa/es/styles-BGNGJdjv.js → bt/es/styles-BHc1ekXs.js} +1 -1
- package/bt/es/{styles-K_Cy-GX8.js → styles-BlELjh5y.js} +1 -1
- package/bt/es/{styles-DUX9_U_G.js → styles-C5j3Ca5D.js} +1 -1
- package/bt/es/{styles-DpUy4TjI.js → styles-CTagi6ej.js} +1 -1
- package/{vg/es/styles-DO48QaHN.js → bt/es/styles-CpjyQ2Qx.js} +1 -1
- package/bt/es/{styles-D0rpulrE.js → styles-DRu66zB_.js} +1 -1
- package/bt/es/{styles-CGeziON4.js → styles-DUHEo6ot.js} +1 -1
- package/btv2/es/_auto-entry_btv2-blOPzoM6.js +1 -0
- package/{sav2/es/events--V9H3X-z.js → btv2/es/events-BVyVuzSr.js} +1 -1
- package/btv2/es/identity-facade-BSa_Bx7n.js +1 -0
- package/btv2/es/index-BFo8DNdW.js +1 -0
- package/btv2/es/index-Ch8APzv_.js +1 -0
- package/btv2/es/{index-DQCYe43A.js → index-CvWMp-BV.js} +1 -1
- package/{omni/es/index-C3Q814r2.js → btv2/es/index-DQrHqEFO.js} +1 -1
- package/{sav2/es/index-D4Hxkads.js → btv2/es/index-DoRVJw1R.js} +1 -1
- package/btv2/es/{index-p-Wu9qmN.js → index-Du5SjgQy.js} +1 -1
- package/btv2/es/{index-_1WEzNOh.js → index-Zfm3nFF6.js} +1 -1
- package/btv2/es/{index-4ysd4A7K.js → index-io0Va-0H.js} +1 -1
- package/btv2/es/index.d.ts +25 -4
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-DMF9Z1dt.js → btv2/es/styles-CBsGwKkK.js} +1 -1
- package/{sav2/es/styles-WFP5Fozc.js → btv2/es/styles-CJiDW3i6.js} +1 -1
- package/btv2/es/{styles-DyFP9zsK.js → styles-Coikry5X.js} +1 -1
- package/{sav2/es/styles-jXzGh7gC.js → btv2/es/styles-CvXP7uzP.js} +1 -1
- package/{vgv2/es/styles-DtKJ-J7F.js → btv2/es/styles-DVoPhltZ.js} +1 -1
- package/{sav2/es/styles-CpXnuTL4.js → btv2/es/styles-Djdj2L-O.js} +1 -1
- package/btv2/es/{styles-Bc9_7msJ.js → styles-DsUBiBF_.js} +1 -1
- package/btv2/es/{styles-BwgZ6h4w.js → styles-Zo6hcV5N.js} +1 -1
- package/btv2/es/{styles-B8bkA3_5.js → styles-wJYWWh3Q.js} +1 -1
- package/btv2/styles.css +1 -1
- package/common/cjs/index.js +1 -1
- package/common/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-WZSQP5dL.js +1 -0
- package/e24/es/{events-CtniS6m3.js → events-hZPS0msk.js} +1 -1
- package/e24/es/{index-4Zm0Grmh.js → index-BHgagogK.js} +1 -1
- package/e24/es/index-BkYYzMk7.js +1 -0
- package/e24/es/{index-CfS9YWLe.js → index-CPifEKMW.js} +1 -1
- package/e24/es/index-CY0ROjqG.js +1 -0
- package/e24/es/{index-BM2r1wLq.js → index-CujyeBUu.js} +1 -1
- package/e24/es/{index-CIlYOp5N.js → index-DXUt_FuU.js} +1 -1
- package/e24/es/{index-Ci-qNYB_.js → index-KaIB2lL5.js} +1 -1
- package/e24/es/{index-DKfGdWTL.js → index-cYEvZD9f.js} +1 -1
- package/e24/es/index.d.ts +25 -4
- package/e24/es/index.js +1 -1
- package/{tv4/es/styles-BAxYdJA1.js → e24/es/styles-B4YjE2W_.js} +1 -1
- package/e24/es/{styles-D7w8P_5v.js → styles-B7OreVfA.js} +1 -1
- package/e24/es/{styles-DcGRyDQP.js → styles-BWRO9wIK.js} +1 -1
- package/e24/es/{styles-CYk14rdS.js → styles-BX_zCrm7.js} +1 -1
- package/e24/es/{styles-C-oO0oDe.js → styles-BZG7ExwH.js} +1 -1
- package/e24/es/{styles-DnRAFVxv.js → styles-BnkKrrsi.js} +1 -1
- package/e24/es/{styles-CezDMrIZ.js → styles-Bpg3mYrx.js} +1 -1
- package/e24/es/{styles-BHKszP6X.js → styles-Bx-9NZab.js} +1 -1
- package/e24/es/{styles-CzB5N6Nl.js → styles-CLxhxpfa.js} +1 -1
- package/e24/es/{styles-SNZbYMgv.js → styles-DVS49mr7.js} +1 -1
- package/e24/es/{styles-DmMYkAFs.js → styles-DsdHFqkp.js} +1 -1
- package/e24/es/{styles-DzEznh_S.js → styles-lFgR0zqz.js} +1 -1
- package/editory/cjs/index.d.ts +6 -1
- package/editory/es/index.d.ts +6 -1
- package/fotbollskanalen/cjs/index.d.ts +25 -4
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-xRHg3rRX.js +1 -0
- package/fotbollskanalen/es/{events-BJ6mPaCc.js → events-D8taGH8W.js} +1 -1
- package/fotbollskanalen/es/identity-facade-DFYD733z.js +1 -0
- package/fotbollskanalen/es/{index-Cg7_oqDR.js → index-B3sM6a_K.js} +1 -1
- package/fotbollskanalen/es/index-BX6P9-vA.js +1 -0
- package/fotbollskanalen/es/{index-hYl9FgdN.js → index-C6Wq_SqS.js} +1 -1
- package/fotbollskanalen/es/{index-K_6o99m1.js → index-CevcP1bg.js} +1 -1
- package/fotbollskanalen/es/index-Ci3WSVHM.js +1 -0
- package/fotbollskanalen/es/{index-DCPogE5b.js → index-DVbjL5N8.js} +1 -1
- package/fotbollskanalen/es/{index-YD7CRD4F.js → index-DW7Yc1HM.js} +1 -1
- package/fotbollskanalen/es/{index-CcCWGFRI.js → index-nJVSD3G0.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +25 -4
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-BDfacPqd.js → styles-CRimium2.js} +1 -1
- package/fotbollskanalen/es/{styles-2f9vh7tO.js → styles-DOQn9ta7.js} +1 -1
- package/fotbollskanalen/es/{styles-D3eqs7xM.js → styles-Di68mZZR.js} +1 -1
- package/fotbollskanalen/es/{styles-Cze8UsvM.js → styles-dgieQbLu.js} +1 -1
- package/fotbollskanalen/es/{styles-BsW1z6U1.js → styles-hzDToQGi.js} +1 -1
- package/glimr/cjs/index.js +1 -1
- package/glimr/es/index.js +1 -1
- package/godt/cjs/index.d.ts +25 -4
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +6 -1
- package/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.d.ts +6 -1
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.d.ts +25 -4
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +25 -4
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-DnbOiCOS.js +1 -0
- package/koket/es/{events-CJgWZC6E.js → events-BJ9f8qfO.js} +1 -1
- package/koket/es/identity-facade-GrkXxjiN.js +1 -0
- package/koket/es/{index-Bc3NO9Mw.js → index-CWt1eVCp.js} +1 -1
- package/koket/es/{index-B4K9iUVT.js → index-CxwBag2W.js} +1 -1
- package/koket/es/{index-C2olyB1x.js → index-D-278DkW.js} +1 -1
- package/koket/es/{index-FpW7qdqo.js → index-Dj7SPjju.js} +1 -1
- package/koket/es/index-DmsaPddA.js +1 -0
- package/koket/es/index-DrBOcrYa.js +1 -0
- package/koket/es/{index-DOXR-6vM.js → index-DuMVecPG.js} +1 -1
- package/koket/es/{index-BO7-UQcf.js → index-vjv1ARfD.js} +1 -1
- package/koket/es/index.d.ts +25 -4
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-CzsWVNYE.js → koket/es/styles-BXHbuhtT.js} +1 -1
- package/koket/es/{styles-BwESZmQi.js → styles-BYWxTuT6.js} +1 -1
- package/koket/es/{styles-BBI31SR8.js → styles-BjMXX0ZS.js} +1 -1
- package/koket/es/{styles-BRxC9raX.js → styles-CFyCcjtk.js} +1 -1
- package/{svdv2/es/styles-CGWD917e.js → koket/es/styles-e1pKoZgC.js} +1 -1
- package/minmote/cjs/index.d.ts +25 -4
- package/minmote/cjs/index.js +1 -1
- package/mtv/es/_auto-entry_mtv-CWjDKMS2.js +1 -0
- package/mtv/es/identity-facade-WjtiSyIt.js +1 -0
- package/mtv/es/index-BLVNluUr.js +1 -0
- package/mtv/es/index-BUag4wG0.js +1 -0
- package/mtv/es/{index-B3fi7Kjz.js → index-CHtdIWUv.js} +1 -1
- package/mtv/es/index-ylKS-Wrs.js +1 -0
- package/mtv/es/index.d.ts +27 -6
- package/mtv/es/index.js +1 -1
- package/{svd/es/styles-Ili64SUo.js → mtv/es/styles-BUywiU9N.js} +1 -1
- package/omni/es/_auto-entry_omni-BKRA8dcO.js +1 -0
- package/omni/es/{events-D8oXnK9A.js → events-BOtlUVC6.js} +1 -1
- package/omni/es/identity-facade-Bp_iQ3hy.js +1 -0
- package/omni/es/index-Byabm41K.js +1 -0
- package/omni/es/index-BzY5nq8N.js +1 -0
- package/{btv2/es/index-BxQ9QWgL.js → omni/es/index-CB3WSxn8.js} +1 -1
- package/omni/es/{index-CQHXVyOc.js → index-DCzyefss.js} +1 -1
- package/omni/es/{index-B1CsqT1v.js → index-DkpJ_ghf.js} +1 -1
- package/omni/es/{index-Do_Anxwk.js → index-Dn_u9hBY.js} +1 -1
- package/omni/es/{index-DoI3bFIC.js → index-Jvlz6JAw.js} +1 -1
- package/omni/es/{index-oYzDmTix.js → index-hpYxtt8_.js} +1 -1
- package/omni/es/index.d.ts +25 -4
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-QXlcLvKz.js → styles-B395Ktll.js} +1 -1
- package/omni/es/{styles-DmYIWMWw.js → styles-BQCPia9w.js} +1 -1
- package/omni/es/{styles-Dh_pACB9.js → styles-Kya-6hze.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +25 -4
- package/pent/cjs/index.js +1 -1
- package/pulse/cjs/index.d.ts +8 -3
- package/pulse/cjs/index.js +1 -1
- package/pulse/es/index.d.ts +8 -3
- package/pulse/es/index.js +1 -1
- package/sa/cjs/index.d.ts +25 -4
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-DYNCUaO9.js +1 -0
- package/sa/es/{events-DJlxmoyQ.js → events-B762grJL.js} +1 -1
- package/sa/es/identity-facade-BHn6rIVT.js +1 -0
- package/sa/es/index-BE9AO2hY.js +1 -0
- package/sa/es/{index-D-jh7EcB.js → index-BarfqnSX.js} +1 -1
- package/sa/es/{index-CwXblevG.js → index-Bh6K2QMA.js} +1 -1
- package/sa/es/index-CJz8hgtM.js +1 -0
- package/sa/es/{index-DdxQE4LO.js → index-Cayela7L.js} +1 -1
- package/sa/es/{index-BQQH0v-V.js → index-CtxVR_Hl.js} +1 -1
- package/{bt/es/index-BEn9Oc7O.js → sa/es/index-DLD_3Jw4.js} +1 -1
- package/sa/es/{index-BBpzoo6q.js → index-kWzZgkSX.js} +1 -1
- package/sa/es/index.d.ts +25 -4
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-BbYBBoEu.js → styles-BYzVFwye.js} +1 -1
- package/{vg/es/styles-CA2O0zNt.js → sa/es/styles-CD4Fhthm.js} +1 -1
- package/sa/es/{styles-CxMgRiB0.js → styles-CGl3jhGd.js} +1 -1
- package/sa/es/{styles-BqoJN48z.js → styles-Cn1mwyFQ.js} +1 -1
- package/sa/es/{styles-CR2l0VPi.js → styles-DVWIxkt9.js} +1 -1
- package/sa/es/{styles-CZbGc4JN.js → styles-DbGdhxH4.js} +1 -1
- package/sa/es/{styles-COBYxap6.js → styles-DqAwlIeH.js} +1 -1
- package/sa/es/{styles-dtFf-QzC.js → styles-DwJwOLPK.js} +1 -1
- package/{vg/es/styles-BvJq1DbU.js → sa/es/styles-MAGpRDb7.js} +1 -1
- package/sa/es/{styles-CsqrQMUa.js → styles-jk8vv0La.js} +1 -1
- package/sav2/es/_auto-entry_sav2-DyuWcccs.js +1 -0
- package/{tvnu/es/events-CYIyY_O8.js → sav2/es/events-D5lYc7K2.js} +1 -1
- package/sav2/es/identity-facade-BZkmeZUQ.js +1 -0
- package/sav2/es/{index-Cfn4EpE3.js → index-2UK8DR-y.js} +1 -1
- package/sav2/es/{index-DU69N01e.js → index-BJSLRS2s.js} +1 -1
- package/sav2/es/index-C43vrxNn.js +1 -0
- package/{tvnu/es/index-n2OqZE3x.js → sav2/es/index-CKGxlrTt.js} +1 -1
- package/sav2/es/{index-BHVPw0uA.js → index-Cfx6Rel9.js} +1 -1
- package/{tvnu/es/index-D53Lfqpz.js → sav2/es/index-CiVc_8YI.js} +1 -1
- package/sav2/es/index-DKS7C_7e.js +1 -0
- package/sav2/es/{index-DVdqEzgu.js → index-DjvyYhI_.js} +1 -1
- package/sav2/es/index.d.ts +25 -4
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-D8oEO915.js → sav2/es/styles-B8NZopko.js} +1 -1
- package/{vgv2/es/styles-BZDzqgQY.js → sav2/es/styles-BDhfh5su.js} +1 -1
- package/sav2/es/{styles-CEF-0mza.js → styles-Bjqjzybq.js} +1 -1
- package/{btv2/es/styles-DucQJHxT.js → sav2/es/styles-C2H4RMKQ.js} +1 -1
- package/sav2/es/{styles-ZhK4-day.js → styles-CxbH5UA2.js} +1 -1
- package/sav2/es/{styles-F7jUJjJn.js → styles-D-8e1O80.js} +1 -1
- package/{btv2/es/styles-DAHadlhX.js → sav2/es/styles-DgLkJN0M.js} +1 -1
- package/sav2/es/{styles-C4-rOm8X.js → styles-Dhk5nxiL.js} +1 -1
- package/sav2/es/{styles-CFf2Ku9c.js → styles-jfZhazb5.js} +1 -1
- package/svd/cjs/index.d.ts +25 -4
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-Dh1L1ZTe.js +1 -0
- package/svd/es/{events-CXoatmpv.js → events-BfWtxZkh.js} +1 -1
- package/svd/es/identity-facade-DDv8aYXn.js +1 -0
- package/svd/es/{index-DonfcwIE.js → index-BV7wv2Y7.js} +1 -1
- package/svd/es/index-BxhyDQTd.js +1 -0
- package/svd/es/{index-BMn-d7Z_.js → index-C5ZEbfyX.js} +1 -1
- package/svd/es/{index-ntuGyR2_.js → index-CIQBNQom.js} +1 -1
- package/svd/es/{index-UhMbVarR.js → index-CmutQVjh.js} +1 -1
- package/svd/es/{index-BXR4R0DG.js → index-DtCyh9dg.js} +1 -1
- package/svd/es/index-DvGlhxqG.js +1 -0
- package/svd/es/{index-KSUkz5Ec.js → index-NC_G8CHE.js} +1 -1
- package/svd/es/index.d.ts +25 -4
- package/svd/es/index.js +1 -1
- package/{mtv/es/styles-Cfow3icP.js → svd/es/styles-BXrEFmlc.js} +1 -1
- package/svd/es/{styles-B6N0NAK1.js → styles-CQISYjSC.js} +1 -1
- package/svd/es/{styles-CzzKpKOY.js → styles-DObhN2H3.js} +1 -1
- package/svd/es/{styles-xB_mBaye.js → styles-DSdFfMyd.js} +1 -1
- package/svd/es/{styles-2098DKtE.js → styles-lM_sfnc7.js} +1 -1
- package/svd/es/{styles-BHFhjoVx.js → styles-m8p6a-dP.js} +1 -1
- package/svd/es/{styles-BsUvk2WV.js → styles-y0tx_5Nt.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-Dlk4fJ5Z.js +1 -0
- package/svdv2/es/{events-rieoT5HD.js → events-BRDx14sk.js} +1 -1
- package/svdv2/es/identity-facade-B5Q9Uzd9.js +1 -0
- package/svdv2/es/{index-BSzaY9HS.js → index-B43y6hjO.js} +1 -1
- package/svdv2/es/{index-B7VeIIa1.js → index-Bks9HAk6.js} +1 -1
- package/svdv2/es/{index-C6jaff-U.js → index-COwdQHN3.js} +1 -1
- package/svdv2/es/{index-SZHJspYo.js → index-CQ4SkQFm.js} +1 -1
- package/svdv2/es/{index-B82Dt7Y9.js → index-CQu4_uWu.js} +1 -1
- package/svdv2/es/index-CyOvYZf6.js +1 -0
- package/svdv2/es/{index-j0sWy6XQ.js → index-DZUGzW2m.js} +1 -1
- package/svdv2/es/index-aL_wTiP4.js +1 -0
- package/svdv2/es/index.d.ts +25 -4
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-BPY37MKL.js → styles-73_TVY0M.js} +1 -1
- package/svdv2/es/{styles-CPISTY9o.js → styles-BcMaHqRO.js} +1 -1
- package/svdv2/es/{styles-BPhm6VCm.js → styles-BsYP5noN.js} +1 -1
- package/{koket/es/styles-Dnaf1zGg.js → svdv2/es/styles-Bv57LPpi.js} +1 -1
- package/svdv2/es/{styles-CaHsrPmd.js → styles-CoeBOvU-.js} +1 -1
- package/svdv2/es/{styles-DR0vrRzH.js → styles-DvEndzhu.js} +1 -1
- package/{koket/es/styles-CH1-lHKr.js → svdv2/es/styles-Mh-OVxJ7.js} +1 -1
- package/svdv2/es/{styles-c1jdK7Es.js → styles-bqPQ4mdC.js} +1 -1
- package/tek/cjs/index.d.ts +25 -4
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.d.ts +25 -4
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-CAYbwTdq.js +1 -0
- package/{mtv/es/events-GqbgSzdx.js → tv4/es/events-DW96ZVTh.js} +1 -1
- package/tv4/es/identity-facade-C2NeLN-j.js +1 -0
- package/tv4/es/index-Bino6rLY.js +1 -0
- package/tv4/es/index-C2OtOquR.js +1 -0
- package/tv4/es/{index-CLlZ_nvb.js → index-D-1_ROt3.js} +1 -1
- package/tv4/es/{index-Ba-gl0fE.js → index-DFhaL1J7.js} +1 -1
- package/tv4/es/{index-BPFUDpOI.js → index-DPpuUt0s.js} +1 -1
- package/tv4/es/{index-kMw82AyQ.js → index-Dm-6nZpq.js} +1 -1
- package/tv4/es/{index-DsO94JLJ.js → index-DunTxO8W.js} +1 -1
- package/tv4/es/{index-But-X6-M.js → index-ga2kOKnC.js} +1 -1
- package/tv4/es/index.d.ts +25 -4
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-CiQyajrm.js → styles-BPPytBg6.js} +1 -1
- package/tv4/es/{styles-DyGJ5lUA.js → styles-C2LVLrOH.js} +1 -1
- package/tv4/es/{styles-BOhTEsfH.js → styles-Cciik90f.js} +1 -1
- package/tv4/es/{styles-ClhVmvvn.js → styles-DSWbigxW.js} +1 -1
- package/{e24/es/styles-U3ev4vZ7.js → tv4/es/styles-wMAzjCh0.js} +1 -1
- package/tvnu/cjs/index.d.ts +25 -4
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-BrerGzvJ.js +1 -0
- package/{btv2/es/events-D6P6hD23.js → tvnu/es/events-EvHup10f.js} +1 -1
- package/tvnu/es/identity-facade-D-F0duuq.js +1 -0
- package/tvnu/es/{index-DLpVVZf_.js → index-B7fJrKVH.js} +1 -1
- package/tvnu/es/index-BvFvHMoa.js +1 -0
- package/tvnu/es/index-CAT86bPl.js +1 -0
- package/{btv2/es/index-bR4EjUyv.js → tvnu/es/index-Co3vEuCY.js} +1 -1
- package/tvnu/es/{index-DPea4ItP.js → index-CxbOMJEm.js} +1 -1
- package/{sav2/es/index-BgJctlWz.js → tvnu/es/index-CyrKuK0G.js} +1 -1
- package/tvnu/es/{index-CgR2vaLd.js → index-IPzer9RK.js} +1 -1
- package/tvnu/es/{index-pN42MHkO.js → index-rw50W2ju.js} +1 -1
- package/tvnu/es/index.d.ts +25 -4
- package/tvnu/es/index.js +1 -1
- package/{btv2/es/styles-CtL-yllF.js → tvnu/es/styles-C1b3iYOo.js} +1 -1
- package/tvnu/es/{styles-Blkyvqh4.js → styles-CkEF93-e.js} +1 -1
- package/tvnu/es/{styles-tV1z1GZ_.js → styles-D5GcvjUY.js} +1 -1
- package/tvnu/es/{styles-BYv3c9cw.js → styles-vQl2r_Lm.js} +1 -1
- package/types/index.d.ts +6 -1
- package/vg/cjs/index.d.ts +25 -4
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-CNJf7SUB.js +1 -0
- package/vg/es/{events-BqQucSf6.js → events-BmlMhqwy.js} +1 -1
- package/vg/es/{index-bCzcmyfy.js → index-B9bBm9yR.js} +1 -1
- package/vg/es/{index-BcaL6jsh.js → index-BWiGXczB.js} +1 -1
- package/vg/es/{index-CsWAXOq-.js → index-Bf9CbJzs.js} +1 -1
- package/vg/es/index-CRoJfOxx.js +1 -0
- package/vg/es/{index-DAAjvi1C.js → index-DUI6Mvpf.js} +1 -1
- package/vg/es/{index-C2UHtfj_.js → index-Y7tlSjQY.js} +1 -1
- package/vg/es/{index-BSPaei4i.js → index-YF5c_JuV.js} +1 -1
- package/vg/es/index-gDgbRZ7O.js +1 -0
- package/vg/es/index.d.ts +25 -4
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-DFInM_03.js → styles-3EurmzQO.js} +1 -1
- package/vg/es/{styles-CSIB_T1c.js → styles-5mX4r5jr.js} +1 -1
- package/vg/es/{styles-B0hflLDs.js → styles-BmdOnq7A.js} +1 -1
- package/vg/es/{styles-Ddh-HkO8.js → styles-Bs1Aggf5.js} +1 -1
- package/{sa/es/styles-CwbbNFdE.js → vg/es/styles-C591km3G.js} +1 -1
- package/vg/es/{styles-CdpkwzOZ.js → styles-CHXYI0fY.js} +1 -1
- package/vg/es/{styles-TZp4Js-a.js → styles-CpzWFBZb.js} +1 -1
- package/vg/es/{styles-CIvA8Doz.js → styles-CzbkjzNY.js} +1 -1
- package/vg/es/{styles-CYzyLEV0.js → styles-D1ug5S12.js} +1 -1
- package/{bt/es/styles-B188diER.js → vg/es/styles-D2SoDuD_.js} +1 -1
- package/{bt/es/styles-Djjc7UzY.js → vg/es/styles-D8zugQ-O.js} +1 -1
- package/vg/es/{styles-Ce4iBXFA.js → styles-DDJjkHPQ.js} +1 -1
- package/vg/es/{styles-C51lw1yU.js → styles-DTAnITuc.js} +1 -1
- package/vg/es/{styles-CciYrbs8.js → styles-DeMihaB6.js} +1 -1
- package/vg/es/{styles-D9qbS1Gw.js → styles-_vQcCN41.js} +1 -1
- package/vg/es/{styles-CoLiVlSG.js → styles-tTC-fLRk.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-jE5K_4Rp.js +1 -0
- package/vgv2/es/events-BpDwhNOP.js +1 -0
- package/vgv2/es/index-BUT7kOaj.js +1 -0
- package/vgv2/es/{index-DQGn1tXh.js → index-Bzb4_DGy.js} +1 -1
- package/vgv2/es/{index-CVGQqZVE.js → index-C18s-_pP.js} +1 -1
- package/vgv2/es/{index-BAnN0RdP.js → index-CHWX8euE.js} +1 -1
- package/vgv2/es/{index-BMvVZ3PU.js → index-CuKgwABk.js} +1 -1
- package/vgv2/es/{index-OzkyZrFL.js → index-Di2rk1OZ.js} +1 -1
- package/vgv2/es/index-pYIGndpg.js +1 -0
- package/vgv2/es/{index-I-HW65_x.js → index-uDx3jxpl.js} +1 -1
- package/vgv2/es/index.d.ts +25 -4
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-dPSL7ERU.js → styles-0b4PLQ3R.js} +1 -1
- package/vgv2/es/{styles-V8Y9NY4R.js → styles-5NJZT84L.js} +1 -1
- package/vgv2/es/styles-5dOaVKuU.js +1 -0
- package/vgv2/es/{styles-DOZIdQKO.js → styles-B14I9QWy.js} +1 -1
- package/vgv2/es/{styles-BZNQ1vE8.js → styles-BWGGJghl.js} +1 -1
- package/vgv2/es/{styles-Cualb3_D.js → styles-BcFHitcx.js} +1 -1
- package/vgv2/es/{styles-CtTqdZis.js → styles-CU1-8Qp0.js} +1 -1
- package/vgv2/es/{styles-YZ88G27K.js → styles-CXPZJsXG.js} +1 -1
- package/vgv2/es/{styles-wF0dHoty.js → styles-D0DqwIVN.js} +1 -1
- package/vgv2/es/{styles--uVNPccL.js → styles-D6jopFwN.js} +1 -1
- package/vgv2/es/{styles-BgSFy8jC.js → styles-DUySgpEw.js} +1 -1
- package/vgv2/es/{styles-CCY1tyd6.js → styles-DvdItfJl.js} +1 -1
- package/vgv2/es/{styles-F0n6XlmZ.js → styles-Oe4s36cd.js} +1 -1
- package/{btv2/es/styles-BIEV_UDm.js → vgv2/es/styles-aGuM_mZr.js} +1 -1
- package/{tvnu/es/styles-DgLNK3GP.js → vgv2/es/styles-cs7VumeQ.js} +1 -1
- package/vgv2/es/{styles-DhnA4Y2g.js → styles-l0SzsIkc.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-VdgcR_BE.js +0 -1
- package/aftenposten/es/index-DP0BbbWJ.js +0 -1
- package/aftenposten/es/index-PdNwftJA.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BIMCdj2e.js +0 -1
- package/aftenpostenv2/es/index-6k3Y32Fw.js +0 -1
- package/aftenpostenv2/es/index-DPqkphHW.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-D2fIitz4.js +0 -1
- package/aftonbladet/es/index-C1IqSowz.js +0 -1
- package/aftonbladet/es/index-CFu2vZ67.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-3dTEWOlI.js +0 -1
- package/aftonbladetv2/es/index-BVirA6E3.js +0 -1
- package/aftonbladetv2/es/index-DB2zWF2S.js +0 -1
- package/bt/es/_auto-entry_bt-CvnjeTKS.js +0 -1
- package/bt/es/index-5orz6iDE.js +0 -1
- package/bt/es/index-B4s9DYHb.js +0 -1
- package/btv2/es/_auto-entry_btv2-Dvycsb0N.js +0 -1
- package/btv2/es/index-CYUq8h41.js +0 -1
- package/btv2/es/index-wU5-fkkY.js +0 -1
- package/e24/es/_auto-entry_e24-EmoPFNdZ.js +0 -1
- package/e24/es/index-BHxQeiJc.js +0 -1
- package/e24/es/index-C4omnW1M.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DntxanXt.js +0 -1
- package/fotbollskanalen/es/index-8KLTEqRi.js +0 -1
- package/fotbollskanalen/es/index-BMDVF1u1.js +0 -1
- package/koket/es/_auto-entry_koket-a4ea-7Qw.js +0 -1
- package/koket/es/index-CZ7fRUR1.js +0 -1
- package/koket/es/index-I63ib7qd.js +0 -1
- package/mtv/es/_auto-entry_mtv-DsuRsc1u.js +0 -1
- package/mtv/es/index--OizxMLO.js +0 -1
- package/mtv/es/index-B83VUyBB.js +0 -1
- package/mtv/es/index-BnTnl5EG.js +0 -1
- package/mtv/es/index-D2XPbfTm.js +0 -1
- package/mtv/es/index-DN3cR0Fw.js +0 -1
- package/mtv/es/index-DTrcSpan.js +0 -1
- package/mtv/es/index-Dv15bwI7.js +0 -1
- package/omni/es/_auto-entry_omni-HSpRNCg1.js +0 -1
- package/omni/es/index-74zEx__y.js +0 -1
- package/omni/es/index-wkJKThPL.js +0 -1
- package/sa/es/_auto-entry_sa-B3BT1vI-.js +0 -1
- package/sa/es/index-CrWFSHI0.js +0 -1
- package/sa/es/index-d0MDNCl0.js +0 -1
- package/sav2/es/_auto-entry_sav2-Ms7Jve07.js +0 -1
- package/sav2/es/index-BBAAh5bR.js +0 -1
- package/sav2/es/index-DS2guFzB.js +0 -1
- package/svd/es/_auto-entry_svd-CuD9iF48.js +0 -1
- package/svd/es/index-BfA2xLfw.js +0 -1
- package/svd/es/index-EJwoMYuf.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-1VQfx2m3.js +0 -1
- package/svdv2/es/index-DB2h1Swy.js +0 -1
- package/svdv2/es/index-DU1mD5yI.js +0 -1
- package/tv4/es/_auto-entry_tv4-CWqxLSel.js +0 -1
- package/tv4/es/events-D6xMM-17.js +0 -1
- package/tv4/es/index-BONgzmFt.js +0 -1
- package/tv4/es/index-DP-cpF3Z.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-VQhBZ5ti.js +0 -1
- package/tvnu/es/index-Ca_3Ni0n.js +0 -1
- package/tvnu/es/index-DjWYwuQw.js +0 -1
- package/vg/es/_auto-entry_vg-DfuxvRye.js +0 -1
- package/vg/es/index-DCWH5HnK.js +0 -1
- package/vg/es/index-DX5agaGX.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-Bq8_SS3m.js +0 -1
- package/vgv2/es/events-BMoajPYv.js +0 -1
- package/vgv2/es/index-Ck1oE8Pa.js +0 -1
- package/vgv2/es/index-DxSr_M00.js +0 -1
- package/vgv2/es/styles-DDsDYtIG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e,x as o,D as t,c as r,y as l,_ as s,z as a,B as n,E as c,F as d,G as i}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{T as e,x as o,D as t,c as r,y as l,_ as s,z as a,B as n,E as c,F as d,G as i}from"./_auto-entry_fotbollskanalen-xRHg3rRX.js";import"react/jsx-runtime";const u="#fff",y="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:u,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:y}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},b=new WeakMap,g=(e,o,t)=>{var r;window.addEventListener(o,t),b.set(e,[...null!==(r=b.get(e))&&void 0!==r?r:[],()=>window.removeEventListener(o,t)])},h=e=>{document.body.style.overflow=e?"initial":"hidden"},f=e=>{(e=>{var o;null===(o=b.get(e))||void 0===o||o.forEach(e=>e()),b.delete(e)})(e),m(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),h(!0),e.style.display="none"},E=e=>{const o=()=>f(e);return g(e,"advertory:closeTakeover",o),m(),o},L=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&((e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&f(e)};m(),g(e,"keydown",o)})(e),E(e),m(),o.addEventListener("click",()=>{f(e)}),h(!1))},k=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),E(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},S=e=>{(e=>{g(e,"advertory:closeTakeover",()=>f(e))})(e)},T=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},x=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},A=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},q=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},C=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},O=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},P=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,O(o))},R=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},M=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const u=a(o),y=i.offsetHeight,v=window.scrollY>y;i.style.display="block",!v&&w(u,!1),((o,t)=>{({[e.WELCOME_PAGE]:A,[e.SPLASH]:T,[e.TOPSCROLLER]:x,[e.VELVET]:q})[t](o)})(i,u),C(),((o,t)=>{({[e.WELCOME_PAGE]:k,[e.TOPSCROLLER]:k,[e.SPLASH]:L,[e.VELVET]:S})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&w(u,!0),c(o,u)});export{M as createTakeoverAd,P as modifyTakeoverAdContent,R as modifyTakeoverIframe};
|
|
@@ -520,7 +520,6 @@ interface PlacementRefreshConfig {
|
|
|
520
520
|
}
|
|
521
521
|
interface Placement {
|
|
522
522
|
targetId: string;
|
|
523
|
-
adUnitId?: string;
|
|
524
523
|
sizes: Array<Array<number>>;
|
|
525
524
|
allowedFormats: Array<AstAdType>;
|
|
526
525
|
invCode: string;
|
|
@@ -607,6 +606,11 @@ interface TCFConfig {
|
|
|
607
606
|
timeout?: number;
|
|
608
607
|
nonRtb?: NonRTBConfig;
|
|
609
608
|
}
|
|
609
|
+
interface ManagedThirdPartyConfig {
|
|
610
|
+
readpeakUrl?: string;
|
|
611
|
+
adnamiUrl?: string;
|
|
612
|
+
adformDmpUrl?: string;
|
|
613
|
+
}
|
|
610
614
|
interface PrebidConfig {
|
|
611
615
|
enabled: boolean;
|
|
612
616
|
prebidUrl: string;
|
|
@@ -617,6 +621,7 @@ interface PrebidConfig {
|
|
|
617
621
|
forwardGlimrTags?: boolean;
|
|
618
622
|
manageAdserver?: boolean;
|
|
619
623
|
adServerUrl?: string;
|
|
624
|
+
thirdParty?: ManagedThirdPartyConfig;
|
|
620
625
|
}
|
|
621
626
|
interface NonRTBConfig {
|
|
622
627
|
invCodeSuffix?: string;
|
|
@@ -891,8 +896,13 @@ interface Advertory {
|
|
|
891
896
|
getVideoAdsConfig: (params: VideoAdsConfigParams) => (stream: VideoStream) => Promise<Record<string, unknown>>;
|
|
892
897
|
}
|
|
893
898
|
|
|
899
|
+
declare const TagDefinitions: {
|
|
900
|
+
readonly EXPLICIT: "explicit";
|
|
901
|
+
readonly DOM_DISCOVERED: "dom-discovered";
|
|
902
|
+
};
|
|
903
|
+
type TagDefinition = (typeof TagDefinitions)[keyof typeof TagDefinitions];
|
|
894
904
|
interface AdServerCapabilities {
|
|
895
|
-
tagDefinition:
|
|
905
|
+
tagDefinition: TagDefinition;
|
|
896
906
|
deferredRequest: boolean;
|
|
897
907
|
deferredRender: boolean;
|
|
898
908
|
refresh: boolean;
|
|
@@ -910,18 +920,29 @@ interface AdEventBus {
|
|
|
910
920
|
on: (event: AdEventName, handler: AdEventHandler) => void;
|
|
911
921
|
}
|
|
912
922
|
|
|
923
|
+
interface RefreshOptions {
|
|
924
|
+
keepPreviousSizes?: Array<Placement>;
|
|
925
|
+
applyReloadKeyword?: boolean;
|
|
926
|
+
}
|
|
913
927
|
interface AdServerDriver {
|
|
914
928
|
readonly name: string;
|
|
915
929
|
readonly capabilities: AdServerCapabilities;
|
|
930
|
+
readonly messageOrigins?: ReadonlyArray<string>;
|
|
916
931
|
setup(): Promise<void>;
|
|
917
932
|
setTargeting(): Promise<void>;
|
|
933
|
+
enrichPlacementsAfterDiscovery?(placements: Array<Placement>): Array<Placement>;
|
|
934
|
+
adjustPlacementsBeforeRequest?(placements: Array<Placement>): Promise<Array<Placement>>;
|
|
918
935
|
definePlacements?(placements: Array<Placement>): void;
|
|
919
936
|
requestPlacements?(placements: Array<Placement>): Promise<void>;
|
|
920
937
|
requestPage?(): Promise<void>;
|
|
921
938
|
bindEvents(bus: AdEventBus): Promise<void>;
|
|
939
|
+
clear?(targetIds: Array<string>): void;
|
|
940
|
+
resizeCreative?(targetId: string, size: Array<number>, isMediation?: boolean): void;
|
|
941
|
+
render?(targetId: string): void;
|
|
942
|
+
refresh?(targetIds: Array<string>, options?: RefreshOptions): void;
|
|
922
943
|
}
|
|
923
944
|
|
|
924
|
-
declare const createAdvertory: (handlers: SiteHandlers,
|
|
945
|
+
declare const createAdvertory: (handlers: SiteHandlers, driver: AdServerDriver, siteSpecificConfig?: SiteSpecificConfig) => Advertory;
|
|
925
946
|
|
|
926
947
|
declare const prepareTag: (tag: AstDefineTagParams) => AstDefineTagParams;
|
|
927
948
|
|
|
@@ -956,6 +977,6 @@ const HANDLERS = {
|
|
|
956
977
|
initNativeAd: initAdsOnFotbollskanalen,
|
|
957
978
|
};
|
|
958
979
|
|
|
959
|
-
const advertory = createAdvertory(HANDLERS,
|
|
980
|
+
const advertory = createAdvertory(HANDLERS, xandrDriver, siteSpecificConfig);
|
|
960
981
|
|
|
961
982
|
export { Takeover, advertory as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Y as Takeover,X as default}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
export{Y as Takeover,X as default}from"./_auto-entry_fotbollskanalen-xRHg3rRX.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as a}from"./_auto-entry_fotbollskanalen-xRHg3rRX.js";import"react/jsx-runtime";a('.advertory-fotbollskanalen-ad-native-default{border-top:4px solid #2a72dd;position:relative;font-family:var(--font-quattro-new, Roboto, Arial, sans-serif);font-weight:750;font-style:normal;background-color:var(--color-default-box, #ffffff);color:var(--text-color, #000000);width:100%}.advertory-fotbollskanalen-ad-native-default .ad-info{top:2px;right:0;position:absolute;height:26px;width:26px;z-index:1000;border-bottom-left-radius:13px;border-top-right-radius:13px}.advertory-fotbollskanalen-ad-native-default .ad-link{color:inherit;text-decoration:none;display:block}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content{border-left:1px solid rgba(34,34,34,.1);border-right:1px solid rgba(34,34,34,.1);border-bottom:1px solid rgba(34,34,34,.1);display:flex;flex-direction:column}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-header{display:flex;padding:8px 16px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-header .ad-annonse{font-size:14px;font-weight:bold;color:var(--color-primary-link, #2a72dd);content:"ANNONS";display:inline-block;text-align:left;vertical-align:middle}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content{padding:8px 16px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-subtitle{font-family:var(--font-quattro-new, Roboto, Arial, sans-serif);font-weight:normal;font-size:15px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-subtitle .ad-sponsored{color:var(--color-primary-link, #2a72dd);font-weight:bold;text-transform:uppercase}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-title{font-weight:750;font-size:30px;letter-spacing:-1px;line-height:1.08;margin:0 0 4px}@media screen and (min-width: 768px){.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-title{font-size:54px;letter-spacing:-1.8px}}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-image-container .ad-image{position:relative;width:100%;height:100%;aspect-ratio:2.8;object-fit:cover;object-position:center}@media(prefers-color-scheme: dark){.advertory-fotbollskanalen-ad-native-default{background-color:var(--color-default-box, #222222);color:var(--text-color, #ffffff)}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as e}from"./_auto-entry_fotbollskanalen-xRHg3rRX.js";import"react/jsx-runtime";e(".advertory-shared-ad-native-video{width:100%;min-height:250px;height:auto;margin:auto;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}@media screen and (min-width: 768px){.advertory-shared-ad-native-video{width:580px}}.advertory-shared-ad-native-video .ad-info{position:absolute;top:2px;right:24px}.advertory-shared-ad-native-video .ad-info .gdprAdTransparencyCogWheelButton{background-color:rgba(0,0,0,0);border-bottom-right-radius:13px;z-index:10}.advertory-shared-ad-native-video a.ad-link{display:block;text-decoration:none;color:#2b2b2b}.advertory-shared-ad-native-video a.ad-link:hover{text-decoration:none}.advertory-shared-ad-native-video .ad-content .ad-header{font-size:12px;padding:5px 8px;color:#4c3d00;background:rgba(255,205,0,.8);font-weight:bold}.advertory-shared-ad-native-video .ad-content .ad-image-container{position:relative;line-height:0}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-image-container{min-height:300px}}.advertory-shared-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:56.4971751412vw;width:100%}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:326px}}.advertory-shared-ad-native-video .ad-content .ad-text-container{background:#fff6d1;overflow:auto;padding-bottom:15px;padding-left:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container{background:#fff6d1;padding-left:16px;overflow:auto}}.advertory-shared-ad-native-video .ad-content .ad-text-container .sponsored-by{margin:8px 16px 8px 0;color:#64625a;font-size:10px;text-transform:uppercase;display:block;font-weight:600}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container .sponsored-by{font-size:12px}}.advertory-shared-ad-native-video .ad-content .ad-text-container .title{line-height:1;margin:8px 0;font-weight:bold;font-size:20px;font-family:Arial,sans-serif}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container .title{font-size:22px}}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as o}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as o}from"./_auto-entry_fotbollskanalen-xRHg3rRX.js";import"react/jsx-runtime";const t=o("[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{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as a}from"./_auto-entry_fotbollskanalen-xRHg3rRX.js";import"react/jsx-runtime";const e=a("[data-carousel-viewport]{position:relative;overflow:hidden;padding-bottom:4px;touch-action:pan-y;user-select:none}[data-carousel-track]{display:flex;gap:10px;will-change:transform}[data-carousel-track] [data-carousel-slide]:not(.is-active){opacity:.9;filter:saturate(0.72)}[data-carousel-track] .carousel-slide{flex:0 0 82%;margin:0;overflow:hidden;border:1px solid hsla(0,0%,100%,.68);border-radius:12px;box-shadow:#adadad 1px 1px 1px}[data-carousel-track] .carousel-slide .slide-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;pointer-events:none}");export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as e}from"./_auto-entry_fotbollskanalen-xRHg3rRX.js";import"react/jsx-runtime";e('.advertory-shared-ad-native-seamless{position:relative;overflow:hidden;border-radius:10px}.advertory-shared-ad-native-seamless .ad-info{position:absolute;top:0;right:0;z-index:1}.advertory-shared-ad-native-seamless .ad-info div[role=button]{top:0;right:0;left:auto;transform:none;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{position:relative;min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;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:0 0 8px 10px;margin-right:18px;display:flex;justify-content:space-between;gap:50px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-logo{max-width:100%;max-height:40px;min-width:0;object-fit:contain;object-position:left center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons{flex-shrink:0;margin-left:auto;margin-right:5px;font-size:10px;font-weight:400;color:var(--color-text-primary, #333);white-space:nowrap;line-height:.7;text-transform:lowercase}.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;max-width:100%;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-carousel{display:flex;justify-content:center;align-items:center;width:100%}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel .carousel-window{width:calc(100% + 16px);min-width:calc(100% + 16px);mask-image:linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);-webkit-mask-image:linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, #000 5%, #000 95%, rgba(0, 0, 0, 0.5) 100%)}.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;min-width:0;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;overflow:hidden;min-width:0;font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-width:0;margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left;color:var(--color-text-secondary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase{display:flex;flex-direction:column;flex-shrink:0;align-items:center;gap:6px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price{font-size:13px;font-weight:500;white-space:nowrap}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price:empty{display:none}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:14px;line-height:1;color:var(--color-text-on-accent, #111111);white-space:nowrap;background-color:var(--color-accent, #d9d9d9);border-radius:99px;font-weight:500}');
|
package/glimr/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t,n=require("./glimr-sdk-mS8sOhxy.js");function r(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var o=function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach(function(t){r[t]=o(e[t],n)}),a(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))}),r}function d(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},e=d}(),i=n.getDefaultExportFromCjs(o);const a={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},s=(e,t)=>i(e,t,a),l=(e,t)=>Object.assign(Object.assign({},e),t),d=(e,t)=>{var n;return s(null!==(n=e)&&void 0!==n?n:{},t)},c={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},u=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},g=(e,t)=>{console.warn("[Advertory WARN]: ",e)},f=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||g("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||g("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||g("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||g("pageContext.deviceType is required."),n||g("pageOptions is required."),r||g("placements is required."),(null==o?void 0:o.defaultThreshold)||g("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,o;const i=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==i?void 0:i[t])&&g(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},v={placements:(e,t)=>t,takeover:d,refreshConfig:l,editory:d,appearanceConfig:d,pageContext:l,pageOptions:l,pageSectionsSelectors:l,tcf:l};class p{set(e){f(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(v)){const r=t[e];void 0!==r&&(n[e]=v[e](n[e],r))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=s(p.DEFAULT_SITE_HANDLERS,e)}}p.DEFAULT_SITE_HANDLERS={siteEvents:c,initNativeAd:()=>{}};const m=new p;m.modifyConfigProperties.bind(m);const b=864e5,y=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return u("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=b)=>{const o={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(o))},getByTimestamp:(t,n=b)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return u("Error with parsing localStorage data"),null}}}})(),h="glimrTags",w=["glwe_","glwet_"],C={geofenceTags:[],geoTags:[],weatherTags:[]},T=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 u("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const o=e=>{r||(u("Resolving advertising permission value obtained"),r=!0,t(e))},i=setTimeout(()=>{u("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{u("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const t=Number(e);u("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),S="no",A="se",O="cmp:loaded";let E="undefined"!=typeof window?window._tcf_:void 0,_=!1;const P=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,a=(s="bypass_tcf",new URLSearchParams(window.location.search).get(s));var s;const l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(u("TCF bypass param detected, returning consent: true"),!0):(u("TCF is not enabled, returning consent: true"),!0))(o,a))return!0;if(_)return null;if(!E)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=E.getConsentedToAllSync();return u(`TCF consented to all is: ${t}`),E.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(u("Getting TCF consent manager..."),window._tcf_)return u("TCF consent manager is already available"),E=window._tcf_,void e(E);u("TCF consent manager is not available");const n=()=>{u("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(E=window._tcf_,e(E)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(O,n),_=!0,t(new Error("Timeout waiting for CMP to load"))},i);u("Listening for CMP loaded event..."),document.addEventListener(O,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>r(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return u(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===A,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===S;if(t||r)return u("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield T(e);if(!(null==e?void 0:e.enabled))return!0;const o=l();return null!==o?o:yield new Promise((e,t)=>{try{if(!E)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{u("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);E.onTcfReady(()=>{u("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),E.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},M=(...e)=>r(void 0,[...e],void 0,function*(e=m.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,n,...o)=>r(void 0,[e,t,n,...o],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return u(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return u(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=P(e,0,n);return(yield o())?(u(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(u(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(t,n,o,"glimr");return e}const{getConsentAsync:i}=P(t,0,o);return yield i()}),j={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},N=e=>w.some(t=>e.startsWith(t)),x=e=>e.startsWith("glgc_"),F=e=>e.startsWith("glci_"),$=e=>!N(e)&&!x(e),R=(e,t)=>{const n=q();if(!n)return C;const r=((e=[])=>e.filter(N))(n),o=((e=[])=>e.filter(x))(n),i=((e=[],t,n)=>{var r;const o=e.filter($);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=j[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:i,geofenceTags:o,weatherTags:r}},q=()=>{const e=y.getByTimestamp(h);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};exports.getCityTags=()=>{var e;return((e=[])=>e.filter(F))(null!==(e=q())&&void 0!==e?e:[])},exports.getGlimrKeywords=(e,t)=>r(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield M(e);if(!(null==r?void 0:r.enabled)||!i)return u("No consent for getting glimr tags."),{};const a=(e=>e===S?"no-sno":"se-generic")(o),s=R(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),exports.updateGlimr=()=>r(void 0,void 0,void 0,function*(){const{glimr:e}=m.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void u("No consent for glimr data fetching.");const t=yield(n=500,r(void 0,void 0,void 0,function*(){return yield Promise.race([r(void 0,void 0,void 0,function*(){const e=yield Promise.resolve().then(function(){return require("./glimr-BIcFSFRk.js")}).then(function(e){return e.glimr});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{y.setWithTimestamp(h,{tags:e,tagMappings:t}),n(!0)})})}catch(e){u(`Error during getting glimr data: ${e}`)}else u("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})});
|
|
1
|
+
"use strict";var e,n,t=require("./glimr-sdk-mS8sOhxy.js");function r(e,n,t,r){return new(t||(t=Promise))(function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,a)}l((r=r.apply(e,n||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var o=function(){if(n)return e;n=1;var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,n){return!1!==n.clone&&n.isMergeableObject(e)?c((t=e,Array.isArray(t)?[]:{}),e,n):e;var t}function i(e,n,t){return e.concat(n).map(function(e){return o(e,t)})}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return Object.propertyIsEnumerable.call(e,n)}):[]}(e))}function a(e,n){try{return n in e}catch(e){return!1}}function l(e,n,t){var r={};return t.isMergeableObject(e)&&s(e).forEach(function(n){r[n]=o(e[n],t)}),s(n).forEach(function(i){(function(e,n){return a(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))})(e,i)||(a(e,i)&&t.isMergeableObject(n[i])?r[i]=function(e,n){if(!n.customMerge)return c;var t=n.customMerge(e);return"function"==typeof t?t:c}(i,t)(e[i],n[i],t):r[i]=o(n[i],t))}),r}function c(e,n,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||t,r.cloneUnlessOtherwiseSpecified=o;var s=Array.isArray(n);return s===Array.isArray(e)?s?r.arrayMerge(e,n,r):l(e,n,r):o(n,r)}return c.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return c(e,t,n)},{})},e=c}(),i=t.getDefaultExportFromCjs(o);const s={arrayMerge:(e,n)=>n,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,n)=>i(e,n,s),l=(e,n)=>Object.assign(Object.assign({},e),n),c=(e,n)=>{var t;return a(null!==(t=e)&&void 0!==t?t:{},n)},d=(e,n)=>{const t="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(n?console.log(t,e,n):console.log(t,e))},u=(e,n)=>{console.warn("[Advertory WARN]: ",e)},g=e=>{(e=>{const{pageContext:n,pageOptions:t,placements:r,appearanceConfig:o}=null!=e?e:{};(null==n?void 0:n.publisher)||u("pageContext.publisher is required."),(null==n?void 0:n.countryCode)||u("pageContext.countryCode is required."),(null==n?void 0:n.pageType)||u("pageContext.pageType is required."),(null==n?void 0:n.deviceType)||u("pageContext.deviceType is required."),t||u("pageOptions is required."),r||u("placements is required."),(null==o?void 0:o.defaultThreshold)||u("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var n,t,r,o;const i=e.pageSectionsSelectors,s=[{flag:!!(null===(n=e.takeover)||void 0===n?void 0:n.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(t=e.sponsorstripe)||void 0===t?void 0:t.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:n,featureName:t}of s)e&&!(null==i?void 0:i[n])&&u(`pageSectionsSelectors.${n} is required when ${t} is enabled.`)})(e)},f={placements:(e,n)=>n,takeover:c,refreshConfig:l,editory:c,appearanceConfig:c,pageContext:l,pageOptions:l,pageSectionsSelectors:l,tcf:l};class v{set(e){g(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,n)=>{const t=e;for(const e of Object.keys(f)){const r=n[e];void 0!==r&&(t[e]=f[e](t[e],r))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=a(v.DEFAULT_SITE_HANDLERS,e)}}v.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const p=new v;p.modifyConfigProperties.bind(p);const m=864e5,b=(()=>{const e=e=>{const n=window.localStorage.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch(e){return d("Error with parsing localStorage data"),null}},n=(e,n)=>{window.localStorage.setItem(e,JSON.stringify(n))};return{get:e,set:n,setWithTimestamp:(e,t,r=m)=>{const o={data:t,expirationTime:(new Date).getTime()+r};n(e,JSON.stringify(o))},getByTimestamp:(n,t=m)=>{const r=e(n);if(!r)return null;if(!t)return r;try{const{expirationTime:e,data:n}=JSON.parse(r);return(new Date).getTime()<=e?n:null}catch(e){return d("Error with parsing localStorage data"),null}}}})(),y="glimrTags",h=["glwe_","glwet_"],w={geofenceTags:[],geoTags:[],weatherTags:[]},C=()=>{return e="bypass_tcf",new URLSearchParams(window.location.search).get(e);var e},T=e=>new Promise(n=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void n(!1);const t=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const n=Number(e);return d("Advertising permission value obtained synchronously: ",e),Boolean(n)})();if(null!==t)return void n(t);let r=!1;const o=e=>{r||(d("Resolving advertising permission value obtained"),r=!0,n(e))},i=setTimeout(()=>{d("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{d("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const n=Number(e);d("Advertising permission value obtained asynchronously: ",e),o(Boolean(n))})}),S="no",A="se",O="cmp:loaded";let E="undefined"!=typeof window?window._tcf_:void 0,_=!1;const P=(e,n,t)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,s=C(),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,n)=>e?!!n&&(d("TCF bypass param detected, returning consent: true"),!0):(d("TCF is not enabled, returning consent: true"),!0))(o,s))return!0;if(_)return null;if(!E)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const n=E.getConsentedToAllSync();return d(`TCF consented to all is: ${n}`),E.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,n)=>{if(d("Getting TCF consent manager..."),window._tcf_)return d("TCF consent manager is already available"),E=window._tcf_,void e(E);d("TCF consent manager is not available");const t=()=>{d("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(E=window._tcf_,e(E)):n(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(O,t),_=!0,n(new Error("Timeout waiting for CMP to load"))},i);d("Listening for CMP loaded event..."),document.addEventListener(O,t,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>r(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return d(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&t===A,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&t===S;if(n||r)return d("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield T(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,n)=>{try{if(!E)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let n=!1;const t=t=>{n||(n=!0,e(t))},r=setTimeout(()=>{d("TCF isConsentedToAll timed out, resolving with false"),t(!1)},i);E.onTcfReady(()=>{d("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),E.isConsentedToAll(n=>{clearTimeout(r),e(n)})}catch(e){n(e)}})})}},M=(...e)=>r(void 0,[...e],void 0,function*(e=p.get()){const{tcf:n,pageContext:{isMobileApp:t,countryCode:o}={}}=e;if(null==n?void 0:n.schibstedConsentToPayEnabled){const e=yield((e,n,t,...o)=>r(void 0,[e,n,t,...o],void 0,function*(e,n,t,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return d(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return d(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=P(e,0,t);return(yield o())?(d(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(d(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(n,t,o,"glimr");return e}const{getConsentAsync:i}=P(n,0,o);return yield i()}),j={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},N=e=>h.some(n=>e.startsWith(n)),x=e=>e.startsWith("glgc_"),$=e=>e.startsWith("glci_"),F=e=>!N(e)&&!x(e),R=(e,n)=>{const t=k();if(!t)return w;const r=((e=[])=>e.filter(N))(t),o=((e=[])=>e.filter(x))(t),i=((e=[],n,t)=>{var r;const o=e.filter(F);if(t&&n){const{publisher:e}=null!==(r=n.pageContext)&&void 0!==r?r:{},t=j[e]||e;o.push(t)}return o})(t,e,n);return{geoTags:i,geofenceTags:o,weatherTags:r}},k=()=>{const e=b.getByTimestamp(y);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};exports.getCityTags=()=>{var e;return((e=[])=>e.filter($))(null!==(e=k())&&void 0!==e?e:[])},exports.getGlimrKeywords=(e,n)=>r(void 0,void 0,void 0,function*(){const{addPublisherToGeo:t}=n||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield M(e);if(!(null==r?void 0:r.enabled)||!i)return d("No consent for getting glimr tags."),{};const s=(e=>e===S?"no-sno":"se-generic")(o),a=R(e,Boolean(t));return{[`${s}-geo`]:a.geoTags,[`${s}-weather`]:a.weatherTags,[`${s}-geofence`]:a.geofenceTags}}),exports.updateGlimr=()=>r(void 0,void 0,void 0,function*(){const{glimr:e}=p.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void d("No consent for glimr data fetching.");const n=yield(t=500,r(void 0,void 0,void 0,function*(){return yield Promise.race([r(void 0,void 0,void 0,function*(){const e=yield Promise.resolve().then(function(){return require("./glimr-BIcFSFRk.js")}).then(function(e){return e.glimr});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),t))])}));var t;if(n)try{n.setTagCacheTimeInSeconds(300),yield new Promise(t=>{n.getTags(e.clientId,(e,n)=>{b.setWithTimestamp(y,{tags:e,tagMappings:n}),t(!0)})})}catch(e){d(`Error during getting glimr data: ${e}`)}else d("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:n})});
|
package/glimr/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e}from"./glimr-sdk-B7FY2YN8.js";function n(e,n,t,r){return new(t||(t=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,s)}l((r=r.apply(e,n||[])).next())})}var t,r;"function"==typeof SuppressedError&&SuppressedError;var o=e(function(){if(r)return t;r=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,n){return!1!==n.clone&&n.isMergeableObject(e)?d((t=e,Array.isArray(t)?[]:{}),e,n):e;var t}function i(e,n,t){return e.concat(n).map(function(e){return o(e,t)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return Object.propertyIsEnumerable.call(e,n)}):[]}(e))}function s(e,n){try{return n in e}catch(e){return!1}}function l(e,n,t){var r={};return t.isMergeableObject(e)&&a(e).forEach(function(n){r[n]=o(e[n],t)}),a(n).forEach(function(i){(function(e,n){return s(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))})(e,i)||(s(e,i)&&t.isMergeableObject(n[i])?r[i]=function(e,n){if(!n.customMerge)return d;var t=n.customMerge(e);return"function"==typeof t?t:d}(i,t)(e[i],n[i],t):r[i]=o(n[i],t))}),r}function d(n,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(n)?a?r.arrayMerge(n,t,r):l(n,t,r):o(t,r)}return d.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return d(e,t,n)},{})},t=d}());const i={arrayMerge:(e,n)=>n,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,n)=>o(e,n,i),s=(e,n)=>Object.assign(Object.assign({},e),n),l=(e,n)=>{var t;return a(null!==(t=e)&&void 0!==t?t:{},n)},d={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,n)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},c=(e,n)=>{const t="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(n?console.log(t,e,n):console.log(t,e))},u=(e,n)=>{console.warn("[Advertory WARN]: ",e)},g=e=>{(e=>{const{pageContext:n,pageOptions:t,placements:r,appearanceConfig:o}=null!=e?e:{};(null==n?void 0:n.publisher)||u("pageContext.publisher is required."),(null==n?void 0:n.countryCode)||u("pageContext.countryCode is required."),(null==n?void 0:n.pageType)||u("pageContext.pageType is required."),(null==n?void 0:n.deviceType)||u("pageContext.deviceType is required."),t||u("pageOptions is required."),r||u("placements is required."),(null==o?void 0:o.defaultThreshold)||u("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var n,t,r,o;const i=e.pageSectionsSelectors,a=[{flag:!!(null===(n=e.takeover)||void 0===n?void 0:n.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(t=e.sponsorstripe)||void 0===t?void 0:t.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:n,featureName:t}of a)e&&!(null==i?void 0:i[n])&&u(`pageSectionsSelectors.${n} is required when ${t} is enabled.`)})(e)},f={placements:(e,n)=>n,takeover:l,refreshConfig:s,editory:l,appearanceConfig:l,pageContext:s,pageOptions:s,pageSectionsSelectors:s,tcf:s};class v{set(e){g(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,n)=>{const t=e;for(const e of Object.keys(f)){const r=n[e];void 0!==r&&(t[e]=f[e](t[e],r))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=a(v.DEFAULT_SITE_HANDLERS,e)}}v.DEFAULT_SITE_HANDLERS={siteEvents:d,initNativeAd:()=>{}};const p=new v;p.modifyConfigProperties.bind(p);const m=864e5,b=(()=>{const e=e=>{const n=window.localStorage.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch(e){return c("Error with parsing localStorage data"),null}},n=(e,n)=>{window.localStorage.setItem(e,JSON.stringify(n))};return{get:e,set:n,setWithTimestamp:(e,t,r=m)=>{const o={data:t,expirationTime:(new Date).getTime()+r};n(e,JSON.stringify(o))},getByTimestamp:(n,t=m)=>{const r=e(n);if(!r)return null;if(!t)return r;try{const{expirationTime:e,data:n}=JSON.parse(r);return(new Date).getTime()<=e?n:null}catch(e){return c("Error with parsing localStorage data"),null}}}})(),h="glimrTags",y=["glwe_","glwet_"],w={geofenceTags:[],geoTags:[],weatherTags:[]},C=e=>new Promise(n=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void n(!1);const t=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const n=Number(e);return c("Advertising permission value obtained synchronously: ",e),Boolean(n)})();if(null!==t)return void n(t);let r=!1;const o=e=>{r||(c("Resolving advertising permission value obtained"),r=!0,n(e))},i=setTimeout(()=>{c("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{c("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const n=Number(e);c("Advertising permission value obtained asynchronously: ",e),o(Boolean(n))})}),T="no",S="se",A="cmp:loaded";let O="undefined"!=typeof window?window._tcf_:void 0,E=!1;const _=(e,t,r)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,a=(s="bypass_tcf",new URLSearchParams(window.location.search).get(s));var s;const l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,n)=>e?!!n&&(c("TCF bypass param detected, returning consent: true"),!0):(c("TCF is not enabled, returning consent: true"),!0))(o,a))return!0;if(E)return null;if(!O)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const n=O.getConsentedToAllSync();return c(`TCF consented to all is: ${n}`),O.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,n)=>{if(c("Getting TCF consent manager..."),window._tcf_)return c("TCF consent manager is already available"),O=window._tcf_,void e(O);c("TCF consent manager is not available");const t=()=>{c("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(O=window._tcf_,e(O)):n(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(A,t),E=!0,n(new Error("Timeout waiting for CMP to load"))},i);c("Listening for CMP loaded event..."),document.addEventListener(A,t,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===S,t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===T;if(n||t)return c("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield C(e);if(!(null==e?void 0:e.enabled))return!0;const o=l();return null!==o?o:yield new Promise((e,n)=>{try{if(!O)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let n=!1;const t=t=>{n||(n=!0,e(t))},r=setTimeout(()=>{c("TCF isConsentedToAll timed out, resolving with false"),t(!1)},i);O.onTcfReady(()=>{c("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),O.isConsentedToAll(n=>{clearTimeout(r),e(n)})}catch(e){n(e)}})})}},P=(...e)=>n(void 0,[...e],void 0,function*(e=p.get()){const{tcf:t,pageContext:{isMobileApp:r,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,r,...o)=>n(void 0,[e,t,r,...o],void 0,function*(e,n,t,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return c(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=_(e,0,t);return(yield o())?(c(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(c(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(t,r,o,"glimr");return e}const{getConsentAsync:i}=_(t,0,o);return yield i()}),M=()=>n(void 0,void 0,void 0,function*(){const{glimr:e}=p.get();if(!(yield P())||!(null==e?void 0:e.enabled))return void c("No consent for glimr data fetching.");const t=yield(r=500,n(void 0,void 0,void 0,function*(){return yield Promise.race([n(void 0,void 0,void 0,function*(){const e=yield import("./glimr-Crymyq4O.js").then(function(e){return e.g});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),r))])}));var r;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{b.setWithTimestamp(h,{tags:e,tagMappings:t}),n(!0)})})}catch(e){c(`Error during getting glimr data: ${e}`)}else c("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),j={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},N=e=>y.some(n=>e.startsWith(n)),x=e=>e.startsWith("glgc_"),$=e=>e.startsWith("glci_"),F=e=>!N(e)&&!x(e),R=(e,t)=>n(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield P(e);if(!(null==r?void 0:r.enabled)||!i)return c("No consent for getting glimr tags."),{};const a=(e=>e===T?"no-sno":"se-generic")(o),s=q(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),q=(e,n)=>{const t=L();if(!t)return w;const r=((e=[])=>e.filter(N))(t),o=((e=[])=>e.filter(x))(t),i=((e=[],n,t)=>{var r;const o=e.filter(F);if(t&&n){const{publisher:e}=null!==(r=n.pageContext)&&void 0!==r?r:{},t=j[e]||e;o.push(t)}return o})(t,e,n);return{geoTags:i,geofenceTags:o,weatherTags:r}},L=()=>{const e=b.getByTimestamp(h);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},k=()=>{var e;return((e=[])=>e.filter($))(null!==(e=L())&&void 0!==e?e:[])};export{k as getCityTags,R as getGlimrKeywords,M as updateGlimr};
|
|
1
|
+
import{g as e}from"./glimr-sdk-B7FY2YN8.js";function n(e,n,t,r){return new(t||(t=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,s)}l((r=r.apply(e,n||[])).next())})}var t,r;"function"==typeof SuppressedError&&SuppressedError;var o=e(function(){if(r)return t;r=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,n){return!1!==n.clone&&n.isMergeableObject(e)?c((t=e,Array.isArray(t)?[]:{}),e,n):e;var t}function i(e,n,t){return e.concat(n).map(function(e){return o(e,t)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return Object.propertyIsEnumerable.call(e,n)}):[]}(e))}function s(e,n){try{return n in e}catch(e){return!1}}function l(e,n,t){var r={};return t.isMergeableObject(e)&&a(e).forEach(function(n){r[n]=o(e[n],t)}),a(n).forEach(function(i){(function(e,n){return s(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))})(e,i)||(s(e,i)&&t.isMergeableObject(n[i])?r[i]=function(e,n){if(!n.customMerge)return c;var t=n.customMerge(e);return"function"==typeof t?t:c}(i,t)(e[i],n[i],t):r[i]=o(n[i],t))}),r}function c(n,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(n)?a?r.arrayMerge(n,t,r):l(n,t,r):o(t,r)}return c.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return c(e,t,n)},{})},t=c}());const i={arrayMerge:(e,n)=>n,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,n)=>o(e,n,i),s=(e,n)=>Object.assign(Object.assign({},e),n),l=(e,n)=>{var t;return a(null!==(t=e)&&void 0!==t?t:{},n)},c=(e,n)=>{const t="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(n?console.log(t,e,n):console.log(t,e))},d=(e,n)=>{console.warn("[Advertory WARN]: ",e)},u=e=>{(e=>{const{pageContext:n,pageOptions:t,placements:r,appearanceConfig:o}=null!=e?e:{};(null==n?void 0:n.publisher)||d("pageContext.publisher is required."),(null==n?void 0:n.countryCode)||d("pageContext.countryCode is required."),(null==n?void 0:n.pageType)||d("pageContext.pageType is required."),(null==n?void 0:n.deviceType)||d("pageContext.deviceType is required."),t||d("pageOptions is required."),r||d("placements is required."),(null==o?void 0:o.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var n,t,r,o;const i=e.pageSectionsSelectors,a=[{flag:!!(null===(n=e.takeover)||void 0===n?void 0:n.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(t=e.sponsorstripe)||void 0===t?void 0:t.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:n,featureName:t}of a)e&&!(null==i?void 0:i[n])&&d(`pageSectionsSelectors.${n} is required when ${t} is enabled.`)})(e)},g={placements:(e,n)=>n,takeover:l,refreshConfig:s,editory:l,appearanceConfig:l,pageContext:s,pageOptions:s,pageSectionsSelectors:s,tcf:s};class f{set(e){u(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,n)=>{const t=e;for(const e of Object.keys(g)){const r=n[e];void 0!==r&&(t[e]=g[e](t[e],r))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=a(f.DEFAULT_SITE_HANDLERS,e)}}f.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const v=new f;v.modifyConfigProperties.bind(v);const p=864e5,m=(()=>{const e=e=>{const n=window.localStorage.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch(e){return c("Error with parsing localStorage data"),null}},n=(e,n)=>{window.localStorage.setItem(e,JSON.stringify(n))};return{get:e,set:n,setWithTimestamp:(e,t,r=p)=>{const o={data:t,expirationTime:(new Date).getTime()+r};n(e,JSON.stringify(o))},getByTimestamp:(n,t=p)=>{const r=e(n);if(!r)return null;if(!t)return r;try{const{expirationTime:e,data:n}=JSON.parse(r);return(new Date).getTime()<=e?n:null}catch(e){return c("Error with parsing localStorage data"),null}}}})(),b="glimrTags",h=["glwe_","glwet_"],y={geofenceTags:[],geoTags:[],weatherTags:[]},w=()=>{return e="bypass_tcf",new URLSearchParams(window.location.search).get(e);var e},C=e=>new Promise(n=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void n(!1);const t=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const n=Number(e);return c("Advertising permission value obtained synchronously: ",e),Boolean(n)})();if(null!==t)return void n(t);let r=!1;const o=e=>{r||(c("Resolving advertising permission value obtained"),r=!0,n(e))},i=setTimeout(()=>{c("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{c("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const n=Number(e);c("Advertising permission value obtained asynchronously: ",e),o(Boolean(n))})}),T="no",S="se",A="cmp:loaded";let O="undefined"!=typeof window?window._tcf_:void 0,E=!1;const _=(e,t,r)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,a=w(),s=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,n)=>e?!!n&&(c("TCF bypass param detected, returning consent: true"),!0):(c("TCF is not enabled, returning consent: true"),!0))(o,a))return!0;if(E)return null;if(!O)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const n=O.getConsentedToAllSync();return c(`TCF consented to all is: ${n}`),O.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,n)=>{if(c("Getting TCF consent manager..."),window._tcf_)return c("TCF consent manager is already available"),O=window._tcf_,void e(O);c("TCF consent manager is not available");const t=()=>{c("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(O=window._tcf_,e(O)):n(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(A,t),E=!0,n(new Error("Timeout waiting for CMP to load"))},i);c("Listening for CMP loaded event..."),document.addEventListener(A,t,{once:!0})}):Promise.resolve(null),getConsentSync:s,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===S,t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===T;if(n||t)return c("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield C(e);if(!(null==e?void 0:e.enabled))return!0;const o=s();return null!==o?o:yield new Promise((e,n)=>{try{if(!O)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let n=!1;const t=t=>{n||(n=!0,e(t))},r=setTimeout(()=>{c("TCF isConsentedToAll timed out, resolving with false"),t(!1)},i);O.onTcfReady(()=>{c("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),O.isConsentedToAll(n=>{clearTimeout(r),e(n)})}catch(e){n(e)}})})}},P=(...e)=>n(void 0,[...e],void 0,function*(e=v.get()){const{tcf:t,pageContext:{isMobileApp:r,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,r,...o)=>n(void 0,[e,t,r,...o],void 0,function*(e,n,t,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return c(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=_(e,0,t);return(yield o())?(c(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(c(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(t,r,o,"glimr");return e}const{getConsentAsync:i}=_(t,0,o);return yield i()}),M=()=>n(void 0,void 0,void 0,function*(){const{glimr:e}=v.get();if(!(yield P())||!(null==e?void 0:e.enabled))return void c("No consent for glimr data fetching.");const t=yield(r=500,n(void 0,void 0,void 0,function*(){return yield Promise.race([n(void 0,void 0,void 0,function*(){const e=yield import("./glimr-Crymyq4O.js").then(function(e){return e.g});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),r))])}));var r;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{m.setWithTimestamp(b,{tags:e,tagMappings:t}),n(!0)})})}catch(e){c(`Error during getting glimr data: ${e}`)}else c("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),j={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},N=e=>h.some(n=>e.startsWith(n)),x=e=>e.startsWith("glgc_"),$=e=>e.startsWith("glci_"),F=e=>!N(e)&&!x(e),R=(e,t)=>n(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield P(e);if(!(null==r?void 0:r.enabled)||!i)return c("No consent for getting glimr tags."),{};const a=(e=>e===T?"no-sno":"se-generic")(o),s=k(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),k=(e,n)=>{const t=I();if(!t)return y;const r=((e=[])=>e.filter(N))(t),o=((e=[])=>e.filter(x))(t),i=((e=[],n,t)=>{var r;const o=e.filter(F);if(t&&n){const{publisher:e}=null!==(r=n.pageContext)&&void 0!==r?r:{},t=j[e]||e;o.push(t)}return o})(t,e,n);return{geoTags:i,geofenceTags:o,weatherTags:r}},I=()=>{const e=m.getByTimestamp(b);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},L=()=>{var e;return((e=[])=>e.filter($))(null!==(e=I())&&void 0!==e?e:[])};export{L as getCityTags,R as getGlimrKeywords,M as updateGlimr};
|
package/godt/cjs/index.d.ts
CHANGED
|
@@ -520,7 +520,6 @@ interface PlacementRefreshConfig {
|
|
|
520
520
|
}
|
|
521
521
|
interface Placement {
|
|
522
522
|
targetId: string;
|
|
523
|
-
adUnitId?: string;
|
|
524
523
|
sizes: Array<Array<number>>;
|
|
525
524
|
allowedFormats: Array<AstAdType>;
|
|
526
525
|
invCode: string;
|
|
@@ -607,6 +606,11 @@ interface TCFConfig {
|
|
|
607
606
|
timeout?: number;
|
|
608
607
|
nonRtb?: NonRTBConfig;
|
|
609
608
|
}
|
|
609
|
+
interface ManagedThirdPartyConfig {
|
|
610
|
+
readpeakUrl?: string;
|
|
611
|
+
adnamiUrl?: string;
|
|
612
|
+
adformDmpUrl?: string;
|
|
613
|
+
}
|
|
610
614
|
interface PrebidConfig {
|
|
611
615
|
enabled: boolean;
|
|
612
616
|
prebidUrl: string;
|
|
@@ -617,6 +621,7 @@ interface PrebidConfig {
|
|
|
617
621
|
forwardGlimrTags?: boolean;
|
|
618
622
|
manageAdserver?: boolean;
|
|
619
623
|
adServerUrl?: string;
|
|
624
|
+
thirdParty?: ManagedThirdPartyConfig;
|
|
620
625
|
}
|
|
621
626
|
interface NonRTBConfig {
|
|
622
627
|
invCodeSuffix?: string;
|
|
@@ -891,8 +896,13 @@ interface Advertory {
|
|
|
891
896
|
getVideoAdsConfig: (params: VideoAdsConfigParams) => (stream: VideoStream) => Promise<Record<string, unknown>>;
|
|
892
897
|
}
|
|
893
898
|
|
|
899
|
+
declare const TagDefinitions: {
|
|
900
|
+
readonly EXPLICIT: "explicit";
|
|
901
|
+
readonly DOM_DISCOVERED: "dom-discovered";
|
|
902
|
+
};
|
|
903
|
+
type TagDefinition = (typeof TagDefinitions)[keyof typeof TagDefinitions];
|
|
894
904
|
interface AdServerCapabilities {
|
|
895
|
-
tagDefinition:
|
|
905
|
+
tagDefinition: TagDefinition;
|
|
896
906
|
deferredRequest: boolean;
|
|
897
907
|
deferredRender: boolean;
|
|
898
908
|
refresh: boolean;
|
|
@@ -910,18 +920,29 @@ interface AdEventBus {
|
|
|
910
920
|
on: (event: AdEventName, handler: AdEventHandler) => void;
|
|
911
921
|
}
|
|
912
922
|
|
|
923
|
+
interface RefreshOptions {
|
|
924
|
+
keepPreviousSizes?: Array<Placement>;
|
|
925
|
+
applyReloadKeyword?: boolean;
|
|
926
|
+
}
|
|
913
927
|
interface AdServerDriver {
|
|
914
928
|
readonly name: string;
|
|
915
929
|
readonly capabilities: AdServerCapabilities;
|
|
930
|
+
readonly messageOrigins?: ReadonlyArray<string>;
|
|
916
931
|
setup(): Promise<void>;
|
|
917
932
|
setTargeting(): Promise<void>;
|
|
933
|
+
enrichPlacementsAfterDiscovery?(placements: Array<Placement>): Array<Placement>;
|
|
934
|
+
adjustPlacementsBeforeRequest?(placements: Array<Placement>): Promise<Array<Placement>>;
|
|
918
935
|
definePlacements?(placements: Array<Placement>): void;
|
|
919
936
|
requestPlacements?(placements: Array<Placement>): Promise<void>;
|
|
920
937
|
requestPage?(): Promise<void>;
|
|
921
938
|
bindEvents(bus: AdEventBus): Promise<void>;
|
|
939
|
+
clear?(targetIds: Array<string>): void;
|
|
940
|
+
resizeCreative?(targetId: string, size: Array<number>, isMediation?: boolean): void;
|
|
941
|
+
render?(targetId: string): void;
|
|
942
|
+
refresh?(targetIds: Array<string>, options?: RefreshOptions): void;
|
|
922
943
|
}
|
|
923
944
|
|
|
924
|
-
declare const createAdvertory: (handlers: SiteHandlers,
|
|
945
|
+
declare const createAdvertory: (handlers: SiteHandlers, driver: AdServerDriver, siteSpecificConfig?: SiteSpecificConfig) => Advertory;
|
|
925
946
|
|
|
926
947
|
declare const prepareTag: (tag: AstDefineTagParams) => AstDefineTagParams;
|
|
927
948
|
|
|
@@ -938,6 +959,6 @@ const HANDLERS = {
|
|
|
938
959
|
initNativeAd: initAdsOnGodt,
|
|
939
960
|
};
|
|
940
961
|
|
|
941
|
-
const advertory = createAdvertory(HANDLERS,
|
|
962
|
+
const advertory = createAdvertory(HANDLERS, xandrDriver, siteSpecificConfig);
|
|
942
963
|
|
|
943
964
|
export { advertory as default };
|