@schibsted/advertory 3.14.0 → 3.16.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 (448) hide show
  1. package/ad-native/cjs/index.d.ts +1 -0
  2. package/ad-native/cjs/index.js +1 -1
  3. package/ad-native/es/index.d.ts +1 -0
  4. package/ad-native/es/index.js +1 -1
  5. package/aftenposten/cjs/index.d.ts +2 -0
  6. package/aftenposten/cjs/index.js +1 -1
  7. package/aftenposten/es/_auto-entry_aftenposten-BNkq8etN.js +1 -0
  8. package/aftenposten/es/{events-COn-FPrr.js → events-B5l6zCaC.js} +1 -1
  9. package/aftenposten/es/{index-C6eKrBGF.js → index-AzfgaHDJ.js} +1 -1
  10. package/aftenposten/es/{index-uLWFv-X_.js → index-B04FXR_c.js} +1 -1
  11. package/aftenposten/es/{index-C9zODdkH.js → index-B29m7RpK.js} +1 -1
  12. package/aftenposten/es/{index-DwzWget9.js → index-B7FqNtLe.js} +1 -1
  13. package/aftenposten/es/{index-CTkaaCEC.js → index-BM_O0aeJ.js} +1 -1
  14. package/aftenposten/es/{index-DQcrcBDS.js → index-DBVpxUWh.js} +1 -1
  15. package/aftenposten/es/{index-CVrsr7jO.js → index-DPcGuRg0.js} +1 -1
  16. package/aftenposten/es/index-fzJme0tf.js +1 -0
  17. package/aftenposten/es/index.d.ts +2 -0
  18. package/aftenposten/es/index.js +1 -1
  19. package/aftenposten/es/{styles-DSTa9d1I.js → styles-8qtGjLrJ.js} +1 -1
  20. package/aftenposten/es/{styles-CyI77As3.js → styles-BQ6x1VO5.js} +1 -1
  21. package/aftenposten/es/{styles-C7_b7fUy.js → styles-BR4l4-31.js} +1 -1
  22. package/aftenposten/es/{styles-BNdWsVt6.js → styles-BUCGbkXr.js} +1 -1
  23. package/aftenposten/es/{styles-C41F4Thy.js → styles-BkDzy7SX.js} +1 -1
  24. package/aftenposten/es/{styles-BlUsOGhM.js → styles-Cl64tHHL.js} +1 -1
  25. package/aftenposten/es/{styles-B3vbcTzP.js → styles-DHvDlmP9.js} +1 -1
  26. package/aftenposten/es/{styles-BLosNpS0.js → styles-DcojDCHO.js} +1 -1
  27. package/aftenposten/es/{styles-Cb4G31mK.js → styles-Dp3M6PvL.js} +1 -1
  28. package/aftenposten/es/{styles-BMqrIe3m.js → styles-S6FXJt5S.js} +1 -1
  29. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-xOUdFrVN.js +1 -0
  30. package/aftenpostenv2/es/{events-BVM8jQt2.js → events-3y0L9fHq.js} +1 -1
  31. package/aftenpostenv2/es/{index-NMi0M45v.js → index-BAcOT-4t.js} +1 -1
  32. package/aftenpostenv2/es/index-BcZY_TAd.js +1 -0
  33. package/aftenpostenv2/es/{index-DbUs0FkP.js → index-Bh1cIcC-.js} +1 -1
  34. package/aftenpostenv2/es/{index-DO3I8tfX.js → index-Bhglorpl.js} +1 -1
  35. package/aftenpostenv2/es/{index-CzwB2HqZ.js → index-BzbN1-cA.js} +1 -1
  36. package/aftenpostenv2/es/{index-D2zLY1cK.js → index-C1nos8Oh.js} +1 -1
  37. package/aftenpostenv2/es/{index-C4IQzpqb.js → index-CqLAy9GV.js} +1 -1
  38. package/aftenpostenv2/es/{index-quLfeUqz.js → index-Cw1dVsl3.js} +1 -1
  39. package/aftenpostenv2/es/index.d.ts +2 -0
  40. package/aftenpostenv2/es/index.js +1 -1
  41. package/aftenpostenv2/es/{styles-B-qeA5n5.js → styles-8x310O9g.js} +1 -1
  42. package/aftenpostenv2/es/{styles--mKxRXMT.js → styles-BO45Bfm8.js} +1 -1
  43. package/aftenpostenv2/es/{styles-D9tRC6Vc.js → styles-BV9hW1VT.js} +1 -1
  44. package/aftenpostenv2/es/{styles-BZyG4F6d.js → styles-BYXACJXF.js} +1 -1
  45. package/aftenpostenv2/es/{styles-B-bS7-GV.js → styles-B_lZIgZk.js} +1 -1
  46. package/aftenpostenv2/es/{styles-B7fdygBv.js → styles-C-ftEK6_.js} +1 -1
  47. package/aftenpostenv2/es/{styles-D4R_cUiE.js → styles-CXs3LoeL.js} +1 -1
  48. package/aftenpostenv2/es/{styles-_hKi7Ek7.js → styles-CY75Ysrf.js} +1 -1
  49. package/aftenpostenv2/es/{styles-IPQX-LHw.js → styles-Dp110rkQ.js} +1 -1
  50. package/aftenpostenv2/es/{styles-Ci8neU2c.js → styles-gVNslNgB.js} +1 -1
  51. package/aftonbladet/cjs/index.d.ts +2 -0
  52. package/aftonbladet/cjs/index.js +1 -1
  53. package/aftonbladet/es/_auto-entry_aftonbladet-C7dg3LvI.js +1 -0
  54. package/aftonbladet/es/{events-BciUTPAw.js → events-C0TfuGMa.js} +1 -1
  55. package/aftonbladet/es/{index-LJ_401M8.js → index-0G2OiuYp.js} +1 -1
  56. package/aftonbladet/es/{index-BjaugwcA.js → index-B27-k0Bv.js} +1 -1
  57. package/aftonbladet/es/{index-CDVUuKiL.js → index-Cn6PghjB.js} +1 -1
  58. package/aftonbladet/es/{index-BQp8szO4.js → index-CzoGG22Y.js} +1 -1
  59. package/aftonbladet/es/{index-c2ISyeBZ.js → index-Se9VW4lb.js} +1 -1
  60. package/aftonbladet/es/{index-D5FHkWBt.js → index-_VZ-L1q3.js} +1 -1
  61. package/aftonbladet/es/{index-DYL16SiL.js → index-kUX7govM.js} +1 -1
  62. package/{aftenposten/es/index-F6hQEHv9.js → aftonbladet/es/index-p6JGQOSw.js} +1 -1
  63. package/aftonbladet/es/index.d.ts +2 -0
  64. package/aftonbladet/es/index.js +1 -1
  65. package/aftonbladet/es/{styles-DY-PRsOi.js → styles-9v2tn6re.js} +1 -1
  66. package/aftonbladet/es/{styles-Bo5pe7UF.js → styles-BoSSAgie.js} +1 -1
  67. package/aftonbladet/es/{styles-DfG4m6y0.js → styles-D0C8lck6.js} +1 -1
  68. package/aftonbladet/es/{styles-Djujyqgp.js → styles-DumjsW14.js} +1 -1
  69. package/aftonbladet/es/{styles-CTmjFUUF.js → styles-Dz08-G-B.js} +1 -1
  70. package/aftonbladet/es/{styles-CFSKglDC.js → styles-wfGxHu2V.js} +1 -1
  71. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-d2Dlhipw.js +1 -0
  72. package/aftonbladetv2/es/{events-z7QkQ0O_.js → events-t-Ti_Ek7.js} +1 -1
  73. package/aftonbladetv2/es/{index-CHZ1iWU2.js → index-BmhvYKUy.js} +1 -1
  74. package/{aftenpostenv2/es/index-BHUyXg_T.js → aftonbladetv2/es/index-BtGea1a1.js} +1 -1
  75. package/aftonbladetv2/es/{index-BYue1j9n.js → index-CNO7G6j3.js} +1 -1
  76. package/aftonbladetv2/es/{index-BEnNW7QM.js → index-DyygAABw.js} +1 -1
  77. package/aftonbladetv2/es/{index-D9WCVlVf.js → index-X3p-Yyt8.js} +1 -1
  78. package/aftonbladetv2/es/{index-S1ot-ETb.js → index-aEhW5QsE.js} +1 -1
  79. package/aftonbladetv2/es/{index-DSBxXAHH.js → index-bGc2JDMQ.js} +1 -1
  80. package/aftonbladetv2/es/{index-Cb-5dXHO.js → index-bIrTjUZ4.js} +1 -1
  81. package/aftonbladetv2/es/index.d.ts +2 -0
  82. package/aftonbladetv2/es/index.js +1 -1
  83. package/aftonbladetv2/es/{styles-DwPTni6g.js → styles-BHHYBCj3.js} +1 -1
  84. package/aftonbladetv2/es/{styles-D-msgy6U.js → styles-BJflJdWJ.js} +1 -1
  85. package/aftonbladetv2/es/{styles-DcT-kMN6.js → styles-Bn6CdgQS.js} +1 -1
  86. package/aftonbladetv2/es/{styles-D93Yddu9.js → styles-Bsh6GbyT.js} +1 -1
  87. package/aftonbladetv2/es/{styles-C3Mi_h4N.js → styles-DmtjL3Np.js} +1 -1
  88. package/aftonbladetv2/es/{styles-YO7iFgvJ.js → styles-mvEHP7wd.js} +1 -1
  89. package/brandmetrics/cjs/index.js +1 -1
  90. package/brandmetrics/es/index.js +1 -1
  91. package/bt/cjs/index.d.ts +2 -0
  92. package/bt/cjs/index.js +1 -1
  93. package/bt/es/_auto-entry_bt-CQjAhlLt.js +1 -0
  94. package/bt/es/{events-zSWMfNcw.js → events-BYNFuTDA.js} +1 -1
  95. package/{sa/es/index-Cs1N3W8N.js → bt/es/index-3De8sce6.js} +1 -1
  96. package/bt/es/{index-DTmY0FHd.js → index-8f_QWruA.js} +1 -1
  97. package/bt/es/{index-DVa0T_5U.js → index-B27i8Cs6.js} +1 -1
  98. package/bt/es/{index-Bcax_Dbe.js → index-BmWGl3Tn.js} +1 -1
  99. package/bt/es/{index-B8JH-Nfp.js → index-BtG9Zkin.js} +1 -1
  100. package/bt/es/{index-D5brydyb.js → index-Bv5mSUy3.js} +1 -1
  101. package/{sa/es/index-BTsAClL0.js → bt/es/index-C9JhueRO.js} +1 -1
  102. package/bt/es/{index-DyOlSGg2.js → index-U7ovHZpK.js} +1 -1
  103. package/bt/es/index.d.ts +2 -0
  104. package/bt/es/index.js +1 -1
  105. package/bt/es/{styles-CwmMPOvv.js → styles-Bjps-lRi.js} +1 -1
  106. package/bt/es/{styles-DKR9_2o0.js → styles-BkdUzUGT.js} +1 -1
  107. package/bt/es/{styles-Bm8PwReK.js → styles-C-IbRWzC.js} +1 -1
  108. package/bt/es/{styles-CnEaeIlW.js → styles-C8DYph2y.js} +1 -1
  109. package/{sa/es/styles-CAY-jQ81.js → bt/es/styles-CBnKbpRV.js} +1 -1
  110. package/bt/es/{styles-BzqMXPlJ.js → styles-CDMt2lG3.js} +1 -1
  111. package/bt/es/{styles-BZ6tylNM.js → styles-ClSyNpQJ.js} +1 -1
  112. package/bt/es/{styles-CItDFgqI.js → styles-DTQkSe9T.js} +1 -1
  113. package/bt/es/{styles-mbD9xc0n.js → styles-Dlh91Srk.js} +1 -1
  114. package/btv2/es/_auto-entry_btv2-BTPxeX0a.js +1 -0
  115. package/{omni/es/events-DaZPltpI.js → btv2/es/events-DjzOFnHw.js} +1 -1
  116. package/btv2/es/{index-DEFnGbQS.js → index-BABADl9C.js} +1 -1
  117. package/btv2/es/{index-CZ2jUsC8.js → index-BnQqpak9.js} +1 -1
  118. package/{sav2/es/index-DG3oHJ_-.js → btv2/es/index-C3OQ39Sa.js} +1 -1
  119. package/btv2/es/{index-CxLja4KL.js → index-D67n9KOt.js} +1 -1
  120. package/btv2/es/{index-Dre9lOD6.js → index-DQ-E6AYd.js} +1 -1
  121. package/btv2/es/{index-BxjAtqJH.js → index-Dfkm8Dgt.js} +1 -1
  122. package/btv2/es/{index-DYVDLzgr.js → index-QBrrkxHf.js} +1 -1
  123. package/{omni/es/index-PpdxwSxB.js → btv2/es/index-a76sw4MW.js} +1 -1
  124. package/btv2/es/index.d.ts +2 -0
  125. package/btv2/es/index.js +1 -1
  126. package/{sav2/es/styles-DG0SdBOt.js → btv2/es/styles-A1l-nZlU.js} +1 -1
  127. package/{sav2/es/styles-uE3YihAM.js → btv2/es/styles-BC0RjsLq.js} +1 -1
  128. package/btv2/es/{styles-Ck3Mb8Qt.js → styles-BMSwqy5y.js} +1 -1
  129. package/btv2/es/{styles-DcZW3m-_.js → styles-B_70F_og.js} +1 -1
  130. package/btv2/es/{styles-CjpKLMMh.js → styles-Bs-9S8lp.js} +1 -1
  131. package/btv2/es/{styles-CYcZm-cw.js → styles-CaiZWQmt.js} +1 -1
  132. package/{sav2/es/styles-CCVC5ase.js → btv2/es/styles-DBDwtkGz.js} +1 -1
  133. package/btv2/es/{styles-m5JoY278.js → styles-a1TuClhx.js} +1 -1
  134. package/common/cjs/index.js +1 -1
  135. package/common/es/index.js +1 -1
  136. package/e24/es/_auto-entry_e24-CiWqBVTh.js +1 -0
  137. package/e24/es/{events-BtU2-QIs.js → events-BJ1UtnWO.js} +1 -1
  138. package/e24/es/{index-Bmex-Pem.js → index-3DSCHsjA.js} +1 -1
  139. package/e24/es/{index-DKdW_Qc1.js → index-BZdZcQTo.js} +1 -1
  140. package/e24/es/{index-5ILorHZy.js → index-BfUwF_x_.js} +1 -1
  141. package/e24/es/index-CNrfNED_.js +1 -0
  142. package/e24/es/{index-BkSlTfIh.js → index-D1ck2pi5.js} +1 -1
  143. package/e24/es/{index-DltA2YYu.js → index-GrGRzCam.js} +1 -1
  144. package/e24/es/{index-Bz8KJdQV.js → index-kRRG-R3t.js} +1 -1
  145. package/e24/es/{index-KaBys6Eu.js → index-kThhGd_q.js} +1 -1
  146. package/e24/es/index.d.ts +2 -0
  147. package/e24/es/index.js +1 -1
  148. package/e24/es/{styles-BNz50moW.js → styles-BMCsZxqV.js} +1 -1
  149. package/e24/es/{styles-BVuLNz28.js → styles-BaQlPwGg.js} +1 -1
  150. package/e24/es/{styles-Gdz_uAZV.js → styles-CZWt37qe.js} +1 -1
  151. package/e24/es/{styles-CdZY3dq0.js → styles-CbWKxZm7.js} +1 -1
  152. package/e24/es/{styles-DhRjX91k.js → styles-D2sgq8nC.js} +1 -1
  153. package/e24/es/{styles-DlQuPLF7.js → styles-DAAdjOnO.js} +1 -1
  154. package/{tv4/es/styles-ChpbjZsl.js → e24/es/styles-DDqsHVBo.js} +1 -1
  155. package/e24/es/{styles-Bc2ymTRk.js → styles-DZ_E-i0E.js} +1 -1
  156. package/e24/es/{styles-emvV_IJ8.js → styles-Jgq2X5tq.js} +1 -1
  157. package/e24/es/{styles-CmMqcxDo.js → styles-RqQ7ZJST.js} +1 -1
  158. package/e24/es/{styles-D-7I2nFd.js → styles-fwzTEr9h.js} +1 -1
  159. package/editory/cjs/index.d.ts +1 -0
  160. package/editory/cjs/index.js +1 -1
  161. package/editory/es/index.d.ts +1 -0
  162. package/editory/es/index.js +1 -1
  163. package/fotbollskanalen/cjs/index.d.ts +2 -0
  164. package/fotbollskanalen/cjs/index.js +1 -1
  165. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-CNwpo0tx.js +1 -0
  166. package/fotbollskanalen/es/{events-BM9H_Hwg.js → events-BTP1mAoD.js} +1 -1
  167. package/fotbollskanalen/es/{index-BpCO9liF.js → index-BPTr0QNy.js} +1 -1
  168. package/fotbollskanalen/es/{index-BZ3u0pAs.js → index-BmNocafq.js} +1 -1
  169. package/fotbollskanalen/es/{index-GNO9rYbM.js → index-CGi4oznb.js} +1 -1
  170. package/fotbollskanalen/es/index-D2FWD2Ph.js +1 -0
  171. package/fotbollskanalen/es/{index-CuBvun9V.js → index-D3ujBBCm.js} +1 -1
  172. package/fotbollskanalen/es/{index-kvoAekJM.js → index-DCw-V9AS.js} +1 -1
  173. package/fotbollskanalen/es/{index-i1OXEX3j.js → index-DDJSwAoG.js} +1 -1
  174. package/fotbollskanalen/es/{index-C996tDgx.js → index-xhrQPzZs.js} +1 -1
  175. package/fotbollskanalen/es/index.d.ts +2 -0
  176. package/fotbollskanalen/es/index.js +1 -1
  177. package/fotbollskanalen/es/{styles-CSwgB2YH.js → styles-DHJO0oaY.js} +1 -1
  178. package/fotbollskanalen/es/{styles-B1canwjK.js → styles-DJTLr6bB.js} +1 -1
  179. package/fotbollskanalen/es/{styles-D_YiYNmI.js → styles-Dm5jGHCV.js} +1 -1
  180. package/fotbollskanalen/es/{styles-DMynzIJ1.js → styles-NARwlEN_.js} +1 -1
  181. package/glimr/cjs/index.js +1 -1
  182. package/glimr/es/index.js +1 -1
  183. package/godt/cjs/index.d.ts +2 -0
  184. package/godt/cjs/index.js +1 -1
  185. package/kilkaya/cjs/index.d.ts +1 -0
  186. package/kilkaya/cjs/index.js +1 -1
  187. package/kilkaya/es/index.d.ts +1 -0
  188. package/kilkaya/es/index.js +1 -1
  189. package/klart/cjs/index.d.ts +2 -0
  190. package/klart/cjs/index.js +1 -1
  191. package/koket/cjs/index.d.ts +2 -0
  192. package/koket/cjs/index.js +1 -1
  193. package/koket/es/_auto-entry_koket-DPuSUII1.js +1 -0
  194. package/koket/es/{events-cQMVjz-j.js → events-CJX4HVct.js} +1 -1
  195. package/koket/es/{index-BRcjZFmc.js → index-BGH405_L.js} +1 -1
  196. package/koket/es/{index-Dxh1jnMl.js → index-BSav0n90.js} +1 -1
  197. package/koket/es/{index-CGle-E3E.js → index-BsPLRCmr.js} +1 -1
  198. package/{svdv2/es/index-DHCVf0xu.js → koket/es/index-CWPATGpI.js} +1 -1
  199. package/koket/es/index-CcUU_LBL.js +1 -0
  200. package/koket/es/{index-DuAB56n3.js → index-DPZ6goU-.js} +1 -1
  201. package/{svdv2/es/index-iZvaPYwJ.js → koket/es/index-GWFAx3Ny.js} +1 -1
  202. package/koket/es/{index-zyt3V-yF.js → index-VrYRDuZd.js} +1 -1
  203. package/koket/es/index.d.ts +2 -0
  204. package/koket/es/index.js +1 -1
  205. package/koket/es/{styles-4zD-USa0.js → styles-B_-eLBVz.js} +1 -1
  206. package/{svdv2/es/styles-DT9mimUD.js → koket/es/styles-CmA-zIbv.js} +1 -1
  207. package/koket/es/{styles-CINT-liB.js → styles-DINl5Pkj.js} +1 -1
  208. package/{svdv2/es/styles-DBwzWxyS.js → koket/es/styles-Dp-bdczj.js} +1 -1
  209. package/minmote/cjs/index.d.ts +2 -0
  210. package/minmote/cjs/index.js +1 -1
  211. package/mtv/es/_auto-entry_mtv-Byp3l5jJ.js +1 -0
  212. package/mtv/es/{events-D6eNc80H.js → events-VgOnbKKP.js} +1 -1
  213. package/mtv/es/{index-BhtXnLCK.js → index-Bg0gFN_1.js} +1 -1
  214. package/mtv/es/{index-P17-iu-w.js → index-BnRVzwL4.js} +1 -1
  215. package/mtv/es/{index-C2XLOnbD.js → index-CQlAFZIi.js} +1 -1
  216. package/mtv/es/{index-D0yHUhvA.js → index-Cz7I-77M.js} +1 -1
  217. package/mtv/es/{index-C1xrqa-K.js → index-D258yDlF.js} +1 -1
  218. package/mtv/es/{index-D6DOIFkl.js → index-DulcB27S.js} +1 -1
  219. package/{tv4/es/index-D_NKdUhT.js → mtv/es/index-yx_SqlZJ.js} +1 -1
  220. package/mtv/es/{index-DsQiBTiE.js → index-zjDC-dSK.js} +1 -1
  221. package/mtv/es/index.d.ts +2 -0
  222. package/mtv/es/index.js +1 -1
  223. package/omni/es/_auto-entry_omni-BZYPtbSe.js +1 -0
  224. package/{tvnu/es/events-bziv0wIO.js → omni/es/events-dFUoARbr.js} +1 -1
  225. package/omni/es/{index--Ge_tJAt.js → index-8ndL1OTL.js} +1 -1
  226. package/omni/es/{index-C5phcvAz.js → index-BLt0YX1Q.js} +1 -1
  227. package/omni/es/{index-Cgguc_hJ.js → index-CIrBK2oM.js} +1 -1
  228. package/omni/es/index-CKHjFLuv.js +1 -0
  229. package/omni/es/{index-Cpt2TcN0.js → index-DMUFkCRF.js} +1 -1
  230. package/{btv2/es/index-C6jg4555.js → omni/es/index-Dup65CXz.js} +1 -1
  231. package/{tvnu/es/index-Cj61_PZ4.js → omni/es/index-atlvIx9w.js} +1 -1
  232. package/omni/es/{index-Bw81p4Rt.js → index-gr7yi249.js} +1 -1
  233. package/omni/es/index.d.ts +2 -0
  234. package/omni/es/index.js +1 -1
  235. package/omni/es/{styles-zf0Vergo.js → styles-ACjvS7n-.js} +1 -1
  236. package/omni/es/{styles-Cn1k7uPH.js → styles-DQuYB_Ix.js} +1 -1
  237. package/package.json +1 -1
  238. package/pent/cjs/index.d.ts +2 -0
  239. package/pent/cjs/index.js +1 -1
  240. package/sa/cjs/index.d.ts +2 -0
  241. package/sa/cjs/index.js +1 -1
  242. package/sa/es/_auto-entry_sa-Bubpnlmq.js +1 -0
  243. package/sa/es/{events-CjSUqjTP.js → events-BimBj_Fr.js} +1 -1
  244. package/sa/es/{index-CTZsVg64.js → index-BFg1jCXk.js} +1 -1
  245. package/sa/es/{index-ZZCrsJwU.js → index-Bs5Yjt7y.js} +1 -1
  246. package/sa/es/{index-ChuXDpqn.js → index-D7MRpz6E.js} +1 -1
  247. package/{bt/es/index-B22ajbzx.js → sa/es/index-Df2PvIll.js} +1 -1
  248. package/sa/es/{index-DtVudlzc.js → index-DjFL6Jdg.js} +1 -1
  249. package/sa/es/{index-D7wCRzzd.js → index-Grka_gT3.js} +1 -1
  250. package/{bt/es/index-CwJSeGo8.js → sa/es/index-W0z1PUtY.js} +1 -1
  251. package/sa/es/index-zXBlw8kE.js +1 -0
  252. package/sa/es/index.d.ts +2 -0
  253. package/sa/es/index.js +1 -1
  254. package/sa/es/{styles-Ci7xiEEX.js → styles-B1yYxVi7.js} +1 -1
  255. package/sa/es/{styles-I-AdzkGz.js → styles-B8rUG6of.js} +1 -1
  256. package/{vg/es/styles-CEEQ8VE2.js → sa/es/styles-BIe7_WXC.js} +1 -1
  257. package/sa/es/{styles-BPIQjGEq.js → styles-CqdVBpVM.js} +1 -1
  258. package/sa/es/{styles-DpNJdlmo.js → styles-DFiDFaox.js} +1 -1
  259. package/{vg/es/styles-pO-83GAY.js → sa/es/styles-DnmQepxB.js} +1 -1
  260. package/sa/es/{styles-CrlltCSJ.js → styles-DtlGGIgy.js} +1 -1
  261. package/sa/es/{styles-Di5xHLEI.js → styles-QfIad4NO.js} +1 -1
  262. package/sa/es/{styles-B7YGTqip.js → styles-hoazBB3S.js} +1 -1
  263. package/sav2/es/_auto-entry_sav2-BtHWkK4d.js +1 -0
  264. package/sav2/es/{events-DnE9qtT1.js → events-Dl2j6RLM.js} +1 -1
  265. package/sav2/es/{index-CUa7vpUR.js → index-BsZMxqk4.js} +1 -1
  266. package/sav2/es/{index-Brw9IwKK.js → index-CLVRxcbe.js} +1 -1
  267. package/sav2/es/{index-BvdAyqWN.js → index-CQyNQlon.js} +1 -1
  268. package/{vgv2/es/index-CcqTyym2.js → sav2/es/index-CfC8Cjnp.js} +1 -1
  269. package/sav2/es/{index-CjXjhblq.js → index-DsCDoaZA.js} +1 -1
  270. package/sav2/es/index-_WYFiX6l.js +1 -0
  271. package/{omni/es/index-33SFh6iz.js → sav2/es/index-gqG8HG_3.js} +1 -1
  272. package/sav2/es/{index-BMsqEfXz.js → index-xYflH3-C.js} +1 -1
  273. package/sav2/es/index.d.ts +2 -0
  274. package/sav2/es/index.js +1 -1
  275. package/sav2/es/{styles-D7F5WkPg.js → styles-4F6bRxdr.js} +1 -1
  276. package/{btv2/es/styles-eJ3heWTo.js → sav2/es/styles-BJh98kSb.js} +1 -1
  277. package/sav2/es/{styles-T0np29DZ.js → styles-C7AOW7v5.js} +1 -1
  278. package/{vgv2/es/styles-CUp8o6G7.js → sav2/es/styles-C9zTcJrF.js} +1 -1
  279. package/{vgv2/es/styles-B_3Rdqqd.js → sav2/es/styles-CI0-g-Sr.js} +1 -1
  280. package/sav2/es/{styles-cOFFQMuA.js → styles-Cdh41J2z.js} +1 -1
  281. package/sav2/es/{styles-DDY9kZ83.js → styles-D1v5XOce.js} +1 -1
  282. package/sav2/es/{styles-CXwJuziz.js → styles-Dvn0b9Zy.js} +1 -1
  283. package/svd/cjs/index.d.ts +2 -0
  284. package/svd/cjs/index.js +1 -1
  285. package/svd/es/_auto-entry_svd-LVsRlowP.js +1 -0
  286. package/{tv4/es/events-DnuQIZaL.js → svd/es/events-C-Yz2gOx.js} +1 -1
  287. package/svd/es/{index-DnxLOLhV.js → index-AL1G22Tm.js} +1 -1
  288. package/svd/es/{index-B7T3Sw8U.js → index-BqYtWXST.js} +1 -1
  289. package/svd/es/{index-CwhYXMlK.js → index-CXUP7LME.js} +1 -1
  290. package/svd/es/index-DVqL1Y7e.js +1 -0
  291. package/svd/es/{index-DAowtH2A.js → index-F5tkrRsJ.js} +1 -1
  292. package/{mtv/es/index-9-kjhk2U.js → svd/es/index-FO0ob_nK.js} +1 -1
  293. package/svd/es/{index-D6zMX0PF.js → index-X-lHg9_k.js} +1 -1
  294. package/svd/es/{index-Cfiv4vyd.js → index-wwV0ywSi.js} +1 -1
  295. package/svd/es/index.d.ts +2 -0
  296. package/svd/es/index.js +1 -1
  297. package/svd/es/{styles-Boj9wVXW.js → styles-BB8HlJAo.js} +1 -1
  298. package/svd/es/{styles-Dt2lj1mQ.js → styles-Bm39xUfW.js} +1 -1
  299. package/svd/es/{styles-DmH40sMg.js → styles-CTzkFU91.js} +1 -1
  300. package/svd/es/{styles-BpA5Jvq-.js → styles-D-XgxDnA.js} +1 -1
  301. package/svd/es/{styles-DHaqO9eN.js → styles-DZjzuV9x.js} +1 -1
  302. package/svd/es/{styles-Cop-nSJ3.js → styles-Df1wV-cL.js} +1 -1
  303. package/svdv2/es/_auto-entry_svdv2-C54SXr7t.js +1 -0
  304. package/svdv2/es/{events-Chs189R7.js → events-RGSphjTX.js} +1 -1
  305. package/{koket/es/index-AFG1CMgR.js → svdv2/es/index-BE3OWjRk.js} +1 -1
  306. package/{koket/es/index-ZUTKeQO3.js → svdv2/es/index-BIYxXi-S.js} +1 -1
  307. package/svdv2/es/{index-BfrN2w2x.js → index-BTEjV37p.js} +1 -1
  308. package/svdv2/es/{index-lu08HDz9.js → index-C548rGCj.js} +1 -1
  309. package/svdv2/es/index-CppcUK1D.js +1 -0
  310. package/svdv2/es/{index-DJTfGlGA.js → index-CsPz0aRs.js} +1 -1
  311. package/svdv2/es/{index-BVVVZkXV.js → index-DaMOgGlv.js} +1 -1
  312. package/svdv2/es/{index-CMIsb2pX.js → index-kfpwHSuQ.js} +1 -1
  313. package/svdv2/es/index.d.ts +2 -0
  314. package/svdv2/es/index.js +1 -1
  315. package/svdv2/es/{styles-CzECSXpq.js → styles-BnCqNsuR.js} +1 -1
  316. package/svdv2/es/{styles-DFb-rmXh.js → styles-CaPcQyEN.js} +1 -1
  317. package/{koket/es/styles-D8JQ7i7s.js → svdv2/es/styles-CjMLLiYX.js} +1 -1
  318. package/svdv2/es/{styles-CTYO-9wv.js → styles-DsUcjVNw.js} +1 -1
  319. package/{koket/es/styles-DKv7V0az.js → svdv2/es/styles-UKpEQKp4.js} +1 -1
  320. package/svdv2/es/{styles-BheiqvXx.js → styles-r3lCyu2s.js} +1 -1
  321. package/svdv2/es/{styles-DBH8PffY.js → styles-vUVyBLYm.js} +1 -1
  322. package/tek/cjs/index.d.ts +2 -0
  323. package/tek/cjs/index.js +1 -1
  324. package/tracker/cjs/index.d.ts +1 -0
  325. package/tracker/es/index.d.ts +1 -0
  326. package/tv4/cjs/index.d.ts +2 -0
  327. package/tv4/cjs/index.js +1 -1
  328. package/tv4/es/_auto-entry_tv4-J0RJP60L.js +1 -0
  329. package/{svd/es/events-JIIw3wQ4.js → tv4/es/events-BTxqmSwe.js} +1 -1
  330. package/tv4/es/{index-Chz83o3B.js → index-BAcR92lY.js} +1 -1
  331. package/tv4/es/{index-DzMH9KJx.js → index-BOGf7li8.js} +1 -1
  332. package/{svd/es/index-BjRgm-QS.js → tv4/es/index-CHZXbEyP.js} +1 -1
  333. package/tv4/es/{index-CSUaKM2g.js → index-CJR86iBd.js} +1 -1
  334. package/tv4/es/{index-afLAzQDR.js → index-Cn7h-8OW.js} +1 -1
  335. package/tv4/es/{index-Ve5Dg2Dh.js → index-DhG8rssK.js} +1 -1
  336. package/tv4/es/{index-Ci34Vysr.js → index-M05QzrSM.js} +1 -1
  337. package/tv4/es/{index-PlGN6c11.js → index-YONPxFyn.js} +1 -1
  338. package/tv4/es/index.d.ts +2 -0
  339. package/tv4/es/index.js +1 -1
  340. package/tv4/es/{styles-MbsjxL7N.js → styles-BBSp9-kd.js} +1 -1
  341. package/tv4/es/{styles-C2wk_Khg.js → styles-C4Z98TUR.js} +1 -1
  342. package/tv4/es/{styles-3wU3KckT.js → styles-GTw50UWu.js} +1 -1
  343. package/{e24/es/styles-BFwmVCVa.js → tv4/es/styles-W-jqTLxH.js} +1 -1
  344. package/tvnu/cjs/index.d.ts +2 -0
  345. package/tvnu/cjs/index.js +1 -1
  346. package/tvnu/es/_auto-entry_tvnu-nHhCtCdC.js +1 -0
  347. package/{btv2/es/events-Bj3hwYdO.js → tvnu/es/events-CmosRn92.js} +1 -1
  348. package/tvnu/es/{index-CpGIyR-l.js → index-AWgBZm-j.js} +1 -1
  349. package/tvnu/es/{index-BzH9w-Kz.js → index-BLOG3d2Z.js} +1 -1
  350. package/tvnu/es/{index-5fYx7-Qg.js → index-BXlI-yMl.js} +1 -1
  351. package/{sav2/es/index-DjTjT06u.js → tvnu/es/index-C1sdyno9.js} +1 -1
  352. package/tvnu/es/{index-cSlV6dga.js → index-C2endiiC.js} +1 -1
  353. package/tvnu/es/{index-BVn0qa--.js → index-C339lMu_.js} +1 -1
  354. package/{vgv2/es/index-cEzFpWfW.js → tvnu/es/index-C_LtINuD.js} +1 -1
  355. package/tvnu/es/{index-tT5A6Cam.js → index-rwdvqW1r.js} +1 -1
  356. package/tvnu/es/index.d.ts +2 -0
  357. package/tvnu/es/index.js +1 -1
  358. package/{btv2/es/styles-Ck2zXq6a.js → tvnu/es/styles-CrsmdvvP.js} +1 -1
  359. package/tvnu/es/{styles-CCHywZGz.js → styles-DW37EZd8.js} +1 -1
  360. package/tvnu/es/{styles-BdUj5JN8.js → styles-ch2UtLX8.js} +1 -1
  361. package/types/index.d.ts +2 -0
  362. package/vg/cjs/index.d.ts +2 -0
  363. package/vg/cjs/index.js +1 -1
  364. package/vg/es/_auto-entry_vg-DSmrQxQM.js +1 -0
  365. package/vg/es/{events-CS4hl2bo.js → events-RGG-7OCH.js} +1 -1
  366. package/vg/es/{index-Vi8Zce_j.js → index-4k-8s-wK.js} +1 -1
  367. package/vg/es/{index-C0FSaW5p.js → index-BCy6svW1.js} +1 -1
  368. package/vg/es/{index-CQ1KBql4.js → index-BdhUwNvm.js} +1 -1
  369. package/vg/es/{index-SeBNAtI0.js → index-BhiNHxk1.js} +1 -1
  370. package/vg/es/{index-BmfBRu3f.js → index-CamhTi4Z.js} +1 -1
  371. package/vg/es/{index-BrT3FJxK.js → index-RsclPV6J.js} +1 -1
  372. package/vg/es/{index-RsIFv2f4.js → index-jXtsMAqa.js} +1 -1
  373. package/vg/es/{index-D_moDRrH.js → index-vyWVAwoM.js} +1 -1
  374. package/vg/es/index.d.ts +2 -0
  375. package/vg/es/index.js +1 -1
  376. package/vg/es/{styles-v8N4Hyfg.js → styles-BBo1Z5go.js} +1 -1
  377. package/vg/es/{styles-Dg6OMSWp.js → styles-BEWdh2yR.js} +1 -1
  378. package/{bt/es/styles-CA4Ooo3z.js → vg/es/styles-BeB7UibG.js} +1 -1
  379. package/vg/es/{styles-D_oedf9U.js → styles-BffNrppL.js} +1 -1
  380. package/vg/es/{styles-BhM96y6T.js → styles-Blq1intL.js} +1 -1
  381. package/vg/es/{styles-BDiyRuXL.js → styles-Bsm2y8y8.js} +1 -1
  382. package/vg/es/{styles-DyJUQx6o.js → styles-CDXx_CtD.js} +1 -1
  383. package/vg/es/{styles-EUB10Kbk.js → styles-D4YwsErA.js} +1 -1
  384. package/vg/es/{styles-DKFcQU-U.js → styles-DRWZiXl_.js} +1 -1
  385. package/vg/es/{styles-BOqfPQzV.js → styles-Dllpvla9.js} +1 -1
  386. package/vg/es/{styles-DjlVH3u-.js → styles-DmQNc9f3.js} +1 -1
  387. package/{sa/es/styles-DEvMHcKN.js → vg/es/styles-DrrWDc6V.js} +1 -1
  388. package/vg/es/{styles-C2mlUMGG.js → styles-QCFxGDwc.js} +1 -1
  389. package/vg/es/{styles-CxtVuG8b.js → styles-i2IIvfyp.js} +1 -1
  390. package/vg/es/{styles-DOuw1KBv.js → styles-mAwTANya.js} +1 -1
  391. package/vgv2/es/_auto-entry_vgv2-BS7IP5qT.js +1 -0
  392. package/vgv2/es/{events-DzgM4yb5.js → events-BZ4TXbvg.js} +1 -1
  393. package/vgv2/es/{index-DMVM-D6g.js → index-B0l6QPoC.js} +1 -1
  394. package/vgv2/es/{index-DqJ2O9Kf.js → index-BKdW1kkO.js} +1 -1
  395. package/vgv2/es/{index-BvkpV7lS.js → index-BXXxAaoH.js} +1 -1
  396. package/vgv2/es/{index--AEEdPVC.js → index-C934Bmjm.js} +1 -1
  397. package/{tvnu/es/index-BCu6eGB9.js → vgv2/es/index-DBXwy3qd.js} +1 -1
  398. package/vgv2/es/{index-CPqpPTTS.js → index-DHG1NHwG.js} +1 -1
  399. package/vgv2/es/{index-SV3ROTg3.js → index-DuJwLEdE.js} +1 -1
  400. package/{sav2/es/index-BhbIuNSS.js → vgv2/es/index-yqZz43VB.js} +1 -1
  401. package/vgv2/es/index.d.ts +2 -0
  402. package/vgv2/es/index.js +1 -1
  403. package/vgv2/es/{styles-qCpjwYNm.js → styles-B-Dll6bX.js} +1 -1
  404. package/vgv2/es/{styles-EXuOrm9d.js → styles-BkHvBgLM.js} +1 -1
  405. package/vgv2/es/{styles-DcimUPwb.js → styles-BvlgFK0_.js} +1 -1
  406. package/vgv2/es/{styles-NvHo_UDK.js → styles-Bw1y6UIj.js} +1 -1
  407. package/vgv2/es/{styles-C9crdlaQ.js → styles-BzD5P_5S.js} +1 -1
  408. package/vgv2/es/{styles-vvF4HJY2.js → styles-C2di7lAg.js} +1 -1
  409. package/vgv2/es/{styles-DxvWf-yC.js → styles-CC-u65CZ.js} +1 -1
  410. package/vgv2/es/{styles-fX8T2CG0.js → styles-CxZHvETQ.js} +1 -1
  411. package/{btv2/es/styles-BHEYAcf8.js → vgv2/es/styles-CzLgI9Qd.js} +1 -1
  412. package/vgv2/es/{styles-D_gaHZtG.js → styles-D8yaHW1R.js} +1 -1
  413. package/vgv2/es/{styles-CO43xTb1.js → styles-DB50pp-A.js} +1 -1
  414. package/{tvnu/es/styles-D6C_Zblf.js → vgv2/es/styles-DxG_CrS5.js} +1 -1
  415. package/vgv2/es/{styles-CgUYkF15.js → styles-HATiwWe4.js} +1 -1
  416. package/vgv2/es/{styles-BS0FxVQ9.js → styles-kYeqZDJm.js} +1 -1
  417. package/vgv2/es/{styles-D-5nGyTD.js → styles-kctLjttM.js} +1 -1
  418. package/video/cjs/index.js +1 -1
  419. package/video/es/index.js +1 -1
  420. package/aftenposten/es/_auto-entry_aftenposten-BsiZecpg.js +0 -1
  421. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CObS4Q2C.js +0 -1
  422. package/aftonbladet/es/_auto-entry_aftonbladet-CgRJPsgC.js +0 -1
  423. package/aftonbladet/es/index-5zBPAAOD.js +0 -1
  424. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DsuV-U5d.js +0 -1
  425. package/aftonbladetv2/es/index-CftV2j5Q.js +0 -1
  426. package/bt/es/_auto-entry_bt-BtMu0IgL.js +0 -1
  427. package/btv2/es/_auto-entry_btv2-IP445i6K.js +0 -1
  428. package/btv2/es/index-683l-LIl.js +0 -1
  429. package/e24/es/_auto-entry_e24-CrOhLxsK.js +0 -1
  430. package/e24/es/index-CF8xjZ_J.js +0 -1
  431. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-Otqtyxyq.js +0 -1
  432. package/fotbollskanalen/es/index-5zC5VZwB.js +0 -1
  433. package/koket/es/_auto-entry_koket-D-YoP4pX.js +0 -1
  434. package/koket/es/index-BVnNph06.js +0 -1
  435. package/mtv/es/_auto-entry_mtv-C-DqcBJN.js +0 -1
  436. package/omni/es/_auto-entry_omni-CC0kqj6c.js +0 -1
  437. package/omni/es/index-BMg_8S9i.js +0 -1
  438. package/sa/es/_auto-entry_sa-CFbFmDgg.js +0 -1
  439. package/sa/es/index-Bn5YnF0C.js +0 -1
  440. package/sav2/es/_auto-entry_sav2-DoLAdpuL.js +0 -1
  441. package/svd/es/_auto-entry_svd-KrVcbktZ.js +0 -1
  442. package/svd/es/index-Ci0Z7Tb5.js +0 -1
  443. package/svdv2/es/_auto-entry_svdv2-8SdY4zKe.js +0 -1
  444. package/svdv2/es/index-CIr37atK.js +0 -1
  445. package/tv4/es/_auto-entry_tv4-c4fYDhn_.js +0 -1
  446. package/tvnu/es/_auto-entry_tvnu-CKk_YH-J.js +0 -1
  447. package/vg/es/_auto-entry_vg-C1IbUc5x.js +0 -1
  448. package/vgv2/es/_auto-entry_vgv2-BGtOinEs.js +0 -1
