@schibsted/advertory 3.4.14 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/ad-native/cjs/index.d.ts +5 -0
  2. package/ad-native/cjs/index.js +1 -1
  3. package/ad-native/es/index.d.ts +5 -0
  4. package/ad-native/es/index.js +1 -1
  5. package/aftenposten/cjs/index.d.ts +5 -0
  6. package/aftenposten/cjs/index.js +1 -1
  7. package/aftenposten/es/_auto-entry_aftenposten-KOEDRGMj.js +1 -0
  8. package/aftenposten/es/{events-aNNPNIqz.js → events-BdUUv4z9.js} +1 -1
  9. package/aftenposten/es/{index-R-_EwTMJ.js → index-B0GbVMVf.js} +1 -1
  10. package/aftenposten/es/{index-YhGb4swR.js → index-C_ljmtA9.js} +1 -1
  11. package/aftenposten/es/{index-DKswyaY6.js → index-ChQz2fSU.js} +1 -1
  12. package/aftenposten/es/{index-GljCR_Yl.js → index-DKtW-pTb.js} +1 -1
  13. package/aftenposten/es/{index-DiTRkWxo.js → index-DapT0kRB.js} +1 -1
  14. package/aftenposten/es/{index-CGWeMiyd.js → index-DkhtWF8d.js} +1 -1
  15. package/aftenposten/es/{index-Celgx891.js → index-cS_ROIVL.js} +1 -1
  16. package/aftenposten/es/{index-C0GWciD3.js → index-pwlm_8K9.js} +1 -1
  17. package/aftenposten/es/index.d.ts +5 -0
  18. package/aftenposten/es/index.js +1 -1
  19. package/aftenposten/es/{styles-ztiWgibq.js → styles-B8dOeQvd.js} +1 -1
  20. package/aftenposten/es/{styles-DBMUr5Jo.js → styles-BQ-lJJ7T.js} +1 -1
  21. package/aftenposten/es/{styles-Bo8FUe1n.js → styles-C8Zgiulr.js} +1 -1
  22. package/aftenposten/es/{styles-BfpczqmL.js → styles-Cf0KXpQR.js} +1 -1
  23. package/aftenposten/es/{styles-DEM3Gi4L.js → styles-CvqBpTZq.js} +1 -1
  24. package/aftenposten/es/{styles-Blfzermq.js → styles-Dd4NzezP.js} +1 -1
  25. package/aftenposten/es/{styles-CuY2GV3h.js → styles-Dmx2lehx.js} +1 -1
  26. package/aftenposten/es/{styles-1J1dVECT.js → styles-R1ul5aQy.js} +1 -1
  27. package/aftenposten/es/{styles-BB2SvrTn.js → styles-e0EN2V-x.js} +1 -1
  28. package/aftenposten/es/{styles-PAkuxweI.js → styles-poVB2pbH.js} +1 -1
  29. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-B5bkdkn2.js +1 -0
  30. package/aftenpostenv2/es/{events-VvzSMsl7.js → events-DcWIew6H.js} +1 -1
  31. package/aftenpostenv2/es/{index-D-wLI-V3.js → index-AopMILqF.js} +1 -1
  32. package/aftenpostenv2/es/{index-LsjimNAy.js → index-C7WYLENT.js} +1 -1
  33. package/aftenpostenv2/es/{index-CfiF-crx.js → index-CcSUoH4K.js} +1 -1
  34. package/aftenpostenv2/es/{index-BT7e8g0Z.js → index-CrKzCfAy.js} +1 -1
  35. package/aftenpostenv2/es/{index-iU3UTSv8.js → index-DF_5taAR.js} +1 -1
  36. package/aftenpostenv2/es/{index-BzptQywS.js → index-DZzhmxxW.js} +1 -1
  37. package/aftenpostenv2/es/{index-BnCsGsiy.js → index-Dcvv755W.js} +1 -1
  38. package/aftenpostenv2/es/{index-DBsl_S5J.js → index-lNsi3PkQ.js} +1 -1
  39. package/aftenpostenv2/es/index.d.ts +5 -0
  40. package/aftenpostenv2/es/index.js +1 -1
  41. package/aftenpostenv2/es/{styles-CbL4pB-1.js → styles-BAw6-DTz.js} +1 -1
  42. package/aftenpostenv2/es/{styles-Ci9J7jKv.js → styles-BDLsV2h0.js} +1 -1
  43. package/aftenpostenv2/es/{styles-Dg9pvL6a.js → styles-BM1Sl2Gt.js} +1 -1
  44. package/aftenpostenv2/es/{styles-D08iDSOO.js → styles-Bj5ghS1X.js} +1 -1
  45. package/aftenpostenv2/es/{styles-DynezWrn.js → styles-BtZEv20p.js} +1 -1
  46. package/aftenpostenv2/es/{styles-CAdaLqhC.js → styles-CIIzxpxi.js} +1 -1
  47. package/aftenpostenv2/es/{styles-CEK4LgyA.js → styles-DE8b2eKw.js} +1 -1
  48. package/aftenpostenv2/es/{styles-BooZMo4j.js → styles-DJS8FgJN.js} +1 -1
  49. package/aftenpostenv2/es/{styles-Te_pNEb0.js → styles-IW7sRlQb.js} +1 -1
  50. package/aftenpostenv2/es/{styles-ChnqRzhg.js → styles-P6wiFv7t.js} +1 -1
  51. package/aftonbladet/cjs/index.d.ts +5 -0
  52. package/aftonbladet/cjs/index.js +1 -1
  53. package/aftonbladet/es/_auto-entry_aftonbladet-Czkvey-5.js +1 -0
  54. package/aftonbladet/es/{events-Crg3L5_c.js → events-IGtjvn9p.js} +1 -1
  55. package/aftonbladet/es/{index-CyMfmkio.js → index-BJEVa6xU.js} +1 -1
  56. package/aftonbladet/es/{index-CrfNDcKV.js → index-BhKqdx8_.js} +1 -1
  57. package/aftonbladet/es/{index-DVhUFIWV.js → index-CHU0K-b3.js} +1 -1
  58. package/aftonbladet/es/{index-ByNCqWG8.js → index-CWKXxJLi.js} +1 -1
  59. package/aftonbladet/es/{index-Bobb62Hm.js → index-Caooy7VZ.js} +1 -1
  60. package/aftonbladet/es/{index-B1L0P1wI.js → index-CxookX-2.js} +1 -1
  61. package/aftonbladet/es/{index-D4x98Sy_.js → index-D3BbAZHM.js} +1 -1
  62. package/aftonbladet/es/{index-gy_UT4eF.js → index-D6pMj_OI.js} +1 -1
  63. package/aftonbladet/es/index.d.ts +5 -0
  64. package/aftonbladet/es/index.js +1 -1
  65. package/aftonbladet/es/{styles-7ca24lPW.js → styles-B_1G3J8x.js} +1 -1
  66. package/aftonbladet/es/{styles-r32kR33X.js → styles-BbdwnbjB.js} +1 -1
  67. package/aftonbladet/es/{styles-4FPciXKr.js → styles-CneLnMG-.js} +1 -1
  68. package/aftonbladet/es/{styles-_3OqNUti.js → styles-DYVEy61p.js} +1 -1
  69. package/aftonbladet/es/{styles-eU2MLwjj.js → styles-l3rELDcP.js} +1 -1
  70. package/aftonbladet/es/{styles-CWd0qunX.js → styles-vt9VlFI1.js} +1 -1
  71. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CI9xcMRh.js +1 -0
  72. package/aftonbladetv2/es/{events-C7hVJNRc.js → events-DUSi9AAZ.js} +1 -1
  73. package/aftonbladetv2/es/{index-BzWc5vHd.js → index-BLCl5ZdU.js} +1 -1
  74. package/aftonbladetv2/es/{index-7JuA3m3Q.js → index-Bcz4aUWR.js} +1 -1
  75. package/aftonbladetv2/es/{index-3bjoIdXb.js → index-CZlvEwnW.js} +1 -1
  76. package/aftonbladetv2/es/{index-DUK2MbMc.js → index-CdYhVWhS.js} +1 -1
  77. package/aftonbladetv2/es/{index-D-111ysD.js → index-ChmNC_fC.js} +1 -1
  78. package/aftonbladetv2/es/{index-myD5LMzf.js → index-DfBkkkvU.js} +1 -1
  79. package/aftonbladetv2/es/{index-DttZBtcH.js → index-GJk0lNdn.js} +1 -1
  80. package/aftonbladetv2/es/{index-CuuWwcD4.js → index-Jfir0E9v.js} +1 -1
  81. package/aftonbladetv2/es/index.d.ts +5 -0
  82. package/aftonbladetv2/es/index.js +1 -1
  83. package/aftonbladetv2/es/{styles-DK83RzaC.js → styles-BW540-He.js} +1 -1
  84. package/aftonbladetv2/es/{styles-CYWNLpOe.js → styles-C2EUpfcA.js} +1 -1
  85. package/aftonbladetv2/es/{styles-CgfgGfFC.js → styles-CGV7U9oK.js} +1 -1
  86. package/aftonbladetv2/es/{styles-B0JWyUDb.js → styles-CTR9osUQ.js} +1 -1
  87. package/aftonbladetv2/es/{styles-JlDcWbZV.js → styles-Ckoizx2L.js} +1 -1
  88. package/aftonbladetv2/es/{styles-CTVusyII.js → styles-D8Ya94d4.js} +1 -1
  89. package/bt/cjs/index.d.ts +5 -0
  90. package/bt/cjs/index.js +1 -1
  91. package/bt/es/_auto-entry_bt-CI6IkXgn.js +1 -0
  92. package/bt/es/{events-Cde2i6dy.js → events-e79PURVK.js} +1 -1
  93. package/bt/es/{index-LjfBD_xy.js → index-B4efIi6B.js} +1 -1
  94. package/bt/es/{index-Bt3KxlOO.js → index-BCITuOKt.js} +1 -1
  95. package/bt/es/{index-DGWOOPcW.js → index-Ble0HNAL.js} +1 -1
  96. package/bt/es/{index-DCFEAOKQ.js → index-Br2GZL3S.js} +1 -1
  97. package/bt/es/{index-BHn9ynLP.js → index-CfGTqWHB.js} +1 -1
  98. package/{sa/es/index-CFDGnu0F.js → bt/es/index-DkfBi2Yr.js} +1 -1
  99. package/bt/es/{index-BeTyrZf3.js → index-VicIknhs.js} +1 -1
  100. package/{sa/es/index-ClURBZHT.js → bt/es/index-q6gQRPQi.js} +1 -1
  101. package/bt/es/index.d.ts +5 -0
  102. package/bt/es/index.js +1 -1
  103. package/bt/es/{styles-BfRFHwVs.js → styles-1fY0S9gh.js} +1 -1
  104. package/bt/es/{styles-C_4XMT-G.js → styles-BQ6Zagkv.js} +1 -1
  105. package/bt/es/{styles-SVz6chgd.js → styles-BRkymHpC.js} +1 -1
  106. package/{sa/es/styles-BNr1wnJP.js → bt/es/styles-C6Hn-Ylj.js} +1 -1
  107. package/bt/es/{styles-DRJ2KyA3.js → styles-DDXhGRHY.js} +1 -1
  108. package/{sa/es/styles-Bz__iovu.js → bt/es/styles-DNutfDj8.js} +1 -1
  109. package/bt/es/{styles-SO94Mupz.js → styles-DbidWe0Z.js} +1 -1
  110. package/bt/es/{styles-8d9uM6fs.js → styles-UB5Sj-JP.js} +1 -1
  111. package/bt/es/{styles-CcNwWif0.js → styles-V6NyO8CO.js} +1 -1
  112. package/btv2/es/_auto-entry_btv2-Byn2KJna.js +1 -0
  113. package/btv2/es/{events-CCT83Nij.js → events-DWbA1yJI.js} +1 -1
  114. package/btv2/es/{index-Ct5dvsuS.js → index-CMIm7eJa.js} +1 -1
  115. package/btv2/es/{index-pgTzQGZK.js → index-CbKhLQ71.js} +1 -1
  116. package/btv2/es/{index-C5tXlI-6.js → index-CmYG9TmN.js} +1 -1
  117. package/btv2/es/{index-BHvGK5b6.js → index-D-VoD7Rn.js} +1 -1
  118. package/btv2/es/{index-7Ez_Ronh.js → index-D95XQOb1.js} +1 -1
  119. package/btv2/es/{index-C7gvPO7W.js → index-DShbLut5.js} +1 -1
  120. package/btv2/es/{index-BHOfxyyp.js → index-Dc3aKlrr.js} +1 -1
  121. package/btv2/es/{index-MrzR8hOq.js → index-DllNqk9Z.js} +1 -1
  122. package/btv2/es/index.d.ts +5 -0
  123. package/btv2/es/index.js +1 -1
  124. package/{vgv2/es/styles-CLpzB4TP.js → btv2/es/styles--PBvFHeQ.js} +1 -1
  125. package/{vgv2/es/styles-uRcDFP1H.js → btv2/es/styles-BFs5C1e2.js} +1 -1
  126. package/{sav2/es/styles-l-8lIA-0.js → btv2/es/styles-BIeAmWTL.js} +1 -1
  127. package/btv2/es/{styles-CMzhWGxU.js → styles-Beb5i1JJ.js} +1 -1
  128. package/btv2/es/{styles-KxHIpCeb.js → styles-CzOVz7GX.js} +1 -1
  129. package/{sav2/es/styles-B0lS7d1J.js → btv2/es/styles-DjvA7hfT.js} +1 -1
  130. package/{sav2/es/styles-B4-CHFMj.js → btv2/es/styles-es1ee8SC.js} +1 -1
  131. package/{sav2/es/styles-AZhdSm8U.js → btv2/es/styles-kWtSX6kZ.js} +1 -1
  132. package/dr-edition/cjs/index.d.ts +5 -1
  133. package/dr-edition/cjs/index.js +1 -1
  134. package/dr-edition/es/index.d.ts +5 -1
  135. package/dr-edition/es/index.js +1 -1
  136. package/e24/es/_auto-entry_e24-Chx1wkKd.js +1 -0
  137. package/e24/es/{events-C7lcFBm7.js → events-8oWxK8Fm.js} +1 -1
  138. package/e24/es/{index-HsI1zISB.js → index-7zdjryBD.js} +1 -1
  139. package/e24/es/{index-BfVWJtjH.js → index-B4CZvSXL.js} +1 -1
  140. package/e24/es/{index-KfmbuDFv.js → index-BJWHHKPL.js} +1 -1
  141. package/e24/es/{index-AkgArUou.js → index-BUkXE3O2.js} +1 -1
  142. package/e24/es/{index-Cc0xxQD8.js → index-DG1bJJNc.js} +1 -1
  143. package/e24/es/{index-BaVeOvRN.js → index-DGv329Av.js} +1 -1
  144. package/e24/es/{index-BfjKelU3.js → index-Oewlw7Sn.js} +1 -1
  145. package/{tv4/es/index-CeRWWVnw.js → e24/es/index-fEZDTay_.js} +1 -1
  146. package/e24/es/index.d.ts +5 -0
  147. package/e24/es/index.js +1 -1
  148. package/e24/es/{styles-CT29VQHg.js → styles-BQNdcZSJ.js} +1 -1
  149. package/e24/es/{styles-CNyrqPLq.js → styles-CLbzPfFd.js} +1 -1
  150. package/e24/es/{styles-CHMD6Bqh.js → styles-CcOkuOfr.js} +1 -1
  151. package/e24/es/{styles-DSyXEM0K.js → styles-D-IZsxVS.js} +1 -1
  152. package/e24/es/{styles-C9DG7Usb.js → styles-D7k76BFk.js} +1 -1
  153. package/e24/es/{styles-CtnIzp2j.js → styles-Dbpp0W0o.js} +1 -1
  154. package/e24/es/{styles-DvC11JEH.js → styles-Dieie13I.js} +1 -1
  155. package/e24/es/{styles-BdU3EKpj.js → styles-DjQsLdnn.js} +1 -1
  156. package/{tv4/es/styles-CFq95Psg.js → e24/es/styles-IKoxXgO0.js} +1 -1
  157. package/e24/es/{styles-CCG3z8rI.js → styles-NQUQlHqi.js} +1 -1
  158. package/e24/es/{styles-CIGC9QQN.js → styles-VEo6IZcm.js} +1 -1
  159. package/editory/cjs/index.d.ts +644 -0
  160. package/editory/cjs/index.js +1 -0
  161. package/editory/es/index.d.ts +644 -0
  162. package/editory/es/index.js +1 -0
  163. package/fotbollskanalen/cjs/index.d.ts +5 -0
  164. package/fotbollskanalen/cjs/index.js +1 -1
  165. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-BjtGQ3_l.js +1 -0
  166. package/fotbollskanalen/es/{events-BWA-2thH.js → events-FpRT23ZZ.js} +1 -1
  167. package/fotbollskanalen/es/{index-CWTaJpBa.js → index-B5NH2IkJ.js} +1 -1
  168. package/fotbollskanalen/es/{index-B8j2m66Z.js → index-BHG4pc98.js} +1 -1
  169. package/fotbollskanalen/es/{index-DVYZ3NYl.js → index-BUPmcSlI.js} +1 -1
  170. package/fotbollskanalen/es/{index-BwbYIEOX.js → index-Byq7YtvA.js} +1 -1
  171. package/fotbollskanalen/es/{index-V5FBDx0k.js → index-CFC2qCZk.js} +1 -1
  172. package/fotbollskanalen/es/{index-1gBV8-hR.js → index-DDGOVmpS.js} +1 -1
  173. package/fotbollskanalen/es/{index-3djT3sHR.js → index-DxE0VElJ.js} +1 -1
  174. package/fotbollskanalen/es/{index-B-_ubU0_.js → index-g58X-f96.js} +1 -1
  175. package/fotbollskanalen/es/index.d.ts +5 -0
  176. package/fotbollskanalen/es/index.js +1 -1
  177. package/fotbollskanalen/es/{styles-0JAjVhsb.js → styles-CLQOoJGF.js} +1 -1
  178. package/godt/cjs/index.d.ts +5 -0
  179. package/godt/cjs/index.js +1 -1
  180. package/kilkaya/cjs/index.d.ts +4 -0
  181. package/kilkaya/es/index.d.ts +4 -0
  182. package/klart/cjs/index.d.ts +5 -0
  183. package/klart/cjs/index.js +1 -1
  184. package/koket/cjs/index.d.ts +5 -0
  185. package/koket/cjs/index.js +1 -1
  186. package/koket/es/_auto-entry_koket-B2WlSuMx.js +1 -0
  187. package/koket/es/{events-DhH916KC.js → events-C5iJPAr5.js} +1 -1
  188. package/koket/es/{index-DZzMpwTx.js → index-8lrNvRkU.js} +1 -1
  189. package/koket/es/{index-BYEYg5n6.js → index-BTa20fDA.js} +1 -1
  190. package/koket/es/{index-DHTr3or4.js → index-BeO4rcvy.js} +1 -1
  191. package/koket/es/{index-bAd1NCOu.js → index-BhiCfvRb.js} +1 -1
  192. package/koket/es/{index-Bu6TB0DP.js → index-CFuuJHk_.js} +1 -1
  193. package/koket/es/{index-eMen7DRS.js → index-CUnZcQ5_.js} +1 -1
  194. package/{svdv2/es/index-CbGdqBCP.js → koket/es/index-DFkHEsQ5.js} +1 -1
  195. package/koket/es/{index-DTtS6hyT.js → index-G9hUyJfl.js} +1 -1
  196. package/koket/es/index.d.ts +5 -0
  197. package/koket/es/index.js +1 -1
  198. package/{svdv2/es/styles-9t16wRK2.js → koket/es/styles-BQIPgsRh.js} +1 -1
  199. package/minmote/cjs/index.d.ts +5 -0
  200. package/minmote/cjs/index.js +1 -1
  201. package/package.json +10 -1
  202. package/pent/cjs/index.d.ts +5 -0
  203. package/pent/cjs/index.js +1 -1
  204. package/sa/cjs/index.d.ts +5 -0
  205. package/sa/cjs/index.js +1 -1
  206. package/sa/es/_auto-entry_sa-DR1Eak8R.js +1 -0
  207. package/sa/es/{events-DmkSNbn4.js → events-Czp1Bf7L.js} +1 -1
  208. package/sa/es/{index-BKdF7HJV.js → index-B6QpNnPz.js} +1 -1
  209. package/sa/es/{index-DlfjcCfo.js → index-BK2Woo0V.js} +1 -1
  210. package/sa/es/{index-C3-dT3Da.js → index-BgzaHxEB.js} +1 -1
  211. package/{bt/es/index-FBqdAJVX.js → sa/es/index-BlWGftLo.js} +1 -1
  212. package/{bt/es/index-BOwPxMrI.js → sa/es/index-CsLiSVuW.js} +1 -1
  213. package/sa/es/{index-CURdCwBP.js → index-DRrfqemd.js} +1 -1
  214. package/sa/es/{index-DN-YIKca.js → index-DVJ3uiHQ.js} +1 -1
  215. package/sa/es/{index-DdjFNLfi.js → index-RJ0AwbAy.js} +1 -1
  216. package/sa/es/index.d.ts +5 -0
  217. package/sa/es/index.js +1 -1
  218. package/sa/es/{styles-nIWjdf4Q.js → styles-BIEPgknJ.js} +1 -1
  219. package/sa/es/{styles-BinlqIzR.js → styles-BZbbl3__.js} +1 -1
  220. package/sa/es/{styles-CKXkPSK7.js → styles-BvK_Hm8A.js} +1 -1
  221. package/{vg/es/styles-BLEcq5zd.js → sa/es/styles-C265I3ui.js} +1 -1
  222. package/{vg/es/styles-J6ZIkWWg.js → sa/es/styles-CgQ3pAiP.js} +1 -1
  223. package/sa/es/{styles-D6Yw1Ac5.js → styles-DE-5r6jI.js} +1 -1
  224. package/sa/es/{styles-Dl9lSG5k.js → styles-DbqMID7Q.js} +1 -1
  225. package/{bt/es/styles-DeLtxm-7.js → sa/es/styles-DmxGH8LS.js} +1 -1
  226. package/sa/es/{styles-BqJmPjkx.js → styles-x_RZ8LfI.js} +1 -1
  227. package/sav2/es/_auto-entry_sav2-Buoo9FKC.js +1 -0
  228. package/sav2/es/{events-CLjaEfKg.js → events-BI8lwyAS.js} +1 -1
  229. package/sav2/es/{index-B9vqocMj.js → index-BQ8oAuHr.js} +1 -1
  230. package/sav2/es/{index-DR45cNWr.js → index-BgPfftGv.js} +1 -1
  231. package/sav2/es/{index-CtpIO46D.js → index-CFYdF9nM.js} +1 -1
  232. package/sav2/es/{index-BpNenTh6.js → index-Dd4x--40.js} +1 -1
  233. package/sav2/es/{index-C4g2W0Sb.js → index-Dm0CwDko.js} +1 -1
  234. package/sav2/es/{index-D2OGiVeA.js → index-GTPIp0mQ.js} +1 -1
  235. package/sav2/es/{index-CFBp0gWl.js → index-VFT0zh22.js} +1 -1
  236. package/sav2/es/{index-DF8KOTU3.js → index-jUIaqg6x.js} +1 -1
  237. package/sav2/es/index.d.ts +5 -0
  238. package/sav2/es/index.js +1 -1
  239. package/{btv2/es/styles-CeXhXj2f.js → sav2/es/styles-0zU2Afam.js} +1 -1
  240. package/{btv2/es/styles-C5hdNxqP.js → sav2/es/styles-BH4mt2Zh.js} +1 -1
  241. package/sav2/es/{styles-B6Tn2m5H.js → styles-BMp80jah.js} +1 -1
  242. package/sav2/es/{styles-DR2_niKK.js → styles-BR_5kDUe.js} +1 -1
  243. package/{vgv2/es/styles-CdXBCGzU.js → sav2/es/styles-CCVahElC.js} +1 -1
  244. package/sav2/es/{styles-4VHKUOCA.js → styles-CZnBwaC3.js} +1 -1
  245. package/{btv2/es/styles-DsdyDZfJ.js → sav2/es/styles-CdHzLcOB.js} +1 -1
  246. package/sav2/es/{styles-RoErDfv8.js → styles-Lru4uD64.js} +1 -1
  247. package/svd/cjs/index.d.ts +5 -0
  248. package/svd/cjs/index.js +1 -1
  249. package/svd/es/_auto-entry_svd-BH3Ngjrt.js +1 -0
  250. package/svd/es/{events-BGNp0ea8.js → events-CWFgkDG1.js} +1 -1
  251. package/svd/es/{index-yLNHfxRN.js → index-BKe3qaf7.js} +1 -1
  252. package/svd/es/{index-29Jf_Biv.js → index-BP41ecWy.js} +1 -1
  253. package/svd/es/{index-U6-8PbJh.js → index-BcNPzl4P.js} +1 -1
  254. package/svd/es/{index-Dd5XL9Bh.js → index-Bya6Uq5B.js} +1 -1
  255. package/svd/es/{index-CKr8OvT_.js → index-C3cDOsuZ.js} +1 -1
  256. package/svd/es/{index-D6Ta9osQ.js → index-CCt9DWBH.js} +1 -1
  257. package/{e24/es/index-CX3Bi8nn.js → svd/es/index-CLVC_R25.js} +1 -1
  258. package/svd/es/{index-BtDN90s0.js → index-D5ggf8Xp.js} +1 -1
  259. package/svd/es/index.d.ts +5 -0
  260. package/svd/es/index.js +1 -1
  261. package/svd/es/{styles-1X-vMM3I.js → styles-BWNs7vrn.js} +1 -1
  262. package/svd/es/{styles-BKaQTDGq.js → styles-C7-tNUeS.js} +1 -1
  263. package/svd/es/{styles-5uj-ZsHl.js → styles-CI0tJc6e.js} +1 -1
  264. package/svd/es/{styles-DEd63ZFk.js → styles-CcAVJGfE.js} +1 -1
  265. package/svd/es/{styles-DyN1NmcS.js → styles-DUN-Sq2Q.js} +1 -1
  266. package/svd/es/{styles-Cus0jeG9.js → styles-u3GakbDH.js} +1 -1
  267. package/svdv2/es/_auto-entry_svdv2-D3Q-Cwuh.js +1 -0
  268. package/svdv2/es/{events-DqZfw4u-.js → events-CbogHJk0.js} +1 -1
  269. package/svdv2/es/{index-yCwBuZEJ.js → index-4lmCFsSW.js} +1 -1
  270. package/svdv2/es/{index-EpnJhmcV.js → index-BnEvrjDt.js} +1 -1
  271. package/svdv2/es/{index-C4rimTjh.js → index-D3McYvBy.js} +1 -1
  272. package/{koket/es/index-ypZ2A-fD.js → svdv2/es/index-DKgFd8BC.js} +1 -1
  273. package/svdv2/es/{index-I-xNTWVP.js → index-DQEHhVgW.js} +1 -1
  274. package/svdv2/es/{index-DXWYk6cz.js → index-DaAnuF-t.js} +1 -1
  275. package/svdv2/es/{index-CtUznPAK.js → index-LihWROT2.js} +1 -1
  276. package/svdv2/es/{index-2odxm5tq.js → index-aN0srUEo.js} +1 -1
  277. package/svdv2/es/index.d.ts +5 -0
  278. package/svdv2/es/index.js +1 -1
  279. package/{koket/es/styles-B_H1HQkP.js → svdv2/es/styles-CGPf0BAr.js} +1 -1
  280. package/svdv2/es/{styles-CA4Z2e2v.js → styles-CKXTdzs6.js} +1 -1
  281. package/svdv2/es/{styles-DToIRCe4.js → styles-Dci-bvKU.js} +1 -1
  282. package/svdv2/es/{styles-CuKhob1v.js → styles-Eh1GkHPx.js} +1 -1
  283. package/svdv2/es/{styles-BUjiG59F.js → styles-P6IOCdoC.js} +1 -1
  284. package/svdv2/es/{styles-DxAKuP0Z.js → styles-tlqB4rsT.js} +1 -1
  285. package/tek/cjs/index.d.ts +5 -0
  286. package/tek/cjs/index.js +1 -1
  287. package/tracker/cjs/index.d.ts +4 -0
  288. package/tracker/cjs/index.js +1 -1
  289. package/tracker/es/index.d.ts +4 -0
  290. package/tracker/es/index.js +1 -1
  291. package/tv4/cjs/index.d.ts +5 -0
  292. package/tv4/cjs/index.js +1 -1
  293. package/tv4/es/_auto-entry_tv4-CQemRCV3.js +1 -0
  294. package/tv4/es/{events-C0sezdBn.js → events-Bn0rJup8.js} +1 -1
  295. package/tv4/es/{index-CDm1z5Zz.js → index-B6yq5Gyv.js} +1 -1
  296. package/tv4/es/{index-CZmxzuAB.js → index-BJji2ATp.js} +1 -1
  297. package/tv4/es/{index-D6j9NyVD.js → index-BPa0_w5G.js} +1 -1
  298. package/tv4/es/{index-C3N6OygM.js → index-BWEU3m94.js} +1 -1
  299. package/tv4/es/{index-DDWIYeu-.js → index-BkFrwx_r.js} +1 -1
  300. package/tv4/es/{index-BpzCvrHU.js → index-Cq1qeKSR.js} +1 -1
  301. package/{svd/es/index-BIwR4oxJ.js → tv4/es/index-D_WaHIAK.js} +1 -1
  302. package/tv4/es/{index-sIym3nCc.js → index-gT_GHXn7.js} +1 -1
  303. package/tv4/es/index.d.ts +5 -0
  304. package/tv4/es/index.js +1 -1
  305. package/{e24/es/styles-VDl0rmFd.js → tv4/es/styles-B9dFHoiV.js} +1 -1
  306. package/tvnu/cjs/index.d.ts +5 -0
  307. package/tvnu/cjs/index.js +1 -1
  308. package/types/index.d.ts +43 -1
  309. package/vg/cjs/index.d.ts +5 -0
  310. package/vg/cjs/index.js +1 -1
  311. package/vg/es/_auto-entry_vg-Ysm3SmZS.js +1 -0
  312. package/vg/es/{events-BuIHSL2h.js → events-BsbXyYJY.js} +1 -1
  313. package/vg/es/{index-CCJ1nJj9.js → index-B0l-K3Nm.js} +1 -1
  314. package/vg/es/{index-20ZWVGEc.js → index-Bf04WCFs.js} +1 -1
  315. package/vg/es/{index-CA0WZ6Ax.js → index-BjFWFokY.js} +1 -1
  316. package/vg/es/{index-CZuZrMsL.js → index-CbihXkGs.js} +1 -1
  317. package/vg/es/{index-BDINj96k.js → index-DRb6TbCy.js} +1 -1
  318. package/vg/es/{index-DTQcufJF.js → index-DXTyIRph.js} +1 -1
  319. package/vg/es/{index-Dl49HE4w.js → index-DiHKSlZN.js} +1 -1
  320. package/vg/es/{index-D2Jjx9PT.js → index-zknvo2nh.js} +1 -1
  321. package/vg/es/index.d.ts +5 -0
  322. package/vg/es/index.js +1 -1
  323. package/vg/es/{styles-CQOliiLX.js → styles-B63x2SpC.js} +1 -1
  324. package/vg/es/{styles-NumU-nPs.js → styles-BUtIGfqi.js} +1 -1
  325. package/vg/es/{styles-BrTe9i2l.js → styles-BexolDY4.js} +1 -1
  326. package/{sa/es/styles-B-lO9R-E.js → vg/es/styles-BxHcjj-n.js} +1 -1
  327. package/vg/es/{styles-h04QFm1i.js → styles-ByLB3fAX.js} +1 -1
  328. package/{bt/es/styles-C8DnuqSs.js → vg/es/styles-CDe9glwP.js} +1 -1
  329. package/vg/es/{styles-jFF5Vdp2.js → styles-CIXqdJYT.js} +1 -1
  330. package/vg/es/{styles-CCZ98LB_.js → styles-CWBxD9zM.js} +1 -1
  331. package/vg/es/{styles-Bz0xWAPo.js → styles-CpI8Vlow.js} +1 -1
  332. package/vg/es/{styles-Cq0YVuP-.js → styles-DP0QUZVe.js} +1 -1
  333. package/vg/es/{styles-Bo3zTh_r.js → styles-DthpO9K3.js} +1 -1
  334. package/vg/es/{styles-PevLCSy7.js → styles-DxISXjJx.js} +1 -1
  335. package/vg/es/{styles-BZEN7d7Q.js → styles-VY3hon_C.js} +1 -1
  336. package/vg/es/{styles-EesYVlqx.js → styles-b8Bmj5zP.js} +1 -1
  337. package/vg/es/{styles-Bqoueq7w.js → styles-fArum_w2.js} +1 -1
  338. package/vgv2/es/_auto-entry_vgv2-CXADx6AD.js +1 -0
  339. package/vgv2/es/{events-DEsiy1oQ.js → events-B9GLUG_c.js} +1 -1
  340. package/vgv2/es/{index-oFKUHxJ1.js → index-BPI8SWbT.js} +1 -1
  341. package/vgv2/es/{index-DGISJUMb.js → index-BrQmd96n.js} +1 -1
  342. package/vgv2/es/{index-7WHfLNBO.js → index-C1qvZ43-.js} +1 -1
  343. package/vgv2/es/{index-BSlqbyek.js → index-CFD6e815.js} +1 -1
  344. package/vgv2/es/{index-Dy1kdc5b.js → index-CRmtQ0Ln.js} +1 -1
  345. package/vgv2/es/{index-OH40eW-t.js → index-CWzszIrQ.js} +1 -1
  346. package/vgv2/es/{index-B3ngGiHs.js → index-DNJnGBOC.js} +1 -1
  347. package/vgv2/es/{index-B7Qwcv3E.js → index-gk_94DrP.js} +1 -1
  348. package/vgv2/es/index.d.ts +5 -0
  349. package/vgv2/es/index.js +1 -1
  350. package/{btv2/es/styles-DFgxH_36.js → vgv2/es/styles-BVfmnN3W.js} +1 -1
  351. package/vgv2/es/{styles-D6-Q2fZt.js → styles-BveOiWvC.js} +1 -1
  352. package/vgv2/es/{styles-uYs9ct2S.js → styles-By7C17yJ.js} +1 -1
  353. package/vgv2/es/{styles-KY3tCqxT.js → styles-BypJiXcH.js} +1 -1
  354. package/vgv2/es/{styles-CevEX1M3.js → styles-C7Zup_OS.js} +1 -1
  355. package/vgv2/es/{styles-DuZv94it.js → styles-COdKCQnY.js} +1 -1
  356. package/vgv2/es/{styles-Dqe1Vqpx.js → styles-CXtejXaY.js} +1 -1
  357. package/vgv2/es/{styles-B6GKsM48.js → styles-Ca6cxxB-.js} +1 -1
  358. package/{btv2/es/styles-Bo_Iovmx.js → vgv2/es/styles-Cr5Fs5YF.js} +1 -1
  359. package/vgv2/es/{styles-DOTBy6aM.js → styles-D1hkQkrv.js} +1 -1
  360. package/vgv2/es/{styles-C8ervY_s.js → styles-DNcC9ILz.js} +1 -1
  361. package/vgv2/es/{styles-DwuSyeJg.js → styles-DpUl3Suf.js} +1 -1
  362. package/{btv2/es/styles-DNLeCYjA.js → vgv2/es/styles-Dt3_EHGE.js} +1 -1
  363. package/vgv2/es/{styles-BP1mlW3y.js → styles-Ze0zbpIu.js} +1 -1
  364. package/vgv2/es/{styles-B2B95hc3.js → styles-fmVnipjj.js} +1 -1
  365. package/video/cjs/index.js +1 -1
  366. package/video/es/index.js +1 -1
  367. package/aftenposten/es/_auto-entry_aftenposten-EtY8GywO.js +0 -1
  368. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-DHJZKdQn.js +0 -1
  369. package/aftonbladet/es/_auto-entry_aftonbladet-B3k7YOBF.js +0 -1
  370. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-C6dng7Av.js +0 -1
  371. package/bt/es/_auto-entry_bt-DUcmJ2ku.js +0 -1
  372. package/btv2/es/_auto-entry_btv2-D2FHz3QG.js +0 -1
  373. package/e24/es/_auto-entry_e24-Cz-sabh7.js +0 -1
  374. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-FkLZW4D2.js +0 -1
  375. package/koket/es/_auto-entry_koket-CEn1sb81.js +0 -1
  376. package/sa/es/_auto-entry_sa-Br3iro3o.js +0 -1
  377. package/sav2/es/_auto-entry_sav2-D7Zkf3q3.js +0 -1
  378. package/svd/es/_auto-entry_svd-EeywsUFy.js +0 -1
  379. package/svdv2/es/_auto-entry_svdv2-BOdsgENe.js +0 -1
  380. package/tv4/es/_auto-entry_tv4-BIyw3FfG.js +0 -1
  381. package/vg/es/_auto-entry_vg-2d1xLWdJ.js +0 -1
  382. package/vgv2/es/_auto-entry_vgv2-D8TcsAHG.js +0 -1
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const i={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},r={SVD:"svd",VG:"vg",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"},o={publisherClassName:r.TV4,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=function(){if(c)return l;c=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var a={};return i.isMergeableObject(e)&&r(e).forEach(function(t){a[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?a[r]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(r,i)(e[r],t[r],i):a[r]=n(t[r],i))}),a}function s(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(t)?s?o.arrayMerge(t,r,o):a(t,r,o):n(r,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}(),p=d(u);const v=["placements","takeover","refreshConfig","editory"],g={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},h=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},m=(e,t)=>{console.warn("[Advertory WARN]: ",e)},y=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||m("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||m("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||m("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||m("pageContext.deviceType is required."),n||m("pageOptions is required."),i||m("placements is required."),(null==r?void 0:r.defaultThreshold)||m("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i;const r=e.pageSectionsSelectors,o=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:n}of o)e&&!(null==r?void 0:r[t])&&m(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},f=6;class w{set(e){y(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 v){const i=e[n];void 0!==i&&(t[n]=i)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(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=p(w.DEFAULT_SITE_HANDLERS,e)}}w.DEFAULT_SITE_HANDLERS={siteEvents:g,initNativeAd:()=>{}};const b=new w,x=b.modifyConfigProperties.bind(b);class E{initialize(){this.DATA=Object.assign({},E.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)}}E.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const C=new E,I=864e5,A=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return h("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=I)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=I)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return h("Error with parsing localStorage data"),null}}}})(),S="glimrTags",T=["glwe_","glwet_"],k={geofenceTags:[],geoTags:[],weatherTags:[]},O=e=>new URLSearchParams(window.location.search).get(e),P="takeover",j="native_override_desc2",L=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return h("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(h("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{h("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{h("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);h("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),N={NO:"no",SE:"se"},D="cmp:loaded";let M="undefined"!=typeof window?window._tcf_:void 0,_=!1;const R=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=O("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(h("TCF bypass param detected, returning consent: true"),!0):(h("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if(_)return null;if(!M)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=M.getConsentedToAllSync();return h(`TCF consented to all is: ${t}`),M.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(h("Getting TCF consent manager..."),window._tcf_)return h("TCF consent manager is already available"),M=window._tcf_,void e(M);h("TCF consent manager is not available");const n=()=>{h("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(M=window._tcf_,e(M)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(D,n),_=!0,t(new Error("Timeout waiting for CMP to load"))},r);h("Listening for CMP loaded event..."),document.addEventListener(D,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===N.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===N.NO;if(t||i)return h("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield L(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!M)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{h("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);M.onTcfReady(()=>{h("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),M.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},q=(e,t,n,...i)=>s(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return h(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=R(e,0,n);return(yield r())?(h(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(h(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),F=(...e)=>s(void 0,[...e],void 0,function*(e=b.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield q(t,n,i,"glimr")}const{getConsentAsync:r}=R(t,0,i);return yield r()}),$=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=b.get();if(!(yield F())||!(null==e?void 0:e.enabled))return void h("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(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)=>{A.setWithTimestamp(S,{tags:e,tagMappings:t}),n(!0)})})}catch(e){h(`Error during getting glimr data: ${e}`)}else h("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),B={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},U=e=>T.some(t=>e.startsWith(t)),V=e=>e.startsWith("glgc_"),H=e=>e.startsWith("glci_"),z=e=>!U(e)&&!V(e),W=e=>e===N.NO?"no-sno":"se-generic",K=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield F(e);if(!(null==i?void 0:i.enabled)||!o)return h("No consent for getting glimr tags."),{};const a=W(r),s=G(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),G=(e,t)=>{const n=J();if(!n)return k;const i=((e=[])=>e.filter(U))(n),r=((e=[])=>e.filter(V))(n),o=((e=[],t,n)=>{var i;const r=e.filter(z);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=B[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},J=()=>{const e=A.getByTimestamp(S);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},Q=()=>{var e;return((e=[])=>e.filter(H))(null!==(e=J())&&void 0!==e?e:[])},Y=()=>(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),X=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Z=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:r}}=b.get(),o=[`${W(r)}-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",...i?o:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},ee="opaque",te=e=>s(void 0,void 0,void 0,function*(){if(e.type!==ee){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ne={get:(e,...t)=>s(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,i=a(t,["timeout"]);if(n)return((e,t,n)=>s(void 0,void 0,void 0,function*(){const i=new AbortController,r=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return te(n)}finally{clearTimeout(r)}}))(e,i,n);const r=yield fetch(e,i);return te(r)}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ie="advertory:ppids-cache",re={[N.SE]:`SCH${N.SE.toUpperCase()}-EnvHash`,[N.NO]:`SCH${N.NO.toUpperCase()}-EnvHash`},oe={[N.SE]:`SCH${N.SE.toUpperCase()}-UserHash`,[N.NO]:`SCH${N.NO.toUpperCase()}-UserHash`},ae={[N.SE]:`sch${N.SE}-envhash-v3`,[N.NO]:`sch${N.NO}-envhash-v3`},se={[N.SE]:`sch${N.SE}-userhash-v3`,[N.NO]:`sch${N.NO}-userhash-v3`},de={[N.SE]:`'sch${N.SE}-iosid-v3'`,[N.NO]:`'sch${N.NO}-iosid-v3'`},le={[N.SE]:`sch${N.SE}-androidid-v3`,[N.NO]:`sch${N.NO}-androidid-v3`},ce={[N.SE]:"sdrn:schibsted.com:user",[N.NO]:"sdrn:spid.no:user"};class ue{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const pe=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||h("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:""}},ve=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,i,r,o,a,s,d,l,c,u,p;const v=A.get(ie),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===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||h("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});A.set(ie,r)}hashPPIDs(e,t){return s(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ne.post(t,n,e)}catch(e){return h("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ce[t]}:${n}`:null}))(t,n),r=yield(e=>s(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:i},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},o?{idfv:{plain:o}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},ge=e=>s(void 0,void 0,void 0,function*(){const{tracker:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield q(n,r,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([pe.processPPIDs(t,null==n?void 0:n.timeout),ve.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){h(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),he=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ve.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]).add(o,de[e]).add(a,le[e]).buildEids()}]}},me=()=>{const{ppid1:e,ppid2:t}=pe.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ye=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ve.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]).add(o,de[e]).add(a,le[e]).buildRyEids()}}]}}},fe=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r}=ve.getPPIDs(),o=(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r}=ve.getPPIDs();return(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]).buildRyEids()},be=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r}=ve.getPPIDs(),o=(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),xe=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=ve.getPPIDs();return e}),Ee=(e,...t)=>s(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),clearTimeout(d)};r.addEventListener("load",o),r.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),Ce={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},Ie={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}]},Ae={wallpaper:1600,"l-format":1600},Se=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&$e(e,Ce.ANY_FULLSCREEN)},Te=e=>{const{native:t}=e;return!!t},ke=e=>$e(e,Ce.FULLWIDTH),Oe=e=>{const{targetId:t}=e;return t.includes("takeover")||$e(e,Ce.TAKEOVER)},Pe=e=>$e(e,Ce.TAKEOVER),je=e=>$e(e,Ce.WALLPAPER),Le=e=>$e(e,Ce.COLLAPSE),Ne=e=>e.targetId.includes("sponsorstripe"),De=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Me=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),_e=e=>e.targetId.startsWith("midboard"),Re=e=>e.targetId.includes("widescreen"),qe=e=>e.width>=1260&&e.width<=1280,Fe=e=>e.width>=1600&&e.width<=1620,$e=(e,t)=>{const n=Ie[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===r,s=!t.height||t.height===o;return a&&s})},Be="advertory-fullscreen-scroll",Ue="advertory-fullscreen-scroll-wrapper",Ve="fullscreen-scroll-in-screen",He="in-screen",ze=e=>e.includes("snoap.no"),We=e=>{var t,n,i,r,o;return!!(null===(o=null===(r=null===(i=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===i?void 0:i.adResponse)||void 0===r?void 0:r.ads[1])||void 0===o?void 0:o.rtb)},Ke=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},Ge=Ke([],()=>{const e=({width:e,height:t})=>{var n;const i=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!i)return;const{clientWidth:r,clientHeight:o}=i,a=e/r,s=t/o;i.style.transform=`scale(${a},${s})`,i.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}),Je=e=>{const t=Ke([],()=>{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 i=n.contentDocument.createElement("style");i.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(i),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},Qe=[],Ye={},Xe=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,r=new IntersectionObserver(e=>Ze(e,i),{}),o=tt(e);r.observe(e),i&&(Ye[o]=rt(e,null==t?void 0:t.options))},Ze=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=tt(e);n?(et(i,n),nt(e,i,t)):(et(i,n),it(e,i,t))})},et=(e,t)=>{var n,i;const r=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;const o=t?"showFullscreen":"hideFullscreen";null===(i=r.contentWindow)||void 0===i||i.postMessage(`advertory:${o}-${e}`,"*")},tt=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},nt=(e,t,n)=>{e.classList.add(He),document.body.classList.add(Ve),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Qe.includes(t)||Qe.push(t),n&&window.addEventListener("scroll",Ye[t],{passive:!0})},it=(e,t,n)=>{Qe.includes(t)&&(n&&window.removeEventListener("scroll",Ye[t]),document.body.classList.remove(Ve),e.classList.remove(He),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},rt=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:r=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)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&ot(e,o,r,0),a.length&&ot(e,a,r,40)}},ot=(e,t,n,i)=>{const r=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-i:(o+t-(a+r))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};function at(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}at('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);flex-shrink:0}.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 st="left",dt={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 lt=null;const ct=(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=`(${Ge})()`,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(ze(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=Je(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>ze(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)),ze(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)),We(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},ut=()=>{lt=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,r=document.documentElement;r.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),r.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),r.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},pt=()=>{lt||(lt=window.requestAnimationFrame(ut))},vt=(e,t)=>{var n,i,r,o;const{pageContext:{countryCode:a,deviceType:s}}=b.get(),{targetId:d}=e,l=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==l?void 0:l.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:r="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=i/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${r} 0px,\n ${r} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${r} calc(50% + ${l}px),\n ${r} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"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: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==l?void 0:l.overlayStyles)&&void 0!==i?i:{},s);const c=document.getElementById(d),u=null==c?void 0:c.parentElement;if(!c||!u)return;Xe(u,t),c.className=Be,Xe(u,t),c.className="advertory-fullscreen-scroll";const p=$e(e,Ce.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";c.style.position=p,u.className=Ue,u.dataset.showTagSubscribeId=d,c.setAttribute("data-ad-label",dt[a].adText),(null==l?void 0:l.cogwheelPosition)===st&&(c.dataset.moveCogwheelToTheLeft="true"),pt(),window.addEventListener("resize",pt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",pt),null===(o=window.visualViewport)||void 0===o||o.addEventListener("scroll",pt)},gt=e=>{if(!(null==e?void 0:e.classList.contains(Be)))return;e.classList.remove(Be),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(Ue))&&(t.classList.remove(Ue),t.classList.remove(He))};var ht=Object.freeze({__proto__:null,createFullscreenScrollAd:vt,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=We(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[i].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,i=We(e)?1:0,r=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;r&&(r.banner.content=t)})(e,ct(t,e))},undoFullscreenScrollContainer:gt});const mt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},yt=(e,t,n)=>{var i,r,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.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}]}})),mt(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},ft="ad-loaded",wt="disable-cogwheel",bt=()=>null!==O("disable_prebid"),xt="0123456789abcdefghijklmnopqrstuvwxyz",Et=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=xt[Math.floor(36*Math.random())]}return t},Ct=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},It=e=>{window.apntag.anq.push(e)},At=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),St=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})}),Tt=(e,t,n)=>s(void 0,void 0,void 0,function*(){yield At,yield St;new IntersectionObserver((t,i)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),i.unobserve(e),i.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),kt=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:r},fullscreenScroll:o,appearanceConfig:a,placements:s}=b.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=b.getHandlers(),{getConsentAsync:l}=R(t,0,n),c=yield l(),u=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const r=Y(),{prebid:{relevantCallbackTimeout:o}={}}=b.get(),a="relevantCb"===i&&o?o:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,r.loadTags&&r.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Y(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Y();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:g=""}={},keywords:m}=v;(()=>{const e=X();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{h("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return h("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=X();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};h("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),Z(m,g))),h("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),Z(m,g))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{h("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:u.getCancel()}),u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e)),u.cleanup()}},customNativeRender:e=>{Ot(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const v=p.id,g=document.getElementById(v);if(!g)return;const m=null===(t=null==s?void 0:s[r])||void 0===t?void 0:t.find(e=>e.targetId===v),y=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[r])&&void 0!==d?d:0,f=Object.assign(Object.assign({},u),{targetId:v,banner:!0});h("prebid directRenderFn ad info",{targetId:v,width:null==u?void 0:u.width,height:null==u?void 0:u.height,adId:null==u?void 0:u.adId,creativeId:null==u?void 0:u.creativeId}),Tt(g,y,()=>{var e;const t=c(l),n=Se(f);if(h("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)h("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),vt(f,o),i?g.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 i=new MutationObserver(()=>{n()&&i.disconnect()});i.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t);else{h("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),gt(g),null===(e=null==g?void 0:g.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(g.style.width=`${n}px`)}g.classList.add(ft),(null==u?void 0:u.creativeId)&&yt(v,g,Number(null==u?void 0:u.creativeId))})}}),h("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e))}},customNativeRender:e=>{Ot(e,d)},directRenderFn:()=>{}})})}),Ot=(e,t)=>{var n;const{divId:i,native:r,bid:o}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],s=`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,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:r,targetId:s},b.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")};let Pt="";const jt=new Map,Lt=e=>{const{pageSetup:{tag:t}={}}=b.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(Pt!==window.location.pathname&&(jt.clear(),Pt=window.location.pathname),e.map(e=>{var t;const n=e.invCode.replace(/_\d+$/,""),i=null!==(t=jt.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=b.get();return`${e}-${t}`})()}-count`]=i,jt.set(n,i+1),e})):e},Nt=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},Dt="advertory-wallpaper-background",Mt="advertory-with-horseshoe",_t=()=>{const e=document.querySelector(`.${Dt}`);e&&e.remove()},Rt=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Dt}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},qt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,Ft=e=>qt.test(e),$t=e=>e.startsWith("wallpaper:color:"),Bt=e=>{const t=document.querySelector(`.${Dt}`);t&&(t.style.backgroundImage=`url(${e})`)},Ut=e=>{const t=document.querySelector(`.${Dt}`);t&&(t.style.backgroundColor=e)};var Vt=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(Mt),n.classList.add(Mt))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{_t();const e=document.createElement("div");e.classList.add(Dt),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&&(Rt(n),window.addEventListener("scroll",()=>Rt(n)))})(n),e()},isShortWallpaperColorMessage:$t,isShortWallpaperUrlMessage:Ft,removeWallpaperBackground:_t,setWallpaperBackgroundColor:Ut,setWallpaperBackgroundImage:Bt});const Ht=e=>{if("0"===O("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")&&_t())},zt=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"))},Wt=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,i=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${i}px`)},Kt=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=C.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=i},Gt=()=>{_t();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Ht(e.id),Kt(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),i=null==t?void 0:t.getAttribute("data-probable-width");n&&i&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",i+"px"))})(e.id),e.innerHTML="",e.id=Nt(e.id)}),It(()=>window.apntag.clearRequest())},Jt="mobile",Qt="tablet",Yt="desktop",Xt="web_desktop",Zt="web_phone",en="wde",tn="wph",nn="noGroupedPlacements",rn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},on=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},an=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:i,pageContext:{deviceType:r}}=b.get(),o=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Qt&&0===i.length?e[Yt]:i})(n,r),a=o.filter(on),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=rn(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),o=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${r}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(o),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const r=sn(e,t,n),o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${Et(6)}`;return e.id=s,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&&C.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({},r),{targetId:s})});return Lt(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)},sn=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:o||r},dn=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=b.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=Nt(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes(Nt(e.targetId)));return n})(e,i),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has(Nt(e.targetId))))(e,new Set([...s,...r]));return Object.assign(Object.assign(Object.assign({},a),o),{[nn]:d})},ln=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:r}=window,[o,a]=t;if(!i.dataset.lockedsize&&a&&o)i.style.width=`${o}px`,i.style.height=`${a}px`,n&&(r.resizeAd(i.id,[o,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=o.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&r.resizeAd(i.id,[e,t])}},cn=["netboard","board"];class un{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:r}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",r),o&&s.searchParams.append("urlData",o),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return s(this,void 0,void 0,function*(){var t,n,i;const r=yield this.identityFacade.getIdentityUser(),o=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",a=(null==r?void 0:r.userId)?String(r.userId):"",s=this.buildUrl(e,{envId:o,spid:a});try{h("Starting fetching DrEdition ad from URL:",s);const e=yield ne.get(s);return h("Fetch operation completed successfully."),e}catch(e){h("Error during fetch operation:",e)}return null})}}class pn{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:r,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:r,utm_medium:s},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),r=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{r.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const r=this.getDrEditionUTMParams(e,t),o=new URL(i);return Object.entries(r).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return s(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:r,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:r,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:i,pathname:r}=new URL(n);if(!i.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const o=r.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const vn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):h("Dr. Edition container does not have a parent element, cannot remove height lock.")};class gn{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return s(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:o=!1}=t,a=e.querySelector(r);if(!a)return void h(`Container with selector "${r}" not found.`);const s=yield this.drEditionService.fetchData(t);return(null==s?void 0:s.itemId)||o?!(null==s?void 0:s.itemId)&&o?(h("No Dr. Edition ads available to render. Collapsing whole placement."),Ht(e.id),void vn(a)):((null==s?void 0:s.itemId)&&o&&(h("Dr. Edition ad available to render as a Xandr backfill."),zt(e.id)),void(s?(s.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(s.css,"style"),yield this.rendererManager.render(a,s,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(s,t),vn(a),this.drEditionAds.push(s),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(s.itemId),this.observeAdView(e,s,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):vn(a))):(h("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void vn(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 i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";zt(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let r=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(r&&clearTimeout(r),r=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{o.observe(e)}),!0}}const hn=()=>{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"},mn=e=>e===Jt,yn=853,fn=767;class wn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return s(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:i}=R(n.tcf,n.isMobileApp,n.country),r=yield i(),o=mn(n.device)?t.mobileHTML:t.desktopHTML,a=r?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var i,r,o;e.search=null!==(o=null===(r=(i=this.newsroomStrategy).getUrlSearchParams)||void 0===r?void 0:r.call(i,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class bn{constructor(e){this.strategy=e}handle(e,t){return s(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return s(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 Ee(t)}catch(e){h("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return s(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,r=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==r||r.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==r?void 0:r.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,i,r;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",o),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(r=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===r||r.call(i,s),!0))}}class xn{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){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 i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,r=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const p=this.getEventInput(e,t,n,"view");(null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)?null===(o=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===o||o.call(r,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,p):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,p)})}trackContentClick(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(r=(i=this.pulse).trackLegacyClickUIElement)||void 0===r||r.call(i,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class En extends xn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(o=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===r?void 0:r.call(i,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:u},tags:[s,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:p,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class Cn extends xn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulseObjectId)||void 0===o?void 0:o.call(r))&&void 0!==a?a:p,"@type":"UIElement",position:p,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:p,"@type":v,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var r,o,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:p,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),f=this.getTeaserElementText(e,"image"),w=null!==(s=null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getUrlWithParams)||void 0===o?void 0:o.call(r,t,n))&&void 0!==a?a:v)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:p,link:w,placement:n.editionName,subtitle:y,time:h,title:m,type:i,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const In={FRONT:"front"},An=e=>s(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 i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,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)))}))}),Sn={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 s(this,void 0,void 0,function*(){yield import("./styles-B9dFHoiV.js")})}})}};class Tn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){yield s(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);var l,c;c=d,null==(l=a)||l.forEach(e=>{Sn[e](c)});const u={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},p=yield An(u);p.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(p,a)}),p.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"]})}),p.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield p.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===In.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:i}=new URL(n),r=i.split("/").filter(Boolean);return r.length?[...r.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 kn="https://www.aftonbladet.se/video-player-extras/latest/";class On{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${kn}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${kn}external-link.js`]:{name:"ExternalLink"}}};yield An(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 Pn=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class jn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},Pn(e)?e:{}),{provider:Object.assign(Object.assign({},Pn(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 An(a);d.once("PulseStats:ready",()=>s(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===In.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class Ln{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const Nn=(e,t,n)=>{var i;const{publisher:o,pageType:a,country:s}=e,d={[r.VG]:new pn,[r.E24]:new Tn,[r.AFTONBLADET]:new On,[r.SVD]:new jn}[o]||new Ln,l=new(s===N.SE?En:Cn)(n,d,a),c=new un(t,null!==(i=null==n?void 0:n.pulseTracker)&&void 0!==i?i:n),u=new wn(d,l),p=new bn(d);return new gn(c,u,p,l)},Dn=()=>s(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 Mn{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 s(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return h("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return s(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 _n=(e,t,n)=>{const{wrapperSelector:i}=e.drEditionConfig.options,r=document.querySelectorAll(i),o=new IntersectionObserver((i,r)=>((e,t,n,i,r)=>{const o=Nn(n,i,r);e.forEach(e=>{var i,r;if(!e.isIntersecting)return;const a=e.target,s=null!==(i=a.dataset.editionName)&&void 0!==i?i:"",d=null!==(r=a.dataset.pulseColumnname)&&void 0!==r?r:"",l=Number(a.dataset.pulsePrimaryposition)||0;o.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:s,columnName:d,primaryPosition:l})),t.unobserve(a)})})(i,r,e,t,n),{rootMargin:"400% 0px"});r.forEach(e=>o.observe(e))},Rn=()=>s(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)}}),qn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Fn=[],$n=(e,t)=>s(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:r,drEdition:o,pageContext:{deviceType:a,publisher:s,pageType:d,countryCode:l,isMobileApp:c}}=e;if(!(yield q(r,c,l,"handleDrEditionBackfill")))return;const u=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:o,drEdition:a}=e,s=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,d=o[r]||o.desktop,l=Nt(t.targetId),c=d.find(e=>e.targetId===l),u=cn.some(e=>l.startsWith(e)),p=Fn.includes(l),v=(null===(i=null==c?void 0:c.drEdition)||void 0===i?void 0:i.editionName)||s;return c&&u&&!p&&v?(Fn.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!u)return;if(!(null==i?void 0:i.instance))return void h("Pulse has not been passed as a prop, aborting");const p=yield Dn(),v=new Mn(p),g=Nn({publisher:s,pageType:d,country:l},v,null==i?void 0:i.instance),m=document.getElementById(t.targetId);if(!m||!o)return;m.classList.value="";const y=document.createElement("div");y.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==u?void 0:u.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:r,isMobileApp:c,country:l,renderAsBackfill:!0};yield g.fetchAndRenderAd(m,f)}),Bn=e=>s(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield q(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield Dn(),i=new Mn(n);_n({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),Un=(e,t)=>{var n,i,r;if(!qn())return void h("Ad block not enabled, Dr. Edition backfills will not be rendered");h("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(i=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===i?void 0:i[o],l=null!==(r=null==d?void 0:d.map(([e])=>e))&&void 0!==r?r:[],c=new IntersectionObserver((t,n)=>s(void 0,void 0,void 0,function*(){for(const i of t){if(!i.isIntersecting)continue;const t=i.target;n.unobserve(t),yield $n(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!l.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&c.observe(t)})},Vn="collapseAd",Hn="hideAd",zn="resizeAd",Wn="renderDrEditionFallback",Kn="wallpaperImageUrl",Gn="wallpaperColor",Jn="velvet",Qn=[zn,Kn,Gn,Vn,Hn,Wn,Jn];let Yn;const Xn=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(Ft(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Kn,wallpaperImageUrl:t}}if($t(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Gn,wallpaperColor:t}}if(e.startsWith(Wn)){const t=e.split(":")[1];return{name:Wn,targetId:t}}if(e.startsWith(Vn)||e.startsWith(Hn)){const t=e.split(":")[1];return{name:Vn,targetId:t}}if(e.includes("name")&&Qn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Qn.some(e=>n.name===e))return;const{name:i,targetId:r,wallpaperImageUrl:o,wallpaperColor:a,cmd:s,size:d}=n;i===Jn&&s&&(s.includes("noScroll")&&(Yn=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(s.includes("close")||s.includes("ended"))&&(null==Yn||Yn(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==Vn&&i!==Hn||!r||Ht(r),i===zn&&r&&s&&ln(r,s),i===Wn&&r&&(Ht(r),$n(b.get(),{targetId:r})),"resizeMediationAd"===i&&r&&d&&ln(r,d,!0),i===Kn&&o&&Bt(o),i===Gn&&a&&Ut(a)},Zn=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=b.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},o=e=>{zt(e),It(()=>i.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-BPa0_w5G.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-BPa0_w5G.js");yield t(e,r,o,()=>s(void 0,void 0,void 0,function*(){if(!C.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Vt});t(e)}))})}},ei=(e,t)=>s(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield Tt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return De(t)&&i?(h(`loading finn blink ad for blink only placement for ${t}`),void Zn().withFinnBlinkAd(t)):De(t)?(h(`loading finn blink ad with full ads chain for ${t}`),void Zn().withFullAdsChain(t)):void It(()=>(h("core showTag",{id:t}),e.showTag(t)))})(window.apntag,(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),ti=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),ni=new Map,ii=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],ri=".brandstudio-premium-content-widget",oi=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ai=({adWrapper:e,placementContainer:t})=>{const n=oi({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Kt(i=t),i.innerHTML=""},si=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},di=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=b.get(),i=ii.includes(n)&&Boolean(t.closest(ri));const r=i?t.closest(ri):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||!i&&!a||i&&!r)return;if(a)return si(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=r;s&&d.contains(s)?si(s):d.hasAttribute("style")&&si(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},li=(e,t,n,i,r,o)=>{var a;const s=performance.now(),d=null!==(a=ni.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,r)&&n<0;s-d>=r&&l&&(ni.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=b.get(),r=null==n?void 0:n.parentElement;r&&n&&ai({adWrapper:r,placementContainer:n}),It(()=>{e.setKeywords([t],{[`${W(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},ci=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:r,boundingClientRect:o}=e;t(window.apntag,r.id,o.y,n,i,r)})})(e,li,t,n),ti(300));i.observe(e)},ui=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},pi=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),vi=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},gi=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=b.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),wi(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},hi=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;vi(r,o)&&i&&(Wt(i.targetId),n.length&&r.classList.remove(...n),wi([i],t))}},mi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=b.get();t&&(e.forEach(({targetId:e})=>{const t=yi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&hi(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),hi(e,!1,t))};n.persisted&&(pi()?window.addEventListener("scroll",i,{passive:!0}):hi(e,!1,t))})})(e,n))},yi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},fi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(yi(t)),r=(e=>1===e[0]&&1===e[1])(i),o={sizes:[i],allowedFormats:r?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return r||(o.native=void 0),o},wi=(e,t=!1)=>{const{queryConfig:{batchSize:n=f}={}}=b.get(),i=e.map(({targetId:e})=>e),r=ui(i,n);if(t)for(const t of e){const e=fi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of r)It(()=>window.apntag.refresh(e))},bi=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},xi=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=R(t,0,i);if(!(yield r()))return;const o=bi("_pulse2data");return o?o.split(",")[9]:void 0}),Ei={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Ci="takeover-displayed",Ii="takeover-visit-count",Ai=14400,Si=()=>{const e=bi(Ii);return e?parseInt(e):0},Ti=()=>{const e=Si(),{takeover:{options:{cookieCapTime:t=Ai}={}}={}}=b.get(),n=document.location.hostname;window.document.cookie=`${Ii}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},ki=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=b.get();return"0"!==O(P)&&("1"===O(P)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=b.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Ci;return"true"===bi(n)})())&&(!t||Oi()))},Oi=()=>{const e=Si();return 0===e?(Ti(),!1):1===e},Pi=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),ji=()=>{const{takeover:e}=b.get();return Boolean(null==e?void 0:e.topscroller)},Li=e=>{const{width:t,height:n}=e;return Pi(t,n)?Ei.SPLASH:$e(e,Ce.VELVET_TAKEOVER)?Ei.VELVET:ji()?Ei.TOPSCROLLER:Ei.WELCOME_PAGE},Ni=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Ci,cookieCapTime:n=Ai}={}}={},pageContext:{isMobileApp:i,countryCode:r},tcf:o}=b.get(),a=yield q(o,i,r,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Di=e=>{var t,n;const i=!!(null===(n=null===(t=b.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Oe(e)&&i},Mi=(e,t)=>{var n;if(t===Ei.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===Ei.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},_i=(e,t)=>{t!==Ei.SPLASH?(e=>{var t,n;const i=null===(t=b.get().pageSectionsSelectors)||void 0===t?void 0:t.header,r=null===(n=b.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||r)return;const o=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=Pe(e)?"60svh":`calc(100svh - ${l}px)`,u=Pe(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),s.style.setProperty("height",c,"important"),d.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=b.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),i=document.querySelector(`#${e.targetId}`);if(!n||!i)return;const r=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",r,"important")})(e)},Ri=Ke([],()=>{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 qi=Object.freeze({__proto__:null,addTakeoverCookie:Ni,adjustTakeoverHeight:_i,canDisplayTakeover:ki,getProperWelcomePageConfig:Mi,getTakeoverVariant:Li,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){Di(e)&&(yield Ni())}),incrementArticleVisitCount:Ti,isSplashVariant:Pi,isTopscroller:ji,scaleAd:Ri,shouldAddTakeoverCookieForNotShownAd:Di});const Fi=e=>`externalImpId:'${e}'`,$i=(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,Bi=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},tracker:i}=b.get(),{targetId:r,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||ki())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],i=Array.isArray(n)?n.filter(e=>e!==Ei.TOPSCROLLER):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),g=Object.assign({invCode:d,sizes:o,targetId:r,keywords:$i(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),m=(e=>{var t,n,i,r,o,a,s;return e?(null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)?(null===(i=null===(n=null==e?void 0:e.instance)||void 0===n?void 0:n.state)||void 0===i?void 0:i.pageViewId)?(h("Tracker state pageViewId is:",null===(o=null===(r=null==e?void 0:e.instance)||void 0===r?void 0:r.state)||void 0===o?void 0:o.pageViewId),null===(s=null===(a=null==e?void 0:e.instance)||void 0===a?void 0:a.state)||void 0===s?void 0:s.pageViewId):(h("Tracker state does not contain field pageViewId or it is empty"),""):(h("Tracker state is empty"),""):(h("Tracker is not configured in initAdvertory function"),"")})(i);n&&m&&(h("External Impression ID assigned to defineTag:",Fi(m)),g.externalImpId=Fi(m));const y=(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},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),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"))&&(g.native=y),g},Ui=e=>!e.includes("takeover")||ki(),Vi=e=>{const{source:t}=e;return"csm"===t},Hi={nativeAd:e=>Te(e)&&!Ne(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ke,fullscreenScroll:Se,topscroller:e=>Oe(e)&&ji(),splash:e=>Oe(e)&&Pi(e.width,e.height),welcomePage:Oe,wallpaper:je,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:qe,hFormat:Fe,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Fe(e)&&!qe(e),topboard:e=>e.targetId.startsWith("topboard")&&!Oe(e),widescreen:Re,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Ne,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Me(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!_e(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:Me,midboard:_e},zi=({adObj:e,preferredTestIdData:t})=>{var n,i;const r=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!r)return;const o=null===(i=document.querySelector(`#${r}`))||void 0===i?void 0:i.parentElement;if(!o)return;if(((e,t)=>{var n,i,r,o;const a=null===(o=null===(r=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===r?void 0:r[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(r,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,i;for(const[r,o]of Object.entries(Hi))if(o(e)){if("nativeAd"===r){const o="default";t.dataset.testid=`${r}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:o}`;break}t.dataset.testid=r;break}})(e,o)},Wi=e=>{var t;return(null===(t=Object.entries(Hi).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Ki=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=b.get(),n=W(t),i=e[`${n}-targetid`],r=i?Nt(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[r]})},Gi=e=>{const{pageContext:{countryCode:t}}=b.get(),n=W(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"]})},Ji=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 i=n.split(",")[0].split(":")[0],r=e.find(e=>e.invCode===i),o=document.querySelector(`[id^=${null==r?void 0:r.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"})})()},Qi=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});at(".advertory-brandmetrics-survey{width:100%}");const Yi="advertory-brandmetrics-survey",Xi="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Zi=()=>s(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),er={pageContext:{publisher:"aftonbladet",countryCode:N.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},tr={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},nr=e=>(null==e?void 0:e.parent)?[...nr(e.parent),e.shortPath||"unknown"]:[],ir=(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]=nr(e);return tr[n]||"ovrigaavdelningar"})(e)}_{position}`,rr={aftonbladet:er},or={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:ir(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:nr(e).join(":")}}},ar=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},sr=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),dr="se-generic",lr="aa-sch",cr="kv_",ur="pause",pr="{deviceType}",vr="{position}",gr="afp_",hr=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),mr="1-1",yr="16-9",fr="3-4",wr="9-16",br="responsive",xr={[mr]:1,[yr]:1.78,[wr]:.56,[br]:1},Er={[mr]:1,[yr]:1.78,[fr]:1.33,[wr]:.56},Cr=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},a=Yt===n?en:tn,s=r.replace(pr,a);return(e,n)=>{if(e===ur)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(vr,ur).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&hr.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(pr,a).replace(vr,e)}return s.replace(vr,e)}},Ir=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Ar=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},Sr=()=>{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},Tr=()=>{const e=null!==(t=Sr()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Sr()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},kr=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Or=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield q(n,e.isApp,r,"video"))?"1":"0",l=yield Zi(),c=yield be(r),u=yield xi({tcf:n,pageContext:s}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Ir(Er,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Ir(xr,Number(m.toFixed(2))):br;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${lr}-country_code`]:r,[`${lr}-publisher`]:i,[`${lr}-supply_type`]:(y=e.deviceType,y===Yt?Xt:Zt),[`kw_${lr}-page_type`]:"collection",[`${lr}-page_type`]:"collection",[`${dr}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${dr}-page`]:"index",[`${dr}-page`]:"index",[`${dr}-screenheight`]:String(window.screen.height),[`${dr}-screenwidth`]:String(window.screen.width),[`${dr}-viewportheight`]:String(a),[`${dr}-viewportwidth`]:String(o),[`${dr}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${dr}-mobile-os`]:hn(),[`${dr}-audience`]:void 0,[`${dr}-externalid_src`]:Tr(),[`${dr}-tags`]:e.tags,[`${dr}-articleid`]:p,"article-id":p},yield K(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${dr}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(kr()).some(e=>e.includes(cr))&&(()=>{const e=kr(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(cr)).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":d,"kw_aa-sch-cmp_advertising":d,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Pr=["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"],jr=["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"],Lr=["external_uid","gdpr","gdpr_consent","eids","article-id"],Nr=(e,t)=>{const n=[...Pr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Lr.includes(e)?e:`kw_${e}`,t]))},Dr=e=>Object.fromEntries(Object.entries(e).filter(([e])=>jr.includes(e))),Mr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i,r,o;const a=(e=>{var t;rr[e]||m(`[video] No config found for publisher "${e}"`);return null!==(t=rr[e])&&void 0!==t?t:er})(e.publisher),s=(e=>{var t;return null!==(t=or[e])&&void 0!==t?t:or.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Or({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Ar(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:ar(e.startMode)}}),_r=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=Cr(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(gr)?`${gr}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,r),"se-generic-playback-method":sr.get(s),"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({},Nr(o,n)),Dr(o)),{vskippable:"0",referrer:u,vplaybackmethod:s})},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")})}}}},Rr=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield Mr(e,t);return _r(n,e)}),qr={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]}]},Fr={no:"NOK",se:"SEK"},$r={no:"no",se:"sv"};class Br{buildFetchObject(e,t,n,i){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:r},pageOptions:o}=i,{invCode:a,xandrPlacementId:s}=e,d=yield Zi(),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 u=new URL(window.location.href),p=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(qr),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:Et(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(o.publisherId),domain:u.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||$r[r]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield xi(i),ext:{consent:d.gdpr_consent||"",eids:we(r)}},at:1,cur:[Fr[r]],source:{tid:Et(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,i){return s(this,void 0,void 0,function*(){try{h("Starting fetching Studio ad from Xandr:",Xi);const r=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]]:[]})),s=a.size>0?`${Xi}?${a.toString()}`:Xi,d=yield this.buildFetchObject(e,t,n,i),l=yield ne.post(s,r,d);return h("Fetch operation completed successfully.",l),l}catch(e){h("Error during fetch operation:",e)}return null})}}const Ur=0,Vr=3,Hr=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(s),r.classList.add(d),t.dataset.adType=n},zr={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Wr=(e,t)=>{Kr(e,t),Jr(e,t)},Kr=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const i of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])Yr(i)}),t.dataset.tracked="true")})},Gr=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(Qr):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},Jr=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:Yt])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!i)for(const n of t)if(n.isIntersecting){i=!0,Gr(e),c.disconnect();break}},d);c.observe(r)},Qr=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Yr(e):window.navigator.sendBeacon(e)},Yr=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Xr=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:[]}),Zr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[r],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void h(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},ti(s)).observe(d)});const{prepareTag:l}=b.getHandlers(),c=C.getData("alertoryConfigKeywords"),u=null!==(i=l(Bi(e)).keywords)&&void 0!==i?i:{},p=new Br,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===Jt?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===Ur){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>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(d,v,r),v.adType===Vr&&(Hr(t.pageContext.publisher,d,zr.NATIVE_AD,t.pageContext.pageType),Wr({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,a;let s;(null===(r=window.apntag.requests)||void 0===r?void 0:r.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==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),yt(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),eo=(e,t)=>{e.forEach(e=>Zr(e,t).catch(e=>{h("Failed to handle server-side ad:",e)}))},to={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},no=e=>s(void 0,void 0,void 0,function*(){if(!(e=>{const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))})(e))return e;try{const t=yield(e=>s(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;return(null==t?void 0:t.publisherClassName)&&i?`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`:null})(e);if(!t)return null;try{return yield ne.get(t,{timeout:5e3})}catch(e){throw h("Failed to fetch S3 config",{error:e,url:t}),e}}))(e);return t?((e,t)=>p(t,e,to))(e,t):e}catch(t){return h("Error fetching S3 config, using site config",{error:t}),e}});let io,ro=[];const oo=["takeover","wallpaper"],ao=e=>{const t=(e=>{var t;const n=C.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:y}=e,w=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:f;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:w})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.5.0",siteConfig:e,alertoryConfig:t}},so=()=>s(void 0,void 0,void 0,function*(){const{pageOptions:e}=b.get(),{preparePageOptions:t}=b.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=b.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"]}})(),i=yield s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=b.get();return(yield q(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),r=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),i));(e=>{const t=C.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=Gi(e);C.setData("alertoryConfigKeywords",n)})(r.keywords),It(()=>io.setPageOpts(r))}),lo=e=>s(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=b.get(),o=yield q(n,i,r,"loadPlacements"),a=((e,t)=>t?e:(e.filter(e=>!e.supportsNonRTB).forEach(e=>Ht(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);co(a);(null==t?void 0:t.enabled)&&o&&!bt()?(h("core loadPlacements prebid enabled"),yield kt()):(h("core load tags invoked without prebid enabled"),uo(a))}),co=e=>{const{prepareTag:t}=b.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const i=t.findIndex(t=>e.targetId.includes(t)),r=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===r?-1:-1===i&&-1!==r?1:i-r})})(e).forEach(e=>{h("core defineTags",{placement:e});const i=Bi(e);if(Ui(e.targetId)){const r=t(i),o=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:r}=e;return{adTypes:t,invCode:n,keywords:Ki(i),sizes:r}})(r);n.push(o),It(()=>(h("core defineTag - add to the queue",{placement:e,preparedTag:r}),io.defineTag(r)))}}),(e=>{var t,n,i;(null===(i=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===i?void 0:i.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},uo=e=>{const t=e.filter(({targetId:e})=>Ui(e)).map(({targetId:e})=>e);t.length&&It(()=>(h("core loadTags",{placementsIdsToLoad:t}),io.loadTags([...t])))},po=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=b.get(),{requestThreshold:r,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),s=null==n?void 0:n.defaultThreshold[i];a&&(h("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:r,deviceDefaultThreshold:s}),yield ei(a,null!=r?r:s)),a&&(null==o?void 0:o.scroll)&&(h("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),vo=e=>e.some(({targetId:e})=>oo.some(t=>e.includes(t))),go=e=>s(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,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=f}={},pageContext:{deviceType:i}}=b.get(),r=dn(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...ui(s,n)]})(i);for(const e of r)vo(e)?(h("core loadAds without lazy loading",{placementsToLoad:e}),yield lo(e)):e.length&&(h("core loadAds with lazy loading",{placementsToLoad:e}),yield ho(e));const{finnBlink:o}=b.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-BPa0_w5G.js");yield e(n)}}),ho=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=b.get(),i=[];if(!t)return h("lazy load is not enabled",{placements:e}),void(yield lo(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{h("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&lo(e),h("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(h("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),mo=()=>s(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=b.getHandlers(),{wallpaper:n,fullscreenScroll:i}=b.get(),r=[];It(()=>{io.onEvent("adRequested",()=>{e.adRequested()}),io.onEvent("adAvailable",r=>s(void 0,void 0,void 0,function*(){var o,a,s,d,l,c;h("core adAvailable start",{placementsAvailable:ro,adObj:r,isFullscreenScrollAd:Se(r),isFinnBlink:De(r.targetId),isNativeAd:Te(r),isMediation:Vi(r),isTakeoverAd:Oe(r),isCollapseAd:Le(r),isWallpaperAd:je(r)});const u=null===(s=null===(a=null===(o=null===window||void 0===window?void 0:window.apntag)||void 0===o?void 0:o.requests)||void 0===a?void 0:a.tags[r.targetId])||void 0===s?void 0:s.adResponse.ads;if(Vi(r)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(r.banner=null===(c=null===(l=u[1])||void 0===l?void 0:l.rtb)||void 0===c?void 0:c.banner),Se(r)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return ht});e(r)}const{widescreenSwitching:p}=b.get();if(Re(r)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield import("./index-BWEU3m94.js");e()}if(Se(r)&&!De(r.targetId)){h("core adAvailable: creating fullscreen scroll container",{targetId:r.targetId,width:r.width,height:r.height,bannerWidth:r.banner&&"object"==typeof r.banner?r.banner.width:r.banner,bannerHeight:r.banner&&"object"==typeof r.banner?r.banner.height:void 0});const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return ht});e(r,i)}if(!Te(r)||Vi(r)||De(r.targetId)||null==t||t(r,b.get()),Oe(r)&&!Le(r)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-D_WaHIAK.js");e(r.targetId),yield t(r)}if(je(r)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return Vt});e(()=>It(()=>window.apntag.showTag(r.targetId)),n),C.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(r)&&C.setData("horseshoe",{isAvailable:!0}),e.adAvailable(r);const v=ro.find(({targetId:e})=>e===r.targetId);v&&(yield po(v,r),ro=ro.filter(e=>e.targetId!==v.targetId)),h("core adAvailable stop",{placementsAvailable:ro,adObj:r,isFullscreenScrollAd:Se(r),isFinnBlink:De(r.targetId),isNativeAd:Te(r),isMediation:Vi(r),isTakeoverAd:Oe(r),isCollapseAd:Le(r),isWallpaperAd:je(r)})})),io.onEvent("adLoaded",n=>s(void 0,void 0,void 0,function*(){const{refreshConfig:i,appearanceConfig:o,wallpaper:a,adScaleConfig:s}=b.get(),d=document.getElementById(n.targetId);if(De(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-Bn0rJup8.js");e(n)}if(r.includes(n.targetId)&&Te(n)&&(null==t||t(n,b.get()),zi({adObj:n})),!r.includes(n.targetId)&&Vi(n)&&r.push(n.targetId),Le(n)&&Ht(n.targetId),Oe(n)){const{modifyTakeoverIframe:e}=yield import("./index-D_WaHIAK.js");e(io,n.targetId)}if((e=>$e(e,Ce.NINESIXTEEN))(n)){const{applyNinesixteenFormat:e}=yield import("./index-BkFrwx_r.js");e(n)}if((e=>$e(e,Ce.FULLSQUARE))(n)){const{applyFullsquareFormat:e}=yield import("./index-BkFrwx_r.js");e(n)}if(ke(n)){const{applyFullwidthFormat:e}=yield import("./index-BkFrwx_r.js");e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),r=null==i?void 0:i.parentElement;if(!r||!i)return;di({adWrapper:r,placementContainer:i});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&ci(i,a,o))})(n,i),(null==o?void 0:o.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(C.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return Vt});e(n.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-Cq1qeKSR.js");e(n),t(n)}e.adLoaded(n),mt(n.targetId),d&&(d.classList.add(ft),(e=>{var t,n;const{pageSectionsSelectors:i}=b.get(),r=null==i?void 0:i.mainFirstColumn,o=r?null===(t=document.querySelector(r))||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"))})(d)),zi({adObj:n}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const i=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;i&&((e,t)=>{const{height:n,width:i,native:r}=e;r?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(n),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:Wi(n)}}))})),io.onEvent("adNoBid",t=>s(void 0,void 0,void 0,function*(){var n;if(Ht(t.targetId),null===(n=b.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-gT_GHXn7.js");yield e(b.get(),t)}if(Oe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return qi});yield e(t)}e.adNoBid(t)})),io.onEvent("adError",(t,n)=>s(void 0,void 0,void 0,function*(){if(Oe(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return qi});yield e(n)}e.adError(t,n)})),io.onEvent("adCollapse",()=>{e.adCollapse()}),io.onEvent("adRequestFailure",t=>s(void 0,void 0,void 0,function*(){Ht(t.targetId),yield $n(b.get(),t),e.adRequestFailure(t)})),io.onEvent("adBadRequest",t=>s(void 0,void 0,void 0,function*(){Ht(t.targetId),yield $n(b.get(),t),e.adBadRequest(t)})),io.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),io.onEvent("adNoBidMediated",t=>s(void 0,void 0,void 0,function*(){yield $n(b.get(),t),e.adNoBidMediated(t)}))})}),yo=(e,t)=>s(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:i,reloadExistingAds:r,renderFinnBlinkPlacements:o,contextSelector:a}=null!=t?t:{};if(i)return Gt(),[];r&&(Gt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{zt(e.id)})),x(null!=e?e:{}),yield so();const{clientSidePlacements:s,serverSidePlacements:d}=Xr(an(a));let l=s;return o&&(l=l.filter(e=>De(e.targetId))),eo(d,b.get()),l.length>0&&(ro=[...ro,...l.map(e=>Object.assign({},e))],gi(l),mi(l),yield go(l)),ro}),fo=(e,t)=>s(void 0,void 0,void 0,function*(){var n;b.set(e),b.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:i,kilkaya:r,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(C.initialize(),window.addEventListener("message",Xn,!1),io=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=io,h("Apn tag is set up on window"),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=b.get();(yield q(e,t,n,"xandr-endpoint"))||io.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){if(bt())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=b.get(),r=yield q(t,n,i,"prebid");(null==e?void 0:e.enabled)&&r&&(yield Ee(null==e?void 0:e.prebidUrl))}),ge(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=b.get();yield Ee(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=b.get();(yield q(t,n,i,"gpt-endpoint"))&&(yield Ee(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=b.get(),{getConsentAsync:o}=R(n,0,r),a=yield o();if(e&&t&&a){if(yield Ee(t),document.querySelector(`.${Yi}`))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(Yi)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),$(),s(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=b.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Ee(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==i?void 0:i.enabled){const{loadNorstat:e}=yield import("./index-B6yq5Gyv.js");yield e()}h("Libraries have been loaded and trackers have been set"),yield mo(),yield so(),h("Page options have been set"),ao(e),h("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=Xr(an());if(ro=l,eo(c,e),gi(ro),mi(ro),yield go(ro),h("Ads has been loaded",ro),Un(e,ro),Ji(ro),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-BPa0_w5G.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-gT_GHXn7.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-DQlbgZ8n.js");t(e.rightColumnSplit)}if(null==r?void 0:r.enabled){const{runKilkaya:t}=yield import("./index-BJji2ATp.js");yield t(e)}}),wo=(e,t)=>s(void 0,void 0,void 0,function*(){yield((e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{initConsentManager:r,getConsentAsync:o}=R(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),a=yield no(e);yield Rn(),yield Qi(r),yield Qi(o),h("TCF resolved successfully"),yield fo(a,t),h("Run function resolved successfully")}))(e,t)}),bo=(e,t,n,i)=>{var r;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:E,customBody5:C,customIcon1:I,customIcon2:A,customDisplayUrl1:S}=e,T=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:T(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return T(t?I:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=E?E:"",customBody5:null!=C?C:"",logo2:T(A),previewVideoSrc:null!=S?S:""},t)},xo=(e,t)=>{const n=(i=j,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(j),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Eo=(e,t,n,i)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:o}=t,a=i&&Object.values(r).includes(i);n&&a&&Hr(i,e,zr.NATIVE_AD,o)})(o,n),i())},Co=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=xo(e.targetId,l))&&void 0!==i?i:c,p=dt[t.language||N.NO],v=bo(s,p,d,t);return(s.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);Eo(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Wr(e,t)})},Io=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const a=e.getOptions(null!=n?n:{});Co(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},Ao=()=>{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},So=e=>{const{siteSpecificConfig:t}=b.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class To{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(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 s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const ko=9826;class Oo{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=b.get();if(t){return{"aa-sch-supply_type":`app_${e===Jt?"phone":Qt}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(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 s(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(()=>{const e=bi("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield xi(b.get())})}isTrackingForbidden(){return s(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=ko}={}}=b.get();return"true"===O("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=b.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=b.get(),{getConsentAsync:i}=R(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=b.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 Po=new Oo;function jo(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),r=hn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Po.prepare.bind(Po);const Lo=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function No(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Lo.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Do extends Oo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=b.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=b.get(),{OS:n,isHybridApp:i}=jo(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return No(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=b.get(),r=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":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const Mo=new class extends Do{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a,s;const d=b.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new To;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(K(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(me()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},he(N.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},_o=Mo.prepare.bind(Mo);class Ro extends Oo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=b.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return{width:e||n||0,height:t||i||0}}(),t={width:null!==(i=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==i?i:0,height:null!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(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}}=b.get(),{appMode:t,mobileOS:n}=jo(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:i}}=b.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"===i?"article":"front"}`}}}const qo=new class extends Ro{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a;const d=b.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new To;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(K(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>s(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(me()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===bi("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=u.build(),v=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},he(N.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Fo=qo.prepare.bind(qo);at(".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 $o=()=>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 Bo="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==",Uo="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";at(".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 Vo=()=>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:Bo,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:Uo,width:"54",height:"54"})]}),{})]});at(".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 Ho=()=>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:Bo,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:Uo,width:"54",height:"54"})]}),{})]});at(".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 zo=n=>t("div",{className:"advertory-takeover-wrapper",children:[e($o,{}),e(Vo,{}),e(Ho,{}),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`})]})]}),Wo={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=b.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=b.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(r,l),u=(e=>{const{pageContext:{countryCode:t}}=b.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${W(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in Ae)||window.innerWidth>=Ae[e]);return{[r]:i?a:o}})(e),p=(e=>{const{pageContext:{countryCode:t}}=b.get(),n=`${W(t)}-targetid`;return e?{[n]:[e]}:{}})(i),v=(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}})(c),g=Ao(),h=(e=>So(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(r),m=((e,t)=>So(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(r,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new To).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==s?void 0:s.tag)||void 0===t?void 0:t.reloadKeywords,{[`${W(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=b.get();return yield t===N.SE?Fo(e):_o(e)}),siteEvents:i},Ko=((e,t)=>({init:n=>wo(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:yo,getVideoPPIDs:be,createInitNativeAd:Io,getVideoAdsConfig:Rr}))(Wo,o);export{zr as A,yn as B,Wi as C,dt as D,$e as E,rn as F,Nn as G,Bn as H,fn as I,$n as J,Un as K,fe as L,N as M,Mn as N,Q as O,Dn as P,In as Q,zt as R,Ce as S,Ei as T,Ee as U,r as V,Ko as W,zo as X,s as _,xe as a,Ht as b,b as c,a as d,qn as e,Hr as f,Nt as g,q as h,at as i,vi as j,Mi as k,h as l,Ri as m,Li as n,Ni as o,_i as p,We as q,wt as r,ei as s,Ct as t,Zn as u,zi as v,Se as w,vt as x,Te as y,mn as z};
@@ -1 +1 @@
1
- import{c as e,r as t,f as r,A as s,v as n,w as a,x as i,y as o}from"./_auto-entry_tv4-BIyw3FfG.js";import"react/jsx-runtime";const l=(a,i)=>{const{siteSpecificConfig:{publisherClassName:o}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${a}`);if(!c)return;if(c.classList.add(t),!o)return;r(o,c,s.FINN_BLINK,null!=i?i:l);n({preferredTestIdData:{targetId:a,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();a(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 n=`-${r}`;s.classList.remove(`advertory${n}-finn-blink`),s.classList.remove(`advertory${n}-finn-blink-wrapper`)};export{c as displaySpecialFormatsForFinnFallback,l as finnBlinkLoaded,u as xandrAdLoaded};
1
+ import{c as e,r as t,f as r,A as s,v as n,w as a,x as i,y as o}from"./_auto-entry_tv4-CQemRCV3.js";import"react/jsx-runtime";const l=(a,i)=>{const{siteSpecificConfig:{publisherClassName:o}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${a}`);if(!c)return;if(c.classList.add(t),!o)return;r(o,c,s.FINN_BLINK,null!=i?i:l);n({preferredTestIdData:{targetId:a,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();a(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 n=`-${r}`;s.classList.remove(`advertory${n}-finn-blink`),s.classList.remove(`advertory${n}-finn-blink-wrapper`)};export{c as displaySpecialFormatsForFinnFallback,l as finnBlinkLoaded,u as xandrAdLoaded};
@@ -1 +1 @@
1
- import{_ as t,c as e,h as o,L as n,M as s}from"./_auto-entry_tv4-BIyw3FfG.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:c}=e.get(),r=yield o(c,a,d,"norstat");if(!s||a||!r)return;const m=n(d);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
1
+ import{_ as t,c as e,h as o,L as n,M as s}from"./_auto-entry_tv4-CQemRCV3.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:c}=e.get(),r=yield o(c,a,d,"norstat");if(!s||a||!r)return;const m=n(d);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
@@ -1 +1 @@
1
- import{_ as e,N as t,O as n,P as a,Q as r,l as i,R as l,U as s,h as o,V as c}from"./_auto-entry_tv4-BIyw3FfG.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",P=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),E=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield P(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield E();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const O=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},j=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{O as Kilkaya,j as runKilkaya};
1
+ import{_ as e,N as t,O as n,P as a,Q as r,l as i,R as l,U as s,h as o,V as c}from"./_auto-entry_tv4-CQemRCV3.js";import{jsxs as d,jsx as u}from"react/jsx-runtime";class p{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class h extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const m="[data-k5a-teaser-analytics]",y=(e,t,n)=>{const a=document.querySelectorAll("k5a-stream");if(!a.length)return;const r=new h(e,t,n),i=new WeakMap,l=e=>{const t=i.get(e);t&&(t.disconnect(),i.delete(e))},s=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(m);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(r.trackContentView(n),t.unobserve(e.target),l(n)):((e,t)=>{if(i.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(m);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(r.trackContentView(e),t.unobserve(e),l(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),i.set(e,n)})(n,t)})},{threshold:.5});a.forEach(e=>{s.observe(e),e.addEventListener("click",()=>r.trackContentClick(e))})},k=/^glci_/,f="gender_",b="geo_",w="male",I="female",P=()=>e(void 0,void 0,void 0,function*(){try{const r=yield(n=500,e(void 0,void 0,void 0,function*(){return Promise.race([a(),new Promise(e=>setTimeout(()=>e(void 0),n))])})),i=new t(r),l=yield i.getIdentityUser(),{gender:s}=null!=l?l:{};return s===w||s===I?`${f}${s}`:void 0}catch(e){return}var n}),E=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield P(),a=(()=>{const e=n().map(e=>`${b}${e.replace(k,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),a&&e.push(...a),e});class T{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const a={[c.VG]:new p,[c.E24]:new T,"no-aftenposten":new S,[c.BT]:new A,"no-bergenstidende":new A,[c.SA]:new K,"no-stavangeraftenblad":new K}[n]||new v;y(e.instance,a,t)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield E();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";l(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield s(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const s=yield o(a,r,i,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const O=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:e,"slot-tag":t}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},j=t=>e(void 0,void 0,void 0,function*(){const e=new C;yield e.run(t)});export{O as Kilkaya,j as runKilkaya};
@@ -1 +1 @@
1
- import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_tv4-BIyw3FfG.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-C0sezdBn.js";import"react/jsx-runtime";n('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const y={Blink:"Blink"},h=new Map,g=n=>{var e;if(!h.has(n)){const e=import(/* webpackIgnore: true */n).then(n=>(n=>{for(const[e,i]of Object.entries(y)){const t=n[e];null!=t&&(window[i]=t)}})(n)).catch(e=>{throw h.delete(n),e});h.set(n,e)}return null!==(e=h.get(n))&&void 0!==e?e:Promise.resolve()},b="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",k=n=>{var e,i;const t=document.querySelector(`[id^="${n}"]`);return null!==(i=null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.finnBlinkId)&&void 0!==i?i:n},$=(n,e)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==e?void 0:e.enabled)||(n=>{var e;const i=document.querySelector(`[id^="${n}"]`);return!!(null===(e=null==i?void 0:i.dataset)||void 0===e?void 0:e.noBidAd)})(n);if(!o||!t)return null;const{height:r,requireImage:d,position:l,offset:a}=(null==e?void 0:e.sdkPayload)||{};return{selector:`#${k(n)}`,enabled:o,position:null!=l?l:n,height:null!=r?r:100,offset:null!=a?a:200,requireImage:d,advertoryTheme:null==e?void 0:e.advertoryTheme}},w=(n,a,s)=>e(void 0,void 0,void 0,function*(){const{placements:c,pageContext:{deviceType:u},appearanceConfig:f}=i.get();t(`rendering finn blink ad for ${n}`);const v=o(n),h=c[u].find(n=>n.targetId===v),g=$(n,null==h?void 0:h.finnBlink);if(!(null==g?void 0:g.enabled))return t(`Finn blink is not enabled on placement: ${n}`),s&&s(n),void p(n);if((n=>{var e;const i=k(n),t=document.querySelector(`[id^="${i}"]`);return!!(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains("finn"))})(n))return void t(`Finn blink already loaded ${n}`);const{publisher:b,countryCode:w,finnBlink:C}=a,{sdkPayload:{channel:x}={}}=null!=C?C:{},I=null!=x?x:`${b}.${w}`,j="dark"===(null==f?void 0:f.theme)?"dark":"light";try{const n=yield r();yield(B=Object.assign(Object.assign({},g),{channel:I,userId:n,theme:j}),e(void 0,void 0,void 0,function*(){const{userId:n,theme:e}=B,i=l(B,["userId","theme"]),t=window[y.Blink];if(!t)return;const o=new t({remote:"https://www.finn.no/distribution-front/external/carousel",userId:n,theme:e});yield o.inject(Object.assign({},i))})),m(g.selector.replace("#",""),g.advertoryTheme)}catch(e){t(`Finn blink error ${e}`),s&&s(n),!s&&d(n),p(n)}var B}),C=()=>e(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{isMobileApp:e,countryCode:o}}=i.get();return!!(yield a(n,e,o,"finn-blink"))||(t("Skip loading finn blink ad due to missing TCF consent."),!1)}),x=(n,o,r,l)=>e(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:e}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${n}`),!(yield C())||e)return r&&r(n),p(n),void(!r&&d(n));try{yield g(b)}catch(n){console.error(n)}yield w(n,o,r),l&&l()}),I=(n,e)=>{var i;(t(`Appending ${e.id} after ${n.id}`),n.parentElement&&(i=n.parentElement,!Array.from(i.children).some(n=>n.classList.contains("advertory-finn-blink-wrapper"))))?(n.parentElement.style.display="none",n.parentElement.insertAdjacentElement("afterend",e)):t(`Cannot perform afterend on: ${n.id}`)},j=(n,o)=>e(void 0,void 0,void 0,function*(){var e,r;if(!o)return;const{replacementConfig:d}=o,l=null===(e=null==d?void 0:d.adsToReplace)||void 0===e?void 0:e[n],a=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[n];s()&&l&&a&&o.enabled?(yield C())&&(yield g(b),l.forEach(([n,e])=>{const o=document.querySelector(`[id^="${n}"]`);if(!o)return;const r=(n=>{const{siteSpecificConfig:{publisherClassName:e}={}}=i.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=n,o.appendChild(r),u(e,r,f.FINN_BLINK),t(`Creating blink container for: ${n}`),o})(e);(n=>{t(`Hiding old ad container: ${n.id}`),n.style.setProperty("display","none","important")})(o),I(o,r),o.dataset.finnBlinkId=e,c().withFullAdsChain(n)})):t(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),B=n=>document.querySelector(`#${n}`),A=n=>e(void 0,void 0,void 0,function*(){if(!n.length)return;const{appearanceConfig:e,pageContext:{deviceType:t}}=i.get(),o=null==e?void 0:e.defaultThreshold[t];for(const e of n){const{requestThreshold:n,targetId:i}=e,t=B(i);t&&(yield v(t,null!=n?n:o))}});export{A as handleFinnBlinkOnlyPlacements,x as loadFinnBlinkAd,j as replaceAdsWithFinnBlink};
1
+ import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_tv4-CQemRCV3.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-Bn0rJup8.js";import"react/jsx-runtime";n('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const y={Blink:"Blink"},h=new Map,g=n=>{var e;if(!h.has(n)){const e=import(/* webpackIgnore: true */n).then(n=>(n=>{for(const[e,i]of Object.entries(y)){const t=n[e];null!=t&&(window[i]=t)}})(n)).catch(e=>{throw h.delete(n),e});h.set(n,e)}return null!==(e=h.get(n))&&void 0!==e?e:Promise.resolve()},b="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",k=n=>{var e,i;const t=document.querySelector(`[id^="${n}"]`);return null!==(i=null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.finnBlinkId)&&void 0!==i?i:n},$=(n,e)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==e?void 0:e.enabled)||(n=>{var e;const i=document.querySelector(`[id^="${n}"]`);return!!(null===(e=null==i?void 0:i.dataset)||void 0===e?void 0:e.noBidAd)})(n);if(!o||!t)return null;const{height:r,requireImage:d,position:l,offset:a}=(null==e?void 0:e.sdkPayload)||{};return{selector:`#${k(n)}`,enabled:o,position:null!=l?l:n,height:null!=r?r:100,offset:null!=a?a:200,requireImage:d,advertoryTheme:null==e?void 0:e.advertoryTheme}},w=(n,a,s)=>e(void 0,void 0,void 0,function*(){const{placements:c,pageContext:{deviceType:u},appearanceConfig:f}=i.get();t(`rendering finn blink ad for ${n}`);const v=o(n),h=c[u].find(n=>n.targetId===v),g=$(n,null==h?void 0:h.finnBlink);if(!(null==g?void 0:g.enabled))return t(`Finn blink is not enabled on placement: ${n}`),s&&s(n),void p(n);if((n=>{var e;const i=k(n),t=document.querySelector(`[id^="${i}"]`);return!!(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains("finn"))})(n))return void t(`Finn blink already loaded ${n}`);const{publisher:b,countryCode:w,finnBlink:C}=a,{sdkPayload:{channel:x}={}}=null!=C?C:{},I=null!=x?x:`${b}.${w}`,j="dark"===(null==f?void 0:f.theme)?"dark":"light";try{const n=yield r();yield(B=Object.assign(Object.assign({},g),{channel:I,userId:n,theme:j}),e(void 0,void 0,void 0,function*(){const{userId:n,theme:e}=B,i=l(B,["userId","theme"]),t=window[y.Blink];if(!t)return;const o=new t({remote:"https://www.finn.no/distribution-front/external/carousel",userId:n,theme:e});yield o.inject(Object.assign({},i))})),m(g.selector.replace("#",""),g.advertoryTheme)}catch(e){t(`Finn blink error ${e}`),s&&s(n),!s&&d(n),p(n)}var B}),C=()=>e(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{isMobileApp:e,countryCode:o}}=i.get();return!!(yield a(n,e,o,"finn-blink"))||(t("Skip loading finn blink ad due to missing TCF consent."),!1)}),x=(n,o,r,l)=>e(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:e}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${n}`),!(yield C())||e)return r&&r(n),p(n),void(!r&&d(n));try{yield g(b)}catch(n){console.error(n)}yield w(n,o,r),l&&l()}),I=(n,e)=>{var i;(t(`Appending ${e.id} after ${n.id}`),n.parentElement&&(i=n.parentElement,!Array.from(i.children).some(n=>n.classList.contains("advertory-finn-blink-wrapper"))))?(n.parentElement.style.display="none",n.parentElement.insertAdjacentElement("afterend",e)):t(`Cannot perform afterend on: ${n.id}`)},j=(n,o)=>e(void 0,void 0,void 0,function*(){var e,r;if(!o)return;const{replacementConfig:d}=o,l=null===(e=null==d?void 0:d.adsToReplace)||void 0===e?void 0:e[n],a=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[n];s()&&l&&a&&o.enabled?(yield C())&&(yield g(b),l.forEach(([n,e])=>{const o=document.querySelector(`[id^="${n}"]`);if(!o)return;const r=(n=>{const{siteSpecificConfig:{publisherClassName:e}={}}=i.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=n,o.appendChild(r),u(e,r,f.FINN_BLINK),t(`Creating blink container for: ${n}`),o})(e);(n=>{t(`Hiding old ad container: ${n.id}`),n.style.setProperty("display","none","important")})(o),I(o,r),o.dataset.finnBlinkId=e,c().withFullAdsChain(n)})):t(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),B=n=>document.querySelector(`#${n}`),A=n=>e(void 0,void 0,void 0,function*(){if(!n.length)return;const{appearanceConfig:e,pageContext:{deviceType:t}}=i.get(),o=null==e?void 0:e.defaultThreshold[t];for(const e of n){const{requestThreshold:n,targetId:i}=e,t=B(i);t&&(yield v(t,null!=n?n:o))}});export{A as handleFinnBlinkOnlyPlacements,x as loadFinnBlinkAd,j as replaceAdsWithFinnBlink};
@@ -1 +1 @@
1
- import{c as e,j as t,t as o}from"./_auto-entry_tv4-BIyw3FfG.js";import"react/jsx-runtime";const r=1e4,n=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let s;const i=()=>{const{widescreenSwitching:t}=e.get(),{enabled:i,options:{rotationInterval:a=r,widescreenIdPrefix:c}={}}=null!=t?t:{};if(!i)return;const l=((t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();return o?Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`))):[]})(c);let y=0,p=Date.now(),d=n(l);if(!l.length)return;s&&window.removeEventListener("scroll",s);const m=(e,t,o)=>{e.forEach(e=>{e&&e.style.setProperty(t,o)})},w=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(l);const u=o(()=>{d||(d=n(l)||d,p=Date.now());Date.now()-p>=a&&((()=>{const e=w(y),t=l.map(e=>e[y]),o=l.map(t=>t[e]);m(t,"opacity","0"),setTimeout(()=>{m(t,"display","none"),m(o,"opacity","0"),m(o,"display","block"),setTimeout(()=>{m(o,"opacity","1")},450)},450)})(),y=w(y),p=Date.now())},1e3);s=u,window.addEventListener("scroll",u)};export{i as initWidescreenSwitching};
1
+ import{c as e,j as t,t as o}from"./_auto-entry_tv4-CQemRCV3.js";import"react/jsx-runtime";const r=1e4,n=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let s;const i=()=>{const{widescreenSwitching:t}=e.get(),{enabled:i,options:{rotationInterval:a=r,widescreenIdPrefix:c}={}}=null!=t?t:{};if(!i)return;const l=((t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();return o?Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`))):[]})(c);let y=0,p=Date.now(),d=n(l);if(!l.length)return;s&&window.removeEventListener("scroll",s);const m=(e,t,o)=>{e.forEach(e=>{e&&e.style.setProperty(t,o)})},w=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(l);const u=o(()=>{d||(d=n(l)||d,p=Date.now());Date.now()-p>=a&&((()=>{const e=w(y),t=l.map(e=>e[y]),o=l.map(t=>t[e]);m(t,"opacity","0"),setTimeout(()=>{m(t,"display","none"),m(o,"opacity","0"),m(o,"display","block"),setTimeout(()=>{m(o,"opacity","1")},450)},450)})(),y=w(y),p=Date.now())},1e3);s=u,window.addEventListener("scroll",u)};export{i as initWidescreenSwitching};
@@ -1 +1 @@
1
- import{c as t,z as e}from"./_auto-entry_tv4-BIyw3FfG.js";import"react/jsx-runtime";const n=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=(r,l)=>{var i,s;const a=document.querySelector(`#${r.targetId}`),{siteSpecificConfig:{publisherClassName:o,fullWidthFormatClassName:d}={},fullWidth:f,pageContext:{deviceType:u}}=t.get();if(!a)return null;const c=a.parentElement;if(a.style.width=e(u)?"100vw":"100%",a.style.position="relative",c&&(c.style.width=e(u)?"100vw":"100%",c.style.position="relative"),o&&d){const t=`advertory-${o}-${d}`;a.classList.add(`${t}__${l}`),null==c||c.classList.add(`${t}-wrapper__${l}`)}const p=null===(s=null===(i=null==f?void 0:f.options)||void 0===i?void 0:i.styles)||void 0===s?void 0:s[u],y=(null==f?void 0:f.enabled)&&p;return!y&&c&&e(u)&&(c.style.left="50%",c.style.marginLeft="-50vw"),y&&p.adContainer&&n(a,p.adContainer),y&&p.adContainerWrapper&&c&&n(c,p.adContainerWrapper),a},l=(t,e,n,l)=>{const i=r(t,l);if(!i)return;const s=i.querySelector("iframe"),a=null==s?void 0:s.parentElement;if(!s||!a)return;const o=i.offsetWidth,d=o/t.width;a.style.transform=`scale(${d})`,a.style.transformOrigin="left top";const f=Math.round(o/e*n);i.style.height=`${f}px`},i=n=>{const l=r(n,"fullwidth-ad");if(!l)return;const i=l.querySelector("iframe");if(!i)return;const{deviceType:s}=t.get().pageContext;i.style.width=e(s)?"100vw":"100%",(null==i?void 0:i.parentElement)&&(i.parentElement.style.width=e(s)?"100vw":"100%")},s=t=>{l(t,1080,1920,"ninesixteen-ad")},a=t=>{l(t,1080,1080,"fullsquare-ad")};export{a as applyFullsquareFormat,i as applyFullwidthFormat,s as applyNinesixteenFormat};
1
+ import{c as t,z as e}from"./_auto-entry_tv4-CQemRCV3.js";import"react/jsx-runtime";const n=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=(r,l)=>{var i,s;const a=document.querySelector(`#${r.targetId}`),{siteSpecificConfig:{publisherClassName:o,fullWidthFormatClassName:d}={},fullWidth:f,pageContext:{deviceType:u}}=t.get();if(!a)return null;const c=a.parentElement;if(a.style.width=e(u)?"100vw":"100%",a.style.position="relative",c&&(c.style.width=e(u)?"100vw":"100%",c.style.position="relative"),o&&d){const t=`advertory-${o}-${d}`;a.classList.add(`${t}__${l}`),null==c||c.classList.add(`${t}-wrapper__${l}`)}const p=null===(s=null===(i=null==f?void 0:f.options)||void 0===i?void 0:i.styles)||void 0===s?void 0:s[u],y=(null==f?void 0:f.enabled)&&p;return!y&&c&&e(u)&&(c.style.left="50%",c.style.marginLeft="-50vw"),y&&p.adContainer&&n(a,p.adContainer),y&&p.adContainerWrapper&&c&&n(c,p.adContainerWrapper),a},l=(t,e,n,l)=>{const i=r(t,l);if(!i)return;const s=i.querySelector("iframe"),a=null==s?void 0:s.parentElement;if(!s||!a)return;const o=i.offsetWidth,d=o/t.width;a.style.transform=`scale(${d})`,a.style.transformOrigin="left top";const f=Math.round(o/e*n);i.style.height=`${f}px`},i=n=>{const l=r(n,"fullwidth-ad");if(!l)return;const i=l.querySelector("iframe");if(!i)return;const{deviceType:s}=t.get().pageContext;i.style.width=e(s)?"100vw":"100%",(null==i?void 0:i.parentElement)&&(i.parentElement.style.width=e(s)?"100vw":"100%")},s=t=>{l(t,1080,1920,"ninesixteen-ad")},a=t=>{l(t,1080,1080,"fullsquare-ad")};export{a as applyFullsquareFormat,i as applyFullwidthFormat,s as applyNinesixteenFormat};
@@ -1 +1 @@
1
- import{I as e,B as t,C as n,c as r,E as o,S as i,F as d}from"./_auto-entry_tv4-BIyw3FfG.js";import"react/jsx-runtime";const s=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},l=(e,t=window.screen.width,n,r)=>{const o=s(e,t);if(n&&n(e,o),r)return void r(e);const i=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);i&&(i.style.transform=`scale(${o})`,i.style.transformOrigin="left top")},c=(e,t)=>{if(e&&t)return t/e},a=new Map;a.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),a.set("panorama",{scale:.79,transformOrigin:"center center"}),a.set("outstream",{scale:.79,transformOrigin:"center center"}),a.set("integration",{scale:.79,transformOrigin:"center center"}),a.set("toppanorama",{scale:.8,transformOrigin:"left center"});const u=r=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>e&&(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.clientWidth)<=t))return;var o,i;const d=n(r),s=a.get(d),l=document.querySelector(`#${r.targetId}`);if(!l||!s)return;if(l.style.transformOrigin=s.transformOrigin,l.style.transform=`scale(${s.scale})`,!(null==s?void 0:s.cogwheelAdjust))return;const c=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==l?void 0:l.offsetWidth;c&&"number"==typeof u&&!isNaN(u)&&c.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,s,c,a,u;const{adScaleConfig:f,pageContext:{deviceType:m}}=r.get();if(!(null==f?void 0:f.enabled))return;if(o(e,i.ANY_FULLSCREEN))return;const v=null!==(t=f.adsToBeScaled[m])&&void 0!==t?t:[],g=d(e.targetId.split("-")[0]);if(!v.includes(g))return;const w=null!==(s=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==s?s:0,p=document.getElementById(e.targetId),y=null!==(c=null==p?void 0:p.offsetWidth)&&void 0!==c?c:window.screen.width,h=null!==(u=null===(a=null==p?void 0:p.parentElement)||void 0===a?void 0:a.offsetWidth)&&void 0!==u?u:window.screen.width;l(e,(y<h?y:h)-w)};export{s as calculateScaleFactor,c as getAspectRatio,l as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
1
+ import{I as e,B as t,C as n,c as r,E as o,S as i,F as d}from"./_auto-entry_tv4-CQemRCV3.js";import"react/jsx-runtime";const s=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},l=(e,t=window.screen.width,n,r)=>{const o=s(e,t);if(n&&n(e,o),r)return void r(e);const i=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);i&&(i.style.transform=`scale(${o})`,i.style.transformOrigin="left top")},c=(e,t)=>{if(e&&t)return t/e},a=new Map;a.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),a.set("panorama",{scale:.79,transformOrigin:"center center"}),a.set("outstream",{scale:.79,transformOrigin:"center center"}),a.set("integration",{scale:.79,transformOrigin:"center center"}),a.set("toppanorama",{scale:.8,transformOrigin:"left center"});const u=r=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>e&&(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.clientWidth)<=t))return;var o,i;const d=n(r),s=a.get(d),l=document.querySelector(`#${r.targetId}`);if(!l||!s)return;if(l.style.transformOrigin=s.transformOrigin,l.style.transform=`scale(${s.scale})`,!(null==s?void 0:s.cogwheelAdjust))return;const c=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==l?void 0:l.offsetWidth;c&&"number"==typeof u&&!isNaN(u)&&c.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,s,c,a,u;const{adScaleConfig:f,pageContext:{deviceType:m}}=r.get();if(!(null==f?void 0:f.enabled))return;if(o(e,i.ANY_FULLSCREEN))return;const v=null!==(t=f.adsToBeScaled[m])&&void 0!==t?t:[],g=d(e.targetId.split("-")[0]);if(!v.includes(g))return;const w=null!==(s=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==s?s:0,p=document.getElementById(e.targetId),y=null!==(c=null==p?void 0:p.offsetWidth)&&void 0!==c?c:window.screen.width,h=null!==(u=null===(a=null==p?void 0:p.parentElement)||void 0===a?void 0:a.offsetWidth)&&void 0!==u?u:window.screen.width;l(e,(y<h?y:h)-w)};export{s as calculateScaleFactor,c as getAspectRatio,l as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
@@ -1 +1 @@
1
- import{T as e,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as c,q as d}from"./_auto-entry_svd-EeywsUFy.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,k as t,D as o,c as r,m as l,_ as s,n as a,o as n,p as c,q as d}from"./_auto-entry_tv4-CQemRCV3.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
- export{G as getDrEditionManager,H as handleDrEdition,J as handleDrEditionBackfill,K as handleDrEditionBackfillOnAdblock}from"./_auto-entry_tv4-BIyw3FfG.js";import{jsxs as a,jsx as t}from"react/jsx-runtime";const e=({editionName:e,fallbackTargetId:i,children:n,pulseData:r,htmlAttributes:d})=>{const l=(a,t)=>{const e={};if(!a)return e;for(const[i,n]of Object.entries(a)){e[t?`${t}-${i}`:i]=String(n)}return e},s=l(r,"data-pulse"),o=l(d,"data");return a("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":e},s,o,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:n})]}))};export{e as DrEdition};
1
+ export{G as getDrEditionManager,H as handleDrEdition,J as handleDrEditionBackfill,K as handleDrEditionBackfillOnAdblock}from"./_auto-entry_tv4-CQemRCV3.js";import{jsxs as a,jsx as t}from"react/jsx-runtime";const e=({editionName:e,fallbackTargetId:i,children:n,pulseData:r,htmlAttributes:d})=>{const l=(a,t)=>{const e={};if(!a)return e;for(const[i,n]of Object.entries(a)){e[t?`${t}-${i}`:i]=String(n)}return e},s=l(r,"data-pulse"),o=l(d,"data");return a("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":e},s,o,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:n})]}))};export{e as DrEdition};