@schibsted/advertory 3.4.0 → 3.4.2

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 (350) hide show
  1. package/ad-native/cjs/index.js +1 -1
  2. package/ad-native/es/index.js +1 -1
  3. package/aftenposten/cjs/index.js +1 -1
  4. package/aftenposten/es/_auto-entry_aftenposten-_ES7OwhM.js +1 -0
  5. package/aftenposten/es/{events-DS3DgOL0.js → events-0dXgjJrX.js} +1 -1
  6. package/aftenposten/es/{index-BDhHCTHK.js → index-BSAvSEff.js} +1 -1
  7. package/aftenposten/es/{index-Cjd7VdJV.js → index-BUfUyrwX.js} +1 -1
  8. package/aftenposten/es/{index-Br37O6Qz.js → index-BuG1s2Qv.js} +1 -1
  9. package/aftenposten/es/{index-D7QFBED7.js → index-BxVrJ3SK.js} +1 -1
  10. package/aftenposten/es/{index-DR92y7Vg.js → index-DC2-OlHS.js} +1 -1
  11. package/aftenposten/es/{index-DRnwVygV.js → index-DXR38qKu.js} +1 -1
  12. package/aftenposten/es/{index-CFqgtQCw.js → index-rpaMb9Le.js} +1 -1
  13. package/aftenposten/es/{index-BU93O6GP.js → index-unyImCPc.js} +1 -1
  14. package/aftenposten/es/index.js +1 -1
  15. package/aftenposten/es/{styles-Cg5E6Ekj.js → styles-B5P_p2bS.js} +1 -1
  16. package/aftenposten/es/{styles-DqvQq7ri.js → styles-CVo9V5jX.js} +1 -1
  17. package/aftenposten/es/{styles-DOyajtcQ.js → styles-CcZ-JDmC.js} +1 -1
  18. package/aftenposten/es/{styles-D84VENsy.js → styles-D3oCOYwU.js} +1 -1
  19. package/aftenposten/es/styles-D6EzVMNg.js +1 -0
  20. package/aftenposten/es/{styles-C1Rzru7X.js → styles-D7cfaKTd.js} +1 -1
  21. package/aftenposten/es/{styles-w0vw6mIb.js → styles-Db8WeIvH.js} +1 -1
  22. package/aftenposten/es/{styles-B64je5l3.js → styles-DdD7V5YY.js} +1 -1
  23. package/aftenposten/es/{styles-TIO090mk.js → styles-DwDnF9US.js} +1 -1
  24. package/aftenposten/es/{styles-JtJ1hfzB.js → styles-SvFSSgI9.js} +1 -1
  25. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-C_iO7MF8.js +1 -0
  26. package/aftenpostenv2/es/{events-BM4jwfwF.js → events-CNBdmD39.js} +1 -1
  27. package/aftenpostenv2/es/{index-BGGXlDSL.js → index-B7Ca8A6p.js} +1 -1
  28. package/aftenpostenv2/es/{index-CvhU37KZ.js → index-BS2eoj3f.js} +1 -1
  29. package/aftenpostenv2/es/{index-Bn3ooe17.js → index-BwLu_Su9.js} +1 -1
  30. package/aftenpostenv2/es/{index-DHfr1lfW.js → index-Bw_f858I.js} +1 -1
  31. package/aftenpostenv2/es/{index-X_WsgFbz.js → index-CRUo8IM-.js} +1 -1
  32. package/{aftonbladetv2/es/index-BRGY8-lN.js → aftenpostenv2/es/index-Chh75F3G.js} +1 -1
  33. package/aftenpostenv2/es/{index-D3aNayVB.js → index-CxbL2tEb.js} +1 -1
  34. package/aftenpostenv2/es/{index-VSADyZMm.js → index-uo-nllnb.js} +1 -1
  35. package/aftenpostenv2/es/index.js +1 -1
  36. package/aftenpostenv2/es/styles-5pl_Gjbi.js +1 -0
  37. package/aftenpostenv2/es/{styles-Ce17YcuF.js → styles-Bv7CE4n4.js} +1 -1
  38. package/aftenpostenv2/es/{styles-CXR6_WBD.js → styles-C2yAr6Nv.js} +1 -1
  39. package/aftenpostenv2/es/{styles-BPO1pjCh.js → styles-CIJe-lvF.js} +1 -1
  40. package/aftenpostenv2/es/{styles-hn2DJFMs.js → styles-CkD8uEjG.js} +1 -1
  41. package/aftenpostenv2/es/{styles-DTqsEcv1.js → styles-Dg6L1eOD.js} +1 -1
  42. package/aftenpostenv2/es/{styles-DPfneX0Y.js → styles-DqPkuQV6.js} +1 -1
  43. package/aftenpostenv2/es/{styles-B5-Q6EJw.js → styles-Dz6bhXFA.js} +1 -1
  44. package/aftenpostenv2/es/{styles-XISjObrN.js → styles-JKJM25zw.js} +1 -1
  45. package/aftenpostenv2/es/{styles-akB6Gq0I.js → styles-wZIJVgZX.js} +1 -1
  46. package/aftonbladet/cjs/index.js +1 -1
  47. package/aftonbladet/es/_auto-entry_aftonbladet-DxsTJOzW.js +1 -0
  48. package/aftonbladet/es/{events-D3NB3kk8.js → events-C7ZfyoPQ.js} +1 -1
  49. package/aftonbladet/es/{index-BDsoOHvf.js → index-BJ_SFjPX.js} +1 -1
  50. package/aftonbladet/es/{index-Da4VOfR8.js → index-BdI9EKba.js} +1 -1
  51. package/aftonbladet/es/{index-DacOsz7a.js → index-CDG8_fH3.js} +1 -1
  52. package/aftonbladet/es/{index--jECfsC9.js → index-CzHFx6a5.js} +1 -1
  53. package/aftonbladet/es/{index-CJQKla1a.js → index-DUGdjzks.js} +1 -1
  54. package/aftonbladet/es/{index-OQ73_8oZ.js → index-DzR5jCZL.js} +1 -1
  55. package/aftonbladet/es/{index-DFuXev5N.js → index-gMcDJqmB.js} +1 -1
  56. package/aftonbladet/es/{index-BRM2xqD-.js → index-gkpbcTyA.js} +1 -1
  57. package/aftonbladet/es/index.js +1 -1
  58. package/aftonbladet/es/{styles-DPizhGkc.js → styles-B-Zu2JQf.js} +1 -1
  59. package/aftonbladet/es/{styles-tVOLr52o.js → styles-B5mK6lpv.js} +1 -1
  60. package/aftonbladet/es/{styles-B50K0RMC.js → styles-CTts0lHS.js} +1 -1
  61. package/aftonbladet/es/{styles-a0olTRvE.js → styles-CznybHsB.js} +1 -1
  62. package/aftonbladet/es/{styles-0ft7uG74.js → styles-DkO_hMDh.js} +1 -1
  63. package/aftonbladet/es/{styles-NUgB5Vnc.js → styles-ac6_8cg4.js} +1 -1
  64. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CB3S8fJ4.js +1 -0
  65. package/aftonbladetv2/es/{events-hxYbPJFs.js → events-BOkEs3Ut.js} +1 -1
  66. package/aftonbladetv2/es/{index-BFmGJCNA.js → index-B99XjTRP.js} +1 -1
  67. package/aftonbladetv2/es/{index-BvJyiiqk.js → index-BQxs6Fur.js} +1 -1
  68. package/aftonbladetv2/es/{index-DlH4oavB.js → index-BtGTGjC5.js} +1 -1
  69. package/{aftenpostenv2/es/index-DTQmdQaA.js → aftonbladetv2/es/index-C94P-FWa.js} +1 -1
  70. package/aftonbladetv2/es/{index-mpCKfR1_.js → index-D05EUhak.js} +1 -1
  71. package/aftonbladetv2/es/{index-BF8ZLqYU.js → index-D1AdocIF.js} +1 -1
  72. package/aftonbladetv2/es/{index-thJx3865.js → index-DnlWD8qs.js} +1 -1
  73. package/aftonbladetv2/es/{index-Di2uEq-D.js → index-DqurDOpt.js} +1 -1
  74. package/aftonbladetv2/es/index.js +1 -1
  75. package/aftonbladetv2/es/{styles-Bv5a2B3E.js → styles-BGIwl5JJ.js} +1 -1
  76. package/aftonbladetv2/es/{styles-hAQBJqgA.js → styles-BO_CCNRv.js} +1 -1
  77. package/aftonbladetv2/es/{styles-WY7fzqVn.js → styles-BklMqiIt.js} +1 -1
  78. package/aftonbladetv2/es/{styles-D8sq8JkW.js → styles-D1owxI5Y.js} +1 -1
  79. package/aftonbladetv2/es/{styles-BtsKIskL.js → styles-DcXR_FzI.js} +1 -1
  80. package/aftonbladetv2/es/{styles-Bt7aXhQJ.js → styles-rNdUQDkD.js} +1 -1
  81. package/brandmetrics/cjs/index.js +1 -1
  82. package/brandmetrics/es/index.js +1 -1
  83. package/bt/cjs/index.js +1 -1
  84. package/bt/es/_auto-entry_bt-4HRnXm5L.js +1 -0
  85. package/bt/es/{events-P939kxYv.js → events-DRZxLguY.js} +1 -1
  86. package/bt/es/{index-D7JV7Gcz.js → index-BT-EiAOP.js} +1 -1
  87. package/bt/es/{index-BBu_0hd7.js → index-BZHxYw6D.js} +1 -1
  88. package/{sa/es/index-CmmTd8FJ.js → bt/es/index-BliqEahS.js} +1 -1
  89. package/{sa/es/index-1wpYkilg.js → bt/es/index-CK0usNCQ.js} +1 -1
  90. package/bt/es/{index-Ckwdt0fU.js → index-CpiLrRzs.js} +1 -1
  91. package/bt/es/{index-CKBoBrcu.js → index-CvwK3wRn.js} +1 -1
  92. package/bt/es/{index-BfQDwNau.js → index-rMxfBK12.js} +1 -1
  93. package/bt/es/{index-CQjo_ylx.js → index-zmMau-jC.js} +1 -1
  94. package/bt/es/index.js +1 -1
  95. package/bt/es/{styles-BXvD-5EM.js → styles-Bhs8upOD.js} +1 -1
  96. package/bt/es/{styles-C5WWUPAQ.js → styles-CHD7FB2O.js} +1 -1
  97. package/bt/es/styles-CKVagnxS.js +1 -0
  98. package/{sa/es/styles-Bv9P9SVk.js → bt/es/styles-CUKO3_wI.js} +1 -1
  99. package/bt/es/{styles-CjJ89xGu.js → styles-CtXI7T1H.js} +1 -1
  100. package/bt/es/{styles-CMdYMvzl.js → styles-CzGaEqE4.js} +1 -1
  101. package/bt/es/{styles-liPPdHD0.js → styles-DRg9XW9c.js} +1 -1
  102. package/{sa/es/styles-CLfHbbip.js → bt/es/styles-De8BUyaQ.js} +1 -1
  103. package/{vg/es/styles-u7Nsjg8H.js → bt/es/styles-nynN9PjF.js} +1 -1
  104. package/btv2/es/_auto-entry_btv2-CQK_VZaa.js +1 -0
  105. package/btv2/es/{events-C8tuV-Qh.js → events-gc9hWyC_.js} +1 -1
  106. package/btv2/es/{index-CGpUpbsI.js → index-BDZ5ODol.js} +1 -1
  107. package/btv2/es/{index-Bzxn9_iO.js → index-BjHxxVdQ.js} +1 -1
  108. package/btv2/es/{index-BqG2ikGQ.js → index-C0Nj_4W_.js} +1 -1
  109. package/btv2/es/{index-C-0B69y-.js → index-CODQ7SVo.js} +1 -1
  110. package/btv2/es/{index-Djw7_eT2.js → index-CaJW9P3G.js} +1 -1
  111. package/btv2/es/{index-CENFjVdD.js → index-CmLSKky5.js} +1 -1
  112. package/btv2/es/{index-CfwOWf7p.js → index-Me7EEMX8.js} +1 -1
  113. package/btv2/es/{index-CZ4Wez3A.js → index-uCTivXiJ.js} +1 -1
  114. package/btv2/es/index.js +1 -1
  115. package/{sav2/es/styles-C2TNKD78.js → btv2/es/styles-94ggF1pc.js} +1 -1
  116. package/btv2/es/{styles-BUmBeVw8.js → styles-BgxKO8gd.js} +1 -1
  117. package/{sav2/es/styles-CZ1RCRoW.js → btv2/es/styles-BiCMB-_u.js} +1 -1
  118. package/btv2/es/{styles-Vv5Evh3P.js → styles-C_Aq1wLf.js} +1 -1
  119. package/{vgv2/es/styles-Bjn6r6Yg.js → btv2/es/styles-CvviETwQ.js} +1 -1
  120. package/{sav2/es/styles-CcXwLmBD.js → btv2/es/styles-F6YdlRYo.js} +1 -1
  121. package/{sav2/es/styles-CNii0Ea-.js → btv2/es/styles-Jk9KlyJ5.js} +1 -1
  122. package/{sav2/es/styles-Bjm81Vyg.js → btv2/es/styles-NkshQYwC.js} +1 -1
  123. package/common/cjs/index.js +1 -1
  124. package/common/es/index.js +1 -1
  125. package/e24/es/_auto-entry_e24-BY9XdOU4.js +1 -0
  126. package/e24/es/{events-C6-Wb1Fe.js → events-B3lfjOr5.js} +1 -1
  127. package/e24/es/{index-DhwPqRCB.js → index-CqzcAElH.js} +1 -1
  128. package/e24/es/index-DTrWui1h.js +1 -0
  129. package/e24/es/{index-BvpYStEI.js → index-DufZR61F.js} +1 -1
  130. package/e24/es/{index-D7ERzAaR.js → index-DvWfTeO3.js} +1 -1
  131. package/e24/es/{index-DIYhfX4q.js → index-ELMiVfcF.js} +1 -1
  132. package/{tv4/es/index-f37lvhY1.js → e24/es/index-K_obt6eW.js} +1 -1
  133. package/e24/es/{index-dzgi1ppt.js → index-tQjHjQ8r.js} +1 -1
  134. package/e24/es/{index-DVztN2vc.js → index-ypsa7Ld6.js} +1 -1
  135. package/e24/es/index.js +1 -1
  136. package/e24/es/{styles-LtaiDb_E.js → styles--0JYvAK8.js} +1 -1
  137. package/e24/es/{styles-DFPXNVpX.js → styles-B6MMnAa2.js} +1 -1
  138. package/e24/es/{styles-D4oEyxrN.js → styles-BtNjtTU4.js} +1 -1
  139. package/e24/es/{styles-B3b2Jh6l.js → styles-BtjSQQqd.js} +1 -1
  140. package/{tv4/es/styles-Bq-0FDoK.js → e24/es/styles-C3m-ByU_.js} +1 -1
  141. package/e24/es/{styles-BmZmngIA.js → styles-C_w9-aMa.js} +1 -1
  142. package/e24/es/{styles-BmRX4w90.js → styles-Cx5BF8ZT.js} +1 -1
  143. package/e24/es/styles-D0oYbd-O.js +1 -0
  144. package/e24/es/{styles-C_9q9_oo.js → styles-DYzVYi--.js} +1 -1
  145. package/e24/es/{styles-Btl23hB9.js → styles-Dg77-aTk.js} +1 -1
  146. package/e24/es/{styles-DYtS4COi.js → styles-kvinucDe.js} +1 -1
  147. package/fotbollskanalen/cjs/index.js +1 -1
  148. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DGRSvI8M.js +1 -0
  149. package/fotbollskanalen/es/{events-CR__LZ3S.js → events-BEHjmqgZ.js} +1 -1
  150. package/fotbollskanalen/es/{index-DctsvkDQ.js → index-B9Uk_Qhv.js} +1 -1
  151. package/fotbollskanalen/es/{index-syySQ1pv.js → index-BBf5Ag68.js} +1 -1
  152. package/fotbollskanalen/es/{index-DnniNoxS.js → index-BrSVo198.js} +1 -1
  153. package/fotbollskanalen/es/{index-BMO1DTC-.js → index-C0kWxnfB.js} +1 -1
  154. package/fotbollskanalen/es/{index-gvBJqGih.js → index-C7zcvLMy.js} +1 -1
  155. package/fotbollskanalen/es/{index-DH5hWJoP.js → index-CDKw39Gr.js} +1 -1
  156. package/fotbollskanalen/es/{index-D6FeaG6s.js → index-CUeZxvPp.js} +1 -1
  157. package/fotbollskanalen/es/{index-wY1sPkel.js → index-DxGCREXQ.js} +1 -1
  158. package/fotbollskanalen/es/index.js +1 -1
  159. package/fotbollskanalen/es/{styles-Bxx730JH.js → styles-CH39ch4w.js} +1 -1
  160. package/glimr/cjs/index.js +1 -1
  161. package/glimr/es/index.js +1 -1
  162. package/godare/cjs/index.js +1 -1
  163. package/godt/cjs/index.js +1 -1
  164. package/kilkaya/cjs/index.js +1 -1
  165. package/kilkaya/es/index.js +1 -1
  166. package/klart/cjs/index.js +1 -1
  167. package/koket/cjs/index.js +1 -1
  168. package/koket/es/_auto-entry_koket-dwe7I5wG.js +1 -0
  169. package/koket/es/{events-Dl9lctGs.js → events-CbqHFybp.js} +1 -1
  170. package/koket/es/{index-BLoiEIy7.js → index-29tUqTuT.js} +1 -1
  171. package/koket/es/{index-DTuyrSrB.js → index-2n_fp9nU.js} +1 -1
  172. package/koket/es/{index-BPPrg9vq.js → index-BrAqhL2N.js} +1 -1
  173. package/koket/es/{index-xkS11VFr.js → index-C7Y_Ms5D.js} +1 -1
  174. package/koket/es/{index-zRglkM59.js → index-CemLWbF2.js} +1 -1
  175. package/koket/es/{index-Bu-oDXxP.js → index-CmaNcTmo.js} +1 -1
  176. package/koket/es/{index-D5ba3fIC.js → index-Cq9t1Ye_.js} +1 -1
  177. package/koket/es/{index-1MMgy-bQ.js → index-QADolBIH.js} +1 -1
  178. package/koket/es/index.js +1 -1
  179. package/{svdv2/es/styles-FYeAavfN.js → koket/es/styles-BIrp3KD0.js} +1 -1
  180. package/minmote/cjs/index.js +1 -1
  181. package/package.json +1 -1
  182. package/pent/cjs/index.js +1 -1
  183. package/sa/cjs/index.js +1 -1
  184. package/sa/es/_auto-entry_sa-BMSxrVeh.js +1 -0
  185. package/sa/es/{events-DS45MZQ7.js → events-DQReFyHL.js} +1 -1
  186. package/sa/es/{index-DqZCoJl1.js → index-Bxvdk2S-.js} +1 -1
  187. package/{bt/es/index-Cs3MnRD5.js → sa/es/index-Cs_Hk7ug.js} +1 -1
  188. package/sa/es/{index-DfKBjepg.js → index-DXD4reEq.js} +1 -1
  189. package/sa/es/{index-fPzV1f7y.js → index-DbNkxNaU.js} +1 -1
  190. package/sa/es/{index-DGJXAiiz.js → index-DiE0nzOh.js} +1 -1
  191. package/sa/es/{index-C1AOrR_0.js → index-OGKmQAY0.js} +1 -1
  192. package/{bt/es/index-BU5H0iHb.js → sa/es/index-ehA6WLsY.js} +1 -1
  193. package/sa/es/{index-DNAhaeBf.js → index-pLoZgAKP.js} +1 -1
  194. package/sa/es/index.js +1 -1
  195. package/sa/es/{styles-BGec8bCN.js → styles-Bb5tqkRm.js} +1 -1
  196. package/sa/es/{styles-BX8W7NUr.js → styles-C8g7AyIj.js} +1 -1
  197. package/{bt/es/styles-KuZkbQS_.js → sa/es/styles-C990yP9N.js} +1 -1
  198. package/{vg/es/styles-Cyjmdeyl.js → sa/es/styles-D4r1XE9w.js} +1 -1
  199. package/sa/es/{styles-CdI9f0fk.js → styles-DK4fotdo.js} +1 -1
  200. package/sa/es/{styles-DjmHIkC2.js → styles-DPBUUFEt.js} +1 -1
  201. package/sa/es/styles-Dp52ewJw.js +1 -0
  202. package/sa/es/{styles-BbLBSFMX.js → styles-DpndNbeg.js} +1 -1
  203. package/{bt/es/styles-DAfQg6MH.js → sa/es/styles-Drs3yKc6.js} +1 -1
  204. package/sav2/es/_auto-entry_sav2-GLSMxO3O.js +1 -0
  205. package/sav2/es/{events-CbzUD1WQ.js → events-BScwWxmR.js} +1 -1
  206. package/sav2/es/{index-B4QGTq35.js → index-CSCCIJco.js} +1 -1
  207. package/sav2/es/{index-Bw8lFUsn.js → index-D0KHP8dE.js} +1 -1
  208. package/sav2/es/{index-BPSXoblP.js → index-DIQuEhsn.js} +1 -1
  209. package/sav2/es/{index-CzeB03g6.js → index-DZW4H3Bc.js} +1 -1
  210. package/sav2/es/{index-DLoobVEt.js → index-Z6LIyYEV.js} +1 -1
  211. package/sav2/es/{index-BYGFI6WU.js → index-cQI9Z61G.js} +1 -1
  212. package/sav2/es/{index-DG4d424Q.js → index-ceezUfPh.js} +1 -1
  213. package/sav2/es/{index-D79zqvEN.js → index-lvFfd9Yq.js} +1 -1
  214. package/sav2/es/index.js +1 -1
  215. package/sav2/es/{styles-CIKXKdJW.js → styles-BaUgVL03.js} +1 -1
  216. package/{vgv2/es/styles-DIcSy1LH.js → sav2/es/styles-BjzoR27_.js} +1 -1
  217. package/{btv2/es/styles-Dg-WZgEO.js → sav2/es/styles-BkkQ_ydQ.js} +1 -1
  218. package/sav2/es/{styles-DYYr0Vi4.js → styles-BtShzrug.js} +1 -1
  219. package/{vgv2/es/styles-CllqW-fN.js → sav2/es/styles-Cd6MLHk7.js} +1 -1
  220. package/sav2/es/{styles-DUkUwl1S.js → styles-CdkXu3gU.js} +1 -1
  221. package/{btv2/es/styles-Dpa9CY1T.js → sav2/es/styles-D7FyrC5y.js} +1 -1
  222. package/{btv2/es/styles-C2fl08if.js → sav2/es/styles-DzdSbZto.js} +1 -1
  223. package/svd/cjs/index.js +1 -1
  224. package/svd/es/_auto-entry_svd-C7H2cD2w.js +1 -0
  225. package/svd/es/{events-MatNCPD4.js → events-DHfRTF21.js} +1 -1
  226. package/svd/es/{index-BDieopgm.js → index-BDwkAB_2.js} +1 -1
  227. package/svd/es/{index-OSXWt_BO.js → index-BOGUmWw9.js} +1 -1
  228. package/svd/es/{index-DkQ-GsxN.js → index-Bdp9FpyE.js} +1 -1
  229. package/{e24/es/index-BO8Z7A-X.js → svd/es/index-BpQqWjVu.js} +1 -1
  230. package/svd/es/{index-DM2sQc3e.js → index-CW5S1Y6l.js} +1 -1
  231. package/svd/es/{index-_Y2M7TuS.js → index-CqCnlAan.js} +1 -1
  232. package/svd/es/{index-DurySnUh.js → index-Cxg3exOn.js} +1 -1
  233. package/svd/es/{index-B_UKr_Q6.js → index-Db38Qeh9.js} +1 -1
  234. package/svd/es/index.js +1 -1
  235. package/svd/es/{styles-jZinADl9.js → styles-B2wWrYV_.js} +1 -1
  236. package/svd/es/{styles-BM-zmY0b.js → styles-BPa2xFyc.js} +1 -1
  237. package/svd/es/{styles-DmMgFqT2.js → styles-CCvPJOpC.js} +1 -1
  238. package/svd/es/{styles-CPBqmeWf.js → styles-CoBbA0l0.js} +1 -1
  239. package/svd/es/{styles-DF7kFNJH.js → styles-Ste5iDK0.js} +1 -1
  240. package/svd/es/{styles-Dh7C8EH6.js → styles-aHDarjc6.js} +1 -1
  241. package/svdv2/es/_auto-entry_svdv2-DaFD4duA.js +1 -0
  242. package/svdv2/es/{events-gnOGd_lu.js → events-Bxgc5xMT.js} +1 -1
  243. package/svdv2/es/{index-BzfiYL8f.js → index-BKxrqNl4.js} +1 -1
  244. package/svdv2/es/{index-D8XWPX06.js → index-BLLRJ19G.js} +1 -1
  245. package/svdv2/es/{index-oKc5A7I_.js → index-BLM_7opB.js} +1 -1
  246. package/svdv2/es/{index-jFppj4U0.js → index-BdlNKA6w.js} +1 -1
  247. package/svdv2/es/{index-DJtIbowV.js → index-BgtpjmfU.js} +1 -1
  248. package/svdv2/es/{index-2Jila3Z0.js → index-DhH1dHqT.js} +1 -1
  249. package/svdv2/es/{index-Bk45U4FV.js → index-JROSE_x7.js} +1 -1
  250. package/svdv2/es/{index-Dxfu4Vtz.js → index-KirrrAZD.js} +1 -1
  251. package/svdv2/es/index.js +1 -1
  252. package/svdv2/es/{styles-38mCQemr.js → styles-1Ud_gSDg.js} +1 -1
  253. package/{koket/es/styles-o__x0hHk.js → svdv2/es/styles-BBBfNU0Z.js} +1 -1
  254. package/svdv2/es/{styles-BWfEkMpY.js → styles-CPNcz15L.js} +1 -1
  255. package/svdv2/es/{styles-C8AW-E8o.js → styles-CUaKj4t5.js} +1 -1
  256. package/svdv2/es/{styles-Db0nqSKj.js → styles-Ca4SP1Zx.js} +1 -1
  257. package/svdv2/es/{styles-BOx0jlUc.js → styles-JrqAe5Dp.js} +1 -1
  258. package/svdv2/styles.css +1 -1
  259. package/tek/cjs/index.js +1 -1
  260. package/tv4/cjs/index.js +1 -1
  261. package/tv4/es/_auto-entry_tv4-CWhmYqAT.js +1 -0
  262. package/tv4/es/{events-DqvRTcx4.js → events-CeSs0PES.js} +1 -1
  263. package/tv4/es/{index-DjJOl0Zp.js → index-BBY7GLU5.js} +1 -1
  264. package/tv4/es/{index-Bfa8T1fy.js → index-BmTo2Ar0.js} +1 -1
  265. package/tv4/es/{index-B_zw4tqk.js → index-CNTL8Dwm.js} +1 -1
  266. package/tv4/es/{index-WkDxjrEw.js → index-DM8wMhzf.js} +1 -1
  267. package/tv4/es/{index-CdcyK4I9.js → index-DSaAoNg7.js} +1 -1
  268. package/tv4/es/{index-8tQtOK4E.js → index-Df9KxSJU.js} +1 -1
  269. package/{svd/es/index-BhnSniCl.js → tv4/es/index-DpYBbkis.js} +1 -1
  270. package/tv4/es/{index-B0hAziEY.js → index-n3jgzoAZ.js} +1 -1
  271. package/tv4/es/index.js +1 -1
  272. package/{e24/es/styles-CuijE9lq.js → tv4/es/styles-DThVZFi7.js} +1 -1
  273. package/tvnu/cjs/index.js +1 -1
  274. package/vg/cjs/index.js +1 -1
  275. package/vg/es/_auto-entry_vg-Bba77mML.js +1 -0
  276. package/vg/es/{events-BUQHk6kb.js → events-BBnxQE-C.js} +1 -1
  277. package/vg/es/{index-CGD8RaWN.js → index-5TWaJnMY.js} +1 -1
  278. package/vg/es/{index-C3rymh-_.js → index-B8vrjVkw.js} +1 -1
  279. package/vg/es/{index-DOKQTUGN.js → index-BFolEe5N.js} +1 -1
  280. package/vg/es/{index-Bqi2LpXM.js → index-CRe7ZGjD.js} +1 -1
  281. package/vg/es/{index-BHxJJq3Z.js → index-CVPz9n-j.js} +1 -1
  282. package/vg/es/{index-ByGRMyCL.js → index-D0_MP99g.js} +1 -1
  283. package/vg/es/{index-tOOjQC1y.js → index-X8IBe_00.js} +1 -1
  284. package/vg/es/{index-e2O5bA7x.js → index-tYaR5867.js} +1 -1
  285. package/vg/es/index.js +1 -1
  286. package/vg/es/{styles-iEX7XJmI.js → styles-BM5Y5oE2.js} +1 -1
  287. package/vg/es/{styles-CMy-vwJu.js → styles-BmiCDPqL.js} +1 -1
  288. package/vg/es/{styles-CF-xJoh8.js → styles-BnPNfv93.js} +1 -1
  289. package/vg/es/{styles-CSU_OvKn.js → styles-BqmO09e0.js} +1 -1
  290. package/{sa/es/styles-CKjJsEov.js → vg/es/styles-CS8aUaeb.js} +1 -1
  291. package/vg/es/{styles-D_k0hUIe.js → styles-CSu6kKw9.js} +1 -1
  292. package/vg/es/{styles-BSagtbxq.js → styles-CTsz-1r-.js} +1 -1
  293. package/vg/es/{styles-DC6YFxVs.js → styles-Cb7dwF8m.js} +1 -1
  294. package/vg/es/{styles-DdzXoNmM.js → styles-DF-lxE2l.js} +1 -1
  295. package/vg/es/{styles-DQlKiMYK.js → styles-DSjw-te3.js} +1 -1
  296. package/vg/es/{styles-Dc64c9qy.js → styles-DVzb1gzt.js} +1 -1
  297. package/vg/es/{styles-7TXXlfA9.js → styles-Dw6kF4KE.js} +1 -1
  298. package/vg/es/{styles-C3BWhxWx.js → styles-MgoU3wF7.js} +1 -1
  299. package/vg/es/{styles-BSFxEsIK.js → styles-RU-No_xa.js} +1 -1
  300. package/{bt/es/styles-JHqOJCdQ.js → vg/es/styles-XVxdOT1A.js} +1 -1
  301. package/vgv2/es/_auto-entry_vgv2-DnWh0NH6.js +1 -0
  302. package/vgv2/es/{events-CnaFj5Li.js → events-IiDkEBcB.js} +1 -1
  303. package/vgv2/es/{index-DJngOs4E.js → index-3JmcCYtv.js} +1 -1
  304. package/vgv2/es/{index-8kYrh9qr.js → index-B8HzKL_a.js} +1 -1
  305. package/vgv2/es/{index-Cb5Uvjyn.js → index-Bx4qmSnr.js} +1 -1
  306. package/vgv2/es/{index-D8wwJevN.js → index-CAUPbXlv.js} +1 -1
  307. package/vgv2/es/{index-CdaNIgf5.js → index-CdDVsk7C.js} +1 -1
  308. package/vgv2/es/{index-DFeTuzTV.js → index-CnJOJ7WZ.js} +1 -1
  309. package/vgv2/es/{index-ANaAp6u0.js → index-DaHyUmpp.js} +1 -1
  310. package/vgv2/es/{index-DzqgeDMk.js → index-xMU5llvE.js} +1 -1
  311. package/vgv2/es/index.js +1 -1
  312. package/vgv2/es/{styles-Dlif7Lr2.js → styles-BBjsxuTP.js} +1 -1
  313. package/vgv2/es/{styles-CRssXgaO.js → styles-BIrUoGhs.js} +1 -1
  314. package/vgv2/es/{styles-B402h2ox.js → styles-BSiVftDL.js} +1 -1
  315. package/vgv2/es/{styles-B4_P1vrp.js → styles-BrRhDu8n.js} +1 -1
  316. package/{btv2/es/styles-CHCENrln.js → vgv2/es/styles-C6_nCv05.js} +1 -1
  317. package/vgv2/es/{styles-Dpr0Gyke.js → styles-CXNCQwwf.js} +1 -1
  318. package/vgv2/es/{styles-DSqfy_lP.js → styles-CavIjGzj.js} +1 -1
  319. package/vgv2/es/{styles-54g37KoV.js → styles-CfiH-xPk.js} +1 -1
  320. package/{btv2/es/styles-Dw0hZBeK.js → vgv2/es/styles-CiFELAMD.js} +1 -1
  321. package/vgv2/es/{styles-BfaMrVzB.js → styles-Cz6UJN32.js} +1 -1
  322. package/vgv2/es/{styles-DQvhTKGe.js → styles-DFovdjoY.js} +1 -1
  323. package/vgv2/es/{styles-A-ReLiar.js → styles-DXWKg67v.js} +1 -1
  324. package/vgv2/es/{styles-CEDyOBDn.js → styles-Dij0eV_t.js} +1 -1
  325. package/{btv2/es/styles-D2682ixw.js → vgv2/es/styles-eYNrxtOw.js} +1 -1
  326. package/vgv2/es/{styles-t-rkEfr3.js → styles-ztye3nyO.js} +1 -1
  327. package/video/cjs/index.js +1 -1
  328. package/video/es/index.js +1 -1
  329. package/aftenposten/es/_auto-entry_aftenposten-Gh9yp-2J.js +0 -1
  330. package/aftenposten/es/styles-AmvoQhPA.js +0 -1
  331. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-3ZqcxeEI.js +0 -1
  332. package/aftenpostenv2/es/styles-CN1nh9S0.js +0 -1
  333. package/aftonbladet/es/_auto-entry_aftonbladet-Big9OHZb.js +0 -1
  334. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-OI5ZESzZ.js +0 -1
  335. package/bt/es/_auto-entry_bt-DLnEDsnE.js +0 -1
  336. package/bt/es/styles-BreCPCTd.js +0 -1
  337. package/btv2/es/_auto-entry_btv2-BAdNC9b_.js +0 -1
  338. package/e24/es/_auto-entry_e24-D-bY8JI-.js +0 -1
  339. package/e24/es/index-CeK2avUU.js +0 -1
  340. package/e24/es/styles-DoDkSEWk.js +0 -1
  341. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DRJBdiCO.js +0 -1
  342. package/koket/es/_auto-entry_koket-NoXCAYcy.js +0 -1
  343. package/sa/es/_auto-entry_sa-CtEj29We.js +0 -1
  344. package/sa/es/styles-BydQQoqs.js +0 -1
  345. package/sav2/es/_auto-entry_sav2-DdXsPhDM.js +0 -1
  346. package/svd/es/_auto-entry_svd-CQzQzVvb.js +0 -1
  347. package/svdv2/es/_auto-entry_svdv2-CqgkFF12.js +0 -1
  348. package/tv4/es/_auto-entry_tv4-CjdAkM-5.js +0 -1
  349. package/vg/es/_auto-entry_vg-CTp8uvL2.js +0 -1
  350. package/vgv2/es/_auto-entry_vgv2-DpVpQAxV.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",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,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=["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: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.fullscreenScroll)||void 0===i?void 0:i.enabled),property:"main",featureName:"fullscreenScroll"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"}];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)};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.prototype.hasOwnProperty.call(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.prototype.hasOwnProperty.call(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.prototype.hasOwnProperty.call(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=R(L.DEFAULT_SITE_HANDLERS,e)}}L.DEFAULT_SITE_HANDLERS={siteEvents:H,initNativeAd:function(){}};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 r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},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 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))})}),J="cmp:loaded";let G="undefined"!=typeof window?window._tcf_:void 0,Q=!1;const Y=(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(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)&&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 z(t);if(!(null==t?void 0:t.enabled))return!0;const o=c();return null!==o?o: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,...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}=Y(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)}),Z={svd:"svd",vg:"vg",godare:"godare",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},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:r,pageContext:{countryCode:o}={}}=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:r}=Y(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=re(t,Boolean(i));return{[`${d}-geo`]:l.geoTags,[`${d}-weather`]:l.weatherTags,[`${d}-geofence`]:l.geofenceTags}}),re=(e,t)=>{const n=oe();if(!n)return W;const i=((e=[])=>e.filter(ee))(n),r=((e=[])=>e.filter(te))(n),o=((e=[],t,n)=>{var i;const r=e.filter(ne);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=Z[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},oe=()=>{const e=q.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null},se={get:(t,n)=>e(void 0,void 0,void 0,function*(){const e=yield fetch(t,n);if(!e.ok)throw new Error(e.statusText);return yield e.json()}),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()})},ae="advertory:ppids-cache",de={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},le={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},ce={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ue={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},pe={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class ve{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 ge=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:""}},he=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=q.get(ae),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}}:{});q.set(ae,r)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield se.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?`${pe[n]}:${e}`:null}))(n,i),o=yield(t=>e(void 0,void 0,void 0,function*(){const e=yield t.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}))(n),s=window.advertory_idfv,a=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"}},s?{idfv:{plain:s}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},fe=t=>e(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:n,countryCode:i}={}}=t,{getConsentAsync:r}=Y(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}),ye=()=>{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"},be=(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])},me=()=>{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},we=()=>{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},Oe=()=>{const e=null!==(t=we()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=we()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ce=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Pe=(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 X(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}=ge.getPPIDs(),{ppid1:n,ppid2:i}=he.getPPIDs(),r=(new ve).add(t,de[f]).add(e,le[f]).add(i,ce[f]).add(n,ue[f]);return yield new Promise(e=>{e(r.buildVideoEids())})}));var f;const y=yield fe({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)=>be(k,Number(e.toFixed(2))))(n.instreamAspectRatio),I=(T=n.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`]: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`]:ye(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Oe(),[`${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(Ce()).some(e=>e.includes(w))&&(()=>{const e=Ce(),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})}),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,t)=>{const n=[...Ie,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||_e.includes(e)?e:`kw_${e}`,t]))},Ee=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Te.includes(e))),Ae=(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 Pe({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:me(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),je=(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({},Se(o,n)),Ee(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")})}}}},$e=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield Ae(t,n);return je(e,t)});export{t 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",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,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.prototype.hasOwnProperty.call(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.prototype.hasOwnProperty.call(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.prototype.hasOwnProperty.call(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=R(L.DEFAULT_SITE_HANDLERS,e)}}L.DEFAULT_SITE_HANDLERS={siteEvents:H,initNativeAd:function(){}};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",godare:"godare",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={get:(t,n)=>e(void 0,void 0,void 0,function*(){const e=yield fetch(t,n);if(!e.ok)throw new Error(e.statusText);return yield e.json()}),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()})},ae="advertory:ppids-cache",de={[n.SE]:`SCH${n.SE.toUpperCase()}-EnvHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-EnvHash`},le={[n.SE]:`SCH${n.SE.toUpperCase()}-UserHash`,[n.NO]:`SCH${n.NO.toUpperCase()}-UserHash`},ce={[n.SE]:`sch${n.SE}-envhash-v3`,[n.NO]:`sch${n.NO}-envhash-v3`},ue={[n.SE]:`sch${n.SE}-userhash-v3`,[n.NO]:`sch${n.NO}-userhash-v3`},pe={[n.SE]:"sdrn:schibsted.com:user",[n.NO]:"sdrn:spid.no:user"};class ve{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 ge=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:""}},he=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(ae),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(ae,o)}hashPPIDs(t,n){return e(this,void 0,void 0,function*(){try{const e=new Headers({"Content-Type":"application/json"});return yield se.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?`${pe[n]}:${e}`:null}))(n,i),r=yield(t=>e(void 0,void 0,void 0,function*(){const e=yield t.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}))(n),s=window.advertory_idfv,a=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"}},s?{idfv:{plain:s}}:{}),a?{anId:{plain:a}}:{})})}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}}},fe=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}),ye=()=>{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"},be=(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])},me=()=>{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},we=()=>{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},Oe=()=>{const e=null!==(t=we()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=we()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ce=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Pe=(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}=ge.getPPIDs(),{ppid1:n,ppid2:i}=he.getPPIDs(),o=(new ve).add(t,de[f]).add(e,le[f]).add(i,ce[f]).add(n,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))))(n.instreamAspectRatio),I=(T=n.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`]:(_=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`]:ye(),[`${b}-audience`]:void 0,[`${b}-externalid_src`]:Oe(),[`${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(Ce()).some(e=>e.includes(w))&&(()=>{const e=Ce(),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})}),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,t)=>{const n=[...Ie,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||_e.includes(e)?e:`kw_${e}`,t]))},Ee=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Te.includes(e))),Ae=(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 Pe({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:me(),isApp:t.isApp,deviceType:t.deviceType,isAndroidApp:t.isAndroidApp},a),prerollPlacementFormat:y,playbackMethod:u(t.startMode)}}),je=(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({},Se(r,n)),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=t=>n=>e(void 0,void 0,void 0,function*(){const e=yield Ae(t,n);return je(e,t)});export{t as getTcfConsentKeywords,$e as getVideoAdsConfig};