@schibsted/advertory 3.16.2-inv-1408.2 → 3.16.3

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.
Files changed (467) hide show
  1. package/ad-native/cjs/index.d.ts +0 -6
  2. package/ad-native/cjs/index.js +1 -1
  3. package/ad-native/es/index.d.ts +0 -6
  4. package/ad-native/es/index.js +1 -1
  5. package/aftenposten/cjs/index.d.ts +0 -6
  6. package/aftenposten/cjs/index.js +1 -1
  7. package/aftenposten/es/_auto-entry_aftenposten-BPqisDWb.js +1 -0
  8. package/aftenposten/es/events-BUNoUw-0.js +1 -0
  9. package/aftenposten/es/{index-CC5RKt7Y.js → index-BY3GJfFt.js} +1 -1
  10. package/aftenposten/es/{index-Bg_xb61R.js → index-Bo6p6vYT.js} +1 -1
  11. package/aftenposten/es/index-Cti_f2e-.js +1 -0
  12. package/aftenposten/es/{index-C9caE0v1.js → index-D2gYDtIi.js} +1 -1
  13. package/aftenposten/es/{index-BeYF8XYG.js → index-DDGpfHuq.js} +1 -1
  14. package/aftenposten/es/{index-V8bIJd__.js → index-DsI3COaf.js} +1 -1
  15. package/aftenposten/es/{index-F7WsW-pz.js → index-OKvQ8OQl.js} +1 -1
  16. package/aftenposten/es/{index-BcTsbzEx.js → index-zIDViqT3.js} +1 -1
  17. package/aftenposten/es/index.d.ts +0 -6
  18. package/aftenposten/es/index.js +1 -1
  19. package/aftenposten/es/{styles-CtVLtaf1.js → styles-5qmMipUB.js} +1 -1
  20. package/aftenposten/es/{styles-C-k3m7bP.js → styles-Bn3XxLyI.js} +1 -1
  21. package/aftenposten/es/{styles-Rlufk7pt.js → styles-BwXuh9Sv.js} +1 -1
  22. package/aftenposten/es/{styles-D18PJxH3.js → styles-C4r8Skyn.js} +1 -1
  23. package/aftenposten/es/{styles-DTAlvFdw.js → styles-CrTV4aKn.js} +1 -1
  24. package/aftenposten/es/{styles-CDzTrn8x.js → styles-D7rQEYhZ.js} +1 -1
  25. package/aftenposten/es/{styles-BrOhayKP.js → styles-DAu7w_Hw.js} +1 -1
  26. package/aftenposten/es/{styles-BBKdbdYh.js → styles-DYxyYKw3.js} +1 -1
  27. package/aftenposten/es/{styles-T6LrMVmF.js → styles-_GdqHPYb.js} +1 -1
  28. package/aftenposten/es/{styles-3CmAYh4Z.js → styles-kJvJHBY0.js} +1 -1
  29. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CQhvy3T0.js +1 -0
  30. package/aftenpostenv2/es/events-DPUJ8woa.js +1 -0
  31. package/aftenpostenv2/es/{index-Cg2svT9B.js → index-BNqMP95C.js} +1 -1
  32. package/aftenpostenv2/es/{index-DQVqjDYi.js → index-BbFlVqSm.js} +1 -1
  33. package/aftenpostenv2/es/{index-RI9_Mevg.js → index-CGeFmR1V.js} +1 -1
  34. package/aftenpostenv2/es/index-CHSG30lH.js +1 -0
  35. package/aftenpostenv2/es/{index-DzrYUR17.js → index-CjrxOrtV.js} +1 -1
  36. package/aftenpostenv2/es/{index-d4g1x1YF.js → index-DoT23a8S.js} +1 -1
  37. package/aftenpostenv2/es/{index-Ch6WmPOM.js → index-VM6EV4Ku.js} +1 -1
  38. package/aftenpostenv2/es/{index-DcxHt1FP.js → index-vBl-dhzj.js} +1 -1
  39. package/aftenpostenv2/es/index.d.ts +0 -6
  40. package/aftenpostenv2/es/index.js +1 -1
  41. package/aftenpostenv2/es/{styles-0SwBMjdf.js → styles-B1M5JLFU.js} +1 -1
  42. package/aftenpostenv2/es/{styles-4uyQAyvi.js → styles-BHNURI0q.js} +1 -1
  43. package/aftenpostenv2/es/{styles-CA4LTUNF.js → styles-Bl4sxWW_.js} +1 -1
  44. package/aftenpostenv2/es/{styles-BCdkKaoC.js → styles-BoVDKTEP.js} +1 -1
  45. package/aftenpostenv2/es/{styles-pDSXVzZW.js → styles-C9io3eAx.js} +1 -1
  46. package/aftenpostenv2/es/{styles-KeNS2Hsi.js → styles-CEn0E5Wq.js} +1 -1
  47. package/aftenpostenv2/es/{styles-CEVcRLNJ.js → styles-CJRy0t_h.js} +1 -1
  48. package/aftenpostenv2/es/{styles-CoUiIESI.js → styles-DDgl2YT6.js} +1 -1
  49. package/aftenpostenv2/es/{styles-B0CAqpsk.js → styles-D_TBvtaM.js} +1 -1
  50. package/aftenpostenv2/es/{styles-BS5sXHKh.js → styles-DktIa1aw.js} +1 -1
  51. package/aftonbladet/cjs/index.d.ts +0 -6
  52. package/aftonbladet/cjs/index.js +1 -1
  53. package/aftonbladet/es/_auto-entry_aftonbladet-B_BmDQ77.js +1 -0
  54. package/aftonbladet/es/events-C9kjmCx0.js +1 -0
  55. package/aftonbladet/es/index-BnGaeqFp.js +1 -0
  56. package/aftonbladet/es/{index-nImWoPld.js → index-Bq0EaqP_.js} +1 -1
  57. package/aftonbladet/es/{index-C8kH9BNY.js → index-BwB7DcXQ.js} +1 -1
  58. package/aftonbladet/es/{index-DwbyUff9.js → index-CAA48b92.js} +1 -1
  59. package/aftonbladet/es/{index-pnGDnf33.js → index-CHiHibNl.js} +1 -1
  60. package/aftonbladet/es/{index-DT0i3Gys.js → index-Cs15uvV8.js} +1 -1
  61. package/aftonbladet/es/{index-C5oXYwyZ.js → index-DLDAUcfd.js} +1 -1
  62. package/aftonbladet/es/{index-Ci1yWP9V.js → index-DVKHbZA_.js} +1 -1
  63. package/aftonbladet/es/index.d.ts +0 -6
  64. package/aftonbladet/es/index.js +1 -1
  65. package/aftonbladet/es/{styles-Mrn36ik-.js → styles-BfSqYkBH.js} +1 -1
  66. package/aftonbladet/es/{styles-Cimvo62B.js → styles-Bs5OCjYv.js} +1 -1
  67. package/aftonbladet/es/{styles-DliHcWtZ.js → styles-C5dvgi4p.js} +1 -1
  68. package/aftonbladet/es/{styles-BT3P_BAA.js → styles-Cau4D1ht.js} +1 -1
  69. package/aftonbladet/es/{styles-DS8Yl2Qt.js → styles-Co6NAVm8.js} +1 -1
  70. package/aftonbladet/es/{styles-L5daSFFW.js → styles-DyiqzJQU.js} +1 -1
  71. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-BB9eRYKh.js +1 -0
  72. package/aftonbladetv2/es/events-MYyA35B6.js +1 -0
  73. package/aftonbladetv2/es/index-BdMcPQP3.js +1 -0
  74. package/aftonbladetv2/es/{index-Bzy67ItD.js → index-CaIbLqrE.js} +1 -1
  75. package/aftonbladetv2/es/{index-B5nTw6xa.js → index-DGm2ptIw.js} +1 -1
  76. package/aftonbladetv2/es/{index-DRHAHzer.js → index-DW1WfO6f.js} +1 -1
  77. package/aftonbladetv2/es/{index-DmPAOxDI.js → index-DeB8Vtnb.js} +1 -1
  78. package/aftonbladetv2/es/{index-xncoa8xP.js → index-DfSPNN8S.js} +1 -1
  79. package/aftonbladetv2/es/{index-aTk1aLLT.js → index-DrJfsJ7b.js} +1 -1
  80. package/aftonbladetv2/es/{index-C_11A-Ib.js → index-Z4y2xNcG.js} +1 -1
  81. package/aftonbladetv2/es/index.d.ts +0 -6
  82. package/aftonbladetv2/es/index.js +1 -1
  83. package/aftonbladetv2/es/{styles-JhJXyRN_.js → styles-BZNb7u57.js} +1 -1
  84. package/aftonbladetv2/es/{styles-8JJ319C6.js → styles-C1RqLuLc.js} +1 -1
  85. package/aftonbladetv2/es/{styles-YNed2DXr.js → styles-CK9LuWdf.js} +1 -1
  86. package/aftonbladetv2/es/{styles-Bf8PjrzW.js → styles-D5OJVwRc.js} +1 -1
  87. package/aftonbladetv2/es/{styles-BaboIBwO.js → styles-D6lFkKJn.js} +1 -1
  88. package/aftonbladetv2/es/{styles-eiHDtftU.js → styles-Df6tlN5I.js} +1 -1
  89. package/bt/cjs/index.d.ts +0 -6
  90. package/bt/cjs/index.js +1 -1
  91. package/bt/es/_auto-entry_bt-DlVoyHda.js +1 -0
  92. package/bt/es/events-1JX8X7Hy.js +1 -0
  93. package/bt/es/{index-C1T4s3at.js → index-BYqf4idT.js} +1 -1
  94. package/bt/es/{index-DaL6cSoE.js → index-D-I0s1G5.js} +1 -1
  95. package/{sa/es/index-BTUci2GD.js → bt/es/index-D9tlzXpc.js} +1 -1
  96. package/bt/es/{index-Cp9MLD0V.js → index-DlWkzR52.js} +1 -1
  97. package/bt/es/index-DmRGvNmj.js +1 -0
  98. package/bt/es/{index-CR6YDFCE.js → index-Dowjxuyt.js} +1 -1
  99. package/bt/es/{index-CcTuY-J4.js → index-F-Gt6Aop.js} +1 -1
  100. package/bt/es/{index-zVjG1QIj.js → index-HNWzqBiL.js} +1 -1
  101. package/bt/es/index.d.ts +0 -6
  102. package/bt/es/index.js +1 -1
  103. package/bt/es/{styles-D6ZGg9Yp.js → styles-B1Di381V.js} +1 -1
  104. package/bt/es/{styles-CtAmbHY-.js → styles-CVTr4JvY.js} +1 -1
  105. package/{sa/es/styles-BKNlqej_.js → bt/es/styles-D2vJUPaQ.js} +1 -1
  106. package/bt/es/{styles-Dz8BAJPG.js → styles-D5Uo8o95.js} +1 -1
  107. package/bt/es/{styles-BW2MNunQ.js → styles-DSyVzPye.js} +1 -1
  108. package/bt/es/{styles-gdTvjyW1.js → styles-DhoODVry.js} +1 -1
  109. package/bt/es/{styles-CMZftYPj.js → styles-NeZnoKpM.js} +1 -1
  110. package/bt/es/{styles-C3WSh1y8.js → styles-sN0WbaqZ.js} +1 -1
  111. package/bt/es/{styles-B53nZ7Xn.js → styles-tPoiPrl3.js} +1 -1
  112. package/btv2/es/_auto-entry_btv2-DdaRmUwF.js +1 -0
  113. package/btv2/es/events-cJzonpb1.js +1 -0
  114. package/btv2/es/index-B3Zy-OQZ.js +1 -0
  115. package/btv2/es/{index-Dn0TTdgB.js → index-BOv5a6lb.js} +1 -1
  116. package/btv2/es/{index-CTadf8bt.js → index-Bb_jU2iN.js} +1 -1
  117. package/btv2/es/{index-Cdq1VBEi.js → index-BiTMq0pt.js} +1 -1
  118. package/btv2/es/{index-BAJI59QE.js → index-BmwhUCVJ.js} +1 -1
  119. package/btv2/es/{index-DISydOUr.js → index-BrwBwBEq.js} +1 -1
  120. package/{sav2/es/index-By3vGrsd.js → btv2/es/index-Ud-hfroS.js} +1 -1
  121. package/btv2/es/{index-BYi9ivka.js → index-cn-kRTNa.js} +1 -1
  122. package/btv2/es/index.d.ts +0 -6
  123. package/btv2/es/index.js +1 -1
  124. package/{sav2/es/styles-DBPVAz0o.js → btv2/es/styles-B6QL1NPT.js} +1 -1
  125. package/{sav2/es/styles-CfGxiZQA.js → btv2/es/styles-BO-IZkYS.js} +1 -1
  126. package/btv2/es/{styles-B1JQ13nO.js → styles-BkkU40Pf.js} +1 -1
  127. package/btv2/es/{styles-cXvCbLIf.js → styles-BxMW0DhI.js} +1 -1
  128. package/btv2/es/{styles-bLVpNHoZ.js → styles-C0NC3weZ.js} +1 -1
  129. package/{sav2/es/styles-DSUfSJp3.js → btv2/es/styles-DTfQEXgN.js} +1 -1
  130. package/{sav2/es/styles-BTpLL_gU.js → btv2/es/styles-Dvskif6u.js} +1 -1
  131. package/btv2/es/{styles-KYIYGVsk.js → styles-DyvSLjvK.js} +1 -1
  132. package/e24/es/_auto-entry_e24-75A_zeOO.js +1 -0
  133. package/e24/es/events-4ZgwfJ4e.js +1 -0
  134. package/e24/es/{index-D5brOEgD.js → index-B3FcGIkP.js} +1 -1
  135. package/e24/es/{index-Btbwppqg.js → index-BJJeozgs.js} +1 -1
  136. package/e24/es/{index-BdIYeRWB.js → index-CW-_PvJ5.js} +1 -1
  137. package/e24/es/{index-C-8xBLeE.js → index-DASIW3Lx.js} +1 -1
  138. package/e24/es/{index-Duf-sZYj.js → index-DZFUSB0n.js} +1 -1
  139. package/e24/es/{index-DOqXmvcI.js → index-Dhmwv9J6.js} +1 -1
  140. package/e24/es/{index-CmLsoICa.js → index-DjdAERxE.js} +1 -1
  141. package/e24/es/index-UXQAiWu3.js +1 -0
  142. package/e24/es/index.d.ts +0 -6
  143. package/e24/es/index.js +1 -1
  144. package/e24/es/{styles-DtFfqh6Q.js → styles-BlC9JfCy.js} +1 -1
  145. package/{tv4/es/styles-C_BG4Hdl.js → e24/es/styles-BlCdHmhq.js} +1 -1
  146. package/e24/es/{styles-CgNO3qR6.js → styles-Bn53qdJ1.js} +1 -1
  147. package/e24/es/{styles-Dep1Ut0H.js → styles-Buvqqn2A.js} +1 -1
  148. package/e24/es/{styles-C0M8dUN-.js → styles-C8LcjwhN.js} +1 -1
  149. package/e24/es/{styles-BZmNZ9KT.js → styles-CGelcO5L.js} +1 -1
  150. package/e24/es/{styles-SFFQMCDn.js → styles-Cv7oFz4t.js} +1 -1
  151. package/e24/es/{styles-BMYDX5VC.js → styles-D4TxYBGe.js} +1 -1
  152. package/e24/es/{styles-RIH-F6Ya.js → styles-DCdixsO3.js} +1 -1
  153. package/e24/es/{styles-BrL5pIif.js → styles-DPEIfzJ0.js} +1 -1
  154. package/e24/es/{styles-kGzLW0io.js → styles-DQUsOsYl.js} +1 -1
  155. package/editory/cjs/index.d.ts +0 -6
  156. package/editory/es/index.d.ts +0 -6
  157. package/fotbollskanalen/cjs/index.d.ts +0 -6
  158. package/fotbollskanalen/cjs/index.js +1 -1
  159. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-B960e71A.js +1 -0
  160. package/fotbollskanalen/es/events-BKZIEDSB.js +1 -0
  161. package/fotbollskanalen/es/{index-boTiRV55.js → index-B-jZmtUV.js} +1 -1
  162. package/fotbollskanalen/es/{index-Bfxfefwt.js → index-C9_izBok.js} +1 -1
  163. package/fotbollskanalen/es/{index-CGS4zHX0.js → index-CD9qovNy.js} +1 -1
  164. package/fotbollskanalen/es/{index-CFPdd2f5.js → index-D812_2w8.js} +1 -1
  165. package/fotbollskanalen/es/{index-CuwquC2l.js → index-DISpOVUL.js} +1 -1
  166. package/fotbollskanalen/es/{index-BOBvrHMi.js → index-DXEVaT3W.js} +1 -1
  167. package/fotbollskanalen/es/index-Ok6OAopd.js +1 -0
  168. package/fotbollskanalen/es/{index-bfTjOlO5.js → index-tEIbiTnR.js} +1 -1
  169. package/fotbollskanalen/es/index.d.ts +0 -6
  170. package/fotbollskanalen/es/index.js +1 -1
  171. package/fotbollskanalen/es/{styles-BQ--e-Vn.js → styles-B3f1y0M9.js} +1 -1
  172. package/fotbollskanalen/es/{styles-BHYR3GoX.js → styles-BDqT8BYr.js} +1 -1
  173. package/fotbollskanalen/es/{styles-D_sj5Vzh.js → styles-CQLIxuBF.js} +1 -1
  174. package/fotbollskanalen/es/{styles-Pl2Sjudv.js → styles-D0SReSU9.js} +1 -1
  175. package/godt/cjs/index.d.ts +0 -6
  176. package/godt/cjs/index.js +1 -1
  177. package/kilkaya/cjs/index.d.ts +0 -4
  178. package/kilkaya/cjs/index.js +1 -1
  179. package/kilkaya/es/index.d.ts +0 -4
  180. package/kilkaya/es/index.js +1 -1
  181. package/klart/cjs/index.d.ts +0 -6
  182. package/klart/cjs/index.js +1 -1
  183. package/koket/cjs/index.d.ts +0 -6
  184. package/koket/cjs/index.js +1 -1
  185. package/koket/es/_auto-entry_koket-_PtiyvIV.js +1 -0
  186. package/koket/es/events-D7hbdaeD.js +1 -0
  187. package/koket/es/index-Bbh3nNXd.js +1 -0
  188. package/koket/es/{index-CSuGki7X.js → index-CRYDC0Gy.js} +1 -1
  189. package/koket/es/{index-1_enYyl-.js → index-CW83pHXF.js} +1 -1
  190. package/koket/es/{index-BHIXSeiq.js → index-D8Izy735.js} +1 -1
  191. package/koket/es/{index-KO8jArcb.js → index-D8za_Wid.js} +1 -1
  192. package/koket/es/{index-DThD_76X.js → index-DObfx4tu.js} +1 -1
  193. package/koket/es/{index-BFMzCvOm.js → index-njrh8m4Y.js} +1 -1
  194. package/koket/es/{index-gEcW_X4C.js → index-xRGoQSQa.js} +1 -1
  195. package/koket/es/index.d.ts +0 -6
  196. package/koket/es/index.js +1 -1
  197. package/{svdv2/es/styles-D1CKRif-.js → koket/es/styles-3W33of98.js} +1 -1
  198. package/{svdv2/es/styles-7Iecx_xZ.js → koket/es/styles-Bf-8KtLP.js} +1 -1
  199. package/koket/es/{styles-TfEbRDgH.js → styles-CzBGm5i6.js} +1 -1
  200. package/koket/es/{styles-4-GT-6MM.js → styles-pOZDAdWN.js} +1 -1
  201. package/minmote/cjs/index.d.ts +0 -6
  202. package/minmote/cjs/index.js +1 -1
  203. package/mtv/es/_auto-entry_mtv-DfLfHuYK.js +1 -0
  204. package/mtv/es/events-BX_8IniR.js +1 -0
  205. package/mtv/es/{index-cMb8HWfK.js → index-BQDQoeJP.js} +1 -1
  206. package/mtv/es/{index-CYNZS9We.js → index-CRwUsse4.js} +1 -1
  207. package/mtv/es/{index-C_XU8kvn.js → index-C_6k_nZb.js} +1 -1
  208. package/mtv/es/{index-DYHIsJfx.js → index-D-qyrPRZ.js} +1 -1
  209. package/mtv/es/{index-DhrVYtj7.js → index-D4wQKSiU.js} +1 -1
  210. package/mtv/es/{index-Dz88TrQM.js → index-EqVD6g8R.js} +1 -1
  211. package/mtv/es/index-eGuXCMdi.js +1 -0
  212. package/mtv/es/{index-CkB0DZNt.js → index-hAqCMoEH.js} +1 -1
  213. package/mtv/es/index.d.ts +0 -6
  214. package/mtv/es/index.js +1 -1
  215. package/omni/es/_auto-entry_omni-DYLwPbrG.js +1 -0
  216. package/omni/es/events-DwVzePgO.js +1 -0
  217. package/omni/es/{index-BMEcVMDq.js → index-4d-1srf_.js} +1 -1
  218. package/omni/es/{index-Kc14qwo7.js → index-B2qW12CY.js} +1 -1
  219. package/omni/es/{index-BQJHnf4j.js → index-BXv8bTSV.js} +1 -1
  220. package/omni/es/{index-DbSsX6rE.js → index-Bge7jqy2.js} +1 -1
  221. package/{tvnu/es/index-B0kAvUxo.js → omni/es/index-BrAM7Nn9.js} +1 -1
  222. package/{tvnu/es/index-BAOavej2.js → omni/es/index-CVPxd2P0.js} +1 -1
  223. package/omni/es/{index-DXgyn_9M.js → index-DI3zW2c4.js} +1 -1
  224. package/omni/es/index-DRpUvuWY.js +1 -0
  225. package/omni/es/index.d.ts +0 -6
  226. package/omni/es/index.js +1 -1
  227. package/omni/es/{styles-DQ1NUt28.js → styles-CmdK_GSb.js} +1 -1
  228. package/omni/es/{styles-jbZ1DDYh.js → styles-DrhJQLu9.js} +1 -1
  229. package/package.json +1 -1
  230. package/pent/cjs/index.d.ts +0 -6
  231. package/pent/cjs/index.js +1 -1
  232. package/sa/cjs/index.d.ts +0 -6
  233. package/sa/cjs/index.js +1 -1
  234. package/sa/es/_auto-entry_sa-COY7D8ra.js +1 -0
  235. package/sa/es/events-DxoAiWGF.js +1 -0
  236. package/sa/es/index--iPBZ85j.js +1 -0
  237. package/sa/es/{index-DMy3dyZE.js → index-B3j3Q85v.js} +1 -1
  238. package/{bt/es/index-BWLe2vVN.js → sa/es/index-BOrmOcpz.js} +1 -1
  239. package/sa/es/{index-BSLsBFpt.js → index-BlnPVnp7.js} +1 -1
  240. package/sa/es/{index-b-RRet8T.js → index-CGUTkCot.js} +1 -1
  241. package/sa/es/{index-D2Ln5F1a.js → index-CRZXB1g6.js} +1 -1
  242. package/sa/es/{index-CHScCCrI.js → index-D20Tqh_k.js} +1 -1
  243. package/sa/es/{index-BYu14TaT.js → index-IQSLio21.js} +1 -1
  244. package/sa/es/index.d.ts +0 -6
  245. package/sa/es/index.js +1 -1
  246. package/sa/es/{styles-DAjTauwS.js → styles-B2s2dwCy.js} +1 -1
  247. package/sa/es/{styles-LN-yk9D_.js → styles-BUvuqHQ2.js} +1 -1
  248. package/sa/es/{styles-_5P9fRbC.js → styles-BgY7wE07.js} +1 -1
  249. package/{vg/es/styles-Ds7_g2po.js → sa/es/styles-Bq3icqZC.js} +1 -1
  250. package/sa/es/{styles-BtkFTAHm.js → styles-BzfhaAwP.js} +1 -1
  251. package/sa/es/{styles-C0A6Pare.js → styles-CQ7S_nwG.js} +1 -1
  252. package/{vg/es/styles-C_xlmDoB.js → sa/es/styles-D2Yl2A9_.js} +1 -1
  253. package/sa/es/{styles-2lTXPUFp.js → styles-DBvYCo-X.js} +1 -1
  254. package/sa/es/{styles-rJUIIzUG.js → styles-Di-RRtTw.js} +1 -1
  255. package/sav2/es/_auto-entry_sav2-BAAN3KXt.js +1 -0
  256. package/sav2/es/events-CRm5pg3I.js +1 -0
  257. package/sav2/es/{index-BfR4Reu1.js → index-BdhyONEV.js} +1 -1
  258. package/sav2/es/{index-BLc8QxpD.js → index-BlJfg6_5.js} +1 -1
  259. package/{omni/es/index-DbkqnPPJ.js → sav2/es/index-CjQHmmgI.js} +1 -1
  260. package/sav2/es/index-Cv0kBqbr.js +1 -0
  261. package/sav2/es/{index-D6X3dyhA.js → index-Cv2lkuEw.js} +1 -1
  262. package/sav2/es/{index-DHIl7aM3.js → index-DMBcrwXl.js} +1 -1
  263. package/{tvnu/es/index-CJTV91qk.js → sav2/es/index-DmtAdQU0.js} +1 -1
  264. package/{omni/es/index-CZb60Gl7.js → sav2/es/index-Dmv4CeH0.js} +1 -1
  265. package/sav2/es/index.d.ts +0 -6
  266. package/sav2/es/index.js +1 -1
  267. package/{btv2/es/styles-lS6gsMjS.js → sav2/es/styles-BRlXXd1V.js} +1 -1
  268. package/{vgv2/es/styles-dBOW2sqc.js → sav2/es/styles-BwqsrlZq.js} +1 -1
  269. package/{btv2/es/styles-Y0XhxLyI.js → sav2/es/styles-CuMdoiEM.js} +1 -1
  270. package/sav2/es/{styles-CGmceQc6.js → styles-DQKyPjqg.js} +1 -1
  271. package/sav2/es/{styles-D9ATo0Sb.js → styles-DjUfVQ31.js} +1 -1
  272. package/{vgv2/es/styles-Df1CqzQb.js → sav2/es/styles-a_6ebdIJ.js} +1 -1
  273. package/sav2/es/{styles-CY1yA4qk.js → styles-qu1BlAIx.js} +1 -1
  274. package/sav2/es/{styles-7ZAoF9Ss.js → styles-rDDiTDVw.js} +1 -1
  275. package/svd/cjs/index.d.ts +0 -6
  276. package/svd/cjs/index.js +1 -1
  277. package/svd/es/_auto-entry_svd-CZiy-x1e.js +1 -0
  278. package/svd/es/events-B_D7p6ho.js +1 -0
  279. package/svd/es/{index-BxKwBjGZ.js → index-BQud3eJz.js} +1 -1
  280. package/svd/es/{index-mWlxS9uy.js → index-BSVa699L.js} +1 -1
  281. package/svd/es/{index-D7EcR8mv.js → index-BW1lVJHH.js} +1 -1
  282. package/svd/es/{index-C94JyJ4K.js → index-Bo8VzfAE.js} +1 -1
  283. package/svd/es/index-BqH6gdO4.js +1 -0
  284. package/svd/es/{index-D4UsJ_qp.js → index-C0BhQw_o.js} +1 -1
  285. package/svd/es/{index-BfK3wh1b.js → index-DP5xQuw5.js} +1 -1
  286. package/svd/es/{index-B1SNvfK2.js → index-oMOCOjdw.js} +1 -1
  287. package/svd/es/index.d.ts +0 -6
  288. package/svd/es/index.js +1 -1
  289. package/svd/es/{styles-CnYIQUxb.js → styles-B57iCwVk.js} +1 -1
  290. package/svd/es/{styles-ClRf5q9O.js → styles-BZxU9aJa.js} +1 -1
  291. package/svd/es/{styles-BZoT3V2n.js → styles-C5aNglJc.js} +1 -1
  292. package/svd/es/{styles-B7t_3dac.js → styles-CKLtXak6.js} +1 -1
  293. package/svd/es/{styles-CtclPes5.js → styles-DYYtABoR.js} +1 -1
  294. package/svd/es/{styles-C9-JlqFl.js → styles-dldqzJCA.js} +1 -1
  295. package/svdv2/es/_auto-entry_svdv2-BEKN9mcT.js +1 -0
  296. package/svdv2/es/events-CTjaZaIe.js +1 -0
  297. package/svdv2/es/{index-CTFlFvL7.js → index-BfWTDRIZ.js} +1 -1
  298. package/svdv2/es/{index-DJCvy8l9.js → index-BgPCqWp5.js} +1 -1
  299. package/svdv2/es/{index-Cjwbyeka.js → index-CkngYXY5.js} +1 -1
  300. package/svdv2/es/{index-D98_Piku.js → index-D7KXWBfC.js} +1 -1
  301. package/svdv2/es/index-DHMCi0zm.js +1 -0
  302. package/svdv2/es/{index-CbdjXfCM.js → index-Dw9I4qve.js} +1 -1
  303. package/svdv2/es/{index-BrIoqigd.js → index-WoOg9H4q.js} +1 -1
  304. package/svdv2/es/{index-B7eMinxC.js → index-yjXlc9qs.js} +1 -1
  305. package/svdv2/es/index.d.ts +0 -6
  306. package/svdv2/es/index.js +1 -1
  307. package/{koket/es/styles-B3_Cph0L.js → svdv2/es/styles-0YR60FXZ.js} +1 -1
  308. package/svdv2/es/{styles-fSE-faGc.js → styles-BFuyF4Hh.js} +1 -1
  309. package/svdv2/es/{styles-rAy-bUBF.js → styles-BPiGkzT1.js} +1 -1
  310. package/{koket/es/styles-qQbzU3RU.js → svdv2/es/styles-BWBb1KcF.js} +1 -1
  311. package/svdv2/es/{styles-CcqqghAC.js → styles-CW8baATr.js} +1 -1
  312. package/svdv2/es/{styles-EgRNRgE_.js → styles-D_5kZorH.js} +1 -1
  313. package/svdv2/es/{styles-BuL4fy5M.js → styles-cLt5A1yU.js} +1 -1
  314. package/tek/cjs/index.d.ts +0 -6
  315. package/tek/cjs/index.js +1 -1
  316. package/tracker/cjs/index.d.ts +0 -4
  317. package/tracker/es/index.d.ts +0 -4
  318. package/tv4/cjs/index.d.ts +0 -6
  319. package/tv4/cjs/index.js +1 -1
  320. package/tv4/es/_auto-entry_tv4-BQb1kuZE.js +1 -0
  321. package/tv4/es/events-BBjTpKa3.js +1 -0
  322. package/tv4/es/{index-Dg_msfaF.js → index-BztdG4AC.js} +1 -1
  323. package/tv4/es/{index-D6ofqyb0.js → index-CZmFd1kS.js} +1 -1
  324. package/tv4/es/{index-BeYyEv2O.js → index-D7D_jFVX.js} +1 -1
  325. package/tv4/es/{index-DxvUcUel.js → index-D8ESKmtm.js} +1 -1
  326. package/tv4/es/{index-D-1AxAus.js → index-DIuvq0V-.js} +1 -1
  327. package/tv4/es/index-DTgRF2ka.js +1 -0
  328. package/tv4/es/{index-BVz2akfe.js → index-DThVxbVp.js} +1 -1
  329. package/tv4/es/{index-YTzgv3M6.js → index-DskiGEME.js} +1 -1
  330. package/tv4/es/index.d.ts +0 -6
  331. package/tv4/es/index.js +1 -1
  332. package/tv4/es/{styles-BHFMghib.js → styles-1u--4dFc.js} +1 -1
  333. package/{e24/es/styles-DwGJJyF-.js → tv4/es/styles-C6tIVW1a.js} +1 -1
  334. package/tv4/es/{styles-CNXWwQZG.js → styles-CHIuFXqN.js} +1 -1
  335. package/tv4/es/{styles-CSmvFcP5.js → styles-DOuARUhl.js} +1 -1
  336. package/tvnu/cjs/index.d.ts +0 -6
  337. package/tvnu/cjs/index.js +1 -1
  338. package/tvnu/es/_auto-entry_tvnu-CW15HL4D.js +1 -0
  339. package/tvnu/es/events-8Scwq6oU.js +1 -0
  340. package/tvnu/es/{index-CkvNEzJ2.js → index-8oK8wusc.js} +1 -1
  341. package/{vgv2/es/index-B7UXb2sa.js → tvnu/es/index-B4qGO6Qb.js} +1 -1
  342. package/tvnu/es/index-B6DA0W1M.js +1 -0
  343. package/{sav2/es/index-Bgt6S2pK.js → tvnu/es/index-Bu5y-OQZ.js} +1 -1
  344. package/{sav2/es/index-DJ7Uvxm-.js → tvnu/es/index-BwRqGrdn.js} +1 -1
  345. package/tvnu/es/{index-CU0oVV9Y.js → index-DUCU3LK7.js} +1 -1
  346. package/tvnu/es/{index-C4JGUT_d.js → index-E6CZYiez.js} +1 -1
  347. package/{btv2/es/index-CAzWcDE9.js → tvnu/es/index-c57Jd0RH.js} +1 -1
  348. package/tvnu/es/index.d.ts +0 -6
  349. package/tvnu/es/index.js +1 -1
  350. package/{btv2/es/styles-EEg9ylqh.js → tvnu/es/styles-BO3RBVYJ.js} +1 -1
  351. package/tvnu/es/{styles-N-3vcOab.js → styles-CxIQE3OG.js} +1 -1
  352. package/tvnu/es/{styles-Cf6yxkMW.js → styles-DCtOuj9w.js} +1 -1
  353. package/types/index.d.ts +0 -6
  354. package/vg/cjs/index.d.ts +0 -6
  355. package/vg/cjs/index.js +1 -1
  356. package/vg/es/_auto-entry_vg-wLuuNxSU.js +1 -0
  357. package/vg/es/events-Lps90PpT.js +1 -0
  358. package/vg/es/{index-NM45bay4.js → index-BPvcMDix.js} +1 -1
  359. package/vg/es/{index-ChI170oa.js → index-B_5aFtU2.js} +1 -1
  360. package/vg/es/{index-C_Cof7Ms.js → index-B_eAvdAj.js} +1 -1
  361. package/vg/es/{index-DTNpbiOK.js → index-BrUUogjD.js} +1 -1
  362. package/vg/es/{index-DyIVUzQj.js → index-CrfmMxyS.js} +1 -1
  363. package/vg/es/{index-50N-UzHK.js → index-D2u80oW0.js} +1 -1
  364. package/vg/es/{index-Bb4IHq-a.js → index-hnEzZGFL.js} +1 -1
  365. package/vg/es/index-yJ3JMF4M.js +1 -0
  366. package/vg/es/index.d.ts +0 -6
  367. package/vg/es/index.js +1 -1
  368. package/vg/es/{styles-J5fyX781.js → styles-6pNIIXpu.js} +1 -1
  369. package/vg/es/{styles-DoYi5Bdk.js → styles-AjG8QDFn.js} +1 -1
  370. package/vg/es/{styles-Ch5oLMN3.js → styles-B7f86w7A.js} +1 -1
  371. package/vg/es/{styles-CNynTFmG.js → styles-BGR21zFy.js} +1 -1
  372. package/vg/es/{styles-Ch3A8uUb.js → styles-BPJZdhtn.js} +1 -1
  373. package/vg/es/{styles-Cl0Ua9X1.js → styles-BqNDMFzO.js} +1 -1
  374. package/{sa/es/styles-iJOSfkEc.js → vg/es/styles-CZo_RneZ.js} +1 -1
  375. package/vg/es/{styles-GVy9R8oe.js → styles-Cotutamb.js} +1 -1
  376. package/{bt/es/styles-ykJgbh5T.js → vg/es/styles-CqGxqh13.js} +1 -1
  377. package/vg/es/{styles-CYnVW3wV.js → styles-D7nwJIFC.js} +1 -1
  378. package/vg/es/{styles-DGh699xB.js → styles-DsPQgIYA.js} +1 -1
  379. package/vg/es/{styles-SGEMycmA.js → styles-Q39xuWmn.js} +1 -1
  380. package/vg/es/{styles-BPadKLLq.js → styles-Zvh8Rseq.js} +1 -1
  381. package/vg/es/{styles-BZniWaQl.js → styles-_yj3wq5z.js} +1 -1
  382. package/vg/es/{styles-BTspwHMU.js → styles-bh80fEkr.js} +1 -1
  383. package/vgv2/es/_auto-entry_vgv2-B7vCTqT8.js +1 -0
  384. package/vgv2/es/events-hbxczyGX.js +1 -0
  385. package/vgv2/es/{index-A0pj20HQ.js → index-2EqhtzzO.js} +1 -1
  386. package/vgv2/es/{index-DG1QfmeI.js → index-BLCvHvuo.js} +1 -1
  387. package/vgv2/es/index-C6cf8ejy.js +1 -0
  388. package/{tvnu/es/index-DDK7Zxrk.js → vgv2/es/index-CXX2F92f.js} +1 -1
  389. package/vgv2/es/index-Dhk7BE__.js +1 -0
  390. package/vgv2/es/{index-KnEZC6xh.js → index-Diz7xLGl.js} +1 -1
  391. package/vgv2/es/{index-Cr8H-0sx.js → index-DmT-pP_W.js} +1 -1
  392. package/vgv2/es/{index-QcLiIMws.js → index-xN-yiInH.js} +1 -1
  393. package/vgv2/es/index.d.ts +0 -6
  394. package/vgv2/es/index.js +1 -1
  395. package/vgv2/es/{styles-B3pHpm9u.js → styles-6ZY8FLlc.js} +1 -1
  396. package/vgv2/es/{styles-CLR9WKRh.js → styles-BAKtvvs-.js} +1 -1
  397. package/vgv2/es/{styles-MSPC8il5.js → styles-BJKFBK5U.js} +1 -1
  398. package/vgv2/es/{styles-BYDVEBuR.js → styles-Bk_CKccs.js} +1 -1
  399. package/vgv2/es/{styles-DIwLZo_G.js → styles-C0KhorW9.js} +1 -1
  400. package/vgv2/es/{styles-CxSfynjB.js → styles-CIGdggWh.js} +1 -1
  401. package/vgv2/es/{styles-B5oHB1YL.js → styles-D11mSnZi.js} +1 -1
  402. package/vgv2/es/{styles-BpShvMwo.js → styles-D1CDcng0.js} +1 -1
  403. package/vgv2/es/{styles-TPGSF-L1.js → styles-DO3rddQK.js} +1 -1
  404. package/{btv2/es/styles-BaVQkaPQ.js → vgv2/es/styles-Dc8LyWjI.js} +1 -1
  405. package/{tvnu/es/styles-B_C8wEgm.js → vgv2/es/styles-Djl8Hv5v.js} +1 -1
  406. package/vgv2/es/{styles-Bh7Wt8c9.js → styles-DwDTS6oA.js} +1 -1
  407. package/vgv2/es/{styles-DSz-HOWp.js → styles-GNHDyqU_.js} +1 -1
  408. package/vgv2/es/{styles-BUTVo0Bt.js → styles-aHhnIpgE.js} +1 -1
  409. package/vgv2/es/{styles-Jeksf4Vr.js → styles-zu5KZsaB.js} +1 -1
  410. package/aftenposten/es/_auto-entry_aftenposten-BXKlrxzg.js +0 -1
  411. package/aftenposten/es/events-D211I5Ap.js +0 -1
  412. package/aftenposten/es/index-BX6yYPUz.js +0 -1
  413. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CzckK7Tx.js +0 -1
  414. package/aftenpostenv2/es/events-CZsdX9ig.js +0 -1
  415. package/aftenpostenv2/es/index-AZBoSzq2.js +0 -1
  416. package/aftonbladet/es/_auto-entry_aftonbladet-BPaBFn6C.js +0 -1
  417. package/aftonbladet/es/events-BpMFJAnw.js +0 -1
  418. package/aftonbladet/es/index-C1tQdj07.js +0 -1
  419. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-BRId2Y1J.js +0 -1
  420. package/aftonbladetv2/es/events-CPEt9P2g.js +0 -1
  421. package/aftonbladetv2/es/index-BZdQmXaD.js +0 -1
  422. package/bt/es/_auto-entry_bt-B92Y43Bu.js +0 -1
  423. package/bt/es/events-LIemYc0l.js +0 -1
  424. package/bt/es/index-CNIzoYMN.js +0 -1
  425. package/btv2/es/_auto-entry_btv2-DVjRMzIB.js +0 -1
  426. package/btv2/es/events-CWzVAzc9.js +0 -1
  427. package/btv2/es/index-DFX2RYZW.js +0 -1
  428. package/e24/es/_auto-entry_e24-DWq1h0ZP.js +0 -1
  429. package/e24/es/events-0JDh94fh.js +0 -1
  430. package/e24/es/index-DNga4Y2s.js +0 -1
  431. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-CKZFGoi6.js +0 -1
  432. package/fotbollskanalen/es/events-CV3oqOTn.js +0 -1
  433. package/fotbollskanalen/es/index-E_fJE7Hz.js +0 -1
  434. package/koket/es/_auto-entry_koket-CFp4FLhm.js +0 -1
  435. package/koket/es/events-31ZPY4Pa.js +0 -1
  436. package/koket/es/index-CBUaWLqH.js +0 -1
  437. package/mtv/es/_auto-entry_mtv-yFNqxz-D.js +0 -1
  438. package/mtv/es/events-DDuvw29t.js +0 -1
  439. package/mtv/es/index-CRqQ_AH0.js +0 -1
  440. package/omni/es/_auto-entry_omni-BohAFTHk.js +0 -1
  441. package/omni/es/events-Cz6K6ltU.js +0 -1
  442. package/omni/es/index-hxx-nCeI.js +0 -1
  443. package/sa/es/_auto-entry_sa-BUtvk016.js +0 -1
  444. package/sa/es/events-D9u8U6oQ.js +0 -1
  445. package/sa/es/index-4uWa0cMd.js +0 -1
  446. package/sav2/es/_auto-entry_sav2-hNny4WcQ.js +0 -1
  447. package/sav2/es/events-DiVerwiD.js +0 -1
  448. package/sav2/es/index-B-YIZJgl.js +0 -1
  449. package/svd/es/_auto-entry_svd-CPvMsmZD.js +0 -1
  450. package/svd/es/events-P9-hiBsX.js +0 -1
  451. package/svd/es/index-ByAq4nWP.js +0 -1
  452. package/svdv2/es/_auto-entry_svdv2-Ba-lsBXt.js +0 -1
  453. package/svdv2/es/events-eXTtxcYg.js +0 -1
  454. package/svdv2/es/index-rLit3deu.js +0 -1
  455. package/tv4/es/_auto-entry_tv4-B4h6_irD.js +0 -1
  456. package/tv4/es/events-CROWbECG.js +0 -1
  457. package/tv4/es/index--QRSY0CI.js +0 -1
  458. package/tvnu/es/_auto-entry_tvnu-C3CpXv1q.js +0 -1
  459. package/tvnu/es/events-BNzRNX_D.js +0 -1
  460. package/tvnu/es/index-B8EoAzQu.js +0 -1
  461. package/vg/es/_auto-entry_vg-Q6EH7eyb.js +0 -1
  462. package/vg/es/events-B4u5kM7V.js +0 -1
  463. package/vg/es/index-BVtsedgL.js +0 -1
  464. package/vgv2/es/_auto-entry_vgv2-B8zvmSHB.js +0 -1
  465. package/vgv2/es/events-DSCUhOVD.js +0 -1
  466. package/vgv2/es/index-Bhk-nlve.js +0 -1
  467. package/vgv2/es/index-DMiOBLNE.js +0 -1
