@schibsted/advertory 3.4.15 → 3.6.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 +11 -27
  2. package/ad-native/cjs/index.js +1 -1
  3. package/ad-native/es/index.d.ts +11 -27
  4. package/ad-native/es/index.js +1 -1
  5. package/aftenposten/cjs/index.d.ts +11 -27
  6. package/aftenposten/cjs/index.js +1 -1
  7. package/aftenposten/es/_auto-entry_aftenposten-DRy582No.js +1 -0
  8. package/aftenposten/es/{events-Cb8ZEr-r.js → events-C9C7urqL.js} +1 -1
  9. package/aftenposten/es/{index-CvduAHOF.js → index-BkS_SJlJ.js} +1 -1
  10. package/aftenposten/es/{index-DrbIFHAs.js → index-BnqSaT1c.js} +1 -1
  11. package/aftenposten/es/{index-B4bz8CCj.js → index-C3FOilzo.js} +1 -1
  12. package/aftenposten/es/{index-CRKDx4IU.js → index-CydB8YIr.js} +1 -1
  13. package/aftenposten/es/{index-nljkI4XT.js → index-DORsiGYv.js} +1 -1
  14. package/aftenposten/es/{index-COgtK-0i.js → index-DeI8d-uV.js} +1 -1
  15. package/aftenposten/es/{index-BZKa2phF.js → index-DwPGsi8k.js} +1 -1
  16. package/aftenposten/es/{index-C8IZW4aQ.js → index-cQE0VJo1.js} +1 -1
  17. package/aftenposten/es/index.d.ts +11 -27
  18. package/aftenposten/es/index.js +1 -1
  19. package/aftenposten/es/{styles-C3XDawuq.js → styles-80njiXh8.js} +1 -1
  20. package/aftenposten/es/{styles-CsRldTGJ.js → styles-9muMJKJn.js} +1 -1
  21. package/aftenposten/es/{styles-DNTucOMf.js → styles-B0TjAFsC.js} +1 -1
  22. package/aftenposten/es/{styles-CXi0dDQe.js → styles-BqDARxy2.js} +1 -1
  23. package/aftenposten/es/{styles-C6LOx4jX.js → styles-C-mBJ4KF.js} +1 -1
  24. package/aftenposten/es/{styles-CsPtl2d3.js → styles-CH01dhZI.js} +1 -1
  25. package/aftenposten/es/{styles-BjjOtU6H.js → styles-CQkWKgtJ.js} +1 -1
  26. package/aftenposten/es/{styles-DZPQAqmk.js → styles-CkwzAwsB.js} +1 -1
  27. package/aftenposten/es/{styles-B3fOXOgO.js → styles-DwsygbnU.js} +1 -1
  28. package/aftenposten/es/{styles-BvTK24RF.js → styles-s1wxb2F_.js} +1 -1
  29. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CXrYo3kj.js +1 -0
  30. package/aftenpostenv2/es/{events-Nx0Felml.js → events-ByEM8ZeV.js} +1 -1
  31. package/aftenpostenv2/es/{index-LSZ2lDLm.js → index-B0U7ps9y.js} +1 -1
  32. package/aftenpostenv2/es/{index-blht3J8U.js → index-BZciKqap.js} +1 -1
  33. package/aftenpostenv2/es/{index-DtvvyzxJ.js → index-CxmBWC8z.js} +1 -1
  34. package/aftenpostenv2/es/{index-D-q-z_MZ.js → index-Dp17754Z.js} +1 -1
  35. package/aftenpostenv2/es/{index-C9uuMmrN.js → index-DzW5W5w1.js} +1 -1
  36. package/aftenpostenv2/es/{index-CEIx7bMj.js → index-T22foY0A.js} +1 -1
  37. package/aftenpostenv2/es/{index-D7XG-zSH.js → index-TeY0tmGM.js} +1 -1
  38. package/aftenpostenv2/es/{index-Bs1Fnz_w.js → index-Vv6YGuEQ.js} +1 -1
  39. package/aftenpostenv2/es/index.d.ts +11 -27
  40. package/aftenpostenv2/es/index.js +1 -1
  41. package/aftenpostenv2/es/{styles-Da-RIIFj.js → styles-2437hpxv.js} +1 -1
  42. package/aftenpostenv2/es/{styles-30tU5XOe.js → styles-B9yGGUxs.js} +1 -1
  43. package/aftenpostenv2/es/{styles-CAROVdM5.js → styles-CE4ljrOq.js} +1 -1
  44. package/aftenpostenv2/es/{styles-BOzkX4Na.js → styles-CFIY_fYs.js} +1 -1
  45. package/aftenpostenv2/es/{styles-DtIWlT8d.js → styles-C_hqfq3h.js} +1 -1
  46. package/aftenpostenv2/es/{styles-B5Xuy_0z.js → styles-CwOFrT-m.js} +1 -1
  47. package/aftenpostenv2/es/{styles-1HrTh55e.js → styles-DVb70HkY.js} +1 -1
  48. package/aftenpostenv2/es/{styles-BcgROOBb.js → styles-Dv3iE5E9.js} +1 -1
  49. package/aftenpostenv2/es/{styles-CbIK_wdC.js → styles-U1MbgnO8.js} +1 -1
  50. package/aftenpostenv2/es/{styles-376delwW.js → styles-gvMqFZ6Z.js} +1 -1
  51. package/aftonbladet/cjs/index.d.ts +11 -27
  52. package/aftonbladet/cjs/index.js +1 -1
  53. package/aftonbladet/es/_auto-entry_aftonbladet-B5rZbU4l.js +1 -0
  54. package/aftonbladet/es/{events-CSMatn8N.js → events-BbyNwvht.js} +1 -1
  55. package/aftonbladet/es/{index-hsYM9qwu.js → index-B2yfV01q.js} +1 -1
  56. package/aftonbladet/es/{index-F87c-u1X.js → index-BG8DyJ9Q.js} +1 -1
  57. package/aftonbladet/es/{index-DSsB4HO-.js → index-BdoEltYH.js} +1 -1
  58. package/aftonbladet/es/{index-CkiFY6yp.js → index-BjfZKgVs.js} +1 -1
  59. package/aftonbladet/es/{index-CPXCkATY.js → index-CYq72Epp.js} +1 -1
  60. package/aftonbladet/es/{index-BuTjFYp3.js → index-D-SooPyf.js} +1 -1
  61. package/aftonbladet/es/{index-A-l_WthM.js → index-D7OZ0aH_.js} +1 -1
  62. package/aftonbladet/es/{index-AMWEkhDq.js → index-DJjSX67L.js} +1 -1
  63. package/aftonbladet/es/index.d.ts +11 -27
  64. package/aftonbladet/es/index.js +1 -1
  65. package/aftonbladet/es/{styles-5yeT3zws.js → styles-BGJhp99G.js} +1 -1
  66. package/aftonbladet/es/{styles-B3s9Zc7l.js → styles-BivTRwAi.js} +1 -1
  67. package/aftonbladet/es/{styles-25ykGn-l.js → styles-CGvjrVhR.js} +1 -1
  68. package/aftonbladet/es/{styles-33KHYuDm.js → styles-COq02SIe.js} +1 -1
  69. package/aftonbladet/es/{styles-CxwRgQr2.js → styles-D4zAPI1T.js} +1 -1
  70. package/aftonbladet/es/{styles-B_-dEE3N.js → styles-_AmB2_Ug.js} +1 -1
  71. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-yMuDMPYm.js +1 -0
  72. package/aftonbladetv2/es/{events-D8N8wanf.js → events-Be3bdEHm.js} +1 -1
  73. package/aftonbladetv2/es/{index-D4vzesOB.js → index-8t-IGjUw.js} +1 -1
  74. package/aftonbladetv2/es/{index-CJL1SnyM.js → index-BjpGqbjh.js} +1 -1
  75. package/aftonbladetv2/es/{index-CpYgt8SY.js → index-C82MmKIC.js} +1 -1
  76. package/aftonbladetv2/es/{index-DJjUUyTH.js → index-CO_dweCr.js} +1 -1
  77. package/aftonbladetv2/es/{index-CGrutJih.js → index-CWUPQnPC.js} +1 -1
  78. package/aftonbladetv2/es/{index-CZvOSY6g.js → index-DE5y5asp.js} +1 -1
  79. package/aftonbladetv2/es/{index-CVuk6N37.js → index-DgEEfQ4V.js} +1 -1
  80. package/aftonbladetv2/es/{index-hEVvwFKi.js → index-vUqiPpRV.js} +1 -1
  81. package/aftonbladetv2/es/index.d.ts +11 -27
  82. package/aftonbladetv2/es/index.js +1 -1
  83. package/aftonbladetv2/es/{styles-BZjOLkro.js → styles-8negJCpa.js} +1 -1
  84. package/aftonbladetv2/es/{styles-rQW9-AkI.js → styles-BEJZ55UE.js} +1 -1
  85. package/aftonbladetv2/es/{styles-DV7UG7D1.js → styles-BRoq235i.js} +1 -1
  86. package/aftonbladetv2/es/{styles-Yl7sQVw7.js → styles-CDUOKDqP.js} +1 -1
  87. package/aftonbladetv2/es/{styles-C084GFEu.js → styles-CdOpQ1lK.js} +1 -1
  88. package/aftonbladetv2/es/{styles-DUWeaoWF.js → styles-DZXuPYK-.js} +1 -1
  89. package/bt/cjs/index.d.ts +11 -27
  90. package/bt/cjs/index.js +1 -1
  91. package/bt/es/_auto-entry_bt-CnDc-5tA.js +1 -0
  92. package/bt/es/{events-pNRlieZB.js → events-pbsfBMud.js} +1 -1
  93. package/bt/es/{index-3P6KopoQ.js → index-10o0F1pU.js} +1 -1
  94. package/bt/es/{index-Do79MYUf.js → index-CB1ozKI0.js} +1 -1
  95. package/bt/es/{index-8ZASuYl7.js → index-CBRfC8oj.js} +1 -1
  96. package/bt/es/{index-CqL8IwE7.js → index-CGQ4Pl9E.js} +1 -1
  97. package/bt/es/{index-hUbhWYVZ.js → index-LRR9-Efh.js} +1 -1
  98. package/bt/es/{index-D9fHCFn6.js → index-YRhOwnMQ.js} +1 -1
  99. package/bt/es/{index-CjOH-Fag.js → index-unOIp1lu.js} +1 -1
  100. package/{sa/es/index-CD2dA315.js → bt/es/index-xozUOz97.js} +1 -1
  101. package/bt/es/index.d.ts +11 -27
  102. package/bt/es/index.js +1 -1
  103. package/bt/es/{styles-THCUt9GJ.js → styles-B5Q64krs.js} +1 -1
  104. package/bt/es/{styles-Bp04ZYef.js → styles-BZO-cpQq.js} +1 -1
  105. package/bt/es/{styles-BAApH-4G.js → styles-BpCvYBjb.js} +1 -1
  106. package/bt/es/{styles-CtopsI7d.js → styles-Cpv7xnJr.js} +1 -1
  107. package/{sa/es/styles-C_8A_8qS.js → bt/es/styles-DEhknitf.js} +1 -1
  108. package/bt/es/{styles-Duyb58mM.js → styles-DMVxTKWi.js} +1 -1
  109. package/bt/es/{styles-CIHdTUMj.js → styles-DdjMnoRQ.js} +1 -1
  110. package/{sa/es/styles-CJlvVr8b.js → bt/es/styles-Dzo0F2pC.js} +1 -1
  111. package/bt/es/{styles-Ds_ICkTi.js → styles-a9BNs9Hq.js} +1 -1
  112. package/btv2/es/_auto-entry_btv2-Br28Rkuw.js +1 -0
  113. package/btv2/es/{events-sEPcgGoJ.js → events-BkiRy_Ug.js} +1 -1
  114. package/btv2/es/{index-COh-nUAq.js → index-6ynUsW2j.js} +1 -1
  115. package/btv2/es/{index-DeDSC3jU.js → index-96JPKWtS.js} +1 -1
  116. package/btv2/es/{index-CmJJvqI4.js → index-BdTWdaSz.js} +1 -1
  117. package/btv2/es/{index-jQDk2W0y.js → index-CSvnRSDB.js} +1 -1
  118. package/btv2/es/{index--hn6Nu7B.js → index-CiEuFLju.js} +1 -1
  119. package/btv2/es/{index-BWyq_lGT.js → index-CxqQHs2I.js} +1 -1
  120. package/btv2/es/{index-DoTbw5FP.js → index-Dbtbms4R.js} +1 -1
  121. package/btv2/es/{index-BG5JEEzq.js → index-tpv3zSXV.js} +1 -1
  122. package/btv2/es/index.d.ts +11 -27
  123. package/btv2/es/index.js +1 -1
  124. package/{vgv2/es/styles-DTLm6-vL.js → btv2/es/styles-4acKP-vS.js} +1 -1
  125. package/{sav2/es/styles-DLkXGL6n.js → btv2/es/styles-5MLqt1cS.js} +1 -1
  126. package/{sav2/es/styles-BIkuh1x0.js → btv2/es/styles-BiFfLo8O.js} +1 -1
  127. package/{sav2/es/styles-D3r2E6yp.js → btv2/es/styles-CLAANEHj.js} +1 -1
  128. package/{sav2/es/styles-C4zlh-od.js → btv2/es/styles-Cn0AvhaU.js} +1 -1
  129. package/{vgv2/es/styles-DtTVEEFc.js → btv2/es/styles-DoxT4Rpe.js} +1 -1
  130. package/btv2/es/{styles-C6u86Kr4.js → styles-FCKiIT56.js} +1 -1
  131. package/btv2/es/{styles-DDbc9JQY.js → styles-M3do-e6G.js} +1 -1
  132. package/dr-edition/cjs/index.d.ts +10 -13
  133. package/dr-edition/cjs/index.js +1 -1
  134. package/dr-edition/es/index.d.ts +10 -13
  135. package/dr-edition/es/index.js +1 -1
  136. package/e24/es/_auto-entry_e24-BXEl1rLt.js +1 -0
  137. package/e24/es/{events-jHdJhpam.js → events-Df12jcjq.js} +1 -1
  138. package/e24/es/{index-BTwMCkaI.js → index-4DwbOKHX.js} +1 -1
  139. package/e24/es/{index-w0Mp_oJx.js → index-5AxjPEeO.js} +1 -1
  140. package/e24/es/{index-_hVHIvAi.js → index-BeRC9YaL.js} +1 -1
  141. package/e24/es/{index-bEJoDnkg.js → index-CbclshF7.js} +1 -1
  142. package/{tv4/es/index-_Ob7M7B6.js → e24/es/index-CyTyxMlY.js} +1 -1
  143. package/e24/es/{index-Jxq0bEAs.js → index-DVso5CpT.js} +1 -1
  144. package/e24/es/{index-BS2rDTyf.js → index-DY79nObF.js} +1 -1
  145. package/e24/es/{index-B7cPAuKP.js → index-boY00MWk.js} +1 -1
  146. package/e24/es/index.d.ts +11 -27
  147. package/e24/es/index.js +1 -1
  148. package/e24/es/{styles-HSzBjhzV.js → styles-BnU3rand.js} +1 -1
  149. package/e24/es/{styles-BKnnsJ0d.js → styles-BvaDTUig.js} +1 -1
  150. package/e24/es/{styles-BLpOfBdE.js → styles-CEJZ6EtK.js} +1 -1
  151. package/e24/es/{styles-BGi2FOix.js → styles-Cf5yeLFb.js} +1 -1
  152. package/e24/es/{styles-CBnPZwMW.js → styles-D3tm4qWR.js} +1 -1
  153. package/e24/es/{styles-z0jq39XP.js → styles-DFTviKUt.js} +1 -1
  154. package/e24/es/{styles-CBDjGGgG.js → styles-DxT7w3qt.js} +1 -1
  155. package/e24/es/{styles-cuZcdXL2.js → styles-Dzv8j5Mc.js} +1 -1
  156. package/e24/es/{styles-DV4gLjar.js → styles-VzILOixk.js} +1 -1
  157. package/{tv4/es/styles-DOVwRfHf.js → e24/es/styles-WK8ASD47.js} +1 -1
  158. package/e24/es/{styles-C_QuetVd.js → styles-ZNG2Qej-.js} +1 -1
  159. package/editory/cjs/index.d.ts +623 -0
  160. package/editory/cjs/index.js +1 -0
  161. package/editory/es/index.d.ts +623 -0
  162. package/editory/es/index.js +1 -0
  163. package/fotbollskanalen/cjs/index.d.ts +11 -27
  164. package/fotbollskanalen/cjs/index.js +1 -1
  165. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DmWPi7Jf.js +1 -0
  166. package/fotbollskanalen/es/{events-CKXELYSG.js → events-B3ZU1LUw.js} +1 -1
  167. package/fotbollskanalen/es/{index-BXmQg3qc.js → index-B2k25BEc.js} +1 -1
  168. package/fotbollskanalen/es/{index-DvaUzqka.js → index-B9qRzvev.js} +1 -1
  169. package/fotbollskanalen/es/{index-iCr_0Ugk.js → index-BnfmazmK.js} +1 -1
  170. package/fotbollskanalen/es/{index-Zlqaswh7.js → index-CBwVsPYL.js} +1 -1
  171. package/fotbollskanalen/es/{index-BQhTfZwb.js → index-CRGyYdc3.js} +1 -1
  172. package/fotbollskanalen/es/{index-C4QcVvqK.js → index-CkTyreXG.js} +1 -1
  173. package/fotbollskanalen/es/{index-DtwYvF-O.js → index-Dul3Mfgg.js} +1 -1
  174. package/fotbollskanalen/es/{index-CsUayvzb.js → index-IPyvHxTb.js} +1 -1
  175. package/fotbollskanalen/es/index.d.ts +11 -27
  176. package/fotbollskanalen/es/index.js +1 -1
  177. package/fotbollskanalen/es/{styles-CDKcZuce.js → styles-DrADmvb2.js} +1 -1
  178. package/godt/cjs/index.d.ts +11 -27
  179. package/godt/cjs/index.js +1 -1
  180. package/kilkaya/cjs/index.d.ts +9 -27
  181. package/kilkaya/es/index.d.ts +9 -27
  182. package/klart/cjs/index.d.ts +11 -27
  183. package/klart/cjs/index.js +1 -1
  184. package/koket/cjs/index.d.ts +11 -27
  185. package/koket/cjs/index.js +1 -1
  186. package/koket/es/_auto-entry_koket-DeF09zwU.js +1 -0
  187. package/koket/es/{events-iLlUffjn.js → events-CA87816N.js} +1 -1
  188. package/{svdv2/es/index-Bs3TTyu2.js → koket/es/index-B73Rktog.js} +1 -1
  189. package/koket/es/{index-DfEoqU7k.js → index-BKARuv6H.js} +1 -1
  190. package/koket/es/{index-zVnodrD5.js → index-BeVRG0em.js} +1 -1
  191. package/koket/es/{index-BXMmVzE6.js → index-BwFjCDEc.js} +1 -1
  192. package/koket/es/{index-JvmkraFG.js → index-CjAvTmMP.js} +1 -1
  193. package/koket/es/{index-BlT4F-ad.js → index-D4uWONVv.js} +1 -1
  194. package/koket/es/{index-B-3lVh8d.js → index-D55dsLBV.js} +1 -1
  195. package/koket/es/{index-DfrS6Xvi.js → index-DJNFb_Jk.js} +1 -1
  196. package/koket/es/index.d.ts +11 -27
  197. package/koket/es/index.js +1 -1
  198. package/{svdv2/es/styles-39MAU46D.js → koket/es/styles-B8SdZ5io.js} +1 -1
  199. package/minmote/cjs/index.d.ts +11 -27
  200. package/minmote/cjs/index.js +1 -1
  201. package/package.json +10 -1
  202. package/pent/cjs/index.d.ts +11 -27
  203. package/pent/cjs/index.js +1 -1
  204. package/sa/cjs/index.d.ts +11 -27
  205. package/sa/cjs/index.js +1 -1
  206. package/sa/es/_auto-entry_sa-BAbSOW6y.js +1 -0
  207. package/sa/es/{events-DXCH9IT6.js → events-CQr7o7mK.js} +1 -1
  208. package/sa/es/{index-CRc7kuw_.js → index-Bp0FlYj4.js} +1 -1
  209. package/sa/es/{index-CDmzn8ue.js → index-BpsmpJX6.js} +1 -1
  210. package/sa/es/{index-CucP-AZ3.js → index-CNOm0Zvv.js} +1 -1
  211. package/sa/es/{index-CNA0doSp.js → index-DX8zLkcC.js} +1 -1
  212. package/sa/es/{index-Crkc-Wch.js → index-DbxvaQTc.js} +1 -1
  213. package/{bt/es/index-7A-U2Fdr.js → sa/es/index-DiAcKl0S.js} +1 -1
  214. package/sa/es/{index-BhPku4mz.js → index-FxBHhBpN.js} +1 -1
  215. package/sa/es/{index-Dojk9Kpy.js → index-bdVJz39p.js} +1 -1
  216. package/sa/es/index.d.ts +11 -27
  217. package/sa/es/index.js +1 -1
  218. package/sa/es/{styles-BJp2aUeC.js → styles-Bdm5gig8.js} +1 -1
  219. package/sa/es/{styles-BSo_1heK.js → styles-BwOfPT8j.js} +1 -1
  220. package/{vg/es/styles-lYMz9vdS.js → sa/es/styles-Ck-s8aFw.js} +1 -1
  221. package/sa/es/{styles-s8kbCz0m.js → styles-CqUSV7ll.js} +1 -1
  222. package/sa/es/{styles-Bav2fqyT.js → styles-CvadVFAo.js} +1 -1
  223. package/sa/es/{styles-EseFQEKF.js → styles-D65Pg6EJ.js} +1 -1
  224. package/sa/es/{styles-CRM8CkuK.js → styles-DDcLvb2o.js} +1 -1
  225. package/{vg/es/styles-qXdojPMB.js → sa/es/styles-DEjree18.js} +1 -1
  226. package/{bt/es/styles-Pqgay_As.js → sa/es/styles-DZXqLTj3.js} +1 -1
  227. package/sav2/es/_auto-entry_sav2-CRnV3rZ2.js +1 -0
  228. package/sav2/es/{events-CebMb37c.js → events-DzwqUdEh.js} +1 -1
  229. package/sav2/es/{index-EpsO3aYu.js → index-14YfQ5Vr.js} +1 -1
  230. package/sav2/es/{index-DNftwYYs.js → index-38SjBDT2.js} +1 -1
  231. package/sav2/es/{index-CASZUYQj.js → index-4sqWaTaf.js} +1 -1
  232. package/sav2/es/{index-Cn5fnAL8.js → index-B9ab_exe.js} +1 -1
  233. package/sav2/es/{index-B9sGoM3W.js → index-C1PhEl88.js} +1 -1
  234. package/sav2/es/{index-DsdNjVu0.js → index-CbfYCeKr.js} +1 -1
  235. package/sav2/es/{index-C-Pkf3LK.js → index-DUEqQmBJ.js} +1 -1
  236. package/sav2/es/{index-CDNFRvRO.js → index-_tdwh7iG.js} +1 -1
  237. package/sav2/es/index.d.ts +11 -27
  238. package/sav2/es/index.js +1 -1
  239. package/sav2/es/{styles-CE2xUYax.js → styles-BP4c8b71.js} +1 -1
  240. package/{btv2/es/styles-Cbbr9j8R.js → sav2/es/styles-BquGVxXw.js} +1 -1
  241. package/sav2/es/{styles-C-gVvlp6.js → styles-BuEo0j8F.js} +1 -1
  242. package/{vgv2/es/styles-5mwk4APg.js → sav2/es/styles-CSib2wFT.js} +1 -1
  243. package/sav2/es/{styles-CUZmLrPt.js → styles-CVOyC0Hy.js} +1 -1
  244. package/{btv2/es/styles-BUqMmD7R.js → sav2/es/styles-D84Umkht.js} +1 -1
  245. package/sav2/es/{styles-lLpRe28W.js → styles-DQgdRzKf.js} +1 -1
  246. package/{btv2/es/styles-C1YZlDYn.js → sav2/es/styles-wpXGtNVU.js} +1 -1
  247. package/svd/cjs/index.d.ts +11 -27
  248. package/svd/cjs/index.js +1 -1
  249. package/svd/es/_auto-entry_svd-C6TfzEqZ.js +1 -0
  250. package/svd/es/{events-DfdQVh7r.js → events-D7UqxiPo.js} +1 -1
  251. package/{e24/es/index-D_QCM9VZ.js → svd/es/index-B114sh1q.js} +1 -1
  252. package/svd/es/{index-kkae4Pha.js → index-CFnnxX9d.js} +1 -1
  253. package/svd/es/{index-BOZikoXz.js → index-CQCYYjIO.js} +1 -1
  254. package/svd/es/{index-D9l0EXqG.js → index-CXVjdJfX.js} +1 -1
  255. package/svd/es/{index-DLQtcMw3.js → index-DAojgc2F.js} +1 -1
  256. package/svd/es/{index-g5FDKdDN.js → index-DWNMB-6h.js} +1 -1
  257. package/svd/es/{index-sal2sYhU.js → index-Din3zIPs.js} +1 -1
  258. package/svd/es/{index-DL-SEkb6.js → index-DlW-FUIo.js} +1 -1
  259. package/svd/es/index.d.ts +11 -27
  260. package/svd/es/index.js +1 -1
  261. package/svd/es/{styles-jf5hwfW9.js → styles-BV30fi5B.js} +1 -1
  262. package/svd/es/{styles-kjd6m6Ny.js → styles-Bt0L4xU3.js} +1 -1
  263. package/svd/es/{styles-D9zrGbEX.js → styles-DSLLwXoo.js} +1 -1
  264. package/svd/es/{styles-Dy7_muVf.js → styles-Dp2-I0FM.js} +1 -1
  265. package/svd/es/{styles-CmzpAUX7.js → styles-a0evvwP0.js} +1 -1
  266. package/svd/es/{styles-P0zK42M6.js → styles-ocLsivmt.js} +1 -1
  267. package/svdv2/es/_auto-entry_svdv2-BcxtA5H5.js +1 -0
  268. package/svdv2/es/{events-DLfunP-2.js → events-DkpF1OVt.js} +1 -1
  269. package/svdv2/es/{index-DCNBZQnH.js → index-BNSx3ZEA.js} +1 -1
  270. package/svdv2/es/{index-LoFhRulQ.js → index-C7YoinwT.js} +1 -1
  271. package/svdv2/es/{index-CG2-X2RB.js → index-Dbmwj6UJ.js} +1 -1
  272. package/{koket/es/index-CxkM2Hft.js → svdv2/es/index-Dr9YS9Kp.js} +1 -1
  273. package/svdv2/es/{index-DRvlF3l6.js → index-JL0kyJm9.js} +1 -1
  274. package/svdv2/es/{index-Ut7DYlWr.js → index-JQzzmtfN.js} +1 -1
  275. package/svdv2/es/{index-D5ltXYE2.js → index-blcrdGFA.js} +1 -1
  276. package/svdv2/es/{index-B0d2QePy.js → index-yWxbTBYY.js} +1 -1
  277. package/svdv2/es/index.d.ts +11 -27
  278. package/svdv2/es/index.js +1 -1
  279. package/{koket/es/styles-XvvvXc32.js → svdv2/es/styles-B1n7-3GW.js} +1 -1
  280. package/svdv2/es/{styles-5oCnokrW.js → styles-BlXdm2-y.js} +1 -1
  281. package/svdv2/es/{styles-C9hYqTJL.js → styles-BukOlMgV.js} +1 -1
  282. package/svdv2/es/{styles-AXu-mOHF.js → styles-ByR8L2Dq.js} +1 -1
  283. package/svdv2/es/{styles-BQ8Nfn5i.js → styles-CEvkNQZ3.js} +1 -1
  284. package/svdv2/es/{styles-CnHnRNN4.js → styles-UmufiLeH.js} +1 -1
  285. package/tek/cjs/index.d.ts +11 -27
  286. package/tek/cjs/index.js +1 -1
  287. package/tracker/cjs/index.d.ts +10 -27
  288. package/tracker/cjs/index.js +1 -1
  289. package/tracker/es/index.d.ts +10 -27
  290. package/tracker/es/index.js +1 -1
  291. package/tv4/cjs/index.d.ts +11 -27
  292. package/tv4/cjs/index.js +1 -1
  293. package/tv4/es/_auto-entry_tv4-DsO-wqRO.js +1 -0
  294. package/tv4/es/{events-CO-z-oqJ.js → events-4DkzCgrU.js} +1 -1
  295. package/tv4/es/{index-Df-jUz6l.js → index-B6ag97Bw.js} +1 -1
  296. package/tv4/es/{index-B3QdnL3u.js → index-BQo7w0nT.js} +1 -1
  297. package/tv4/es/{index-96LL55dE.js → index-BksRxrvK.js} +1 -1
  298. package/tv4/es/{index-BOs_O-y0.js → index-CPNVZLfK.js} +1 -1
  299. package/tv4/es/{index-BFPvu_oG.js → index-C_duha9o.js} +1 -1
  300. package/tv4/es/{index-DvtVdq-V.js → index-DCgJvntT.js} +1 -1
  301. package/tv4/es/{index-DSEwuPNI.js → index-GDlvM-pA.js} +1 -1
  302. package/{svd/es/index-BpxlouDb.js → tv4/es/index-R0DJReD8.js} +1 -1
  303. package/tv4/es/index.d.ts +11 -27
  304. package/tv4/es/index.js +1 -1
  305. package/{e24/es/styles-DGXdNcfY.js → tv4/es/styles-CpFHpgiA.js} +1 -1
  306. package/tvnu/cjs/index.d.ts +11 -27
  307. package/tvnu/cjs/index.js +1 -1
  308. package/types/index.d.ts +49 -28
  309. package/vg/cjs/index.d.ts +11 -27
  310. package/vg/cjs/index.js +1 -1
  311. package/vg/es/_auto-entry_vg-5Fd4iVl3.js +1 -0
  312. package/vg/es/{events-DRnj98Vh.js → events-GNcxmmFo.js} +1 -1
  313. package/vg/es/{index-DY8CHj2z.js → index-7HsThj3q.js} +1 -1
  314. package/vg/es/{index-DU1E_fiD.js → index-B20ShDSB.js} +1 -1
  315. package/vg/es/{index-SrjQRIbO.js → index-BdKcLkzi.js} +1 -1
  316. package/vg/es/{index-D25ZkbPw.js → index-BvlbZzc8.js} +1 -1
  317. package/vg/es/{index-BOY4zgOl.js → index-CHYiiXpY.js} +1 -1
  318. package/vg/es/{index-BBe6JmRP.js → index-D7eOCUrJ.js} +1 -1
  319. package/vg/es/{index-UQnhqpNN.js → index-DAIjI6Xf.js} +1 -1
  320. package/vg/es/{index-CkjfgWd0.js → index-Dx0-EJRL.js} +1 -1
  321. package/vg/es/index.d.ts +11 -27
  322. package/vg/es/index.js +1 -1
  323. package/vg/es/{styles-C5ANW62-.js → styles-9iOhmpQG.js} +1 -1
  324. package/vg/es/{styles-COVZuHgl.js → styles-B5RVrjQu.js} +1 -1
  325. package/vg/es/{styles-D2rvw5ld.js → styles-BErBnM5w.js} +1 -1
  326. package/vg/es/{styles-tKXPuQJb.js → styles-BJjHhcVd.js} +1 -1
  327. package/vg/es/{styles-BDw2NcU6.js → styles-BV2uz0rS.js} +1 -1
  328. package/vg/es/{styles-DrHieWTh.js → styles-BVJJ_nnN.js} +1 -1
  329. package/vg/es/{styles-D-eFRSqv.js → styles-BYlo20Oa.js} +1 -1
  330. package/vg/es/{styles-PECF3OUK.js → styles-BvIBq9wk.js} +1 -1
  331. package/vg/es/{styles-DumSlbWy.js → styles-C5Ty1y5b.js} +1 -1
  332. package/{sa/es/styles-CIXmO278.js → vg/es/styles-C7uK6z6P.js} +1 -1
  333. package/{bt/es/styles-CelFmDkp.js → vg/es/styles-DhxL-Kdf.js} +1 -1
  334. package/vg/es/{styles-19QGzP-F.js → styles-F51u_KzR.js} +1 -1
  335. package/vg/es/{styles-Cib2H-1A.js → styles-F_EI0-R4.js} +1 -1
  336. package/vg/es/{styles-DEGkgHqp.js → styles-k2ioKG8W.js} +1 -1
  337. package/vg/es/{styles-BShsffw3.js → styles-mRZXwsl_.js} +1 -1
  338. package/vgv2/es/_auto-entry_vgv2-VQkwNK6O.js +1 -0
  339. package/vgv2/es/{events-BJdXlPgk.js → events-umppYZ48.js} +1 -1
  340. package/vgv2/es/{index-Dou0VZ_A.js → index-B80fFKEp.js} +1 -1
  341. package/vgv2/es/{index-BX7jSk9S.js → index-ByTqOSor.js} +1 -1
  342. package/vgv2/es/{index-CdavAnWF.js → index-C755Omrb.js} +1 -1
  343. package/vgv2/es/{index-ketevqgq.js → index-D9DCQDzE.js} +1 -1
  344. package/vgv2/es/{index-BYg78M-1.js → index-DRyZUuLI.js} +1 -1
  345. package/vgv2/es/{index-BRiC3ne1.js → index-Dh6g8FK2.js} +1 -1
  346. package/vgv2/es/{index-DJma0tca.js → index-JRUgEAmx.js} +1 -1
  347. package/vgv2/es/{index-C6ACBBRY.js → index-gZmFckTC.js} +1 -1
  348. package/vgv2/es/index.d.ts +11 -27
  349. package/vgv2/es/index.js +1 -1
  350. package/{btv2/es/styles-B8cAAKfe.js → vgv2/es/styles-64VQBzw7.js} +1 -1
  351. package/vgv2/es/{styles-DWHcqhC2.js → styles-B-nkSOeh.js} +1 -1
  352. package/vgv2/es/{styles-CS7NqZyh.js → styles-BAYB1_6J.js} +1 -1
  353. package/{btv2/es/styles-Df3JLLcP.js → vgv2/es/styles-BGK9zDgq.js} +1 -1
  354. package/vgv2/es/{styles-DS39FmvF.js → styles-BNZNX1uK.js} +1 -1
  355. package/vgv2/es/{styles-Cslwov8v.js → styles-C5mWX7Pu.js} +1 -1
  356. package/vgv2/es/{styles-DfgFAuNY.js → styles-CYOT98OO.js} +1 -1
  357. package/vgv2/es/{styles-Q2nCTnQH.js → styles-D-8BgKu3.js} +1 -1
  358. package/vgv2/es/{styles-BnYSiqWX.js → styles-DIkzDo-C.js} +1 -1
  359. package/vgv2/es/{styles-1mPG9Ku-.js → styles-DKDSQL-H.js} +1 -1
  360. package/{btv2/es/styles-C704SVBP.js → vgv2/es/styles-DdwWbFr7.js} +1 -1
  361. package/vgv2/es/{styles-DDdxYeTk.js → styles-DnnW6Uhr.js} +1 -1
  362. package/vgv2/es/{styles-qUNKA1kA.js → styles-c8ku3cpV.js} +1 -1
  363. package/vgv2/es/{styles-DxTwZPto.js → styles-noKspg7k.js} +1 -1
  364. package/vgv2/es/{styles-BhLWRgHf.js → styles-zHrW6Rjb.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-DpJlAeMx.js +0 -1
  368. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CHH1f5E5.js +0 -1
  369. package/aftonbladet/es/_auto-entry_aftonbladet-w-azBX-3.js +0 -1
  370. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Dr18nnFb.js +0 -1
  371. package/bt/es/_auto-entry_bt-Dm44J7cs.js +0 -1
  372. package/btv2/es/_auto-entry_btv2-DQscOGjl.js +0 -1
  373. package/e24/es/_auto-entry_e24-DD-poIIu.js +0 -1
  374. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-1ttuy9t7.js +0 -1
  375. package/koket/es/_auto-entry_koket-BBqFLSTE.js +0 -1
  376. package/sa/es/_auto-entry_sa-CA3V4hcE.js +0 -1
  377. package/sav2/es/_auto-entry_sav2-Bn-FKkGE.js +0 -1
  378. package/svd/es/_auto-entry_svd-Uzp5VUZy.js +0 -1
  379. package/svdv2/es/_auto-entry_svdv2-C7RO6lSi.js +0 -1
  380. package/tv4/es/_auto-entry_tv4-BU5LefDK.js +0 -1
  381. package/vg/es/_auto-entry_vg-DbrNgugt.js +0 -1
  382. package/vgv2/es/_auto-entry_vgv2-D17j9zhA.js +0 -1
package/video/es/index.js CHANGED
@@ -1 +1 @@
1
- function e(e,n,t,i){return new(t||(t=Promise))(function(o,r){function s(e){try{d(i.next(e))}catch(e){r(e)}}function a(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,a)}d((i=i.apply(e,n||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n=()=>e(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((n,t)=>{e("addEventListener",2,(t,i)=>{var o;i||n(""),"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus||(n(null!==(o=t.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},t.listenerId))})}))}:{};var e}),t={NO:"no",SE:"se"},i={pageContext:{publisher:"aftonbladet",countryCode:t.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"}},o={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},r=e=>(null==e?void 0:e.parent)?[...r(e.parent),e.shortPath||"unknown"]:[],s=(e,n)=>n?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var n;if(null===(n=null==e?void 0:e.metadata)||void 0===n?void 0:n.afp)return"afp";const[,t]=r(e);return o[t]||"ovrigaavdelningar"})(e)}_{position}`,a=(e,n)=>{const t="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(n?console.log(t,e,n):console.log(t,e))},d=(e,n)=>{console.warn("[Advertory WARN]: ",e)},l={aftonbladet:i},c={aftonbladet:(e,n)=>{if(!e)return null;return{invCode:s(e,n),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:r(e).join(":")}}},u=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},p=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),v="desktop",g="web_desktop",h="web_phone",f="wde",y="wph",b="se-generic",m="aa-sch",w="kv_",O="pause",C="{deviceType}",P="{position}",I="afp_",T=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),_="1-1",S="16-9",E="3-4",A="9-16",j="responsive",$={[_]:1,[S]:1.78,[A]:.56,[j]:1},k={[_]:1,[S]:1.78,[E]:1.33,[A]:.56},N=(e,n,t,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},s=v===t?f:y,a=o.replace(C,s);return(e,t)=>{if(e===O)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(P,O).replace(/-([a-z]+)_/,"-article-"))(a);if(t&&T.has(e)){return(i&&r?r:n.frontpageInvCodeTemplate).replace(C,s).replace(P,e)}return a.replace(P,e)}};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,D;var R=x(function(){if(D)return M;D=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function t(e,n){return!1!==n.clone&&n.isMergeableObject(e)?a((t=e,Array.isArray(t)?[]:{}),e,n):e;var t}function i(e,n,i){return e.concat(n).map(function(e){return t(e,i)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return Object.propertyIsEnumerable.call(e,n)}):[]}(e))}function r(e,n){try{return n in e}catch(e){return!1}}function s(e,n,i){var s={};return i.isMergeableObject(e)&&o(e).forEach(function(n){s[n]=t(e[n],i)}),o(n).forEach(function(o){(function(e,n){return r(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))})(e,o)||(r(e,o)&&i.isMergeableObject(n[o])?s[o]=function(e,n){if(!n.customMerge)return a;var t=n.customMerge(e);return"function"==typeof t?t:a}(o,i)(e[o],n[o],i):s[o]=t(n[o],i))}),s}function a(n,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=t;var a=Array.isArray(o);return a===Array.isArray(n)?a?r.arrayMerge(n,o,r):s(n,o,r):t(o,r)}return a.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return a(e,t,n)},{})},M=a}());const U=["placements","takeover","refreshConfig","editory"],H={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,n)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},F=e=>{(e=>{const{pageContext:n,pageOptions:t,placements:i,appearanceConfig:o}=null!=e?e:{};(null==n?void 0:n.publisher)||d("pageContext.publisher is required."),(null==n?void 0:n.countryCode)||d("pageContext.countryCode is required."),(null==n?void 0:n.pageType)||d("pageContext.pageType is required."),(null==n?void 0:n.deviceType)||d("pageContext.deviceType is required."),t||d("pageOptions is required."),i||d("placements is required."),(null==o?void 0:o.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var n,t,i;const o=e.pageSectionsSelectors,r=[{flag:!!(null===(n=e.takeover)||void 0===n?void 0:n.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(t=e.sponsorstripe)||void 0===t?void 0:t.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:n,featureName:t}of r)e&&!(null==o?void 0:o[n])&&d(`pageSectionsSelectors.${n} is required when ${t} is enabled.`)})(e)};class L{set(e){F(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const n={};for(const t of U){const i=e[t];void 0!==i&&(n[t]=i)}Object.assign(this.config,n),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=R(L.DEFAULT_SITE_HANDLERS,e)}}L.DEFAULT_SITE_HANDLERS={siteEvents:H,initNativeAd:()=>{}};const V=new L;V.modifyConfigProperties.bind(V);const B=864e5,q=(()=>{const e=e=>{const n=window.localStorage.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch(e){return a("Error with parsing localStorage data"),null}},n=(e,n)=>{window.localStorage.setItem(e,JSON.stringify(n))};return{get:e,set:n,setWithTimestamp:(e,t,i=B)=>{const o={data:t,expirationTime:(new Date).getTime()+i};n(e,JSON.stringify(o))},getByTimestamp:(n,t=B)=>{const i=e(n);if(!i)return null;if(!t)return i;try{const{expirationTime:e,data:n}=JSON.parse(i);return(new Date).getTime()<=e?n:null}catch(e){return a("Error with parsing localStorage data"),null}}}})(),K=["glwe_","glwet_"],W={geofenceTags:[],geoTags:[],weatherTags:[]},z=e=>new Promise(n=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void n(!1);const t=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const n=Number(e);return a("Advertising permission value obtained synchronously: ",e),Boolean(n)})();if(null!==t)return void n(t);let i=!1;const o=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,n(e))},r=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const n=Number(e);a("Advertising permission value obtained asynchronously: ",e),o(Boolean(n))})}),J="cmp:loaded";let G="undefined"!=typeof window?window._tcf_:void 0,Q=!1;const Y=(n,i,o)=>{const r=!!(null==n?void 0:n.enabled),s=(null==n?void 0:n.timeout)||3e3,d=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const c=()=>{if(!(null==n?void 0:n.enabled))return!0;if(((e,n)=>e?!!n&&(a("TCF bypass param detected, returning consent: true"),!0):(a("TCF is not enabled, returning consent: true"),!0))(r,d))return!0;if(Q)return null;if(!G)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=G.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),G.getConsentedToAllSync()};return{initConsentManager:()=>(null==n?void 0:n.enabled)?new Promise((e,n)=>{if(a("Getting TCF consent manager..."),window._tcf_)return a("TCF consent manager is already available"),G=window._tcf_,void e(G);a("TCF consent manager is not available");const t=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(G=window._tcf_,e(G)):n(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(J,t),Q=!0,n(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(J,t,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>e(void 0,void 0,void 0,function*(){if(null==n?void 0:n.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${n.schibstedAdChoicesOverrideValue}`),Boolean(Number(n.schibstedAdChoicesOverrideValue));const e=(null==n?void 0:n.advertisingCMPSignalEnabled)&&o===t.SE,i=(null==n?void 0:n.advertisingCMPSignalEnabled)&&o===t.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield z(n);if(!(null==n?void 0:n.enabled))return!0;const r=c();return null!==r?r:yield new Promise((e,n)=>{try{if(!G)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let n=!1;const t=t=>{n||(n=!0,e(t))},i=setTimeout(()=>{a("TCF isConsentedToAll timed out, resolving with false"),t(!1)},s);G.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),G.isConsentedToAll(n=>{clearTimeout(i),e(n)})}catch(e){n(e)}})})}},X=(n,t,i,...o)=>e(void 0,[n,t,i,...o],void 0,function*(e,n,t,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return a(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`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:o}=Y(e,0,t);return(yield o())?(a(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(a(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),Z={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"},ee=e=>K.some(n=>e.startsWith(n)),ne=e=>e.startsWith("glgc_"),te=e=>!ee(e)&&!ne(e),ie=(n,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:o,pageContext:{countryCode:r}={}}=n,s=yield((...n)=>e(void 0,[...n],void 0,function*(e=V.get()){const{tcf:n,pageContext:{isMobileApp:t,countryCode:i}={}}=e;if(null==n?void 0:n.schibstedConsentToPayEnabled)return yield X(n,t,i,"glimr");const{getConsentAsync:o}=Y(n,0,i);return yield o()}))(n);if(!(null==o?void 0:o.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===t.NO?"no-sno":"se-generic")(r),l=oe(n,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),oe=(e,n)=>{const t=re();if(!t)return W;const i=((e=[])=>e.filter(ee))(t),o=((e=[])=>e.filter(ne))(t),r=((e=[],n,t)=>{var i;const o=e.filter(te);if(t&&n){const{publisher:e}=null!==(i=n.pageContext)&&void 0!==i?i:{},t=Z[e]||e;o.push(t)}return o})(t,e,n);return{geoTags:r,geofenceTags:o,weatherTags:i}},re=()=>{const e=q.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},se={get:(n,t)=>e(void 0,void 0,void 0,function*(){const e=yield fetch(n,t);if(!e.ok)throw new Error(e.statusText);return yield e.json()}),post:(n,t,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),o=yield fetch(n,{method:"POST",headers:t,body:e});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},ae="advertory:ppids-cache",de={[t.SE]:`SCH${t.SE.toUpperCase()}-EnvHash`,[t.NO]:`SCH${t.NO.toUpperCase()}-EnvHash`},le={[t.SE]:`SCH${t.SE.toUpperCase()}-UserHash`,[t.NO]:`SCH${t.NO.toUpperCase()}-UserHash`},ce={[t.SE]:`sch${t.SE}-envhash-v3`,[t.NO]:`sch${t.NO}-envhash-v3`},ue={[t.SE]:`sch${t.SE}-userhash-v3`,[t.NO]:`sch${t.NO}-userhash-v3`},pe={[t.SE]:"sdrn:schibsted.com:user",[t.NO]:"sdrn:spid.no:user"};class ve{constructor(){this.eids=[]}add(e,n){return e&&this.eids.push({id:e,source:n}),this}buildRyEids(){return this.eids.map(({id:e,source:n})=>({source:n,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:n})=>`${n},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const n=new URLSearchParams;return this.eids.slice(1).forEach(({id:t,source:i})=>{n.append(e,`${i}-${t}`)}),n}}const ge=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(n){return e(this,arguments,void 0,function*(e,n=1e4){var t,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),n)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(t=o.xandr)||void 0===t?void 0:t.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,n;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(n=this.ppid2)&&void 0!==n?n:""}}setPPIDs(e,n){this.ppid1=null!=e?e:"",this.ppid2=null!=n?n:""}},he=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(n,t){return e(this,void 0,void 0,function*(){var e,i,o,r,s,a,d,l,c,u,p;const v=q.get(ae),g=yield this.getNewPPIDs(n,t);if(this.shouldHash(v,g)){const t=null!==(e=n.hasherUrl)&&void 0!==e?e:"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===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(s=c.environmentId)&&void 0!==s?s:"",null===(a=g.idfv)||void 0===a?void 0:a.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,n;return null!==this.ppid1&&null!==this.ppid2||a("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(n=this.ppid2)&&void 0!==n?n:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,n,t,i){this.ppid1=null!=e?e:"",this.ppid2=null!=n?n:"",this.idfv=null!=t?t:null,this.anId=null!=i?i:null}shouldHash(e,n){var t,i;if(!e)return!0;for(const o in e){if((null===(t=e[o])||void 0===t?void 0:t.plain)!==(null===(i=n[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,n,t,i){const o=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:n.userId},environmentId:{plain:e.environmentId,hashed:n.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},t?{idfv:{plain:t}}:{}),i?{anId:{plain:i}}:{});q.set(ae,o)}hashPPIDs(n,t){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield se.post(t,e,n)}catch(e){return a("Error with hashing PPIDs",e),null}})}getNewPPIDs(n,t){return e(this,arguments,void 0,function*({clientId:n,instance:t},i){const o=yield((n,t)=>e(void 0,void 0,void 0,function*(){const e=yield n.getUserId();return e?`${pe[t]}:${e}`:null}))(t,i),r=yield(n=>e(void 0,void 0,void 0,function*(){const e=yield n.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}))(t),s=window.advertory_idfv,a=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:n},userId:{plain:o},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},s?{idfv:{plain:s}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:n,trackerVersion:t,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:n.plain,trackerVersion:t.plain,userId:i.plain,environmentId:o.plain}}},fe=n=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:i}={}}=n,{getConsentAsync:o}=Y(e,0,i);if(!(yield o()))return;const r=(e=>{const n=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),t=new RegExp(`(?:(?:^|.*;)\\s*${n}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(t,"$1"))||null})("_pulse2data");return r?r.split(",")[9]:void 0}),ye=()=>{const e=window.navigator.userAgent.toLowerCase(),n=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([n])=>e.includes(n));return n?n[1]:"unknown"},be=(e,n)=>{const t=Object.entries(e);return t.reduce((t,[i,o])=>{const r=Math.abs(e[t]-n);return Math.abs(o-n)<r?i:t},t[0][0])},me=()=>{var e,n;const t=jwplayer().getContainer(),i=null!==(n=null===(e=document.getElementById(t.id))||void 0===e?void 0:e.parentElement)&&void 0!==n?n:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},we=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(n=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==n?n:"").split(",");var e,n},Oe=()=>{const e=null!==(n=we()[9])&&void 0!==n?n:null;var n;const t=(()=>{var e;return null!==(e=we()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(t)):0},Ce=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Pe=(t,i)=>e(void 0,void 0,void 0,function*(){const{tcf:o,pageContext:{publisher:r,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:t.isApp,countryCode:s,publisher:r,pageType:"front",deviceType:t.deviceType},c=(yield X(o,t.isApp,s,"video"))?"1":"0",u=yield n(),p=yield(f=s,e(void 0,void 0,void 0,function*(){const{ppid1:e,ppid2:n}=ge.getPPIDs(),{ppid1:t,ppid2:i}=he.getPPIDs(),o=(new ve).add(n,de[f]).add(e,le[f]).add(i,ce[f]).add(t,ue[f]);return yield new Promise(e=>{e(o.buildVideoEids())})}));var f;const y=yield fe({tcf:o,pageContext:l}),O=null!==(C=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==C?C:"";var C;const P=((e=1)=>be(k,Number(e.toFixed(2))))(t.instreamAspectRatio),I=(T=t.playerAspectRatio)?be($,Number(T.toFixed(2))):j;var T,_;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${m}-country_code`]:s,[`${m}-publisher`]:r,[`${m}-supply_type`]:(_=t.deviceType,_===v?g:h),[`kw_${m}-page_type`]:"collection",[`${m}-page_type`]:"collection",[`${b}-appmode`]:t.isAndroidApp?"hybrid":"notinapp",[`kw_${b}-page`]:"index",[`${b}-page`]:"index",[`${b}-screenheight`]:String(window.screen.height),[`${b}-screenwidth`]:String(window.screen.width),[`${b}-viewportheight`]:String(d),[`${b}-viewportwidth`]:String(a),[`${b}-loggedin`]:t.isUserLoggedIn?"yes":"no",[`${b}-mobile-os`]:ye(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Oe(),[`${b}-tags`]:t.tags,[`${b}-articleid`]:O,"article-id":O},yield ie(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),t.isUserPresentOnFrontPage&&t.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),t.pageAdsKeywords),Object.keys(Ce()).some(e=>e.includes(w))&&(()=>{const e=Ce(),n=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(w)).map(([e,n])=>[e.slice(3),n]));return Object.keys(n).length>0?n:void 0})()),{[i.sectionKeyword]:t.sections.split(":"),"aa-sch-cmp_advertising":c,"kw_aa-sch-cmp_advertising":c,"aa-sch-instream_player_aspectratio":P,"aa-sch-player_aspectratio":I}),u),{eids:p})}),Ie=["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"],Te=["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"],_e=["external_uid","gdpr","gdpr_consent","eids","article-id"],Se=(e,n)=>{const t=[...Ie,...n.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!t.includes(e)).map(([e,n])=>[e.includes("kw")||_e.includes(e)?e:`kw_${e}`,n]))},Ee=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Te.includes(e))),Ae=(n,t)=>e(void 0,void 0,void 0,function*(){var e,o,r,s;const a=(e=>{var n;l[e]||d(`[video] No config found for publisher "${e}"`);return null!==(n=l[e])&&void 0!==n?n:i})(n.publisher),p=(e=>{var n;return null!==(n=c[e])&&void 0!==n?n:c.aftonbladet})(n.publisher)(n.assetSection,n.isLiveStudio),v="/"===window.location.pathname,g=null===(o=null===(e=t.attributes)||void 0===e?void 0:e.id)||void 0===o?void 0:o.toString(),h=n.assetId===g,f=null!==(r=Number(n.aspectRatio))&&void 0!==r?r:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield Pe({pageAdsKeywords:n.pageAdsKeywords,tags:(b=n.tags,b?b.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(s=null==p?void 0:p.sections)&&void 0!==s?s:"",isUserLoggedIn:n.isUserLoggedIn,isUserPresentOnFrontPage:v,isInitialVideo:h,instreamAspectRatio:f,playerAspectRatio:me(),isApp:n.isApp,deviceType:n.deviceType,isAndroidApp:n.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(n.startMode)}}),je=(e,n)=>{const{siteConfig:t,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:s,playbackMethod:a}=e,{invCode:d}=i||{},l=N(i,t,n.deviceType,n.isUsedInOverlayVideoPlayer),c=((e="")=>n=>e.includes(I)?`${I}${n}`:n)(d),u=window.location.href;return{member:t.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(s,o),"se-generic-playback-method":p.get(a),"kw_se-generic-adformat":c(s)},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({},Se(r,t)),Ee(r)),{vskippable:"0",referrer:u,vplaybackmethod:a})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},$e=n=>t=>e(void 0,void 0,void 0,function*(){const e=yield Ae(n,t);return je(e,n)});export{n as getTcfConsentKeywords,$e as getVideoAdsConfig};
1
+ function e(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{d(i.next(e))}catch(e){r(e)}}function a(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}d((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const t=()=>e(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 o;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(o=n.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),n={NO:"no",SE:"se"},i={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"}},o={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},r=e=>(null==e?void 0:e.parent)?[...r(e.parent),e.shortPath||"unknown"]:[],s=(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]=r(e);return o[n]||"ovrigaavdelningar"})(e)}_{position}`,a=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},d=(e,t)=>{console.warn("[Advertory WARN]: ",e)},l={aftonbladet:i},c={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:s(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:r(e).join(":")}}},u=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},p=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),v="desktop",g="web_desktop",h="web_phone",f="wde",y="wph",b="se-generic",m="aa-sch",w="kv_",O="pause",C="{deviceType}",P="{position}",I="afp_",T=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),_="1-1",S="16-9",j="3-4",E="9-16",A="responsive",$={[_]:1,[S]:1.78,[E]:.56,[A]:1},k={[_]:1,[S]:1.78,[j]:1.33,[E]:.56},N=(e,t,n,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},s=v===n?f:y,a=o.replace(C,s);return(e,n)=>{if(e===O)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(P,O).replace(/-([a-z]+)_/,"-article-"))(a);if(n&&T.has(e)){return(i&&r?r:t.frontpageInvCodeTemplate).replace(C,s).replace(P,e)}return a.replace(P,e)}};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,D;var R=x(function(){if(D)return M;D=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)?a((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 o(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 r(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var s={};return i.isMergeableObject(e)&&o(e).forEach(function(t){s[t]=n(e[t],i)}),o(t).forEach(function(o){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r(e,o)&&i.isMergeableObject(t[o])?s[o]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(o,i)(e[o],t[o],i):s[o]=n(t[o],i))}),s}function a(t,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(o);return a===Array.isArray(t)?a?r.arrayMerge(t,o,r):s(t,o,r):n(o,r)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},M=a}());const U=["placements","takeover","refreshConfig","editory"],H={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},F=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||d("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||d("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||d("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||d("pageContext.deviceType is required."),n||d("pageOptions is required."),i||d("placements is required."),(null==o?void 0:o.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i;const o=e.pageSectionsSelectors,r=[{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 r)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class L{set(e){F(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 U){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=R(L.DEFAULT_SITE_HANDLERS,e)}}L.DEFAULT_SITE_HANDLERS={siteEvents:H,initNativeAd:()=>{}};const V=new L;V.modifyConfigProperties.bind(V);const B=864e5,q=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return a("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=B)=>{const o={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(o))},getByTimestamp:(t,n=B)=>{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 a("Error with parsing localStorage data"),null}}}})(),K=["glwe_","glwet_"],W={geofenceTags:[],geoTags:[],weatherTags:[]},z=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 a("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),J="cmp:loaded";let G="undefined"!=typeof window?window._tcf_:void 0,Q=!1;const Y=(t,i,o)=>{const r=!!(null==t?void 0:t.enabled),s=(null==t?void 0:t.timeout)||3e3,d=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const c=()=>{if(!(null==t?void 0:t.enabled))return!0;if(((e,t)=>e?!!t&&(a("TCF bypass param detected, returning consent: true"),!0):(a("TCF is not enabled, returning consent: true"),!0))(r,d))return!0;if(Q)return null;if(!G)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=G.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),G.getConsentedToAllSync()};return{initConsentManager:()=>(null==t?void 0:t.enabled)?new Promise((e,t)=>{if(a("Getting TCF consent manager..."),window._tcf_)return a("TCF consent manager is already available"),G=window._tcf_,void e(G);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(G=window._tcf_,e(G)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(J,n),Q=!0,t(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(J,n,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>e(void 0,void 0,void 0,function*(){if(null==t?void 0:t.schibstedAdChoicesOverrideValue)return a(`Schibsted Ad Choices override value is set, returning override value: ${t.schibstedAdChoicesOverrideValue}`),Boolean(Number(t.schibstedAdChoicesOverrideValue));const e=(null==t?void 0:t.advertisingCMPSignalEnabled)&&o===n.SE,i=(null==t?void 0:t.advertisingCMPSignalEnabled)&&o===n.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield z(t);if(!(null==t?void 0:t.enabled))return!0;const r=c();return null!==r?r:yield new Promise((e,t)=>{try{if(!G)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(()=>{a("TCF isConsentedToAll timed out, resolving with false"),n(!1)},s);G.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),G.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},X=(t,n,i,...o)=>e(void 0,[t,n,i,...o],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return a(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return a(`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:o}=Y(e,0,n);return(yield o())?(a(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(a(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),Z={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"},ee=e=>K.some(t=>e.startsWith(t)),te=e=>e.startsWith("glgc_"),ne=e=>!ee(e)&&!te(e),ie=(t,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:o,pageContext:{countryCode:r}={}}=t,s=yield((...t)=>e(void 0,[...t],void 0,function*(e=V.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled)return yield X(t,n,i,"glimr");const{getConsentAsync:o}=Y(t,0,i);return yield o()}))(t);if(!(null==o?void 0:o.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===n.NO?"no-sno":"se-generic")(r),l=oe(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),oe=(e,t)=>{const n=re();if(!n)return W;const i=((e=[])=>e.filter(ee))(n),o=((e=[])=>e.filter(te))(n),r=((e=[],t,n)=>{var i;const o=e.filter(ne);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=Z[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:r,geofenceTags:o,weatherTags:i}},re=()=>{const e=q.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},se="opaque",ae=t=>e(void 0,void 0,void 0,function*(){if(t.type!==se){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),de={get:(t,...n)=>e(void 0,[t,...n],void 0,function*(t,n={}){var{timeout:i}=n,o=function(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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["timeout"]);if(i)return((t,n,i)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,o=setTimeout(()=>e.abort(),i);try{const i=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return ae(i)}finally{clearTimeout(o)}}))(t,o,i);const r=yield fetch(t,o);return ae(r)}),post:(t,n,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),o=yield fetch(t,{method:"POST",headers:n,body:e});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},le="advertory:ppids-cache",ce={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},ue={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},pe={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ve={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},ge={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class he{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 fe=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(t){return e(this,arguments,void 0,function*(e,t=1e4){var n,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=o.xandr)||void 0===n?void 0:n.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||a("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:""}},ye=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(t,n){return e(this,void 0,void 0,function*(){var e,i,o,r,s,a,d,l,c,u,p;const v=q.get(le),g=yield this.getNewPPIDs(t,n);if(this.shouldHash(v,g)){const n=null!==(e=t.hasherUrl)&&void 0!==e?e:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,n);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(s=c.environmentId)&&void 0!==s?s:"",null===(a=g.idfv)||void 0===a?void 0:a.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||a("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 o in e){if((null===(n=e[o])||void 0===n?void 0:n.plain)!==(null===(i=t[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const o=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}}:{});q.set(le,o)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield de.post(n,e,t)}catch(e){return a("Error with hashing PPIDs",e),null}})}getNewPPIDs(t,n){return e(this,arguments,void 0,function*({clientId:t,instance:n},i){const o=yield((t,n)=>e(void 0,void 0,void 0,function*(){const e=yield t.getUserId();return e?`${ge[n]}:${e}`:null}))(n,i),r=yield(s=n,e(void 0,void 0,void 0,function*(){const e=yield s.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var s;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:t},userId:{plain:o},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:o.plain}}},be=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:o}=Y(e,0,i);if(!(yield o()))return;const r=(e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null})("_pulse2data");return r?r.split(",")[9]:void 0}),me=()=>{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"},we=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,o])=>{const r=Math.abs(e[n]-t);return Math.abs(o-t)<r?i:n},n[0][0])},Oe=()=>{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},Ce=()=>{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},Pe=()=>{const e=null!==(t=Ce()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Ce()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ie=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Te=(n,i)=>e(void 0,void 0,void 0,function*(){const{tcf:o,pageContext:{publisher:r,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:n.isApp,countryCode:s,publisher:r,pageType:"front",deviceType:n.deviceType},c=(yield X(o,n.isApp,s,"video"))?"1":"0",u=yield t(),p=yield(f=s,e(void 0,void 0,void 0,function*(){const{ppid1:e,ppid2:t}=fe.getPPIDs(),{ppid1:n,ppid2:i}=ye.getPPIDs(),o=(new he).add(t,ce[f]).add(e,ue[f]).add(i,pe[f]).add(n,ve[f]);return yield new Promise(e=>{e(o.buildVideoEids())})}));var f;const y=yield be({tcf:o,pageContext:l}),O=null!==(C=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==C?C:"";var C;const P=((e=1)=>we(k,Number(e.toFixed(2))))(n.instreamAspectRatio),I=(T=n.playerAspectRatio)?we($,Number(T.toFixed(2))):A;var T,_;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${m}-country_code`]:s,[`${m}-publisher`]:r,[`${m}-supply_type`]:(_=n.deviceType,_===v?g:h),[`kw_${m}-page_type`]:"collection",[`${m}-page_type`]:"collection",[`${b}-appmode`]:n.isAndroidApp?"hybrid":"notinapp",[`kw_${b}-page`]:"index",[`${b}-page`]:"index",[`${b}-screenheight`]:String(window.screen.height),[`${b}-screenwidth`]:String(window.screen.width),[`${b}-viewportheight`]:String(d),[`${b}-viewportwidth`]:String(a),[`${b}-loggedin`]:n.isUserLoggedIn?"yes":"no",[`${b}-mobile-os`]:me(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Pe(),[`${b}-tags`]:n.tags,[`${b}-articleid`]:O,"article-id":O},yield ie(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),n.isUserPresentOnFrontPage&&n.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),n.pageAdsKeywords),Object.keys(Ie()).some(e=>e.includes(w))&&(()=>{const e=Ie(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(w)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[i.sectionKeyword]:n.sections.split(":"),"aa-sch-cmp_advertising":c,"kw_aa-sch-cmp_advertising":c,"aa-sch-instream_player_aspectratio":P,"aa-sch-player_aspectratio":I}),u),{eids:p})}),_e=["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"],Se=["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"],je=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ee=(e,t)=>{const n=[..._e,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||je.includes(e)?e:`kw_${e}`,t]))},Ae=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Se.includes(e))),$e=(t,n)=>e(void 0,void 0,void 0,function*(){var e,o,r,s;const a=(e=>{var t;l[e]||d(`[video] No config found for publisher "${e}"`);return null!==(t=l[e])&&void 0!==t?t:i})(t.publisher),p=(e=>{var t;return null!==(t=c[e])&&void 0!==t?t:c.aftonbladet})(t.publisher)(t.assetSection,t.isLiveStudio),v="/"===window.location.pathname,g=null===(o=null===(e=n.attributes)||void 0===e?void 0:e.id)||void 0===o?void 0:o.toString(),h=t.assetId===g,f=null!==(r=Number(t.aspectRatio))&&void 0!==r?r:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield Te({pageAdsKeywords:t.pageAdsKeywords,tags:(b=t.tags,b?b.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(s=null==p?void 0:p.sections)&&void 0!==s?s:"",isUserLoggedIn:t.isUserLoggedIn,isUserPresentOnFrontPage:v,isInitialVideo:h,instreamAspectRatio:f,playerAspectRatio:Oe(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),ke=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:s,playbackMethod:a}=e,{invCode:d}=i||{},l=N(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(I)?`${I}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(s,o),"se-generic-playback-method":p.get(a),"kw_se-generic-adformat":c(s)},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({},Ee(r,n)),Ae(r)),{vskippable:"0",referrer:u,vplaybackmethod:a})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Ne=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield $e(t,n);return ke(e,t)});export{t as getTcfConsentKeywords,Ne as getVideoAdsConfig};