package/video/es/index.js CHANGED
@@ -1 +1 @@
1
- function e(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{d(i.next(e))}catch(e){o(e)}}function a(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(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 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}),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"}},r={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},o=e=>(null==e?void 0:e.parent)?[...o(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]=o(e);return r[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:o(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",j="9-16",A="responsive",$={[_]:1,[S]:1.78,[j]:.56,[A]:1},k={[_]:1,[S]:1.78,[E]:1.33,[j]:.56},N=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},s=v===n?f:y,a=r.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&&o?o: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 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 s(e,t,i){var s={};return i.isMergeableObject(e)&&r(e).forEach(function(t){s[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])?s[r]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(r,i)(e[r],t[r],i):s[r]=n(t[r],i))}),s}function a(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(t)?a?o.arrayMerge(t,r,o):s(t,r,o):n(r,o)}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={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},H=(e,t)=>R(e,t,U),F=(e,t)=>Object.assign(Object.assign({},e),t),L=(e,t)=>{var n;return H(null!==(n=e)&&void 0!==n?n:{},t)},V={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},B=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=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==r?void 0:r.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,s=[{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"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},q={placements:(e,t)=>t,takeover:L,refreshConfig:F,editory:L,appearanceConfig:L,pageContext:F,pageOptions:F,tcf:F};class K{set(e){B(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(q)){const i=t[e];void 0!==i&&(n[e]=q[e](n[e],i))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=H(K.DEFAULT_SITE_HANDLERS,e)}}K.DEFAULT_SITE_HANDLERS={siteEvents:V,initNativeAd:()=>{}};const W=new K;W.modifyConfigProperties.bind(W);const z=864e5,J=(()=>{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=z)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=z)=>{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}}}})(),G=["glwe_","glwet_"],Q={geofenceTags:[],geoTags:[],weatherTags:[]},Y=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 r=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),X="cmp:loaded";let Z="undefined"!=typeof window?window._tcf_:void 0,ee=!1;const te=(t,i,r)=>{const o=!!(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))(o,d))return!0;if(ee)return null;if(!Z)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=Z.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),Z.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"),Z=window._tcf_,void e(Z);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(Z=window._tcf_,e(Z)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(X,n),ee=!0,t(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(X,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)&&r===n.SE,i=(null==t?void 0:t.advertisingCMPSignalEnabled)&&r===n.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Y(t);if(!(null==t?void 0:t.enabled))return!0;const o=c();return null!==o?o:yield new Promise((e,t)=>{try{if(!Z)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);Z.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),Z.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},ne=(t,n,i,...r)=>e(void 0,[t,n,i,...r],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:r}=te(e,0,n);return(yield r())?(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)}),ie={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"},re=e=>G.some(t=>e.startsWith(t)),oe=e=>e.startsWith("glgc_"),se=e=>!re(e)&&!oe(e),ae=(t,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:r,pageContext:{countryCode:o}={}}=t,s=yield((...t)=>e(void 0,[...t],void 0,function*(e=W.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled)return yield ne(t,n,i,"glimr");const{getConsentAsync:r}=te(t,0,i);return yield r()}))(t);if(!(null==r?void 0:r.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===n.NO?"no-sno":"se-generic")(o),l=de(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),de=(e,t)=>{const n=le();if(!n)return Q;const i=((e=[])=>e.filter(re))(n),r=((e=[])=>e.filter(oe))(n),o=((e=[],t,n)=>{var i;const r=e.filter(se);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=ie[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},le=()=>{const e=J.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},ce="opaque",ue=t=>e(void 0,void 0,void 0,function*(){if(t.type!==ce){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),pe={get:(t,...n)=>e(void 0,[t,...n],void 0,function*(t,n={}){var{timeout:i}=n,r=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 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}(n,["timeout"]);if(i)return((t,n,i)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,r=setTimeout(()=>e.abort(),i);try{const i=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return ue(i)}finally{clearTimeout(r)}}))(t,r,i);const o=yield fetch(t,r);return ue(o)}),post:(t,n,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),r=yield fetch(t,{method:"POST",headers:n,body:e});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ve="advertory:ppids-cache",ge={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},he={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},fe={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ye={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},be={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class me{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 we=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 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||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:""}},Oe=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,r,o,s,a,d,l,c,u,p;const v=J.get(ve),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===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",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 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}}:{});J.set(ve,r)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield pe.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 r=yield((t,n)=>e(void 0,void 0,void 0,function*(){const e=yield t.getUserId();return e?`${be[n]}:${e}`:null}))(n,i),o=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:r},environmentId:{plain:o},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:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},Ce=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:r}=te(e,0,i);if(!(yield r()))return;const o=(e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null})("_pulse2data");return o?o.split(",")[9]:void 0}),Pe=()=>{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"},Ie=(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])},Te=()=>{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},_e=()=>{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},Se=()=>{const e=null!==(t=_e()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=_e()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ee=()=>Object.fromEntries(new URLSearchParams(window.location.search)),je=(n,i)=>e(void 0,void 0,void 0,function*(){const{tcf:r,pageContext:{publisher:o,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:n.isApp,countryCode:s,publisher:o,pageType:"front",deviceType:n.deviceType},c=(yield ne(r,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}=we.getPPIDs(),{ppid1:n,ppid2:i}=Oe.getPPIDs(),r=(new me).add(t,ge[f]).add(e,he[f]).add(i,fe[f]).add(n,ye[f]);return yield new Promise(e=>{e(r.buildVideoEids())})}));var f;const y=yield Ce({tcf:r,pageContext:l}),O=null!==(C=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==C?C:"";var C;const P=((e=1)=>Ie(k,Number(e.toFixed(2))))(n.instreamAspectRatio),I=(T=n.playerAspectRatio)?Ie($,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`]:o,[`${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`]:Pe(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Se(),[`${b}-tags`]:n.tags,[`${b}-articleid`]:O,"article-id":O},yield ae(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),n.isUserPresentOnFrontPage&&n.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),n.pageAdsKeywords),Object.keys(Ee()).some(e=>e.includes(w))&&(()=>{const e=Ee(),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})}),Ae=["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"],$e=["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"],ke=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ne=(e,t)=>{const n=[...Ae,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||ke.includes(e)?e:`kw_${e}`,t]))},xe=e=>Object.fromEntries(Object.entries(e).filter(([e])=>$e.includes(e))),Me=(t,n)=>e(void 0,void 0,void 0,function*(){var e,r,o,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===(r=null===(e=n.attributes)||void 0===e?void 0:e.id)||void 0===r?void 0:r.toString(),h=t.assetId===g,f=null!==(o=Number(t.aspectRatio))&&void 0!==o?o:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield je({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:Te(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),De=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,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,r),"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({},Ne(o,n)),xe(o)),{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({},o),{"se-generic-adformat":c("pause")})}}}},Re=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield Me(t,n);return De(e,t)});export{t as getTcfConsentKeywords,Re as getVideoAdsConfig};
1
+ function e(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{d(i.next(e))}catch(e){o(e)}}function a(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(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 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}),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"}},r={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},o=e=>(null==e?void 0:e.parent)?[...o(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]=o(e);return r[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:o(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",j="9-16",A="responsive",$={[_]:1,[S]:1.78,[j]:.56,[A]:1},k={[_]:1,[S]:1.78,[E]:1.33,[j]:.56},N=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},s=v===n?f:y,a=r.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&&o?o: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 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 s(e,t,i){var s={};return i.isMergeableObject(e)&&r(e).forEach(function(t){s[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])?s[r]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(r,i)(e[r],t[r],i):s[r]=n(t[r],i))}),s}function a(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(t)?a?o.arrayMerge(t,r,o):s(t,r,o):n(r,o)}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={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},H=(e,t)=>R(e,t,U),F=(e,t)=>Object.assign(Object.assign({},e),t),L=(e,t)=>{var n;return H(null!==(n=e)&&void 0!==n?n:{},t)},V={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},B=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=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==r?void 0:r.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,s=[{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"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},q={placements:(e,t)=>t,takeover:L,refreshConfig:F,editory:L,appearanceConfig:L,pageContext:F,pageOptions:F,pageSectionsSelectors:F,tcf:F};class K{set(e){B(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(q)){const i=t[e];void 0!==i&&(n[e]=q[e](n[e],i))}})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=H(K.DEFAULT_SITE_HANDLERS,e)}}K.DEFAULT_SITE_HANDLERS={siteEvents:V,initNativeAd:()=>{}};const W=new K;W.modifyConfigProperties.bind(W);const z=864e5,J=(()=>{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=z)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=z)=>{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}}}})(),G=["glwe_","glwet_"],Q={geofenceTags:[],geoTags:[],weatherTags:[]},Y=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 r=e=>{i||(a("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{a("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{a("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);a("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),X="cmp:loaded";let Z="undefined"!=typeof window?window._tcf_:void 0,ee=!1;const te=(t,i,r)=>{const o=!!(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))(o,d))return!0;if(ee)return null;if(!Z)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const e=Z.getConsentedToAllSync();return a(`TCF consented to all is: ${e}`),Z.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"),Z=window._tcf_,void e(Z);a("TCF consent manager is not available");const n=()=>{a("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(Z=window._tcf_,e(Z)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(X,n),ee=!0,t(new Error("Timeout waiting for CMP to load"))},s);a("Listening for CMP loaded event..."),document.addEventListener(X,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)&&r===n.SE,i=(null==t?void 0:t.advertisingCMPSignalEnabled)&&r===n.NO;if(e||i)return a("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Y(t);if(!(null==t?void 0:t.enabled))return!0;const o=c();return null!==o?o:yield new Promise((e,t)=>{try{if(!Z)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);Z.onTcfReady(()=>{a("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),Z.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},ne=(t,n,i,...r)=>e(void 0,[t,n,i,...r],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:r}=te(e,0,n);return(yield r())?(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)}),ie={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"},re=e=>G.some(t=>e.startsWith(t)),oe=e=>e.startsWith("glgc_"),se=e=>!re(e)&&!oe(e),ae=(t,i)=>e(void 0,void 0,void 0,function*(){const{addPublisherToGeo:i}={},{glimr:r,pageContext:{countryCode:o}={}}=t,s=yield((...t)=>e(void 0,[...t],void 0,function*(e=W.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled)return yield ne(t,n,i,"glimr");const{getConsentAsync:r}=te(t,0,i);return yield r()}))(t);if(!(null==r?void 0:r.enabled)||!s)return a("No consent for getting glimr tags."),{};const d=(e=>e===n.NO?"no-sno":"se-generic")(o),l=de(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),de=(e,t)=>{const n=le();if(!n)return Q;const i=((e=[])=>e.filter(re))(n),r=((e=[])=>e.filter(oe))(n),o=((e=[],t,n)=>{var i;const r=e.filter(se);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=ie[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},le=()=>{const e=J.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},ce="opaque",ue=t=>e(void 0,void 0,void 0,function*(){if(t.type!==ce){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),pe={get:(t,...n)=>e(void 0,[t,...n],void 0,function*(t,n={}){var{timeout:i}=n,r=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 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}(n,["timeout"]);if(i)return((t,n,i)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,r=setTimeout(()=>e.abort(),i);try{const i=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return ue(i)}finally{clearTimeout(r)}}))(t,r,i);const o=yield fetch(t,r);return ue(o)}),post:(t,n,i)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(i),r=yield fetch(t,{method:"POST",headers:n,body:e});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ve="advertory:ppids-cache",ge={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},he={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},fe={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ye={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},be={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class me{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 we=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 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||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:""}},Oe=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,r,o,s,a,d,l,c,u,p;const v=J.get(ve),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===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",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 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}}:{});J.set(ve,r)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield pe.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 r=yield((t,n)=>e(void 0,void 0,void 0,function*(){const e=yield t.getUserId();return e?`${be[n]}:${e}`:null}))(n,i),o=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:r},environmentId:{plain:o},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:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},Ce=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:r}=te(e,0,i);if(!(yield r()))return;const o=(e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null})("_pulse2data");return o?o.split(",")[9]:void 0}),Pe=()=>{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"},Ie=(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])},Te=()=>{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},_e=()=>{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},Se=()=>{const e=null!==(t=_e()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=_e()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ee=()=>Object.fromEntries(new URLSearchParams(window.location.search)),je=(n,i)=>e(void 0,void 0,void 0,function*(){const{tcf:r,pageContext:{publisher:o,countryCode:s}}=i,{width:a,height:d}={width:window.innerWidth,height:window.innerHeight},l={isMobileApp:n.isApp,countryCode:s,publisher:o,pageType:"front",deviceType:n.deviceType},c=(yield ne(r,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}=we.getPPIDs(),{ppid1:n,ppid2:i}=Oe.getPPIDs(),r=(new me).add(t,ge[f]).add(e,he[f]).add(i,fe[f]).add(n,ye[f]);return yield new Promise(e=>{e(r.buildVideoEids())})}));var f;const y=yield Ce({tcf:r,pageContext:l}),O=null!==(C=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==C?C:"";var C;const P=((e=1)=>Ie(k,Number(e.toFixed(2))))(n.instreamAspectRatio),I=(T=n.playerAspectRatio)?Ie($,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`]:o,[`${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`]:Pe(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Se(),[`${b}-tags`]:n.tags,[`${b}-articleid`]:O,"article-id":O},yield ae(Object.assign(Object.assign({},i),{pageContext:l}))),y&&{external_uid:y}),n.isUserPresentOnFrontPage&&n.isInitialVideo&&{[`${b}-tvtags`]:"vinjett"}),n.pageAdsKeywords),Object.keys(Ee()).some(e=>e.includes(w))&&(()=>{const e=Ee(),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})}),Ae=["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"],$e=["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"],ke=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ne=(e,t)=>{const n=[...Ae,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||ke.includes(e)?e:`kw_${e}`,t]))},xe=e=>Object.fromEntries(Object.entries(e).filter(([e])=>$e.includes(e))),Me=(t,n)=>e(void 0,void 0,void 0,function*(){var e,r,o,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===(r=null===(e=n.attributes)||void 0===e?void 0:e.id)||void 0===r?void 0:r.toString(),h=t.assetId===g,f=null!==(o=Number(t.aspectRatio))&&void 0!==o?o:1,y=h?"preroll":"bumper";var b;return{siteConfig:a,siteVideoParams:p,isUserPresentOnFrontPage:v,adsKeywords:yield je({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:Te(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),De=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,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,r),"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({},Ne(o,n)),xe(o)),{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({},o),{"se-generic-adformat":c("pause")})}}}},Re=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield Me(t,n);return De(e,t)});export{t as getTcfConsentKeywords,Re as getVideoAdsConfig};