@schibsted/advertory 3.7.7 → 3.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ad-native/cjs/index.d.ts +22 -6
- package/ad-native/es/index.d.ts +22 -6
- package/aftenposten/cjs/index.d.ts +22 -6
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/{_auto-entry_aftenposten-CEcPIwTm.js → _auto-entry_aftenposten-DCpWpn4A.js} +1 -1
- package/aftenposten/es/{events-DJ2cMRQL.js → events-BI3dnyQ4.js} +1 -1
- package/aftenposten/es/{index-CZ9KVjL7.js → index-BLoNu3l3.js} +1 -1
- package/aftenposten/es/{index-q9Ig52fY.js → index-BxCRZaDS.js} +1 -1
- package/aftenposten/es/{index-BRnxTxgb.js → index-Bxg4J8el.js} +1 -1
- package/aftenposten/es/{index-DVWcz3A1.js → index-CKCaOcfa.js} +1 -1
- package/aftenposten/es/{index-br4xezMt.js → index-CrlYnppl.js} +1 -1
- package/aftenposten/es/{index-Cs4fZ_Bt.js → index-D5eU8wpY.js} +1 -1
- package/aftenposten/es/{index-i1TIIRV9.js → index-gJztntdy.js} +1 -1
- package/aftenposten/es/{index-DIY3JhfZ.js → index-wUkFh-T_.js} +1 -1
- package/aftenposten/es/index-ydVIY3j9.js +1 -0
- package/aftenposten/es/index.d.ts +22 -6
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-BCDs0OJ_.js → styles-B8ONZW87.js} +1 -1
- package/aftenposten/es/{styles-tTvUMTsx.js → styles-C0YyvPPD.js} +1 -1
- package/aftenposten/es/{styles-CFwWiK8N.js → styles-CJhteSFd.js} +1 -1
- package/aftenposten/es/{styles-COc-RTFP.js → styles-CQOLetcG.js} +1 -1
- package/aftenposten/es/{styles-DOIHP_Ka.js → styles-CR1P0f6T.js} +1 -1
- package/aftenposten/es/{styles-BHK4uNBI.js → styles-DtDy5Bkp.js} +1 -1
- package/aftenposten/es/{styles-CzHHSLCQ.js → styles-Dv4QrC7p.js} +1 -1
- package/aftenposten/es/{styles-DPmi1VZQ.js → styles-H11mKveo.js} +1 -1
- package/aftenposten/es/{styles-CNp3vP5v.js → styles-orkZ4DcE.js} +1 -1
- package/aftenposten/es/{styles-CAMwxDHJ.js → styles-yh7iSGxI.js} +1 -1
- package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-DSoGXQPa.js → _auto-entry_aftenpostenv2-jYhWgwlK.js} +1 -1
- package/aftenpostenv2/es/{events-W44UtCNk.js → events-CJ-RzFkE.js} +1 -1
- package/aftenpostenv2/es/{index--4p9oV9G.js → index-BYYoGV-u.js} +1 -1
- package/aftenpostenv2/es/{index-CJs8S3ej.js → index-C3DvAOl8.js} +1 -1
- package/aftenpostenv2/es/{index-CLWRFxij.js → index-CApCMr0r.js} +1 -1
- package/aftenpostenv2/es/{index-DmpZRI34.js → index-CDtm5pTZ.js} +1 -1
- package/aftenpostenv2/es/index-CGqAwLYR.js +1 -0
- package/aftenpostenv2/es/{index-D8ArZps4.js → index-CkRKrx6C.js} +1 -1
- package/aftenpostenv2/es/{index-CrGJJa1j.js → index-D8kqOMGn.js} +1 -1
- package/aftenpostenv2/es/{index-BOQqHK4B.js → index-DhfVXunS.js} +1 -1
- package/aftenpostenv2/es/{index-fj54zofo.js → index-GQoLmM6b.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +22 -6
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-CElGrI3e.js → styles-B6_4fEcF.js} +1 -1
- package/aftenpostenv2/es/{styles-B_60BcJS.js → styles-BFl05vFx.js} +1 -1
- package/aftenpostenv2/es/{styles-pJcsZSfc.js → styles-BbPUFKMs.js} +1 -1
- package/aftenpostenv2/es/{styles-BaRNlyYS.js → styles-Bd4jKlIf.js} +1 -1
- package/aftenpostenv2/es/{styles-BUZtuQGY.js → styles-BrqmWLlW.js} +1 -1
- package/aftenpostenv2/es/{styles-Dvpc3bvE.js → styles-DDlEShxM.js} +1 -1
- package/aftenpostenv2/es/{styles-CYGshrdv.js → styles-DFY-jtxH.js} +1 -1
- package/aftenpostenv2/es/{styles-SWwOLMZf.js → styles-DOF_1cWs.js} +1 -1
- package/aftenpostenv2/es/{styles-Dsaq3EoP.js → styles-axxN97D6.js} +1 -1
- package/aftenpostenv2/es/{styles-DULETtui.js → styles-nia4qrtv.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +22 -6
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/{_auto-entry_aftonbladet-D6L7ay8O.js → _auto-entry_aftonbladet-DvA_tmE7.js} +1 -1
- package/aftonbladet/es/{events-Dab9GSYR.js → events-CK8o2Zz2.js} +1 -1
- package/aftonbladet/es/{index-BuKnlix9.js → index-CPz8fB5O.js} +1 -1
- package/aftonbladet/es/{index-BfUdKoIs.js → index-CZI1caXL.js} +1 -1
- package/aftonbladet/es/{index-BZeyNOpK.js → index-CnGM0Lrv.js} +1 -1
- package/aftonbladet/es/{index-DP92WB39.js → index-CpCBt9zK.js} +1 -1
- package/aftonbladet/es/{index-IM0ArgjB.js → index-DdxkMkdz.js} +1 -1
- package/aftonbladet/es/{index-BQ8G1sfn.js → index-DpHCsccH.js} +1 -1
- package/aftonbladet/es/index-Dw86FGos.js +1 -0
- package/aftonbladet/es/{index-CCNVpe2O.js → index-Dxb_X5l4.js} +1 -1
- package/aftonbladet/es/{index-rc1ythZy.js → index-OGdg4wBR.js} +1 -1
- package/aftonbladet/es/index.d.ts +22 -6
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-DS3IgBMA.js → styles-BquITHh0.js} +1 -1
- package/aftonbladet/es/{styles-DVML8fAi.js → styles-D-9a1N9Q.js} +1 -1
- package/aftonbladet/es/{styles-CRSuvwag.js → styles-DGuuz2Nf.js} +1 -1
- package/aftonbladet/es/{styles-C14LmsDg.js → styles-DQCTZ1a8.js} +1 -1
- package/aftonbladet/es/{styles-1-gYAYiw.js → styles-DRtct-WN.js} +1 -1
- package/aftonbladet/es/{styles-t63ch1H1.js → styles-u-z6zImV.js} +1 -1
- package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-MEFOWTtW.js → _auto-entry_aftonbladetv2-DVhvbmyk.js} +1 -1
- package/aftonbladetv2/es/{events-YOBVVwAA.js → events-hmJjZQIJ.js} +1 -1
- package/aftonbladetv2/es/{index-C8yQMHjL.js → index-BYAdPe0R.js} +1 -1
- package/aftonbladetv2/es/{index-CfqBIMey.js → index-BsPqlQxG.js} +1 -1
- package/aftonbladetv2/es/{index-revF7DeH.js → index-D23YoIL-.js} +1 -1
- package/aftonbladetv2/es/{index-C6crc_Mu.js → index-DKXD0Ss2.js} +1 -1
- package/aftonbladetv2/es/{index-Bwp9Z0a2.js → index-DTB_D0Pb.js} +1 -1
- package/aftonbladetv2/es/{index-Bpy8rg3y.js → index-DoQC6AXf.js} +1 -1
- package/aftonbladetv2/es/{index-B82BJTMZ.js → index-Dwftn0b7.js} +1 -1
- package/aftonbladetv2/es/index-E7JN4-T3.js +1 -0
- package/aftonbladetv2/es/{index-3Lq-v_EP.js → index-YFP46re9.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +22 -6
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-DDnNA4D7.js → styles-B_8rK9r6.js} +1 -1
- package/aftonbladetv2/es/{styles-aaFKq8qZ.js → styles-Bgjp4dw1.js} +1 -1
- package/aftonbladetv2/es/{styles-D5yDzYyX.js → styles-CUFqrCfj.js} +1 -1
- package/aftonbladetv2/es/{styles-BS3oifGv.js → styles-DZLMWc8u.js} +1 -1
- package/aftonbladetv2/es/{styles-r4Ea3rEC.js → styles-NxHRgY5B.js} +1 -1
- package/aftonbladetv2/es/{styles-C17xdjxU.js → styles-jBakIxQb.js} +1 -1
- package/bt/cjs/index.d.ts +22 -6
- package/bt/cjs/index.js +1 -1
- package/bt/es/{_auto-entry_bt-ExXBtmm0.js → _auto-entry_bt-WEAxbAdw.js} +1 -1
- package/bt/es/{events-CBrjKssW.js → events-5j7fyBen.js} +1 -1
- package/bt/es/{index-DxeCJj7-.js → index-2W2cMlWx.js} +1 -1
- package/bt/es/{index-odTg4xY9.js → index-B1_Jpifp.js} +1 -1
- package/bt/es/{index-Bf3iyU9L.js → index-BFJjThOa.js} +1 -1
- package/{sa/es/index-BW2Fyw3y.js → bt/es/index-Cb1o8KCn.js} +1 -1
- package/bt/es/{index-6Wwa8p2U.js → index-Cl7GRuPD.js} +1 -1
- package/bt/es/{index-C4-x7BoI.js → index-CpGTU_Xe.js} +1 -1
- package/{sa/es/index-Bz5HBGB0.js → bt/es/index-DnALpMpM.js} +1 -1
- package/bt/es/{index-DKeyaRG7.js → index-lfZAlwNN.js} +1 -1
- package/bt/es/index-mb7zXUWH.js +1 -0
- package/bt/es/index.d.ts +22 -6
- package/bt/es/index.js +1 -1
- package/{sa/es/styles-BJxq6InM.js → bt/es/styles-0vEWzWbL.js} +1 -1
- package/bt/es/{styles-D0hum_wt.js → styles-BlTp2IzC.js} +1 -1
- package/{sa/es/styles-BgcLafr1.js → bt/es/styles-BtpzFriZ.js} +1 -1
- package/bt/es/{styles-CwENgWV3.js → styles-C-tmQpXq.js} +1 -1
- package/{sa/es/styles-T8KahDvf.js → bt/es/styles-D3Man4YZ.js} +1 -1
- package/bt/es/{styles-B4xlJUPp.js → styles-DOQgA5_a.js} +1 -1
- package/bt/es/{styles-zYYpe9VS.js → styles-LkeWBxTN.js} +1 -1
- package/bt/es/{styles-B4C2cuIZ.js → styles-eKXHOR9p.js} +1 -1
- package/bt/es/{styles-DHK4L_X9.js → styles-k2dI3M9-.js} +1 -1
- package/btv2/es/{_auto-entry_btv2-DUHpoN7z.js → _auto-entry_btv2-qoAGkfYI.js} +1 -1
- package/{tvnu/es/events-BVXkcLA7.js → btv2/es/events-2TDAFPkY.js} +1 -1
- package/btv2/es/{index-CdW5_euW.js → index-BNPjorV2.js} +1 -1
- package/btv2/es/{index-DyZYFZQl.js → index-BTnBlDt4.js} +1 -1
- package/btv2/es/index-C65Oq6Ol.js +1 -0
- package/btv2/es/{index-DtAHR_6W.js → index-DbQGVEH8.js} +1 -1
- package/{tvnu/es/index-BUAo-FRD.js → btv2/es/index-Dhvk7fZ8.js} +1 -1
- package/btv2/es/{index-fplqGMxK.js → index-DzgOGTT_.js} +1 -1
- package/btv2/es/{index-BdIVkNtR.js → index-MZsCzsoA.js} +1 -1
- package/{tvnu/es/index-BrcUGMt2.js → btv2/es/index-N0kS2R23.js} +1 -1
- package/btv2/es/{index-B1bE11Ka.js → index-qMlg6Vo1.js} +1 -1
- package/btv2/es/index.d.ts +22 -6
- package/btv2/es/index.js +1 -1
- package/{vgv2/es/styles-p6mUvqSn.js → btv2/es/styles-B65E74BD.js} +1 -1
- package/btv2/es/{styles-DUdMOxgC.js → styles-B7TASC1i.js} +1 -1
- package/{sav2/es/styles-BY59pYhc.js → btv2/es/styles-BOSGFRmX.js} +1 -1
- package/btv2/es/{styles-G4ZPbn5y.js → styles-CLxGiKUD.js} +1 -1
- package/{sav2/es/styles-BrFQkIC7.js → btv2/es/styles-DnA_s016.js} +1 -1
- package/btv2/es/{styles-Cafufibd.js → styles-aANlkYN9.js} +1 -1
- package/{sav2/es/styles-Ctv7pyRo.js → btv2/es/styles-cIz8m9NM.js} +1 -1
- package/{tvnu/es/styles-DITadLLq.js → btv2/es/styles-t1F7Yfcg.js} +1 -1
- package/dr-edition/cjs/index.d.ts +22 -5
- package/dr-edition/es/index.d.ts +22 -5
- package/e24/es/{_auto-entry_e24-CNb3tDGA.js → _auto-entry_e24-BSh5G4p_.js} +1 -1
- package/e24/es/{events-Dg9gbjIV.js → events-DXz92fVu.js} +1 -1
- package/e24/es/{index-BkKkoX8a.js → index-BUojkT_o.js} +1 -1
- package/e24/es/{index-CS3izDYH.js → index-BXS--SOZ.js} +1 -1
- package/e24/es/{index-CcyDWY4D.js → index-Bkx65HcJ.js} +1 -1
- package/e24/es/{index-DW-kJo1X.js → index-ChoY0PTt.js} +1 -1
- package/{tv4/es/index-Bn8pNRzw.js → e24/es/index-CuHVsS0u.js} +1 -1
- package/e24/es/index-DPr2YdK2.js +1 -0
- package/e24/es/{index-C7QV8Nzc.js → index-Dta3bXpR.js} +1 -1
- package/e24/es/{index-BIdiJMGh.js → index-Dv2hHiuJ.js} +1 -1
- package/e24/es/{index-xPMFIU3x.js → index-VNe3Joao.js} +1 -1
- package/e24/es/index.d.ts +22 -6
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-GbVldIa_.js → styles--ebId0VM.js} +1 -1
- package/e24/es/{styles-8V02K2Fu.js → styles-BHmZzfPi.js} +1 -1
- package/e24/es/{styles-BK8-SHUJ.js → styles-BihBtduz.js} +1 -1
- package/{tv4/es/styles-DmGkNa6T.js → e24/es/styles-BntjjAno.js} +1 -1
- package/e24/es/{styles-ChdT8emq.js → styles-C21aBJ2B.js} +1 -1
- package/e24/es/{styles-CCt-wjBh.js → styles-CmiLDgry.js} +1 -1
- package/e24/es/{styles-ByawQVhX.js → styles-D3q9ZD9B.js} +1 -1
- package/e24/es/{styles-O9cU2j2q.js → styles-DHzza1GG.js} +1 -1
- package/e24/es/{styles-Ds2E_HLd.js → styles-DnnibWeh.js} +1 -1
- package/e24/es/{styles-Bw-EiOSq.js → styles-Dz3YB5po.js} +1 -1
- package/e24/es/{styles-nPrDMcYa.js → styles-ZZtTASWf.js} +1 -1
- package/editory/cjs/index.d.ts +22 -6
- package/editory/es/index.d.ts +22 -6
- package/fotbollskanalen/cjs/index.d.ts +22 -6
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-uj99VSID.js → _auto-entry_fotbollskanalen-CmdP9eom.js} +1 -1
- package/fotbollskanalen/es/{events-B91o0fIJ.js → events-BY3Un4gd.js} +1 -1
- package/fotbollskanalen/es/{index-6yCZUw9_.js → index-BkkBmFTg.js} +1 -1
- package/fotbollskanalen/es/{index-Cy4IX2En.js → index-CK3mAsF9.js} +1 -1
- package/fotbollskanalen/es/{index-BRbsZx41.js → index-ChIHNCFG.js} +1 -1
- package/fotbollskanalen/es/{index-Bd6bOGp_.js → index-DAYZDhiV.js} +1 -1
- package/fotbollskanalen/es/{index-mxi4TXjV.js → index-DihD_SVG.js} +1 -1
- package/fotbollskanalen/es/index-DwLDCN-F.js +1 -0
- package/fotbollskanalen/es/{index-BpvrwUzV.js → index-SSSYMWxK.js} +1 -1
- package/fotbollskanalen/es/{index-DPA1AIHZ.js → index-_FJ0B52G.js} +1 -1
- package/fotbollskanalen/es/{index-BHg3WOgJ.js → index-uZubIJhQ.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +22 -6
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-BIU1NwJu.js → styles-C9YIehyX.js} +1 -1
- package/fotbollskanalen/es/{styles-RaIa9wWN.js → styles-CXvNhsfS.js} +1 -1
- package/fotbollskanalen/es/{styles-DrTviN6K.js → styles-DkjgM4ah.js} +1 -1
- package/godt/cjs/index.d.ts +22 -6
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +22 -5
- package/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.d.ts +22 -5
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.d.ts +22 -6
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +22 -6
- package/koket/cjs/index.js +1 -1
- package/koket/es/{_auto-entry_koket-Diszy22H.js → _auto-entry_koket-D0_Torfm.js} +1 -1
- package/koket/es/{events-DvN-j8TI.js → events-Bt8pStDL.js} +1 -1
- package/koket/es/{index-CKx5mUJS.js → index-Bq-5MBQw.js} +1 -1
- package/{svdv2/es/index-Iv2kXQne.js → koket/es/index-BtOxYqsU.js} +1 -1
- package/koket/es/index-CE2hliTp.js +1 -0
- package/koket/es/{index-D0HklTs5.js → index-CKsopPyk.js} +1 -1
- package/koket/es/{index-zjpGf_ew.js → index-CXKQzLDY.js} +1 -1
- package/{svdv2/es/index-DV0tBabP.js → koket/es/index-Cr2Nj-1e.js} +1 -1
- package/koket/es/{index-xoUOjnef.js → index-DdJIvi_Y.js} +1 -1
- package/koket/es/{index-15U925hj.js → index-DxjZelEJ.js} +1 -1
- package/koket/es/{index-d-kGk2pa.js → index-eWw3_Qyx.js} +1 -1
- package/koket/es/index.d.ts +22 -6
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-RqYL69df.js → styles-CeshHLgO.js} +1 -1
- package/{svdv2/es/styles-Bt4uSIKS.js → koket/es/styles-D_hak8-G.js} +1 -1
- package/koket/es/{styles-5V_9dkl-.js → styles-DhkkHIaH.js} +1 -1
- package/minmote/cjs/index.d.ts +22 -6
- package/minmote/cjs/index.js +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +22 -6
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +22 -6
- package/sa/cjs/index.js +1 -1
- package/sa/es/{_auto-entry_sa-D1DwkNrG.js → _auto-entry_sa-lBYJhoQB.js} +1 -1
- package/sa/es/{events-adHGPOwZ.js → events-Du1W4dL3.js} +1 -1
- package/{bt/es/index-Dshm4r4t.js → sa/es/index-BBnlhxII.js} +1 -1
- package/sa/es/{index-Cq0BinXg.js → index-BBycD0UP.js} +1 -1
- package/sa/es/index-BQOTR7f1.js +1 -0
- package/sa/es/{index-DBnKNxn3.js → index-B_RswJDm.js} +1 -1
- package/{bt/es/index-QW2-L9Y4.js → sa/es/index-CdYs0zTL.js} +1 -1
- package/sa/es/{index-Ca3BFeSy.js → index-D5R5LYAE.js} +1 -1
- package/sa/es/{index-CjgG40h6.js → index-DLSSj7uw.js} +1 -1
- package/{vg/es/index-DZ470Utw.js → sa/es/index-DR2OP1tz.js} +1 -1
- package/sa/es/{index-DxzUk1hr.js → index-DzHcaxg2.js} +1 -1
- package/sa/es/index.d.ts +22 -6
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-B-MubLas.js → styles-0oUtBps7.js} +1 -1
- package/sa/es/{styles-Dl9-87ai.js → styles-BRlGIMu8.js} +1 -1
- package/{vg/es/styles-YPv5Ziga.js → sa/es/styles-BgZM1f3X.js} +1 -1
- package/{bt/es/styles-BAZJWRTz.js → sa/es/styles-BkSkCVwO.js} +1 -1
- package/sa/es/{styles-BO1pM5XX.js → styles-CSj8KFC1.js} +1 -1
- package/sa/es/{styles-BsOYGsN6.js → styles-DPuCos_G.js} +1 -1
- package/{bt/es/styles-DLeXST02.js → sa/es/styles-DQ0KrVI3.js} +1 -1
- package/sa/es/{styles-DCrwvc7q.js → styles-DzGT-Xb1.js} +1 -1
- package/{vg/es/styles-CJZCCbpO.js → sa/es/styles-v6DMKUDy.js} +1 -1
- package/sav2/es/{_auto-entry_sav2-BGzHqAZR.js → _auto-entry_sav2-CMUm6YBO.js} +1 -1
- package/sav2/es/{events-JdmWKmvF.js → events-BKdrsvO2.js} +1 -1
- package/sav2/es/{index-B3d3KFkI.js → index-C5ubIUxF.js} +1 -1
- package/{btv2/es/index-C0LcEqob.js → sav2/es/index-ClLpYqvM.js} +1 -1
- package/sav2/es/{index-ChlvEhUI.js → index-CtBG2L8l.js} +1 -1
- package/sav2/es/{index-BqXLqqD9.js → index-DDrMJ4gl.js} +1 -1
- package/sav2/es/index-Dx7FLRM0.js +1 -0
- package/sav2/es/{index-D6EYBzv8.js → index-LLJ0UHcq.js} +1 -1
- package/sav2/es/{index-DfKfWvhf.js → index-MnJHkQYZ.js} +1 -1
- package/sav2/es/{index-Dn1C0tqN.js → index-W9VkW2PM.js} +1 -1
- package/{btv2/es/index-DewbIKK_.js → sav2/es/index-pnwPlI-V.js} +1 -1
- package/sav2/es/index.d.ts +22 -6
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-FRuIYRLx.js → sav2/es/styles-9E8WYe60.js} +1 -1
- package/sav2/es/{styles-BEN0pfie.js → styles-BDqtpgva.js} +1 -1
- package/sav2/es/{styles-C8CjnbEU.js → styles-BToUBsZg.js} +1 -1
- package/{vgv2/es/styles-nnEgvHJJ.js → sav2/es/styles-BcqxAhzy.js} +1 -1
- package/sav2/es/{styles-BcwHZXle.js → styles-C1RR5nyS.js} +1 -1
- package/sav2/es/{styles-BvxLRC9I.js → styles-DgsTQOT0.js} +1 -1
- package/{vgv2/es/styles-D_G0dsco.js → sav2/es/styles-DsGdV_r4.js} +1 -1
- package/{btv2/es/styles-C6XldCYb.js → sav2/es/styles-vj6GUjm9.js} +1 -1
- package/svd/cjs/index.d.ts +22 -6
- package/svd/cjs/index.js +1 -1
- package/svd/es/{_auto-entry_svd-DcHXSYVC.js → _auto-entry_svd-DlKX1b_j.js} +1 -1
- package/svd/es/{events-CVxiUrE6.js → events-B36DLBbA.js} +1 -1
- package/svd/es/{index-Bk-R_Qjb.js → index-1JONs2bT.js} +1 -1
- package/svd/es/{index-DEFdrtYE.js → index-CRaLioSU.js} +1 -1
- package/svd/es/{index-CofmstYy.js → index-D76XMVh8.js} +1 -1
- package/{e24/es/index-DpEJEZjS.js → svd/es/index-DaK6aQRX.js} +1 -1
- package/svd/es/{index-C4emwuMw.js → index-DhFmtxeA.js} +1 -1
- package/svd/es/{index-CTEHa8X0.js → index-DmQBfy15.js} +1 -1
- package/svd/es/{index-DL3T9UQB.js → index-Fk9hB1ZU.js} +1 -1
- package/svd/es/index-LLvdNFkc.js +1 -0
- package/svd/es/{index-DXZzcOQy.js → index-ex9_QIAm.js} +1 -1
- package/svd/es/index.d.ts +22 -6
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-CvryqZ3J.js → styles-BlgE6aRf.js} +1 -1
- package/svd/es/{styles-DlvAMNrV.js → styles-C0OJgbEs.js} +1 -1
- package/svd/es/{styles-B5MR-Jrn.js → styles-CkxaDIbY.js} +1 -1
- package/svd/es/{styles-pM3OS52f.js → styles-CnqpyXku.js} +1 -1
- package/{tv4/es/styles-wo42y6pi.js → svd/es/styles-DmdMT0ue.js} +1 -1
- package/svd/es/{styles-B87OplO3.js → styles-_4GtWgWI.js} +1 -1
- package/svdv2/es/{_auto-entry_svdv2-BBExl32y.js → _auto-entry_svdv2-DUOVfyFU.js} +1 -1
- package/svdv2/es/{events-BN3KXR0H.js → events-UhrCxfgw.js} +1 -1
- package/svdv2/es/{index-DEL62A9T.js → index-Bv1GwLw3.js} +1 -1
- package/svdv2/es/{index-RRHNBeCA.js → index-CHcmaY63.js} +1 -1
- package/svdv2/es/{index-Cm6UkrHE.js → index-CRwLzN-j.js} +1 -1
- package/svdv2/es/index-CZ3PjKkS.js +1 -0
- package/svdv2/es/{index-4yKE0QE3.js → index-Cdqmj05a.js} +1 -1
- package/svdv2/es/{index-ByKAdpVI.js → index-Cgv9oCnU.js} +1 -1
- package/{koket/es/index-CPcSA4Oh.js → svdv2/es/index-DehAgfKj.js} +1 -1
- package/{koket/es/index-BR_WDUyn.js → svdv2/es/index-WpL07-Zk.js} +1 -1
- package/svdv2/es/{index-DSn6BFMR.js → index-X6lAnNTw.js} +1 -1
- package/svdv2/es/index.d.ts +22 -6
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-B0B2JPNO.js → styles-3ftIPQO1.js} +1 -1
- package/{koket/es/styles-DsICuZo2.js → svdv2/es/styles-BVNastEj.js} +1 -1
- package/svdv2/es/{styles-CviB-76f.js → styles-BnqbD5kC.js} +1 -1
- package/svdv2/es/{styles-BJz6Qefa.js → styles-CJoJcQa0.js} +1 -1
- package/svdv2/es/{styles-H6kRZewG.js → styles-CokNI0vP.js} +1 -1
- package/svdv2/es/{styles-C2nK5ZyC.js → styles-Dl-5iUFX.js} +1 -1
- package/tek/cjs/index.d.ts +22 -6
- package/tek/cjs/index.js +1 -1
- package/tracker/cjs/index.d.ts +22 -6
- package/tracker/es/index.d.ts +22 -6
- package/tv4/cjs/index.d.ts +22 -6
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/{_auto-entry_tv4-DEDhpeyn.js → _auto-entry_tv4-B100U2zc.js} +1 -1
- package/tv4/es/{events-BjfGnqD-.js → events-JbZ-E3iU.js} +1 -1
- package/tv4/es/{index-Bs980Z21.js → index-0HN-i77Z.js} +1 -1
- package/tv4/es/{index-D-EqI-8q.js → index-3aBwqIrO.js} +1 -1
- package/tv4/es/index-BBr6nSOX.js +1 -0
- package/{svd/es/index-B8TSpvNR.js → tv4/es/index-BHSN1F0T.js} +1 -1
- package/tv4/es/{index-CuCwFohW.js → index-BIWiJTV9.js} +1 -1
- package/tv4/es/{index-BTtKJqkD.js → index-BgxnM35l.js} +1 -1
- package/tv4/es/{index-Dg2_CbEU.js → index-CRhhXkyj.js} +1 -1
- package/tv4/es/{index-COhB7ez4.js → index-CrpZhGTP.js} +1 -1
- package/tv4/es/{index-Byho-Ket.js → index-x7oz92R0.js} +1 -1
- package/tv4/es/index.d.ts +22 -6
- package/tv4/es/index.js +1 -1
- package/{svd/es/styles-D6CuTF_B.js → tv4/es/styles-BHXTkNaV.js} +1 -1
- package/tv4/es/{styles-BkLh6SH1.js → styles-BanTp1K8.js} +1 -1
- package/{e24/es/styles-BjB7A4Cb.js → tv4/es/styles-CZsCGGAM.js} +1 -1
- package/tvnu/cjs/index.d.ts +22 -6
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/{_auto-entry_tvnu-X0yoxAZG.js → _auto-entry_tvnu-v9eH604f.js} +1 -1
- package/{btv2/es/events-CLCTcNR9.js → tvnu/es/events-BhVW2McP.js} +1 -1
- package/tvnu/es/{index-De3rxxHW.js → index-30mkyD3t.js} +1 -1
- package/tvnu/es/index-BU3jXf5V.js +1 -0
- package/tvnu/es/{index-Bdus-b4F.js → index-BgG0erm-.js} +1 -1
- package/tvnu/es/{index-DAg5qsYl.js → index-Cs99Gz9w.js} +1 -1
- package/{sav2/es/index-DYQjKJBf.js → tvnu/es/index-CsdlpNxa.js} +1 -1
- package/{sav2/es/index-BhHNNriF.js → tvnu/es/index-DChG_oqY.js} +1 -1
- package/tvnu/es/{index-K_BTULiM.js → index-DUU7B4sG.js} +1 -1
- package/tvnu/es/{index-zZB_Q4kQ.js → index-Dj3b5HFe.js} +1 -1
- package/tvnu/es/{index-Yi_2wdz2.js → index-a0O0iWGk.js} +1 -1
- package/tvnu/es/index.d.ts +22 -6
- package/tvnu/es/index.js +1 -1
- package/{btv2/es/styles-DvMoTzTj.js → tvnu/es/styles-CT_SO1QQ.js} +1 -1
- package/tvnu/es/{styles-zwuW8phr.js → styles-DOvgxRCI.js} +1 -1
- package/types/index.d.ts +23 -7
- package/vg/cjs/index.d.ts +22 -6
- package/vg/cjs/index.js +1 -1
- package/vg/es/{_auto-entry_vg-CCfjeDM0.js → _auto-entry_vg-B7H11yJm.js} +1 -1
- package/vg/es/{events-D9S8b72n.js → events-CzjbTJ7m.js} +1 -1
- package/{sa/es/index-vUPR_5hZ.js → vg/es/index-1eBL18h5.js} +1 -1
- package/vg/es/{index-Dax5YgNe.js → index-C0-zmWnz.js} +1 -1
- package/vg/es/index-CZLtXcnd.js +1 -0
- package/vg/es/{index-BSPFyl-t.js → index-CmMCUq4s.js} +1 -1
- package/vg/es/{index-Cl3zaxKy.js → index-CtMfMgn_.js} +1 -1
- package/vg/es/{index-yxTXGqmq.js → index-Cxa2hPwi.js} +1 -1
- package/vg/es/{index-TQsjI46s.js → index-DzVUYPSm.js} +1 -1
- package/vg/es/{index-BEuXsMvf.js → index-N6ILMKae.js} +1 -1
- package/vg/es/{index-D8DkxaJa.js → index-q_s36UPX.js} +1 -1
- package/vg/es/index.d.ts +22 -6
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-h1zbEjX9.js → styles-B43Omt4F.js} +1 -1
- package/vg/es/{styles-BONE1EO7.js → styles-BDhX9efq.js} +1 -1
- package/vg/es/{styles-D3vWIU7E.js → styles-BHRGhGKm.js} +1 -1
- package/vg/es/{styles-0LH7zhgL.js → styles-BXXpJxhp.js} +1 -1
- package/{sa/es/styles-CVv06xYW.js → vg/es/styles-BZGWIqsL.js} +1 -1
- package/vg/es/{styles-BDOZKdYK.js → styles-C1zO3wQD.js} +1 -1
- package/vg/es/{styles-BFoafk8M.js → styles-CCAibZXF.js} +1 -1
- package/vg/es/{styles-XXm55VDj.js → styles-CEQIq8hV.js} +1 -1
- package/vg/es/{styles-CBnqIzdm.js → styles-CJQBPTcj.js} +1 -1
- package/vg/es/{styles-D9Ri3u6k.js → styles-CeZgWt-s.js} +1 -1
- package/vg/es/{styles-CnwRyRGd.js → styles-DHNjcDtP.js} +1 -1
- package/{bt/es/styles-BhPciEVL.js → vg/es/styles-DyXYEsFY.js} +1 -1
- package/vg/es/{styles-DMhQ3CEj.js → styles-UI3Ggi0S.js} +1 -1
- package/vg/es/{styles-DsRUa_Ru.js → styles-l2MLcCH5.js} +1 -1
- package/vg/es/{styles-B2SLqBL-.js → styles-p7Z2bLDJ.js} +1 -1
- package/vgv2/es/{_auto-entry_vgv2-l-MC-xkM.js → _auto-entry_vgv2-1WdDs7Iv.js} +1 -1
- package/vgv2/es/{events-CvkV7RU0.js → events-gpsHVOBt.js} +1 -1
- package/vgv2/es/{index-CHCFhVdA.js → index-2R4J1FrT.js} +1 -1
- package/vgv2/es/{index-JmUq4Tmu.js → index-BAc8Jr0J.js} +1 -1
- package/vgv2/es/{index-CXZVDsbp.js → index-C2y3k_e8.js} +1 -1
- package/vgv2/es/{index-DC6TwCMA.js → index-CYTZtR0w.js} +1 -1
- package/vgv2/es/index-D-npoaeV.js +1 -0
- package/vgv2/es/{index--8QnPm_H.js → index-D0M8F5ib.js} +1 -1
- package/vgv2/es/{index-CvPBrbUk.js → index-D58GAAuI.js} +1 -1
- package/vgv2/es/{index-BaBG9ddp.js → index-gv9pNMuI.js} +1 -1
- package/vgv2/es/{index-BTWUduxN.js → index-xABNV8cW.js} +1 -1
- package/vgv2/es/index.d.ts +22 -6
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-2-Ncr1rJ.js → styles-84CvKC3R.js} +1 -1
- package/{sav2/es/styles-Ci-txKFa.js → vgv2/es/styles-B-NhtmQW.js} +1 -1
- package/vgv2/es/{styles-DgacPf-M.js → styles-B9bxM1Rm.js} +1 -1
- package/vgv2/es/{styles-XAIxjb2w.js → styles-BwM-ZqkV.js} +1 -1
- package/{btv2/es/styles-Bq3kKmII.js → vgv2/es/styles-CMgr6QZy.js} +1 -1
- package/vgv2/es/{styles-DZ2swucI.js → styles-C_uzpraG.js} +1 -1
- package/vgv2/es/{styles-BL7pisza.js → styles-CbK_Ml-9.js} +1 -1
- package/{btv2/es/styles-Cd5zkxHL.js → vgv2/es/styles-CjnnqJIn.js} +1 -1
- package/vgv2/es/{styles-SCnI2RwZ.js → styles-Cxsw55oJ.js} +1 -1
- package/vgv2/es/{styles-DlJXPneM.js → styles-D6DVpvJi.js} +1 -1
- package/vgv2/es/{styles-BE6jXgEN.js → styles-DH9xAjm1.js} +1 -1
- package/vgv2/es/{styles-BAqkCXt0.js → styles-DREZTCXD.js} +1 -1
- package/vgv2/es/{styles-QRH3WJCb.js → styles-DuMQDasn.js} +1 -1
- package/vgv2/es/{styles-CxfvHftX.js → styles-MlMJVuqv.js} +1 -1
- package/vgv2/es/{styles-D8FQjufk.js → styles-duGcOG_m.js} +1 -1
- package/aftenposten/es/index-ezTcz5wP.js +0 -1
- package/aftenpostenv2/es/index-BDvcdhLM.js +0 -1
- package/aftonbladet/es/index-CAo3C6Cf.js +0 -1
- package/aftonbladetv2/es/index-BCWmSkS0.js +0 -1
- package/bt/es/index-CiZT_UTH.js +0 -1
- package/btv2/es/index-f1U4UtjQ.js +0 -1
- package/e24/es/index-D1-eZt8D.js +0 -1
- package/fotbollskanalen/es/index-DWP2Dxv0.js +0 -1
- package/koket/es/index-D7TqUaO4.js +0 -1
- package/sa/es/index-Dxz9D7P0.js +0 -1
- package/sav2/es/index-DalC_TIP.js +0 -1
- package/svd/es/index-B1qfT2RP.js +0 -1
- package/svdv2/es/index-CG2KT-Y7.js +0 -1
- package/tv4/es/index-CvCX2ca8.js +0 -1
- package/tvnu/es/index-BWXlAn78.js +0 -1
- package/vg/es/index-ClZSZjY4.js +0 -1
- package/vgv2/es/index-BHuUMoSD.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,R as t,U as n,V as a,W as r,l as i,X as l,Y as s,h as o,Z as c}from"./_auto-entry_btv2-DUHpoN7z.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",E=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),P=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield P();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
package/e24/es/index-D1-eZt8D.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,X as t,Y as n,Z as a,$ as r,l as i,a0 as l,a1 as s,P as o,a2 as c}from"./_auto-entry_e24-CNb3tDGA.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",P=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),E=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield P(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield E();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,R as t,U as n,V as a,W as r,l as i,X as l,Y as s,h as o,Z as c}from"./_auto-entry_fotbollskanalen-uj99VSID.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",E=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),P=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield P();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,R as t,U as n,V as a,W as r,l as i,X as l,Y as s,h as o,Z as c}from"./_auto-entry_koket-Diszy22H.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",E=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),P=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield P();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
package/sa/es/index-Dxz9D7P0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,R as t,U as n,V as a,W as r,l as i,X as l,Y as s,h as o,Z as c}from"./_auto-entry_sa-D1DwkNrG.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",E=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),P=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield P();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,R as t,U as n,V as a,W as r,l as i,X as l,Y as s,h as o,Z as c}from"./_auto-entry_sav2-BGzHqAZR.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",E=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),P=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield P();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
package/svd/es/index-B1qfT2RP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,U as t,V as n,W as a,X as r,l as i,Y as l,Z as s,h as o,$ as c}from"./_auto-entry_svd-DcHXSYVC.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",E=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),P=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield P();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,R as t,U as n,V as a,W as r,l as i,X as l,Y as s,h as o,Z as c}from"./_auto-entry_svdv2-BBExl32y.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",E=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),P=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield P();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
package/tv4/es/index-CvCX2ca8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,R as t,U as n,V as a,W as r,l as i,X as l,Y as s,h as o,Z as c}from"./_auto-entry_tv4-DEDhpeyn.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",E=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),P=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield P();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,R as t,U as n,V as a,W as r,l as i,X as l,Y as s,h as o,Z as c}from"./_auto-entry_tvnu-X0yoxAZG.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",E=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),P=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield P();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
package/vg/es/index-ClZSZjY4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,X as t,Y as n,Z as a,$ as r,l as i,a0 as l,a1 as s,P as o,a2 as c}from"./_auto-entry_vg-CCfjeDM0.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",P=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),E=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield P(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield E();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,X as t,Y as n,Z as a,$ as r,l as i,a0 as l,a1 as s,P as o,a2 as c}from"./_auto-entry_vgv2-l-MC-xkM.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",P=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),E=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield P(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield E();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const j=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{j as Kilkaya,O as runKilkaya};
|