@schibsted/advertory 3.15.0 → 3.16.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 +18 -17
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.d.ts +18 -17
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.d.ts +19 -17
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-GZ1sIv1t.js +1 -0
- package/aftenposten/es/{events-D8pWSmsg.js → events-9aIAp3gb.js} +1 -1
- package/aftenposten/es/{index-BpDhcw-E.js → index--NjIeMtq.js} +1 -1
- package/aftenposten/es/index-30zysrFs.js +1 -0
- package/aftenposten/es/{index-D_ZfDX7n.js → index-BA-uAuq5.js} +1 -1
- package/aftenposten/es/{index-CabG87Qj.js → index-BVGbDJhd.js} +1 -1
- package/aftenposten/es/index-CsMbuvbk.js +1 -0
- package/aftenposten/es/{index-CVNgEU97.js → index-EH44nci2.js} +1 -1
- package/aftenposten/es/{index-MwzGrVXl.js → index-FoC85Ozh.js} +1 -1
- package/aftenposten/es/{index-D7IIvMmD.js → index-MgWt_TgD.js} +1 -1
- package/aftenposten/es/index.d.ts +19 -17
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-DLcI0XaA.js → styles-B6gcjTFZ.js} +1 -1
- package/aftenposten/es/{styles-Ndioyk21.js → styles-BOatZiuY.js} +1 -1
- package/aftenposten/es/{styles-BY1YXXd9.js → styles-BgLgXAac.js} +1 -1
- package/aftenposten/es/{styles-BLV3pNDc.js → styles-CkvreCPA.js} +1 -1
- package/aftenposten/es/{styles---H38acf.js → styles-DbROuDap.js} +1 -1
- package/aftenposten/es/{styles-BSpQ9wrB.js → styles-DnzkzFYy.js} +1 -1
- package/aftenposten/es/{styles-CmGvzh7N.js → styles-DzeNAXt8.js} +1 -1
- package/aftenposten/es/{styles-BsjNe66H.js → styles-U6Y_NE5t.js} +1 -1
- package/aftenposten/es/{styles-Bf3o4iGL.js → styles-kKKme7zm.js} +1 -1
- package/aftenposten/es/{styles-D-GEnM2K.js → styles-vnHs6WQc.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CaNJKb4R.js +1 -0
- package/aftenpostenv2/es/{events-D0AzPHgD.js → events-BvPoR-c6.js} +1 -1
- package/aftenpostenv2/es/{index-DRBmTJEh.js → index-BD7C7fw5.js} +1 -1
- package/aftenpostenv2/es/{index-BzzsRi1p.js → index-BniSDWQY.js} +1 -1
- package/aftenpostenv2/es/{index-DLg5TKvF.js → index-ByqTDqyE.js} +1 -1
- package/aftenpostenv2/es/{index-DccyhRzR.js → index-DB2YNAa3.js} +1 -1
- package/aftenpostenv2/es/{index-DHIaSS0w.js → index-DZ-pmGqE.js} +1 -1
- package/aftenpostenv2/es/{index-CT3bnylL.js → index-DriKC_vw.js} +1 -1
- package/aftenpostenv2/es/index-Dx8UGDg7.js +1 -0
- package/aftenpostenv2/es/index-HPe6c_F5.js +1 -0
- package/aftenpostenv2/es/index.d.ts +19 -17
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-Bt7FhUi7.js → styles-BUE7bmeP.js} +1 -1
- package/aftenpostenv2/es/{styles-BnzCRfJC.js → styles-CJpZfRlb.js} +1 -1
- package/aftenpostenv2/es/{styles-CFWM6WfN.js → styles-CNqqdiG4.js} +1 -1
- package/aftenpostenv2/es/{styles-Drs3vx54.js → styles-DDeBWoDk.js} +1 -1
- package/aftenpostenv2/es/{styles-zFiHo4Mv.js → styles-DjKWfNks.js} +1 -1
- package/aftenpostenv2/es/{styles-Cjxj5X-y.js → styles-DunKuWvX.js} +1 -1
- package/aftenpostenv2/es/{styles-BsZpcwGt.js → styles-Rtn-DTwE.js} +1 -1
- package/aftenpostenv2/es/{styles-D7sCt52w.js → styles-W5GbsZdD.js} +1 -1
- package/aftenpostenv2/es/{styles-DNU8Xu50.js → styles-hV6a0b1r.js} +1 -1
- package/aftenpostenv2/es/{styles-C2PryDI0.js → styles-iyzS4Ma0.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +19 -17
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-Bfy9UWBs.js +1 -0
- package/aftonbladet/es/{events-p54Iu8vF.js → events-B2qPC0JI.js} +1 -1
- package/aftonbladet/es/{index-CjAwtnM1.js → index-BWw2Jrn7.js} +1 -1
- package/aftonbladet/es/{index-D4qCky3j.js → index-Bugwgjoa.js} +1 -1
- package/aftonbladet/es/{index-DfE4pXnF.js → index-CJwtf88D.js} +1 -1
- package/aftonbladet/es/{index-ci4R4rww.js → index-Dt0MASUp.js} +1 -1
- package/aftonbladet/es/{index-D1w-ivv6.js → index-OJZczvhD.js} +1 -1
- package/aftonbladet/es/index-jAChk_u0.js +1 -0
- package/aftonbladet/es/{index-CfSNT4C2.js → index-qxHVT5-m.js} +1 -1
- package/aftonbladet/es/{index-Bsr4MaXs.js → index-utB-ictd.js} +1 -1
- package/aftonbladet/es/index.d.ts +19 -17
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-Dn54iRJh.js → styles-BfU0oD0-.js} +1 -1
- package/aftonbladet/es/{styles-CFMH3DPn.js → styles-BtWT613k.js} +1 -1
- package/aftonbladet/es/{styles-q3_G2IY5.js → styles-BvHu62wy.js} +1 -1
- package/aftonbladet/es/{styles-CEvgmr2F.js → styles-ByZpua9r.js} +1 -1
- package/aftonbladet/es/{styles-v8yXPogn.js → styles-Dsz5cfi3.js} +1 -1
- package/aftonbladet/es/{styles-0NsCHKhy.js → styles-gDX0ygo6.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-IvxL0Pnz.js +1 -0
- package/aftonbladetv2/es/{events-eXnWwS1R.js → events-69bfW6xs.js} +1 -1
- package/aftonbladetv2/es/{index-Bch45NKd.js → index-3Eg4bvN_.js} +1 -1
- package/aftonbladetv2/es/{index-cv7jnXrH.js → index-B1cui3dt.js} +1 -1
- package/aftonbladetv2/es/index-BO-lR9nN.js +1 -0
- package/aftonbladetv2/es/{index-CadxQurG.js → index-CCktfCvC.js} +1 -1
- package/aftonbladetv2/es/{index-DIOnmfnX.js → index-DM-UfNNR.js} +1 -1
- package/aftonbladetv2/es/{index-CBUT5K4r.js → index-DSHSFVOb.js} +1 -1
- package/aftonbladetv2/es/{index-D1ULWRDx.js → index-DxWp479k.js} +1 -1
- package/aftonbladetv2/es/{index-DMqn_IZm.js → index-XSC5wNbQ.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +19 -17
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-C7szoH8D.js → styles-BFd21r21.js} +1 -1
- package/aftonbladetv2/es/{styles-zT8eWXsS.js → styles-BOaYZk7z.js} +1 -1
- package/aftonbladetv2/es/{styles-DULiC4js.js → styles-C-DpQ4RN.js} +1 -1
- package/aftonbladetv2/es/{styles-CujdGQ5S.js → styles-C7hRmfCU.js} +1 -1
- package/aftonbladetv2/es/{styles-DP7lB0tL.js → styles-CFZMoqbF.js} +1 -1
- package/aftonbladetv2/es/{styles-B5F5zUBs.js → styles-wCf8sRxI.js} +1 -1
- package/brandmetrics/cjs/index.js +1 -1
- package/brandmetrics/es/index.js +1 -1
- package/bt/cjs/index.d.ts +19 -17
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-tWNc5glw.js +1 -0
- package/bt/es/{events-rj14pRWj.js → events-DTmcdrxG.js} +1 -1
- package/{sa/es/index-B3ltZ2Im.js → bt/es/index-81Oz-qGy.js} +1 -1
- package/bt/es/{index-DwF6_7Fr.js → index-Bg3TR55E.js} +1 -1
- package/bt/es/index-C02orzbP.js +1 -0
- package/bt/es/{index-BDRHm2Nu.js → index-C3TLCBe7.js} +1 -1
- package/bt/es/{index-D6W9gnkz.js → index-CInJ1xs9.js} +1 -1
- package/{sa/es/index-BqJ1WPAJ.js → bt/es/index-CTbYJElV.js} +1 -1
- package/bt/es/{index-BDz1HlN9.js → index-DBw0XYaH.js} +1 -1
- package/bt/es/{index-x77EPzPH.js → index-JHvfgnk5.js} +1 -1
- package/bt/es/index.d.ts +19 -17
- package/bt/es/index.js +1 -1
- package/{sa/es/styles-BbMqylP3.js → bt/es/styles--PbZr0ha.js} +1 -1
- package/bt/es/{styles-B0MKj30a.js → styles-Bl-Xa0ds.js} +1 -1
- package/bt/es/{styles-CWMO-ZDL.js → styles-BtKlcdvg.js} +1 -1
- package/bt/es/{styles--Rfzvghi.js → styles-BxDsJfWn.js} +1 -1
- package/bt/es/{styles-D3ESKF3v.js → styles-C99hwDpY.js} +1 -1
- package/bt/es/{styles-8VZJFOAE.js → styles-CM32ZnCk.js} +1 -1
- package/bt/es/{styles-Byoy8_H9.js → styles-D4kL714Y.js} +1 -1
- package/bt/es/{styles-BMzFrQLz.js → styles-DXyo7Fs5.js} +1 -1
- package/{sa/es/styles-C7lwVpQD.js → bt/es/styles-DeBo1zSc.js} +1 -1
- package/btv2/es/_auto-entry_btv2-nAWn20u1.js +1 -0
- package/{omni/es/events-DNR4Qw8_.js → btv2/es/events-BnQ0qhIr.js} +1 -1
- package/{omni/es/index-BaBVL5Ud.js → btv2/es/index-BAuez-R4.js} +1 -1
- package/btv2/es/{index-fGrh7N-w.js → index-BleJMqM8.js} +1 -1
- package/btv2/es/{index-D49iNH3k.js → index-D90U_1Qo.js} +1 -1
- package/btv2/es/index-DE84wIEB.js +1 -0
- package/btv2/es/{index-BIdcGwbC.js → index-DR8jG0pq.js} +1 -1
- package/btv2/es/{index-DS_73ZWC.js → index-DcuLYQyJ.js} +1 -1
- package/btv2/es/{index-B5XndCUs.js → index-ESsS5hjq.js} +1 -1
- package/{sav2/es/index-DX6MrZdd.js → btv2/es/index-mey4R2Qb.js} +1 -1
- package/btv2/es/index.d.ts +19 -17
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-CGp-VlPi.js → styles-BRhHEVrd.js} +1 -1
- package/btv2/es/{styles-Cx_8Y6Cg.js → styles-CBjR7FnE.js} +1 -1
- package/{sav2/es/styles-CY3ZZwxO.js → btv2/es/styles-CbJDTmCV.js} +1 -1
- package/btv2/es/{styles-BDmL6oOb.js → styles-D-pB6fGr.js} +1 -1
- package/btv2/es/{styles-DTN0yzBV.js → styles-D8De12bq.js} +1 -1
- package/{sav2/es/styles-jzSfAnLz.js → btv2/es/styles-DRddXCLA.js} +1 -1
- package/{sav2/es/styles-BLK_9Ant.js → btv2/es/styles-DeMpu9UC.js} +1 -1
- package/btv2/es/{styles-DyuMInjp.js → styles-ud_EY6B3.js} +1 -1
- package/common/cjs/index.js +1 -1
- package/common/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-DvdknnzM.js +1 -0
- package/e24/es/{events-BrI0rzBQ.js → events-Rm1n0noG.js} +1 -1
- package/e24/es/{index-CqQXC6mF.js → index-BNA5NZfB.js} +1 -1
- package/e24/es/index-Bi6PDC4c.js +1 -0
- package/e24/es/index-CGLozHmr.js +1 -0
- package/e24/es/{index-DjweqiVg.js → index-CWIhbVPw.js} +1 -1
- package/e24/es/{index-OnKBw5e5.js → index-CXlRMveE.js} +1 -1
- package/e24/es/{index-B1RWWDA4.js → index-CevbMYIC.js} +1 -1
- package/e24/es/{index-NE0Lh0jl.js → index-DEI-wJhu.js} +1 -1
- package/e24/es/{index-Bn00DU_j.js → index-DnMmQpmq.js} +1 -1
- package/e24/es/index.d.ts +19 -17
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-DOHgKGcp.js → styles-BL3psmJI.js} +1 -1
- package/e24/es/{styles-lPDidEBC.js → styles-BO7pwS_U.js} +1 -1
- package/e24/es/{styles-As4sWC1w.js → styles-BPI4B5gA.js} +1 -1
- package/e24/es/{styles-R0mK5AJ4.js → styles-C9DgPMO0.js} +1 -1
- package/e24/es/{styles-BejDP2r8.js → styles-CD9vs2Ja.js} +1 -1
- package/e24/es/{styles--C4eEm_t.js → styles-CHfJkS4o.js} +1 -1
- package/e24/es/{styles-Q-b3Qw_Z.js → styles-CIpLr1xP.js} +1 -1
- package/e24/es/{styles-nrXb8MPO.js → styles-Cl9qoAPs.js} +1 -1
- package/e24/es/{styles-DPOzTob1.js → styles-DJAMs49M.js} +1 -1
- package/{tv4/es/styles-Crm3pezD.js → e24/es/styles-JdFLdy5Z.js} +1 -1
- package/e24/es/{styles-HsQZ6qZs.js → styles-rncULcNW.js} +1 -1
- package/editory/cjs/index.d.ts +18 -17
- package/editory/cjs/index.js +1 -1
- package/editory/es/index.d.ts +18 -17
- package/editory/es/index.js +1 -1
- package/fotbollskanalen/cjs/index.d.ts +19 -17
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DPyblSMF.js +1 -0
- package/fotbollskanalen/es/{events-DpB36fIX.js → events-D6ksBWHo.js} +1 -1
- package/fotbollskanalen/es/{index-CB2-7fAK.js → index-BRVt_-Mn.js} +1 -1
- package/fotbollskanalen/es/{index-CUA2eNGE.js → index-Cr8Mal6K.js} +1 -1
- package/fotbollskanalen/es/{index-kFg83CZS.js → index-DOn9ov7p.js} +1 -1
- package/fotbollskanalen/es/{index-BsObvNq4.js → index-DVeOnxq3.js} +1 -1
- package/fotbollskanalen/es/index-DwPddK-e.js +1 -0
- package/fotbollskanalen/es/index-LYi5uIYu.js +1 -0
- package/fotbollskanalen/es/{index-CtmIMfBu.js → index-My4323ov.js} +1 -1
- package/fotbollskanalen/es/{index-OGQEy9H9.js → index-lcwcTlOs.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +19 -17
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-CvqKtsSK.js → styles-B8RWIS0n.js} +1 -1
- package/fotbollskanalen/es/{styles-B19q7540.js → styles-CQtxVBX-.js} +1 -1
- package/fotbollskanalen/es/{styles-CjtCSs6I.js → styles-D457Igc-.js} +1 -1
- package/fotbollskanalen/es/{styles-J_UB-3gD.js → styles-DZEYG8hY.js} +1 -1
- package/glimr/cjs/index.js +1 -1
- package/glimr/es/index.js +1 -1
- package/godt/cjs/index.d.ts +19 -17
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +18 -17
- package/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.d.ts +18 -17
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.d.ts +19 -17
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +19 -17
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-DUVKlIP1.js +1 -0
- package/koket/es/{events-DfRbJxyU.js → events-Cz_3ieSv.js} +1 -1
- package/koket/es/{index-BnfNHEXx.js → index-B8eeceuk.js} +1 -1
- package/koket/es/index-BoYKeek-.js +1 -0
- package/koket/es/{index-DDbpDX-g.js → index-CQG7p8FU.js} +1 -1
- package/koket/es/{index-CJ1W571o.js → index-CbF7vThc.js} +1 -1
- package/{svdv2/es/index-lp9D_VqW.js → koket/es/index-DRjNvGuy.js} +1 -1
- package/koket/es/{index-D85uO69N.js → index-DUcH6MTv.js} +1 -1
- package/koket/es/index-DiS6pnqp.js +1 -0
- package/koket/es/{index-Cqr-buJd.js → index-DyKqdWUd.js} +1 -1
- package/koket/es/index.d.ts +19 -17
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-Cuxjxnz7.js → koket/es/styles-87UmJ0fd.js} +1 -1
- package/koket/es/{styles-CqURRP3E.js → styles-CH964apH.js} +1 -1
- package/koket/es/{styles-BDu9ZZwO.js → styles-CYIKwjx2.js} +1 -1
- package/{svdv2/es/styles-CpD30RLC.js → koket/es/styles-DPzIWi6-.js} +1 -1
- package/minmote/cjs/index.d.ts +19 -17
- package/minmote/cjs/index.js +1 -1
- package/mtv/es/_auto-entry_mtv-SFi7HmQz.js +1 -0
- package/mtv/es/{events-BTYIrHRZ.js → events-Efp-IsoA.js} +1 -1
- package/mtv/es/{index-C1LxbEmw.js → index-62ZhEiLS.js} +1 -1
- package/mtv/es/{index-DeSJppRQ.js → index-B5JHZdJ_.js} +1 -1
- package/mtv/es/{index-DJlsLpQx.js → index-CCxLaTeK.js} +1 -1
- package/mtv/es/{index-BO-i3sCG.js → index-CHACHVva.js} +1 -1
- package/{svd/es/index-BYkihgZA.js → mtv/es/index-CtlqPalQ.js} +1 -1
- package/mtv/es/{index-CLQvYoC-.js → index-DRSCuKvn.js} +1 -1
- package/mtv/es/index-DU7dK1tv.js +1 -0
- package/mtv/es/{index-DeKzJSAu.js → index-FOfQp-cn.js} +1 -1
- package/mtv/es/index.d.ts +19 -17
- package/mtv/es/index.js +1 -1
- package/omni/es/_auto-entry_omni-DViPCAlv.js +1 -0
- package/{tvnu/es/events-BEMqLH7z.js → omni/es/events-LRAT_Bvo.js} +1 -1
- package/{tvnu/es/index-TDZ9OAcd.js → omni/es/index-9bwaIdG0.js} +1 -1
- package/omni/es/{index-D6MzZqfs.js → index-B9uQXXEv.js} +1 -1
- package/omni/es/{index-CMF_JH0-.js → index-BTgrUU-i.js} +1 -1
- package/{btv2/es/index-CMrcaT3O.js → omni/es/index-BW4d0akI.js} +1 -1
- package/omni/es/{index-CTHSWhc8.js → index-BXtYpATo.js} +1 -1
- package/omni/es/index-BhFw5lTE.js +1 -0
- package/omni/es/{index-B94lMokz.js → index-D69As6fp.js} +1 -1
- package/omni/es/{index-BWjQ3CYh.js → index-DDjGpUEr.js} +1 -1
- package/omni/es/index.d.ts +19 -17
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-cOSLf7Mq.js → styles-BA5p-L5N.js} +1 -1
- package/omni/es/{styles-DPl5PPP2.js → styles-DOcAV6ju.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +19 -17
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +19 -17
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-DeD3MVP7.js +1 -0
- package/sa/es/{events-DI3diJFL.js → events-BecgCWsy.js} +1 -1
- package/sa/es/{index-BDXsIVrg.js → index-BX40s81H.js} +1 -1
- package/sa/es/index-BwMYBcbq.js +1 -0
- package/{bt/es/index-DsnsTH-b.js → sa/es/index-C24tchc6.js} +1 -1
- package/sa/es/index-CUpj-JB4.js +1 -0
- package/sa/es/{index-CIec2YTJ.js → index-Cr-FUyBl.js} +1 -1
- package/{bt/es/index-hyiU7O-x.js → sa/es/index-CyyVcWqy.js} +1 -1
- package/sa/es/{index-DIE4Q0G2.js → index-D4L1qme2.js} +1 -1
- package/sa/es/{index-x0P5jn9g.js → index-o90qAp4u.js} +1 -1
- package/sa/es/index.d.ts +19 -17
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-C_xDTp9G.js → styles-B2HTeuqJ.js} +1 -1
- package/sa/es/{styles-Bql3BSp8.js → styles-B2vQP2K8.js} +1 -1
- package/{vg/es/styles-CwuBd-eA.js → sa/es/styles-CHsNl2Mc.js} +1 -1
- package/{bt/es/styles-DO5qqVdH.js → sa/es/styles-CfUywXvc.js} +1 -1
- package/sa/es/{styles-xs6TvmhP.js → styles-Cqr_RRge.js} +1 -1
- package/sa/es/{styles-KT6z0K0Z.js → styles-CxPsuwAd.js} +1 -1
- package/{vg/es/styles-Cmp2KkM3.js → sa/es/styles-CzYN_LTX.js} +1 -1
- package/sa/es/{styles-BKH-itvT.js → styles-D2LetjR-.js} +1 -1
- package/sa/es/{styles-Dtb1biv9.js → styles-s8Z00lKl.js} +1 -1
- package/sav2/es/_auto-entry_sav2-Db0fRSt6.js +1 -0
- package/sav2/es/{events-CthRG9py.js → events-DNGKF8ss.js} +1 -1
- package/sav2/es/{index-Cna6rmoX.js → index-BC5EQ5Ki.js} +1 -1
- package/sav2/es/{index-BmWOJlaN.js → index-ByTXDT_0.js} +1 -1
- package/sav2/es/index-C64lmG2i.js +1 -0
- package/sav2/es/index-CPDnPdKS.js +1 -0
- package/sav2/es/{index-CKJyI3N1.js → index-DNZIrN_q.js} +1 -1
- package/sav2/es/{index-DazqwtUU.js → index-WaOZoUNd.js} +1 -1
- package/sav2/es/{index-B_Q5_GSE.js → index-mPgiXuj_.js} +1 -1
- package/{omni/es/index-BOWJ6T50.js → sav2/es/index-yMvxNIY0.js} +1 -1
- package/sav2/es/index.d.ts +19 -17
- package/sav2/es/index.js +1 -1
- package/sav2/es/{styles-ClAYlm1m.js → styles-B1UQfDYG.js} +1 -1
- package/{vgv2/es/styles-D-TJ0YZd.js → sav2/es/styles-B4aRq6IG.js} +1 -1
- package/sav2/es/{styles-BI4HpZVa.js → styles-BgGC9MUo.js} +1 -1
- package/{vgv2/es/styles-Bk79ACwC.js → sav2/es/styles-C4fHpc7i.js} +1 -1
- package/sav2/es/{styles-Bofifucv.js → styles-Ch2FCI84.js} +1 -1
- package/{vgv2/es/styles-DybsoR0o.js → sav2/es/styles-CnzK_mxw.js} +1 -1
- package/{btv2/es/styles-CnimDhRk.js → sav2/es/styles-DOEtsbP-.js} +1 -1
- package/sav2/es/{styles-k9X55Rnn.js → styles-DdbJdwhY.js} +1 -1
- package/svd/cjs/index.d.ts +19 -17
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-WUu3yvXG.js +1 -0
- package/{tv4/es/events-4KySLBAR.js → svd/es/events-DwWjYZVp.js} +1 -1
- package/svd/es/{index-Bs3plEt-.js → index-B0Iu8vXY.js} +1 -1
- package/svd/es/{index-rgHeIyun.js → index-B1METJ1o.js} +1 -1
- package/svd/es/index-B4iY0GvE.js +1 -0
- package/{mtv/es/index-bmZLGjIV.js → svd/es/index-BLUgliOO.js} +1 -1
- package/svd/es/{index-4W_iswyV.js → index-B_0eYGGR.js} +1 -1
- package/svd/es/index-CkyGbTvE.js +1 -0
- package/svd/es/{index-Dnhi0clS.js → index-DMzJ_nHd.js} +1 -1
- package/svd/es/{index-Br0CeQZV.js → index-DrXg3pVq.js} +1 -1
- package/svd/es/index.d.ts +19 -17
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-W_yUrhBw.js → styles-Bw2I5Pno.js} +1 -1
- package/svd/es/{styles-BIrjOvbj.js → styles-C7zlSwvb.js} +1 -1
- package/svd/es/{styles-CN1yvQo7.js → styles-CMm02bEb.js} +1 -1
- package/svd/es/{styles-DtE4dGMU.js → styles-Cztov_Wv.js} +1 -1
- package/svd/es/{styles-CBeC-1fu.js → styles-D_77In5Q.js} +1 -1
- package/svd/es/{styles-oIL8ePVu.js → styles-S2TTOwZN.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-DR7G4Tmi.js +1 -0
- package/svdv2/es/{events-By9jQ9Ir.js → events-CnhlqoBJ.js} +1 -1
- package/svdv2/es/{index-D5-Q3bOj.js → index--fJ82juM.js} +1 -1
- package/svdv2/es/{index-D7tbEeNI.js → index-B6wuVCpl.js} +1 -1
- package/svdv2/es/index-BPZlMFDy.js +1 -0
- package/svdv2/es/{index-CYeHwSoY.js → index-BRFrDRYx.js} +1 -1
- package/svdv2/es/{index-BgpRT2YF.js → index-Biygcry-.js} +1 -1
- package/svdv2/es/{index-CXgz-X13.js → index-BjBJaPcv.js} +1 -1
- package/svdv2/es/index-CAsNKuIv.js +1 -0
- package/{koket/es/index-BlZzrwzV.js → svdv2/es/index-CDAstSaK.js} +1 -1
- package/svdv2/es/index.d.ts +19 -17
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles-CP3fGIq5.js → svdv2/es/styles-BUKp899c.js} +1 -1
- package/svdv2/es/{styles-4IN-ROzv.js → styles-CjYRO2UV.js} +1 -1
- package/svdv2/es/{styles-zHKSAqF4.js → styles-DFmU-6t8.js} +1 -1
- package/svdv2/es/{styles-D8SLFgsU.js → styles-DPA1dHCJ.js} +1 -1
- package/svdv2/es/{styles-BDbvDGco.js → styles-Dc1aKfSv.js} +1 -1
- package/svdv2/es/{styles-CK3cpdWI.js → styles-DcRNPjTa.js} +1 -1
- package/{koket/es/styles-Bon_993j.js → svdv2/es/styles-H5EW2MNs.js} +1 -1
- package/tek/cjs/index.d.ts +19 -17
- package/tek/cjs/index.js +1 -1
- package/tracker/cjs/index.d.ts +18 -17
- package/tracker/es/index.d.ts +18 -17
- package/tv4/cjs/index.d.ts +19 -17
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-FaljvrBE.js +1 -0
- package/{svd/es/events-DCpY41Cg.js → tv4/es/events-DefiGdDS.js} +1 -1
- package/tv4/es/{index-D4P-NvdT.js → index-B2vpMEPe.js} +1 -1
- package/tv4/es/index-BxNrZ8Yf.js +1 -0
- package/tv4/es/{index-BUm2iJCL.js → index-Db5YHoZP.js} +1 -1
- package/tv4/es/{index-wC373CoD.js → index-DvOZYkPa.js} +1 -1
- package/tv4/es/{index-xBKjwvS1.js → index-HYqE7h04.js} +1 -1
- package/tv4/es/{index-BDOkY4IN.js → index-KFLtqJjc.js} +1 -1
- package/tv4/es/{index-yMXj6DRW.js → index-KvBxcsvd.js} +1 -1
- package/tv4/es/{index-CFbaMlxi.js → index-ghGeOxNq.js} +1 -1
- package/tv4/es/index.d.ts +19 -17
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-m2zKugmR.js → styles-B-DC8wXs.js} +1 -1
- package/tv4/es/{styles-gV6NqYu-.js → styles-BUyPd9Y0.js} +1 -1
- package/tv4/es/{styles-Bmq51bK_.js → styles-DCjlr5xQ.js} +1 -1
- package/{e24/es/styles-CKcjc5a0.js → tv4/es/styles-N6wd6A_B.js} +1 -1
- package/tvnu/cjs/index.d.ts +19 -17
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-DMZPquXT.js +1 -0
- package/{btv2/es/events-BjiorpRK.js → tvnu/es/events-Dqb-GF2f.js} +1 -1
- package/{omni/es/index-DgqG_a5X.js → tvnu/es/index-B6cU8hsW.js} +1 -1
- package/{vgv2/es/index-0bMMbnRN.js → tvnu/es/index-C2YotjJU.js} +1 -1
- package/{sav2/es/index-CruDB6CF.js → tvnu/es/index-C3xnIzU_.js} +1 -1
- package/tvnu/es/{index-BMReWNC9.js → index-C4WAB55h.js} +1 -1
- package/tvnu/es/{index-Bm-S3SYD.js → index-CSHenyQ5.js} +1 -1
- package/tvnu/es/index-D10N_Zgv.js +1 -0
- package/tvnu/es/{index-D1zU2Yxs.js → index-DmOrGvYz.js} +1 -1
- package/tvnu/es/{index-EsfYbPbT.js → index-DyTc9ILh.js} +1 -1
- package/tvnu/es/index.d.ts +19 -17
- package/tvnu/es/index.js +1 -1
- package/tvnu/es/{styles-8eD0eK-_.js → styles--UYsw4aM.js} +1 -1
- package/tvnu/es/{styles-B5GgV2tN.js → styles-C3fwDL-v.js} +1 -1
- package/{btv2/es/styles-DEZqUzVC.js → tvnu/es/styles-CK4taMCz.js} +1 -1
- package/types/index.d.ts +20 -18
- package/vg/cjs/index.d.ts +19 -17
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-1XkGX2QP.js +1 -0
- package/vg/es/{events-CRsvxUE3.js → events-Dh51wHYO.js} +1 -1
- package/vg/es/{index-BSsLrKNL.js → index--wXT3-oU.js} +1 -1
- package/vg/es/index-0fVLBcRa.js +1 -0
- package/vg/es/{index-CGvHyIoW.js → index-4grZKfL5.js} +1 -1
- package/vg/es/{index-ywUd_exl.js → index-7QAcfKPx.js} +1 -1
- package/vg/es/{index-DkIhalKX.js → index-C6lcq7AL.js} +1 -1
- package/vg/es/{index-Bq7MDB3X.js → index-DntkqQFS.js} +1 -1
- package/vg/es/{index-CAX8dYg4.js → index-jA-C4Ij5.js} +1 -1
- package/vg/es/{index-Dpp2Yjnl.js → index-yUtgdiUg.js} +1 -1
- package/vg/es/index.d.ts +19 -17
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-CbcwYAlK.js → styles-5MAzs4Zu.js} +1 -1
- package/vg/es/{styles-kYMBLoHJ.js → styles-86UDRaJW.js} +1 -1
- package/vg/es/{styles-hZZ-Ymzt.js → styles-8GyQTQgv.js} +1 -1
- package/vg/es/{styles-BXprVqIK.js → styles-B0UF7LfE.js} +1 -1
- package/{sa/es/styles-ElFuh5MJ.js → vg/es/styles-B5V4FI_M.js} +1 -1
- package/{bt/es/styles-BMLCr-Gn.js → vg/es/styles-BGZm-9jT.js} +1 -1
- package/vg/es/{styles-CxK9hwR7.js → styles-BJMVnrSG.js} +1 -1
- package/vg/es/{styles-BdsbGPQT.js → styles-BN1Q3jGC.js} +1 -1
- package/vg/es/{styles-DTxKzHkJ.js → styles-BRu4TSPJ.js} +1 -1
- package/vg/es/{styles-DKRPp5sN.js → styles-C1WJ3vz7.js} +1 -1
- package/vg/es/{styles-6GpAwbSQ.js → styles-C6Is07pg.js} +1 -1
- package/vg/es/{styles-CTTv6Ja7.js → styles-CJthc8yt.js} +1 -1
- package/vg/es/{styles-DEEmZAAU.js → styles-DBnEP0fU.js} +1 -1
- package/vg/es/{styles-C8eMLGoZ.js → styles-DNhpQVYO.js} +1 -1
- package/vg/es/{styles-CRDS-l-x.js → styles-vl99wLbR.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-DvxBVvmD.js +1 -0
- package/vgv2/es/{events-C6zZZ0wR.js → events-C2yf-22F.js} +1 -1
- package/vgv2/es/{index-CZZXITop.js → index-BBWjZxsJ.js} +1 -1
- package/vgv2/es/{index-DV4idJT3.js → index-Bu60pgL9.js} +1 -1
- package/vgv2/es/{index-CwSAcYYf.js → index-DEn2V_8g.js} +1 -1
- package/vgv2/es/index-DWFmomps.js +1 -0
- package/{tvnu/es/index-C9T8MdQO.js → vgv2/es/index-DdgcFF8X.js} +1 -1
- package/vgv2/es/{index-Dw8awMET.js → index-Ddv1JfSR.js} +1 -1
- package/vgv2/es/{index-8wTVjUza.js → index-Dl_xMnPv.js} +1 -1
- package/vgv2/es/{index-GgW8CmxR.js → index-sQtq8Z9r.js} +1 -1
- package/vgv2/es/index.d.ts +19 -17
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-CvQ29OHO.js → styles-0x-jssVm.js} +1 -1
- package/vgv2/es/{styles-BLNXZPYf.js → styles-B2AEj_Tc.js} +1 -1
- package/vgv2/es/{styles-VwuX1N09.js → styles-BFeY1omF.js} +1 -1
- package/vgv2/es/{styles-DAHzAObz.js → styles-Bl_9N8LI.js} +1 -1
- package/vgv2/es/{styles-jsqPoIHl.js → styles-BpuYPyfl.js} +1 -1
- package/vgv2/es/{styles-B-WZKfZF.js → styles-By6TnGB5.js} +1 -1
- package/vgv2/es/{styles-CLydlrr4.js → styles-COz3RfmR.js} +1 -1
- package/vgv2/es/{styles-GFXYVwWk.js → styles-C_XPLUFA.js} +1 -1
- package/vgv2/es/{styles-DJalsPbI.js → styles-Cmc8MKa3.js} +1 -1
- package/{tvnu/es/styles-BkBzkoE7.js → vgv2/es/styles-DELeZqx6.js} +1 -1
- package/vgv2/es/{styles-BYxNSj9N.js → styles-DT7y8IAa.js} +1 -1
- package/vgv2/es/{styles-BqMBA6sc.js → styles-HDvKLHsD.js} +1 -1
- package/{sav2/es/styles-DsIS4sUA.js → vgv2/es/styles-MXrAxOVD.js} +1 -1
- package/{btv2/es/styles-BcfarAWx.js → vgv2/es/styles-mGmN7rNj.js} +1 -1
- package/vgv2/es/{styles-B8F-fTVB.js → styles-xB4_HpKs.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-RBEMGbJM.js +0 -1
- package/aftenposten/es/index-C8KzO_Bo.js +0 -1
- package/aftenposten/es/index-ChMcrS9k.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BQuke4cU.js +0 -1
- package/aftenpostenv2/es/index-C6ViniMz.js +0 -1
- package/aftenpostenv2/es/index-VxOMsbBZ.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CAArVKie.js +0 -1
- package/aftonbladet/es/index-B0seJE6d.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Bhr4jHWC.js +0 -1
- package/aftonbladetv2/es/index-Bs17skju.js +0 -1
- package/bt/es/_auto-entry_bt-Dk176YDo.js +0 -1
- package/bt/es/index-CT1ewpbE.js +0 -1
- package/btv2/es/_auto-entry_btv2-C3BMfR9N.js +0 -1
- package/btv2/es/index-DRKjsTZi.js +0 -1
- package/btv2/es/index-Dq_ikWoX.js +0 -1
- package/e24/es/_auto-entry_e24-BIxvA8qH.js +0 -1
- package/e24/es/index-jIqxCG8Y.js +0 -1
- package/e24/es/index-zNXfc029.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-C0bG9s2e.js +0 -1
- package/fotbollskanalen/es/index-Bip66ufO.js +0 -1
- package/fotbollskanalen/es/index-DFOvO8Gk.js +0 -1
- package/koket/es/_auto-entry_koket-CfdwxTqe.js +0 -1
- package/koket/es/index-4zfKSkHr.js +0 -1
- package/koket/es/index-eql9xeF3.js +0 -1
- package/mtv/es/_auto-entry_mtv-BDbckjio.js +0 -1
- package/mtv/es/index-CMcYIr5B.js +0 -1
- package/omni/es/_auto-entry_omni-kPi2t184.js +0 -1
- package/sa/es/_auto-entry_sa-BVVMzNzi.js +0 -1
- package/sa/es/index-CTtjQOs5.js +0 -1
- package/sa/es/index-_j0q3jV3.js +0 -1
- package/sav2/es/_auto-entry_sav2-D82eD4oc.js +0 -1
- package/sav2/es/index-6GP1iTRr.js +0 -1
- package/svd/es/_auto-entry_svd-CoRlxzCg.js +0 -1
- package/svd/es/index-CBa5CgPk.js +0 -1
- package/svd/es/index-CYJD814U.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-C6rMJno8.js +0 -1
- package/svdv2/es/index-BvcATPFW.js +0 -1
- package/svdv2/es/index-ZE10OS6e.js +0 -1
- package/tv4/es/_auto-entry_tv4-CunA1-4L.js +0 -1
- package/tv4/es/index-DgOoHYbO.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-DE4GbG57.js +0 -1
- package/tvnu/es/index-CauAadba.js +0 -1
- package/tvnu/es/index-DuNHAdA7.js +0 -1
- package/vg/es/_auto-entry_vg-DoO28oQo.js +0 -1
- package/vg/es/index-CVP91nhn.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-Cmle-i6b.js +0 -1
- package/vgv2/es/index-Hd2EKHnJ.js +0 -1
package/video/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{d(i.next(e))}catch(e){o(e)}}function a(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}d((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const t=()=>e(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),n={NO:"no",SE:"se"},i={pageContext:{publisher:"aftonbladet",countryCode:n.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},r={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},o=e=>(null==e?void 0:e.parent)?[...o(e.parent),e.shortPath||"unknown"]:[],s=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=o(e);return r[n]||"ovrigaavdelningar"})(e)}_{position}`,a=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},d=(e,t)=>{console.warn("[Advertory WARN]: ",e)},l={aftonbladet:i},c={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:s(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:o(e).join(":")}}},u=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},p=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),v="desktop",g="web_desktop",h="web_phone",f="wde",y="wph",b="se-generic",m="aa-sch",w="kv_",O="pause",C="{deviceType}",P="{position}",I="afp_",T=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),_="1-1",S="16-9",E="3-4",j="9-16",A="responsive",$={[_]:1,[S]:1.78,[j]:.56,[A]:1},k={[_]:1,[S]:1.78,[E]:1.33,[j]:.56},N=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},s=v===n?f:y,a=r.replace(C,s);return(e,n)=>{if(e===O)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(P,O).replace(/-([a-z]+)_/,"-article-"))(a);if(n&&T.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(C,s).replace(P,e)}return a.replace(P,e)}};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,D;var R=x(function(){if(D)return M;D=1;var e=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===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(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 o(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var s={};return i.isMergeableObject(e)&&r(e).forEach(function(t){s[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?s[r]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(r,i)(e[r],t[r],i):s[r]=n(t[r],i))}),s}function a(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(t)?a?o.arrayMerge(t,r,o):s(t,r,o):n(r,o)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},M=a}());const U={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},H=(e,t)=>R(e,t,U),F=(e,t)=>Object.assign(Object.assign({},e),t),L=(e,t)=>{var n;return H(null!==(n=e)&&void 0!==n?n:{},t)},V={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},B=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||d("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||d("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||d("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||d("pageContext.deviceType is required."),n||d("pageOptions is required."),i||d("placements is required."),(null==r?void 0:r.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,s=[{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===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},q={placements:(e,t)=>t,takeover:L,refreshConfig:F,editory:L,appearanceConfig:L,pageContext:F,pageOptions:F,tcf:F};class K{set(e){B(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(q)){const i=t[e];void 0!==i&&(n[e]=q[e](n[e],i))}})(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=H(K.DEFAULT_SITE_HANDLERS,e)}}K.DEFAULT_SITE_HANDLERS={siteEvents:V,initNativeAd:()=>{}};const W=new K;W.modifyConfigProperties.bind(W);const z=864e5,J=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return a("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=z)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=z)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return a("Error with parsing localStorage data"),null}}}})(),G=["glwe_","glwet_"],Q={geofenceTags:[],geoTags:[],weatherTags:[]},Y=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return a("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),X="cmp:loaded";let Z="undefined"!=typeof window?window._tcf_:void 0,ee=!1;const te=(t,i,r)=>{const o=!!(null==t?void 0:t.enabled),s=(null==t?void 0:t.timeout)||3e3,d=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const c=()=>{if(!(null==t?void 0:t.enabled))return!0;if(((e,t)=>e?!!t&&(a("TCF bypass param detected, returning consent: true"),!0):(a("TCF is not enabled, returning consent: true"),!0))(o,d))return!0;if(ee)return null;if(!Z)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=Z.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),Z.getConsentedToAllSync()};return{initConsentManager:()=>(null==t?void 0:t.enabled)?new Promise((e,t)=>{if(a("Getting TCF consent manager..."),window._tcf_)return a("TCF consent manager is already available"),Z=window._tcf_,void e(Z);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(Z=window._tcf_,e(Z)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(X,n),ee=!0,t(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(X,n,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>e(void 0,void 0,void 0,function*(){if(null==t?void 0:t.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${t.schibstedAdChoicesOverrideValue}`),Boolean(Number(t.schibstedAdChoicesOverrideValue));const e=(null==t?void 0:t.advertisingCMPSignalEnabled)&&r===n.SE,i=(null==t?void 0:t.advertisingCMPSignalEnabled)&&r===n.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Y(t);if(!(null==t?void 0:t.enabled))return!0;const o=c();return null!==o?o:yield new Promise((e,t)=>{try{if(!Z)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{a("TCF isConsentedToAll timed out, resolving with false"),n(!1)},s);Z.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),Z.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},ne=(t,n,i,...r)=>e(void 0,[t,n,i,...r],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return a(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=te(e,0,n);return(yield r())?(a(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(a(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),ie={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"},re=e=>G.some(t=>e.startsWith(t)),oe=e=>e.startsWith("glgc_"),se=e=>!re(e)&&!oe(e),ae=(t,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:r,pageContext:{countryCode:o}={}}=t,s=yield((...t)=>e(void 0,[...t],void 0,function*(e=W.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled)return yield ne(t,n,i,"glimr");const{getConsentAsync:r}=te(t,0,i);return yield r()}))(t);if(!(null==r?void 0:r.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===n.NO?"no-sno":"se-generic")(o),l=de(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),de=(e,t)=>{const n=le();if(!n)return Q;const i=((e=[])=>e.filter(re))(n),r=((e=[])=>e.filter(oe))(n),o=((e=[],t,n)=>{var i;const r=e.filter(se);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=ie[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},le=()=>{const e=J.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},ce="opaque",ue=t=>e(void 0,void 0,void 0,function*(){if(t.type!==ce){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),pe={get:(t,...n)=>e(void 0,[t,...n],void 0,function*(t,n={}){var{timeout:i}=n,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(n,["timeout"]);if(i)return((t,n,i)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,r=setTimeout(()=>e.abort(),i);try{const i=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return ue(i)}finally{clearTimeout(r)}}))(t,r,i);const o=yield fetch(t,r);return ue(o)}),post:(t,n,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),r=yield fetch(t,{method:"POST",headers:n,body:e});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ve="advertory:ppids-cache",ge={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},he={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},fe={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ye={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},be={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class me{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const we=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(t){return e(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},Oe=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(t,n){return e(this,void 0,void 0,function*(){var e,i,r,o,s,a,d,l,c,u,p;const v=J.get(ve),g=yield this.getNewPPIDs(t,n);if(this.shouldHash(v,g)){const n=null!==(e=t.hasherUrl)&&void 0!==e?e:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,n);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(s=c.environmentId)&&void 0!==s?s:"",null===(a=g.idfv)||void 0===a?void 0:a.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});J.set(ve,r)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield pe.post(n,e,t)}catch(e){return a("Error with hashing PPIDs",e),null}})}getNewPPIDs(t,n){return e(this,arguments,void 0,function*({clientId:t,instance:n},i){const r=yield((t,n)=>e(void 0,void 0,void 0,function*(){const e=yield t.getUserId();return e?`${be[n]}:${e}`:null}))(n,i),o=yield(s=n,e(void 0,void 0,void 0,function*(){const e=yield s.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var s;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:t},userId:{plain:r},environmentId:{plain:o},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},Ce=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:r}=te(e,0,i);if(!(yield r()))return;const o=(e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null})("_pulse2data");return o?o.split(",")[9]:void 0}),Pe=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},Ie=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Te=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},_e=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},Se=()=>{const e=null!==(t=_e()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=_e()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ee=()=>Object.fromEntries(new URLSearchParams(window.location.search)),je=(n,i)=>e(void 0,void 0,void 0,function*(){const{tcf:r,pageContext:{publisher:o,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:n.isApp,countryCode:s,publisher:o,pageType:"front",deviceType:n.deviceType},c=(yield ne(r,n.isApp,s,"video"))?"1":"0",u=yield t(),p=yield(f=s,e(void 0,void 0,void 0,function*(){const{ppid1:e,ppid2:t}=we.getPPIDs(),{ppid1:n,ppid2:i}=Oe.getPPIDs(),r=(new me).add(t,ge[f]).add(e,he[f]).add(i,fe[f]).add(n,ye[f]);return yield new Promise(e=>{e(r.buildVideoEids())})}));var f;const y=yield Ce({tcf:r,pageContext:l}),O=null!==(C=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==C?C:"";var C;const P=((e=1)=>Ie(k,Number(e.toFixed(2))))(n.instreamAspectRatio),I=(T=n.playerAspectRatio)?Ie($,Number(T.toFixed(2))):A;var T,_;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${m}-country_code`]:s,[`${m}-publisher`]:o,[`${m}-supply_type`]:(_=n.deviceType,_===v?g:h),[`kw_${m}-page_type`]:"collection",[`${m}-page_type`]:"collection",[`${b}-appmode`]:n.isAndroidApp?"hybrid":"notinapp",[`kw_${b}-page`]:"index",[`${b}-page`]:"index",[`${b}-screenheight`]:String(window.screen.height),[`${b}-screenwidth`]:String(window.screen.width),[`${b}-viewportheight`]:String(d),[`${b}-viewportwidth`]:String(a),[`${b}-loggedin`]:n.isUserLoggedIn?"yes":"no",[`${b}-mobile-os`]:Pe(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Se(),[`${b}-tags`]:n.tags,[`${b}-articleid`]:O,"article-id":O},yield ae(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),n.isUserPresentOnFrontPage&&n.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),n.pageAdsKeywords),Object.keys(Ee()).some(e=>e.includes(w))&&(()=>{const e=Ee(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(w)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[i.sectionKeyword]:n.sections.split(":"),"aa-sch-cmp_advertising":c,"kw_aa-sch-cmp_advertising":c,"aa-sch-instream_player_aspectratio":P,"aa-sch-player_aspectratio":I}),u),{eids:p})}),Ae=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],$e=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],ke=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ne=(e,t)=>{const n=[...Ae,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||ke.includes(e)?e:`kw_${e}`,t]))},xe=e=>Object.fromEntries(Object.entries(e).filter(([e])=>$e.includes(e))),Me=(t,n)=>e(void 0,void 0,void 0,function*(){var e,r,o,s;const a=(e=>{var t;l[e]||d(`[video] No config found for publisher "${e}"`);return null!==(t=l[e])&&void 0!==t?t:i})(t.publisher),p=(e=>{var t;return null!==(t=c[e])&&void 0!==t?t:c.aftonbladet})(t.publisher)(t.assetSection,t.isLiveStudio),v="/"===window.location.pathname,g=null===(r=null===(e=n.attributes)||void 0===e?void 0:e.id)||void 0===r?void 0:r.toString(),h=t.assetId===g,f=null!==(o=Number(t.aspectRatio))&&void 0!==o?o:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield je({pageAdsKeywords:t.pageAdsKeywords,tags:(b=t.tags,b?b.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(s=null==p?void 0:p.sections)&&void 0!==s?s:"",isUserLoggedIn:t.isUserLoggedIn,isUserPresentOnFrontPage:v,isInitialVideo:h,instreamAspectRatio:f,playerAspectRatio:Te(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),De=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:s,playbackMethod:a}=e,{invCode:d}=i||{},l=N(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(I)?`${I}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(s,r),"se-generic-playback-method":p.get(a),"kw_se-generic-adformat":c(s)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Ne(o,n)),xe(o)),{vskippable:"0",referrer:u,vplaybackmethod:a})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Re=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield Me(t,n);return De(e,t)});export{t as getTcfConsentKeywords,Re as getVideoAdsConfig};
|
|
1
|
+
function e(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{d(i.next(e))}catch(e){o(e)}}function a(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}d((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const t=()=>e(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),n={NO:"no",SE:"se"},i={pageContext:{publisher:"aftonbladet",countryCode:n.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},r={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},o=e=>(null==e?void 0:e.parent)?[...o(e.parent),e.shortPath||"unknown"]:[],s=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=o(e);return r[n]||"ovrigaavdelningar"})(e)}_{position}`,a=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},d=(e,t)=>{console.warn("[Advertory WARN]: ",e)},l={aftonbladet:i},c={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:s(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:o(e).join(":")}}},u=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},p=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),v="desktop",g="web_desktop",h="web_phone",f="wde",y="wph",b="se-generic",m="aa-sch",w="kv_",O="pause",C="{deviceType}",P="{position}",I="afp_",T=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),_="1-1",S="16-9",E="3-4",j="9-16",A="responsive",$={[_]:1,[S]:1.78,[j]:.56,[A]:1},k={[_]:1,[S]:1.78,[E]:1.33,[j]:.56},N=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},s=v===n?f:y,a=r.replace(C,s);return(e,n)=>{if(e===O)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(P,O).replace(/-([a-z]+)_/,"-article-"))(a);if(n&&T.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(C,s).replace(P,e)}return a.replace(P,e)}};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,D;var R=x(function(){if(D)return M;D=1;var e=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===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(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 o(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var s={};return i.isMergeableObject(e)&&r(e).forEach(function(t){s[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?s[r]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(r,i)(e[r],t[r],i):s[r]=n(t[r],i))}),s}function a(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(t)?a?o.arrayMerge(t,r,o):s(t,r,o):n(r,o)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},M=a}());const U={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},H=(e,t)=>R(e,t,U),F=(e,t)=>Object.assign(Object.assign({},e),t),L=(e,t)=>{var n;return H(null!==(n=e)&&void 0!==n?n:{},t)},V={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},B=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||d("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||d("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||d("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||d("pageContext.deviceType is required."),n||d("pageOptions is required."),i||d("placements is required."),(null==r?void 0:r.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,s=[{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===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},q={placements:(e,t)=>t,takeover:L,refreshConfig:F,editory:L,appearanceConfig:L,pageContext:F,pageOptions:F,pageSectionsSelectors:F,tcf:F};class K{set(e){B(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(q)){const i=t[e];void 0!==i&&(n[e]=q[e](n[e],i))}})(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=H(K.DEFAULT_SITE_HANDLERS,e)}}K.DEFAULT_SITE_HANDLERS={siteEvents:V,initNativeAd:()=>{}};const W=new K;W.modifyConfigProperties.bind(W);const z=864e5,J=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return a("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=z)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=z)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return a("Error with parsing localStorage data"),null}}}})(),G=["glwe_","glwet_"],Q={geofenceTags:[],geoTags:[],weatherTags:[]},Y=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return a("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),X="cmp:loaded";let Z="undefined"!=typeof window?window._tcf_:void 0,ee=!1;const te=(t,i,r)=>{const o=!!(null==t?void 0:t.enabled),s=(null==t?void 0:t.timeout)||3e3,d=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const c=()=>{if(!(null==t?void 0:t.enabled))return!0;if(((e,t)=>e?!!t&&(a("TCF bypass param detected, returning consent: true"),!0):(a("TCF is not enabled, returning consent: true"),!0))(o,d))return!0;if(ee)return null;if(!Z)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=Z.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),Z.getConsentedToAllSync()};return{initConsentManager:()=>(null==t?void 0:t.enabled)?new Promise((e,t)=>{if(a("Getting TCF consent manager..."),window._tcf_)return a("TCF consent manager is already available"),Z=window._tcf_,void e(Z);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(Z=window._tcf_,e(Z)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(X,n),ee=!0,t(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(X,n,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>e(void 0,void 0,void 0,function*(){if(null==t?void 0:t.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${t.schibstedAdChoicesOverrideValue}`),Boolean(Number(t.schibstedAdChoicesOverrideValue));const e=(null==t?void 0:t.advertisingCMPSignalEnabled)&&r===n.SE,i=(null==t?void 0:t.advertisingCMPSignalEnabled)&&r===n.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Y(t);if(!(null==t?void 0:t.enabled))return!0;const o=c();return null!==o?o:yield new Promise((e,t)=>{try{if(!Z)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{a("TCF isConsentedToAll timed out, resolving with false"),n(!1)},s);Z.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),Z.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},ne=(t,n,i,...r)=>e(void 0,[t,n,i,...r],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return a(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=te(e,0,n);return(yield r())?(a(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(a(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),ie={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"},re=e=>G.some(t=>e.startsWith(t)),oe=e=>e.startsWith("glgc_"),se=e=>!re(e)&&!oe(e),ae=(t,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:r,pageContext:{countryCode:o}={}}=t,s=yield((...t)=>e(void 0,[...t],void 0,function*(e=W.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled)return yield ne(t,n,i,"glimr");const{getConsentAsync:r}=te(t,0,i);return yield r()}))(t);if(!(null==r?void 0:r.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===n.NO?"no-sno":"se-generic")(o),l=de(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),de=(e,t)=>{const n=le();if(!n)return Q;const i=((e=[])=>e.filter(re))(n),r=((e=[])=>e.filter(oe))(n),o=((e=[],t,n)=>{var i;const r=e.filter(se);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=ie[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},le=()=>{const e=J.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},ce="opaque",ue=t=>e(void 0,void 0,void 0,function*(){if(t.type!==ce){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),pe={get:(t,...n)=>e(void 0,[t,...n],void 0,function*(t,n={}){var{timeout:i}=n,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(n,["timeout"]);if(i)return((t,n,i)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,r=setTimeout(()=>e.abort(),i);try{const i=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return ue(i)}finally{clearTimeout(r)}}))(t,r,i);const o=yield fetch(t,r);return ue(o)}),post:(t,n,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),r=yield fetch(t,{method:"POST",headers:n,body:e});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ve="advertory:ppids-cache",ge={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},he={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},fe={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ye={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},be={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class me{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const we=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(t){return e(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},Oe=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(t,n){return e(this,void 0,void 0,function*(){var e,i,r,o,s,a,d,l,c,u,p;const v=J.get(ve),g=yield this.getNewPPIDs(t,n);if(this.shouldHash(v,g)){const n=null!==(e=t.hasherUrl)&&void 0!==e?e:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,n);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(s=c.environmentId)&&void 0!==s?s:"",null===(a=g.idfv)||void 0===a?void 0:a.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});J.set(ve,r)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield pe.post(n,e,t)}catch(e){return a("Error with hashing PPIDs",e),null}})}getNewPPIDs(t,n){return e(this,arguments,void 0,function*({clientId:t,instance:n},i){const r=yield((t,n)=>e(void 0,void 0,void 0,function*(){const e=yield t.getUserId();return e?`${be[n]}:${e}`:null}))(n,i),o=yield(s=n,e(void 0,void 0,void 0,function*(){const e=yield s.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var s;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:t},userId:{plain:r},environmentId:{plain:o},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},Ce=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:r}=te(e,0,i);if(!(yield r()))return;const o=(e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null})("_pulse2data");return o?o.split(",")[9]:void 0}),Pe=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},Ie=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Te=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},_e=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},Se=()=>{const e=null!==(t=_e()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=_e()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ee=()=>Object.fromEntries(new URLSearchParams(window.location.search)),je=(n,i)=>e(void 0,void 0,void 0,function*(){const{tcf:r,pageContext:{publisher:o,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:n.isApp,countryCode:s,publisher:o,pageType:"front",deviceType:n.deviceType},c=(yield ne(r,n.isApp,s,"video"))?"1":"0",u=yield t(),p=yield(f=s,e(void 0,void 0,void 0,function*(){const{ppid1:e,ppid2:t}=we.getPPIDs(),{ppid1:n,ppid2:i}=Oe.getPPIDs(),r=(new me).add(t,ge[f]).add(e,he[f]).add(i,fe[f]).add(n,ye[f]);return yield new Promise(e=>{e(r.buildVideoEids())})}));var f;const y=yield Ce({tcf:r,pageContext:l}),O=null!==(C=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==C?C:"";var C;const P=((e=1)=>Ie(k,Number(e.toFixed(2))))(n.instreamAspectRatio),I=(T=n.playerAspectRatio)?Ie($,Number(T.toFixed(2))):A;var T,_;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${m}-country_code`]:s,[`${m}-publisher`]:o,[`${m}-supply_type`]:(_=n.deviceType,_===v?g:h),[`kw_${m}-page_type`]:"collection",[`${m}-page_type`]:"collection",[`${b}-appmode`]:n.isAndroidApp?"hybrid":"notinapp",[`kw_${b}-page`]:"index",[`${b}-page`]:"index",[`${b}-screenheight`]:String(window.screen.height),[`${b}-screenwidth`]:String(window.screen.width),[`${b}-viewportheight`]:String(d),[`${b}-viewportwidth`]:String(a),[`${b}-loggedin`]:n.isUserLoggedIn?"yes":"no",[`${b}-mobile-os`]:Pe(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Se(),[`${b}-tags`]:n.tags,[`${b}-articleid`]:O,"article-id":O},yield ae(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),n.isUserPresentOnFrontPage&&n.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),n.pageAdsKeywords),Object.keys(Ee()).some(e=>e.includes(w))&&(()=>{const e=Ee(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(w)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[i.sectionKeyword]:n.sections.split(":"),"aa-sch-cmp_advertising":c,"kw_aa-sch-cmp_advertising":c,"aa-sch-instream_player_aspectratio":P,"aa-sch-player_aspectratio":I}),u),{eids:p})}),Ae=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],$e=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],ke=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ne=(e,t)=>{const n=[...Ae,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||ke.includes(e)?e:`kw_${e}`,t]))},xe=e=>Object.fromEntries(Object.entries(e).filter(([e])=>$e.includes(e))),Me=(t,n)=>e(void 0,void 0,void 0,function*(){var e,r,o,s;const a=(e=>{var t;l[e]||d(`[video] No config found for publisher "${e}"`);return null!==(t=l[e])&&void 0!==t?t:i})(t.publisher),p=(e=>{var t;return null!==(t=c[e])&&void 0!==t?t:c.aftonbladet})(t.publisher)(t.assetSection,t.isLiveStudio),v="/"===window.location.pathname,g=null===(r=null===(e=n.attributes)||void 0===e?void 0:e.id)||void 0===r?void 0:r.toString(),h=t.assetId===g,f=null!==(o=Number(t.aspectRatio))&&void 0!==o?o:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield je({pageAdsKeywords:t.pageAdsKeywords,tags:(b=t.tags,b?b.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(s=null==p?void 0:p.sections)&&void 0!==s?s:"",isUserLoggedIn:t.isUserLoggedIn,isUserPresentOnFrontPage:v,isInitialVideo:h,instreamAspectRatio:f,playerAspectRatio:Te(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),De=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:s,playbackMethod:a}=e,{invCode:d}=i||{},l=N(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(I)?`${I}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(s,r),"se-generic-playback-method":p.get(a),"kw_se-generic-adformat":c(s)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Ne(o,n)),xe(o)),{vskippable:"0",referrer:u,vplaybackmethod:a})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Re=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield Me(t,n);return De(e,t)});export{t as getTcfConsentKeywords,Re as getVideoAdsConfig};
|