@schibsted/advertory 3.2.2 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/ad-native/cjs/index.d.ts +1 -0
  2. package/ad-native/es/index.d.ts +1 -0
  3. package/aftenposten/cjs/index.d.ts +1 -0
  4. package/aftenposten/cjs/index.js +1 -1
  5. package/aftenposten/es/_auto-entry_aftenposten-DBK-P-rZ.js +1 -0
  6. package/aftenposten/es/{events-DrjENRWS.js → events-Cqu1Zy56.js} +1 -1
  7. package/aftenposten/es/{index-CegNOKv6.js → index-5HcG3YHL.js} +1 -1
  8. package/aftenposten/es/{index-DSAhJe-c.js → index-Bt85xROi.js} +1 -1
  9. package/aftenposten/es/{index-CgybNQ_6.js → index-DCVnq6Wu.js} +1 -1
  10. package/aftenposten/es/{index-Dwufw2iw.js → index-DOZaYqDG.js} +1 -1
  11. package/aftenposten/es/{index-CPaKk9ID.js → index-DYHa7_6N.js} +1 -1
  12. package/aftenposten/es/{index-dv9VwlnZ.js → index-D_eev-rt.js} +1 -1
  13. package/aftenposten/es/{index-D0pGGI5L.js → index-bn45OwGO.js} +1 -1
  14. package/aftenposten/es/{index-CmQnE6UK.js → index-ogtm6ZCw.js} +1 -1
  15. package/aftenposten/es/index.d.ts +1 -0
  16. package/aftenposten/es/index.js +1 -1
  17. package/aftenposten/es/{styles-B27opADh.js → styles-9nCG8Xht.js} +1 -1
  18. package/aftenposten/es/{styles-BjgeRIPG.js → styles-BEhsp5Fz.js} +1 -1
  19. package/aftenposten/es/{styles-CKbDYDrI.js → styles-Brg0SoIO.js} +1 -1
  20. package/aftenposten/es/{styles-DIhVs086.js → styles-CnCGyfm4.js} +1 -1
  21. package/aftenposten/es/{styles-Cso7hiAJ.js → styles-CzCclN90.js} +1 -1
  22. package/aftenposten/es/{styles-BsdxnAwc.js → styles-D2TUqUu5.js} +1 -1
  23. package/aftenposten/es/{styles-DIws-APQ.js → styles-D4F-wlP2.js} +1 -1
  24. package/aftenposten/es/{styles-BjsuP1KZ.js → styles-DNUrWASq.js} +1 -1
  25. package/aftenposten/es/{styles-Bpo6sIP6.js → styles-DNdu0XSg.js} +1 -1
  26. package/aftenposten/es/{styles-B72MXOIO.js → styles-h3PzxQjB.js} +1 -1
  27. package/aftenposten/styles.css +1 -1
  28. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-Cvrh8gY9.js +1 -0
  29. package/aftenpostenv2/es/{events-Democws7.js → events-iE5__Orr.js} +1 -1
  30. package/aftenpostenv2/es/{index-Dg3IbUx3.js → index-B0Bd-8HX.js} +1 -1
  31. package/aftenpostenv2/es/{index-BGlV3FZD.js → index-BUCzsi3d.js} +1 -1
  32. package/aftenpostenv2/es/{index-PIhmbE90.js → index-CFAs03d2.js} +1 -1
  33. package/{aftonbladetv2/es/index-BSfV6Fmd.js → aftenpostenv2/es/index-COU-AUGE.js} +1 -1
  34. package/aftenpostenv2/es/{index-CB5nup6n.js → index-CkzxXA8B.js} +1 -1
  35. package/aftenpostenv2/es/{index-B9DHOQe0.js → index-D92ZrV80.js} +1 -1
  36. package/aftenpostenv2/es/{index-BrcgC3Gq.js → index-DJOPEYQW.js} +1 -1
  37. package/aftenpostenv2/es/{index-jmW3q-9B.js → index-Dq7nEEEt.js} +1 -1
  38. package/aftenpostenv2/es/index.d.ts +1 -0
  39. package/aftenpostenv2/es/index.js +1 -1
  40. package/aftenpostenv2/es/{styles-0z3jO5W5.js → styles-B0BRmXoR.js} +1 -1
  41. package/aftenpostenv2/es/{styles-mCVHby88.js → styles-BKlXV20N.js} +1 -1
  42. package/aftenpostenv2/es/{styles-PqcRSuST.js → styles-BUdg0n9y.js} +1 -1
  43. package/aftenpostenv2/es/{styles-Dra9bb9E.js → styles-BXvWiAlM.js} +1 -1
  44. package/aftenpostenv2/es/{styles-BSzud0kt.js → styles-C98xHaZl.js} +1 -1
  45. package/aftenpostenv2/es/{styles-CnsNSm9S.js → styles-CnsHp6qf.js} +1 -1
  46. package/aftenpostenv2/es/{styles-CTVL1j3y.js → styles-CsR7l_wN.js} +1 -1
  47. package/aftenpostenv2/es/{styles-BuP4g_gi.js → styles-D8eREp4b.js} +1 -1
  48. package/aftenpostenv2/es/{styles-C_9EmkIS.js → styles-DCjx0oGz.js} +1 -1
  49. package/aftenpostenv2/es/{styles-BdTqoa73.js → styles-GxNUHyHD.js} +1 -1
  50. package/aftenpostenv2/styles.css +1 -1
  51. package/aftonbladet/cjs/index.d.ts +1 -0
  52. package/aftonbladet/cjs/index.js +1 -1
  53. package/aftonbladet/es/_auto-entry_aftonbladet-BFi2j6AC.js +1 -0
  54. package/aftonbladet/es/{events-DRkh59rT.js → events-BN191VZA.js} +1 -1
  55. package/aftonbladet/es/{index-yeM5-1rc.js → index-BW5Lv-0P.js} +1 -1
  56. package/aftonbladet/es/{index-CKSl0AZC.js → index-COIuvCyJ.js} +1 -1
  57. package/aftonbladet/es/{index-CPQIFmBf.js → index-CZdK32gW.js} +1 -1
  58. package/aftonbladet/es/{index-Cug8Bh8R.js → index-CjPdB8I3.js} +1 -1
  59. package/aftonbladet/es/{index-Dv10XzUA.js → index-D4EQa36M.js} +1 -1
  60. package/aftonbladet/es/{index-_HEKeaK5.js → index-DrpKSbVQ.js} +1 -1
  61. package/aftonbladet/es/{index-DvZ1ogvW.js → index-nUn5kBi-.js} +1 -1
  62. package/aftonbladet/es/{index-DHTzxrXM.js → index-ottGobaO.js} +1 -1
  63. package/aftonbladet/es/index.d.ts +1 -0
  64. package/aftonbladet/es/index.js +1 -1
  65. package/aftonbladet/es/{styles-53wfc-6U.js → styles-0dTMme1P.js} +1 -1
  66. package/aftonbladet/es/{styles-D9kLEVTH.js → styles-C_hpeS_z.js} +1 -1
  67. package/aftonbladet/es/{styles-C0BUqZ5O.js → styles-CbTU27Da.js} +1 -1
  68. package/aftonbladet/es/{styles-y1m3y_VJ.js → styles-DPlR9hvz.js} +1 -1
  69. package/aftonbladet/es/{styles-BlLHKPea.js → styles-Dxa22cKV.js} +1 -1
  70. package/aftonbladet/styles.css +1 -1
  71. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-BquPqy_H.js +1 -0
  72. package/aftonbladetv2/es/{events-6tFVfTm6.js → events-CefUnYMp.js} +1 -1
  73. package/aftonbladetv2/es/{index-CmoG1fxA.js → index-B-fXHRkO.js} +1 -1
  74. package/aftonbladetv2/es/{index-BBf91OI7.js → index-C3Bi2AQH.js} +1 -1
  75. package/aftonbladetv2/es/{index-CE8kklqU.js → index-CzRSSk4s.js} +1 -1
  76. package/{aftenpostenv2/es/index-BNjC-Wig.js → aftonbladetv2/es/index-D6fHJaju.js} +1 -1
  77. package/aftonbladetv2/es/{index-DrKCLRHw.js → index-DCJ_NIlP.js} +1 -1
  78. package/aftonbladetv2/es/{index-p34pd6ur.js → index-DDNhRlVC.js} +1 -1
  79. package/aftonbladetv2/es/{index-DVfYF8Th.js → index-DieMzzVu.js} +1 -1
  80. package/aftonbladetv2/es/{index-BSnzRcez.js → index-EAn6164T.js} +1 -1
  81. package/aftonbladetv2/es/index.d.ts +1 -0
  82. package/aftonbladetv2/es/index.js +1 -1
  83. package/aftonbladetv2/es/{styles-D5HKpM5R.js → styles-BQgU9AmY.js} +1 -1
  84. package/aftonbladetv2/es/{styles-D4b2jm3S.js → styles-CMIHhYa8.js} +1 -1
  85. package/aftonbladetv2/es/{styles-CTr10anm.js → styles-Cuqwi-XT.js} +1 -1
  86. package/aftonbladetv2/es/{styles-BpbLjiP5.js → styles-D63NuoBA.js} +1 -1
  87. package/aftonbladetv2/es/{styles-6VvtHt14.js → styles-GKEmD1TC.js} +1 -1
  88. package/aftonbladetv2/styles.css +1 -1
  89. package/bt/cjs/index.d.ts +1 -0
  90. package/bt/cjs/index.js +1 -1
  91. package/bt/es/_auto-entry_bt-OHXQmDBO.js +1 -0
  92. package/bt/es/{events-BLoqvFKT.js → events-BOZpqm-m.js} +1 -1
  93. package/bt/es/{index-T1sdho36.js → index--M2u9gmx.js} +1 -1
  94. package/{sa/es/index-C7uSy7bD.js → bt/es/index-B4ToL_6j.js} +1 -1
  95. package/bt/es/{index-hchbQ_ZK.js → index-BE98xp0u.js} +1 -1
  96. package/{sa/es/index-B4tkdAGR.js → bt/es/index-BHKUw2mq.js} +1 -1
  97. package/{sa/es/index-BCHEBWk2.js → bt/es/index-CEEPtjwq.js} +1 -1
  98. package/bt/es/{index-M2LNovBQ.js → index-CRt2N3Bm.js} +1 -1
  99. package/bt/es/{index-COj2EhIP.js → index-LdJ7nOoY.js} +1 -1
  100. package/bt/es/{index-DdGqOiXR.js → index-XytIatuW.js} +1 -1
  101. package/bt/es/index.d.ts +1 -0
  102. package/bt/es/index.js +1 -1
  103. package/{sa/es/styles-V162s7rI.js → bt/es/styles-BMwuMtgM.js} +1 -1
  104. package/{vg/es/styles-BHBdn7J4.js → bt/es/styles-BcBEC_IL.js} +1 -1
  105. package/{sa/es/styles-5s75vBaD.js → bt/es/styles-BqIY10Yl.js} +1 -1
  106. package/bt/es/{styles-CylFEvvI.js → styles-By_daZRd.js} +1 -1
  107. package/bt/es/{styles-Bz3MWj_-.js → styles-CJ3U7paY.js} +1 -1
  108. package/bt/es/{styles-C2AyS7eo.js → styles-CKN2B-sU.js} +1 -1
  109. package/{sa/es/styles-COTImBXY.js → bt/es/styles-CxHCgtse.js} +1 -1
  110. package/bt/es/{styles-DRuzAbmr.js → styles-D-xwwOah.js} +1 -1
  111. package/{vg/es/styles-BEpKbg_A.js → bt/es/styles-P1dxB6TD.js} +1 -1
  112. package/bt/styles.css +1 -1
  113. package/btv2/es/_auto-entry_btv2-BlNsCiYj.js +1 -0
  114. package/btv2/es/{events-mwJPAuA1.js → events-BcTtxjj7.js} +1 -1
  115. package/btv2/es/{index-DTFzGqx1.js → index-B6Hm-Hv8.js} +1 -1
  116. package/btv2/es/{index-7bUHcOq1.js → index-CIaEiHzr.js} +1 -1
  117. package/btv2/es/{index-4vCLSkkD.js → index-CygLkcNA.js} +1 -1
  118. package/btv2/es/{index-fK8Ego8J.js → index-D1Yrt-1r.js} +1 -1
  119. package/btv2/es/{index-BGjqQF7a.js → index-DGbB3xBX.js} +1 -1
  120. package/btv2/es/{index-B27ZlpSM.js → index-Dg5pQPbz.js} +1 -1
  121. package/btv2/es/{index-DSttVMRW.js → index-N356LC0U.js} +1 -1
  122. package/btv2/es/{index-C6Q2I7bv.js → index-fyuk4tyA.js} +1 -1
  123. package/btv2/es/index.d.ts +1 -0
  124. package/btv2/es/index.js +1 -1
  125. package/{vgv2/es/styles-DU_Wo7YG.js → btv2/es/styles-BTuctoyI.js} +1 -1
  126. package/{sav2/es/styles-BJsFM_9y.js → btv2/es/styles-CW3a62et.js} +1 -1
  127. package/{sav2/es/styles-DEiDQ5QW.js → btv2/es/styles-CX8lWfO-.js} +1 -1
  128. package/btv2/es/{styles-C7dHSQsv.js → styles-CyMGQoiU.js} +1 -1
  129. package/{sav2/es/styles-DjDuuA9K.js → btv2/es/styles-DdL1FSUA.js} +1 -1
  130. package/btv2/es/{styles-D1ZVnVh2.js → styles-qjuM72S7.js} +1 -1
  131. package/{vgv2/es/styles-CgViuPgW.js → btv2/es/styles-ysfNkPhH.js} +1 -1
  132. package/btv2/es/{styles-D-L5_1Un.js → styles-zUW1vwj6.js} +1 -1
  133. package/btv2/styles.css +1 -1
  134. package/dr-edition/cjs/index.d.ts +1 -0
  135. package/dr-edition/es/index.d.ts +1 -0
  136. package/e24/es/_auto-entry_e24-CzRl2aXy.js +1 -0
  137. package/e24/es/{events-CZvtHa-f.js → events-BTu9C-i_.js} +1 -1
  138. package/e24/es/{index-C10BWbDO.js → index-CDP2wKH8.js} +1 -1
  139. package/e24/es/{index-D_oyUfi6.js → index-CDcvPvW5.js} +1 -1
  140. package/e24/es/{index-7a16ewyt.js → index-CKFO0Y_Y.js} +1 -1
  141. package/e24/es/{index-Bp2ZGPYg.js → index-C_GZ1fP1.js} +1 -1
  142. package/e24/es/{index-BZKdGC6J.js → index-DGprgqQv.js} +1 -1
  143. package/e24/es/{index-CmtVVFzI.js → index-DpRxrAks.js} +1 -1
  144. package/e24/es/{index-gK-fNyK7.js → index-VCQteT53.js} +1 -1
  145. package/e24/es/{index-D91TNahh.js → index-zcvQPNrj.js} +1 -1
  146. package/e24/es/index.d.ts +1 -0
  147. package/e24/es/index.js +1 -1
  148. package/e24/es/{styles-CfPtnivc.js → styles-BGBe-TlB.js} +1 -1
  149. package/e24/es/{styles-Cnx8iRAv.js → styles-C5UHzr0I.js} +1 -1
  150. package/e24/es/{styles-DRAVOV0r.js → styles-CJMnCKdI.js} +1 -1
  151. package/e24/es/{styles-CR0TOY7k.js → styles-CZFoYvXd.js} +1 -1
  152. package/e24/es/{styles-GIwKqlwZ.js → styles-CddYZWmS.js} +1 -1
  153. package/e24/es/{styles-DYC3mOzH.js → styles-Ch55ljFl.js} +1 -1
  154. package/{tv4/es/styles-hjnZXYfR.js → e24/es/styles-D8M_pAoK.js} +1 -1
  155. package/e24/es/{styles-my-SCOxw.js → styles-DFWTzDCx.js} +1 -1
  156. package/e24/es/{styles-D-kHzxKO.js → styles-DcQi-sSQ.js} +1 -1
  157. package/e24/es/{styles-DtcTrP4x.js → styles-PC1Upjds.js} +1 -1
  158. package/e24/es/{styles-DbWja7UM.js → styles-oc2Nr1W7.js} +1 -1
  159. package/e24/styles.css +1 -1
  160. package/fotbollskanalen/cjs/index.d.ts +1 -0
  161. package/fotbollskanalen/cjs/index.js +1 -1
  162. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-Bz0hxr5j.js +1 -0
  163. package/fotbollskanalen/es/{events-BeynYOJQ.js → events-BGIQSrYs.js} +1 -1
  164. package/fotbollskanalen/es/{index-C1LMZAQz.js → index-5O6FwlB5.js} +1 -1
  165. package/fotbollskanalen/es/{index-DE770Dh-.js → index-B3lfBhXX.js} +1 -1
  166. package/fotbollskanalen/es/{index-ByFwH3DW.js → index-BO-54KXy.js} +1 -1
  167. package/fotbollskanalen/es/{index-D7STA7DU.js → index-BxpIat0o.js} +1 -1
  168. package/fotbollskanalen/es/{index-DF7yaBwD.js → index-C7w3w66R.js} +1 -1
  169. package/fotbollskanalen/es/{index-BJS4HYoW.js → index-CgJIraMC.js} +1 -1
  170. package/fotbollskanalen/es/{index-ClO0xbor.js → index-CnehsAPW.js} +1 -1
  171. package/fotbollskanalen/es/{index-CuaAh0WV.js → index-FV4q89dj.js} +1 -1
  172. package/fotbollskanalen/es/index.d.ts +1 -0
  173. package/fotbollskanalen/es/index.js +1 -1
  174. package/fotbollskanalen/es/{styles-YsIeNNlx.js → styles-PGhSdsUO.js} +1 -1
  175. package/godare/cjs/index.d.ts +1 -0
  176. package/godare/cjs/index.js +1 -1
  177. package/godare/styles.css +1 -1
  178. package/godt/cjs/index.d.ts +1 -0
  179. package/godt/cjs/index.js +1 -1
  180. package/kilkaya/cjs/index.d.ts +1 -0
  181. package/kilkaya/es/index.d.ts +1 -0
  182. package/klart/cjs/index.d.ts +1 -0
  183. package/klart/cjs/index.js +1 -1
  184. package/klart/styles.css +1 -1
  185. package/koket/cjs/index.d.ts +1 -0
  186. package/koket/cjs/index.js +1 -1
  187. package/koket/es/_auto-entry_koket--_ddb7lK.js +1 -0
  188. package/koket/es/{events-Cu_GoF4K.js → events-6nyUPYMA.js} +1 -1
  189. package/koket/es/{index-DeVNsDdL.js → index-B9DKV51B.js} +1 -1
  190. package/koket/es/{index-B9kalaYy.js → index-DQc6ocVc.js} +1 -1
  191. package/koket/es/{index-6n2Dinx5.js → index-DtNjqEed.js} +1 -1
  192. package/koket/es/{index-yIsdmpkx.js → index-K1iqNBWM.js} +1 -1
  193. package/{svdv2/es/index-0eug-7x7.js → koket/es/index-MtoZiv3d.js} +1 -1
  194. package/koket/es/{index-C4akoMQa.js → index-Ot2CZaLn.js} +1 -1
  195. package/koket/es/{index-C0unPOJn.js → index-XKUOImaQ.js} +1 -1
  196. package/koket/es/{index-5JJttcRn.js → index-sWxCR8Ml.js} +1 -1
  197. package/koket/es/index.d.ts +1 -0
  198. package/koket/es/index.js +1 -1
  199. package/{svdv2/es/styles-CCyCHLkc.js → koket/es/styles-Cjp_Zvdk.js} +1 -1
  200. package/minmote/cjs/index.d.ts +1 -0
  201. package/minmote/cjs/index.js +1 -1
  202. package/package.json +1 -1
  203. package/pent/cjs/index.d.ts +1 -0
  204. package/pent/cjs/index.js +1 -1
  205. package/sa/cjs/index.d.ts +1 -0
  206. package/sa/cjs/index.js +1 -1
  207. package/sa/es/_auto-entry_sa-68hPgzOE.js +1 -0
  208. package/sa/es/{events-yVq3tqAW.js → events-CgAd0Z29.js} +1 -1
  209. package/sa/es/{index-APVP3B0G.js → index-BNco1z0q.js} +1 -1
  210. package/sa/es/{index-B5CjzLAF.js → index-BbecBWNc.js} +1 -1
  211. package/{bt/es/index-l3HvoC6n.js → sa/es/index-BjBVcxgu.js} +1 -1
  212. package/{bt/es/index-DJX6JEiI.js → sa/es/index-BmaWL-Ks.js} +1 -1
  213. package/sa/es/{index-CgGbtlfB.js → index-CVH8TkyY.js} +1 -1
  214. package/sa/es/{index-D0JTYjdl.js → index-D9w43VS3.js} +1 -1
  215. package/sa/es/{index-DQzS3gK1.js → index-tFuIp1FJ.js} +1 -1
  216. package/{bt/es/index-CV1nAzwA.js → sa/es/index-tze8pOuC.js} +1 -1
  217. package/sa/es/index.d.ts +1 -0
  218. package/sa/es/index.js +1 -1
  219. package/sa/es/{styles-DsYAmrUs.js → styles-BGOz_z3B.js} +1 -1
  220. package/{bt/es/styles-dXwl3Ypn.js → sa/es/styles-BogKIWIO.js} +1 -1
  221. package/{vg/es/styles-26RHBauM.js → sa/es/styles-CWAXu0lH.js} +1 -1
  222. package/{bt/es/styles-CJQqyPxT.js → sa/es/styles-CZAYzrJ7.js} +1 -1
  223. package/{bt/es/styles-DJE1cPdH.js → sa/es/styles-CibLfWhW.js} +1 -1
  224. package/{vg/es/styles-COeZHuYz.js → sa/es/styles-LhuDLiV3.js} +1 -1
  225. package/sa/es/{styles-Dwwgebw7.js → styles-VCa54xrt.js} +1 -1
  226. package/sa/es/{styles-hlumwwqu.js → styles-gsIOLruY.js} +1 -1
  227. package/sa/es/{styles-D9gH1gcS.js → styles-nJEjsyVG.js} +1 -1
  228. package/sa/styles.css +1 -1
  229. package/sav2/es/_auto-entry_sav2-qf-8QRzu.js +1 -0
  230. package/sav2/es/{events-XF5ahIwL.js → events-DIbUp8mN.js} +1 -1
  231. package/sav2/es/{index-DGNS6BiB.js → index-3KLXJWWv.js} +1 -1
  232. package/sav2/es/{index-LoHsOy5M.js → index-BBF8Uoyq.js} +1 -1
  233. package/sav2/es/{index-Bs8dfY2P.js → index-BSQnxX5d.js} +1 -1
  234. package/sav2/es/{index-9T8Se4iq.js → index-C9PwttAB.js} +1 -1
  235. package/sav2/es/{index-BzkA24nN.js → index-Cmm5q7RS.js} +1 -1
  236. package/sav2/es/{index-Dh4KYmeO.js → index-CqDEEn5N.js} +1 -1
  237. package/sav2/es/{index-B9qsIzEA.js → index-CzVJtbY1.js} +1 -1
  238. package/sav2/es/{index-fqfwZ5EH.js → index-Df-gYLoo.js} +1 -1
  239. package/sav2/es/index.d.ts +1 -0
  240. package/sav2/es/index.js +1 -1
  241. package/sav2/es/{styles-DgoRRORR.js → styles-BOoZudlR.js} +1 -1
  242. package/sav2/es/{styles-BMx0y4PF.js → styles-BWJAqdLM.js} +1 -1
  243. package/{vgv2/es/styles-CCvnxwQA.js → sav2/es/styles-B_oWy0V8.js} +1 -1
  244. package/{btv2/es/styles-BT2dfbBv.js → sav2/es/styles-DDhPrtAH.js} +1 -1
  245. package/{btv2/es/styles-tppnGZ0F.js → sav2/es/styles-Df3E_TrV.js} +1 -1
  246. package/sav2/es/{styles-D5g6A7zN.js → styles-FiedYLO2.js} +1 -1
  247. package/sav2/es/{styles-CZTOmDOv.js → styles-krN6Us0L.js} +1 -1
  248. package/{vgv2/es/styles-keX5yPKp.js → sav2/es/styles-vTBMK8RO.js} +1 -1
  249. package/sav2/styles.css +1 -1
  250. package/svd/cjs/index.d.ts +1 -0
  251. package/svd/cjs/index.js +1 -1
  252. package/svd/es/_auto-entry_svd-CwL6BDge.js +1 -0
  253. package/svd/es/{events-CRsiiPk6.js → events-CNI_YlQm.js} +1 -1
  254. package/svd/es/{index-DkVcVP-K.js → index-B6bU536a.js} +1 -1
  255. package/svd/es/{index-DyhzJNY2.js → index-B6nd1pKq.js} +1 -1
  256. package/svd/es/{index-BM3GCcX9.js → index-BZiee24j.js} +1 -1
  257. package/{tv4/es/index-C-89Wkmx.js → svd/es/index-BhXc0kCJ.js} +1 -1
  258. package/svd/es/{index-DmmssceC.js → index-Bpxk3Ry5.js} +1 -1
  259. package/svd/es/{index-BGOj-ohJ.js → index-CCKPHXoJ.js} +1 -1
  260. package/svd/es/{index-DXQM4yO_.js → index-D7gWKM6a.js} +1 -1
  261. package/svd/es/{index-Bta7BXjx.js → index-nPsaohcr.js} +1 -1
  262. package/svd/es/index.d.ts +1 -0
  263. package/svd/es/index.js +1 -1
  264. package/svd/es/{styles-DNEAZ4PP.js → styles-CHlNdNAX.js} +1 -1
  265. package/svd/es/{styles-BvMVLpld.js → styles-CQHkDeFZ.js} +1 -1
  266. package/svd/es/{styles-hVuqmMFr.js → styles-Du-sz-Es.js} +1 -1
  267. package/svd/es/{styles-CB4ILVgL.js → styles-DwAYvnqD.js} +1 -1
  268. package/svd/es/{styles-Cr9GVEqf.js → styles-SuMtc9vI.js} +1 -1
  269. package/svd/es/{styles-DqXCrCAl.js → styles-rzFgeLfm.js} +1 -1
  270. package/svd/styles.css +1 -1
  271. package/svdv2/es/_auto-entry_svdv2-Dhz1DSkf.js +1 -0
  272. package/svdv2/es/{events-CF-2LZek.js → events-x4qH8oFq.js} +1 -1
  273. package/svdv2/es/{index-DWC57QaQ.js → index-BEzNA4oj.js} +1 -1
  274. package/svdv2/es/{index-aWgcjubc.js → index-BneAlmOT.js} +1 -1
  275. package/svdv2/es/{index-CFiWCA2u.js → index-BsR-yNYo.js} +1 -1
  276. package/svdv2/es/{index-DXTr-KuO.js → index-BuScnjot.js} +1 -1
  277. package/svdv2/es/{index-Bog6dVhD.js → index-CR5KM7SP.js} +1 -1
  278. package/{koket/es/index-FMQk9zqv.js → svdv2/es/index-CiGTxgI7.js} +1 -1
  279. package/svdv2/es/{index-DDE7f7kd.js → index-DUJhc2iH.js} +1 -1
  280. package/svdv2/es/{index-Dir6InI4.js → index-DqZz46h7.js} +1 -1
  281. package/svdv2/es/index.d.ts +1 -0
  282. package/svdv2/es/index.js +1 -1
  283. package/svdv2/es/{styles-Cc8n8sm0.js → styles-C16Hg_9I.js} +1 -1
  284. package/svdv2/es/{styles-BPkpBEkH.js → styles-CFpONIbS.js} +1 -1
  285. package/svdv2/es/{styles-C_P3Udgf.js → styles-CKKBSjcd.js} +1 -1
  286. package/svdv2/es/{styles-DliXP4HH.js → styles-C_n-xY6l.js} +1 -1
  287. package/svdv2/es/{styles-NH8RWVgl.js → styles-DbvwJovE.js} +1 -1
  288. package/{koket/es/styles-b93ozvKM.js → svdv2/es/styles-rFYD8jH5.js} +1 -1
  289. package/svdv2/styles.css +1 -1
  290. package/tek/cjs/index.d.ts +1 -0
  291. package/tek/cjs/index.js +1 -1
  292. package/tracker/cjs/index.d.ts +1 -0
  293. package/tracker/es/index.d.ts +1 -0
  294. package/tv4/cjs/index.d.ts +1 -0
  295. package/tv4/cjs/index.js +1 -1
  296. package/tv4/es/_auto-entry_tv4-BL-H_mx3.js +1 -0
  297. package/tv4/es/{events-1SBMyZ7_.js → events-ICBK1fIW.js} +1 -1
  298. package/tv4/es/{index-Bjj9odBL.js → index-BDW8gJ48.js} +1 -1
  299. package/tv4/es/{index-BeRSc21s.js → index-BhXpJPf5.js} +1 -1
  300. package/tv4/es/{index-O9RPRIBp.js → index-BiBnv1pk.js} +1 -1
  301. package/{svd/es/index-V7Iw_pvr.js → tv4/es/index-C2eSMWlD.js} +1 -1
  302. package/tv4/es/{index-TYclySpq.js → index-CGkmD7bd.js} +1 -1
  303. package/tv4/es/{index-Cb2_g197.js → index-CspJmiRq.js} +1 -1
  304. package/tv4/es/{index-DoBFUDOP.js → index-Ct9vun_h.js} +1 -1
  305. package/tv4/es/{index-RW2f8I6f.js → index-Dp9dTuJ-.js} +1 -1
  306. package/tv4/es/index.d.ts +1 -0
  307. package/tv4/es/index.js +1 -1
  308. package/{e24/es/styles-CdI5SkGI.js → tv4/es/styles-Dp2r23y5.js} +1 -1
  309. package/tvnu/cjs/index.d.ts +1 -0
  310. package/tvnu/cjs/index.js +1 -1
  311. package/types/index.d.ts +1 -0
  312. package/vg/cjs/index.d.ts +1 -0
  313. package/vg/cjs/index.js +1 -1
  314. package/vg/es/_auto-entry_vg-uLl35yLR.js +1 -0
  315. package/vg/es/{events-BuQlrCLH.js → events-BLXLXuWe.js} +1 -1
  316. package/vg/es/{index-CK5qeKgG.js → index-B5otdnw_.js} +1 -1
  317. package/vg/es/{index-CHFgJbe4.js → index-BPQmWr66.js} +1 -1
  318. package/vg/es/{index-DZu5Ed8J.js → index-C3LkRXfx.js} +1 -1
  319. package/vg/es/{index-C2wpDfAL.js → index-CCUPjZFH.js} +1 -1
  320. package/vg/es/{index-CWzWz5a6.js → index-D0cJZL7m.js} +1 -1
  321. package/vg/es/{index-Cq5gipZf.js → index-DRd4Pktn.js} +1 -1
  322. package/vg/es/{index-SM0WAFbs.js → index-DvTKqu09.js} +1 -1
  323. package/vg/es/{index-Da7ULuG6.js → index-qcya1o9y.js} +1 -1
  324. package/vg/es/index.d.ts +1 -0
  325. package/vg/es/index.js +1 -1
  326. package/vg/es/{styles-DEKo5QfR.js → styles-B-vuEWMX.js} +1 -1
  327. package/vg/es/{styles-DeB-cweC.js → styles-BAPzsvAx.js} +1 -1
  328. package/{bt/es/styles-BTqJXBiQ.js → vg/es/styles-BA_PakNl.js} +1 -1
  329. package/vg/es/{styles-3Dd0BryL.js → styles-BDa7fY-0.js} +1 -1
  330. package/vg/es/{styles-D6IJlohB.js → styles-BWT2o48e.js} +1 -1
  331. package/{sa/es/styles-CUNWCBIW.js → vg/es/styles-BtC2qZEZ.js} +1 -1
  332. package/vg/es/{styles-BxpQ61iC.js → styles-C6joIAuY.js} +1 -1
  333. package/vg/es/{styles-CpQVrRAA.js → styles-CFaY_aiU.js} +1 -1
  334. package/{bt/es/styles-Dz8cE4l0.js → vg/es/styles-CMYDu27S.js} +1 -1
  335. package/vg/es/{styles-DrVcnOGg.js → styles-D07QPe1g.js} +1 -1
  336. package/vg/es/{styles-BKfismG7.js → styles-DE9e5yAW.js} +1 -1
  337. package/vg/es/{styles-CPLRgCEk.js → styles-DIvEh2Od.js} +1 -1
  338. package/{sa/es/styles-B1842oZN.js → vg/es/styles-DXNTi4nL.js} +1 -1
  339. package/vg/es/{styles-DBpa8muB.js → styles-Db0dT2Tx.js} +1 -1
  340. package/vg/es/{styles-DU59yBg5.js → styles-Dn7cdVcI.js} +1 -1
  341. package/vg/styles.css +1 -1
  342. package/vgv2/es/_auto-entry_vgv2-DSkbOMBR.js +1 -0
  343. package/vgv2/es/{events-DOFxnnA7.js → events-AiYAy7-v.js} +1 -1
  344. package/vgv2/es/{index-CswsXDSs.js → index-B5PvUfsb.js} +1 -1
  345. package/vgv2/es/{index-WB6XEKm7.js → index-B8Wv3Nvr.js} +1 -1
  346. package/vgv2/es/{index-i2yyBILA.js → index-BSneDw8G.js} +1 -1
  347. package/vgv2/es/{index-Ca2fGmQx.js → index-BcEXVWOn.js} +1 -1
  348. package/vgv2/es/{index-Bot9CTJV.js → index-BxXlR7-h.js} +1 -1
  349. package/vgv2/es/{index-Ma57SDUA.js → index-CdPZoJXD.js} +1 -1
  350. package/vgv2/es/{index-CX8uheRe.js → index-Dp9FyvvN.js} +1 -1
  351. package/vgv2/es/{index-JZ3YN5Sr.js → index-b2Y7SB8H.js} +1 -1
  352. package/vgv2/es/index.d.ts +1 -0
  353. package/vgv2/es/index.js +1 -1
  354. package/{sav2/es/styles-CdLKnnME.js → vgv2/es/styles-BBd8Rxgx.js} +1 -1
  355. package/vgv2/es/{styles-qMa_FlMV.js → styles-BIvUR7TN.js} +1 -1
  356. package/vgv2/es/{styles-DBlLkOCk.js → styles-BR4LEZOu.js} +1 -1
  357. package/{btv2/es/styles-BDcm6l_K.js → vgv2/es/styles-BUuUJkcL.js} +1 -1
  358. package/vgv2/es/{styles-Rf3-FhDC.js → styles-BW-VRNa3.js} +1 -1
  359. package/{btv2/es/styles-BoE2aqDI.js → vgv2/es/styles-BWBMz628.js} +1 -1
  360. package/vgv2/es/{styles-DmDv_mOR.js → styles-BXeAizyh.js} +1 -1
  361. package/vgv2/es/{styles-BSkv1odM.js → styles-Bazr0tOL.js} +1 -1
  362. package/{btv2/es/styles-Cs51WvzO.js → vgv2/es/styles-BcrcfwnZ.js} +1 -1
  363. package/vgv2/es/{styles-xV9u0wjH.js → styles-CZz4Efwu.js} +1 -1
  364. package/vgv2/es/{styles-DoDfDI5z.js → styles-CiASXZPY.js} +1 -1
  365. package/vgv2/es/{styles-DH-i1qyl.js → styles-DA2BlbVw.js} +1 -1
  366. package/vgv2/es/{styles-DdYg3v86.js → styles-Duz1akFF.js} +1 -1
  367. package/vgv2/es/{styles-CluL3Gpp.js → styles-PuFZHNZ-.js} +1 -1
  368. package/vgv2/es/{styles-C-TjZqOX.js → styles-Y130l34b.js} +1 -1
  369. package/vgv2/styles.css +1 -1
  370. package/aftenposten/es/_auto-entry_aftenposten-BuipyN9d.js +0 -1
  371. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CKC4Gv3Z.js +0 -1
  372. package/aftonbladet/es/_auto-entry_aftonbladet-81vtIJn1.js +0 -1
  373. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CKfvGlcc.js +0 -1
  374. package/bt/es/_auto-entry_bt-xDc-C-v-.js +0 -1
  375. package/btv2/es/_auto-entry_btv2-Bc91bew6.js +0 -1
  376. package/e24/es/_auto-entry_e24-BXqR0BmT.js +0 -1
  377. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-Cs7gnKMg.js +0 -1
  378. package/koket/es/_auto-entry_koket-Ce7N4QaH.js +0 -1
  379. package/sa/es/_auto-entry_sa-B2AqevmK.js +0 -1
  380. package/sav2/es/_auto-entry_sav2-BNuM3ule.js +0 -1
  381. package/svd/es/_auto-entry_svd-BJhOAv-s.js +0 -1
  382. package/svdv2/es/_auto-entry_svdv2-DHU3lz4v.js +0 -1
  383. package/tv4/es/_auto-entry_tv4-woxZNojt.js +0 -1
  384. package/vg/es/_auto-entry_vg-DvifCShz.js +0 -1
  385. package/vgv2/es/_auto-entry_vgv2-opSbtN9z.js +0 -1
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const r={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},i={ANY_FULLSCREEN:[{width:6,height:6},{width:1920,height:1080},{width:3,height:3}],ABSOLUTE_FULLSCREEN:[{width:6,height:6}],NINESIXTEEN:[{width:1080,height:1920}],FIXED_FULLSCREEN:[{width:1920,height:1080},{width:3,height:3}],FULLWIDTH:[{width:5},{width:400,height:400}],FULLSQUARE:[{width:1080,height:1080}],NATIVE_AD:[{width:1,height:1}],TAKEOVER:[{width:4,height:4}],VELVET_TAKEOVER:[{width:7,height:7}],WALLPAPER:[{width:2,height:2}],COLLAPSE:[{width:2,height:1}]},o={wallpaper:1600,"l-format":1600},a=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&x(e,r.ANY_FULLSCREEN)},d=e=>{const{native:t}=e;return!!t},s=e=>x(e,r.FULLWIDTH),l=e=>{const{targetId:t}=e;return t.includes("takeover")||x(e,r.TAKEOVER)},c=e=>x(e,r.TAKEOVER),p=e=>x(e,r.WALLPAPER),u=e=>x(e,r.COLLAPSE),v=e=>e.targetId.includes("sponsorstripe"),g=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},h=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),m=e=>e.targetId.startsWith("midboard"),f=e=>e.targetId.includes("widescreen"),y=e=>e.width>=1260&&e.width<=1280,w=e=>e.width>=1600&&e.width<=1620,b=e=>{var t,n;return"string"==typeof(null===(t=e.native)||void 0===t?void 0:t.desc2)&&(null===(n=e.native)||void 0===n?void 0:n.desc2.endsWith("_alcohol"))},x=(e,t)=>{const n=i[t];if(!n)return!1;return!!n.find(t=>{var n,r;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(r=e.banner)||void 0===r?void 0:r.height)||e.height,a=t.width===i,d=!t.height||t.height===o;return a&&d})};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C,I;var A=E(function(){if(I)return C;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)?d((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 d;var n=t.customMerge(e);return"function"==typeof n?n:d}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function d(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var d=Array.isArray(i);return d===Array.isArray(t)?d?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},C=d}());const S=["placements","takeover","refreshConfig","editory"],T={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},k=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},O=(e,t)=>{console.warn("[Advertory WARN]: ",e)},P=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||O("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||O("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||O("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||O("pageContext.deviceType is required."),n||O("pageOptions is required."),r||O("placements is required."),(null==i?void 0:i.defaultThreshold)||O("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.fullscreenScroll)||void 0===r?void 0:r.enabled),property:"main",featureName:"fullscreenScroll"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&O(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},L=6;class j{set(e){P(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const n of S){const r=e[n];void 0!==r&&(t[n]=r)}Object.assign(this.config,t),Object.prototype.hasOwnProperty.call(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.prototype.hasOwnProperty.call(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.prototype.hasOwnProperty.call(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=A(j.DEFAULT_SITE_HANDLERS,e)}}j.DEFAULT_SITE_HANDLERS={siteEvents:T,initNativeAd:function(){}};const N=new j,_=N.modifyConfigProperties.bind(N),$={NO:"no",SE:"se"},D=e=>e===$.NO?"no-sno":"se-generic";let R="";const q=new Map,M=e=>{const{pageSetup:{tag:t}={}}=N.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(R!==window.location.pathname&&(q.clear(),R=window.location.pathname),e.map(e=>{var t;const n=e.invCode.replace(/_\d+$/,""),r=null!==(t=q.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=N.get();return`${e}-${t}`})()}-count`]=r,q.set(n,r+1),e})):e},F=e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e},B="0123456789abcdefghijklmnopqrstuvwxyz",U=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=B[Math.floor(36*Math.random())]}return t},V=(e,t)=>{let n=null;return(...r)=>{null===n&&(e(...r),n=setTimeout(()=>{n=null},t))}},H=e=>{window.apntag.anq.push(e)},z=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),W=new Promise(e=>{if("undefined"==typeof document||!document.hidden)return void e();const t=()=>{document.hidden||(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t,{once:!0})}),K="advertory-wallpaper-background",G="advertory-with-horseshoe",J=()=>{const e=document.querySelector(`.${K}`);e&&e.remove()},Y=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${K}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},Q=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,X=e=>Q.test(e),Z=e=>e.startsWith("wallpaper:color:"),ee=e=>{const t=document.querySelector(`.${K}`);t&&(t.style.backgroundImage=`url(${e})`)},te=e=>{const t=document.querySelector(`.${K}`);t&&(t.style.backgroundColor=e)};var ne=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(G),n.classList.add(G))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{J();const e=document.createElement("div");e.classList.add(K),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(Y(n),window.addEventListener("scroll",()=>Y(n)))})(n),e()},isShortWallpaperColorMessage:Z,isShortWallpaperUrlMessage:X,removeWallpaperBackground:J,setWallpaperBackgroundColor:te,setWallpaperBackgroundImage:ee});const re=e=>new URLSearchParams(window.location.search).get(e),ie="finncode",oe="takeover",ae="native_override_desc2",de=()=>null!==re("disable_prebid"),se=e=>{if("0"===re("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&J())},le=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"))};class ce{initialize(){this.DATA=Object.assign({},ce.INITIAL_DATA)}getData(e){if(!this.DATA)throw new Error("Storage was accessed with invalid data.");return this.DATA[e]}setData(e,t){if(!this.DATA)throw new Error("Storage was accessed before it had been initialized.");this.DATA[e]=Object.assign(Object.assign({},this.DATA[e]),t)}}ce.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const pe=new ce,ue=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,r=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${r}px`)},ve=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:r}=(e=>{const t=pe.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=r},ge=()=>{J();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{se(e.id),ve(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),r=null==t?void 0:t.getAttribute("data-probable-width");n&&r&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",r+"px"))})(e.id),e.innerHTML="",e.id=F(e.id)}),H(()=>window.apntag.clearRequest())},he="noGroupedPlacements",me=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},fe=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},ye=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:r,pageContext:{deviceType:i}}=N.get(),o=n[i].filter(fe)||[],a=e?document.querySelector(e):document;if(!a)return[];const d=o.reduce((e,t)=>{const n=me(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=o.filter(({targetId:e})=>e.match(t)),d=(null==r?void 0:r.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,s=a.querySelectorAll(d),l=Array.from(s).filter(({id:e})=>e.match(t)).map((e,t)=>{var r;const i=we(e,t,n),o=i.finnBlink&&!i.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(r=i.finnBlink)||void 0===r?void 0:r.loadOnlyFinnBlink),d=`${e.id}-${U(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),o&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&pe.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},i),{targetId:d})});return M(l)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(d)},we=(e,t,n)=>{const r=n[t],i=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:o||i},be=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=N.get(),r=(null==t?void 0:t[n])||{},i=Object.values(r).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=F(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[r,i]of Object.entries(t))n[r]=e.filter(e=>i.includes(F(e.targetId)));return n})(e,r),d=Object.keys(o),s=((e,t)=>e.filter(e=>!t.has(F(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),o),{[he]:s})};function xe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ee(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function d(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const Ce=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 k("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(k("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{k("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{k("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);k("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),Ie="cmp:loaded";let Ae="undefined"!=typeof window?window._tcf_:void 0,Se=!1;const Te=(e,t,n)=>{const r=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,o=re("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(k("TCF bypass param detected, returning consent: true"),!0):(k("TCF is not enabled, returning consent: true"),!0))(r,o))return!0;if(Se)return null;if(!Ae)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=Ae.getConsentedToAllSync();return k(`TCF consented to all is: ${t}`),Ae.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(k("Getting TCF consent manager..."),window._tcf_)return k("TCF consent manager is already available"),Ae=window._tcf_,void e(Ae);k("TCF consent manager is not available");const n=()=>{k("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(Ae=window._tcf_,e(Ae)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(Ie,n),Se=!0,t(new Error("Timeout waiting for CMP to load"))},i);k("Listening for CMP loaded event..."),document.addEventListener(Ie,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>Ee(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return k(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===$.SE,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===$.NO;if(t||r)return k("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Ce(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!Ae)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(()=>{k("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);Ae.onTcfReady(()=>{k("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),Ae.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},ke=(e,t,n,...r)=>Ee(void 0,[e,t,n,...r],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return k(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return k(`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}=Te(e,0,n);return(yield i())?(k(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(k(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}),Oe=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Pe=e=>Ee(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:r}={}}=e,{getConsentAsync:i}=Te(t,0,r);if(!(yield i()))return;const o=Oe("_pulse2data");return o?o.split(",")[9]:void 0}),Le=()=>{const e=Oe("_pulse2data");return e?e.split(",")[2]:void 0},je={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Ne=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const r=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=r.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,i).toString()},_e="takeover-displayed",$e="takeover-visit-count",De=14400,Re=()=>{const e=Oe($e);return e?parseInt(e):0},qe=()=>{const e=Re(),{takeover:{options:{cookieCapTime:t=De}={}}={}}=N.get(),n=document.location.hostname;window.document.cookie=`${$e}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Me=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=N.get();return"0"!==re(oe)&&("1"===re(oe)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=N.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||_e;return"true"===Oe(n)})())&&(!t||Fe()))},Fe=()=>{const e=Re();return 0===e?(qe(),!1):1===e},Be=(e,t)=>[[1,1],[1920,1080]].some(([n,r])=>n===e&&r===t),Ue=()=>{const{takeover:e}=N.get();return Boolean(null==e?void 0:e.topscroller)},Ve=e=>{const{width:t,height:n}=e;return Be(t,n)?je.SPLASH:x(e,r.VELVET_TAKEOVER)?je.VELVET:Ue()?je.TOPSCROLLER:je.WELCOME_PAGE},He=()=>Ee(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=_e,cookieCapTime:n=De}={}}={},pageContext:{isMobileApp:r,countryCode:i},tcf:o}=N.get(),a=yield ke(o,r,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),ze=e=>{var t,n;const r=!!(null===(n=null===(t=N.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return l(e)&&r},We=(e,t)=>{var n;if(t===je.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===je.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Ke=(e,t)=>{t!==je.SPLASH?(e=>{var t,n;const r=null===(t=N.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=N.get().takeover)||void 0===n?void 0:n.topscroller;if(!r||i)return;const o=document.querySelector(r),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&s&&d))return;const l=null==o?void 0:o.offsetHeight,p=c(e)?"60svh":`calc(100svh - ${l}px)`,u=c(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",p,"important"),d.style.setProperty("height",p,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=N.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),r=document.querySelector(`#${e.targetId}`);if(!n||!r)return;const i=`calc(100svh - ${n.offsetHeight}px)`;r.style.setProperty("height",i,"important")})(e)},Ge=Ne([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});var Je=Object.freeze({__proto__:null,addTakeoverCookie:He,adjustTakeoverHeight:Ke,canDisplayTakeover:Me,getProperWelcomePageConfig:We,getTakeoverVariant:Ve,handleTakeoverCookieOnAdNotShown:e=>Ee(void 0,void 0,void 0,function*(){ze(e)&&(yield He())}),incrementArticleVisitCount:qe,isSplashVariant:Be,isTopscroller:Ue,scaleAd:Ge,shouldAddTakeoverCookieForNotShownAd:ze});const Ye={nativeAd:e=>d(e)&&!v(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:s,fullscreenScroll:a,topscroller:e=>l(e)&&Ue(),splash:e=>l(e)&&Be(e.width,e.height),welcomePage:l,wallpaper:p,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:y,hFormat:w,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!w(e)&&!y(e),topboard:e=>e.targetId.startsWith("topboard")&&!l(e),widescreen:f,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:v,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!h(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!m(e),outstream:e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,netboard:e=>(e=>e.targetId.startsWith("netboard"))(e)||(e=>e.targetId.startsWith("board"))(e),panorama:h,midboard:m},Qe=({adObj:e,preferredTestIdData:t})=>{var n,r;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const o=null===(r=document.querySelector(`#${i}`))||void 0===r?void 0:r.parentElement;if(!o)return;if(((e,t)=>{var n,r,i,o;const a=null===(o=null===(i=null===(r=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===r?void 0:r.tags)||void 0===i?void 0:i[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(i,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,r;for(const[i,o]of Object.entries(Ye))if(o(e)){if("nativeAd"===i){const o="default";t.dataset.testid=`${i}-${null!==(r=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==r?r:o}`;break}t.dataset.testid=i;break}})(e,o)},Xe=e=>{var t;return(null===(t=Object.entries(Ye).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Ze={MOBILE:"mobile",TABLET:"tablet",DESKTOP:"desktop"},et="web_desktop",tt="web_phone",nt="wde",rt="wph",it=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},ot=e=>e===Ze.MOBILE,at=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},dt=(e,t=window.screen.width,n,r)=>{const i=at(e,t);if(n&&n(e,i),r)return void r(e);const o=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);o&&(o.style.transform=`scale(${i})`,o.style.transformOrigin="left top")},st=(e,t)=>{if(e&&t)return t/e},lt=new Map;lt.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),lt.set("panorama",{scale:.79,transformOrigin:"center center"}),lt.set("outstream",{scale:.79,transformOrigin:"center center"}),lt.set("integration",{scale:.79,transformOrigin:"center center"}),lt.set("toppanorama",{scale:.8,transformOrigin:"left center"});const ct=e=>{if(!((null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.clientWidth)>767&&(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.clientWidth)<=853))return;var t,n;const r=Xe(e),i=lt.get(r),o=document.querySelector(`#${e.targetId}`);if(!o||!i)return;if(o.style.transformOrigin=i.transformOrigin,o.style.transform=`scale(${i.scale})`,!(null==i?void 0:i.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${e.targetId}"]`),d=null==o?void 0:o.offsetWidth;a&&"number"==typeof d&&!isNaN(d)&&a.style.setProperty("right",String(-1*d*.2)+"px")},pt=e=>{var t;const n=document.querySelector("#superright-side");if(n){const r=40,i=(null===(t=e.banner)||void 0===t?void 0:t.height)?e.banner.height+r:0;n.style.marginTop=`${i}px`}},ut=(e,t=0)=>{const n=e.getBoundingClientRect(),r=window.innerHeight;return n.bottom>-t&&n.top<r+t},vt=e=>e.some(e=>e.some(e=>!!e&&ut(e,0))),gt=()=>{const e=Array.from(document.querySelectorAll('div[id="superright-side"]')).map(e=>Array.from(e.querySelectorAll('div[id^="widescreen"]')));let t=0,n=Date.now(),r=vt(e);if(!e.length)return;const i=(e,t,n)=>{e.forEach(e=>{e&&e.style.setProperty(t,n)})},o=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block"),e[1]&&(e[1].style.display="none")})})(e);const a=V(()=>{r||(r=vt(e)||r,n=Date.now());Date.now()-n>=1e4&&((()=>{const n=o(t),r=e.map(e=>e[t]),a=e.map(e=>e[n]);i(r,"opacity","0"),setTimeout(()=>{i(r,"display","none"),i(a,"opacity","0"),i(a,"display","block"),setTimeout(()=>{i(a,"opacity","1")},450)},450)})(),t=o(t),n=Date.now())},1e3);window.addEventListener("scroll",a)},ht=e=>{const t=e[0];if("attributes"===t.type&&"class"===t.attributeName){const e=t.target;setTimeout(()=>{var t;const n=document.getElementsByTagName("video")[0],r=n&&n.getBoundingClientRect(),i=e.classList.contains("jw-flag-floating")&&!e.classList.contains("jw-flag-ads")?r.height+0:0,o=null===(t=document.querySelector('div[id^="sponsorstripe"]'))||void 0===t?void 0:t.firstChild;o&&(o.style.top=`${i}px`)},750)}},mt={attributeFilter:["class"],attributes:!0,childList:!1,subtree:!1},ft=e=>{const{source:t}=e;return"csm"===t},yt=e=>{const{siteSpecificConfig:t}=N.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},wt=(e,t)=>yt(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{},bt=e=>yt(e)?{"aa-sch-dynamic-outstream":["true"]}:{},xt={adRequested:()=>{},adAvailable:e=>{f(e)&&gt()},adLoaded:e=>{const t=document.getElementById(e.targetId);(e=>{var t;const n=null===(t=document.getElementById(`${e.targetId}`))||void 0===t?void 0:t.parentElement;n&&(e.width>=1260&&e.width<=1280&&(n.classList.add("advertory-aftonbladet-l-format"),pt(e)),e.width>=1600&&e.width<=1620&&(n.classList.add("advertory-aftonbladet-h-format"),pt(e)))})(e),(e=>{var t,n;const r=me(e.targetId.split("-")[0]);if(!["live"].includes(r))return;const i=null!==(n=null===(t=document.getElementById(`${e.targetId}`))||void 0===t?void 0:t.offsetWidth)&&void 0!==n?n:window.screen.width;dt(e,i)})(e),s(e)&&(null==t?void 0:t.parentElement)&&(t.classList.add("advertory-aftonbladet-panorama__full-width-ad"),t.parentElement.classList.add("advertory-aftonbladet-panorama-wrapper__full-width-ad")),v(e)&&(()=>{const{deviceType:e}=N.get().pageContext;ot(e)&&setTimeout(()=>{const e=document.querySelector(".jwplayer"),t=new MutationObserver(ht);e&&t.observe(e,mt)},1500)})(),(e=>e.targetId.startsWith("outstream"))(e)&&((e=>{const t=document.querySelector(`#div_utif_${e.targetId}`);t&&ft(e)&&(t.style.height="0px")})(e),null==t||t.classList.add("outstream")),h(e)&&(e=>{const{deviceType:t}=N.get().pageContext,n=e.height<345;if(!ot(t)||!n)return;const r=document.querySelector(`#${e.targetId}`),i=null==r?void 0:r.parentElement;r&&i&&(r.style.minHeight="unset",i.style.minHeight="unset")})(e)},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},Et={SVD:"svd",VG:"vg",GODARE:"godare",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen"},Ct={publisherClassName:Et.AFTONBLADET,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:["advertory-aftonbladet-h-format","advertory-aftonbladet-l-format"],dynamicOutstreamFormats:["panorama","outstream"]},It=864e5,At=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return k("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=It)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=It)=>{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 k("Error with parsing localStorage data"),null}}}})(),St="glimrTags",Tt=["glwe_","glwet_"],kt={geofenceTags:[],geoTags:[],weatherTags:[]},Ot=(...e)=>Ee(void 0,[...e],void 0,function*(e=N.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:r}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield ke(t,n,r,"glimr")}const{getConsentAsync:i}=Te(t,0,r);return yield i()}),Pt=()=>Ee(void 0,void 0,void 0,function*(){const{glimr:e}=N.get();if(!(yield Ot())||!(null==e?void 0:e.enabled))return void k("No consent for glimr data fetching.");const t=yield(n=500,Ee(void 0,void 0,void 0,function*(){return yield Promise.race([Ee(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{At.setWithTimestamp(St,{tags:e,tagMappings:t}),n(!0)})})}catch(e){k(`Error during getting glimr data: ${e}`)}else k("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),Lt={svd:"svd",vg:"vg",godare:"godare",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},jt=e=>Tt.some(t=>e.startsWith(t)),Nt=e=>e.startsWith("glgc_"),_t=e=>!jt(e)&&!Nt(e),$t=(e,t)=>Ee(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:i}={}}=e,o=yield Ot(e);if(!(null==r?void 0:r.enabled)||!o)return k("No consent for getting glimr tags."),{};const a=D(i),d=Dt(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),Dt=(e,t)=>{const n=Rt();if(!n)return kt;const r=((e=[])=>e.filter(jt))(n),i=((e=[])=>e.filter(Nt))(n),o=((e=[],t,n)=>{var r;const i=e.filter(_t);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=Lt[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:o,geofenceTags:i,weatherTags:r}},Rt=()=>{const e=At.getByTimestamp(St);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},qt=()=>(window.apntag||(window.apntag={anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}}),window.apntag),Mt=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Ft=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:r=!1}={},pageContext:{countryCode:i}}=N.get(),o=[`${D(i)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...r?o:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},Bt={get:(e,t)=>Ee(void 0,void 0,void 0,function*(){const n=yield fetch(e,t);if(!n.ok)throw new Error(n.statusText);return yield n.json()}),post:(e,t,n)=>Ee(void 0,void 0,void 0,function*(){const r=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:r});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},Ut="advertory:ppids-cache",Vt={[$.SE]:`SCH${$.SE.toUpperCase()}-EnvHash`,[$.NO]:`SCH${$.NO.toUpperCase()}-EnvHash`},Ht={[$.SE]:`SCH${$.SE.toUpperCase()}-UserHash`,[$.NO]:`SCH${$.NO.toUpperCase()}-UserHash`},zt={[$.SE]:`sch${$.SE}-envhash-v3`,[$.NO]:`sch${$.NO}-envhash-v3`},Wt={[$.SE]:`sch${$.SE}-userhash-v3`,[$.NO]:`sch${$.NO}-userhash-v3`},Kt={[$.SE]:`'sch${$.SE}-iosid-v3'`,[$.NO]:`'sch${$.NO}-iosid-v3'`},Gt={[$.SE]:`sch${$.SE}-androidid-v3`,[$.NO]:`sch${$.NO}-androidid-v3`},Jt={[$.SE]:"sdrn:schibsted.com:user",[$.NO]:"sdrn:spid.no:user"};class Yt{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:r})=>{t.append(e,`${r}-${n}`)}),t}}const Qt=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return Ee(this,arguments,void 0,function*(e,t=1e4){var n,r;const i=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=i.xandr)||void 0===n?void 0:n.ppId1,null===(r=i.xandr)||void 0===r?void 0:r.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||k("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},Xt=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return Ee(this,void 0,void 0,function*(){var n,r,i,o,a,d,s,l,c,p,u;const v=At.get(Ut),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(r=g.idfv)||void 0===r?void 0:r.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(p=null==g?void 0:g.idfv)||void 0===p?void 0:p.plain,null===(u=null==g?void 0:g.anId)||void 0===u?void 0:u.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||k("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,r){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=r?r:null}shouldHash(e,t){var n,r;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(r=t[i])||void 0===r?void 0:r.plain))return!0}return!1}cachePPIDs(e,t,n,r){const i=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),r?{anId:{plain:r}}:{});At.set(Ut,i)}hashPPIDs(e,t){return Ee(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield Bt.post(t,n,e)}catch(e){return k("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return Ee(this,arguments,void 0,function*({clientId:e,instance:t},n){const r=yield((e,t)=>Ee(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${Jt[t]}:${n}`:null}))(t,n),i=yield(e=>Ee(void 0,void 0,void 0,function*(){const t=yield e.getEnvironmentId();return t?`sdrn:schibsted:environment:${t}`:null}))(t),o=window.advertory_idfv,a=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:r},environmentId:{plain:i},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},o?{idfv:{plain:o}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:r,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:r.plain,environmentId:i.plain}}},Zt=e=>Ee(void 0,void 0,void 0,function*(){const{tracker:t,tcf:n,pageContext:{countryCode:r,isMobileApp:i}}=e;if(!(yield ke(n,i,r,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([Qt.processPPIDs(t,null==n?void 0:n.timeout),Xt.processPPIDs(t,r)])).forEach((e,t)=>{if("rejected"===e.status){k(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),en=e=>{const{ppid1:t,ppid2:n}=Qt.getPPIDs(),{ppid1:r,ppid2:i,idfv:o,anId:a}=Xt.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new Yt).add(n,Vt[e]).add(t,Ht[e]).add(i,zt[e]).add(r,Wt[e]).add(o,Kt[e]).add(a,Gt[e]).buildEids()}]}},tn=()=>{const{ppid1:e,ppid2:t}=Qt.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},nn=e=>{const{ppid1:t,ppid2:n}=Qt.getPPIDs(),{ppid1:r,ppid2:i,idfv:o,anId:a}=Xt.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new Yt).add(n,Vt[e]).add(t,Ht[e]).add(i,zt[e]).add(r,Wt[e]).add(o,Kt[e]).add(a,Gt[e]).buildRyEids()}}]}}},rn=e=>{const{ppid1:t,ppid2:n}=Qt.getPPIDs(),{ppid1:r,ppid2:i}=Xt.getPPIDs(),o=(new Yt).add(n,Vt[e]).add(t,Ht[e]).add(i,zt[e]).add(r,Wt[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},on=e=>{const{ppid1:t,ppid2:n}=Qt.getPPIDs(),{ppid1:r,ppid2:i}=Xt.getPPIDs();return(new Yt).add(n,Vt[e]).add(t,Ht[e]).add(i,zt[e]).add(r,Wt[e]).buildRyEids()},an=e=>Ee(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=Qt.getPPIDs(),{ppid1:r,ppid2:i}=Xt.getPPIDs(),o=(new Yt).add(n,Vt[e]).add(t,Ht[e]).add(i,zt[e]).add(r,Wt[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),dn=()=>Ee(void 0,void 0,void 0,function*(){const{ppid1:e}=Xt.getPPIDs();return e}),sn=(e,...t)=>Ee(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=()=>{d(),n()},a=()=>{d(),r(new Error(`Failed to load ${e}`))},d=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(s)};i.addEventListener("load",o),i.addEventListener("error",a);const s=setTimeout(()=>{d(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),ln="advertory-fullscreen-scroll",cn="advertory-fullscreen-scroll-wrapper",pn="fullscreen-scroll-in-screen",un="in-screen",vn=e=>e.includes("snoap.no"),gn=e=>{var t,n,r,i,o;return!!(null===(o=null===(i=null===(r=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===r?void 0:r.adResponse)||void 0===i?void 0:i.ads[1])||void 0===o?void 0:o.rtb)},hn=Ne([],()=>{const e=({width:e,height:t})=>{var n;const r=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!r)return;const{clientWidth:i,clientHeight:o}=r,a=e/i,d=t/o;r.style.transform=`scale(${a},${d})`,r.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),mn=e=>{const t=Ne([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const r=n.contentDocument.createElement("style");r.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(r),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},fn=[],yn={},wn=(e,t)=>{var n;const r=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>bn(e,r),{}),o=En(e);i.observe(e),r&&(yn[o]=An(e,null==t?void 0:t.options))},bn=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const r=En(e);n?(xn(r,n),Cn(e,r,t)):(xn(r,n),In(e,r,t))})},xn=(e,t)=>{var n,r;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const o=t?"showFullscreen":"hideFullscreen";null===(r=i.contentWindow)||void 0===r||r.postMessage(`advertory:${o}-${e}`,"*")},En=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},Cn=(e,t,n)=>{e.classList.add(un),document.body.classList.add(pn),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),fn.includes(t)||fn.push(t),n&&window.addEventListener("scroll",yn[t],{passive:!0})},In=(e,t,n)=>{fn.includes(t)&&(n&&window.removeEventListener("scroll",yn[t]),document.body.classList.remove(pn),e.classList.remove(un),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},An=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:r=[".skyscraper_r"],headerZIndex:i=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),r.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&Sn(e,o,i,0),a.length&&Sn(e,a,i,40)}},Sn=(e,t,n,r)=>{const i=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>o?(a-o)/t-r:(o+t-(a+i))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};function Tn(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}Tn('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh)}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;text-transform:lowercase;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const kn="left",On={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN"}};let Pn=null;const Ln=(e,t)=>{let n=e;return n=(e=>{const t=document.createElement("script");return t.textContent="\n window.addEventListener('message', function(event) {\n if (event.data === 'advertory:showFullscreen-'+document.body.id) {\n document.body.style.display = \"block\";\n } else if (event.data === 'advertory:hideFullscreen-'+document.body.id) {\n document.body.style.display = \"none\";\n }\n });\n ",e+t.outerHTML})(e),n=(e=>{const t=document.createElement("script");return t.textContent=`(${hn})()`,e+t.outerHTML})(n),n=(e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");return n?(n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed",t.innerHTML):e})(n),n=(e=>{if(vn(e))return e;const t=document.createElement("style");return t.textContent="\n .GoogleActiveViewClass, .GoogleActiveViewElement {\n transform: translate(calc(-50% + 50vw), 0);\n width: 100vw !important;\n height: 100vh !important;\n }\n .GoogleActiveViewClass img, .GoogleActiveViewElement img {\n width: 100vw;\n height: 100vh;\n object-fit: cover;\n }\n .GoogleActiveViewClass iframe {\n width: 100vw !important;\n height: 100vh !important;\n }\n ",e+t.outerHTML})(n),(e=>e.includes("adform"))(n)&&(n=(e=>{const t=document.createElement("script");t.textContent='\n var frame = window.frameElement;\n if (frame) {\n frame.style.removeProperty("width");\n frame.style.removeProperty("height");\n frame.contentWindow.document.body.onload = onLoad;\n } else {\n document.body.onload = onLoad;\n }\n \n function onLoad() {\n var iframe = document.querySelector("adfm-ad iframe");\n if (iframe) {\n var image = iframe.contentWindow.document.getElementById("image");\n if (!image) return;\n image.style.backgroundSize = "cover";\n } else {\n var iframe = document.querySelector(".adform-adbox iframe");\n if (iframe) {\n var style = document.createElement("style");\n style.textContent = "#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}";\n iframe.contentDocument.body.append(style);\n iframe.style = "width: 100vw; height: 100vh;";\n } else {\n var observer = new MutationObserver(function(mutations, obs) {\n for (var mutation of mutations) {\n var iframe = mutation.addedNodes[0];\n if (iframe && iframe.nodeName === "IFRAME") {\n iframe.style = "width: 100vw; height: 100vh;";\n iframe.dataset.contents += "<style>#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}</style>";\n obs.disconnect();\n }\n }\n });\n observer.observe(document.body, { childList: true, subtree: true });\n }\n }\n }\n ';const n=document.createElement("style");return n.textContent="\n html, body, adfm-ad, #sf_align, .adform-adbox, .adform-adbox img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover;\n max-width: 100vw;\n }\n ",e+n.outerHTML+t.outerHTML})(n)),(e=>e.includes("529299503"))(n)&&(n=mn(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>vn(e)?e:e.replace("<iframe ","<iframe onload=\"\n var f = document.querySelector('iframe');\n if (!f) return;\n var s = f.style;\n s.transform = 'scale(' + (window.innerHeight / Number(f.height)).toFixed(2) + ')';\n s.right = parseInt((Number(f.width) - window.innerWidth) / 2) + 'px';\n s.bottom = parseInt((Number(f.height) - window.innerHeight) / 2) + 'px';\n s.position = 'relative';\n \" "))(n)),vn(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</iframe>","</iframe><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),(e=>e.includes("kreateam.io"))(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</div>","</div><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),gn(t)&&(n=(e=>{const t=document.createElement("script");t.textContent='var frame = window.frameElement;\n if (frame) {\n frame.style.width = "100vw";\n frame.style.height = "100vh";\n }';const n=document.createElement("div");return n.innerHTML=e,n.appendChild(t),n.innerHTML})(n)),n},jn=()=>{Pn=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,r=e?e.offsetLeft:0,i=document.documentElement;i.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),i.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),i.style.setProperty("--advertory-fullscreen-scroll-left",`${r}px`)},Nn=()=>{Pn||(Pn=window.requestAnimationFrame(jn))},_n=(e,t)=>{var n,i,o,a;const{pageContext:{countryCode:d,deviceType:s}}=N.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:r=1302,backgroundColor:i="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=r/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==c?void 0:c.overlayStyles)&&void 0!==i?i:{},s);const p=document.getElementById(l),u=null==p?void 0:p.parentElement;if(!p||!u)return;wn(u,t),p.className=ln,wn(u,t),p.className="advertory-fullscreen-scroll";const v=x(e,r.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";p.style.position=v,u.className=cn,u.dataset.showTagSubscribeId=l,p.setAttribute("data-ad-label",On[d].adText),(null==c?void 0:c.cogwheelPosition)===kn&&(p.dataset.moveCogwheelToTheLeft="true"),Nn(),window.addEventListener("resize",Nn),null===(o=window.visualViewport)||void 0===o||o.addEventListener("resize",Nn),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",Nn)},$n=e=>{if(!(null==e?void 0:e.classList.contains(ln)))return;e.classList.remove(ln),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(cn))&&(t.classList.remove(cn),t.classList.remove(un))};var Dn=Object.freeze({__proto__:null,createFullscreenScrollAd:_n,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,r=gn(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,r=gn(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[r].rtb;i&&(i.banner.content=t)})(e,Ln(t,e))},undoFullscreenScrollContainer:$n});const Rn=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},qn=(e,t,n)=>{var r,i,o,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(i=null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),Rn(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},Mn="ad-loaded",Fn="disable-cogwheel",Bn=()=>Ee(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:r},fullscreenScroll:i}=N.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:o}=N.getHandlers(),{getConsentAsync:d}=Te(t,0,n),s=yield d(),l=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:r=>{const i=qt(),{prebid:{relevantCallbackTimeout:o}={}}=N.get(),a="relevantCb"===r&&o?o:n[r].timeout,d=setTimeout(()=>{!n[r].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${r}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),c=qt(),p=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=qt();return{user:e,keywords:t}})();l.failsafeOnTimeout("relevantCb");const{user:{externalUid:u=""}={},keywords:v}=p;(()=>{const e=Mt();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{if(l.getCancel()||!c.loadTags)return k("core loadTags() call was cancelled",{cancel:l.getCancel(),apnTagLoadTags:!c.loadTags,condition:"or"}),void l.cleanup();const t=Mt();l.events.relevantCb.done=!0,l.failsafeOnTimeout("auctionCb");const d=s?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};k("prebid consentManagement",d),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:d,enableSendAllBids:!1},nn(n)),Ft(v,u))),k("core add prebid config",Object.assign(Object.assign({consentManagement:d,enableSendAllBids:!1},nn(n)),Ft(v,u))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{l.getCancel()||(l.events.auctionCb.done=!0,c.loadTags(e)),l.cleanup()}},customNativeRender:e=>{Un(e,o)},directRenderFn:e=>{var t;const{settings:n,renderFn:o}=e,{bid:d,adDiv:s}=n||{};if(!s)return;const l=o(n),c=Object.assign(Object.assign({},d),{targetId:s.id,banner:!0}),p=s.id,u=document.getElementById(p);u&&(a(c)?(_n(c,i),r?u.style.setProperty("--advertory-political-box-offset","30px"):(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const r=new MutationObserver(()=>{n()&&r.disconnect()});r.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(l)):($n(u),null===(t=null==u?void 0:u.parentElement)||void 0===t||t.classList.add("advertory-direct-render")),u.classList.add(Mn),(null==d?void 0:d.creativeId)&&qn(p,u,Number(null==d?void 0:d.creativeId)))}}),k("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{l.getCancel()||(l.events.auctionCb.done=!0,c.loadTags(e))}},customNativeRender:e=>{Un(e,o)},directRenderFn:()=>{}})})}),Un=(e,t)=>{var n;const{divId:r,native:i,bid:o}=e,a=document.querySelectorAll(`[id^=${r}]`)[0],d=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:i,targetId:d},N.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")},Vn=(e,t,n)=>{const r=document.getElementById(`div_utif_${e}`);if(!r)return;const{apntag:i}=window,[o,a]=t;if(!r.dataset.lockedsize&&a&&o)r.style.width=`${o}px`,r.style.height=`${a}px`,n&&(i.resizeAd(r.id,[o,a]),r.dataset.lockedsize="true",r.dataset.lockedwidth=o.toString(),r.dataset.lockedheight=a.toString());else if(null==r?void 0:r.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=r.dataset;e&&t&&i.resizeAd(r.id,[e,t])}},Hn=["netboard","board"];class zn{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,r;const{editionName:i}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(r=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==r?r:[]),d=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:s,spid:l}=t;return d.searchParams.append("editionName",i),o&&d.searchParams.append("urlData",o),a&&d.searchParams.append("excludedItems",a),l&&d.searchParams.append("spid",l),s&&d.searchParams.append("envid",s),d.toString()}fetchData(e){return Ee(this,void 0,void 0,function*(){var t,n,r;const i=yield this.identityFacade.getIdentityUser(),o=null!==(r=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",a=(null==i?void 0:i.userId)?String(i.userId):"",d=this.buildUrl(e,{envId:o,spid:a});try{k("Starting fetching DrEdition ad from URL:",d);const e={method:"GET"},t=yield Bt.get(d,e);return k("Fetch operation completed successfully."),t}catch(e){k("Error during fetch operation:",e)}return null})}}class Wn{getDrEditionUTMParams(e,t){var n;const{title:r="",clientName:i,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,d=r.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:i,utm_medium:d},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const r=this.getDrEditionUTMParams(t,n),i=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(r).forEach(([e,t])=>{i.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const r=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!r)return"";const i=this.getDrEditionUTMParams(e,t),o=new URL(r);return Object.entries(i).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return Ee(this,void 0,void 0,function*(){const{id:n,autoplay:r,mute:i,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:r,vgtvMuted:i,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}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]}}const Kn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):k("Dr. Edition container does not have a parent element, cannot remove height lock.")};class Gn{constructor(e,t,n,r){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=r,this.drEditionAds=[]}fetchAndRenderAd(e,t){return Ee(this,void 0,void 0,function*(){var n,r;const{drEditionConfig:{options:{containerSelector:i}},renderAsBackfill:o=!1}=t,a=e.querySelector(i);if(!a)return void k(`Container with selector "${i}" not found.`);const d=yield this.drEditionService.fetchData(t);return(null==d?void 0:d.itemId)||o?!(null==d?void 0:d.itemId)&&o?(k("No Dr. Edition ads available to render. Collapsing whole placement."),se(e.id),void Kn(a)):((null==d?void 0:d.itemId)&&o&&(k("Dr. Edition ad available to render as a Xandr backfill."),le(e.id)),void(d?(d.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(d.css,"style"),yield this.rendererManager.render(a,d,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(d,t),Kn(a),this.drEditionAds.push(d),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(d.itemId),this.observeAdView(e,d,t),null===(r=e.querySelector("a"))||void 0===r||r.addEventListener("pointerup",()=>null)):Kn(a))):(k("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void Kn(a))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const r=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";le(r)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const r=e.querySelector(".dr-edition-slider");if(!r)return!1;let i=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(i&&clearTimeout(i),i=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...r.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...r.children].forEach(e=>{o.observe(e)}),!0}}class Jn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return Ee(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:r}=Te(n.tcf,n.isMobileApp,n.country),i=yield r(),o=ot(n.device)?t.mobileHTML:t.desktopHTML,a=i?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var r,i,o;e.search=null!==(o=null===(i=(r=this.newsroomStrategy).getUrlSearchParams)||void 0===i?void 0:i.call(r,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class Yn{constructor(e){this.strategy=e}handle(e,t){return Ee(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:r}={}}=e;(n||r)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return Ee(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,n=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!n)try{yield sn(t)}catch(e){k("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return Ee(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:r}=e.videoConfiguration,i=[...document.querySelectorAll(`#${r}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==i||i.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==i?void 0:i.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,r,i;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const d=document.querySelector(".dr-edition-preview .preview-video");return!!d&&(d.setAttribute("src",o),d.setAttribute("playsinline",""),!(!d||!a)&&(null===(i=(r=t.drEditionConfig.options).addPreviewVideo)||void 0===i||i.call(r,d),!0))}}class Qn{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,r){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()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const r=null==n?void 0:n.textContent;return r?r.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:r}={}}=t,i=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=i?i:""),type:"Page",url:r}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return Ee(this,void 0,void 0,function*(){var r,i,o,a,d,s,l,c;const p=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(p),!this.pulse)return;const u=this.getEventInput(e,t,n,"view");(null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)?null===(o=null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)||void 0===o||o.call(i,u):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(s=null===(d=this.pulse)||void 0===d?void 0:d.trackViewUIElement)||void 0===s||s.call(d,u):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,u)})}trackContentClick(e,t,n){return Ee(this,void 0,void 0,function*(){var r,i,o,a,d,s;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(i=(r=this.pulse).trackLegacyClickUIElement)||void 0===i||i.call(r,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(s=(d=this.pulse).trackElementClick)||void 0===s||s.call(d,l)})}}class Xn extends Qn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var r,i,o;const{pulseData:{title:a,clientName:d="",creativeId:s,url:l=""}={}}=t,{columnName:c,primaryPosition:p}=n,{publicUrl:u,urlPath:v}=null!==(o=null===(i=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.transformUrl)||void 0===i?void 0:i.call(r,l))&&void 0!==o?o:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:p},tags:[d,a,u,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:d,"spt:creativeId":s,pageTitle:a,publicUrl:u,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class Zn extends Qn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var r,i,o,a,d,s;const{itemId:l,pulseData:{clientName:c,creativeId:p}={}}=t,u=n.editionName,v=this.mapPageType(this.pageType),g=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulseObjectId)||void 0===o?void 0:o.call(i))&&void 0!==a?a:u,"@type":"UIElement",position:u,elementType:"Article",custom:{customer:c,creativeId:null!=p?p:l},page:{"@id":null!=g?g:u,"@type":v,url:location.origin},tags:null===(s=null===(d=this.newsroomStrategy)||void 0===d?void 0:d.getTags)||void 0===s?void 0:s.call(d,e)}}getEventInput(e,t,n,r){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,r),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,r){var i,o,a,d;const{pulseData:{algorithm:s="sov",clientName:l,creativeId:c,editionId:p,itemId:u,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),f=this.getTeaserElementText(e,"subtitle"),y=this.getTeaserElementText(e,"image"),w=null!==(d=null!==(a=null===(o=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getUrlWithParams)||void 0===o?void 0:o.call(i,t,n))&&void 0!==a?a:v)&&void 0!==d?d:"";return{algorithm:s,clientName:l,probability:g,creativeId:c,device:n.device,editionId:p,itemId:u,link:w,placement:n.editionName,subtitle:f,time:h,title:m,type:r,imageUrl:y,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const er={FRONT:"front",ARTICLE:"article"},tr=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},nr=e=>Ee(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const r=document.createElement("script");r.id=e,r.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",r.async=!0;try{r.src=r.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(r,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),rr={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return Ee(this,void 0,void 0,function*(){yield import("./styles-0dTMme1P.js")})}})}},ir=(e,t)=>{null==e||e.forEach(e=>{rr[e](t)})};class or{handleVideo(e,t){return Ee(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:r,mute:i,vendor:o}}){yield Ee(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const a=["ContentMutePlugin"],d=this.createPlayerOverlay(e);ir(a,d);const s={id:t,node:n,autoplay:r,mute:i,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},l=yield nr(s);l.once("assetReady",()=>{tr(l,a)}),l.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),l.once("PulseStats:ready",()=>Ee(this,void 0,void 0,function*(){const e=yield l.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===er.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const ar="https://www.aftonbladet.se/video-player-extras/latest/";class dr{handleVideo(e,t){return Ee(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:r,mute:i,vendor:o}}){const a={id:t,node:n,autoplay:r,mute:i,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${ar}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${ar}external-link.js`]:{name:"ExternalLink"}}};yield nr(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}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""}}const sr=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class lr{handleVideo(e,t){return Ee(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:r,mute:i,vendor:o}}){const a={id:t,node:n,autoplay:r,mute:i,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},sr(e)?e:{}),{provider:Object.assign(Object.assign({},sr(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${t}`]},requestSettings:{}}}},d=yield nr(a);d.once("PulseStats:ready",()=>Ee(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}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===er.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class cr{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const pr=(e,t,n)=>{var r;const{publisher:i,pageType:o,country:a}=e,d={[Et.VG]:new Wn,[Et.E24]:new or,[Et.AFTONBLADET]:new dr,[Et.SVD]:new lr}[i]||new cr,s=new(a===$.SE?Xn:Zn)(n,d,o),l=new zn(t,null!==(r=null==n?void 0:n.pulseTracker)&&void 0!==r?r:n),c=new Jn(d,s),p=new Yn(d);return new Gn(l,c,p,s)},ur=()=>Ee(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)})});class vr{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 Ee(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 k("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return Ee(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)}}const gr=(e,t,n)=>{const{wrapperSelector:r}=null==e?void 0:e.drEditionConfig.options,i=document.querySelectorAll(r),o=new IntersectionObserver((r,i)=>((e,t,n,r,i)=>{const o=pr(n,r,i);e.forEach(e=>{var r,i,a;if(!e.isIntersecting)return;const d=e.target,s=null!==(r=d.dataset.editionName)&&void 0!==r?r:"",l=null!==(i=d.dataset.pulseColumnname)&&void 0!==i?i:"",c=null!==(a=d.dataset.pulsePrimaryposition)&&void 0!==a?a:"";o.fetchAndRenderAd(d,Object.assign(Object.assign({},n),{editionName:s,columnName:l,primaryPosition:c})),t.unobserve(d)})})(r,i,e,t,n),{rootMargin:"400% 0px"});i.forEach(e=>o.observe(e))},hr=()=>Ee(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),mr=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},fr=[],yr=(e,t)=>Ee(void 0,void 0,void 0,function*(){var n;const{pulse:r,tcf:i,drEdition:o,pageContext:{deviceType:a,publisher:d,pageType:s,countryCode:l,isMobileApp:c}}=e;if(!(yield ke(i,c,l,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,r;const{pageContext:{deviceType:i},placements:o,drEdition:a}=e,d=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,s=o[i]||o.desktop,l=F(t.targetId),c=s.find(e=>e.targetId===l),p=Hn.some(e=>l.startsWith(e)),u=fr.includes(l),v=(null===(r=null==c?void 0:c.drEdition)||void 0===r?void 0:r.editionName)||d;return c&&p&&!u&&v?(fr.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!p)return;if(!(null==r?void 0:r.instance))return void k("Pulse has not been passed as a prop, aborting");const u=yield ur(),v=new vr(u),g=pr({publisher:d,pageType:s,country:l},v,null==r?void 0:r.instance),h=document.getElementById(t.targetId);if(!h||!o)return;h.classList.value="";const m=document.createElement("div");m.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),h.innerHTML=m.outerHTML;const f={editionName:(null===(n=null==p?void 0:p.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:i,isMobileApp:c,country:l,renderAsBackfill:!0};yield g.fetchAndRenderAd(h,f)}),wr=e=>Ee(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield ke(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield ur(),r=new vr(n);gr({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},r,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),br=(e,t)=>{var n,r,i;if(!mr())return void k("Ad block not enabled, Dr. Edition backfills will not be rendered");k("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(r=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===r?void 0:r[o],s=null!==(i=null==d?void 0:d.map(([e])=>e))&&void 0!==i?i:[],l=new IntersectionObserver((t,n)=>Ee(void 0,void 0,void 0,function*(){for(const r of t){if(!r.isIntersecting)continue;const t=r.target;n.unobserve(t),yield yr(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!s.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&l.observe(t)})},xr="collapseAd",Er="hideAd",Cr="resizeAd",Ir="renderDrEditionFallback",Ar="wallpaperImageUrl",Sr="wallpaperColor",Tr="velvet",kr=[Cr,Ar,Sr,xr,Er,Ir,Tr];let Or;const Pr=e=>{if(!["http://acdn.adnxs-simple.com","https://acdn.adnxs-simple.com","https://crcdn01.adnxs-simple.com","http://crcdn01.adnxs-simple.com","https://acdn.adnxs.com","http://acdn.adnxs.com","https://adsdk.microsoft.com","https://adsdk.bing.net","https://adsdkprod.azureedge.net"].includes(e.origin.trim()))return;const{data:t}=e;if(!t)return;const n=(e=>{if("object"==typeof e)return e;if(X(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Ar,wallpaperImageUrl:t}}if(Z(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Sr,wallpaperColor:t}}if(e.startsWith(Ir)){const t=e.split(":")[1];return{name:Ir,targetId:t}}if(e.startsWith(xr)||e.startsWith(Er)){const t=e.split(":")[1];return{name:xr,targetId:t}}if(e.includes("name")&&kr.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!kr.some(e=>n.name===e))return;const{name:r,targetId:i,wallpaperImageUrl:o,wallpaperColor:a,cmd:d,size:s}=n;r===Tr&&d&&(d.includes("noScroll")&&(Or=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(d.includes("close")||d.includes("ended"))&&(null==Or||Or(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),r!==xr&&r!==Er||!i||se(i),r===Cr&&i&&d&&Vn(i,d),r===Ir&&i&&(se(i),yr(N.get(),{targetId:i})),"resizeMediationAd"===r&&i&&s&&Vn(i,s,!0),r===Ar&&o&&ee(o),r===Sr&&a&&te(a)},Lr=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),jr=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=N.get(),r=window.apntag,i={publisher:e,countryCode:t,finnBlink:n},o=e=>{le(e),H(()=>r.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>Ee(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-nUn5kBi-.js");yield t(e,i,null)}),withFullAdsChain:e=>Ee(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-nUn5kBi-.js");yield t(e,i,o,()=>Ee(void 0,void 0,void 0,function*(){if(!pe.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return ne});t(e)}))})}},Nr=(e,t,n)=>{const r="true"===n.dataset.isFinnBlinkOnlyPlacement;return g(t)&&r?(k(`loading finn blink ad for blink only placement for ${t}`),void jr().withFinnBlinkAd(t)):g(t)?(k(`loading finn blink ad with full ads chain for ${t}`),void jr().withFullAdsChain(t)):void H(()=>(k("core showTag",{id:t}),e.showTag(t)))},_r=(e,t)=>Ee(void 0,void 0,void 0,function*(){yield z,yield W;const n=new IntersectionObserver((t,n)=>((e,t,n,r)=>{e.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(e=>{const{target:i}=e,o=(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(i),a=document.getElementById(o);k("core log from intersection observer handler",{targetId:o,element:a}),n(window.apntag,o,r),a&&(t.unobserve(a),t.disconnect())})})(t,n,Nr,e),Lr(t));n.observe(e)}),$r=new Map,Dr=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],Rr=".brandstudio-premium-content-widget",qr=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),Mr=({adWrapper:e,placementContainer:t})=>{const n=qr({adWrapper:e,placementContainer:t});var r;null==e||e.style.setProperty("height",`${n}px`),ve(r=t),r.innerHTML=""},Fr=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},Br=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=N.get(),r=Dr.includes(n)&&Boolean(t.closest(Rr));const i=r?t.closest(Rr):null,o=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!r&&!a||r&&!i)return;if(a)return Fr(e),void o.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?Fr(d):s.hasAttribute("style")&&Fr(s),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},Ur=(e,t,n,r,i,o)=>{var a;const d=performance.now(),s=null!==(a=$r.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(r,i)&&n<0;d-s>=i&&l&&($r.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:r}}=N.get(),i=null==n?void 0:n.parentElement;i&&n&&Mr({adWrapper:i,placementContainer:n}),H(()=>{e.setKeywords([t],{[`${D(r)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},Vr=(e,t,n)=>{const r=new IntersectionObserver((e,r)=>((e,t,n,r)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:o}=e;t(window.apntag,i.id,o.y,n,r,i)})})(e,Ur,t,n),Lr(300));r.observe(e)},Hr=(e,t=6)=>{const n=[];for(let r=0;r<e.length;r+=t){const i=e.slice(r,r+t);n.push(i)}return n},zr=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Wr=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=N.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),Qr(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},Kr=(e,t,n)=>{const r=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of r){const r=e.find(e=>{var t,n;return e.targetId===(null===(t=i.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==r?void 0:r.requestThreshold;ut(i,o)&&r&&(ue(r.targetId),n.length&&i.classList.remove(...n),Qr([r],t))}},Gr=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:r}}=N.get();t&&(e.forEach(({targetId:e})=>{const t=Jr(e);t&&(t.dataset.bfCacheRefresh="true")}),r?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&Kr(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const r=()=>{window.scrollY>0&&(window.removeEventListener("scroll",r),Kr(e,!1,t))};n.persisted&&(zr()?window.addEventListener("scroll",r,{passive:!0}):Kr(e,!1,t))})})(e,n))},Jr=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},Yr=e=>{const{targetId:t,allowedFormats:n}=e,r=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Jr(t)),i=(e=>1===e[0]&&1===e[1])(r),o={sizes:[r],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(o.native=void 0),o},Qr=(e,t=!1)=>{const{queryConfig:{batchSize:n=L}={}}=N.get(),r=e.map(({targetId:e})=>e),i=Hr(r,n);if(t)for(const t of e){const e=Yr(t);window.apntag.modifyTag(t.targetId,e)}for(const e of i)H(()=>window.apntag.refresh(e))},Xr=e=>`externalImpId:'${e}'`,Zr=(e,t)=>t?Object.assign(Object.assign({},e),{"aa-sch-ssa-native-ad":"true","aa-sch-ssa-format":"NATIVE_CONTENT","aa-sch-ssa-market":"XNO","aa-sch-ssa-cat":["ssa_1","ssa_2","ssa_3","ssa_4","ssa_5","ssa_6","ssa_7","ssa_8","ssa_9","ssa_10","ssa_11","ssa_12","ssa_13","ssa_14","ssa_15","ssa_16","ssa_17","ssa_18","ssa_19","ssa_20","ssa_21","ssa_22","ssa_23","ssa_24","ssa_25","ssa_26","ssa_27","ssa_28","ssa_29","ssa_30"]}):e,ei=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},tracker:r}=N.get(),{targetId:i,sizes:o,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:p,dynamicSizeWidthCheck:u=!1}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Me())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],r=Array.isArray(n)?n.filter(e=>e!==je.TOPSCROLLER):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":r}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:i})})(e),v=Object.assign({invCode:s,sizes:o,targetId:i,keywords:Zr(a,l),allowedFormats:d,dynamicSizeWidthCheck:u},p&&{safeframeConfig:p}),g=(e=>{var t,n,r,i,o,a,d;return e?(null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)?(null===(r=null===(n=null==e?void 0:e.instance)||void 0===n?void 0:n.state)||void 0===r?void 0:r.pageViewId)?(k("Tracker state pageViewId is:",null===(o=null===(i=null==e?void 0:e.instance)||void 0===i?void 0:i.state)||void 0===o?void 0:o.pageViewId),null===(d=null===(a=null==e?void 0:e.instance)||void 0===a?void 0:a.state)||void 0===d?void 0:d.pageViewId):(k("Tracker state does not contain field pageViewId or it is empty"),""):(k("Tracker state is empty"),""):(k("Tracker is not configured in initAdvertory function"),"")})(r);n&&g&&(k("External Impression ID assigned to defineTag:",Xr(g)),v.externalImpId=Xr(g));const h=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1}}).reduce((t,[n,r])=>((null==e?void 0:e.includes(n))&&(t[n]=r),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(v.native=h),v},ti=e=>!e.includes("takeover")||Me(),ni=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=N.get(),n=D(t),r=e[`${n}-targetid`],i=r?F(r[0]):"";return Object.assign(Object.assign({},e),r&&{[`${n}-targetid`]:[i]})},ri=e=>{const{pageContext:{countryCode:t}}=N.get(),n=D(t);return Object.assign(Object.assign(Object.assign(Object.assign({},e),e[`${n}-geo`]&&{[`${n}-geo`]:["geo-test-value"]}),e[`${n}-geofence`]&&{[`${n}-geofence`]:["geofence-test-value"]}),e[`${n}-weather`]&&{[`${n}-weather`]:["weather-test-value"]})},ii=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const r=n.split(",")[0].split(":")[0],i=e.find(e=>e.invCode===r),o=document.querySelector(`[id^=${null==i?void 0:i.targetId}]`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{var e;const t=new URLSearchParams(window.location.search).get("scrollToDrEditionPlacement");if(!t)return;const n=null!==(e=document.querySelector(`[id*="${t}}"]`))&&void 0!==e?e:document.querySelector(`a[aria-label*="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})()},oi=(e,t)=>Ee(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});Tn(".advertory-brandmetrics-survey{width:100%}");const ai="advertory-brandmetrics-survey",di="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",si=()=>Ee(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,r)=>{var i;r||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),li={pageContext:{publisher:"aftonbladet",countryCode:$.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},ci={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},pi=e=>(null==e?void 0:e.parent)?[...pi(e.parent),e.shortPath||"unknown"]:[],ui=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=pi(e);return ci[n]||"ovrigaavdelningar"})(e)}_{position}`,vi={aftonbladet:li},gi={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:ui(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:pi(e).join(":")}}},hi=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},mi=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),fi="se-generic",yi="aa-sch",wi="kv_",bi="pause",xi="{deviceType}",Ei="{position}",Ci="afp_",Ii=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),Ai="1-1",Si="16-9",Ti="3-4",ki="9-16",Oi="responsive",Pi={[Ai]:1,[Si]:1.78,[ki]:.56,[Oi]:1},Li={[Ai]:1,[Si]:1.78,[Ti]:1.33,[ki]:.56},ji=(e,t,n,r)=>{const{invCode:i="",videoOverlayInvCode:o}=null!=e?e:{},a=Ze.DESKTOP===n?nt:rt,d=i.replace(xi,a);return(e,n)=>{if(e===bi)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Ei,bi).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&Ii.has(e)){return(r&&o?o:t.frontpageInvCodeTemplate).replace(xi,a).replace(Ei,e)}return d.replace(Ei,e)}},Ni=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[r,i])=>{const o=Math.abs(e[n]-t);return Math.abs(i-t)<o?r:n},n[0][0])},_i=()=>{var e,t;const n=jwplayer().getContainer(),r=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return r&&"number"==typeof r.offsetWidth&&"number"==typeof r.offsetHeight&&0!==r.offsetHeight?r.offsetWidth/r.offsetHeight:1},$i=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},Di=()=>{const e=null!==(t=$i()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=$i()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ri=()=>Object.fromEntries(new URLSearchParams(window.location.search)),qi=(e,t)=>Ee(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:r,countryCode:i}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:i,publisher:r,pageType:"front",deviceType:e.deviceType},s=(yield ke(n,e.isApp,i,"video"))?"1":"0",l=yield si(),c=yield an(i),p=yield Pe({tcf:n,pageContext:d}),u=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Ni(Li,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Ni(Pi,Number(m.toFixed(2))):Oi;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${yi}-country_code`]:i,[`${yi}-publisher`]:r,[`${yi}-supply_type`]:(f=e.deviceType,f===Ze.DESKTOP?et:tt),[`kw_${yi}-page_type`]:"collection",[`${yi}-page_type`]:"collection",[`${fi}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${fi}-page`]:"index",[`${fi}-page`]:"index",[`${fi}-screenheight`]:String(window.screen.height),[`${fi}-screenwidth`]:String(window.screen.width),[`${fi}-viewportheight`]:String(a),[`${fi}-viewportwidth`]:String(o),[`${fi}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${fi}-mobile-os`]:it(),[`${fi}-audience`]:void 0,[`${fi}-externalid_src`]:Di(),[`${fi}-tags`]:e.tags,[`${fi}-articleid`]:u,"article-id":u},yield $t(Object.assign(Object.assign({},t),{pageContext:d}))),p&&{external_uid:p}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${fi}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Ri()).some(e=>e.includes(wi))&&(()=>{const e=Ri(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(wi)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Mi=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],Fi=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],Bi=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ui=(e,t)=>{const n=[...Mi,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Bi.includes(e)?e:`kw_${e}`,t]))},Vi=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Fi.includes(e))),Hi=(e,t)=>Ee(void 0,void 0,void 0,function*(){var n,r,i,o;const a=(e=>{var t;vi[e]||O(`[video] No config found for publisher "${e}"`);return null!==(t=vi[e])&&void 0!==t?t:li})(e.publisher),d=(e=>{var t;return null!==(t=gi[e])&&void 0!==t?t:gi.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,l=null===(r=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===r?void 0:r.toString(),c=e.assetId===l,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,u=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield qi({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==d?void 0:d.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:c,instreamAspectRatio:p,playerAspectRatio:_i(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:u,playbackMethod:hi(e.startMode)}}),zi=(e,t)=>{const{siteConfig:n,siteVideoParams:r,isUserPresentOnFrontPage:i,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=r||{},l=ji(r,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Ci)?`${Ci}${t}`:t)(s),p=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,i),"se-generic-playback-method":mi.get(d),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Ui(o,n)),Vi(o)),{vskippable:"0",referrer:p,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Wi=e=>t=>Ee(void 0,void 0,void 0,function*(){const n=yield Hi(e,t);return zi(n,e)}),Ki={plcmtcnt:1,context:1,contextsubtype:10,plcmttype:1,assets:[{id:1,title:{len:100},required:0},{id:2,img:{type:1,hmin:10,wmin:10},required:0},{id:3,img:{type:3,hmin:10,wmin:10},required:0},{id:4,data:{type:2},required:0},{id:5,data:{type:12},required:0}],ver:"1.2",eventtrackers:[{event:1,methods:[1,2]}]},Gi={no:"NOK",se:"SEK"},Ji={no:"no",se:"sv"};class Yi{buildFetchObject(e,t,n,r){return Ee(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:o}=r,{invCode:a,xandrPlacementId:d}=e,s=yield si(),l=(c=Object.assign(Object.assign({},t),n),Object.entries(c).flatMap(([e,t])=>void 0===t?[]:Array.isArray(t)?t.map(t=>`${e}=${t}`):[`${e}=${t}`]).join(","));var c;const p=new URL(window.location.href),u=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(Ki),ver:"1.1"}})(e),v=(e=>{const{sizes:t,allowedFormats:n}=e;if((null==n?void 0:n.includes("banner"))&&t&&0!==t.length)return{format:t.map(([e,t])=>({w:e,h:t})),w:t[0][0],h:t[0][1]}})(e);return{id:U(36),imp:[Object.assign(Object.assign(Object.assign({id:a},u&&{native:u}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:p.hostname,page:p.href,publisher:{id:String(o.publisherId),domain:p.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Ji[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield Pe(r),ext:{consent:s.gdpr_consent||"",eids:on(i)}},at:1,cur:[Gi[i]],source:{tid:U(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,r){return Ee(this,void 0,void 0,function*(){try{k("Starting fetching Studio ad from Xandr:",di);const i=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${di}?${a.toString()}`:di,s=yield this.buildFetchObject(e,t,n,r),l=yield Bt.post(d,i,s);return k("Fetch operation completed successfully.",l),l}catch(e){k("Error during fetch operation:",e)}return null})}}const Qi=0,Xi=3,Zi=(e,t,n,r)=>{const i=t.parentElement;if(!i)return;const o=e?`-${e}`:"",a=r?`__${r}`:"",d=`advertory${o}-${n}${a}`,s=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(d),i.classList.add(s),t.dataset.adType=n},eo={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},to=(e,t)=>{no(e,t),io(e,t)},no=(e,t)=>{var n,r;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(r=null==t?void 0:t.clickLinkSelector)&&void 0!==r?r:"a.ad-link";(null==i?void 0:i.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const r of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])ao(r)}),t.dataset.tracked="true")})},ro=e=>{var t;const{native:{impressionTrackers:n}={}}=e,r=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;r||!i?null==n||n.forEach(oo):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},io=(e,t)=>{var n;let r=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:Ze.DESKTOP])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!r)for(const n of t)if(n.isIntersecting){r=!0,ro(e),c.disconnect();break}},s);c.observe(i)},oo=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?ao(e):window.navigator.sendBeacon(e)},ao=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},so=e=>e.reduce((e,t)=>{if(!t.serverSidePlacement)return e.clientSidePlacements.push(t),e;const n=Math.random()<.5;return t.keywords=Object.assign(Object.assign({},t.keywords),{"aa-sch-prerenderer":n?"true":"false"}),n?e.serverSidePlacements.push(t):e.clientSidePlacements.push(t),e},{clientSidePlacements:[],serverSidePlacements:[]}),lo=(e,t)=>Ee(void 0,void 0,void 0,function*(){var n,r;const{pageContext:{deviceType:i},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void k(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Lr(d)).observe(s)});const{prepareTag:l}=N.getHandlers(),c=pe.getData("alertoryConfigKeywords"),p=null!==(r=l(ei(e)).keywords)&&void 0!==r?r:{},u=new Yi,v=yield u.fetchData(e,c,p,t);v&&(((e,t,n)=>{const r=n===Ze.MOBILE?t.mobileHTML:t.desktopHTML;if(r){if(t.adType===Qi){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${r}`,e.appendChild(n)}else e.innerHTML=r;e.classList.add("ad-loaded")}})(s,v,i),v.adType===Xi&&(Zi(t.pageContext.publisher,s,eo.NATIVE_AD,t.pageContext.pageType),to({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:i,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,r)=>{var i,o,a;let d;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==r?void 0:r.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),qn(e,n,Number(null==r?void 0:r.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,v.bid))}),co=(e,t)=>{e.forEach(e=>lo(e,t).catch(e=>{k("Failed to handle server-side ad:",e)}))},po={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},uo=e=>Ee(void 0,void 0,void 0,function*(){if(!(e=>{const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:r}=e;return Boolean(t&&n&&(null==r?void 0:r.publisherClassName))})(e))return e;try{const t=yield(e=>Ee(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:r}={}}={}}=e;return(null==t?void 0:t.publisherClassName)&&r?`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${t.publisherClassName}/${r.toUpperCase()}.json`:null})(e);if(!t)return null;const n=new AbortController,r=setTimeout(()=>n.abort(),5e3);try{return yield Bt.get(t,{method:"GET",signal:n.signal})}catch(e){throw k("Failed to fetch S3 config",{error:e,url:t}),e}finally{clearTimeout(r)}}))(e);return t?((e,t)=>A(t,e,po))(e,t):e}catch(t){return k("Error fetching S3 config, using site config",{error:t}),e}}),vo=(e,t)=>{const{pageContext:{isMobileApp:n}}=N.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e};let go,ho=[];const mo=["takeover","wallpaper"],fo=e=>{const t=(e=>{var t;const n=pe.getData("alertoryConfigKeywords"),{queryConfig:r,placements:i,tcf:o,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:p,isMobileApp:u=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:f}=e,y=null!==(t=null==r?void 0:r.batchSize)&&void 0!==t?t:L;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:p,isMobileApp:u},pageSetup:g,placements:i,tcf:o,queryConfig:Object.assign(Object.assign({},r),{batchSize:y})},a&&{glimr:a}),d&&{appearanceConfig:d}),h&&{takeover:h}),m&&{fullscreenScroll:m}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.3.1",siteConfig:e,alertoryConfig:t}},yo=()=>Ee(void 0,void 0,void 0,function*(){const{pageOptions:e}=N.get(),{preparePageOptions:t}=N.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=N.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),r=yield Ee(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=N.get();return(yield ke(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),i=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),r));(e=>{const t=pe.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=ri(e);pe.setData("alertoryConfigKeywords",n)})(i.keywords),H(()=>go.setPageOpts(i))}),wo=e=>Ee(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:r,countryCode:i}}=N.get(),o=yield ke(n,r,i,"loadPlacements"),a=((e,t)=>t?e:(e.filter(e=>!e.supportsNonRTB).forEach(e=>se(e.targetId)),e.filter(e=>e.supportsNonRTB).map(e=>{return Object.assign(Object.assign({},e),{invCode:(t=e.invCode,`${t}_non_rtb`)});var t})))(e,o);bo(a);(null==t?void 0:t.enabled)&&o&&!de()?(k("core loadPlacements prebid enabled"),yield Bn()):(k("core load tags invoked without prebid enabled"),xo(a))}),bo=e=>{const{prepareTag:t}=N.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const r=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==r&&-1===i?-1:-1===r&&-1!==i?1:r-i})})(e).forEach(e=>{k("core defineTags",{placement:e});const r=ei(e);if(ti(e.targetId)){const i=t(r),o=(e=>{const{allowedFormats:t,invCode:n,keywords:r,sizes:i}=e;return{adTypes:t,invCode:n,keywords:ni(r),sizes:i}})(i);n.push(o),H(()=>(k("core defineTag - add to the queue",{placement:e,preparedTag:i}),go.defineTag(i)))}}),(e=>{var t,n,r;(null===(r=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===r?void 0:r.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},xo=e=>{const t=e.filter(({targetId:e})=>ti(e)).map(({targetId:e})=>e);t.length&&H(()=>(k("core loadTags",{placementsIdsToLoad:t}),go.loadTags([...t])))},Eo=(e,t)=>Ee(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:r}}=N.get(),{requestThreshold:i,refresh:o}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[r];a&&(k("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:i,deviceDefaultThreshold:d}),yield _r(a,null!=i?i:d)),a&&(null==o?void 0:o.scroll)&&(k("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),Co=e=>e.some(({targetId:e})=>mo.some(t=>e.includes(t))),Io=e=>Ee(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,r]=(e=>e.reduce(([e,t],n)=>{var r;return(null===(r=null==n?void 0:n.finnBlink)||void 0===r?void 0:r.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=L}={},pageContext:{deviceType:r}}=N.get(),i=be(e),o=Object.keys((null==t?void 0:t[r])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...o,...Hr(d,n)]})(r);for(const e of i)Co(e)?(k("core loadAds without lazy loading",{placementsToLoad:e}),yield wo(e)):e.length&&(k("core loadAds with lazy loading",{placementsToLoad:e}),yield Ao(e));const{finnBlink:o}=N.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-nUn5kBi-.js");yield e(n)}}),Ao=e=>Ee(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=N.get(),r=[];if(!t)return k("lazy load is not enabled",{placements:e}),void(yield wo(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{k("lazy load is enabled - handler start",{loadedTargetIds:r,placements:e});const i=e.every(e=>r.includes(e.targetId)),o=e.map(e=>e.targetId);!i&&r.push(...o),!i&&wo(e),k("lazy load is enabled - handler stop",{loadedTargetIds:r,placements:e,arePlacementsLoaded:i,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(k("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),So=()=>Ee(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=N.getHandlers(),{wallpaper:n,fullscreenScroll:i}=N.get(),o=[];H(()=>{go.onEvent("adRequested",()=>{e.adRequested()}),go.onEvent("adAvailable",r=>Ee(void 0,void 0,void 0,function*(){var o,s,c,v,h,m;k("core adAvailable start",{placementsAvailable:ho,adObj:r,isFullscreenScrollAd:a(r),isFinnBlink:g(r.targetId),isNativeAd:d(r),isMediation:ft(r),isTakeoverAd:l(r),isCollapseAd:u(r),isWallpaperAd:p(r)});const y=null===(c=null===(s=null===(o=null===window||void 0===window?void 0:window.apntag)||void 0===o?void 0:o.requests)||void 0===s?void 0:s.tags[r.targetId])||void 0===c?void 0:c.adResponse.ads;if(ft(r)&&y&&(null===(v=y[1])||void 0===v?void 0:v.rtb)&&(r.banner=null===(m=null===(h=y[1])||void 0===h?void 0:h.rtb)||void 0===m?void 0:m.banner),a(r)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return Dn});e(r)}const{widescreenSwitching:w}=N.get();if(f(r)&&(null==w?void 0:w.enabled)){const{initWidescreenSwitching:e}=yield import("./index-DrpKSbVQ.js");e()}if(a(r)&&!g(r.targetId)){const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return Dn});e(r,i)}if(!d(r)||ft(r)||g(r.targetId)||null==t||t(r,N.get()),l(r)&&!u(r)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-BW5Lv-0P.js");e(r.targetId),yield t(r)}if(p(r)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return ne});e(()=>H(()=>window.apntag.showTag(r.targetId)),n),pe.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(r)&&pe.setData("horseshoe",{isAvailable:!0}),Qe({adObj:r}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const r=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;r&&((e,t)=>{const{height:n,width:r,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&r&&(t.dataset.adSizes=`[${r},${n}]`)})(e,r)})(r),e.adAvailable(r);const b=ho.find(({targetId:e})=>e===r.targetId);b&&(yield Eo(b,r),ho=ho.filter(e=>e.targetId!==b.targetId)),k("core adAvailable stop",{placementsAvailable:ho,adObj:r,isFullscreenScrollAd:a(r),isFinnBlink:g(r.targetId),isNativeAd:d(r),isMediation:ft(r),isTakeoverAd:l(r),isCollapseAd:u(r),isWallpaperAd:p(r)})})),go.onEvent("adLoaded",n=>Ee(void 0,void 0,void 0,function*(){const{refreshConfig:i,appearanceConfig:a,wallpaper:c,adScaleConfig:p}=N.get(),v=document.getElementById(n.targetId);if(g(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-BN191VZA.js");e(n)}if(o.includes(n.targetId)&&d(n)&&(null==t||t(n,N.get()),Qe({adObj:n})),!o.includes(n.targetId)&&ft(n)&&o.push(n.targetId),u(n)&&se(n.targetId),l(n)){const{modifyTakeoverIframe:e}=yield import("./index-BW5Lv-0P.js");e(go,n.targetId)}if(s(n)){const{prepareContainerForFullWidthFormat:e}=yield import("./index-D4EQa36M.js");e(n)}if((e=>x(e,r.NINESIXTEEN))(n)){const{applyNinesixteenFormat:e}=yield import("./index-D4EQa36M.js");e(n)}if((e=>x(e,r.FULLSQUARE))(n)){const{applyFullsquareFormat:e}=yield import("./index-D4EQa36M.js");e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,r=document.querySelector(`#${n}`),i=null==r?void 0:r.parentElement;if(!i||!r)return;Br({adWrapper:i,placementContainer:r});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();r&&"true"!==r.dataset.subscribedForRefresh&&(r.dataset.subscribedForRefresh="true",r.dataset.refresh&&Vr(r,a,o))})(n,i),(null==a?void 0:a.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(pe.getData("horseshoe").isAvailable&&(null==c?void 0:c.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return ne});e(n.targetId)}if(null==p?void 0:p.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-CZdK32gW.js");e(n),t(n)}e.adLoaded(n),Rn(n.targetId),v&&(v.classList.add(Mn),(e=>{var t,n;const{pageSectionsSelectors:r}=N.get(),i=null==r?void 0:r.mainFirstColumn,o=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(v)),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:Xe(n)}}))})),go.onEvent("adNoBid",t=>Ee(void 0,void 0,void 0,function*(){var n;if(se(t.targetId),null===(n=N.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-ottGobaO.js");yield e(N.get(),t)}if(l(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Je});yield e(t)}e.adNoBid(t)})),go.onEvent("adError",(t,n)=>Ee(void 0,void 0,void 0,function*(){if(l(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Je});yield e(n)}e.adError(t,n)})),go.onEvent("adCollapse",()=>{e.adCollapse()}),go.onEvent("adRequestFailure",t=>Ee(void 0,void 0,void 0,function*(){se(t.targetId),yield yr(N.get(),t),e.adRequestFailure(t)})),go.onEvent("adBadRequest",t=>Ee(void 0,void 0,void 0,function*(){se(t.targetId),yield yr(N.get(),t),e.adBadRequest(t)})),go.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),go.onEvent("adNoBidMediated",t=>Ee(void 0,void 0,void 0,function*(){yield yr(N.get(),t),e.adNoBidMediated(t)}))})}),To=(e,t)=>Ee(void 0,void 0,void 0,function*(){var n;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{clearAds:r,reloadExistingAds:i,renderFinnBlinkPlacements:o,contextSelector:a}=null!=t?t:{};if(r)return ge(),[];i&&(ge(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{le(e.id)})),_(null!=e?e:{}),yield yo();const{clientSidePlacements:d,serverSidePlacements:s}=so(ye(a));let l=d;return o&&(l=l.filter(e=>g(e.targetId))),co(s,N.get()),l.length>0&&(ho=[...ho,...l.map(e=>Object.assign({},e))],Wr(l),Gr(l),yield Io(l)),ho}),ko=(e,t)=>Ee(void 0,void 0,void 0,function*(){var n;N.set(e),N.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:r,kilkaya:i,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(pe.initialize(),window.addEventListener("message",Pr,!1),go=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=go,k("Apn tag is set up on window"),yield Promise.allSettled([Ee(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=N.get();(yield ke(e,t,n,"xandr-endpoint"))||go.setEndpoint("ib.adnxs-simple.com",!0)}),Ee(void 0,void 0,void 0,function*(){if(de())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:r}}=N.get(),i=yield ke(t,n,r,"prebid");(null==e?void 0:e.enabled)&&i&&(yield sn(null==e?void 0:e.prebidUrl))}),Zt(e),Ee(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=N.get();yield sn(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),Ee(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:r}}=N.get();(yield ke(t,n,r,"gpt-endpoint"))&&(yield sn(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),Ee(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:r,countryCode:i}}=N.get(),{getConsentAsync:o}=Te(n,0,i),a=yield o();if(e&&t&&a){if(yield sn(t),document.querySelector(`.${ai}`))return window._brandmetrics=window._brandmetrics||[],void window._brandmetrics.push({cmd:"_loadsurvey"});new MutationObserver((e,t)=>{for(const n of e){if("childList"!==n.type)return;Array.from(n.addedNodes).some(e=>{var t;return null===(t=e.outerHTML)||void 0===t?void 0:t.includes(ai)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),Pt(),Ee(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=N.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield sn(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==r?void 0:r.enabled){const{loadNorstat:e}=yield import("./index-COIuvCyJ.js");yield e()}k("Libraries have been loaded and trackers have been set"),yield So(),yield yo(),k("Page options have been set"),fo(e),k("Advertory is setup on window");const{clientSidePlacements:s,serverSidePlacements:l}=so(ye());if(ho=s,co(l,e),Wr(ho),Gr(ho),yield Io(ho),k("Ads has been loaded",ho),br(e,ho),ii(ho),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-nUn5kBi-.js");yield t(null===(n=null==e?void 0:e.pageContext)||void 0===n?void 0:n.deviceType,e.finnBlink)}if(null==a?void 0:a.enabled){const{handleDrEdition:t}=yield import("./index-ottGobaO.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-DQlbgZ8n.js");t(e.rightColumnSplit)}if(null==i?void 0:i.enabled){const{runKilkaya:t}=yield import("./index-CjPdB8I3.js");yield t(e)}}),Oo=(e,t)=>Ee(void 0,void 0,void 0,function*(){yield((e,t)=>Ee(void 0,void 0,void 0,function*(){var n,r;const{initConsentManager:i,getConsentAsync:o}=Te(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),a=yield uo(e);yield hr(),yield oi(i),yield oi(o),k("TCF resolved successfully"),yield ko(a,t),k("Run function resolved successfully")}))(e,t)}),Po=(e,t,n,r)=>{var i;const{image:o,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:p,desc2:u,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:f,customTitle4:y,customIcon1:w,customIcon2:b,customDisplayUrl1:x}=e,E=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:E(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=(null==u?void 0:u.includes("sponsor"))&&"dark"===(null===(e=r.appearanceConfig)||void 0===e?void 0:e.theme)&&w;return E(t?w:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(i=null!=p?p:g)&&void 0!==i?i:"",desc2:null!=u?u:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=f?f:"",customTitle4:null!=y?y:"",logo2:E(b),previewVideoSrc:null!=x?x:""},t)},Lo=(e,t)=>{const n=(r=ae,window.location.href.includes(r));var r;const i=new URLSearchParams(window.location.search).get(ae),o=t.includes("native_recirc");return n&&i?i:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},jo=(e,t,n,r)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:r,pageType:i}=t,o=r&&Object.values(Et).includes(r);n&&o&&Zi(r,e,eo.NATIVE_AD,i)})(i,n),r())},No=(e,t,n)=>{const r=((e,t,n)=>{var r;const{displayTemplates:i,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),p=null!==(r=Lo(e.targetId,l))&&void 0!==r?r:c,u=On[t.language||$.NO],v=Po(d,u,s,t);return(d.video?o[p]:i[p]||i.default)(v,t)})(e,t,n);jo(e.targetId,r,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&to(e,t)})},_o=e=>(t,n)=>{var r;const{targetId:i}=t,o=document.querySelector(`#${i}`);if(!o)return;const a=e.getOptions(null!=n?n:{});No(t,a,e.templates),null===(r=e.postProcess)||void 0===r||r.call(e,t,o)},$o=e=>{const{pageContext:{countryCode:t}}=N.get(),{keywords:n,dynamicSizeWidthCheck:r}=e,i=`${D(t)}-adformat`,a=n?n[i]:[];if(!a)return{};const d=(Array.isArray(a)?a:[a]).filter(e=>!(e in o)||window.innerWidth>=o[e]);return{[i]:r?d:a}},Do=e=>{const{pageContext:{countryCode:t}}=N.get(),n=`${D(t)}-targetid`;return e?{[n]:[e]}:{}},Ro=()=>{if(!window.location.search.includes("kv_"))return{};const e={},t=(()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e)})();return Object.keys(t).forEach(n=>{n.startsWith("kv_")&&(e[n.slice(3)]=t[n])}),e};class qo{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return Ee(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return Ee(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Mo=9826;class Fo{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e=Ze.DESKTOP,isMobileApp:t}}=N.get();if(t){return{"aa-sch-supply_type":`app_${e===Ze.MOBILE?"phone":Ze.TABLET}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return Ee(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return Ee(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return Le()}getExternalUid(){return Ee(this,void 0,void 0,function*(){return yield Pe(N.get())})}isTrackingForbidden(){return Ee(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=Mo}={}}=N.get();return"true"===re("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=N.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return Ee(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=N.get(),{getConsentAsync:r}=Te(e,0,n);return{"aa-sch-cmp_advertising":(yield r())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=N.get();return{"aa-sch-page_type":e}}getCountryCodeKeywords(e){return{"aa-sch-country_code":e}}getInventoryTypeKeywords(){return{"aa-sch-inventory_type":"editorial"}}getHasContextKeywords(e){const t=e["aa-sch-context_keyword"];return{"aa-sch-has_context_keyword":Array.isArray(t)&&t.length?1:0}}getPageOptionsFormatDevice(e="desktop"){return"mobile"===e?"phone":e}}const Bo=new Fo,Uo=Bo.prepare.bind(Bo);function Vo(e=!1){var t,n;const r=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=it();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:r.includes("hermes"),appMode:e?"hybrid":"notinapp"}}const Ho=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function zo(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Ho.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Wo extends Fo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e=Ze.DESKTOP}}=N.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=N.get(),{OS:n,isHybridApp:r}=Vo(t);return{"no-sno-apptype":n&&e&&r?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return zo(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:r}}=N.get(),i=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${i.split("_").pop()||i}_${"article"===r?"article":"front"}`}}}const Ko=new class extends Wo{prepare(e){return Ee(this,void 0,void 0,function*(){var t,n,r,i,o,a,d;const s=N.get(),l=null!==(r=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==r?r:{},c=null!==(a=null===(o=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},p=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,u=new qo;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync($t(N.get(),l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),u.add(this.getSupplyTypeKeywords()).add(tn()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.obituaries&&void 0!==p,void 0!==p?this.getObituariesKeywords(p):{}).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords);const v=u.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},en($.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Go=Ko.prepare.bind(Ko);class Jo extends Fo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e=Ze.DESKTOP}}=N.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight;return{width:e||n||0,height:t||r||0}}(),t={width:null!==(r=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==r?r:0,height:null!==(o=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==o?o:0};var n,r,i,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return Ee(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=N.get(),{appMode:t,mobileOS:n}=Vo(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:r}}=N.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===r?"article":"front"}`}}}const Yo=new class extends Jo{prepare(e){return Ee(this,void 0,void 0,function*(){var t,n,r,i,o,a;const d=N.get(),s=null!==(r=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==r?r:{},l=null!==(a=null===(o=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},c=new qo;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync($t(N.get(),s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>Ee(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),c.add(this.getSupplyTypeKeywords()).add(tn()).addIf(l.appType,this.getAppTypeKeywords()).addIf(l.device,this.getDeviceKeywords()).addIf(l.screen,this.getScreenKeywords()).addIf(l.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(l.sectionPageType,this.getSectionPageTypeKeywords()).addIf(l.hasContext,this.getHasContextKeywords(e.keywords)).addIf(l.hasPlusMembership,{"se-generic-has_plus":"plus"===Oe("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=c.build(),u=!1!==s.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},en($.SE)),u?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Qo=Yo.prepare.bind(Yo),Xo=({containerId:e,url:t,adText:n,sponsoredBy:r,title:i,img:o,description:a,desc2:d})=>{import("./styles-C_hpeS_z.js");const s=b({native:{desc2:d}});return`<article class="advertory-aftonbladet-ad-native-classic ${s?"advertory-aftonbladet-ad-native-classic-alcohol":""}">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}">\n <div class="ad-content">\n <div class="ad-header">\n <span class="ad-annonse">${n}</span>\n </div>\n <div class="ad-image-container">\n <img alt="${i}" class="ad-image" src="${o}" />\n </div>\n <div class="ad-data-content">\n <div class="ad-title">${i}</div>\n <div class="ad-subtitle">\n <span class="ad-sponsored">${r}</span> ${a}\n </div>\n </div>\n ${s?'<div class="alcohol-warning-wrapper">\n <div class="alcohol-warning">Alkohol&nbsp;kan skada&nbsp;din&nbsp;hälsa</div>\n </div>':""}\n </div>\n </a>\n </article>`},Zo="viewable",ea="adClick";const ta=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),r=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(r){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},na=({id:e,nodeId:t,poster:n,tagURL:r,publisher:i="",productTag:o="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:r}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},sr(e)?e:{}),{provider:Object.assign(Object.assign({},sr(null==e?void 0:e.provider)?e.provider:{}),{productTag:o})})}}),ra=e=>Ee(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:r}=e,{repeat:i}=t,o=yield nr(t);ir(n),o.once("assetReady",()=>{tr(o,n)}),o.on(Zo,e=>{const{viewable:t}=e;t?o.play():o.pause()}),o.on(ea,()=>{window.open(r,"_blank")}),i&&o.on("pause",()=>{o.play()})}),ia=({containerId:e,url:t,adText:n,description:r,title:i,sponsoredBy:o},a,d)=>{import("./styles-CbTU27Da.js");const{deviceType:s}=a,l=(e=>e===Ze.DESKTOP)(s)?"":' target="_blank" rel="noopener"';return`<article class="advertory-aftonbladet-ad-native-classic">\n <div class="ad-info" id="${e}-button"></div>\n <div class="ad-content">\n <div class="ad-header">\n <span class="ad-annonse">${n}</span>\n </div>\n <div class="ad-image-container">\n <div class="ad-player-wrapper">\n <div id="${null!=d?d:0}"></div>\n </div>\n </div>\n <a class="ad-link" href="${t}"${l}>\n <div class="ad-data-content">\n <div class="ad-title">${i}</div>\n <div class="ad-subtitle">\n <span class="ad-sponsored">${o}</span> ${r}\n </div>\n </div>\n </a>\n </div>\n </div>\n </article>`};Tn(".advertory-aftonbladet-ad-native-sponsorstripe{position:fixed;top:0;left:0;width:100vw;padding:0;margin:0;border:none;background-color:rgba(0,0,0,0);text-align:left}.advertory-aftonbladet-ad-native-sponsorstripe *{box-sizing:content-box}.advertory-aftonbladet-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-height:30px;padding:5px 10px;margin:auto;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);font-family:Roboto,sans-serif}.advertory-aftonbladet-ad-native-sponsorstripe .ad-logo{flex:0;max-width:35%;max-height:22px;padding:9px 16px 8px}.advertory-aftonbladet-ad-native-sponsorstripe .ad-title{margin-right:10px;font-weight:bold;font-size:14px;color:#fff}@media screen and (min-width: 768px){.advertory-aftonbladet-ad-native-sponsorstripe .ad-wrapper{max-height:50px}.advertory-aftonbladet-ad-native-sponsorstripe .ad-title{font-size:15px}.advertory-aftonbladet-ad-native-sponsorstripe .advertory-aftonbladet-ad-native-sponsorstripe{width:100%}}");const oa={CONTENT_DISPLAY:(e,{pageType:t})=>(import("./styles-DPlR9hvz.js"),t===er.ARTICLE&&"gambling"===e.desc2?(({containerId:e,url:t,adContentFrom:n,adText:r,sponsoredBy:i,title:o,img:a,description:d,desc2:s})=>(import("./styles-DPlR9hvz.js"),`<article class="advertory-aftonbladet-ad-native-content article">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank">\n <div class="ad-content">\n <div class="ad-data-content">\n <div class="ad-annonse">${r}</div>\n <div class="ad-title">${o}</div>\n ${d&&`<div class="ad-subtitle">${d}</div>`}\n <div class="ad-sponsored">${n} ${i}</div> \n </div>\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${a}" />\n </div>\n </div>\n ${"gambling"===s?'<div class="ad-gambling">\n <div class="ad-gambling-text">Åldersgräns för spel är 18 år.</div>\n <div class="ad-gambling-link">www.stodlinjen.se</div>\n </div>':""}\n </a>\n </article>`))(e):(({containerId:e,url:t,adContentFrom:n,adText:r,sponsoredBy:i,title:o,img:a,description:d,desc2:s})=>(import("./styles-DPlR9hvz.js"),`<article class="advertory-aftonbladet-ad-native-content">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank">\n <div class="ad-header">\n <span class="ad-annonse">${r}</span>\n </div>\n <div class="ad-content">\n <div class="ad-data-content">\n <div class="ad-title">${o}</div>\n ${d&&`<div class="ad-subtitle">${d}</div>`}\n <div class="ad-sponsored">${n} ${i}</div> \n </div>\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${a}" />\n </div>\n </div>\n ${"gambling"===s?'<div class="ad-gambling">\n <div class="ad-gambling-text">Åldersgräns för spel är 18 år.</div>\n <div class="ad-gambling-link">www.stodlinjen.se</div>\n </div>':""}\n </a>\n </article>`))(e)),CLASSIC:Xo,CLASSIC_VIDEO:(e,t)=>{import("./styles-CbTU27Da.js");const{video:n}=e;return(null==n?void 0:n.content)?(r=ia,(e,t,n)=>{const{video:i,img:o,url:a}=e,{publisher:d,productTag:s}=t,{pluginsNames:l,videoLoop:c}=n||{};if(!(null==i?void 0:i.content))return null;const p=Math.ceil(1e5*Math.random()),u=o||"https://custom.inventory.schibsted.io/1x1-00000000.png",v=`ad-player-${p}`,g=ta(i.content,a),h=na({id:p,nodeId:v,poster:u,tagURL:g,publisher:d,productTag:s,videoLoop:c});return ra({playerConfig:h,clickUrl:a,pluginsNames:l}),`${r(e,t,v)}`})(e,t):Xo(e);var r},CHAT_INTEGRATION:({containerId:e,url:t,sponsoredBy:n,title:r,logo:i,img:o,description:a,customTitle2:d})=>{import("./styles-Dxa22cKV.js");const s=d?((e,t)=>{const n=new RegExp(`(\\b[a-zäöå]+\\.${t}\\b)`,"g");return e.replace(n,e=>`<u>${e}</u>`)})(d,$.SE):void 0;return`<article class="advertory-aftonbladet-ad-native-chat-integration">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank">\n <div class="ad-content">\n <span class="ad-annonse">ANNONS FRÅN ${n}</span>\n <img alt="${n}" class="ad-logo" src="${i}" />\n <div class="ad-data-content">\n <span class="ad-subtitle">\n ${a}\n </span>\n <span class="ad-title">${r}</span>\n <div class="ad-button">Se alla nyheter</div>\n <div class="ad-image-container">\n <img alt="${r}" class="ad-image" src="${o}" />\n </div>\n </div>\n </div>\n </a>\n ${s?`<div class="ad-chat-warning">${s}</div>`:""} \n </article>`},SPONSORSTRIPE:({title:e,sponsoredBy:t,logo:n,url:r})=>`<article class="advertory-aftonbladet-ad-native-sponsorstripe" ${/iPhone|iPad|iPod/i.test(navigator.platform)&&"ios"===it()?'style="top: env(safe-area-inset-top)"':""}>\n <a class="ad-link" href="${r}" target="_blank">\n <div class="ad-wrapper">\n <span class="ad-title">${e}</span>\n <img alt="${t}" class="ad-logo" src="${n}" />\n </div>\n </a>\n </article>`},aa={displayTemplates:{brandstudio_native_ad:oa.CLASSIC,brandstudio_native_ad_alcohol:oa.CLASSIC,default:oa.CONTENT_DISPLAY,gambling:oa.CONTENT_DISPLAY,ab_chat:oa.CHAT_INTEGRATION,sponsor:oa.SPONSORSTRIPE,sponsortop:oa.SPONSORSTRIPE,sponsorstripe:oa.SPONSORSTRIPE},videoTemplates:{brandstudio_native_ad:oa.CLASSIC_VIDEO}},da=(e,t)=>{e.style.position="fixed",e.style.transform=`translateY(${t}px)`},sa=(e,t)=>{const n=document.querySelector(t),r=document.querySelector(`#${e}`);if(!r||!n)return;const i=r.parentElement,o=new IntersectionObserver(([e])=>((e,t,n)=>{const r=e?t.offsetHeight:0;da(n,r)})(e.isIntersecting,n,i)),a=new ResizeObserver(()=>((e,t)=>{da(t,e.offsetHeight)})(n,i));o.observe(n),a.observe(n)},la=e=>["scrolling-up","menuScrollingUp"].some(t=>e.classList.contains(t)||document.body.classList.contains(t))||0===window.scrollY,ca=e=>e.reduce((e,t)=>{var n;return e+(null!==(n=null==t?void 0:t.getBoundingClientRect().height)&&void 0!==n?n:0)},0),pa=(e,t)=>t.map(t=>e.querySelector(t)),ua=(e,t)=>{e.style.transform=`translateY(${t}px)`,e.style.transition="transform 0.3s ease-out"},va=(e,t)=>{const{headerSelector:n,staticElementsSelectors:r,dynamicElementsSelectors:i}=t;if(!n||!r||!i)return;const o=document.querySelector(n),a=document.querySelector(`#${e}`);if(!o||!a)return;const d=a.parentElement,s=()=>((e,t,n)=>{const r=pa(e,t),i=pa(e,n),o=ca(r);return{minimizedTop:o,expandedTop:o+ca(i)}})(o,r,i),{minimizedTop:l,expandedTop:c}=s();ua(d,la(o)?c:l);const p=((e,t,n)=>{let r=!la(e);return()=>{const i=!la(e);if(i===r)return;r=i;const{minimizedTop:o,expandedTop:a}=n();ua(t,i?o:a)}})(o,d,s);((e,t)=>{const n=new MutationObserver(t);e.forEach(e=>{n.observe(e,{attributes:!0,attributeFilter:["class"],attributeOldValue:!1})})})([o,document.body],p)},ga=e=>document.querySelector(e)||document.querySelector(`[class*="${e}"]`),ha=(e,t,n=Ze.DESKTOP)=>{var r;if(!t||!v(e))return;const{enabled:i,options:o}=t,{containersSelectors:a,staticElementsSelectors:d,dynamicElementsSelectors:s,hideOnScroll:l,stickBelowHeader:c}=null!=o?o:{},{targetId:p}=e;if(!i)return;const u=null===(r=N.get().pageSectionsSelectors)||void 0===r?void 0:r.header,g=null==s?void 0:s.length,h=document.querySelector(".advertory-takeover-wrapper"),m={headerSelector:u,staticElementsSelectors:d,dynamicElementsSelectors:s},f=[()=>c&&u&&!g&&sa(p,u),()=>g&&va(p,m),()=>a&&((e,t)=>{const n=document.querySelector(`#${e}`);if(!n)return;const[r,i]=t;if(!r)return;const o=()=>{const e=ga(r),t=i?ga(i):null,o=n.querySelector("article");if(!o||!e)return;const a=e.getBoundingClientRect().left,d=((e,t)=>{const n=e.getBoundingClientRect(),r=null==t?void 0:t.getBoundingClientRect();return r?r.right-n.left:n.width})(e,t);o.style.left=`${a}px`,o.style.width=`${d}px`};o(),new ResizeObserver(o).observe(document.body)})(p,a),()=>h&&((e,t)=>{const n=document.querySelector(`#${e}`);if(!n||!t)return;new IntersectionObserver(([e])=>{n.style.visibility=e.isIntersecting?"hidden":"visible"}).observe(t)})(p,h),()=>l&&((e,t,n)=>{var r;if(!v(e)||!ot(n))return;const{hideOnScroll:i}=null!==(r=t.options)&&void 0!==r?r:{};if(!i)return;const o=document.querySelector(`#${e.targetId}`),a=null==o?void 0:o.parentElement;if(!a)return;const d=1.5*window.innerHeight;window.addEventListener("scroll",()=>{window.scrollY>=d?a.classList.add("advertory-sponsorstripe-onscroll-hidden"):a.classList.remove("advertory-sponsorstripe-onscroll-hidden")},{passive:!0})})(e,t,n)];f.forEach(e=>e())};Tn(".advertory-aftonbladet-native-ad-wrapper__front{align-items:center;clear:both;display:flex;justify-content:center;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-native-ad-wrapper__front{margin-bottom:16px}}.advertory-aftonbladet-native-ad-wrapper__front .advertory-aftonbladet-native-ad__front{position:relative;width:100%;min-height:120px;z-index:10}.advertory-aftonbladet-native-ad-wrapper__section{align-items:center;clear:both;display:flex;justify-content:center;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-native-ad-wrapper__section{margin-bottom:16px}}.advertory-aftonbladet-native-ad-wrapper__section .advertory-aftonbladet-native-ad__section{position:relative;width:100%;min-height:120px;z-index:10}.advertory-aftonbladet-native-ad-wrapper__article{padding:16px 0 36px;margin:24px -16px;align-items:center;clear:both;display:flex;justify-content:center;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-native-ad-wrapper__article{margin-bottom:16px}}.advertory-aftonbladet-native-ad-wrapper__article .advertory-aftonbladet-native-ad__article{position:relative;width:100%;min-height:120px;z-index:10}");Tn('.advertory-aftonbladet-panorama-wrapper{display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper{margin-bottom:16px}}.advertory-aftonbladet-panorama{position:relative;min-height:345px}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama{min-height:320px}}.advertory-aftonbladet-panorama::before{display:block;content:"ANNONS";color:#585858;font-size:10px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-weight:bold;letter-spacing:.4px;line-height:25px;visibility:hidden}.advertory-aftonbladet-panorama>div[role=button]{background-color:unset !important;left:unset !important;right:0;z-index:9 !important}.advertory-aftonbladet-panorama>div[role=button] svg path{fill:#585858}.advertory-aftonbladet-panorama.outstream{width:100vw;min-height:unset !important;display:grid;justify-items:center}.advertory-aftonbladet-panorama-wrapper__toppanorama{margin-bottom:16px;display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__toppanorama{margin-bottom:16px}}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__toppanorama{margin-bottom:0;justify-content:unset;margin-left:16px}}.advertory-aftonbladet-panorama-wrapper__toppanorama>.advertory-aftonbladet-panorama{min-height:345px;min-width:320px}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__toppanorama>.advertory-aftonbladet-panorama{min-height:265px}}.advertory-aftonbladet-panorama-wrapper__article{margin:24px -16px;padding:16px 0 36px 0;display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__article{margin-bottom:16px}}html[data-theme=dark] .advertory-aftonbladet-panorama-wrapper__article{background-color:#121212}.advertory-aftonbladet-panorama-wrapper__article{background-color:#f7f7f7}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__article{margin:24px 0}}.advertory-aftonbladet-panorama-wrapper__sportbladet{margin:24px -16px;padding:16px 0 36px 0;background-color:#feebee;display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__sportbladet{margin-bottom:16px}}html[data-theme=dark] .advertory-aftonbladet-panorama-wrapper__sportbladet{background-color:#230107}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__sportbladet{margin:24px 0}}.advertory-aftonbladet-panorama-wrapper__full-width-ad{display:block !important}@media screen and (max-width: 590px){.advertory-aftonbladet-panorama-wrapper__full-width-ad{width:100vw;position:relative;margin-left:-50vw !important;left:50%}}.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad{min-height:150px !important}@media screen and (max-width: 590px){.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad{width:100vw;position:relative;margin-left:-50vw;left:50%;padding-left:0;max-width:unset !important}}.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad div[id^=div_utif],.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad iframe{width:100vw !important}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad div[id^=div_utif],.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad iframe{width:100% !important}}.advertory-aftonbladet-panorama-wrapper__live>.advertory-aftonbladet-panorama:has(>div[role=button]){max-width:320px}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__live>.advertory-aftonbladet-panorama:has(>div[role=button]){max-width:unset}}.advertory-aftonbladet-panorama-wrapper__live .advertory-aftonbladet-panorama__full-width-ad{margin-left:calc(-50vw - 10px)}.advertory-aftonbladet-l-format{position:relative;height:273px;overflow:visible;display:block}.advertory-aftonbladet-l-format>.advertory-aftonbladet-panorama{position:absolute}.advertory-aftonbladet-h-format{position:relative;height:275px;overflow:visible;transform:translate(-169px);display:block}.advertory-aftonbladet-h-format>.advertory-aftonbladet-panorama{position:absolute;width:1600px;margin-left:-17px}.advertory-native-ad .advertory-aftonbladet-panorama{min-height:120px !important}.advertory-native-ad::before{display:none !important}');const ma=({targetId:t,adTheme:n,probableHeight:r})=>e("div",{style:{minHeight:null!=r?r:void 0},className:`advertory-aftonbladet-panorama-wrapper${n&&"default"!==n?`__${n}`:""}`,children:e("div",{id:t,className:"advertory-aftonbladet-panorama"})});Tn('.advertory-aftonbladet-widescreen-wrapper{justify-content:start;display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-widescreen-wrapper{margin-bottom:16px}}.advertory-aftonbladet-widescreen{position:relative;min-height:600px;position:absolute;top:0;transition:opacity 450ms linear}.advertory-aftonbladet-widescreen::before{display:block;content:"ANNONS";color:#585858;font-size:10px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-weight:bold;letter-spacing:.4px;line-height:25px;visibility:hidden}.advertory-aftonbladet-widescreen>div[role=button]{background-color:unset !important;left:unset !important;right:0;z-index:9 !important}.advertory-aftonbladet-widescreen>div[role=button] svg path{fill:#585858}');const fa=({targetId:t,probableHeight:n})=>e("div",{style:{minHeight:null!=n?n:void 0},className:"advertory-aftonbladet-widescreen-wrapper",children:e("div",{id:t,className:"advertory-aftonbladet-widescreen"})});Tn('.advertory-aftonbladet-insider-wrapper{display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-insider-wrapper{margin-bottom:16px}}.advertory-aftonbladet-insider{position:relative;min-height:250px;width:100%;max-width:300px}.advertory-aftonbladet-insider::before{display:block;content:"ANNONS";color:#585858;font-size:10px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-weight:bold;letter-spacing:.4px;line-height:25px;visibility:hidden}.advertory-aftonbladet-insider>div[role=button]{background-color:unset !important;left:unset !important;right:0;z-index:9 !important}.advertory-aftonbladet-insider>div[role=button] svg path{fill:#585858}');const ya=({targetId:t,probableHeight:n})=>e("div",{style:{minHeight:null!=n?n:void 0},className:"advertory-aftonbladet-insider-wrapper",children:e("div",{id:t,className:"advertory-aftonbladet-insider"})});Tn('.advertory-aftonbladet-integration-wrapper{display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-integration-wrapper{margin-bottom:16px}}.advertory-aftonbladet-integration{position:relative;min-height:320px}.advertory-aftonbladet-integration::before{display:block;content:"ANNONS";color:#585858;font-size:10px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-weight:bold;letter-spacing:.4px;line-height:25px;visibility:hidden}.advertory-aftonbladet-integration>div[role=button]{background-color:unset !important;left:unset !important;right:0;z-index:9 !important}.advertory-aftonbladet-integration>div[role=button] svg path{fill:#585858}');const wa=({targetId:t,probableHeight:n})=>e("div",{style:{minHeight:null!=n?n:void 0},className:"advertory-aftonbladet-integration-wrapper",children:e("div",{id:t,className:"advertory-aftonbladet-integration"})});Tn(".advertory-aftonbladet-sponsorstripe-wrapper{z-index:50;position:sticky;top:var(--fixed-header-height-mobile, 0);height:auto;margin-bottom:0;clear:both;text-align:left;background-color:rgba(0,0,0,0);height:0 !important;width:0 !important}.advertory-aftonbladet-sponsorstripe-wrapper .advertory-aftonbladet-sponsorstripe{position:absolute;top:0;left:0;width:100%;margin:0;border:medium;padding:0;background-color:rgba(0,0,0,0);text-align:left}.advertory-aftonbladet-native-ad-wrapper__article:has(div[id^=sponsorstripe]){overflow:visible;z-index:100;position:fixed;height:0;margin:0;padding:0}");const ba=({targetId:t})=>e("div",{className:"advertory-aftonbladet-sponsorstripe-wrapper",children:e("div",{id:t,className:"advertory-aftonbladet-sponsorstripe"})});Tn(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const xa=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),e("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:e("span",{id:"advertory-splash-close-label"})})]})});var Ea="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",Ca="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";Tn(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const Ia=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:Ea,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:Ca,width:"54",height:"54"})]}),{})]});Tn(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const Aa=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:Ea,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:Ca,width:"54",height:"54"})]}),{})]});Tn(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const Sa=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(xa,{}),e(Ia,{}),e(Aa,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),Ta={prepareTag:e=>{var t;const{keywords:n,targetId:r,invCode:i,dynamicSizeWidthCheck:o}=e,{pageSetup:a,pageContext:{countryCode:d}}=N.get();if(!a)return(e=>{const{keywords:t,targetId:n,invCode:r}=e,{pageSetup:{tag:{useAppTabletInvCode:i=!0}={}}={}}=N.get(),o=vo(r,i),a=$o(e),d=Do(n),s=Ro(),l=bt(r),c=wt(r);return Object.assign(Object.assign({},e),{invCode:o,keywords:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),a),d),l),s),rendererOptions:c})})(e);const{tag:{useAppTabletInvCode:s=!0}={}}=a,l=vo(i,s),c=$o(e),p=Do(r),u=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(l),v=Ro(),g=bt(i),h=wt(i,{safeFrameAutoInitialSize:!0}),m=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new qo).add(null!=n?n:{}).add(c).add(p).add(null!=u?u:{}).add(g).add(v).addIf(null===(t=null==a?void 0:a.tag)||void 0===t?void 0:t.reloadKeywords,{[`${D(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:m,invCode:l,keywords:f,rendererOptions:h,globalPlacementId:l})},preparePageOptions:e=>Ee(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t},pageSetup:n}=N.get();return n?yield t===$.SE?Qo(e):Go(e):yield Uo(e)}),siteEvents:xt,initNativeAd:(e,t)=>{var n;const{targetId:r}=e,i=document.querySelector(`#${r}`);if(!i)return;const{pageType:o=er.FRONT,deviceType:a}=null!==(n=null==t?void 0:t.pageContext)&&void 0!==n?n:{},{nativeTrackingConfig:d,appearanceConfig:s}=null!=t?t:{},l={language:$.SE,publisher:Et.AFTONBLADET,deviceType:a,pageType:o,nativeTrackingConfig:d,appearanceConfig:s};No(e,l,aa),ha(e,null==t?void 0:t.sponsorstripe),b(e)&&(e=>{const t=e.querySelector(".advertory-aftonbladet-ad-native-classic-alcohol");if(!t)return;const n=t.querySelector(".ad-content"),r=t.querySelector(".alcohol-warning");if(!r||!n)return;new ResizeObserver(([e])=>{const t=e.contentRect.height;t>0&&(r.style.height=`${Math.floor(.2*t)}px`)}).observe(n)})(i)}},ka=((e,t)=>({init:n=>Oo(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:To,getVideoPPIDs:an,createInitNativeAd:_o,getVideoAdsConfig:Wi}))(Ta,Ct);export{wa as $,eo as A,_n as B,d as C,On as D,x as E,ie as F,me as G,dt as H,ct as I,st as J,at as K,pr as L,wr as M,yr as N,br as O,rn as P,$ as Q,le as R,r as S,je as T,sn as U,Et as V,ka as W,ma as X,fa as Y,ya as Z,Ee as _,dn as a,Sa as a0,ba as a1,se as b,N as c,Le as d,re as e,xe as f,F as g,Bt as h,Tn as i,ke as j,mr as k,k as l,Zi as m,ut as n,We as o,Ge as p,Ve as q,He as r,_r as s,V as t,jr as u,Ke as v,gn as w,Fn as x,Qe as y,a as z};
@@ -1 +1 @@
1
- import{c as e,x as t,m as r,A as s,y as a,z as n,B as i,C as o}from"./_auto-entry_aftonbladet-81vtIJn1.js";import"react/jsx-runtime";const l=(n,i)=>{const{siteSpecificConfig:{publisherClassName:o}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${n}`);if(!c)return;if(c.classList.add(t),!o)return;r(o,c,s.FINN_BLINK,null!=i?i:l);a({preferredTestIdData:{targetId:n,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();n(t)&&i(t,r),o(t)&&(null==s||s(t,e.get()))},u=t=>{const{pageContext:{publisher:r=""}}=e.get(),s=document.querySelector(`#${t}`);if(!s)return;const a=`-${r}`;s.classList.remove(`advertory${a}-finn-blink`),s.classList.remove(`advertory${a}-finn-blink-wrapper`)};export{c as displaySpecialFormatsForFinnFallback,l as finnBlinkLoaded,u as xandrAdLoaded};
1
+ import{c as e,x as t,m as r,A as s,y as a,z as n,B as i,C as o}from"./_auto-entry_aftonbladet-BFi2j6AC.js";import"react/jsx-runtime";const l=(n,i)=>{const{siteSpecificConfig:{publisherClassName:o}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${n}`);if(!c)return;if(c.classList.add(t),!o)return;r(o,c,s.FINN_BLINK,null!=i?i:l);a({preferredTestIdData:{targetId:n,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();n(t)&&i(t,r),o(t)&&(null==s||s(t,e.get()))},u=t=>{const{pageContext:{publisher:r=""}}=e.get(),s=document.querySelector(`#${t}`);if(!s)return;const a=`-${r}`;s.classList.remove(`advertory${a}-finn-blink`),s.classList.remove(`advertory${a}-finn-blink-wrapper`)};export{c as displaySpecialFormatsForFinnFallback,l as finnBlinkLoaded,u as xandrAdLoaded};
@@ -1 +1 @@
1
- import{T as e,o as t,D as o,c as r,p as l,_ as s,q as a,r as n,v as c,w as d}from"./_auto-entry_aftonbladet-81vtIJn1.js";import"react/jsx-runtime";const i="#fff",y="#0098da",p=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},A=e=>{const t=w(e),o=m(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},m=e=>{const t=()=>A(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&A(e)};return u(),window.addEventListener("keydown",t),t},E=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),m(e),u(),t.addEventListener("click",()=>{A(e)}),v(!1))},g=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),m(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},b=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>A(e))})(e)},h=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},f=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},T=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},C=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=d(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=d(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,T(t))},x=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){const{takeover:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),u=document.querySelector(".advertory-takeover-wrapper");if(!d||!u||!l)return;const v=a(o),A=u.offsetHeight,m=window.scrollY>A;u.style.display="block",!m&&p(v,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:h,[e.TOPSCROLLER]:f,[e.VELVET]:S})[o](t)})(u,v),k(),((t,o)=>{({[e.WELCOME_PAGE]:g,[e.TOPSCROLLER]:g,[e.SPLASH]:E,[e.VELVET]:b})[o](t)})(u,v),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:y}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(u,v,l),yield n(),!m&&p(v,!0),c(o,v)});export{q as createTakeoverAd,C as modifyTakeoverAdContent,x as modifyTakeoverIframe};
1
+ import{T as e,o as t,D as o,c as r,p as l,_ as s,q as a,r as n,v as c,w as d}from"./_auto-entry_aftonbladet-BFi2j6AC.js";import"react/jsx-runtime";const i="#fff",y="#0098da",p=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},A=e=>{const t=w(e),o=m(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},m=e=>{const t=()=>A(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&A(e)};return u(),window.addEventListener("keydown",t),t},E=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),m(e),u(),t.addEventListener("click",()=>{A(e)}),v(!1))},g=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),m(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},b=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>A(e))})(e)},h=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},f=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},T=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},C=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=d(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=d(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,T(t))},x=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){const{takeover:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),u=document.querySelector(".advertory-takeover-wrapper");if(!d||!u||!l)return;const v=a(o),A=u.offsetHeight,m=window.scrollY>A;u.style.display="block",!m&&p(v,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:h,[e.TOPSCROLLER]:f,[e.VELVET]:S})[o](t)})(u,v),k(),((t,o)=>{({[e.WELCOME_PAGE]:g,[e.TOPSCROLLER]:g,[e.SPLASH]:E,[e.VELVET]:b})[o](t)})(u,v),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:y}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(u,v,l),yield n(),!m&&p(v,!0),c(o,v)});export{q as createTakeoverAd,C as modifyTakeoverAdContent,x as modifyTakeoverIframe};
@@ -1 +1 @@
1
- import{_ as t,c as e,j as o,P as n,Q as s}from"./_auto-entry_aftonbladet-81vtIJn1.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",a=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:a,isMobileApp:d},tcf:c}=e.get(),r=yield o(c,d,a,"norstat");if(!s||d||!r)return;const m=n(a);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(a)}/map/${m}`,"norstat")});export{i as getCampaign,a as loadNorstat};
1
+ import{_ as t,c as e,j as o,P as n,Q as s}from"./_auto-entry_aftonbladet-BFi2j6AC.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",a=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:a,isMobileApp:d},tcf:c}=e.get(),r=yield o(c,d,a,"norstat");if(!s||d||!r)return;const m=n(a);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(a)}/map/${m}`,"norstat")});export{i as getCampaign,a as loadNorstat};
@@ -1 +1 @@
1
- import{c as t,E as e,S as o,G as a,H as n}from"./_auto-entry_aftonbladet-81vtIJn1.js";export{K as calculateScaleFactor,J as getAspectRatio,I as scaleAdIpadAirPortrait}from"./_auto-entry_aftonbladet-81vtIJn1.js";import"react/jsx-runtime";const d=d=>{var l,i,r,s,c,u;const{adScaleConfig:f,pageContext:{deviceType:v}}=t.get();if(!(null==f?void 0:f.enabled))return;if(e(d,o.ANY_FULLSCREEN))return;const p=null!==(l=f.adsToBeScaled[v])&&void 0!==l?l:[],m=a(d.targetId.split("-")[0]);if(!p.includes(m))return;const g=null!==(r=null===(i=f.offset)||void 0===i?void 0:i[m])&&void 0!==r?r:0,w=document.getElementById(d.targetId),E=null!==(s=null==w?void 0:w.offsetWidth)&&void 0!==s?s:window.screen.width,I=null!==(u=null===(c=null==w?void 0:w.parentElement)||void 0===c?void 0:c.offsetWidth)&&void 0!==u?u:window.screen.width;n(d,(E<I?E:I)-g)};export{n as scaleAd,d as scaleAds};
1
+ import{c as t,E as e,S as o,G as a,H as n}from"./_auto-entry_aftonbladet-BFi2j6AC.js";export{K as calculateScaleFactor,J as getAspectRatio,I as scaleAdIpadAirPortrait}from"./_auto-entry_aftonbladet-BFi2j6AC.js";import"react/jsx-runtime";const d=d=>{var l,i,r,s,c,u;const{adScaleConfig:f,pageContext:{deviceType:v}}=t.get();if(!(null==f?void 0:f.enabled))return;if(e(d,o.ANY_FULLSCREEN))return;const p=null!==(l=f.adsToBeScaled[v])&&void 0!==l?l:[],m=a(d.targetId.split("-")[0]);if(!p.includes(m))return;const g=null!==(r=null===(i=f.offset)||void 0===i?void 0:i[m])&&void 0!==r?r:0,w=document.getElementById(d.targetId),E=null!==(s=null==w?void 0:w.offsetWidth)&&void 0!==s?s:window.screen.width,I=null!==(u=null===(c=null==w?void 0:w.parentElement)||void 0===c?void 0:c.offsetWidth)&&void 0!==u?u:window.screen.width;n(d,(E<I?E:I)-g)};export{n as scaleAd,d as scaleAds};
@@ -1 +1 @@
1
- import{_ as t,l as e,R as a,U as n,j as i,V as l}from"./_auto-entry_aftonbladet-81vtIJn1.js";import{jsxs as r,jsx as s}from"react/jsx-runtime";class o{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let a;if(a=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!a)return[];const{host:n,pathname:i}=new URL(a);if(!n.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[a];const l=i.split("/");return l.length?[...l.filter(Boolean).slice(1).map(t=>t),a]:[a]}}class c{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}class d{constructor(t,e){this.pulse=t,this.newsroomStrategy=e}getEventInput(t,e){return{}}parseKilkayaData(t){const e=t.querySelector("article");if(!e)return{};const a=e.dataset.k5aTeaserAnalytics;try{return a?JSON.parse(a):{}}catch(t){return{}}}mapPageType(t){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[t||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(t){const{url:e,title:a,itemId:n}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:e}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)?null===(i=null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)||void 0===i||i.call(n,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)||void 0===s||s.call(r,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(a=(t=this.pulse).trackLegacyClickUIElement)||void 0===a||a.call(t,s):this.pulse.trackClickUIElement?null===(i=(n=this.pulse).trackClickUIElement)||void 0===i||i.call(n,s):null===(r=(l=this.pulse).trackElementClick)||void 0===r||r.call(l,s)})}}class u extends d{constructor(t,e,a){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=a}getEventBaseData(t){var e,a,n,i,l,r;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(t),u=this.mapPageType(this.pageType),v=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(n=null===(a=this.newsroomStrategy)||void 0===a?void 0:a.getPulseObjectId)||void 0===n?void 0:n.call(a))&&void 0!==i?i:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=v?v:d,"@type":u,url:location.origin},tags:null===(r=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===r?void 0:r.call(l,t)}}getEventTarget(t){const{link:e,itemId:a,title:n}=this.parseKilkayaData(t);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}getEventInput(t,e){return{object:this.getEventBaseData(t),partnerstudio:this.getEventPartnerstudioData(t,e),target:this.getEventTarget(t),provider:this.getProviderData()}}getEventPartnerstudioData(t,e){const a=this.parseKilkayaData(t);return Object.assign(Object.assign({},a),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v="[data-k5a-teaser-analytics]",p=(t,e,a)=>{const n=document.querySelectorAll("k5a-stream");if(!n.length)return;const i=new u(t,e,a),l=new WeakMap,r=t=>{const e=l.get(t);e&&(e.disconnect(),l.delete(t))},s=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(!t.isIntersecting)return;const a=t.target,n=a.querySelector(v);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)?(i.trackContentView(a),e.unobserve(t.target),r(a)):((t,e)=>{if(l.has(t))return;const a=new MutationObserver(()=>{const a=t.querySelector(v);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)&&(i.trackContentView(t),e.unobserve(t),r(t))});a.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),l.set(t,a)})(a,e)})},{threshold:.5});n.forEach(t=>{s.observe(t),t.addEventListener("click",()=>i.trackContentClick(t))})};class g{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a}}){if(!(null==t?void 0:t.instance))return;const n={[l.VG]:new o}[a]||new c;p(t.instance,n,e)}injectKilkayaMeta(t){const e=document.createElement("script");e.textContent=`var k5aMeta = { consent: ${t} };`,document.head.appendChild(e)}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var a;const n=null===(a=null==t?void 0:t.detail)||void 0===a?void 0:a.streamSlot;if(!n)return;const i=n.parentElement;i&&(e(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(i))})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";a(i)}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield n(e)})}run(e){return t(this,void 0,void 0,function*(){var t,a;const{tcf:n,pageContext:{isMobileApp:l,countryCode:r},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const o=yield i(n,l,r,"kilkaya");o&&(this.observeForKilkayaBackfills(),this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(a=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==a?a:""),this.handleKilkayaStreamTracking(e))})}}const h=({placementName:t,slotTag:e,fallbackTargetId:a,children:n,pulseData:i,htmlAttributes:l})=>{const o=(t,e)=>{const a={};if(!t)return a;for(const[n,i]of Object.entries(t)){a[e?`${e}-${n}`:n]=String(i)}return a},c=o(i,"data-pulse"),d=o(l,"data");return r("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},c,d,{children:[s("div",{className:"inscreen-target"}),s("k5a-stream",{name:t,"slot-tag":e}),s("div",{className:"container"}),s("div",{className:"fallback","data-fallback-target-id":a,style:{display:"none"},children:n})]}))},k=e=>t(void 0,void 0,void 0,function*(){const t=new g;yield t.run(e)});export{h as Kilkaya,k as runKilkaya};
1
+ import{_ as t,l as e,R as a,U as n,j as i,V as l}from"./_auto-entry_aftonbladet-BFi2j6AC.js";import{jsxs as r,jsx as s}from"react/jsx-runtime";class o{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let a;if(a=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!a)return[];const{host:n,pathname:i}=new URL(a);if(!n.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[a];const l=i.split("/");return l.length?[...l.filter(Boolean).slice(1).map(t=>t),a]:[a]}}class c{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}class d{constructor(t,e){this.pulse=t,this.newsroomStrategy=e}getEventInput(t,e){return{}}parseKilkayaData(t){const e=t.querySelector("article");if(!e)return{};const a=e.dataset.k5aTeaserAnalytics;try{return a?JSON.parse(a):{}}catch(t){return{}}}mapPageType(t){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[t||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(t){const{url:e,title:a,itemId:n}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:e}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)?null===(i=null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)||void 0===i||i.call(n,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)||void 0===s||s.call(r,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(a=(t=this.pulse).trackLegacyClickUIElement)||void 0===a||a.call(t,s):this.pulse.trackClickUIElement?null===(i=(n=this.pulse).trackClickUIElement)||void 0===i||i.call(n,s):null===(r=(l=this.pulse).trackElementClick)||void 0===r||r.call(l,s)})}}class u extends d{constructor(t,e,a){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=a}getEventBaseData(t){var e,a,n,i,l,r;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(t),u=this.mapPageType(this.pageType),v=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(n=null===(a=this.newsroomStrategy)||void 0===a?void 0:a.getPulseObjectId)||void 0===n?void 0:n.call(a))&&void 0!==i?i:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=v?v:d,"@type":u,url:location.origin},tags:null===(r=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===r?void 0:r.call(l,t)}}getEventTarget(t){const{link:e,itemId:a,title:n}=this.parseKilkayaData(t);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}getEventInput(t,e){return{object:this.getEventBaseData(t),partnerstudio:this.getEventPartnerstudioData(t,e),target:this.getEventTarget(t),provider:this.getProviderData()}}getEventPartnerstudioData(t,e){const a=this.parseKilkayaData(t);return Object.assign(Object.assign({},a),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v="[data-k5a-teaser-analytics]",p=(t,e,a)=>{const n=document.querySelectorAll("k5a-stream");if(!n.length)return;const i=new u(t,e,a),l=new WeakMap,r=t=>{const e=l.get(t);e&&(e.disconnect(),l.delete(t))},s=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(!t.isIntersecting)return;const a=t.target,n=a.querySelector(v);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)?(i.trackContentView(a),e.unobserve(t.target),r(a)):((t,e)=>{if(l.has(t))return;const a=new MutationObserver(()=>{const a=t.querySelector(v);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)&&(i.trackContentView(t),e.unobserve(t),r(t))});a.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),l.set(t,a)})(a,e)})},{threshold:.5});n.forEach(t=>{s.observe(t),t.addEventListener("click",()=>i.trackContentClick(t))})};class g{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a}}){if(!(null==t?void 0:t.instance))return;const n={[l.VG]:new o}[a]||new c;p(t.instance,n,e)}injectKilkayaMeta(t){const e=document.createElement("script");e.textContent=`var k5aMeta = { consent: ${t} };`,document.head.appendChild(e)}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var a;const n=null===(a=null==t?void 0:t.detail)||void 0===a?void 0:a.streamSlot;if(!n)return;const i=n.parentElement;i&&(e(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(i))})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";a(i)}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield n(e)})}run(e){return t(this,void 0,void 0,function*(){var t,a;const{tcf:n,pageContext:{isMobileApp:l,countryCode:r},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const o=yield i(n,l,r,"kilkaya");o&&(this.observeForKilkayaBackfills(),this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(a=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==a?a:""),this.handleKilkayaStreamTracking(e))})}}const h=({placementName:t,slotTag:e,fallbackTargetId:a,children:n,pulseData:i,htmlAttributes:l})=>{const o=(t,e)=>{const a={};if(!t)return a;for(const[n,i]of Object.entries(t)){a[e?`${e}-${n}`:n]=String(i)}return a},c=o(i,"data-pulse"),d=o(l,"data");return r("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},c,d,{children:[s("div",{className:"inscreen-target"}),s("k5a-stream",{name:t,"slot-tag":e}),s("div",{className:"container"}),s("div",{className:"fallback","data-fallback-target-id":a,style:{display:"none"},children:n})]}))},k=e=>t(void 0,void 0,void 0,function*(){const t=new g;yield t.run(e)});export{h as Kilkaya,k as runKilkaya};
@@ -1 +1 @@
1
- import{c as t}from"./_auto-entry_aftonbladet-81vtIJn1.js";import"react/jsx-runtime";const e=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=e=>{const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:l}={}}=t.get();if(!r||!a||!l)return;const i=r.parentElement;i&&(r.classList.add(`advertory-${a}-${l}__full-width-ad`),i.classList.add(`advertory-${a}-${l}-wrapper__full-width-ad`))},a=(r,a,l,i)=>{var s,n;const o=document.querySelector(`#${r.targetId}`),{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:f}={},fullWidth:u,pageContext:{deviceType:c}}=t.get();if(!o)return;const p=o.parentElement,m=o.querySelector("iframe"),y=null==m?void 0:m.parentElement;if(!m||!y)return;if(o.style.width="100vw",o.style.position="relative",p&&(p.style.width="100vw",p.style.position="relative"),!d||!f)return;const v=`advertory-${d}-${f}`;o.classList.add(`${v}__${i}`),null==p||p.classList.add(`${v}-wrapper__${i}`);const h=null===(n=null===(s=null==u?void 0:u.options)||void 0===s?void 0:s.styles)||void 0===n?void 0:n[c],$=(null==u?void 0:u.enabled)&&h;!$&&p&&(p.style.left="50%",p.style.marginLeft="-50vw"),$&&h.adContainer&&e(o,h.adContainer),$&&h.adContainerWrapper&&p&&e(p,h.adContainerWrapper);const g=o.offsetWidth,C=g/r.width;y.style.transform=`scale(${C})`,y.style.transformOrigin="left top";const w=Math.round(g/a*l);o.style.height=`${w}px`},l=t=>{a(t,1080,1920,"ninesixteen-ad")},i=t=>{a(t,1080,1080,"fullsquare-ad")};export{i as applyFullsquareFormat,l as applyNinesixteenFormat,r as prepareContainerForFullWidthFormat};
1
+ import{c as t}from"./_auto-entry_aftonbladet-BFi2j6AC.js";import"react/jsx-runtime";const e=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=e=>{const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:l}={}}=t.get();if(!r||!a||!l)return;const i=r.parentElement;i&&(r.classList.add(`advertory-${a}-${l}__full-width-ad`),i.classList.add(`advertory-${a}-${l}-wrapper__full-width-ad`))},a=(r,a,l,i)=>{var s,n;const o=document.querySelector(`#${r.targetId}`),{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:f}={},fullWidth:u,pageContext:{deviceType:c}}=t.get();if(!o)return;const p=o.parentElement,m=o.querySelector("iframe"),y=null==m?void 0:m.parentElement;if(!m||!y)return;if(o.style.width="100vw",o.style.position="relative",p&&(p.style.width="100vw",p.style.position="relative"),!d||!f)return;const v=`advertory-${d}-${f}`;o.classList.add(`${v}__${i}`),null==p||p.classList.add(`${v}-wrapper__${i}`);const h=null===(n=null===(s=null==u?void 0:u.options)||void 0===s?void 0:s.styles)||void 0===n?void 0:n[c],$=(null==u?void 0:u.enabled)&&h;!$&&p&&(p.style.left="50%",p.style.marginLeft="-50vw"),$&&h.adContainer&&e(o,h.adContainer),$&&h.adContainerWrapper&&p&&e(p,h.adContainerWrapper);const g=o.offsetWidth,C=g/r.width;y.style.transform=`scale(${C})`,y.style.transformOrigin="left top";const w=Math.round(g/a*l);o.style.height=`${w}px`},l=t=>{a(t,1080,1920,"ninesixteen-ad")},i=t=>{a(t,1080,1080,"fullsquare-ad")};export{i as applyFullsquareFormat,l as applyNinesixteenFormat,r as prepareContainerForFullWidthFormat};