@schibsted/advertory 3.17.1 → 3.17.3-no-issue.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-a_qALgNa.js +1 -0
- package/aftenposten/es/{events-wzFxMAFP.js → events-DrFV0dBK.js} +1 -1
- package/aftenposten/es/{index-UeBxQJEQ.js → index-BBu4Wj-F.js} +1 -1
- package/aftenposten/es/{index-Cr3lDYmG.js → index-BkCQ75ZQ.js} +1 -1
- package/aftenposten/es/{index-DpVNEgVg.js → index-BpsIVc6W.js} +1 -1
- package/aftenposten/es/{index-BmeZVQ0l.js → index-C9XykMHR.js} +1 -1
- package/aftenposten/es/{index-DH3bflvx.js → index-CYwX99fH.js} +1 -1
- package/aftenposten/es/index-DF10WqY9.js +1 -0
- package/aftenposten/es/{index-yIBDd6_a.js → index-DYjuPnFS.js} +1 -1
- package/aftenposten/es/{index-CXL8rnIl.js → index-DeHiEx3z.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-Z6yKNaQW.js → styles-9OmJ8_oN.js} +1 -1
- package/aftenposten/es/{styles-Mu5NcHOo.js → styles-B1AGMY-X.js} +1 -1
- package/aftenposten/es/{styles-DGrR5Myv.js → styles-BdVi1b2S.js} +1 -1
- package/aftenposten/es/{styles-CHiH__PG.js → styles-Bi04XSrV.js} +1 -1
- package/aftenposten/es/{styles-DnxoItho.js → styles-C3JnCvtp.js} +1 -1
- package/aftenposten/es/{styles-Df9VFn3e.js → styles-CRv87wHW.js} +1 -1
- package/aftenposten/es/{styles-CQa9OP2h.js → styles-Cks2zrCg.js} +1 -1
- package/aftenposten/es/{styles-DV8aCVOL.js → styles-CzlcZrYO.js} +1 -1
- package/aftenposten/es/{styles-Bcd7vQWQ.js → styles-DbSgl5PZ.js} +1 -1
- package/aftenposten/es/{styles-Bzp_hZ-l.js → styles-_OUQX0b3.js} +1 -1
- package/aftenposten/es/{styles-6FhX4hN7.js → styles-yvcjbK1D.js} +1 -1
- package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-Aw5wuXno.js → _auto-entry_aftenpostenv2-BqP-f1mQ.js} +1 -1
- package/aftenpostenv2/es/{events-D-IVPmHl.js → events-Dgo8DjiG.js} +1 -1
- package/aftenpostenv2/es/{index-3DH4w7Kp.js → index-BDcrgq9l.js} +1 -1
- package/{aftonbladetv2/es/index-DIYLLs_R.js → aftenpostenv2/es/index-BMAuUe4u.js} +1 -1
- package/aftenpostenv2/es/{index-ipMUCwE0.js → index-BoQJmERC.js} +1 -1
- package/aftenpostenv2/es/{index-BB1iI6Vl.js → index-CIrgCgon.js} +1 -1
- package/aftenpostenv2/es/{index-DyNS0mXg.js → index-D-1y672n.js} +1 -1
- package/aftenpostenv2/es/index-DyB1vUtZ.js +1 -0
- package/aftenpostenv2/es/{index-DzI6iXF1.js → index-__aEkQFk.js} +1 -1
- package/aftenpostenv2/es/{index-DkDcRwK_.js → index-cNznJHO6.js} +1 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-CkWr6xYa.js → styles-C1-hljRj.js} +1 -1
- package/aftenpostenv2/es/{styles-BWrn3pun.js → styles-CGeRgRt0.js} +1 -1
- package/aftenpostenv2/es/{styles-DPU_7hgU.js → styles-Cjp-f91D.js} +1 -1
- package/aftenpostenv2/es/{styles-ByvXm5v5.js → styles-Cs23-QeP.js} +1 -1
- package/aftenpostenv2/es/{styles-De8sTvD7.js → styles-DFEdRPun.js} +1 -1
- package/aftenpostenv2/es/{styles-BdrJnjnQ.js → styles-DLk5mux5.js} +1 -1
- package/aftenpostenv2/es/{styles-DOhTp6JW.js → styles-DXxzhWJu.js} +1 -1
- package/aftenpostenv2/es/{styles-iZYowlJx.js → styles-PSOvI0L4.js} +1 -1
- package/aftenpostenv2/es/{styles-QwQ7F3Mu.js → styles-SQec1A8F.js} +1 -1
- package/aftenpostenv2/es/{styles-DK8HtLDl.js → styles-ZDNIZnXa.js} +1 -1
- package/aftenpostenv2/es/{styles-BzRoae8Z.js → styles-qvIxXbLQ.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/{_auto-entry_aftonbladet-UQG0egxm.js → _auto-entry_aftonbladet-yLe8FMqX.js} +1 -1
- package/aftonbladet/es/{events-CiteaWVv.js → events-rJcXVbHP.js} +1 -1
- package/aftonbladet/es/{index-CDun52TP.js → index-BZlnBBc1.js} +1 -1
- package/aftonbladet/es/{index-DXuKUdFw.js → index-BmOBHZkC.js} +1 -1
- package/aftonbladet/es/{index-CLhf_NpM.js → index-C3DQrbS2.js} +1 -1
- package/aftonbladet/es/{index-D694QiXY.js → index-CFnAaVoE.js} +1 -1
- package/aftonbladet/es/{index-CKfqrs7B.js → index-CSSldldx.js} +1 -1
- package/aftonbladet/es/index-CTMBtrux.js +1 -0
- package/aftonbladet/es/{index-s03w1nsg.js → index-NBlN9Jrg.js} +1 -1
- package/aftonbladet/es/{index-CPB2n7c-.js → index-Rg-TVf1t.js} +1 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-Dxw5kVr1.js → styles-B9jmcT41.js} +1 -1
- package/aftonbladet/es/{styles-DaHJ7t0C.js → styles-CfvlVErl.js} +1 -1
- package/aftonbladet/es/{styles-C4Q8-exK.js → styles-D3apiLDJ.js} +1 -1
- package/aftonbladet/es/{styles-yHMqBgDh.js → styles-DK1YWvOj.js} +1 -1
- package/aftonbladet/es/{styles-BLvuyru8.js → styles-DcIeoE8-.js} +1 -1
- package/aftonbladet/es/{styles-COxjPfTb.js → styles-Dkc8b1El.js} +1 -1
- package/aftonbladet/es/{styles-aUjLpcVh.js → styles-DwDU8W8N.js} +1 -1
- package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-K8GufdfA.js → _auto-entry_aftonbladetv2-B23Hj9cK.js} +1 -1
- package/aftonbladetv2/es/{events-DjnBVxCH.js → events-BxYlZ14G.js} +1 -1
- package/aftonbladetv2/es/{index-Dq7lYSYU.js → index-BSTet1E6.js} +1 -1
- package/aftonbladetv2/es/index-BZeHNgGY.js +1 -0
- package/{aftenpostenv2/es/index-Bu7767Wo.js → aftonbladetv2/es/index-BhPCsPVo.js} +1 -1
- package/aftonbladetv2/es/{index-Dg8PwMci.js → index-CEgE18wQ.js} +1 -1
- package/aftonbladetv2/es/{index-DQTM2CmM.js → index-DYnoler4.js} +1 -1
- package/aftonbladetv2/es/{index-CAkVH1cy.js → index-Dc3P-Vj6.js} +1 -1
- package/aftonbladetv2/es/{index-bj1PhJMO.js → index-DstH63Eo.js} +1 -1
- package/aftonbladetv2/es/{index-D1gBWEc_.js → index-PvR1BYh3.js} +1 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-8rwgNT8_.js → styles-01kZc3MH.js} +1 -1
- package/aftonbladetv2/es/{styles-BNNyUF0j.js → styles-2IywgKra.js} +1 -1
- package/aftonbladetv2/es/{styles-oMtK3B2v.js → styles-CnZuHMAg.js} +1 -1
- package/aftonbladetv2/es/{styles-a-e6D11y.js → styles-Cso2SE0o.js} +1 -1
- package/aftonbladetv2/es/{styles-CWTQ-3h9.js → styles-DG6jT6KH.js} +1 -1
- package/aftonbladetv2/es/{styles-DP9gVus2.js → styles-DoxsWHNx.js} +1 -1
- package/aftonbladetv2/es/{styles-CcMM-P3g.js → styles-XCvAMXHH.js} +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/{_auto-entry_bt-Bf5Mw4mU.js → _auto-entry_bt-BcoJlF5F.js} +1 -1
- package/bt/es/{events-BjUbkhEy.js → events-BTTfxZEn.js} +1 -1
- package/{sa/es/index-CC532gi-.js → bt/es/index-BZhRaIjL.js} +1 -1
- package/bt/es/{index-CsOjKWN4.js → index-BvNyTMP_.js} +1 -1
- package/bt/es/index-BybloOV3.js +1 -0
- package/{sa/es/index-BkwWGZpq.js → bt/es/index-Cc1irGR3.js} +1 -1
- package/bt/es/{index-DhATf0Df.js → index-CmNAWoja.js} +1 -1
- package/bt/es/{index-BOIa0oXu.js → index-DoiSIQUA.js} +1 -1
- package/bt/es/{index-BcmeJWhX.js → index-IhdafbF4.js} +1 -1
- package/bt/es/{index-DvTCAwu1.js → index-c5kc-LLT.js} +1 -1
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-XCB733xz.js → styles-5J3v6CaG.js} +1 -1
- package/bt/es/{styles-DbBVP8RM.js → styles-B6EU0y_N.js} +1 -1
- package/{vg/es/styles-DbtcxxqK.js → bt/es/styles-BCTNj0AI.js} +1 -1
- package/bt/es/{styles-sSYx1tU1.js → styles-BmnSvjox.js} +1 -1
- package/bt/es/{styles-CVNqYpWx.js → styles-CLdus-H8.js} +1 -1
- package/bt/es/{styles-Df5tBsQK.js → styles-CSsKrNX0.js} +1 -1
- package/bt/es/{styles-1JWDtwN3.js → styles-Cchr2_Ww.js} +1 -1
- package/{sa/es/styles-BR1IjsMG.js → bt/es/styles-DQVwmpRj.js} +1 -1
- package/bt/es/{styles-9wKvNstR.js → styles-Dge93syQ.js} +1 -1
- package/bt/es/{styles-Bx0K6V2M.js → styles-DkXuYx14.js} +1 -1
- package/btv2/es/{_auto-entry_btv2-Bc9X0Y4s.js → _auto-entry_btv2-C-dIxU3h.js} +1 -1
- package/{sav2/es/events-BtAwqF88.js → btv2/es/events-CQz2eBDf.js} +1 -1
- package/btv2/es/index-BGcafCy2.js +1 -0
- package/{sav2/es/index-JTSv1BC5.js → btv2/es/index-C4Az6XIC.js} +1 -1
- package/btv2/es/{index-DWsI7Uot.js → index-CPlese99.js} +1 -1
- package/btv2/es/{index-D1qlqRn6.js → index-CQF1nZr3.js} +1 -1
- package/btv2/es/{index-C91g9VKv.js → index-CktvaYLJ.js} +1 -1
- package/btv2/es/{index-DWYgEk6A.js → index-D23w-Btl.js} +1 -1
- package/btv2/es/{index-DMYukhgR.js → index-DoMSlydf.js} +1 -1
- package/{omni/es/index-BHfhuhm8.js → btv2/es/index-i_utaDhT.js} +1 -1
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-BaBUQ7Hj.js → styles-B2OJXzrM.js} +1 -1
- package/{sav2/es/styles-BURK3VO1.js → btv2/es/styles-BZ9n0Aac.js} +1 -1
- package/btv2/es/{styles-BIGBLYzW.js → styles-C-ZtQhan.js} +1 -1
- package/{sav2/es/styles-COcmMEOL.js → btv2/es/styles-CCdvxZkw.js} +1 -1
- package/btv2/es/{styles-BmCPT5IC.js → styles-CbLeNOrs.js} +1 -1
- package/{sav2/es/styles-ZVHwQJkg.js → btv2/es/styles-DGnJ2ZHN.js} +1 -1
- package/btv2/es/{styles-C83E3gfw.js → styles-DdRhazKl.js} +1 -1
- package/btv2/es/{styles-DwgFefcu.js → styles-DuZfN7De.js} +1 -1
- package/btv2/es/{styles-Ck69XN3a.js → styles-dkNCmliT.js} +1 -1
- package/btv2/styles.css +1 -1
- package/e24/es/{_auto-entry_e24-3DlyBhKA.js → _auto-entry_e24-Ct_p-SFb.js} +1 -1
- package/e24/es/{events-CsOsrC6c.js → events-Cd2dTyNn.js} +1 -1
- package/e24/es/{index-BlLqHFf8.js → index--6UTxLKO.js} +1 -1
- package/e24/es/{index-nixiOIB7.js → index-87AuIS7V.js} +1 -1
- package/e24/es/{index-D8bVQ3yW.js → index-B4PlQ911.js} +1 -1
- package/e24/es/index-BEIep0Ze.js +1 -0
- package/e24/es/{index-J-Z58Cak.js → index-BF0fnST5.js} +1 -1
- package/e24/es/{index-D7dBsGLK.js → index-ClS6qNV0.js} +1 -1
- package/e24/es/{index-CUcx7iNz.js → index-Dzr7VO1y.js} +1 -1
- package/e24/es/{index-BpEKotdp.js → index-UPwew21d.js} +1 -1
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-BbRRFyx-.js → styles-B2DEW-hT.js} +1 -1
- package/e24/es/{styles-Dkxpb8-D.js → styles-BUFCHi9e.js} +1 -1
- package/e24/es/{styles-CyisYILq.js → styles-CcN9IEsB.js} +1 -1
- package/e24/es/{styles-w4pBXaCr.js → styles-CfM-1QHc.js} +1 -1
- package/e24/es/{styles-CvgGilBk.js → styles-CfP9Vfv0.js} +1 -1
- package/e24/es/{styles-BXv14H48.js → styles-Cu0eUKZo.js} +1 -1
- package/e24/es/{styles-CwSXXIeb.js → styles-DCAAdGVf.js} +1 -1
- package/e24/es/{styles-DxzLBB0z.js → styles-Dc4VhsK-.js} +1 -1
- package/e24/es/{styles-BOHykpQ5.js → styles-DkOQgCFK.js} +1 -1
- package/e24/es/{styles-BQUHsL5Q.js → styles-Dvo7zrg1.js} +1 -1
- package/e24/es/{styles-DcxwsmsJ.js → styles-DwUZS-bn.js} +1 -1
- package/{tv4/es/styles-CI-zLM5m.js → e24/es/styles-fUpBcQWW.js} +1 -1
- package/editory/cjs/index.js +1 -1
- package/editory/es/index.js +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-PzBs8tWv.js +1 -0
- package/fotbollskanalen/es/{events-DhPaztsp.js → events-DC2A2YOH.js} +1 -1
- package/fotbollskanalen/es/{index-BsRgwJa4.js → index-B-DfI9hC.js} +1 -1
- package/fotbollskanalen/es/{index-BQL-Z1u0.js → index-B451kqAc.js} +1 -1
- package/fotbollskanalen/es/{index-KC0rcJ7D.js → index-B9_Sz-54.js} +1 -1
- package/fotbollskanalen/es/index-BKW4bFIJ.js +1 -0
- package/fotbollskanalen/es/{index-DkPVXiS0.js → index-C391nMTK.js} +1 -1
- package/fotbollskanalen/es/{index-DWWjtqjW.js → index-DiLmKZt3.js} +1 -1
- package/fotbollskanalen/es/{index-OhJpwiv2.js → index-DxBBNuC0.js} +1 -1
- package/fotbollskanalen/es/{index-D0ptBkNT.js → index-MWfCDJyV.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-DWklkjVd.js → styles-BGNGAe2-.js} +1 -1
- package/fotbollskanalen/es/{styles-CYoxh3-t.js → styles-BTpc2HZt.js} +1 -1
- package/fotbollskanalen/es/{styles-M6SwPIOB.js → styles-Cl7zoy5_.js} +1 -1
- package/fotbollskanalen/es/{styles-BgMP0tAx.js → styles-DixDvPPA.js} +1 -1
- package/fotbollskanalen/es/{styles-COp_WpR0.js → styles-GoFDWbbT.js} +1 -1
- package/godt/cjs/index.js +1 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-BkBa0yO1.js +1 -0
- package/koket/es/{events-B1TMTz87.js → events-ircrdxrW.js} +1 -1
- package/koket/es/{index-DdeJa-5b.js → index-B8k0GOJ7.js} +1 -1
- package/koket/es/index-BUzc35Jj.js +1 -0
- package/koket/es/{index-B5PBFTA3.js → index-Br3mqMs0.js} +1 -1
- package/koket/es/{index-On3BxtYc.js → index-CvzsGNvf.js} +1 -1
- package/koket/es/{index-Dk81CHNt.js → index-D3v2bGK4.js} +1 -1
- package/koket/es/{index-DEqbbLwQ.js → index-DM25lZ1I.js} +1 -1
- package/koket/es/{index-DSpgx1_U.js → index-DeI6vS_G.js} +1 -1
- package/koket/es/{index-DQAIFKwb.js → index-huZ-_aLo.js} +1 -1
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-CL0biSyD.js → styles-BH1ieOjw.js} +1 -1
- package/{svdv2/es/styles-CPRKf9nj.js → koket/es/styles-C7o8yioZ.js} +1 -1
- package/koket/es/{styles-2N7JCBSK.js → styles-CVZ8UsRx.js} +1 -1
- package/{svdv2/es/styles-BqFJHkS3.js → koket/es/styles-C_2fBGU2.js} +1 -1
- package/koket/es/{styles-Bmy7u8FD.js → styles-LduwO43b.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/mtv/es/{_auto-entry_mtv-DCEFUvBr.js → _auto-entry_mtv-C9V2deVl.js} +1 -1
- package/mtv/es/{events-DxH68oDH.js → events-DcYmIufJ.js} +1 -1
- package/mtv/es/{index-B6HjYflQ.js → index-3jUVCNHV.js} +1 -1
- package/mtv/es/{index-BAMoZ2vZ.js → index-BB2_LyL7.js} +1 -1
- package/mtv/es/{index-CYjmLZz7.js → index-BEpx8cSh.js} +1 -1
- package/mtv/es/{index-CT3lgloM.js → index-BStz0L62.js} +1 -1
- package/mtv/es/{index-C3EI4ICI.js → index-CfPgdHyv.js} +1 -1
- package/mtv/es/index-Cqfo1UGm.js +1 -0
- package/mtv/es/{index-Ccj7sOml.js → index-DjGbdn2F.js} +1 -1
- package/mtv/es/{index-BAD0F7ZE.js → index-SjIyGcTf.js} +1 -1
- package/mtv/es/index.js +1 -1
- package/mtv/es/{styles-Cfoa2vM7.js → styles-DEY0uCs4.js} +1 -1
- package/omni/es/_auto-entry_omni-CVCCcxyM.js +1 -0
- package/omni/es/{events-DMgm4BH-.js → events-DMYRUFOA.js} +1 -1
- package/omni/es/{index-B2-V_KFy.js → index-BA8ZSjBF.js} +1 -1
- package/omni/es/{index-YQLzcuUZ.js → index-BGXOEIdC.js} +1 -1
- package/omni/es/{index-BZ0KgPjr.js → index-BJMrrHHN.js} +1 -1
- package/{sav2/es/index-CgtAXXr5.js → omni/es/index-BWULYxlB.js} +1 -1
- package/omni/es/index-CPFSh255.js +1 -0
- package/omni/es/{index-DKW-oNyj.js → index-CzNBPlm5.js} +1 -1
- package/omni/es/{index-Qk6STC9Q.js → index-D_zHL5xR.js} +1 -1
- package/omni/es/{index-h0z2F5mn.js → index-vtGWj6Qt.js} +1 -1
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-Tkumo0Mc.js → styles-BOdRjJS0.js} +1 -1
- package/omni/es/{styles-CqDHTki0.js → styles-CYSXAMP-.js} +1 -1
- package/omni/es/{styles-BdBaTDGr.js → styles-Dn1cDwX6.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/{_auto-entry_sa-ucdzu0GD.js → _auto-entry_sa-B8L10P3p.js} +1 -1
- package/sa/es/{events-B9pt8lBv.js → events-BDTO1uoY.js} +1 -1
- package/sa/es/{index-DZyfMmyw.js → index-5tnwuNe_.js} +1 -1
- package/sa/es/{index-BdboEP_G.js → index-BN2kqP-Z.js} +1 -1
- package/sa/es/{index-DqiiypwX.js → index-Bj_NrEkj.js} +1 -1
- package/sa/es/{index-CNR4GGpr.js → index-BwkLrqzw.js} +1 -1
- package/sa/es/{index-DecwI9h2.js → index-CEdPBwwD.js} +1 -1
- package/{bt/es/index-BfTbebzJ.js → sa/es/index-CSbL3Gqd.js} +1 -1
- package/sa/es/index-Cq5l3VCX.js +1 -0
- package/{bt/es/index-DraZV50T.js → sa/es/index-DFD6AldM.js} +1 -1
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-CJRjqtfg.js → styles-35KFdgRO.js} +1 -1
- package/sa/es/{styles-0Vkb_nt3.js → styles-5ZH6mdVq.js} +1 -1
- package/sa/es/{styles-BpB3LtL5.js → styles-Avlvf_an.js} +1 -1
- package/{vg/es/styles-BWXLJkUe.js → sa/es/styles-B58C90tH.js} +1 -1
- package/{vg/es/styles-sUHuRG9Y.js → sa/es/styles-CIEP0fIL.js} +1 -1
- package/sa/es/{styles-oFdSsf5x.js → styles-CoMPX3Uo.js} +1 -1
- package/sa/es/{styles-CLcGiS9p.js → styles-D7kQN4tJ.js} +1 -1
- package/sa/es/{styles-BnbwwBGN.js → styles-heBXtksC.js} +1 -1
- package/sa/es/{styles-BWpMXFQP.js → styles-mip6kenJ.js} +1 -1
- package/sa/es/{styles-D-9DKq5u.js → styles-t_EqxDnm.js} +1 -1
- package/sav2/es/{_auto-entry_sav2-DUcwBk3a.js → _auto-entry_sav2-BmnUD43b.js} +1 -1
- package/{tvnu/es/events-C41LfSUd.js → sav2/es/events-Dp9lnfAs.js} +1 -1
- package/sav2/es/{index-DUHSGbdP.js → index-3souzBf0.js} +1 -1
- package/sav2/es/{index-BnzO4uiy.js → index-BAIPDd7_.js} +1 -1
- package/sav2/es/index-DEoczlk_.js +1 -0
- package/{tvnu/es/index-CUYn_8le.js → sav2/es/index-DWm-UHqQ.js} +1 -1
- package/{tvnu/es/index-8UcLg3fF.js → sav2/es/index-DbQIUZI_.js} +1 -1
- package/sav2/es/{index-CQ7xhxVA.js → index-Drq7H5-2.js} +1 -1
- package/sav2/es/{index-DtHEM7GF.js → index-DsbYeItT.js} +1 -1
- package/{tvnu/es/index-DuY8DiPV.js → sav2/es/index-pvZ-dP5X.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/{vgv2/es/styles-C65hTDSa.js → sav2/es/styles-3EsH1hd8.js} +1 -1
- package/sav2/es/{styles-C2mkNi-v.js → styles-C4mXD_Br.js} +1 -1
- package/{btv2/es/styles-B0z9BTDm.js → sav2/es/styles-CUkEDO5m.js} +1 -1
- package/{vgv2/es/styles-DqR1rfSj.js → sav2/es/styles-Cc4tdxzT.js} +1 -1
- package/sav2/es/{styles-Dxvfo-3H.js → styles-Cfond6pZ.js} +1 -1
- package/sav2/es/{styles-BZw_poms.js → styles-DKlujQs-.js} +1 -1
- package/{vgv2/es/styles-CmSgk5EQ.js → sav2/es/styles-DUem7O9S.js} +1 -1
- package/sav2/es/{styles-CUiEWYCz.js → styles-D_EhAHbB.js} +1 -1
- package/sav2/es/{styles-DZA0RiXA.js → styles-Dj_GPfsz.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-B-mz79jP.js +1 -0
- package/svd/es/{events-COVpY30V.js → events-8yBFM-g9.js} +1 -1
- package/svd/es/{index-DcMoKj47.js → index-B2sNqbth.js} +1 -1
- package/svd/es/index-B4JjxZN-.js +1 -0
- package/svd/es/{index-DrmXKC6p.js → index-CzXdBAfA.js} +1 -1
- package/svd/es/{index-DO7ecV-e.js → index-D-s47e3U.js} +1 -1
- package/{tv4/es/index-CKRaPiHU.js → svd/es/index-DZm2YXsK.js} +1 -1
- package/svd/es/{index-BaKLHK-6.js → index-DhS4Nx4a.js} +1 -1
- package/svd/es/{index-C-B8mHd9.js → index-DtG-UZOo.js} +1 -1
- package/svd/es/{index-C68IVPvH.js → index-i_xbZf1B.js} +1 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-CP54RnGo.js → styles-2Lce7uvt.js} +1 -1
- package/svd/es/{styles-DiKAUfvj.js → styles-8PQPeHpF.js} +1 -1
- package/svd/es/{styles-KCbchyKn.js → styles-B2QvCzKq.js} +1 -1
- package/svd/es/{styles-HuEvzlpF.js → styles-BiWx6ZH4.js} +1 -1
- package/svd/es/{styles-CsZrgxNv.js → styles-CQM4vLOx.js} +1 -1
- package/svd/es/{styles-BoYyGhrG.js → styles-D6djW8Eo.js} +1 -1
- package/svd/es/{styles-DOpYzwLc.js → styles-GF_LpFgN.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-CjnUPNi-.js +1 -0
- package/svdv2/es/{events-B2_U7OC1.js → events-qLqrGAio.js} +1 -1
- package/svdv2/es/{index-D7B-hGgg.js → index-BVSRed75.js} +1 -1
- package/svdv2/es/index-BzGM0CTM.js +1 -0
- package/svdv2/es/{index-DRHViYAD.js → index-DMVf3KFx.js} +1 -1
- package/svdv2/es/{index-D9B9N0eJ.js → index-DdcT82wK.js} +1 -1
- package/svdv2/es/{index-CddOb8U1.js → index-Dds7WtOX.js} +1 -1
- package/svdv2/es/{index-CrCOVQ0H.js → index-DqJR991C.js} +1 -1
- package/svdv2/es/{index-CwmboBpq.js → index-d2-BL9x2.js} +1 -1
- package/svdv2/es/{index-Bi9yLp3P.js → index-w3s6a0BM.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-zwn7pUid.js → styles-BpposcNL.js} +1 -1
- package/svdv2/es/{styles-BrjW0wgx.js → styles-ByFDL-dP.js} +1 -1
- package/{koket/es/styles-BUK-deOK.js → svdv2/es/styles-CAQMmBBf.js} +1 -1
- package/svdv2/es/{styles-B_Kve0Qi.js → styles-D1HQ_1IA.js} +1 -1
- package/{koket/es/styles-2iD_yEsD.js → svdv2/es/styles-DfXEVHoZ.js} +1 -1
- package/svdv2/es/{styles-cRhOMQxG.js → styles-Ie7GbPj3.js} +1 -1
- package/svdv2/es/{styles-D-ZuBJFL.js → styles-Uqa5OW98.js} +1 -1
- package/svdv2/es/{styles-Bv8MNJdE.js → styles-bHk0csrV.js} +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-CsO2kOuH.js +1 -0
- package/tv4/es/{events-Dks_W8aT.js → events-DPiyDMOB.js} +1 -1
- package/tv4/es/{index-D4un3a4_.js → index-BJJnBqOv.js} +1 -1
- package/tv4/es/{index-DncCBxyr.js → index-C3ifCrbG.js} +1 -1
- package/tv4/es/{index-QfZ1yDKX.js → index-CQsI9gjC.js} +1 -1
- package/{svd/es/index-CpPzRBQ0.js → tv4/es/index-DZzapVv8.js} +1 -1
- package/tv4/es/index-DrkdtvU4.js +1 -0
- package/tv4/es/{index-CDYc1vT1.js → index-NFbvbjjl.js} +1 -1
- package/tv4/es/{index-BTSJViQy.js → index-YmGI2bVj.js} +1 -1
- package/tv4/es/{index-Dm6HZPPJ.js → index-qDiymVH7.js} +1 -1
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-Cd6U5bIi.js → tv4/es/styles-6LXZ5x_a.js} +1 -1
- package/tv4/es/{styles-CQeRAogO.js → styles-CbPUmvE2.js} +1 -1
- package/tv4/es/{styles-Be20SQxQ.js → styles-Cu4IjVLi.js} +1 -1
- package/tv4/es/{styles-CS6EwYj9.js → styles-D4Axupga.js} +1 -1
- package/tv4/es/{styles-DA9QaBiB.js → styles-DYnUm3FY.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/{_auto-entry_tvnu-qU7WnhRl.js → _auto-entry_tvnu-C1Na4FvX.js} +1 -1
- package/{btv2/es/events-oapj2yJD.js → tvnu/es/events-DG4iAom3.js} +1 -1
- package/tvnu/es/{index-cJgbtogX.js → index-BISzrl9Y.js} +1 -1
- package/tvnu/es/{index-BDhDw0n8.js → index-CmKqyiye.js} +1 -1
- package/{btv2/es/index-GKVYBZqo.js → tvnu/es/index-D7pI0_mw.js} +1 -1
- package/tvnu/es/{index-DGim-Ymn.js → index-DYjxij7P.js} +1 -1
- package/tvnu/es/{index-DLOLNdW1.js → index-Dm6rvUix.js} +1 -1
- package/{btv2/es/index-CDAas9Mp.js → tvnu/es/index-DvrKJZbP.js} +1 -1
- package/{sav2/es/index-C1kAF7gq.js → tvnu/es/index-bgUvqn5_.js} +1 -1
- package/tvnu/es/index-zTrtNvRR.js +1 -0
- package/tvnu/es/index.js +1 -1
- package/tvnu/es/{styles-CVpVuXGM.js → styles-B4tuyk2Y.js} +1 -1
- package/{btv2/es/styles-D5-nIZXy.js → tvnu/es/styles-B_07-OHk.js} +1 -1
- package/tvnu/es/{styles-9v98_12Z.js → styles-CFcdp1fA.js} +1 -1
- package/tvnu/es/{styles-BZSG1wSv.js → styles-D3ildpSw.js} +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-Btay7qtC.js +1 -0
- package/vg/es/{events-Ce-3oCAR.js → events-CGfaaHdB.js} +1 -1
- package/vg/es/{index-B1wv1t3G.js → index-BcnX31VT.js} +1 -1
- package/vg/es/{index-DBo7tyHP.js → index-Bei2WE_E.js} +1 -1
- package/vg/es/{index-DYVf_ejx.js → index-BmasLAXQ.js} +1 -1
- package/vg/es/{index--qIDvYhQ.js → index-BucJ-9XL.js} +1 -1
- package/vg/es/{index-DEn_H7Hl.js → index-C6kFY3dZ.js} +1 -1
- package/vg/es/index-COQVHzcU.js +1 -0
- package/vg/es/{index-CZbmC7Ja.js → index-Cb_nVuUE.js} +1 -1
- package/vg/es/{index-pO5JZYdy.js → index-Cly9tLBa.js} +1 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-DsmKO01b.js → styles-46BzZ7Zb.js} +1 -1
- package/vg/es/{styles-R-LSxDrz.js → styles-BB3qQZ9l.js} +1 -1
- package/vg/es/{styles-4e380VkF.js → styles-BQA1hCbw.js} +1 -1
- package/vg/es/{styles-ChZ3sq55.js → styles-B_A2_8w8.js} +1 -1
- package/vg/es/{styles-ZIVjd7Kj.js → styles-Byh-69do.js} +1 -1
- package/vg/es/{styles-BQJhpR4p.js → styles-C0KjyzTJ.js} +1 -1
- package/vg/es/{styles-CJvfJnuD.js → styles-C2dD9HYG.js} +1 -1
- package/vg/es/{styles-Bcw8IOwy.js → styles-CMqiReP_.js} +1 -1
- package/vg/es/{styles-DU1TRHOr.js → styles-CSe2imW9.js} +1 -1
- package/vg/es/{styles-BVTSl43k.js → styles-ChTpS5EJ.js} +1 -1
- package/vg/es/{styles-B2xZdw65.js → styles-D0z9s1YH.js} +1 -1
- package/{bt/es/styles-DsF977Lw.js → vg/es/styles-DRlgmYS6.js} +1 -1
- package/{bt/es/styles-OaVOhPgb.js → vg/es/styles-DuxXrYea.js} +1 -1
- package/{sa/es/styles-BP1Rt8RB.js → vg/es/styles-Z0ltuKsj.js} +1 -1
- package/vg/es/{styles-CofOhUt1.js → styles-dmsQx7Im.js} +1 -1
- package/vg/es/{styles-BJbgNH0L.js → styles-w8ZeI_ne.js} +1 -1
- package/vgv2/es/{_auto-entry_vgv2-STK09567.js → _auto-entry_vgv2-RFh5kNdr.js} +1 -1
- package/vgv2/es/{events-CTEuqItr.js → events-PFdv4TSw.js} +1 -1
- package/vgv2/es/{index-DOzk-lYH.js → index-BIvUYvnr.js} +1 -1
- package/vgv2/es/{index-CaGXaBIE.js → index-BR8j1wSu.js} +1 -1
- package/vgv2/es/{index-CpfXzBbX.js → index-BeQdxkGt.js} +1 -1
- package/vgv2/es/{index-Dq37qrh_.js → index-Bt0xr2Gw.js} +1 -1
- package/vgv2/es/index-CdS4MYhL.js +1 -0
- package/vgv2/es/{index-CKv_J9qN.js → index-CkBRixx8.js} +1 -1
- package/vgv2/es/{index-SfU1VkhH.js → index-DzjEt1rM.js} +1 -1
- package/vgv2/es/{index-CnQNMS2u.js → index-RdR3Qa3u.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/{sav2/es/styles-B96uy1bA.js → vgv2/es/styles-BH2730_N.js} +1 -1
- package/{tvnu/es/styles-vWn7lrpp.js → vgv2/es/styles-BQj7pk_x.js} +1 -1
- package/vgv2/es/{styles-C24lCY9K.js → styles-BZ9dNdDJ.js} +1 -1
- package/vgv2/es/styles-CKJ38HW5.js +1 -0
- package/vgv2/es/{styles-D8AbbwMs.js → styles-CQ4nHwXC.js} +1 -1
- package/vgv2/es/{styles-B3MDBJKG.js → styles-CQILkwRZ.js} +1 -1
- package/vgv2/es/{styles-CXo6pHfv.js → styles-CyZw26mO.js} +1 -1
- package/vgv2/es/{styles-ymhcL2FI.js → styles-D0M_Dye0.js} +1 -1
- package/vgv2/es/{styles-DesI8c5n.js → styles-DAZFpnqm.js} +1 -1
- package/vgv2/es/{styles--V_VVpJ8.js → styles-Di4urdRu.js} +1 -1
- package/vgv2/es/{styles-CICOgIpG.js → styles-DpCexWaH.js} +1 -1
- package/vgv2/es/{styles-CfUB5ZeY.js → styles-_tb1eFvy.js} +1 -1
- package/vgv2/es/{styles-DjDLo0Uv.js → styles-fv5mre1M.js} +1 -1
- package/vgv2/es/{styles-UT2XT9Ar.js → styles-hJnDM70W.js} +1 -1
- package/vgv2/es/{styles-CnDSdYK5.js → styles-qlt-8mNJ.js} +1 -1
- package/{btv2/es/styles-mHC_ha2H.js → vgv2/es/styles-uw85Axqh.js} +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-CQzbye3k.js +0 -1
- package/aftenposten/es/index-0kRfLcYj.js +0 -1
- package/aftenpostenv2/es/index-BdS24ZhN.js +0 -1
- package/aftonbladet/es/index-qS72xrEu.js +0 -1
- package/aftonbladetv2/es/index-BMQSuSVi.js +0 -1
- package/bt/es/index-r66Cd2xZ.js +0 -1
- package/btv2/es/index-BMCjCGA7.js +0 -1
- package/e24/es/index-uOIzIRd0.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DHjzWt3m.js +0 -1
- package/fotbollskanalen/es/index-Ij2nCGGh.js +0 -1
- package/koket/es/_auto-entry_koket-3tgHdstd.js +0 -1
- package/koket/es/index-CfGWBNLF.js +0 -1
- package/mtv/es/index-DV_dfuSB.js +0 -1
- package/omni/es/_auto-entry_omni-DiYOm9sB.js +0 -1
- package/omni/es/index-DRFR9yJ9.js +0 -1
- package/sa/es/index-DAKkM1v8.js +0 -1
- package/sav2/es/index-B783LyIl.js +0 -1
- package/svd/es/_auto-entry_svd-Ck1VEMVK.js +0 -1
- package/svd/es/index-jDspcCFP.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-B_L1Coag.js +0 -1
- package/svdv2/es/index-QVXdfI5S.js +0 -1
- package/tv4/es/_auto-entry_tv4-BWewdI2J.js +0 -1
- package/tv4/es/index-D-cgB-Qv.js +0 -1
- package/tvnu/es/index-C5wK_iuc.js +0 -1
- package/vg/es/_auto-entry_vg-nT8CYeFA.js +0 -1
- package/vg/es/index-CjHCSG0t.js +0 -1
- package/vgv2/es/index-D1vocHKf.js +0 -1
- package/vgv2/es/styles-Uf8_10Aw.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as t,J as e,c as s,K as r,L as a,M as n,O as i,Q as o,R as c,S as l}from"./_auto-entry_e24-
|
|
1
|
+
import{A as t,J as e,c as s,K as r,L as a,M as n,O as i,Q as o,R as c,S as l}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";class d extends t{constructor(t,e){var s;super(t.pulse.instance,null!==(s=t.pageContext.publisher)&&void 0!==s?s:""),this.blinkParams=t,this.targetId=e}getTargetId(){return this.targetId}computeInvCode(){const{pageContext:{deviceType:t},placements:s}=this.blinkParams;if(t)return e(t,this.targetId,s)}buildAdObject(){const t=d.extractAdFormat(this.targetId);return{objectId:this.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${t}`,platform:"blink",adFormat:t}}}const u=(t,e)=>{const{siteSpecificConfig:{publisherClassName:o}={},pageContext:{pageType:c},pulse:l}=s.get(),u=document.querySelector(`#${t}`);if(!u)return;if(u.classList.add(r),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const e=new d(s.get(),t);e.trackLoad(),e.trackImpression(),u.addEventListener("click",()=>e.trackEngagement())}a(o,u,n.FINN_BLINK,null!=e?e:c);i({preferredTestIdData:{targetId:t,testId:"finn"}})},p=t=>{const{fullscreenScroll:e}=s.get(),{initNativeAd:r}=s.getHandlers();o(t)&&c(t,e),l(t)&&(null==r||r(t,s.get()))},g=t=>{const{pageContext:{publisher:e=""}}=s.get(),r=document.querySelector(`#${t}`);if(!r)return;const a=`-${e}`;r.classList.remove(`advertory${a}-finn-blink`),r.classList.remove(`advertory${a}-finn-blink-wrapper`)};export{p as displaySpecialFormatsForFinnFallback,u as finnBlinkLoaded,g as xandrAdLoaded};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,_ as n,c as i,l as t,g as o,a as l,b as d,d as a,F as s,E as c,s as u,e as v,f,h as p}from"./_auto-entry_e24-
|
|
1
|
+
import{i as e,_ as n,c as i,l as t,g as o,a as l,b as d,d as a,F as s,E as c,s as u,e as v,f,h as p}from"./_auto-entry_e24-Ct_p-SFb.js";export{r as replaceAdsWithFinnBlink}from"./_auto-entry_e24-Ct_p-SFb.js";import{xandrAdLoaded as h,finnBlinkLoaded as m}from"./events-Cd2dTyNn.js";import"react/jsx-runtime";e('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const y=e=>{var n,i;const t=document.querySelector(`[id^="${e}"]`);return null!==(i=null===(n=null==t?void 0:t.dataset)||void 0===n?void 0:n.finnBlinkId)&&void 0!==i?i:e},g=(e,n)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==n?void 0:n.enabled)||(e=>{var n;const i=document.querySelector(`[id^="${e}"]`);return!!(null===(n=null==i?void 0:i.dataset)||void 0===n?void 0:n.noBidAd)})(e);if(!o||!t)return null;const{height:r,requireImage:l,position:d,offset:a}=(null==n?void 0:n.sdkPayload)||{};return{selector:`#${y(e)}`,enabled:o,position:null!=d?d:e,height:null!=r?r:100,offset:null!=a?a:200,requireImage:l,advertoryTheme:null==n?void 0:n.advertoryTheme}},b=(e,r,u)=>n(void 0,void 0,void 0,function*(){const{placements:v,pageContext:{deviceType:f},appearanceConfig:p}=i.get();t(`rendering finn blink ad for ${e}`);const b=o(e),k=v[f].find(e=>e.targetId===b),x=g(e,null==k?void 0:k.finnBlink);if(!(null==x?void 0:x.enabled))return t(`Finn blink is not enabled on placement: ${e}`),u&&u(e),void h(e);if((e=>{var n;const i=y(e),t=document.querySelector(`[id^="${i}"]`);return!!(null===(n=null==t?void 0:t.classList)||void 0===n?void 0:n.contains("finn"))})(e))return void t(`Finn blink already loaded ${e}`);const{publisher:$,countryCode:j,finnBlink:w}=r,{sdkPayload:{channel:I}={}}=null!=w?w:{},B=null!=I?I:`${$}.${j}`,q="dark"===(null==p?void 0:p.theme)?"dark":"light";try{const e=yield l();yield(T=Object.assign(Object.assign({},x),{channel:B,userId:e,theme:q}),n(void 0,void 0,void 0,function*(){const{userId:e,theme:n}=T,i=a(T,["userId","theme"]),t=window[c.Blink];if(!t)return;const o=new t({remote:s,userId:e,theme:n});yield o.inject(Object.assign({},i))})),m(x.selector.replace("#",""),x.advertoryTheme)}catch(n){t(`Finn blink error ${n}`),u&&u(e),!u&&d(e),h(e)}var T}),k=(e,o,r,l)=>n(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:n}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield u())||n)return r&&r(e),h(e),void(!r&&d(e));try{yield v(f)}catch(e){console.error(e)}yield b(e,o,r),l&&l()}),x=e=>document.querySelector(`#${e}`),$=e=>n(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:n,pageContext:{deviceType:t}}=i.get(),o=null==n?void 0:n.defaultThreshold[t];for(const n of e){const{requestThreshold:e,targetId:i}=n,t=x(i);t&&(yield p(t,null!=e?e:o))}});export{$ as handleFinnBlinkOnlyPlacements,k as loadFinnBlinkAd};
|
|
@@ -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,G as c,H as d,I as i}from"./_auto-entry_e24-
|
|
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,G as c,H as d,I as i}from"./_auto-entry_e24-Ct_p-SFb.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")},g=new WeakMap,b=(e,o,t)=>{var r;window.addEventListener(o,t),g.set(e,[...null!==(r=g.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=g.get(e))||void 0===o||o.forEach(e=>e()),g.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 b(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(),b(e,"keydown",o)})(e),E(e),m(),o.addEventListener("click",()=>{f(e)}),h(!1))},S=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"})))},k=e=>{(e=>{b(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"]})},I=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]:S,[e.TOPSCROLLER]:S,[e.SPLASH]:L,[e.VELVET]:k})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&w(u,!0),c(o,u)});export{I as createTakeoverAd,P as modifyTakeoverAdContent,R as modifyTakeoverIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,c as e,j as o,k as n,C as s}from"./_auto-entry_e24-
|
|
1
|
+
import{_ as t,c as e,j as o,k as n,C as s}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:c}=e.get(),r=yield o(c,a,d,"norstat");if(!s||a||!r)return;const m=n(d);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,u as t,v as o}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";const n=1e4,r=(t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();if(!o)return[];return Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`)))},s=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let a;const i=()=>{const{widescreenSwitching:t}=e.get(),{enabled:i,options:{rotationInterval:l=n,widescreenIdPrefix:c}={}}=null!=t?t:{};if(!i)return;let y=r(c),p=0,d=Date.now(),m=s(y);if(!y.length)return;a&&window.removeEventListener("scroll",a);const u=(e,t,o)=>{e.forEach(e=>{e&&e.style.setProperty(t,o)})},w=e=>1===e?0:1,f=e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})};f(y);const g=o(()=>{const e=r(c);((e,t)=>{const o=e.flat(),n=t.flat();return o.length===n.length&&o.every((e,t)=>e===n[t])})(e,y)||(y=e,p=0,d=Date.now(),f(y)),m||(m=s(y)||m,d=Date.now());Date.now()-d>=l&&((()=>{const e=w(p),t=y.map(e=>e[p]),o=y.map(t=>t[e]);u(t,"opacity","0"),setTimeout(()=>{u(t,"display","none"),u(o,"opacity","0"),u(o,"display","block"),setTimeout(()=>{u(o,"opacity","1")},450)},450)})(),p=w(p),d=Date.now())},1e3);a=g,window.addEventListener("scroll",g)};export{i as initWidescreenSwitching};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as e,W as t,X as n,c as r,Y as o,Z as i,$ as d}from"./_auto-entry_e24-
|
|
1
|
+
import{V as e,W as t,X as n,c as r,Y as o,Z as i,$ as d}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";const s=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},l=(e,t=window.screen.width,n,r)=>{const o=s(e,t);if(n&&n(e,o),r)return void r(e);const i=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);i&&(i.style.transform=`scale(${o})`,i.style.transformOrigin="left top")},c=(e,t)=>{if(e&&t)return t/e},a=new Map;a.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),a.set("panorama",{scale:.79,transformOrigin:"center center"}),a.set("outstream",{scale:.79,transformOrigin:"center center"}),a.set("integration",{scale:.79,transformOrigin:"center center"}),a.set("toppanorama",{scale:.8,transformOrigin:"left center"});const u=r=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>e&&(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.clientWidth)<=t))return;var o,i;const d=n(r),s=a.get(d),l=document.querySelector(`#${r.targetId}`);if(!l||!s)return;if(l.style.transformOrigin=s.transformOrigin,l.style.transform=`scale(${s.scale})`,!(null==s?void 0:s.cogwheelAdjust))return;const c=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==l?void 0:l.offsetWidth;c&&"number"==typeof u&&!isNaN(u)&&c.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,s,c,a,u;const{adScaleConfig:f,pageContext:{deviceType:m}}=r.get();if(!(null==f?void 0:f.enabled))return;if(o(e,i.ANY_FULLSCREEN))return;const v=null!==(t=f.adsToBeScaled[m])&&void 0!==t?t:[],g=d(e.targetId.split("-")[0]);if(!v.includes(g))return;const w=null!==(s=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==s?s:0,p=document.getElementById(e.targetId),y=null!==(c=null==p?void 0:p.offsetWidth)&&void 0!==c?c:window.screen.width,h=null!==(u=null===(a=null==p?void 0:p.parentElement)||void 0===a?void 0:a.offsetWidth)&&void 0!==u?u:window.screen.width;l(e,(y<h?y:h)-w)};export{s as calculateScaleFactor,c as getAspectRatio,l as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,U as e,l as n}from"./_auto-entry_e24-
|
|
1
|
+
import{c as t,U as e,l as n}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";const i=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},l=(n,l,r)=>{var o,a;const d=document.querySelector(`#${n.targetId}`),{siteSpecificConfig:{publisherClassName:s,fullWidthFormatClassName:u}={},fullWidth:c,pageContext:{deviceType:f}}=t.get();if(!d)return null;const p=d.parentElement,m=e(f)||r;if(d.style.width=m?"100vw":"100%",d.style.position="relative",p&&(p.style.width=m?"100vw":"100%",p.style.position="relative"),s&&u){const t=`advertory-${s}-${u}`;d.classList.add(`${t}__${l}`),null==p||p.classList.add(`${t}-wrapper__${l}`)}const v=null===(a=null===(o=null==c?void 0:c.options)||void 0===o?void 0:o.styles)||void 0===a?void 0:a[f],y=(null==c?void 0:c.enabled)&&v;return!y&&p&&m&&(p.style.left="50%",p.style.marginLeft="-50vw"),y&&v.adContainer&&i(d,v.adContainer),y&&v.adContainerWrapper&&p&&i(p,v.adContainerWrapper),d},r=(t,e,i,r,o)=>{var a;const d=l(t,r,o);if(!d)return void n("[Ad full width] adContainer not found");const s=d.querySelector("iframe"),u=null==s?void 0:s.parentElement;if(!s||!u)return void n("[Ad full width] iframe or iframeWrapper not found");const c=parseFloat(window.getComputedStyle(d,"::before").height)||0,f="undefined"!=typeof CSS&&CSS.supports("transform","scale(calc(100vw / 1080px))")?`calc(100vw / ${e}px)`:String((null===(a=null===document||void 0===document?void 0:document.documentElement)||void 0===a?void 0:a.clientWidth)/e);n(`[Ad full width] ratioWidth ${e}, ratioHeight ${i}, adObjWidth: ${t.width}, scaleFactor ${f}`),u.style.transform=`scale(${f})`,u.style.transformOrigin="left top",d.style.height=`calc(100vw / ${e} * ${i} + ${c}px)`},o=n=>{const i=l(n,"fullwidth-ad",!1);if(!i)return;const r=i.querySelector("iframe");if(!r)return;const{deviceType:o}=t.get().pageContext;r.style.width=e(o)?"100vw":"100%",(null==r?void 0:r.parentElement)&&(r.parentElement.style.width=e(o)?"100vw":"100%")},a=t=>{r(t,1080,1920,"ninesixteen-ad",!0)},d=t=>{r(t,1080,1080,"fullsquare-ad",!0)};export{d as applyFullsquareFormat,o as applyFullwidthFormat,a as applyNinesixteenFormat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as t,w as e,C as n,_ as a,l as r,p as i,P as s,q as o,t as l,j as d,N as c}from"./_auto-entry_e24-3DlyBhKA.js";import{jsxs as u,jsx as g}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(t=>t),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}const m="[data-k5a-teaser-analytics]";class h extends t{constructor(t,e,n,a){super(t,""),this.root=e,this.newsroomStrategy=n,this.pageType=a}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const t=this.root.querySelector("article");if(!t)return{};const e=t.dataset.k5aTeaserAnalytics;try{return e?JSON.parse(e):{}}catch(t){return{}}}mapPageType(t){var e;return null!==(e={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=t?t:"front"])&&void 0!==e?e:"Frontpage"}getArticleId(){var t;return null!==(t=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==t?t:""}getPlacementData(){var t,e;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(e=null==n?void 0:n.dataset.slotTag)&&void 0!==e?e:""}}getEventTarget(){const{link:t,itemId:e,title:n}=this.parseKilkayaData();return{id:e,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(t){const e=this.root.querySelector(m);if(Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics))return void t();const n=new MutationObserver(()=>{const e=this.root.querySelector(m);Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics)&&(n.disconnect(),t())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){e(this.root,()=>this.waitForAnalyticsData(()=>{var t,e;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const a=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(a):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(a):null===(e=(t=this.pulse).trackElementView)||void 0===e||e.call(t,a)}))}trackEngagement(t){var e,n;const a=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(a):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(a):null===(n=(e=this.pulse).trackElementClick)||void 0===n||n.call(e,a)}}class y extends h{getEventBaseData(){var t,e,n,a;const{clientName:r,creativeId:i,itemId:s,placement:o}=this.parseKilkayaData(),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(null!==(e=this.pageType)&&void 0!==e?e:"front",this.getArticleId());return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",position:o,elementType:"Article",custom:{customer:r,creativeId:null!=i?i:s},page:{"@id":null!=g?g:o,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===a?void 0:a.call(n,this.root)})}getEventInput(t){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(t),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(t){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class k extends h{getEventBaseData(){var t,e;const{title:n="",clientName:a="",creativeId:r="",link:i="",itemId:s=""}=this.parseKilkayaData(),{columnName:o,primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u={publicUrl:i,urlPath:i?new URL(i).pathname:""},{publicUrl:g,urlPath:p}=i&&(null===(e=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===e?void 0:e.call(t,i))||u;return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:o,primaryPosition:l,secondaryPosition:d,source:c},tags:[a,n,g,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:a,"spt:creativeId":r,pageTitle:n,publicUrl:g,urlPath:p},url:location.origin})}getEventInput(t){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}class f{constructor(t){this.identity=t,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return a(this,void 0,void 0,function*(){var t;try{const e=yield null===(t=this.identity)||void 0===t?void 0:t.getUser();return null!=e?e:null}catch(t){return r("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return a(this,void 0,void 0,function*(){var t,e;return null!==(e=yield null===(t=this.identity)||void 0===t?void 0:t.isLoggedIn())&&void 0!==e&&e})}onIdentityLogout(t){var e;null===(e=this.identity)||void 0===e||e.on("logout",t)}}const b=/^glci_/,I="gender_",P="geo_",w="male",E="female",T=()=>a(void 0,void 0,void 0,function*(){try{const e=yield(t=500,a(void 0,void 0,void 0,function*(){return Promise.race([a(void 0,void 0,void 0,function*(){return yield new Promise(t=>{if("undefined"!=typeof window)if(window.Identity)t(window.Identity);else{const e=()=>{t(window.Identity)};window.addEventListener("identity-initialized",e,{once:!0})}else t(void 0)})}),new Promise(e=>setTimeout(()=>e(void 0),t))])})),n=new f(e),r=yield n.getIdentityUser(),{gender:i}=null!=r?r:{};return i===w||i===E?`${I}${i}`:void 0}catch(t){return}var t}),U=()=>a(void 0,void 0,void 0,function*(){const t=[],e=yield T(),n=(()=>{const t=i().map(t=>`${P}${t.replace(b,"")}`);return Array.from(new Set(t))})();return e&&t.push(e),n&&t.push(...n),t});class A{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===s.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${e}`}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class L{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class j{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class O{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.svd.se"===e?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===s.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${e}`}}class D{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.aftonbladet.se"===e?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class K{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a,countryCode:r}}){if(!(null==t?void 0:t.instance))return;const i={[c.VG]:new p,[c.E24]:new A,"no-aftenposten":new S,[c.BT]:new L,"no-bergenstidende":new L,[c.SA]:new j,"no-stavangeraftenblad":new j,[c.SVD]:new O,[c.AFTONBLADET]:new D}[a]||new v;((t,e,a,r)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const s=r===n.SE?new k(t,i,e):new y(t,i,e,a);s.trackImpression(),i.addEventListener("click",()=>s.trackEngagement())})})(t.instance,i,e,r)}injectKilkayaMeta(t){return a(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield U();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var e;const n=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.streamSlot;if(r(`Kilkaya event for slot: ${n}`),!n)return void r("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(r(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):r("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="flex";const a=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";o(a)}loadKilkayaScript(t){return a(this,void 0,void 0,function*(){yield l(t)})}run(t){return a(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:s}=t;if(!(null==s?void 0:s.enabled))return;const o=yield d(a,r,i,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(n=null===(e=s.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t)})}}const N=({placementName:t,slotTag:e,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const s=(t,e)=>{const n={};if(!t)return n;for(const[a,r]of Object.entries(t)){n[e?`${e}-${a}`:a]=String(r)}return n},o=s(r,"data-pulse"),l=s(i,"data");return u("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":e},o,l,{children:[g("div",{className:"inscreen-target"}),g("k5a-stream",{name:t,"slot-tag":e}),g("div",{className:"container"}),g("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},$=t=>a(void 0,void 0,void 0,function*(){const e=new K;yield e.run(t)});export{N as Kilkaya,$ as runKilkaya};
|
|
1
|
+
import{A as t,w as e,C as n,_ as a,l as r,p as i,P as s,q as o,t as l,j as d,N as c}from"./_auto-entry_e24-Ct_p-SFb.js";import{jsxs as u,jsx as g}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(t=>t),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}const m="[data-k5a-teaser-analytics]";class h extends t{constructor(t,e,n,a){super(t,""),this.root=e,this.newsroomStrategy=n,this.pageType=a}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const t=this.root.querySelector("article");if(!t)return{};const e=t.dataset.k5aTeaserAnalytics;try{return e?JSON.parse(e):{}}catch(t){return{}}}mapPageType(t){var e;return null!==(e={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=t?t:"front"])&&void 0!==e?e:"Frontpage"}getArticleId(){var t;return null!==(t=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==t?t:""}getPlacementData(){var t,e;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(e=null==n?void 0:n.dataset.slotTag)&&void 0!==e?e:""}}getEventTarget(){const{link:t,itemId:e,title:n}=this.parseKilkayaData();return{id:e,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(t){const e=this.root.querySelector(m);if(Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics))return void t();const n=new MutationObserver(()=>{const e=this.root.querySelector(m);Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics)&&(n.disconnect(),t())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){e(this.root,()=>this.waitForAnalyticsData(()=>{var t,e;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const a=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(a):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(a):null===(e=(t=this.pulse).trackElementView)||void 0===e||e.call(t,a)}))}trackEngagement(t){var e,n;const a=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(a):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(a):null===(n=(e=this.pulse).trackElementClick)||void 0===n||n.call(e,a)}}class y extends h{getEventBaseData(){var t,e,n,a;const{clientName:r,creativeId:i,itemId:s,placement:o}=this.parseKilkayaData(),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(null!==(e=this.pageType)&&void 0!==e?e:"front",this.getArticleId());return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",position:o,elementType:"Article",custom:{customer:r,creativeId:null!=i?i:s},page:{"@id":null!=g?g:o,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===a?void 0:a.call(n,this.root)})}getEventInput(t){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(t),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(t){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class k extends h{getEventBaseData(){var t,e;const{title:n="",clientName:a="",creativeId:r="",link:i="",itemId:s=""}=this.parseKilkayaData(),{columnName:o,primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u={publicUrl:i,urlPath:i?new URL(i).pathname:""},{publicUrl:g,urlPath:p}=i&&(null===(e=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===e?void 0:e.call(t,i))||u;return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:o,primaryPosition:l,secondaryPosition:d,source:c},tags:[a,n,g,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:a,"spt:creativeId":r,pageTitle:n,publicUrl:g,urlPath:p},url:location.origin})}getEventInput(t){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}class f{constructor(t){this.identity=t,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return a(this,void 0,void 0,function*(){var t;try{const e=yield null===(t=this.identity)||void 0===t?void 0:t.getUser();return null!=e?e:null}catch(t){return r("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return a(this,void 0,void 0,function*(){var t,e;return null!==(e=yield null===(t=this.identity)||void 0===t?void 0:t.isLoggedIn())&&void 0!==e&&e})}onIdentityLogout(t){var e;null===(e=this.identity)||void 0===e||e.on("logout",t)}}const b=/^glci_/,I="gender_",P="geo_",w="male",E="female",T=()=>a(void 0,void 0,void 0,function*(){try{const e=yield(t=500,a(void 0,void 0,void 0,function*(){return Promise.race([a(void 0,void 0,void 0,function*(){return yield new Promise(t=>{if("undefined"!=typeof window)if(window.Identity)t(window.Identity);else{const e=()=>{t(window.Identity)};window.addEventListener("identity-initialized",e,{once:!0})}else t(void 0)})}),new Promise(e=>setTimeout(()=>e(void 0),t))])})),n=new f(e),r=yield n.getIdentityUser(),{gender:i}=null!=r?r:{};return i===w||i===E?`${I}${i}`:void 0}catch(t){return}var t}),U=()=>a(void 0,void 0,void 0,function*(){const t=[],e=yield T(),n=(()=>{const t=i().map(t=>`${P}${t.replace(b,"")}`);return Array.from(new Set(t))})();return e&&t.push(e),n&&t.push(...n),t});class A{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===s.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${e}`}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class L{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class j{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class O{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.svd.se"===e?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===s.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${e}`}}class D{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.aftonbladet.se"===e?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class K{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a,countryCode:r}}){if(!(null==t?void 0:t.instance))return;const i={[c.VG]:new p,[c.E24]:new A,"no-aftenposten":new S,[c.BT]:new L,"no-bergenstidende":new L,[c.SA]:new j,"no-stavangeraftenblad":new j,[c.SVD]:new O,[c.AFTONBLADET]:new D}[a]||new v;((t,e,a,r)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const s=r===n.SE?new k(t,i,e):new y(t,i,e,a);s.trackImpression(),i.addEventListener("click",()=>s.trackEngagement())})})(t.instance,i,e,r)}injectKilkayaMeta(t){return a(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield U();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var e;const n=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.streamSlot;if(r(`Kilkaya event for slot: ${n}`),!n)return void r("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(r(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):r("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="flex";const a=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";o(a)}loadKilkayaScript(t){return a(this,void 0,void 0,function*(){yield l(t)})}run(t){return a(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:s}=t;if(!(null==s?void 0:s.enabled))return;const o=yield d(a,r,i,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(n=null===(e=s.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t)})}}const N=({placementName:t,slotTag:e,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const s=(t,e)=>{const n={};if(!t)return n;for(const[a,r]of Object.entries(t)){n[e?`${e}-${a}`:a]=String(r)}return n},o=s(r,"data-pulse"),l=s(i,"data");return u("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":e},o,l,{children:[g("div",{className:"inscreen-target"}),g("k5a-stream",{name:t,"slot-tag":e}),g("div",{className:"container"}),g("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},$=t=>a(void 0,void 0,void 0,function*(){const e=new K;yield e.run(t)});export{N as Kilkaya,$ as runKilkaya};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e,n as t,o as n}from"./_auto-entry_e24-
|
|
1
|
+
import{m as e,n as t,o as n}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";const r=".advertory-right-column-track",o="--advertory-right-column-track-height",i=e=>e.getBoundingClientRect().top+window.scrollY,a=(e,t)=>`${e}-${t}`,d=(r,d,l)=>{var c;const s=Array.from(null!==(c=r.querySelectorAll(d))&&void 0!==c?c:[]),u=(e=>e.map(e=>{var t;return null===(t=document.querySelector(`[id^="${e}"]`))||void 0===t?void 0:t.parentElement}).map((e,t)=>({point:e,originalIndex:t})).filter(e=>Boolean(e.point)))(l);if(0===u.length)return;const m=i(r);u.forEach(({point:r,originalIndex:d})=>{((r,d,l)=>{const c=i(r),s=a(o,d),u=c-l,m=a("--advertory-right-column-split-point-height",d),v=e(r);t({[s]:n(u),[m]:n(v)})})(r,d+1,m),(r=>{const o=null==r?void 0:r.id;if(!o)return;const i=a("--advertory-right-column-ad-height",o),d=e(r);t({[i]:n(d)})})(s[d])});((e,r)=>{const a=i(e)-r;t({[o]:n(a)})})(u[Math.min(s.length,u.length-1)].point,m)};let l=!1;const c=e=>{if(!(null==e?void 0:e.enabled)||l)return;const{splitPointIDs:t,adSelector:n,trackSelector:o=r}=e,i=document.querySelector(o);if(!i)return;l=!0;const a=()=>{d(i,n,t)};a(),window.addEventListener("resize",a),window.addEventListener("orientationchange",a),window.addEventListener("load",a),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(a)});new ResizeObserver(a).observe(i)};export{c as initRightColumnSplit};
|
package/e24/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a9 as Aksjelive,a8 as Brandboard,a2 as Netboard,a5 as Skyscraper,a6 as SkyscrapersRightTrack,a7 as Takeover,a1 as Topboard,a3 as Wallpaper,a4 as WallpaperTrack,a0 as default}from"./_auto-entry_e24-
|
|
1
|
+
export{a9 as Aksjelive,a8 as Brandboard,a2 as Netboard,a5 as Skyscraper,a6 as SkyscrapersRightTrack,a7 as Takeover,a1 as Topboard,a3 as Wallpaper,a4 as WallpaperTrack,a0 as default}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-entry_e24-
|
|
1
|
+
import{i as a}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";a('.advertory-e24-ad-native-content-basic{position:relative;display:block;height:100%;width:auto;max-width:580px !important;margin:0 auto calc(-40px + 4rem);color:var(--text-color);font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);font-size:0;text-align:left;text-size-adjust:100%;clear:both}.advertory-e24-ad-native-content-basic .ad-info{height:26px;width:26px;cursor:pointer;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.45)}.advertory-e24-ad-native-content-basic a{display:block;text-decoration:none;padding-bottom:calc(3*var(--space-s, 16px));background-color:#fffbf8;border-bottom:1px solid var(--color-yellow-500, #ffd157)}.in-feed .advertory-e24-ad-native-content-basic a{padding-bottom:0;border-bottom:none}.advertory-e24-ad-native-content-basic a .ad-content .ad-header{display:block;background-color:var(--color-yellow-500, #ffd157);border-radius:2px 2px 0 0;color:var(--color-gray-800, rgb(29, 29, 29));font-size:12px;line-height:18px;padding:3px 30px;font-weight:500}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic a .ad-content .ad-header{padding:7px 0 5px 32px}}.advertory-e24-ad-native-content-basic a .ad-content .ad-image-container{position:relative}.advertory-e24-ad-native-content-basic a .ad-content .ad-image-container .ad-ratio-container{box-sizing:border-box;height:100%;position:relative;padding-bottom:52.25%}.advertory-e24-ad-native-content-basic a .ad-content .ad-image-container .ad-ratio-container img{width:100%;height:100%;position:absolute;top:0;left:0;object-fit:cover}.advertory-e24-ad-native-content-basic a .ad-content .ad-image-container .ad-sponsored-by{position:absolute;bottom:calc(1.5*var(--space-s, 16px));left:calc(1.5*var(--space-s, 16px));max-width:50%;max-height:20%}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic a .ad-content .ad-image-container .ad-sponsored-by{bottom:calc(2*var(--space-s, 16px));left:calc(2*var(--space-s, 16px))}}.advertory-e24-ad-native-content-basic a .ad-content .ad-text-container{display:block;padding:calc(1.5*var(--space-s, 16px)) calc(.5*var(--space-s, 16px)) 0 calc(.5*var(--space-s, 16px))}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic a .ad-content .ad-text-container{padding:calc(2*var(--space-s, 16px)) calc(1.5*var(--space-s, 16px)) 0 calc(1.5*var(--space-s, 16px))}}.advertory-e24-ad-native-content-basic a .ad-content .ad-text-container .ad-annonse-label{color:#777;display:block;font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);font-size:14px;line-height:17px;margin-bottom:calc(.5*var(--space-s, 16px))}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic a .ad-content .ad-text-container .ad-annonse-label{font-size:16px;line-height:19px;margin-bottom:var(--space-s, 16px)}}.advertory-e24-ad-native-content-basic a .ad-content .ad-text-container .ad-title{color:var(--color-gray-800, rgb(29, 29, 29));font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);font-size:20px;line-height:24px;font-weight:500;margin-top:0;margin-bottom:calc(.5*var(--space-s, 16px))}.in-feed .advertory-e24-ad-native-content-basic a .ad-content .ad-text-container .ad-title{font-size:20px;line-height:24px;margin-bottom:calc(.5*var(--space-s, 16px))}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic a .ad-content .ad-text-container .ad-title{font-size:30px;line-height:36px;margin-bottom:var(--space-s, 16px)}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_e24-
|
|
1
|
+
import{i as e}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";e(".advertory-e24-ad-native-aksjelive__front{position:relative;box-sizing:border-box;padding-top:16px}.advertory-e24-ad-native-aksjelive__front *{line-height:normal}.advertory-e24-ad-native-aksjelive__front .ad-link{color:inherit;text-decoration:none;display:block}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content{display:flex;flex-direction:column;gap:var(--space-xs);font-family:var(--font-family-ui)}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content .ad-header{display:flex;align-items:center;gap:12px;max-width:100%;overflow:hidden}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content .ad-header .ad-time{flex-shrink:0;font-weight:var(--label-medium-font-weight-bold, 600);color:var(--color-accent, rgb(232, 0, 73));font-size:var(--label-medium-font-size, 14px);line-height:var(--label-medium-line-height, 18px);letter-spacing:var(--label-medium-letter-spacing, 0px);font-family:var(--font-family-ui)}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content .ad-header .ad-label-image{display:flex;align-items:center;justify-content:flex-start;flex:1;min-width:0}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content .ad-header .ad-label-image .ad-info{height:26px;width:26px;cursor:pointer;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.75);border-bottom-right-radius:13px;position:relative;top:0;left:0;flex-shrink:0;background-color:rgba(0,0,0,0)}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content .ad-header .ad-label-image .ad-label{display:flex;align-items:center;padding-right:12px;overflow:hidden;font-weight:var(--label-medium-font-weight-bold);color:var(--color-text-primary, rgb(29, 29, 29));font-size:12px;white-space:nowrap;text-overflow:ellipsis;min-width:0;letter-spacing:-0.8px}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content .ad-header .ad-label-image .ad-image-container{display:flex;align-items:center;border-radius:2px;flex-shrink:0;height:16px;max-width:120px;justify-content:center;overflow:hidden}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content .ad-header .ad-label-image .ad-image-container .ad-logo{height:100%;width:100%;object-fit:contain}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content .ad-description{line-height:var(--label-large-line-height, 20px)}.advertory-e24-ad-native-aksjelive__front .ad-link .ad-content .ad-description:hover{text-decoration:underline}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t}from"./_auto-entry_e24-
|
|
1
|
+
import{i as t}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";t(".advertory-e24-ad-native-content-basic__front{position:relative;display:block;height:100%;width:auto;max-width:580px !important;color:var(--color-text-primary);font-family:var(--font-family-ui);font-size:0;text-align:left;text-size-adjust:100%;clear:both}.advertory-e24-ad-native-content-basic__front .ad-info{height:26px;width:26px;cursor:pointer;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.75);border-bottom-right-radius:13px}.advertory-e24-ad-native-content-basic__front a{display:block;text-decoration:none;background-color:#fffbf8}.in-feed .advertory-e24-ad-native-content-basic__front a{padding-bottom:0;border-bottom:none}.advertory-e24-ad-native-content-basic__front a .ad-content .ad-header{display:block;background-color:#ffd157;border-radius:2px 2px 0 0;color:#1d1d1d;font-size:12px;line-height:18px;padding:3px 30px;font-weight:500}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic__front a .ad-content .ad-header{padding:7px 0 5px 32px}}.advertory-e24-ad-native-content-basic__front a .ad-content .ad-image-container{position:relative}.advertory-e24-ad-native-content-basic__front a .ad-content .ad-image-container .ad-ratio-container{box-sizing:border-box;height:100%;position:relative;padding-bottom:52.25%}.advertory-e24-ad-native-content-basic__front a .ad-content .ad-image-container .ad-ratio-container img{width:100%;height:100%;position:absolute;top:0;left:0;object-fit:cover}.advertory-e24-ad-native-content-basic__front a .ad-content .ad-image-container .ad-sponsored-by{position:absolute;bottom:calc(1.5*var(--space-s));left:calc(1.5*var(--space-s));max-width:50%;max-height:20%}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic__front a .ad-content .ad-image-container .ad-sponsored-by{bottom:calc(2*var(--space-s));left:calc(2*var(--space-s))}}.advertory-e24-ad-native-content-basic__front a .ad-content .ad-text-container{display:flex;flex-direction:column;width:100%;padding:calc(1.5*var(--space-s)) calc(.5*var(--space-s)) 0 calc(.5*var(--space-s))}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic__front a .ad-content .ad-text-container{padding:calc(2*var(--space-s)) calc(1.5*var(--space-s)) 0 calc(1.5*var(--space-s))}}.advertory-e24-ad-native-content-basic__front a .ad-content .ad-text-container .ad-annonse-label{color:#777;display:block;font-family:var(--font-family-ui);font-size:14px;line-height:17px;margin-bottom:calc(.5*var(--space-s))}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic__front a .ad-content .ad-text-container .ad-annonse-label{font-size:16px;line-height:19px;margin-bottom:var(--space-s)}}.advertory-e24-ad-native-content-basic__front a .ad-content .ad-text-container .ad-title{color:#1d1d1d;font-family:var(--font-family-ui);font-size:20px;line-height:24px;font-weight:500;margin-top:0;margin-bottom:calc(.5*var(--space-s))}.in-feed .advertory-e24-ad-native-content-basic__front a .ad-content .ad-text-container .ad-title{font-size:20px;line-height:24px;margin-bottom:calc(.5*var(--space-s))}@media screen and (min-width: 740px){.advertory-e24-ad-native-content-basic__front a .ad-content .ad-text-container .ad-title{font-size:30px;line-height:36px;margin-bottom:var(--space-s)}}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_e24-
|
|
1
|
+
import{i as e}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";e('.advertory-e24-ad-native-seamless{position:relative;overflow:hidden}.advertory-e24-ad-native-seamless .ad-info{position:absolute;top:0;right:0;z-index:1}.advertory-e24-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-e24-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-e24-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, rgb(255, 246, 239));color:var(--color-text-primary, rgb(29, 29, 29))}.advertory-e24-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-e24-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-e24-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons{flex-shrink:0;margin-left:auto;margin-right:5px;white-space:nowrap;line-height:.9;text-transform:lowercase;color:var(--text-color, rgb(29, 29, 29));font-size:10px;font-family:var(--font-family-ui);font-weight:normal}.advertory-e24-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons::first-letter{text-transform:uppercase}.advertory-e24-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-e24-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-e24-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-e24-ad-native-seamless .ad-link .ad-content .ad-carousel{display:flex;justify-content:center;align-items:center;width:100%}.advertory-e24-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-e24-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-e24-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-e24-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-e24-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, rgb(29, 29, 29))}@media screen and (min-width: 768px){.advertory-e24-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:18px}}.advertory-e24-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, rgb(102, 102, 102))}@media screen and (min-width: 768px){.advertory-e24-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{font-size:18px}}.advertory-e24-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-e24-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price{font-size:16px;font-weight:500;white-space:nowrap}.advertory-e24-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price:empty{display:none}.advertory-e24-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, rgb(255, 255, 255));white-space:nowrap;background-color:var(--color-accent, rgb(67, 38, 200));border-radius:99px;font-weight:500}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_e24-
|
|
1
|
+
import{i as e}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";e('.advertory-no-ad-native-recirc{width:100%;min-height:250px;margin:0 auto;color:#000;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;background-color:#fff;font-family:"Inter",sans-serif;font-weight:600;text-align:left;font-size:14px;container-type:inline-size}.advertory-no-ad-native-recirc *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-recirc .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-recirc .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-recirc .ad-content{display:flex;flex-direction:column}.advertory-no-ad-native-recirc .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}@container (min-width: dna.$md){.advertory-no-ad-native-recirc .ad-image-container{min-height:0}}.advertory-no-ad-native-recirc .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-recirc .ad-text-container{background:#f5faff;overflow:auto;padding:8px;container-type:inline-size}@container (min-width: dna.$md){.advertory-no-ad-native-recirc .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-recirc .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@container (min-width: dna.$md){.advertory-no-ad-native-recirc .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-recirc .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-recirc .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@container (min-width: 420px){.advertory-no-ad-native-recirc .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./_auto-entry_e24-
|
|
1
|
+
import{i as e}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";e(".advertory-abo-ad-native-video{width:100%;min-height:250px;margin:auto;color:#000;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}.advertory-abo-ad-native-video *{box-sizing:border-box;line-height:normal;text-transform:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-video{width:580px;height:400px}}.advertory-abo-ad-native-video .ad-info{position:absolute;height:26px;width:26px;top:20px;left:0;z-index:1000;background-color:hsla(0,0%,100%,.4509803922);border-bottom-right-radius:13px;transform:none;transform-origin:center}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-info{top:30px}}.advertory-abo-ad-native-video .ad-info .gdprAdTransparencyCogWheelButton{background-color:rgba(0,0,0,0);border-bottom-right-radius:13px;z-index:10}.advertory-abo-ad-native-video .ad-content .ad-image-container{position:relative;line-height:0}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header{position:absolute;height:20px;width:100%;font-size:13px;line-height:20px;color:#4c3d00;background:rgba(255,205,0,.8);z-index:100}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header span{margin-left:8px}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header{height:30px;line-height:30px;padding-left:16px}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-header span{margin:0}}.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:56.4971751412vw;width:100%}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:326px}}.advertory-abo-ad-native-video .ad-content .ad-text-container{background:#fff6d1;overflow:auto}.advertory-abo-ad-native-video .ad-content .ad-text-container .sponsored-by{color:#64625a;font-size:10px;margin:8px 8px 3px 8px;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-text-container .sponsored-by{font-size:13px;margin:8px 16px}}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link{text-decoration:none;display:flex;flex-direction:column}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link,.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link:focus,.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link:hover,.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link:visited{color:#000}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-title{margin:0 8px 7px 8px;min-height:52px;line-height:24px;color:#000;font-size:20px;font-weight:700;display:flex;flex-direction:column}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-title{font-size:22px;margin:0 16px 9px 16px;height:35px;min-height:auto;line-height:35px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;display:block}}.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-description{display:none;border-top:1px solid rgba(128,128,128,.5019607843);margin:0 8px 12px 8px;padding-top:8px;color:#6a6a6a;font-style:normal;font-weight:normal;font-size:12px;line-height:14px}@media screen and (min-width: 768px){.advertory-abo-ad-native-video .ad-content .ad-text-container .ad-link .ad-description{font-size:13px;margin:8px 16px;line-height:16px}}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t}from"./_auto-entry_e24-
|
|
1
|
+
import{i as t}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";t('.advertory-e24-ad-native-content{position:relative;max-width:580px;width:auto;padding:0;border-bottom:1px solid #d4d4d4;border-top:1px solid #d4d4d4;font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);color:#000c26;text-align:left;box-sizing:border-box;background-color:var(--background-color)}.advertory-e24-ad-native-content .ad-info{height:26px;width:26px;cursor:pointer;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.45)}.advertory-e24-ad-native-content *{line-height:normal}@media screen and (min-width: 740px){.advertory-e24-ad-native-content{width:100%;padding-top:23px;border-bottom:1px solid #d6dce4;border-top:1px solid #d6dce4;margin:0 auto calc(-40px + 4rem)}}.advertory-e24-ad-native-content .ad-info{position:absolute;z-index:1000;top:35px;left:8px;height:26px;width:26px;border-bottom-right-radius:13px;background-color:hsla(0,0%,100%,.4509803922);transform:none;transform-origin:center}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-info{top:50px;left:0}}.advertory-e24-ad-native-content .ad-link{color:inherit;text-decoration:none;display:block}.advertory-e24-ad-native-content .ad-link .ad-content{display:flex;flex-direction:column}.advertory-e24-ad-native-content .ad-link .ad-content .ad-header{box-sizing:border-box;display:flex;justify-content:space-between;width:100%;height:44px;padding:calc(.5*var(--space-s, 16px)) var(--space-s, 16px) calc(.5*var(--space-s, 16px)) calc(1.5*var(--space-s, 16px));font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);line-height:44px;background-color:#fffbf8}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-header{font-size:25px;max-height:50px;height:50px}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-header .ad-annonse{color:var(--color-gray-800, rgb(29, 29, 29));display:inline-block;font-size:16px;line-height:19px;font-weight:600;vertical-align:top;text-transform:uppercase;padding:8px 0}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-header .ad-annonse{padding:10px 0 16px 0}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-header .ad-logo{width:auto;max-width:50%;max-height:36px;vertical-align:middle}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-header .ad-logo{max-height:42px}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-image-container{display:flex;align-items:flex-start;min-height:0;max-height:200px}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-image-container{max-height:262px}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-image-container .ad-image{width:100%;object-position:center 0;height:fit-content;object-fit:cover;max-height:inherit}.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container{display:flex;flex-direction:column;padding:calc(var(--space-s, 16px)*2) calc(var(--space-s, 16px)*1.5) 0;color:var(--color-gray-800, rgb(29, 29, 29));background-color:#fffbf8}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container{padding-bottom:14px}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container .ad-subtitle{font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);padding:16px 0 0 0;font-size:12px;font-style:normal;font-weight:normal}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container .ad-subtitle{font-size:14px;padding:16px 0 4px 0}}.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container .ad-title{color:var(--color-gray-800, rgb(29, 29, 29));font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);font-size:25px;font-style:normal;font-weight:500;padding:0}@media screen and (min-width: 740px){.advertory-e24-ad-native-content .ad-link .ad-content .ad-text-container .ad-title{font-size:32px}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-entry_e24-
|
|
1
|
+
import{i as a}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";a('.advertory-no-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#dfdfdf;font-family:"Inter",sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;font-size:14px}@media screen and (min-width: 768px){.advertory-no-ad-native-default{width:580px;height:400px}}.advertory-no-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-default .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-default .ad-content{display:block}.advertory-no-ad-native-default .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}.advertory-no-ad-native-default .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-default .ad-text-container{background:#f5faff;overflow:auto;padding:8px}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-default .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}.advertory-vg-native-ad__front .advertory-no-ad-native-default{width:100%;height:auto}.advertory-aftenposten-native-ad-wrapper__front{justify-content:center}.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(-40px + 4rem)}@media screen and (min-width: 768px){.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(12px + .75rem)}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t}from"./_auto-entry_e24-
|
|
1
|
+
import{i as t}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";t(".advertory-e24-ad-native-content__front{position:relative;max-width:580px;width:100%;padding:0;font-family:var(--font-family-ui);color:#000c26;text-align:left;box-sizing:border-box;background-color:var(--color-background-primary)}.advertory-e24-ad-native-content__front .ad-info{height:26px;width:26px;cursor:pointer;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.75);border-bottom-right-radius:13px}.advertory-e24-ad-native-content__front *{line-height:normal}.advertory-e24-ad-native-content__front .ad-info{position:absolute;z-index:1000;top:0;left:0;height:26px;width:26px;border-bottom-right-radius:13px;background-color:hsla(0,0%,100%,.4509803922);transform:none;transform-origin:center}.advertory-e24-ad-native-content__front .ad-link{color:inherit;text-decoration:none;display:block}.advertory-e24-ad-native-content__front .ad-link .ad-content{display:flex;flex-direction:column}.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-header{box-sizing:border-box;display:flex;justify-content:space-around;width:100%;height:44px;padding:calc(.5*var(--space-s)) var(--space-s) calc(.5*var(--space-s)) calc(1.5*var(--space-s));font-family:var(--font-family-ui);line-height:44px;background-color:#fffbf8}@media screen and (min-width: 740px){.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-header{justify-content:space-between;font-size:25px;max-height:50px;height:50px}}.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-header .ad-annonse{color:#1d1d1d;display:inline-block;font-size:12px;line-height:19px;font-weight:600;vertical-align:top;text-transform:uppercase;padding:8px 0}@media screen and (min-width: 740px){.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-header .ad-annonse{font-size:16px;margin-left:16px;padding:10px 0 16px 0}}.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-header .ad-logo{width:auto;max-width:50%;max-height:36px;vertical-align:middle}@media screen and (min-width: 740px){.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-header .ad-logo{max-height:42px}}.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-image-container{display:flex;align-items:flex-start;min-height:0}.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-image-container .ad-image{width:100%;object-position:center 0;object-fit:cover;max-height:inherit}.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-image-container,.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-image-container img{min-height:180px}.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-text-container{display:flex;flex-direction:column;padding:8px;color:#1d1d1d;background-color:#fffbf8}@media screen and (min-width: 740px){.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-text-container{padding-bottom:14px}}.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-text-container .ad-subtitle{font-family:var(--font-family-ui);padding:16px 0 0 0;font-size:12px;font-style:normal;font-weight:normal}@media screen and (min-width: 740px){.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-text-container .ad-subtitle{font-size:14px;padding:16px 0 4px 0}}.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-text-container .ad-title{color:#1d1d1d;font-family:var(--font-family-display);line-height:1.15;font-weight:600;font-size:32px;font-style:normal;padding:0}@media screen and (min-width: 740px){.advertory-e24-ad-native-content__front .ad-link .ad-content .ad-text-container .ad-title{font-size:32px}}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-entry_e24-
|
|
1
|
+
import{i as a}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";a('.advertory-e24-ad-native-recirc{position:relative;display:block;height:100%;width:auto;max-width:580px !important;margin:0 auto calc(-40px + 4rem);color:var(--text-color);font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);font-size:0;text-align:left;text-size-adjust:100%;clear:both}.advertory-e24-ad-native-recirc .ad-info{height:26px;width:26px;cursor:pointer;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.45)}.advertory-e24-ad-native-recirc a{display:block;text-decoration:none;padding-bottom:0;background-color:#fffbf8}.advertory-e24-ad-native-recirc a .ad-content .ad-header{display:block;background-color:var(--color-yellow-500, #ffd157);border-radius:2px 2px 0 0;color:var(--color-gray-800, rgb(29, 29, 29));font-size:12px;line-height:18px;padding:3px 30px;font-weight:500}@media screen and (min-width: 740px){.advertory-e24-ad-native-recirc a .ad-content .ad-header{padding:7px 0 5px 32px}}.advertory-e24-ad-native-recirc a .ad-content .ad-image-container{position:relative}.advertory-e24-ad-native-recirc a .ad-content .ad-image-container .ad-ratio-container{box-sizing:border-box;height:100%;position:relative;padding-bottom:52.25%}.advertory-e24-ad-native-recirc a .ad-content .ad-image-container .ad-ratio-container img{width:100%;height:100%;position:absolute;top:0;left:0;object-fit:cover}.advertory-e24-ad-native-recirc a .ad-content .ad-image-container .ad-sponsored-by{position:absolute;bottom:calc(1.5*var(--space-s, 16px));left:calc(1.5*var(--space-s, 16px));max-width:50%;max-height:20%}@media screen and (min-width: 740px){.advertory-e24-ad-native-recirc a .ad-content .ad-image-container .ad-sponsored-by{bottom:calc(2*var(--space-s, 16px));left:calc(2*var(--space-s, 16px))}}.advertory-e24-ad-native-recirc a .ad-content .ad-text-container{display:block;padding:calc(1.5*var(--space-s, 16px)) calc(.5*var(--space-s, 16px)) 0 calc(.5*var(--space-s, 16px))}@media screen and (min-width: 740px){.advertory-e24-ad-native-recirc a .ad-content .ad-text-container{padding:calc(2*var(--space-s, 16px)) calc(1.5*var(--space-s, 16px)) 0 calc(1.5*var(--space-s, 16px))}}.advertory-e24-ad-native-recirc a .ad-content .ad-text-container .ad-annonse-label{color:#777;display:block;font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);font-size:14px;line-height:17px;margin-bottom:calc(.5*var(--space-s, 16px))}@media screen and (min-width: 740px){.advertory-e24-ad-native-recirc a .ad-content .ad-text-container .ad-annonse-label{font-size:16px;line-height:19px;margin-bottom:var(--space-s, 16px)}}.advertory-e24-ad-native-recirc a .ad-content .ad-text-container .ad-title{color:var(--color-gray-800, rgb(29, 29, 29));font-family:var(--font-family-ui, "E24 Text", system-ui, sans-serif);font-size:20px;line-height:24px;font-weight:500;margin-top:0;margin-bottom:calc(.5*var(--space-s, 16px))}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./_auto-entry_e24-
|
|
1
|
+
import{i as a}from"./_auto-entry_e24-Ct_p-SFb.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 t}from"./_auto-
|
|
1
|
+
import{i as t}from"./_auto-entry_e24-Ct_p-SFb.js";import"react/jsx-runtime";const o=t("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");export{o as default};
|
package/editory/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function t(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n}function e(t,e,n,o){return new(n||(n=Promise))(function(i,r){function l(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(l,s)}c((o=o.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n=(t,e)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(e?console.log(n,t,e):console.log(n,t))},o="mobile",i="opaque",r=t=>e(void 0,void 0,void 0,function*(){if(t.type!==i){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),l={get:(n,...o)=>e(void 0,[n,...o],void 0,function*(n,o={}){var{timeout:i}=o,l=t(o,["timeout"]);if(i)return((t,n,o)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,i=setTimeout(()=>e.abort(),o);try{const o=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return r(o)}finally{clearTimeout(i)}}))(n,l,i);const s=yield fetch(n,l);return r(s)}),post:(t,n,o)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(o),i=yield fetch(t,{method:"POST",headers:n,body:e});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},s="data-ad-video",c="viewable",a="adClick",d=(t,e)=>{const n=(new DOMParser).parseFromString(t,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(e))}else if(i){const t=n.createElement("ClickThrough");t.appendChild(n.createCDATASection(e)),i.appendChild(t)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},u=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),p=t=>e(void 0,void 0,void 0,function*(){var e,n;return(null===(e=null===window||void 0===window?void 0:window.SVP)||void 0===e?void 0:e.Player)?new window.SVP.Player(t):((()=>{const t="svp-player-sdk",e=document.querySelector(t),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(e||n.length>0)return;const o=document.createElement("script");o.id=t,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(t){console.error("Failed to set player.next.min source:",t)}document.head.insertBefore(o,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(t):yield new Promise(e=>{window.addEventListener("onSvpPlayerReady",()=>e(new window.SVP.Player(t)))}))}),g={ContentMutePlugin:t=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const e=this.player.config.get("mute");this.container=t||this.player.getContainer(),this.muted=e,e&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const t=document.createElement("button");t.className="player-plugin-content-mute";const e=document.createElement("span");return e.className="volume-button-icon",t.appendChild(e),t},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(t){this.muted=t.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return e(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return G})})}})}},y=t=>e(void 0,[t],void 0,function*({playerConfig:t,pluginsNames:e,clickUrl:n}){const o=yield p(t);((t,e)=>{null==t||t.forEach(t=>{g[t](e)})})(e),o.once("assetReady",()=>{((t,e)=>{null==e||e.forEach(e=>{const n=window.SVP.Player.Plugins.get(e);t.addPlugin(new n)})})(o,e)}),o.on(c,t=>{const{viewable:e}=t;e?o.play():o.pause()}),n&&o.on(a,()=>{window.open(n,"_blank")}),t.repeat&&o.on("pause",()=>{o.play()})}),h={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}};function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var f,m;var b=v(function(){if(m)return f;m=1;var t=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function o(t,e,o){return t.concat(e).map(function(t){return n(t,o)})}function i(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}(t))}function r(t,e){try{return e in t}catch(t){return!1}}function l(t,e,o){var l={};return o.isMergeableObject(t)&&i(t).forEach(function(e){l[e]=n(t[e],o)}),i(e).forEach(function(i){(function(t,e){return r(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(r(t,i)&&o.isMergeableObject(e[i])?l[i]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(i,o)(t[i],e[i],o):l[i]=n(e[i],o))}),l}function s(e,i,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||t,r.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(e)?s?r.arrayMerge(e,i,r):l(e,i,r):n(i,r)}return s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return s(t,n,e)},{})},f=s}());const w={arrayMerge:(t,e)=>e,isMergeableObject:t=>"object"==typeof t&&null!==t&&t.constructor===Object},j=(t,e)=>b(t,e,w),C=(t,e)=>Object.assign(Object.assign({},t),e),O=(t,e)=>{var n;return j(null!==(n=t)&&void 0!==n?n:{},e)},S=(e,n)=>{const{adjustmentOverrides:o}=e,i=t(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},i),n.overrides&&{adjustmentOverrides:j({},n.overrides)})},E="desktop",P="mobile",k="container",x="text",T="image",M="cogwheel",L="video",A=t=>{if(t)return t===o?P:E},$=(t,e,n)=>{var o,i,r,l,s,c,a,d,u,p,g,y,h;const v=e?null===(o=t.overrides)||void 0===o?void 0:o[e]:void 0,f=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[t.id],m=e?null===(r=null==n?void 0:n[e])||void 0===r?void 0:r[t.id]:void 0;if(null!==(c=null!==(s=null!==(l=null==m?void 0:m.hidden)&&void 0!==l?l:null==f?void 0:f.hidden)&&void 0!==s?s:null==v?void 0:v.hidden)&&void 0!==c?c:t.hidden)return null;const b=Object.assign(Object.assign(Object.assign(Object.assign({},t.styles),null==v?void 0:v.styles),null==f?void 0:f.styles),null==m?void 0:m.styles),w=null!==(u=null!==(d=null!==(a=null==m?void 0:m.tag)&&void 0!==a?a:null==f?void 0:f.tag)&&void 0!==d?d:null==v?void 0:v.tag)&&void 0!==u?u:t.tag,j=null!==(y=null!==(g=null!==(p=null==m?void 0:m.text)&&void 0!==p?p:null==f?void 0:f.text)&&void 0!==g?g:null==v?void 0:v.text)&&void 0!==y?y:t.text,C=null===(h=t.children)||void 0===h?void 0:h.map(t=>$(t,e,n)).filter(t=>null!==t),O={id:t.id,tag:w,type:t.type,name:t.name,styles:b,connections:t.connections};return void 0!==j&&(O.text=j),void 0!==C&&(O.children=C),O},B=t=>Object.entries(t).map(([t,e])=>`${(t=>t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))(t)}:${(t=>String(t).replace(/"/g,"""))(e)}`).join(";"),I={microsoftMonetize:{title:"title","body-text":"body",description:"body","sponsored-by":"sponsoredBy","call-to-action":"cta","display-url":"clickUrl","desc-2":"desc2",image:"image",icon:"icon",video:"video","title-1":"customTitle1","title-2":"customTitle2","title-3":"customTitle3","title-4":"customTitle4","icon-1":"customIcon1","icon-2":"customIcon2","custom-display-url-1":"customDisplayUrl1","custom-display-url-2":"customDisplayUrl2","custom-body-1":"customBody1","custom-body-2":"customBody2","custom-body-3":"customBody3","custom-body-4":"customBody4","custom-body-5":"customBody5"}},_=(t,e)=>{const n=t[e];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class U{constructor(t,e=!1){this.tag=t,this.voidElement=e,this.attributes=new Map,this.content=""}attr(t,e){return e&&this.attributes.set(t,e),this}children(t){return this.content=t,this}build(){const t=[...this.attributes].map(([t,e])=>` ${t}="${e}"`).join("");return this.voidElement?`<${this.tag}${t}>`:`<${this.tag}${t}>${this.content}</${this.tag}>`}}const N=(t,e,n="")=>{var o;return(null===(o=t.connections)||void 0===o?void 0:o.length)?((t,e)=>{const n=[];for(const o of t){const t=I[o.server];if(t)for(const i of o.properties){const o=t[i];if(!o)continue;const r=_(e,o);r&&n.push(r)}}return n.join(" ")})(t.connections,e):n},V=(t,e,n,o)=>{var i;const{tag:r,styles:l}=t,s=(null!==(i=t.children)&&void 0!==i?i:[]).map(t=>R(t,e,n,!1)).join(""),c=new U(r);return o(c),c.attr("href","a"===r?N(t,e):"").attr("style",B(l)).children(s).build()},F={[k]:(t,e,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return V(t,e,n,e=>{o&&e.attr("class",`advertory-${r}-ad-native-${t.name.toLowerCase()}`)})},[M]:(t,e,n)=>V(t,e,n,t=>{n.containerId&&t.attr("id",`${n.containerId}-button`)}),[x]:(t,e)=>{var n;return new U(t.tag).attr("style",B(t.styles)).children(N(t,e,null!==(n=t.text)&&void 0!==n?n:"")).build()},[T]:(t,e)=>new U("img",!0).attr("style",B(t.styles)).attr("src",N(t,e)).build(),[L]:(t,e)=>"video"===t.tag&&N(t,e)?new U("div").attr(s,"true").attr("style",B(t.styles)).build():""},R=(t,e,n,o=!0)=>{const i=F[t.type];return i?i(t,e,n,o):""},q=({config:t,nativeData:e,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const l=o?S(t,o):t,s=$(l.root,n,l.adjustmentOverrides);return s?R(s,e,{breakpoint:n,publisher:i,containerId:r}):null},D={placements:(t,e)=>e,takeover:O,refreshConfig:C,editory:O,appearanceConfig:O,pageContext:C,pageOptions:C,pageSectionsSelectors:C,tcf:C},J=t=>{const{siteSpecificConfig:e,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=t;if(!(null==e?void 0:e.publisherClassName)||!o)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${e.publisherClassName}/${o.toLowerCase()}.json`};const z=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const t=new Map;return{get:e=>t.get(e),set:(e,n)=>{t.set(e,n)},delete:e=>{t.delete(e)}}})()}shouldFetchEditableConfig(t){const{editory:{editableConfiguration:{enabled:e=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=t;return Boolean(e&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(t){return this.localSiteConfig=Object.assign({},t),this.localSiteConfig}fetchEditableConfig(t){return e(this,void 0,void 0,function*(){const o=J(t);if(!o)return null;let i=this.cacher.get(o);return i||(i=(t=>e(void 0,void 0,void 0,function*(){const e=J(t);if(!e)return null;try{return yield l.get(e,{timeout:5e3})}catch(t){throw n("Failed to fetch S3 config",{error:t,url:e}),t}}))(t).catch(t=>{throw this.cacher.delete(o),t}),this.cacher.set(o,i)),i})}resolveRemoteConfig(e,n){var o,i,r;const l=((e,n)=>{const{sections:o}=e,i=t(e,["sections"]),r=n?null==o?void 0:o[n]:void 0;return r?j(i,r):i})(n,null!==(r=null===(i=null===(o=e.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.section)&&void 0!==r?r:(()=>{const[t]=window.location.pathname.split("/").filter(Boolean);return t})());return((t,e)=>j(e,t))(e,l)}getConfig(t){return e(this,void 0,void 0,function*(){const e=this.captureLocalSiteConfig(t);if(!this.shouldFetchEditableConfig(e))return e;try{const t=yield this.fetchEditableConfig(e);return t?this.resolveRemoteConfig(e,t):e}catch(t){return n("Error fetching S3 config, using site config",{error:t}),e}})}resolveUpdatedConfig(t){return e(this,void 0,void 0,function*(){var e,o,i,r;if(!this.localSiteConfig)return;if(((t,e)=>{const n=t;for(const t of Object.keys(D)){const o=e[t];void 0!==o&&(n[t]=D[t](n[t],o))}})(this.localSiteConfig,null!=t?t:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const l=null===(o=null===(e=this.localSiteConfig.editory)||void 0===e?void 0:e.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch,s=++this.requestToken;try{const t=yield this.fetchEditableConfig(this.localSiteConfig);if(s!==this.requestToken||(null===(r=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===r?void 0:r.pageTypeToFetch)!==l)return;if(!t)return;return this.resolveRemoteConfig(this.localSiteConfig,t)}catch(t){return void n("Error fetching updated S3 config, keeping current config",{error:t})}})}},W=z.getConfig.bind(z);z.resolveUpdatedConfig.bind(z);const H=function(t){if("undefined"==typeof window)return;const e=document.createElement("style");return e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e),t}("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var G=Object.freeze({__proto__:null,default:H});exports.createTemplateFromConfig=t=>(e,{publisher:n,containerId:o,deviceType:i})=>q({config:t,nativeData:e,breakpoint:A(i),publisher:n,containerId:o}),exports.detectBreakpoint=A,exports.getConfig=W,exports.mergeAdjustment=S,exports.mountVideoPlayer=({container:t,native:e,type:n,publisher:o})=>{const i=t.querySelector(`[${s}]`),{video:r,image:l,clickUrl:c=""}=e;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:a,videoLoop:p}=(t=>{var e;return null!==(e=h[t.toLowerCase()])&&void 0!==e?e:h.default})(n),g=Math.ceil(1e5*Math.random()),v=`ad-player-${g}`;i.id=v;const f=(({id:t,nodeId:e,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:l=!1})=>({id:t,poster:n,vendor:"appnexus",node:e,mute:!0,autoplay:l,repeat:l,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:t=>Object.assign(Object.assign({},u(t)?t:{}),{provider:Object.assign(Object.assign({},u(null==t?void 0:t.provider)?t.provider:{}),{productTag:r})})}}))({id:g,nodeId:v,poster:(null==l?void 0:l.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:d(r.content,c),publisher:o,videoLoop:p});y({playerConfig:f,clickUrl:c,pluginsNames:a})},exports.renderAdNativeHtml=q;
|
|
1
|
+
"use strict";function t(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}function e(t,e,n,o){return new(n||(n=Promise))(function(r,i){function l(t){try{a(o.next(t))}catch(t){i(t)}}function s(t){try{a(o.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(l,s)}a((o=o.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n=(t,e)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(e?console.log(n,t,e):console.log(n,t))},o="mobile",r="opaque",i=t=>e(void 0,void 0,void 0,function*(){if(t.type!==r){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),l={get:(n,...o)=>e(void 0,[n,...o],void 0,function*(n,o={}){var{timeout:r}=o,l=t(o,["timeout"]);if(r)return((t,n,o)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,r=setTimeout(()=>e.abort(),o);try{const o=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return i(o)}finally{clearTimeout(r)}}))(n,l,r);const s=yield fetch(n,l);return i(s)}),post:(t,n,o)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(o),r=yield fetch(t,{method:"POST",headers:n,body:e});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},s="data-ad-video",a="viewable",c="adClick",d=(t,e)=>{const n=(new DOMParser).parseFromString(t,"text/xml"),o=n.querySelector("ClickThrough"),r=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(e))}else if(r){const t=n.createElement("ClickThrough");t.appendChild(n.createCDATASection(e)),r.appendChild(t)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},u=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),g=t=>e(void 0,void 0,void 0,function*(){var e,n;return(null===(e=null===window||void 0===window?void 0:window.SVP)||void 0===e?void 0:e.Player)?new window.SVP.Player(t):((()=>{const t="svp-player-sdk",e=document.querySelector(t),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(e||n.length>0)return;const o=document.createElement("script");o.id=t,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(t){console.error("Failed to set player.next.min source:",t)}document.head.insertBefore(o,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(t):yield new Promise(e=>{window.addEventListener("onSvpPlayerReady",()=>e(new window.SVP.Player(t)))}))}),p={ContentMutePlugin:t=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const e=this.player.config.get("mute");this.container=t||this.player.getContainer(),this.muted=e,e&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const t=document.createElement("button");t.className="player-plugin-content-mute";const e=document.createElement("span");return e.className="volume-button-icon",t.appendChild(e),t},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(t){this.muted=t.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return e(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return H})})}})}},h=t=>e(void 0,[t],void 0,function*({playerConfig:t,pluginsNames:e,clickUrl:n}){const o=yield g(t);((t,e)=>{null==t||t.forEach(t=>{p[t](e)})})(e),o.once("assetReady",()=>{((t,e)=>{null==e||e.forEach(e=>{const n=window.SVP.Player.Plugins.get(e);t.addPlugin(new n)})})(o,e)}),o.on(a,t=>{const{viewable:e}=t;e?o.play():o.pause()}),n&&o.on(c,()=>{window.open(n,"_blank")}),t.repeat&&o.on("pause",()=>{o.play()})}),v={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}};function f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y,b;var m=f(function(){if(b)return y;b=1;var t=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function o(t,e,o){return t.concat(e).map(function(t){return n(t,o)})}function r(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}(t))}function i(t,e){try{return e in t}catch(t){return!1}}function l(t,e,o){var l={};return o.isMergeableObject(t)&&r(t).forEach(function(e){l[e]=n(t[e],o)}),r(e).forEach(function(r){(function(t,e){return i(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(i(t,r)&&o.isMergeableObject(e[r])?l[r]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(r,o)(t[r],e[r],o):l[r]=n(e[r],o))}),l}function s(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(e)?s?i.arrayMerge(e,r,i):l(e,r,i):n(r,i)}return s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return s(t,n,e)},{})},y=s}());const w={arrayMerge:(t,e)=>e,isMergeableObject:t=>"object"==typeof t&&null!==t&&t.constructor===Object},j=(t,e)=>m(t,e,w),C=(t,e)=>Object.assign(Object.assign({},t),e),O=(t,e)=>{var n;return j(null!==(n=t)&&void 0!==n?n:{},e)},S=(e,n)=>{const{adjustmentOverrides:o}=e,r=t(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},r),n.overrides&&{adjustmentOverrides:j({},n.overrides)})},E="desktop",P="mobile",k="container",x="text",M="image",T="cogwheel",L="video",A=t=>{if(t)return t===o?P:E},$=(t,e,n)=>{var o,r,i,l,s,a,c,d,u,g,p,h,v;const f=e?null===(o=t.overrides)||void 0===o?void 0:o[e]:void 0,y=null===(r=null==n?void 0:n.default)||void 0===r?void 0:r[t.id],b=e?null===(i=null==n?void 0:n[e])||void 0===i?void 0:i[t.id]:void 0;if(null!==(a=null!==(s=null!==(l=null==b?void 0:b.hidden)&&void 0!==l?l:null==y?void 0:y.hidden)&&void 0!==s?s:null==f?void 0:f.hidden)&&void 0!==a?a:t.hidden)return null;const m=Object.assign(Object.assign(Object.assign(Object.assign({},t.styles),null==f?void 0:f.styles),null==y?void 0:y.styles),null==b?void 0:b.styles),w=null!==(u=null!==(d=null!==(c=null==b?void 0:b.tag)&&void 0!==c?c:null==y?void 0:y.tag)&&void 0!==d?d:null==f?void 0:f.tag)&&void 0!==u?u:t.tag,j=null!==(h=null!==(p=null!==(g=null==b?void 0:b.text)&&void 0!==g?g:null==y?void 0:y.text)&&void 0!==p?p:null==f?void 0:f.text)&&void 0!==h?h:t.text,C=null===(v=t.children)||void 0===v?void 0:v.map(t=>$(t,e,n)).filter(t=>null!==t),O={id:t.id,tag:w,type:t.type,name:t.name,styles:m,connections:t.connections};return void 0!==j&&(O.text=j),void 0!==C&&(O.children=C),O},_=t=>Object.entries(t).map(([t,e])=>`${(t=>t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))(t)}:${(t=>String(t).replace(/"/g,"""))(e)}`).join(";"),I=(t,e)=>{const n=t[e];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class N{constructor(t,e=!1){this.tag=t,this.voidElement=e,this.attributes=new Map,this.content=""}attr(t,e){return e&&this.attributes.set(t,e),this}children(t){return this.content=t,this}build(){const t=[...this.attributes].map(([t,e])=>` ${t}="${e}"`).join("");return this.voidElement?`<${this.tag}${t}>`:`<${this.tag}${t}>${this.content}</${this.tag}>`}}const V=(t,e,n="")=>{var o;return(null===(o=t.connections)||void 0===o?void 0:o.length)?((t,e)=>{const n=[];for(const{properties:o}of t)for(const t of o){const o=I(e,t);o&&n.push(o)}return n.join(" ")})(t.connections,e):n},B=(t,e,n,o)=>{var r;const{tag:i,styles:l}=t,s=(null!==(r=t.children)&&void 0!==r?r:[]).map(t=>R(t,e,n,!1)).join(""),a=new N(i);return o(a),a.attr("href","a"===i?V(t,e):"").attr("style",_(l)).children(s).build()},F={[k]:(t,e,n,o)=>{var r;const i=null!==(r=n.publisher)&&void 0!==r?r:"shared";return B(t,e,n,e=>{o&&e.attr("class",`advertory-${i}-ad-native-${t.name.toLowerCase()}`)})},[T]:(t,e,n)=>B(t,e,n,t=>{n.containerId&&t.attr("id",`${n.containerId}-button`)}),[x]:(t,e)=>{var n;return new N(t.tag).attr("style",_(t.styles)).children(V(t,e,null!==(n=t.text)&&void 0!==n?n:"")).build()},[M]:(t,e)=>new N("img",!0).attr("style",_(t.styles)).attr("src",V(t,e)).build(),[L]:(t,e)=>"video"===t.tag&&V(t,e)?new N("div").attr(s,"true").attr("style",_(t.styles)).build():""},R=(t,e,n,o=!0)=>{const r=F[t.type];return r?r(t,e,n,o):""},U=({config:t,nativeData:e,breakpoint:n,adjustments:o,publisher:r,containerId:i})=>{const l=o?S(t,o):t,s=$(l.root,n,l.adjustmentOverrides);return s?R(s,e,{breakpoint:n,publisher:r,containerId:i}):null},q={placements:(t,e)=>e,takeover:O,refreshConfig:C,editory:O,appearanceConfig:O,pageContext:C,pageOptions:C,pageSectionsSelectors:C,tcf:C},D=t=>{const{siteSpecificConfig:e,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=t;if(!(null==e?void 0:e.publisherClassName)||!o)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${e.publisherClassName}/${o.toLowerCase()}.json`};const J=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const t=new Map;return{get:e=>t.get(e),set:(e,n)=>{t.set(e,n)},delete:e=>{t.delete(e)}}})()}shouldFetchEditableConfig(t){const{editory:{editableConfiguration:{enabled:e=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=t;return Boolean(e&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(t){return this.localSiteConfig=Object.assign({},t),this.localSiteConfig}fetchEditableConfig(t){return e(this,void 0,void 0,function*(){const o=D(t);if(!o)return null;let r=this.cacher.get(o);return r||(r=(t=>e(void 0,void 0,void 0,function*(){const e=D(t);if(!e)return null;try{return yield l.get(e,{timeout:5e3})}catch(t){throw n("Failed to fetch S3 config",{error:t,url:e}),t}}))(t).catch(t=>{throw this.cacher.delete(o),t}),this.cacher.set(o,r)),r})}resolveRemoteConfig(e,n){var o,r,i;const l=((e,n)=>{const{sections:o}=e,r=t(e,["sections"]),i=n?null==o?void 0:o[n]:void 0;return i?j(r,i):r})(n,null!==(i=null===(r=null===(o=e.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===r?void 0:r.section)&&void 0!==i?i:(()=>{const[t]=window.location.pathname.split("/").filter(Boolean);return t})());return((t,e)=>j(e,t))(e,l)}getConfig(t){return e(this,void 0,void 0,function*(){const e=this.captureLocalSiteConfig(t);if(!this.shouldFetchEditableConfig(e))return e;try{const t=yield this.fetchEditableConfig(e);return t?this.resolveRemoteConfig(e,t):e}catch(t){return n("Error fetching S3 config, using site config",{error:t}),e}})}resolveUpdatedConfig(t){return e(this,void 0,void 0,function*(){var e,o,r,i;if(!this.localSiteConfig)return;if(((t,e)=>{const n=t;for(const t of Object.keys(q)){const o=e[t];void 0!==o&&(n[t]=q[t](n[t],o))}})(this.localSiteConfig,null!=t?t:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const l=null===(o=null===(e=this.localSiteConfig.editory)||void 0===e?void 0:e.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch,s=++this.requestToken;try{const t=yield this.fetchEditableConfig(this.localSiteConfig);if(s!==this.requestToken||(null===(i=null===(r=this.localSiteConfig.editory)||void 0===r?void 0:r.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==l)return;if(!t)return;return this.resolveRemoteConfig(this.localSiteConfig,t)}catch(t){return void n("Error fetching updated S3 config, keeping current config",{error:t})}})}},W=J.getConfig.bind(J);J.resolveUpdatedConfig.bind(J);const z=function(t){if("undefined"==typeof window)return;const e=document.createElement("style");return e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e),t}("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var H=Object.freeze({__proto__:null,default:z});exports.createTemplateFromConfig=t=>(e,{publisher:n,containerId:o,deviceType:r})=>U({config:t,nativeData:e,breakpoint:A(r),publisher:n,containerId:o}),exports.detectBreakpoint=A,exports.getConfig=W,exports.mergeAdjustment=S,exports.mountVideoPlayer=({container:t,native:e,type:n,publisher:o})=>{const r=t.querySelector(`[${s}]`),{video:i,image:l,clickUrl:a=""}=e;if(!r||!(null==i?void 0:i.content))return;const{pluginsNames:c,videoLoop:g}=(t=>{var e;return null!==(e=v[t.toLowerCase()])&&void 0!==e?e:v.default})(n),p=Math.ceil(1e5*Math.random()),f=`ad-player-${p}`;r.id=f;const y=(({id:t,nodeId:e,poster:n,tagURL:o,publisher:r="",productTag:i="xandr",videoLoop:l=!1})=>({id:t,poster:n,vendor:"appnexus",node:e,mute:!0,autoplay:l,repeat:l,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:r.toLowerCase(),decorator:t=>Object.assign(Object.assign({},u(t)?t:{}),{provider:Object.assign(Object.assign({},u(null==t?void 0:t.provider)?t.provider:{}),{productTag:i})})}}))({id:p,nodeId:f,poster:(null==l?void 0:l.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:d(i.content,a),publisher:o,videoLoop:g});h({playerConfig:y,clickUrl:a,pluginsNames:c})},exports.renderAdNativeHtml=U;
|
package/editory/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n}function e(t,e,n,o){return new(n||(n=Promise))(function(i,r){function l(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(l,s)}c((o=o.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n=(t,e)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(e?console.log(n,t,e):console.log(n,t))},o="mobile",i="opaque",r=t=>e(void 0,void 0,void 0,function*(){if(t.type!==i){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),l={get:(n,...o)=>e(void 0,[n,...o],void 0,function*(n,o={}){var{timeout:i}=o,l=t(o,["timeout"]);if(i)return((t,n,o)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,i=setTimeout(()=>e.abort(),o);try{const o=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return r(o)}finally{clearTimeout(i)}}))(n,l,i);const s=yield fetch(n,l);return r(s)}),post:(t,n,o)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(o),i=yield fetch(t,{method:"POST",headers:n,body:e});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},s="data-ad-video",c="viewable",a="adClick",u=(t,e)=>{const n=(new DOMParser).parseFromString(t,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(e))}else if(i){const t=n.createElement("ClickThrough");t.appendChild(n.createCDATASection(e)),i.appendChild(t)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},d=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),g=t=>e(void 0,void 0,void 0,function*(){var e,n;return(null===(e=null===window||void 0===window?void 0:window.SVP)||void 0===e?void 0:e.Player)?new window.SVP.Player(t):((()=>{const t="svp-player-sdk",e=document.querySelector(t),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(e||n.length>0)return;const o=document.createElement("script");o.id=t,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(t){console.error("Failed to set player.next.min source:",t)}document.head.insertBefore(o,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(t):yield new Promise(e=>{window.addEventListener("onSvpPlayerReady",()=>e(new window.SVP.Player(t)))}))}),y={ContentMutePlugin:t=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const e=this.player.config.get("mute");this.container=t||this.player.getContainer(),this.muted=e,e&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const t=document.createElement("button");t.className="player-plugin-content-mute";const e=document.createElement("span");return e.className="volume-button-icon",t.appendChild(e),t},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(t){this.muted=t.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return e(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Z})})}})}},p=t=>e(void 0,[t],void 0,function*({playerConfig:t,pluginsNames:e,clickUrl:n}){const o=yield g(t);((t,e)=>{null==t||t.forEach(t=>{y[t](e)})})(e),o.once("assetReady",()=>{((t,e)=>{null==e||e.forEach(e=>{const n=window.SVP.Player.Plugins.get(e);t.addPlugin(new n)})})(o,e)}),o.on(c,t=>{const{viewable:e}=t;e?o.play():o.pause()}),n&&o.on(a,()=>{window.open(n,"_blank")}),t.repeat&&o.on("pause",()=>{o.play()})}),h={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},v=({container:t,native:e,type:n,publisher:o})=>{const i=t.querySelector(`[${s}]`),{video:r,image:l,clickUrl:c=""}=e;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:a,videoLoop:g}=(t=>{var e;return null!==(e=h[t.toLowerCase()])&&void 0!==e?e:h.default})(n),y=Math.ceil(1e5*Math.random()),v=`ad-player-${y}`;i.id=v;const f=(({id:t,nodeId:e,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:l=!1})=>({id:t,poster:n,vendor:"appnexus",node:e,mute:!0,autoplay:l,repeat:l,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:t=>Object.assign(Object.assign({},d(t)?t:{}),{provider:Object.assign(Object.assign({},d(null==t?void 0:t.provider)?t.provider:{}),{productTag:r})})}}))({id:y,nodeId:v,poster:(null==l?void 0:l.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:u(r.content,c),publisher:o,videoLoop:g});p({playerConfig:f,clickUrl:c,pluginsNames:a})};function f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var b,m;var w=f(function(){if(m)return b;m=1;var t=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function o(t,e,o){return t.concat(e).map(function(t){return n(t,o)})}function i(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}(t))}function r(t,e){try{return e in t}catch(t){return!1}}function l(t,e,o){var l={};return o.isMergeableObject(t)&&i(t).forEach(function(e){l[e]=n(t[e],o)}),i(e).forEach(function(i){(function(t,e){return r(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(r(t,i)&&o.isMergeableObject(e[i])?l[i]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(i,o)(t[i],e[i],o):l[i]=n(e[i],o))}),l}function s(e,i,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||t,r.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(e)?s?r.arrayMerge(e,i,r):l(e,i,r):n(i,r)}return s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return s(t,n,e)},{})},b=s}());const j={arrayMerge:(t,e)=>e,isMergeableObject:t=>"object"==typeof t&&null!==t&&t.constructor===Object},C=(t,e)=>w(t,e,j),O=(t,e)=>Object.assign(Object.assign({},t),e),S=(t,e)=>{var n;return C(null!==(n=t)&&void 0!==n?n:{},e)},E=(e,n)=>{const{adjustmentOverrides:o}=e,i=t(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},i),n.overrides&&{adjustmentOverrides:C({},n.overrides)})},P="desktop",k="mobile",x="container",T="text",M="image",L="cogwheel",A="video",$=t=>{if(t)return t===o?k:P},B=(t,e,n)=>{var o,i,r,l,s,c,a,u,d,g,y,p,h;const v=e?null===(o=t.overrides)||void 0===o?void 0:o[e]:void 0,f=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[t.id],b=e?null===(r=null==n?void 0:n[e])||void 0===r?void 0:r[t.id]:void 0;if(null!==(c=null!==(s=null!==(l=null==b?void 0:b.hidden)&&void 0!==l?l:null==f?void 0:f.hidden)&&void 0!==s?s:null==v?void 0:v.hidden)&&void 0!==c?c:t.hidden)return null;const m=Object.assign(Object.assign(Object.assign(Object.assign({},t.styles),null==v?void 0:v.styles),null==f?void 0:f.styles),null==b?void 0:b.styles),w=null!==(d=null!==(u=null!==(a=null==b?void 0:b.tag)&&void 0!==a?a:null==f?void 0:f.tag)&&void 0!==u?u:null==v?void 0:v.tag)&&void 0!==d?d:t.tag,j=null!==(p=null!==(y=null!==(g=null==b?void 0:b.text)&&void 0!==g?g:null==f?void 0:f.text)&&void 0!==y?y:null==v?void 0:v.text)&&void 0!==p?p:t.text,C=null===(h=t.children)||void 0===h?void 0:h.map(t=>B(t,e,n)).filter(t=>null!==t),O={id:t.id,tag:w,type:t.type,name:t.name,styles:m,connections:t.connections};return void 0!==j&&(O.text=j),void 0!==C&&(O.children=C),O},I=t=>Object.entries(t).map(([t,e])=>`${(t=>t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))(t)}:${(t=>String(t).replace(/"/g,"""))(e)}`).join(";"),_={microsoftMonetize:{title:"title","body-text":"body",description:"body","sponsored-by":"sponsoredBy","call-to-action":"cta","display-url":"clickUrl","desc-2":"desc2",image:"image",icon:"icon",video:"video","title-1":"customTitle1","title-2":"customTitle2","title-3":"customTitle3","title-4":"customTitle4","icon-1":"customIcon1","icon-2":"customIcon2","custom-display-url-1":"customDisplayUrl1","custom-display-url-2":"customDisplayUrl2","custom-body-1":"customBody1","custom-body-2":"customBody2","custom-body-3":"customBody3","custom-body-4":"customBody4","custom-body-5":"customBody5"}},U=(t,e)=>{const n=t[e];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class N{constructor(t,e=!1){this.tag=t,this.voidElement=e,this.attributes=new Map,this.content=""}attr(t,e){return e&&this.attributes.set(t,e),this}children(t){return this.content=t,this}build(){const t=[...this.attributes].map(([t,e])=>` ${t}="${e}"`).join("");return this.voidElement?`<${this.tag}${t}>`:`<${this.tag}${t}>${this.content}</${this.tag}>`}}const R=(t,e,n="")=>{var o;return(null===(o=t.connections)||void 0===o?void 0:o.length)?((t,e)=>{const n=[];for(const o of t){const t=_[o.server];if(t)for(const i of o.properties){const o=t[i];if(!o)continue;const r=U(e,o);r&&n.push(r)}}return n.join(" ")})(t.connections,e):n},V=(t,e,n,o)=>{var i;const{tag:r,styles:l}=t,s=(null!==(i=t.children)&&void 0!==i?i:[]).map(t=>F(t,e,n,!1)).join(""),c=new N(r);return o(c),c.attr("href","a"===r?R(t,e):"").attr("style",I(l)).children(s).build()},q={[x]:(t,e,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return V(t,e,n,e=>{o&&e.attr("class",`advertory-${r}-ad-native-${t.name.toLowerCase()}`)})},[L]:(t,e,n)=>V(t,e,n,t=>{n.containerId&&t.attr("id",`${n.containerId}-button`)}),[T]:(t,e)=>{var n;return new N(t.tag).attr("style",I(t.styles)).children(R(t,e,null!==(n=t.text)&&void 0!==n?n:"")).build()},[M]:(t,e)=>new N("img",!0).attr("style",I(t.styles)).attr("src",R(t,e)).build(),[A]:(t,e)=>"video"===t.tag&&R(t,e)?new N("div").attr(s,"true").attr("style",I(t.styles)).build():""},F=(t,e,n,o=!0)=>{const i=q[t.type];return i?i(t,e,n,o):""},D=({config:t,nativeData:e,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const l=o?E(t,o):t,s=B(l.root,n,l.adjustmentOverrides);return s?F(s,e,{breakpoint:n,publisher:i,containerId:r}):null},J=t=>(e,{publisher:n,containerId:o,deviceType:i})=>D({config:t,nativeData:e,breakpoint:$(i),publisher:n,containerId:o}),z={placements:(t,e)=>e,takeover:S,refreshConfig:O,editory:S,appearanceConfig:S,pageContext:O,pageOptions:O,pageSectionsSelectors:O,tcf:O},W=t=>{const{siteSpecificConfig:e,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=t;if(!(null==e?void 0:e.publisherClassName)||!o)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${e.publisherClassName}/${o.toLowerCase()}.json`};const G=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const t=new Map;return{get:e=>t.get(e),set:(e,n)=>{t.set(e,n)},delete:e=>{t.delete(e)}}})()}shouldFetchEditableConfig(t){const{editory:{editableConfiguration:{enabled:e=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=t;return Boolean(e&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(t){return this.localSiteConfig=Object.assign({},t),this.localSiteConfig}fetchEditableConfig(t){return e(this,void 0,void 0,function*(){const o=W(t);if(!o)return null;let i=this.cacher.get(o);return i||(i=(t=>e(void 0,void 0,void 0,function*(){const e=W(t);if(!e)return null;try{return yield l.get(e,{timeout:5e3})}catch(t){throw n("Failed to fetch S3 config",{error:t,url:e}),t}}))(t).catch(t=>{throw this.cacher.delete(o),t}),this.cacher.set(o,i)),i})}resolveRemoteConfig(e,n){var o,i,r;const l=((e,n)=>{const{sections:o}=e,i=t(e,["sections"]),r=n?null==o?void 0:o[n]:void 0;return r?C(i,r):i})(n,null!==(r=null===(i=null===(o=e.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.section)&&void 0!==r?r:(()=>{const[t]=window.location.pathname.split("/").filter(Boolean);return t})());return((t,e)=>C(e,t))(e,l)}getConfig(t){return e(this,void 0,void 0,function*(){const e=this.captureLocalSiteConfig(t);if(!this.shouldFetchEditableConfig(e))return e;try{const t=yield this.fetchEditableConfig(e);return t?this.resolveRemoteConfig(e,t):e}catch(t){return n("Error fetching S3 config, using site config",{error:t}),e}})}resolveUpdatedConfig(t){return e(this,void 0,void 0,function*(){var e,o,i,r;if(!this.localSiteConfig)return;if(((t,e)=>{const n=t;for(const t of Object.keys(z)){const o=e[t];void 0!==o&&(n[t]=z[t](n[t],o))}})(this.localSiteConfig,null!=t?t:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const l=null===(o=null===(e=this.localSiteConfig.editory)||void 0===e?void 0:e.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch,s=++this.requestToken;try{const t=yield this.fetchEditableConfig(this.localSiteConfig);if(s!==this.requestToken||(null===(r=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===r?void 0:r.pageTypeToFetch)!==l)return;if(!t)return;return this.resolveRemoteConfig(this.localSiteConfig,t)}catch(t){return void n("Error fetching updated S3 config, keeping current config",{error:t})}})}},H=G.getConfig.bind(G);G.resolveUpdatedConfig.bind(G);const X=function(t){if("undefined"==typeof window)return;const e=document.createElement("style");return e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e),t}("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var Z=Object.freeze({__proto__:null,default:X});export{J as createTemplateFromConfig,$ as detectBreakpoint,H as getConfig,E as mergeAdjustment,v as mountVideoPlayer,D as renderAdNativeHtml};
|
|
1
|
+
function t(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n}function e(t,e,n,o){return new(n||(n=Promise))(function(i,r){function l(t){try{a(o.next(t))}catch(t){r(t)}}function s(t){try{a(o.throw(t))}catch(t){r(t)}}function a(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(l,s)}a((o=o.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n=(t,e)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(e?console.log(n,t,e):console.log(n,t))},o="mobile",i="opaque",r=t=>e(void 0,void 0,void 0,function*(){if(t.type!==i){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),l={get:(n,...o)=>e(void 0,[n,...o],void 0,function*(n,o={}){var{timeout:i}=o,l=t(o,["timeout"]);if(i)return((t,n,o)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,i=setTimeout(()=>e.abort(),o);try{const o=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return r(o)}finally{clearTimeout(i)}}))(n,l,i);const s=yield fetch(n,l);return r(s)}),post:(t,n,o)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(o),i=yield fetch(t,{method:"POST",headers:n,body:e});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},s="data-ad-video",a="viewable",c="adClick",d=(t,e)=>{const n=(new DOMParser).parseFromString(t,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(e))}else if(i){const t=n.createElement("ClickThrough");t.appendChild(n.createCDATASection(e)),i.appendChild(t)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},u=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),g=t=>e(void 0,void 0,void 0,function*(){var e,n;return(null===(e=null===window||void 0===window?void 0:window.SVP)||void 0===e?void 0:e.Player)?new window.SVP.Player(t):((()=>{const t="svp-player-sdk",e=document.querySelector(t),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(e||n.length>0)return;const o=document.createElement("script");o.id=t,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(t){console.error("Failed to set player.next.min source:",t)}document.head.insertBefore(o,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(t):yield new Promise(e=>{window.addEventListener("onSvpPlayerReady",()=>e(new window.SVP.Player(t)))}))}),h={ContentMutePlugin:t=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const e=this.player.config.get("mute");this.container=t||this.player.getContainer(),this.muted=e,e&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const t=document.createElement("button");t.className="player-plugin-content-mute";const e=document.createElement("span");return e.className="volume-button-icon",t.appendChild(e),t},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(t){this.muted=t.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return e(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return X})})}})}},p=t=>e(void 0,[t],void 0,function*({playerConfig:t,pluginsNames:e,clickUrl:n}){const o=yield g(t);((t,e)=>{null==t||t.forEach(t=>{h[t](e)})})(e),o.once("assetReady",()=>{((t,e)=>{null==e||e.forEach(e=>{const n=window.SVP.Player.Plugins.get(e);t.addPlugin(new n)})})(o,e)}),o.on(a,t=>{const{viewable:e}=t;e?o.play():o.pause()}),n&&o.on(c,()=>{window.open(n,"_blank")}),t.repeat&&o.on("pause",()=>{o.play()})}),v={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},f=({container:t,native:e,type:n,publisher:o})=>{const i=t.querySelector(`[${s}]`),{video:r,image:l,clickUrl:a=""}=e;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:c,videoLoop:g}=(t=>{var e;return null!==(e=v[t.toLowerCase()])&&void 0!==e?e:v.default})(n),h=Math.ceil(1e5*Math.random()),f=`ad-player-${h}`;i.id=f;const y=(({id:t,nodeId:e,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:l=!1})=>({id:t,poster:n,vendor:"appnexus",node:e,mute:!0,autoplay:l,repeat:l,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:t=>Object.assign(Object.assign({},u(t)?t:{}),{provider:Object.assign(Object.assign({},u(null==t?void 0:t.provider)?t.provider:{}),{productTag:r})})}}))({id:h,nodeId:f,poster:(null==l?void 0:l.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:d(r.content,a),publisher:o,videoLoop:g});p({playerConfig:y,clickUrl:a,pluginsNames:c})};function y(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var b,m;var w=y(function(){if(m)return b;m=1;var t=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function o(t,e,o){return t.concat(e).map(function(t){return n(t,o)})}function i(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}(t))}function r(t,e){try{return e in t}catch(t){return!1}}function l(t,e,o){var l={};return o.isMergeableObject(t)&&i(t).forEach(function(e){l[e]=n(t[e],o)}),i(e).forEach(function(i){(function(t,e){return r(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(r(t,i)&&o.isMergeableObject(e[i])?l[i]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(i,o)(t[i],e[i],o):l[i]=n(e[i],o))}),l}function s(e,i,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||t,r.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(e)?s?r.arrayMerge(e,i,r):l(e,i,r):n(i,r)}return s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return s(t,n,e)},{})},b=s}());const j={arrayMerge:(t,e)=>e,isMergeableObject:t=>"object"==typeof t&&null!==t&&t.constructor===Object},C=(t,e)=>w(t,e,j),O=(t,e)=>Object.assign(Object.assign({},t),e),S=(t,e)=>{var n;return C(null!==(n=t)&&void 0!==n?n:{},e)},E=(e,n)=>{const{adjustmentOverrides:o}=e,i=t(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},i),n.overrides&&{adjustmentOverrides:C({},n.overrides)})},P="desktop",k="mobile",x="container",M="text",T="image",L="cogwheel",A="video",$=t=>{if(t)return t===o?k:P},_=(t,e,n)=>{var o,i,r,l,s,a,c,d,u,g,h,p,v;const f=e?null===(o=t.overrides)||void 0===o?void 0:o[e]:void 0,y=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[t.id],b=e?null===(r=null==n?void 0:n[e])||void 0===r?void 0:r[t.id]:void 0;if(null!==(a=null!==(s=null!==(l=null==b?void 0:b.hidden)&&void 0!==l?l:null==y?void 0:y.hidden)&&void 0!==s?s:null==f?void 0:f.hidden)&&void 0!==a?a:t.hidden)return null;const m=Object.assign(Object.assign(Object.assign(Object.assign({},t.styles),null==f?void 0:f.styles),null==y?void 0:y.styles),null==b?void 0:b.styles),w=null!==(u=null!==(d=null!==(c=null==b?void 0:b.tag)&&void 0!==c?c:null==y?void 0:y.tag)&&void 0!==d?d:null==f?void 0:f.tag)&&void 0!==u?u:t.tag,j=null!==(p=null!==(h=null!==(g=null==b?void 0:b.text)&&void 0!==g?g:null==y?void 0:y.text)&&void 0!==h?h:null==f?void 0:f.text)&&void 0!==p?p:t.text,C=null===(v=t.children)||void 0===v?void 0:v.map(t=>_(t,e,n)).filter(t=>null!==t),O={id:t.id,tag:w,type:t.type,name:t.name,styles:m,connections:t.connections};return void 0!==j&&(O.text=j),void 0!==C&&(O.children=C),O},I=t=>Object.entries(t).map(([t,e])=>`${(t=>t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))(t)}:${(t=>String(t).replace(/"/g,"""))(e)}`).join(";"),N=(t,e)=>{const n=t[e];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class R{constructor(t,e=!1){this.tag=t,this.voidElement=e,this.attributes=new Map,this.content=""}attr(t,e){return e&&this.attributes.set(t,e),this}children(t){return this.content=t,this}build(){const t=[...this.attributes].map(([t,e])=>` ${t}="${e}"`).join("");return this.voidElement?`<${this.tag}${t}>`:`<${this.tag}${t}>${this.content}</${this.tag}>`}}const U=(t,e,n="")=>{var o;return(null===(o=t.connections)||void 0===o?void 0:o.length)?((t,e)=>{const n=[];for(const{properties:o}of t)for(const t of o){const o=N(e,t);o&&n.push(o)}return n.join(" ")})(t.connections,e):n},V=(t,e,n,o)=>{var i;const{tag:r,styles:l}=t,s=(null!==(i=t.children)&&void 0!==i?i:[]).map(t=>B(t,e,n,!1)).join(""),a=new R(r);return o(a),a.attr("href","a"===r?U(t,e):"").attr("style",I(l)).children(s).build()},q={[x]:(t,e,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return V(t,e,n,e=>{o&&e.attr("class",`advertory-${r}-ad-native-${t.name.toLowerCase()}`)})},[L]:(t,e,n)=>V(t,e,n,t=>{n.containerId&&t.attr("id",`${n.containerId}-button`)}),[M]:(t,e)=>{var n;return new R(t.tag).attr("style",I(t.styles)).children(U(t,e,null!==(n=t.text)&&void 0!==n?n:"")).build()},[T]:(t,e)=>new R("img",!0).attr("style",I(t.styles)).attr("src",U(t,e)).build(),[A]:(t,e)=>"video"===t.tag&&U(t,e)?new R("div").attr(s,"true").attr("style",I(t.styles)).build():""},B=(t,e,n,o=!0)=>{const i=q[t.type];return i?i(t,e,n,o):""},F=({config:t,nativeData:e,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const l=o?E(t,o):t,s=_(l.root,n,l.adjustmentOverrides);return s?B(s,e,{breakpoint:n,publisher:i,containerId:r}):null},D=t=>(e,{publisher:n,containerId:o,deviceType:i})=>F({config:t,nativeData:e,breakpoint:$(i),publisher:n,containerId:o}),J={placements:(t,e)=>e,takeover:S,refreshConfig:O,editory:S,appearanceConfig:S,pageContext:O,pageOptions:O,pageSectionsSelectors:O,tcf:O},W=t=>{const{siteSpecificConfig:e,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=t;if(!(null==e?void 0:e.publisherClassName)||!o)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${e.publisherClassName}/${o.toLowerCase()}.json`};const z=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const t=new Map;return{get:e=>t.get(e),set:(e,n)=>{t.set(e,n)},delete:e=>{t.delete(e)}}})()}shouldFetchEditableConfig(t){const{editory:{editableConfiguration:{enabled:e=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=t;return Boolean(e&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(t){return this.localSiteConfig=Object.assign({},t),this.localSiteConfig}fetchEditableConfig(t){return e(this,void 0,void 0,function*(){const o=W(t);if(!o)return null;let i=this.cacher.get(o);return i||(i=(t=>e(void 0,void 0,void 0,function*(){const e=W(t);if(!e)return null;try{return yield l.get(e,{timeout:5e3})}catch(t){throw n("Failed to fetch S3 config",{error:t,url:e}),t}}))(t).catch(t=>{throw this.cacher.delete(o),t}),this.cacher.set(o,i)),i})}resolveRemoteConfig(e,n){var o,i,r;const l=((e,n)=>{const{sections:o}=e,i=t(e,["sections"]),r=n?null==o?void 0:o[n]:void 0;return r?C(i,r):i})(n,null!==(r=null===(i=null===(o=e.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.section)&&void 0!==r?r:(()=>{const[t]=window.location.pathname.split("/").filter(Boolean);return t})());return((t,e)=>C(e,t))(e,l)}getConfig(t){return e(this,void 0,void 0,function*(){const e=this.captureLocalSiteConfig(t);if(!this.shouldFetchEditableConfig(e))return e;try{const t=yield this.fetchEditableConfig(e);return t?this.resolveRemoteConfig(e,t):e}catch(t){return n("Error fetching S3 config, using site config",{error:t}),e}})}resolveUpdatedConfig(t){return e(this,void 0,void 0,function*(){var e,o,i,r;if(!this.localSiteConfig)return;if(((t,e)=>{const n=t;for(const t of Object.keys(J)){const o=e[t];void 0!==o&&(n[t]=J[t](n[t],o))}})(this.localSiteConfig,null!=t?t:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const l=null===(o=null===(e=this.localSiteConfig.editory)||void 0===e?void 0:e.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch,s=++this.requestToken;try{const t=yield this.fetchEditableConfig(this.localSiteConfig);if(s!==this.requestToken||(null===(r=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===r?void 0:r.pageTypeToFetch)!==l)return;if(!t)return;return this.resolveRemoteConfig(this.localSiteConfig,t)}catch(t){return void n("Error fetching updated S3 config, keeping current config",{error:t})}})}},G=z.getConfig.bind(z);z.resolveUpdatedConfig.bind(z);const H=function(t){if("undefined"==typeof window)return;const e=document.createElement("style");return e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e),t}("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var X=Object.freeze({__proto__:null,default:H});export{D as createTemplateFromConfig,$ as detectBreakpoint,G as getConfig,E as mergeAdjustment,f as mountVideoPlayer,F as renderAdNativeHtml};
|