@@ -97,7 +97,6 @@ interface AstAdObj {
97
97
  subtype?: string;
98
98
  renderer_url?: string;
99
99
  bidderId?: number | undefined;
100
- uuid: string;
101
100
  }
102
101
  interface SafeFrameConfig {
103
102
  allowExpansionByPush?: boolean;
@@ -181,9 +180,6 @@ interface PulseLegacyExtras {
181
180
  trackViewUIElement?: (eventInput: unknown) => Promise<void>;
182
181
  trackLegacyViewUIElement?: (eventInput: unknown, trackOptions?: unknown) => Promise<unknown>;
183
182
  trackLegacyClickUIElement?: (eventInput: unknown, trackOptions?: unknown) => Promise<unknown>;
184
- trackImpressionAd?: (eventInput: unknown) => Promise<unknown>;
185
- trackEngagementAd?: (eventInput: unknown) => Promise<unknown>;
186
- trackLoadAd?: (eventInput: unknown) => Promise<unknown>;
187
183
  }
188
184
  interface PulseConfig {
189
185
  clientId: string;
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime");function t(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n="svd",r="vg",i="sa",o="bt",a="aftonbladet",s="e24";class l{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:r,pathname:i}=new URL(n);if(!r.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const o=i.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class d{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class c{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()||""}getPlacementData(e){var t,n;const r=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==r?void 0:r.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==r?void 0:r.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==r?void 0:r.dataset.pulseSecondaryposition)||0,slot:null!==(n=null==r?void 0:r.dataset.slotTag)&&void 0!==n?n:""}}getEventTarget(e){const{url:t,title:n,itemId:r}=this.parseKilkayaData(e);return{id:r,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,n,r,i,o,a,s,l,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===i||i.call(r,u):(null===(o=this.pulse)||void 0===o?void 0:o.trackViewUIElement)?null===(s=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===s||s.call(a,u):null===(d=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===d||d.call(l,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,n,r,i,o,a;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(i=(r=this.pulse).trackClickUIElement)||void 0===i||i.call(r,s):null===(a=(o=this.pulse).trackElementClick)||void 0===a||a.call(o,s)})}}class u extends c{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,r;const{clientName:i,creativeId:o,itemId:a,placement:s}=this.parseKilkayaData(e),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(e),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:s,elementType:"Article",custom:{customer:i,creativeId:null!=o?o:a},page:{"@id":null!=g?g:s,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===r?void 0:r.call(n,e)})}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),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"}}}class g extends c{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n;const{title:r="",clientName:i="",creativeId:o="",link:a="",itemId:s=""}=this.parseKilkayaData(e),{columnName:l,primaryPosition:d,secondaryPosition:c,slot:u}=this.getPlacementData(e),g={publicUrl:a,urlPath:a?new URL(a).pathname:""},{publicUrl:v,urlPath:p}=a&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,a))||g;return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:r,placement:{columnName:l,primaryPosition:d,secondaryPosition:c,source:u},tags:[i,r,v,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:i,"spt:creativeId":o,pageTitle:r,publicUrl:v,urlPath:p},url:location.origin})}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const v="no",p="se",f="[data-k5a-teaser-analytics]",y=(e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const o=new(r===p?g:u)(e,t,n),a=new WeakMap,s=e=>{const t=a.get(e);t&&(t.disconnect(),a.delete(e))},l=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,r=n.querySelector(f);Boolean(null==r?void 0:r.dataset.k5aTeaserAnalytics)?(o.trackContentView(n),t.unobserve(e.target),s(n)):((e,t)=>{if(a.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(f);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(o.trackContentView(e),t.unobserve(e),s(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),a.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{l.observe(e),e.addEventListener("click",()=>o.trackContentClick(e))})},m=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},h=(e,t)=>{console.warn("[Advertory WARN]: ",e)},b=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return m("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(m("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{m("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{m("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);m("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),w="cmp:loaded";let k="undefined"!=typeof window?window._tcf_:void 0,P=!1;const T=(e,n,r)=>{const i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,a=(s="bypass_tcf",new URLSearchParams(window.location.search).get(s));var s;const l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(m("TCF bypass param detected, returning consent: true"),!0):(m("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(P)return null;if(!k)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=k.getConsentedToAllSync();return m(`TCF consented to all is: ${t}`),k.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(m("Getting TCF consent manager..."),window._tcf_)return m("TCF consent manager is already available"),k=window._tcf_,void e(k);m("TCF consent manager is not available");const n=()=>{m("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(k=window._tcf_,e(k)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(w,n),P=!0,t(new Error("Timeout waiting for CMP to load"))},o);m("Listening for CMP loaded event..."),document.addEventListener(w,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return m(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===p,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===v;if(t||n)return m("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield b(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();return null!==i?i:yield new Promise((e,t)=>{try{if(!k)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{m("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);k.onTcfReady(()=>{m("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),k.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class E{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return m("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S,I;var A=C(function(){if(I)return S;I=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},S=s}());const O={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},j=(e,t)=>A(e,t,O),U=(e,t)=>Object.assign(Object.assign({},e),t),L=(e,t)=>{var n;return j(null!==(n=e)&&void 0!==n?n:{},t)},_={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},M=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||h("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||h("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||h("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||h("pageContext.deviceType is required."),n||h("pageOptions is required."),r||h("placements is required."),(null==i?void 0:i.defaultThreshold)||h("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&h(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},N={placements:(e,t)=>t,takeover:L,refreshConfig:U,editory:L,appearanceConfig:L,pageContext:U,pageOptions:U,pageSectionsSelectors:U,tcf:U};class ${set(e){M(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(N)){const r=t[e];void 0!==r&&(n[e]=N[e](n[e],r))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=j($.DEFAULT_SITE_HANDLERS,e)}}$.DEFAULT_SITE_HANDLERS={siteEvents:_,initNativeAd:()=>{}};const D=new $;D.modifyConfigProperties.bind(D);const x=864e5,B=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return m("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=x)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=x)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return m("Error with parsing localStorage data"),null}}}})(),F=e=>e.startsWith("glci_"),K=()=>{var e;return((e=[])=>e.filter(F))(null!==(e=(()=>{const e=B.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},q=/^glci_/,R="gender_",V="geo_",z="male",H="female",J=()=>t(void 0,void 0,void 0,function*(){try{const n=yield(e=500,t(void 0,void 0,void 0,function*(){return Promise.race([t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),r=new E(n),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===z||o===H?`${R}${o}`:void 0}catch(e){return}var e}),W=()=>t(void 0,void 0,void 0,function*(){const e=[],t=yield J(),n=(()=>{const e=K().map(e=>`${V}${e.replace(q,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),X="front";class G{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===X?"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:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Q{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Y{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class Z{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class ee{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===X?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class te{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class ne{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:c,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[r]:new l,[s]:new G,"no-aftenposten":new Q,[o]:new Y,"no-bergenstidende":new Y,[i]:new Z,"no-stavangeraftenblad":new Z,[n]:new ee,[a]:new te}[c]||new d;y(e.instance,g,t,u)}injectKilkayaMeta(e){return t(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield W();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}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(m(`Kilkaya event for slot: ${n}`),!n)return void m("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(m(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):m("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="flex";(e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))})(null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"")}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield((e,...n)=>t(void 0,[e,...n],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(l)};i.addEventListener("load",o),i.addEventListener("error",a);const l=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}))(e)})}run(e){return t(this,void 0,void 0,function*(){var n,r;const{tcf:i,pageContext:{isMobileApp:o,countryCode:a},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const l=yield((e,n,r,...i)=>t(void 0,[e,n,r,...i],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return m(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return m(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=T(e,0,n);return(yield i())?(m(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(m(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");l&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(l),yield this.loadKilkayaScript(null!==(r=null===(n=s.options)||void 0===n?void 0:n.kilkayaUrl)&&void 0!==r?r:""),this.handleKilkayaStreamTracking(e))})}}exports.Kilkaya=({placementName:t,slotTag:n,fallbackTargetId:r,children:i,pulseData:o,htmlAttributes:a})=>{const s=(e,t)=>{const n={};if(!e)return n;for(const[r,i]of Object.entries(e)){n[t?`${t}-${r}`:r]=String(i)}return n},l=s(o,"data-pulse"),d=s(a,"data");return e.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":n},l,d,{children:[e.jsx("div",{className:"inscreen-target"}),e.jsx("k5a-stream",{name:t,"slot-tag":n}),e.jsx("div",{className:"container"}),e.jsx("div",{className:"fallback","data-fallback-target-id":r,style:{display:"none"},children:i})]}))},exports.runKilkaya=e=>t(void 0,void 0,void 0,function*(){const t=new ne;yield t.run(e)});
1
+ "use strict";var e=require("react/jsx-runtime");function t(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n="svd",r="vg",i="sa",o="bt",a="aftonbladet",s="e24";class l{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:r,pathname:i}=new URL(n);if(!r.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const o=i.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class d{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class c{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:r}=this.parseKilkayaData(e);return{id:r,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,n,r,i,o,a,s,l,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===i||i.call(r,u):(null===(o=this.pulse)||void 0===o?void 0:o.trackViewUIElement)?null===(s=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===s||s.call(a,u):null===(d=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===d||d.call(l,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,n,r,i,o,a;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(i=(r=this.pulse).trackClickUIElement)||void 0===i||i.call(r,s):null===(a=(o=this.pulse).trackElementClick)||void 0===a||a.call(o,s)})}}class u extends c{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,r,i,o,a;const{clientName:s,creativeId:l,itemId:d,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===r?void 0:r.call(n))&&void 0!==i?i:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=l?l:d},page:{"@id":null!=g?g:c,"@type":u,url:location.origin},tags:null===(a=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getTags)||void 0===a?void 0:a.call(o,e)}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),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 g=/^glci_/,v="gender_",p="geo_",f="male",y="female";class h extends c{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:r="",clientName:i="",creativeId:o="",link:a=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:l}=this.getPlacementData(e),d={publicUrl:a,urlPath:a?new URL(a).pathname:""},{publicUrl:c,urlPath:u}=a&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,a))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:r,placement:{columnName:s,primaryPosition:l},tags:[i,r,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:i,"spt:creativeId":o,pageTitle:r,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const m="no",b="se",w="[data-k5a-teaser-analytics]",k=(e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const o=new(r===b?h:u)(e,t,n),a=new WeakMap,s=e=>{const t=a.get(e);t&&(t.disconnect(),a.delete(e))},l=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,r=n.querySelector(w);Boolean(null==r?void 0:r.dataset.k5aTeaserAnalytics)?(o.trackContentView(n),t.unobserve(e.target),s(n)):((e,t)=>{if(a.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(w);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(o.trackContentView(e),t.unobserve(e),s(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),a.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{l.observe(e),e.addEventListener("click",()=>o.trackContentClick(e))})},P=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},T=(e,t)=>{console.warn("[Advertory WARN]: ",e)},E=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return P("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(P("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{P("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{P("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);P("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),C="cmp:loaded";let S="undefined"!=typeof window?window._tcf_:void 0,I=!1;const A=(e,n,r)=>{const i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,a=(s="bypass_tcf",new URLSearchParams(window.location.search).get(s));var s;const l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(P("TCF bypass param detected, returning consent: true"),!0):(P("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(I)return null;if(!S)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=S.getConsentedToAllSync();return P(`TCF consented to all is: ${t}`),S.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(P("Getting TCF consent manager..."),window._tcf_)return P("TCF consent manager is already available"),S=window._tcf_,void e(S);P("TCF consent manager is not available");const n=()=>{P("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(S=window._tcf_,e(S)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(C,n),I=!0,t(new Error("Timeout waiting for CMP to load"))},o);P("Listening for CMP loaded event..."),document.addEventListener(C,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return P(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===b,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===m;if(t||n)return P("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield E(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();return null!==i?i:yield new Promise((e,t)=>{try{if(!S)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{P("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);S.onTcfReady(()=>{P("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),S.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class O{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return P("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}function j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U,L;var _=j(function(){if(L)return U;L=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},U=s}());const M={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},N=(e,t)=>_(e,t,M),$=(e,t)=>Object.assign(Object.assign({},e),t),D=(e,t)=>{var n;return N(null!==(n=e)&&void 0!==n?n:{},t)},x={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},B=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||T("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||T("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||T("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||T("pageContext.deviceType is required."),n||T("pageOptions is required."),r||T("placements is required."),(null==i?void 0:i.defaultThreshold)||T("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&T(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},F={placements:(e,t)=>t,takeover:D,refreshConfig:$,editory:D,appearanceConfig:D,pageContext:$,pageOptions:$,pageSectionsSelectors:$,tcf:$};class K{set(e){B(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(F)){const r=t[e];void 0!==r&&(n[e]=F[e](n[e],r))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=N(K.DEFAULT_SITE_HANDLERS,e)}}K.DEFAULT_SITE_HANDLERS={siteEvents:x,initNativeAd:()=>{}};const q=new K;q.modifyConfigProperties.bind(q);const R=864e5,V=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return P("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=R)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=R)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return P("Error with parsing localStorage data"),null}}}})(),z=e=>e.startsWith("glci_"),H=()=>{var e;return((e=[])=>e.filter(z))(null!==(e=(()=>{const e=V.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},J=()=>t(void 0,void 0,void 0,function*(){try{const n=yield(e=500,t(void 0,void 0,void 0,function*(){return Promise.race([t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),r=new O(n),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===f||o===y?`${v}${o}`:void 0}catch(e){return}var e}),W=()=>t(void 0,void 0,void 0,function*(){const e=[],t=yield J(),n=(()=>{const e=H().map(e=>`${p}${e.replace(g,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),X="front";class G{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===X?"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:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Q{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Y{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class Z{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class ee{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===X?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class te{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class ne{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:c,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[r]:new l,[s]:new G,"no-aftenposten":new Q,[o]:new Y,"no-bergenstidende":new Y,[i]:new Z,"no-stavangeraftenblad":new Z,[n]:new ee,[a]:new te}[c]||new d;k(e.instance,g,t,u)}injectKilkayaMeta(e){return t(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield W();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}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(P(`Kilkaya event for slot: ${n}`),!n)return void P("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(P(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):P("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="flex";(e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))})(null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"")}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield((e,...n)=>t(void 0,[e,...n],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(l)};i.addEventListener("load",o),i.addEventListener("error",a);const l=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}))(e)})}run(e){return t(this,void 0,void 0,function*(){var n,r;const{tcf:i,pageContext:{isMobileApp:o,countryCode:a},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const l=yield((e,n,r,...i)=>t(void 0,[e,n,r,...i],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return P(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return P(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=A(e,0,n);return(yield i())?(P(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(P(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(l),yield this.loadKilkayaScript(null!==(r=null===(n=s.options)||void 0===n?void 0:n.kilkayaUrl)&&void 0!==r?r:""),this.handleKilkayaStreamTracking(e)})}}exports.Kilkaya=({placementName:t,slotTag:n,fallbackTargetId:r,children:i,pulseData:o,htmlAttributes:a})=>{const s=(e,t)=>{const n={};if(!e)return n;for(const[r,i]of Object.entries(e)){n[t?`${t}-${r}`:r]=String(i)}return n},l=s(o,"data-pulse"),d=s(a,"data");return e.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},l,d,{children:[e.jsx("div",{className:"inscreen-target"}),e.jsx("k5a-stream",{name:t,"slot-tag":n}),e.jsx("div",{className:"container"}),e.jsx("div",{className:"fallback","data-fallback-target-id":r,style:{display:"none"},children:i})]}))},exports.runKilkaya=e=>t(void 0,void 0,void 0,function*(){const t=new ne;yield t.run(e)});
@@ -97,7 +97,6 @@ interface AstAdObj {
97
97
  subtype?: string;
98
98
  renderer_url?: string;
99
99
  bidderId?: number | undefined;
100
- uuid: string;
101
100
  }
102
101
  interface SafeFrameConfig {
103
102
  allowExpansionByPush?: boolean;
@@ -181,9 +180,6 @@ interface PulseLegacyExtras {
181
180
  trackViewUIElement?: (eventInput: unknown) => Promise<void>;
182
181
  trackLegacyViewUIElement?: (eventInput: unknown, trackOptions?: unknown) => Promise<unknown>;
183
182
  trackLegacyClickUIElement?: (eventInput: unknown, trackOptions?: unknown) => Promise<unknown>;
184
- trackImpressionAd?: (eventInput: unknown) => Promise<unknown>;
185
- trackEngagementAd?: (eventInput: unknown) => Promise<unknown>;
186
- trackLoadAd?: (eventInput: unknown) => Promise<unknown>;
187
183
  }
188
184
  interface PulseConfig {
189
185
  clientId: string;
@@ -1 +1 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";function n(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const r="svd",i="vg",o="sa",a="bt",s="aftonbladet",l="e24";class d{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:r,pathname:i}=new URL(n);if(!r.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const o=i.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class c{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class u{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()||""}getPlacementData(e){var t,n;const r=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==r?void 0:r.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==r?void 0:r.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==r?void 0:r.dataset.pulseSecondaryposition)||0,slot:null!==(n=null==r?void 0:r.dataset.slotTag)&&void 0!==n?n:""}}getEventTarget(e){const{url:t,title:n,itemId:r}=this.parseKilkayaData(e);return{id:r,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return n(this,void 0,void 0,function*(){var t,n,r,i,o,a,s,l,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===i||i.call(r,u):(null===(o=this.pulse)||void 0===o?void 0:o.trackViewUIElement)?null===(s=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===s||s.call(a,u):null===(d=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===d||d.call(l,u)})}trackContentClick(e){return n(this,void 0,void 0,function*(){var t,n,r,i,o,a;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(i=(r=this.pulse).trackClickUIElement)||void 0===i||i.call(r,s):null===(a=(o=this.pulse).trackElementClick)||void 0===a||a.call(o,s)})}}class g extends u{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,r;const{clientName:i,creativeId:o,itemId:a,placement:s}=this.parseKilkayaData(e),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(e),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:s,elementType:"Article",custom:{customer:i,creativeId:null!=o?o:a},page:{"@id":null!=g?g:s,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===r?void 0:r.call(n,e)})}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),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"}}}class v extends u{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n;const{title:r="",clientName:i="",creativeId:o="",link:a="",itemId:s=""}=this.parseKilkayaData(e),{columnName:l,primaryPosition:d,secondaryPosition:c,slot:u}=this.getPlacementData(e),g={publicUrl:a,urlPath:a?new URL(a).pathname:""},{publicUrl:v,urlPath:p}=a&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,a))||g;return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:r,placement:{columnName:l,primaryPosition:d,secondaryPosition:c,source:u},tags:[i,r,v,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:i,"spt:creativeId":o,pageTitle:r,publicUrl:v,urlPath:p},url:location.origin})}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const p="no",f="se",y="[data-k5a-teaser-analytics]",m=(e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const o=new(r===f?v:g)(e,t,n),a=new WeakMap,s=e=>{const t=a.get(e);t&&(t.disconnect(),a.delete(e))},l=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,r=n.querySelector(y);Boolean(null==r?void 0:r.dataset.k5aTeaserAnalytics)?(o.trackContentView(n),t.unobserve(e.target),s(n)):((e,t)=>{if(a.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(y);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(o.trackContentView(e),t.unobserve(e),s(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),a.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{l.observe(e),e.addEventListener("click",()=>o.trackContentClick(e))})},h=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},b=(e,t)=>{console.warn("[Advertory WARN]: ",e)},w=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return h("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(h("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{h("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{h("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);h("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),k="cmp:loaded";let P="undefined"!=typeof window?window._tcf_:void 0,T=!1;const E=(e,t,r)=>{const i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,a=(s="bypass_tcf",new URLSearchParams(window.location.search).get(s));var s;const l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(h("TCF bypass param detected, returning consent: true"),!0):(h("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(T)return null;if(!P)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=P.getConsentedToAllSync();return h(`TCF consented to all is: ${t}`),P.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(h("Getting TCF consent manager..."),window._tcf_)return h("TCF consent manager is already available"),P=window._tcf_,void e(P);h("TCF consent manager is not available");const n=()=>{h("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(P=window._tcf_,e(P)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(k,n),T=!0,t(new Error("Timeout waiting for CMP to load"))},o);h("Listening for CMP loaded event..."),document.addEventListener(k,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===f,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===p;if(t||n)return h("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield w(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();return null!==i?i:yield new Promise((e,t)=>{try{if(!P)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{h("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);P.onTcfReady(()=>{h("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),P.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class C{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return n(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return h("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return n(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var I,A;var O=S(function(){if(A)return I;A=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},I=s}());const j={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},U=(e,t)=>O(e,t,j),L=(e,t)=>Object.assign(Object.assign({},e),t),_=(e,t)=>{var n;return U(null!==(n=e)&&void 0!==n?n:{},t)},M={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},N=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||b("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||b("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||b("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||b("pageContext.deviceType is required."),n||b("pageOptions is required."),r||b("placements is required."),(null==i?void 0:i.defaultThreshold)||b("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&b(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},$={placements:(e,t)=>t,takeover:_,refreshConfig:L,editory:_,appearanceConfig:_,pageContext:L,pageOptions:L,pageSectionsSelectors:L,tcf:L};class D{set(e){N(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys($)){const r=t[e];void 0!==r&&(n[e]=$[e](n[e],r))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=U(D.DEFAULT_SITE_HANDLERS,e)}}D.DEFAULT_SITE_HANDLERS={siteEvents:M,initNativeAd:()=>{}};const B=new D;B.modifyConfigProperties.bind(B);const F=864e5,K=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return h("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=F)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=F)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return h("Error with parsing localStorage data"),null}}}})(),q=e=>e.startsWith("glci_"),x=()=>{var e;return((e=[])=>e.filter(q))(null!==(e=(()=>{const e=K.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},R=/^glci_/,V="gender_",z="geo_",H="male",J="female",W=()=>n(void 0,void 0,void 0,function*(){try{const t=yield(e=500,n(void 0,void 0,void 0,function*(){return Promise.race([n(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),r=new C(t),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===H||o===J?`${V}${o}`:void 0}catch(e){return}var e}),X=()=>n(void 0,void 0,void 0,function*(){const e=[],t=yield W(),n=(()=>{const e=x().map(e=>`${z}${e.replace(R,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),G="front";class Q{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===G?"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:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Y{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Z{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class ee{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class te{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===G?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class ne{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class re{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[i]:new d,[l]:new Q,"no-aftenposten":new Y,[a]:new Z,"no-bergenstidende":new Z,[o]:new ee,"no-stavangeraftenblad":new ee,[r]:new te,[s]:new ne}[n]||new c;m(e.instance,g,t,u)}injectKilkayaMeta(e){return n(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield X();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}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(h(`Kilkaya event for slot: ${n}`),!n)return void h("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(h(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):h("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="flex";(e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))})(null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"")}loadKilkayaScript(e){return n(this,void 0,void 0,function*(){yield((e,...t)=>n(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(l)};i.addEventListener("load",o),i.addEventListener("error",a);const l=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}))(e)})}run(e){return n(this,void 0,void 0,function*(){var t,r;const{tcf:i,pageContext:{isMobileApp:o,countryCode:a},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const l=yield((e,t,r,...i)=>n(void 0,[e,t,r,...i],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return h(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=E(e,0,n);return(yield i())?(h(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(h(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");l&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(l),yield this.loadKilkayaScript(null!==(r=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==r?r:""),this.handleKilkayaStreamTracking(e))})}}const ie=({placementName:n,slotTag:r,fallbackTargetId:i,children:o,pulseData:a,htmlAttributes:s})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[r,i]of Object.entries(e)){n[t?`${t}-${r}`:r]=String(i)}return n},d=l(a,"data-pulse"),c=l(s,"data");return e("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":r},d,c,{children:[t("div",{className:"inscreen-target"}),t("k5a-stream",{name:n,"slot-tag":r}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:o})]}))},oe=e=>n(void 0,void 0,void 0,function*(){const t=new re;yield t.run(e)});export{ie as Kilkaya,oe as runKilkaya};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";function n(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const r="svd",i="vg",o="sa",a="bt",s="aftonbladet",l="e24";class d{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:r,pathname:i}=new URL(n);if(!r.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const o=i.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class c{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class u{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:r}=this.parseKilkayaData(e);return{id:r,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return n(this,void 0,void 0,function*(){var t,n,r,i,o,a,s,l,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===i||i.call(r,u):(null===(o=this.pulse)||void 0===o?void 0:o.trackViewUIElement)?null===(s=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===s||s.call(a,u):null===(d=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===d||d.call(l,u)})}trackContentClick(e){return n(this,void 0,void 0,function*(){var t,n,r,i,o,a;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(i=(r=this.pulse).trackClickUIElement)||void 0===i||i.call(r,s):null===(a=(o=this.pulse).trackElementClick)||void 0===a||a.call(o,s)})}}class g extends u{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,r,i,o,a;const{clientName:s,creativeId:l,itemId:d,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===r?void 0:r.call(n))&&void 0!==i?i:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=l?l:d},page:{"@id":null!=g?g:c,"@type":u,url:location.origin},tags:null===(a=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getTags)||void 0===a?void 0:a.call(o,e)}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),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 v=/^glci_/,p="gender_",f="geo_",h="male",m="female";class y extends u{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:r="",clientName:i="",creativeId:o="",link:a=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:l}=this.getPlacementData(e),d={publicUrl:a,urlPath:a?new URL(a).pathname:""},{publicUrl:c,urlPath:u}=a&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,a))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:r,placement:{columnName:s,primaryPosition:l},tags:[i,r,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:i,"spt:creativeId":o,pageTitle:r,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const b="no",w="se",k="[data-k5a-teaser-analytics]",P=(e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const o=new(r===w?y:g)(e,t,n),a=new WeakMap,s=e=>{const t=a.get(e);t&&(t.disconnect(),a.delete(e))},l=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,r=n.querySelector(k);Boolean(null==r?void 0:r.dataset.k5aTeaserAnalytics)?(o.trackContentView(n),t.unobserve(e.target),s(n)):((e,t)=>{if(a.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(k);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(o.trackContentView(e),t.unobserve(e),s(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),a.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{l.observe(e),e.addEventListener("click",()=>o.trackContentClick(e))})},T=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},E=(e,t)=>{console.warn("[Advertory WARN]: ",e)},C=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return T("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(T("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{T("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{T("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);T("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),S="cmp:loaded";let I="undefined"!=typeof window?window._tcf_:void 0,A=!1;const O=(e,t,r)=>{const i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,a=(s="bypass_tcf",new URLSearchParams(window.location.search).get(s));var s;const l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(T("TCF bypass param detected, returning consent: true"),!0):(T("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(A)return null;if(!I)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=I.getConsentedToAllSync();return T(`TCF consented to all is: ${t}`),I.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(T("Getting TCF consent manager..."),window._tcf_)return T("TCF consent manager is already available"),I=window._tcf_,void e(I);T("TCF consent manager is not available");const n=()=>{T("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(I=window._tcf_,e(I)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(S,n),A=!0,t(new Error("Timeout waiting for CMP to load"))},o);T("Listening for CMP loaded event..."),document.addEventListener(S,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return T(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===w,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===b;if(t||n)return T("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield C(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();return null!==i?i:yield new Promise((e,t)=>{try{if(!I)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{T("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);I.onTcfReady(()=>{T("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),I.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class U{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return n(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return T("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return n(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}function j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L,_;var M=j(function(){if(_)return L;_=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},L=s}());const N={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},$=(e,t)=>M(e,t,N),D=(e,t)=>Object.assign(Object.assign({},e),t),B=(e,t)=>{var n;return $(null!==(n=e)&&void 0!==n?n:{},t)},F={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},K=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||E("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||E("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||E("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||E("pageContext.deviceType is required."),n||E("pageOptions is required."),r||E("placements is required."),(null==i?void 0:i.defaultThreshold)||E("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&E(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},q={placements:(e,t)=>t,takeover:B,refreshConfig:D,editory:B,appearanceConfig:B,pageContext:D,pageOptions:D,pageSectionsSelectors:D,tcf:D};class x{set(e){K(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(q)){const r=t[e];void 0!==r&&(n[e]=q[e](n[e],r))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=$(x.DEFAULT_SITE_HANDLERS,e)}}x.DEFAULT_SITE_HANDLERS={siteEvents:F,initNativeAd:()=>{}};const R=new x;R.modifyConfigProperties.bind(R);const V=864e5,z=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return T("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=V)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=V)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return T("Error with parsing localStorage data"),null}}}})(),H=e=>e.startsWith("glci_"),J=()=>{var e;return((e=[])=>e.filter(H))(null!==(e=(()=>{const e=z.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},W=()=>n(void 0,void 0,void 0,function*(){try{const t=yield(e=500,n(void 0,void 0,void 0,function*(){return Promise.race([n(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),r=new U(t),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===h||o===m?`${p}${o}`:void 0}catch(e){return}var e}),X=()=>n(void 0,void 0,void 0,function*(){const e=[],t=yield W(),n=(()=>{const e=J().map(e=>`${f}${e.replace(v,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),G="front";class Q{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===G?"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:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Y{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Z{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class ee{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class te{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===G?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class ne{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class re{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[i]:new d,[l]:new Q,"no-aftenposten":new Y,[a]:new Z,"no-bergenstidende":new Z,[o]:new ee,"no-stavangeraftenblad":new ee,[r]:new te,[s]:new ne}[n]||new c;P(e.instance,g,t,u)}injectKilkayaMeta(e){return n(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield X();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}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(T(`Kilkaya event for slot: ${n}`),!n)return void T("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(T(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):T("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="flex";(e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))})(null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"")}loadKilkayaScript(e){return n(this,void 0,void 0,function*(){yield((e,...t)=>n(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(l)};i.addEventListener("load",o),i.addEventListener("error",a);const l=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}))(e)})}run(e){return n(this,void 0,void 0,function*(){var t,r;const{tcf:i,pageContext:{isMobileApp:o,countryCode:a},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const l=yield((e,t,r,...i)=>n(void 0,[e,t,r,...i],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return T(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return T(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=O(e,0,n);return(yield i())?(T(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(T(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(l),yield this.loadKilkayaScript(null!==(r=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==r?r:""),this.handleKilkayaStreamTracking(e)})}}const ie=({placementName:n,slotTag:r,fallbackTargetId:i,children:o,pulseData:a,htmlAttributes:s})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[r,i]of Object.entries(e)){n[t?`${t}-${r}`:r]=String(i)}return n},d=l(a,"data-pulse"),c=l(s,"data");return e("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},d,c,{children:[t("div",{className:"inscreen-target"}),t("k5a-stream",{name:n,"slot-tag":r}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:o})]}))},oe=e=>n(void 0,void 0,void 0,function*(){const t=new re;yield t.run(e)});export{ie as Kilkaya,oe as runKilkaya};
@@ -95,7 +95,6 @@ interface AstAdObj {
95
95
  subtype?: string;
96
96
  renderer_url?: string;
97
97
  bidderId?: number | undefined;
98
- uuid: string;
99
98
  }
100
99
  interface AstAdError {
101
100
  code: number;
@@ -326,9 +325,6 @@ interface PulseLegacyExtras {
326
325
  trackViewUIElement?: (eventInput: unknown) => Promise<void>;
327
326
  trackLegacyViewUIElement?: (eventInput: unknown, trackOptions?: unknown) => Promise<unknown>;
328
327
  trackLegacyClickUIElement?: (eventInput: unknown, trackOptions?: unknown) => Promise<unknown>;
329
- trackImpressionAd?: (eventInput: unknown) => Promise<unknown>;
330
- trackEngagementAd?: (eventInput: unknown) => Promise<unknown>;
331
- trackLoadAd?: (eventInput: unknown) => Promise<unknown>;
332
328
  }
333
329
  interface PulseConfig {
334
330
  clientId: string;
@@ -405,8 +401,6 @@ interface Options {
405
401
  clickLinkSelector?: string;
406
402
  containerId?: string;
407
403
  sponsorstripeConfig?: SponsorstripeConfig;
408
- pulse?: PulseConfig;
409
- invCode?: string;
410
404
  }
411
405
  interface AdNativeTemplates {
412
406
  [templatesName: string]: (nativeData: AdNativeData, options: Options) => string | null;