@schibsted/advertory 3.0.5 → 3.0.8

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 (336) hide show
  1. package/ad-native/es/index.d.ts +630 -0
  2. package/aftenposten/cjs/index.js +1 -1
  3. package/aftenposten/es/{_auto-entry_aftenposten-DXDCz53S.js → _auto-entry_aftenposten-8LeCoK5C.js} +1 -1
  4. package/aftenposten/es/{events-BXekq4-Y.js → events-CQ2qhSo7.js} +1 -1
  5. package/aftenposten/es/{index-DwwyeytC.js → index-93yDjesK.js} +1 -1
  6. package/aftenposten/es/{index-DMJaVnDY.js → index-BfZWGbeh.js} +1 -1
  7. package/aftenposten/es/{index-CUdT2aBg.js → index-CYJNgaCL.js} +1 -1
  8. package/aftenposten/es/{index-Dr6qDL6y.js → index-Cc0f8qLs.js} +1 -1
  9. package/aftenposten/es/{index-CdJS1rz5.js → index-DPxa6qXq.js} +1 -1
  10. package/aftenposten/es/{index-B_BJ-GZa.js → index-Dm0jLhZ7.js} +1 -1
  11. package/aftenposten/es/{index-U0ZfOVUM.js → index-DyJ74iuv.js} +1 -1
  12. package/{aftonbladet/es/index-BHOn33gV.js → aftenposten/es/index-qpT7aMMJ.js} +1 -1
  13. package/aftenposten/es/index.js +1 -1
  14. package/aftenposten/es/{scale-ad-hvkfHClG.js → scale-ad-BrcTJTxv.js} +1 -1
  15. package/aftenposten/es/{styles-Sfx4JrHY.js → styles-BDNscpZR.js} +1 -1
  16. package/aftenposten/es/{styles-CyFIlex_.js → styles-BFj5N8bQ.js} +1 -1
  17. package/aftenposten/es/{styles-Bo8aqlRJ.js → styles-BIqCKczq.js} +1 -1
  18. package/aftenposten/es/{styles-BiPPLnYw.js → styles-BWL2HZCk.js} +1 -1
  19. package/aftenposten/es/{styles-vptdy3-W.js → styles-DEdRbGOk.js} +1 -1
  20. package/aftenposten/es/{styles-Cg52cJBf.js → styles-DFwvPOlB.js} +1 -1
  21. package/aftenposten/es/{styles-CW0P1h54.js → styles-DROPiKRC.js} +1 -1
  22. package/aftenposten/es/{styles-3-ugSt2o.js → styles-DpowpW4E.js} +1 -1
  23. package/aftenposten/es/{styles-CaLkddSM.js → styles-KyWcOufP.js} +1 -1
  24. package/aftenposten/es/{styles-Dpf5ewCv.js → styles-_zuqMRxO.js} +1 -1
  25. package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-DU4PTo-Z.js → _auto-entry_aftenpostenv2-BeMs8ob2.js} +1 -1
  26. package/aftenpostenv2/es/{events-Cl84NepQ.js → events-ChRZTUCx.js} +1 -1
  27. package/aftenpostenv2/es/{index-CLPU64GR.js → index-C6vf28ds.js} +1 -1
  28. package/aftenpostenv2/es/{index-CyPxj7tz.js → index-CJygXyRU.js} +1 -1
  29. package/aftenpostenv2/es/{index-CGH8wQRK.js → index-CR0I34um.js} +1 -1
  30. package/aftenpostenv2/es/{index-CrlFhPSH.js → index-CY608gTF.js} +1 -1
  31. package/aftenpostenv2/es/{index-DXBb3fo5.js → index-DZ_Rn0Ay.js} +1 -1
  32. package/aftenpostenv2/es/{index-leHf1oQP.js → index-Dr92H44B.js} +1 -1
  33. package/aftenpostenv2/es/{index-LUZuiwye.js → index-Dx5ChNOu.js} +1 -1
  34. package/aftenpostenv2/es/{index-BnFeuIc4.js → index-RX6rMExy.js} +1 -1
  35. package/aftenpostenv2/es/index.js +1 -1
  36. package/aftenpostenv2/es/{scale-ad-oghrje8i.js → scale-ad-C49Ut9zr.js} +1 -1
  37. package/aftenpostenv2/es/{styles-D-VfBgOu.js → styles-Ac46g-YW.js} +1 -1
  38. package/aftenpostenv2/es/{styles-fzT9EwC5.js → styles-BJpYKa8M.js} +1 -1
  39. package/aftenpostenv2/es/{styles-CoMJR6g_.js → styles-BchRMhbH.js} +1 -1
  40. package/aftenpostenv2/es/{styles-Cl0DDnnQ.js → styles-CjwVJpYX.js} +1 -1
  41. package/aftenpostenv2/es/{styles-DB7US7Zo.js → styles-CzukL4zG.js} +1 -1
  42. package/aftenpostenv2/es/{styles-DVg5jDcH.js → styles-D7cNxIam.js} +1 -1
  43. package/aftenpostenv2/es/{styles-CZR9iBvp.js → styles-DUsUff50.js} +1 -1
  44. package/aftenpostenv2/es/{styles-CX9rG6J8.js → styles-Dsiga4Vz.js} +1 -1
  45. package/aftenpostenv2/es/{styles-qWPEE_zq.js → styles-Dw1Si2ah.js} +1 -1
  46. package/aftenpostenv2/es/{styles-Ck9le9Vw.js → styles-asujvz27.js} +1 -1
  47. package/aftonbladet/cjs/index.js +1 -1
  48. package/aftonbladet/es/{_auto-entry_aftonbladet-BWfzMHpu.js → _auto-entry_aftonbladet-h6DNckwN.js} +1 -1
  49. package/aftonbladet/es/{events-DadZOnBd.js → events-DulRyicm.js} +1 -1
  50. package/{aftenposten/es/index-Brf5poal.js → aftonbladet/es/index--QVpi0TR.js} +1 -1
  51. package/aftonbladet/es/{index-D9xGimq2.js → index-4xPmUl3_.js} +1 -1
  52. package/aftonbladet/es/{index-DZJcmYKp.js → index-C6Eb1Qrn.js} +1 -1
  53. package/aftonbladet/es/{index-ComEFzA9.js → index-CQvQu7pz.js} +1 -1
  54. package/aftonbladet/es/{index-BywtD31R.js → index-DXezzjPp.js} +1 -1
  55. package/aftonbladet/es/{index-CqmYRujq.js → index-DZmjXNQE.js} +1 -1
  56. package/aftonbladet/es/{index-BvdJA_YE.js → index-DdgHRBkn.js} +1 -1
  57. package/aftonbladet/es/{index-CeQROqCL.js → index-e-_eRuQL.js} +1 -1
  58. package/aftonbladet/es/index.js +1 -1
  59. package/aftonbladet/es/{styles-7j0Hc6sp.js → styles-BVbUvZTY.js} +1 -1
  60. package/aftonbladet/es/{styles-D67vj7n3.js → styles-C1aQAT3Q.js} +1 -1
  61. package/aftonbladet/es/{styles-Bg0CiD5K.js → styles-C7uVXh9Y.js} +1 -1
  62. package/aftonbladet/es/{styles-B9zblQhj.js → styles-Dfkn_-JH.js} +1 -1
  63. package/aftonbladet/es/{styles-B9Yki73M.js → styles-Dz356ikP.js} +1 -1
  64. package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-xbITPy5Y.js → _auto-entry_aftonbladetv2-CFy02vTE.js} +1 -1
  65. package/aftonbladetv2/es/{events-CrsrvV91.js → events-QZSgTQvz.js} +1 -1
  66. package/aftonbladetv2/es/{index-kJpbM8Cw.js → index-3roYJ2-8.js} +1 -1
  67. package/aftonbladetv2/es/{index-CUiUk3xX.js → index-B4EltwuC.js} +1 -1
  68. package/aftonbladetv2/es/{index-Bd8T8x2v.js → index-B7FfXrVQ.js} +1 -1
  69. package/aftonbladetv2/es/{index-Bv_S5RiU.js → index-BXrylY2M.js} +1 -1
  70. package/aftonbladetv2/es/{index-BTtVnP-a.js → index-CQSf8i1k.js} +1 -1
  71. package/aftonbladetv2/es/{index-TKW3AIT5.js → index-CbFLREUA.js} +1 -1
  72. package/aftonbladetv2/es/{index-XtxyezH-.js → index-DXcxJZTo.js} +1 -1
  73. package/aftonbladetv2/es/{index-4oJJGLpZ.js → index-DqrD8sjH.js} +1 -1
  74. package/aftonbladetv2/es/index.js +1 -1
  75. package/aftonbladetv2/es/{scale-ad-Bu-OTusW.js → scale-ad-BtTUIhz2.js} +1 -1
  76. package/aftonbladetv2/es/{styles-Cq35TYnJ.js → styles-BIc-TX-O.js} +1 -1
  77. package/aftonbladetv2/es/{styles-BAMVUVBT.js → styles-BTMcF6oN.js} +1 -1
  78. package/aftonbladetv2/es/{styles-B68GU9Br.js → styles-Cb8nIkZt.js} +1 -1
  79. package/aftonbladetv2/es/{styles-BsKBZcpP.js → styles-DZn1yBKx.js} +1 -1
  80. package/aftonbladetv2/es/{styles-BdfNSbzW.js → styles-wvFTYFae.js} +1 -1
  81. package/aftonbladetv2/styles.css +1 -1
  82. package/bt/cjs/index.js +1 -1
  83. package/bt/es/{_auto-entry_bt-MoyUxChE.js → _auto-entry_bt-CVnGKgwu.js} +1 -1
  84. package/bt/es/{events-BO2Jqccj.js → events-DmwmGNZZ.js} +1 -1
  85. package/bt/es/{index-_ctMXfR3.js → index-B4ZR_9mq.js} +1 -1
  86. package/bt/es/{index-ulnsaUpK.js → index-BLDEN_N8.js} +1 -1
  87. package/{sa/es/index-DZ42Nt-2.js → bt/es/index-BWLct5Rx.js} +1 -1
  88. package/bt/es/{index-7ZTN81IP.js → index-DJRwSKF4.js} +1 -1
  89. package/bt/es/{index-C2-eU0UF.js → index-DMmit_Nd.js} +1 -1
  90. package/bt/es/{index-C9XPxBPH.js → index-DS-6JwaH.js} +1 -1
  91. package/bt/es/{index-DrQCHk53.js → index-M7bAjRom.js} +1 -1
  92. package/bt/es/{index-D1TkSQcB.js → index-ucdoy1FS.js} +1 -1
  93. package/bt/es/index.js +1 -1
  94. package/bt/es/{scale-ad-D4t8YNyo.js → scale-ad-BhMKICgu.js} +1 -1
  95. package/{sa/es/styles-BH0a_nht.js → bt/es/styles-BmOoJzIc.js} +1 -1
  96. package/bt/es/{styles-ByGsZF2k.js → styles-BuiZ6rBo.js} +1 -1
  97. package/{vg/es/styles-D_bbqZrI.js → bt/es/styles-Ce4tjJL8.js} +1 -1
  98. package/{sa/es/styles-C5AHLOi7.js → bt/es/styles-D3YDhfhr.js} +1 -1
  99. package/{sa/es/styles-2UcWuwkn.js → bt/es/styles-D487j0TU.js} +1 -1
  100. package/bt/es/{styles-DRy8afqL.js → styles-DQ98jhRR.js} +1 -1
  101. package/bt/es/{styles-n7bkuYjq.js → styles-DQuKQudE.js} +1 -1
  102. package/bt/es/{styles-BdjHNh8j.js → styles-Dqjrqoue.js} +1 -1
  103. package/{vg/es/styles-bAVWxP8P.js → bt/es/styles-HfykBcnL.js} +1 -1
  104. package/btv2/es/{_auto-entry_btv2-Dxtv2akG.js → _auto-entry_btv2-B5wex4b7.js} +1 -1
  105. package/btv2/es/{events-j67JLQ2H.js → events-BDnXa22g.js} +1 -1
  106. package/btv2/es/{index-CFZe5uVP.js → index-580-VT45.js} +1 -1
  107. package/btv2/es/{index-Cq0lapvk.js → index-B-ip_4Xw.js} +1 -1
  108. package/btv2/es/{index-xGxoLsR2.js → index-B6-URY6y.js} +1 -1
  109. package/btv2/es/{index-BsQp7LQQ.js → index-DTTWPaZP.js} +1 -1
  110. package/btv2/es/{index-6L0eLvqi.js → index-KoMB7ZZe.js} +1 -1
  111. package/btv2/es/{index-Dca95pIk.js → index-SvVanoA-.js} +1 -1
  112. package/btv2/es/{index-Ds248THS.js → index-jULwe8iC.js} +1 -1
  113. package/btv2/es/{index-mnRm12-k.js → index-mIzhU5BX.js} +1 -1
  114. package/btv2/es/index.js +1 -1
  115. package/btv2/es/{scale-ad-ZiyaqpZY.js → scale-ad-DZcrVDNy.js} +1 -1
  116. package/{sav2/es/styles-D2HQJIvz.js → btv2/es/styles-BaCDxRra.js} +1 -1
  117. package/{vgv2/es/styles-DSXco1bB.js → btv2/es/styles-BfFTEGeK.js} +1 -1
  118. package/{vgv2/es/styles-Do1uCNYS.js → btv2/es/styles-Byy0S5HC.js} +1 -1
  119. package/{sav2/es/styles-CQDTd7Yn.js → btv2/es/styles-CXXGphfu.js} +1 -1
  120. package/btv2/es/{styles-u0pKEnRr.js → styles-Cb0LqBSI.js} +1 -1
  121. package/{sav2/es/styles-BHMb0lFS.js → btv2/es/styles-Dy4LlV-j.js} +1 -1
  122. package/btv2/es/{styles-D33CY1B0.js → styles-VHa9npvf.js} +1 -1
  123. package/btv2/es/{styles-BMat4ntk.js → styles-VLuGkKhJ.js} +1 -1
  124. package/e24/es/{_auto-entry_e24-BZ-Y0wfw.js → _auto-entry_e24-BHYSGq6v.js} +1 -1
  125. package/e24/es/{events-BufTLFvD.js → events-FxBnV0vA.js} +1 -1
  126. package/e24/es/{index-VSYazOOP.js → index-B04EMmtI.js} +1 -1
  127. package/e24/es/{index-a27bOqcM.js → index-BXVP_eQl.js} +1 -1
  128. package/e24/es/{index-BeKuz8kl.js → index-CLcI0vSZ.js} +1 -1
  129. package/e24/es/{index-CdXeC1XR.js → index-Cl2Ebr4M.js} +1 -1
  130. package/e24/es/{index-D2hsKd_j.js → index-D5iJu4s2.js} +1 -1
  131. package/e24/es/{index-BoX_Ms3q.js → index-DBU_07W5.js} +1 -1
  132. package/e24/es/{index-xMcYW3T_.js → index-DMjxW8TA.js} +1 -1
  133. package/e24/es/{index-Ds3LzWiF.js → index-qk4MHvP6.js} +1 -1
  134. package/e24/es/index.js +1 -1
  135. package/e24/es/{scale-ad-BNf4Fsqm.js → scale-ad-DA4lceUY.js} +1 -1
  136. package/e24/es/{styles-C7yJ56lw.js → styles-B5VfCsHU.js} +1 -1
  137. package/e24/es/{styles-DZuVpLJ7.js → styles-BDVl0wXV.js} +1 -1
  138. package/{tv4/es/styles-B2VSV977.js → e24/es/styles-BSWi5Y15.js} +1 -1
  139. package/e24/es/{styles-Ddde3ZOq.js → styles-BUi7dSQv.js} +1 -1
  140. package/e24/es/{styles-BFFQPUWj.js → styles-Cl9M0Qcl.js} +1 -1
  141. package/e24/es/{styles-B-CEI8Wp.js → styles-CtIdf26M.js} +1 -1
  142. package/e24/es/{styles-CoHTfZq0.js → styles-CxnKS6og.js} +1 -1
  143. package/e24/es/{styles-KRjAedia.js → styles-PowW6fOJ.js} +1 -1
  144. package/e24/es/{styles-BSOMBwHE.js → styles-hcbL_iuy.js} +1 -1
  145. package/e24/es/{styles-BfBG0BOv.js → styles-s18EwT96.js} +1 -1
  146. package/e24/es/{styles-CEn4rxLe.js → styles-z2iVwP4v.js} +1 -1
  147. package/fotbollskanalen/cjs/index.js +1 -1
  148. package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-tf5B8Ird.js → _auto-entry_fotbollskanalen-BL4ZlKfU.js} +1 -1
  149. package/fotbollskanalen/es/{events-DEDuFlTj.js → events-BYqbWgGb.js} +1 -1
  150. package/fotbollskanalen/es/{index-PByAFKys.js → index-9OxIIf9T.js} +1 -1
  151. package/fotbollskanalen/es/{index-Bk50Iqqu.js → index-BmmKMZts.js} +1 -1
  152. package/fotbollskanalen/es/{index-CT8A110M.js → index-BvtE8Lzw.js} +1 -1
  153. package/fotbollskanalen/es/{index-DJxrgsR5.js → index-CDDeUDoz.js} +1 -1
  154. package/fotbollskanalen/es/{index-BZfYNCDy.js → index-Coeggf4K.js} +1 -1
  155. package/fotbollskanalen/es/{index--b2Lev8c.js → index-D660_6ei.js} +1 -1
  156. package/fotbollskanalen/es/{index-CpE_tcqA.js → index-TqFwOfDz.js} +1 -1
  157. package/fotbollskanalen/es/{index-CEkeM4Tv.js → index-qOPfgavz.js} +1 -1
  158. package/fotbollskanalen/es/index.js +1 -1
  159. package/fotbollskanalen/es/{scale-ad-arh_rlli.js → scale-ad-nDIVtUO1.js} +1 -1
  160. package/fotbollskanalen/es/{styles-C2m2x191.js → styles-Jry3BR-b.js} +1 -1
  161. package/glimr/es/glimr-Crymyq4O.js +1 -0
  162. package/glimr/es/glimr-sdk-B7FY2YN8.js +1 -0
  163. package/glimr/es/index.js +1 -0
  164. package/godare/cjs/index.js +1 -1
  165. package/godt/cjs/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-C6PBxlyW.js → _auto-entry_koket-DakE_7Xi.js} +1 -1
  169. package/koket/es/{events-yHVpiPae.js → events-DtqaojTG.js} +1 -1
  170. package/koket/es/{index-o8BzRnXh.js → index-B40eR0N8.js} +1 -1
  171. package/koket/es/{index-BXF-kmve.js → index-BQHK7ypj.js} +1 -1
  172. package/koket/es/{index-Dn-9hHv-.js → index-C61ghlBf.js} +1 -1
  173. package/koket/es/{index-CPjnqI-6.js → index-CFdDHyVM.js} +1 -1
  174. package/koket/es/{index-CepWIdyH.js → index-C_iCGQN2.js} +1 -1
  175. package/koket/es/{index-DGby1mGx.js → index-DVy_5oMo.js} +1 -1
  176. package/koket/es/{index-CptjGiXd.js → index-_XaJmxZM.js} +1 -1
  177. package/koket/es/{index-DM1E_NEw.js → index-vAxeDLuQ.js} +1 -1
  178. package/koket/es/index.js +1 -1
  179. package/koket/es/{scale-ad-CXRkaPI0.js → scale-ad-C7R8hi1i.js} +1 -1
  180. package/{svdv2/es/styles-Drb79iBV.js → koket/es/styles-tGbE1hqF.js} +1 -1
  181. package/minmote/cjs/index.js +1 -1
  182. package/package.json +13 -1
  183. package/pent/cjs/index.js +1 -1
  184. package/sa/cjs/index.js +1 -1
  185. package/sa/es/{_auto-entry_sa-tDG8xSe9.js → _auto-entry_sa-C0Dx2e-d.js} +1 -1
  186. package/sa/es/{events-DY7jCT_z.js → events-D6c51YDh.js} +1 -1
  187. package/sa/es/{index-C4xBbb_y.js → index-B1SWtRHX.js} +1 -1
  188. package/sa/es/{index-C6mIccES.js → index-B1naQzjL.js} +1 -1
  189. package/sa/es/{index-Dn_ueExa.js → index-BJAIVL1n.js} +1 -1
  190. package/sa/es/{index-ByzW6XX4.js → index-BlBGCBF7.js} +1 -1
  191. package/sa/es/{index-CaLMOCfR.js → index-D9eEw02Y.js} +1 -1
  192. package/sa/es/{index-ywQdUehK.js → index-DKaOv8LR.js} +1 -1
  193. package/{bt/es/index-CA2l4HZM.js → sa/es/index-J36en3WL.js} +1 -1
  194. package/sa/es/{index-KiIGwmbz.js → index-cuFmm3Ar.js} +1 -1
  195. package/sa/es/index.js +1 -1
  196. package/sa/es/{scale-ad-kzGa7O13.js → scale-ad-BMxBnCtW.js} +1 -1
  197. package/sa/es/{styles-DwkmOcN3.js → styles-BB4p2QI7.js} +1 -1
  198. package/{vg/es/styles-j05WSgqs.js → sa/es/styles-BIhpRBaL.js} +1 -1
  199. package/sa/es/{styles-CA-4Zkmi.js → styles-BfPSZ9f0.js} +1 -1
  200. package/{bt/es/styles-BY2rGG3H.js → sa/es/styles-CCslSLTo.js} +1 -1
  201. package/{bt/es/styles-DZyHXHg2.js → sa/es/styles-CTC82xOV.js} +1 -1
  202. package/sa/es/{styles-DWsY_8Gt.js → styles-CcPT8kgm.js} +1 -1
  203. package/sa/es/{styles-Cvd0m7Wj.js → styles-CgwCZL5Y.js} +1 -1
  204. package/{bt/es/styles-39x-Nijs.js → sa/es/styles-DzI_6t0a.js} +1 -1
  205. package/{vg/es/styles-ffxnjS1s.js → sa/es/styles-lbsFxb42.js} +1 -1
  206. package/sav2/es/{_auto-entry_sav2-CY0kYMlP.js → _auto-entry_sav2-DYjPqZ0-.js} +1 -1
  207. package/sav2/es/{events-Cl5_-LxE.js → events-BfXen0Z2.js} +1 -1
  208. package/sav2/es/{index-CKrldH2y.js → index-BkM3cMtv.js} +1 -1
  209. package/sav2/es/{index-CfEUqa5g.js → index-BmR8vbZQ.js} +1 -1
  210. package/sav2/es/{index-CxogNI4h.js → index-BzDAtr11.js} +1 -1
  211. package/sav2/es/{index-BsNfAXFB.js → index-ChvYwZI0.js} +1 -1
  212. package/sav2/es/{index-BQpx1HFa.js → index-D1km7EaV.js} +1 -1
  213. package/sav2/es/{index-DxtM0Z6Y.js → index-DHShJOx5.js} +1 -1
  214. package/sav2/es/{index-_Ejzv04C.js → index-d0gyjucc.js} +1 -1
  215. package/sav2/es/{index-CJN3SngB.js → index-n6mKEw8M.js} +1 -1
  216. package/sav2/es/index.js +1 -1
  217. package/sav2/es/{scale-ad-i1hUVl_0.js → scale-ad-B1NlJOsE.js} +1 -1
  218. package/{vgv2/es/styles-G1HvqhV7.js → sav2/es/styles-BkzVSC5G.js} +1 -1
  219. package/{btv2/es/styles-DavpS2Qo.js → sav2/es/styles-CP_kmZ2u.js} +1 -1
  220. package/sav2/es/{styles-CClYWKKX.js → styles-CojijyKn.js} +1 -1
  221. package/{btv2/es/styles-Hp2gvvov.js → sav2/es/styles-CsI7Limr.js} +1 -1
  222. package/{vgv2/es/styles-8TOXRYKV.js → sav2/es/styles-DEGFrKoF.js} +1 -1
  223. package/sav2/es/{styles-C7W5NtfH.js → styles-OsqEAqBL.js} +1 -1
  224. package/sav2/es/{styles-DTguZBdK.js → styles-gn7zE9Se.js} +1 -1
  225. package/sav2/es/{styles-O5kf_SS2.js → styles-peqAjv4h.js} +1 -1
  226. package/svd/cjs/index.js +1 -1
  227. package/svd/es/{_auto-entry_svd-DH7LO3Q1.js → _auto-entry_svd-Bf75Pfnc.js} +1 -1
  228. package/svd/es/{events-BfHDXvEa.js → events-5RTCbRHl.js} +1 -1
  229. package/svd/es/{index-DTLUbVca.js → index-B9-ca4FP.js} +1 -1
  230. package/svd/es/{index-Boy6aZPe.js → index-BQ85ML9G.js} +1 -1
  231. package/svd/es/{index-ICodhL23.js → index-BU6sbUPU.js} +1 -1
  232. package/svd/es/{index-CYGUdY_V.js → index-C7eicIGr.js} +1 -1
  233. package/svd/es/{index-ek7rIfUG.js → index-CCOVmsc_.js} +1 -1
  234. package/{tv4/es/index-DRh-stB1.js → svd/es/index-DeuZGhY7.js} +1 -1
  235. package/svd/es/{index-Z0qXlpGo.js → index-DurvxLS0.js} +1 -1
  236. package/svd/es/{index-up5aSvfa.js → index-OBw-ZSKZ.js} +1 -1
  237. package/svd/es/index.js +1 -1
  238. package/svd/es/{styles-DkkxsDP5.js → styles-B-sLxRxB.js} +1 -1
  239. package/svd/es/{styles-Bt9ckY6n.js → styles-BSMPr9mI.js} +1 -1
  240. package/svd/es/{styles-DxkUSfPu.js → styles-CGQXuXdY.js} +1 -1
  241. package/svd/es/{styles-DTVFdha1.js → styles-D2eg6SEI.js} +1 -1
  242. package/svd/es/{styles-BffkOL2w.js → styles-Dg7-Dpfd.js} +1 -1
  243. package/svd/es/{styles-faaQZ_nf.js → styles-xPPOTmyw.js} +1 -1
  244. package/svdv2/es/{_auto-entry_svdv2-5_0fDkQj.js → _auto-entry_svdv2-CpeREFmY.js} +1 -1
  245. package/svdv2/es/{events-B-DOY_45.js → events-DziTGi0V.js} +1 -1
  246. package/svdv2/es/{index-DDOvDflQ.js → index-Bu5orNk7.js} +1 -1
  247. package/svdv2/es/{index-TR56622L.js → index-Ch0Imx-a.js} +1 -1
  248. package/svdv2/es/{index-BpaHWEgs.js → index-Cl1DPmvk.js} +1 -1
  249. package/svdv2/es/{index-DPxr83aM.js → index-D2B5G3sz.js} +1 -1
  250. package/svdv2/es/{index-CNpgbjRq.js → index-DKgDkLec.js} +1 -1
  251. package/svdv2/es/{index-CF9qRNqV.js → index-ZxTqC-BV.js} +1 -1
  252. package/svdv2/es/{index-Dn2iRhTI.js → index-hGs3eVJY.js} +1 -1
  253. package/svdv2/es/{index-CUJxDT20.js → index-y1UcqKNM.js} +1 -1
  254. package/svdv2/es/index.js +1 -1
  255. package/svdv2/es/{scale-ad-Dw2tlFek.js → scale-ad-BcI91SqW.js} +1 -1
  256. package/svdv2/es/{styles-BTxEe9wU.js → styles-BBapv3K3.js} +1 -1
  257. package/{koket/es/styles-Bt_3EPbc.js → svdv2/es/styles-BziheQO-.js} +1 -1
  258. package/svdv2/es/{styles-c7nyBNHO.js → styles-ChqHE6jR.js} +1 -1
  259. package/svdv2/es/{styles-C2RyMm7p.js → styles-CmiSKYil.js} +1 -1
  260. package/svdv2/es/{styles-xMSj5PRm.js → styles-DboLIjdM.js} +1 -1
  261. package/svdv2/es/{styles-BvIm9y9U.js → styles-DcKmy-aT.js} +1 -1
  262. package/tek/cjs/index.js +1 -1
  263. package/tracker/es/index.d.ts +591 -0
  264. package/tracker/es/index.js +1 -0
  265. package/tv4/cjs/index.js +1 -1
  266. package/tv4/es/{_auto-entry_tv4-B79FIPDF.js → _auto-entry_tv4-D0e2DKOy.js} +1 -1
  267. package/tv4/es/{events-BuFrBsPO.js → events-BGAhmaGY.js} +1 -1
  268. package/tv4/es/{index-N-PjTVe1.js → index-B1edPt_R.js} +1 -1
  269. package/tv4/es/{index-C1OXwwaM.js → index-B6tYV35h.js} +1 -1
  270. package/tv4/es/{index-CyEZoHB-.js → index-BC4TdCkj.js} +1 -1
  271. package/tv4/es/{index-DkkS72Wv.js → index-BXQX7bvh.js} +1 -1
  272. package/tv4/es/{index-CcXrk4xW.js → index-Br7pKGbc.js} +1 -1
  273. package/tv4/es/{index-D_bpF7kQ.js → index-DNTCFvSS.js} +1 -1
  274. package/{svd/es/index-Doytip_-.js → tv4/es/index-DgwjP7Qh.js} +1 -1
  275. package/tv4/es/{index-BgfmMXAp.js → index-DhNaqk_h.js} +1 -1
  276. package/tv4/es/index.js +1 -1
  277. package/tv4/es/{scale-ad-DymzQm0Y.js → scale-ad-BCX16JTW.js} +1 -1
  278. package/{e24/es/styles-Bb-2COMN.js → tv4/es/styles-B0-w9Sb4.js} +1 -1
  279. package/tvnu/cjs/index.js +1 -1
  280. package/vg/cjs/index.js +1 -1
  281. package/vg/es/{_auto-entry_vg-BHaK2bY9.js → _auto-entry_vg-CESCVcqF.js} +1 -1
  282. package/vg/es/{events-f1pWmpgv.js → events-CE5TpBmP.js} +1 -1
  283. package/vg/es/{index-MPio3Vap.js → index-B-B_rG8Y.js} +1 -1
  284. package/vg/es/{index-DnDsATHZ.js → index-B0xA2grA.js} +1 -1
  285. package/vg/es/{index-CdvCGDKf.js → index-BBRlxR4N.js} +1 -1
  286. package/vg/es/{index-CzTDmfbs.js → index-BKp7XMKQ.js} +1 -1
  287. package/vg/es/{index-DFVoEfzv.js → index-CxKMoVjO.js} +1 -1
  288. package/vg/es/{index-C9bhDLlf.js → index-DsYey_4K.js} +1 -1
  289. package/vg/es/{index-T8CVkFwi.js → index-ZEeaxvFn.js} +1 -1
  290. package/vg/es/{index-Cu8fOT27.js → index-Zz8BsFor.js} +1 -1
  291. package/vg/es/index.js +1 -1
  292. package/vg/es/{scale-ad-PC7wP59i.js → scale-ad-B8zVRA_q.js} +1 -1
  293. package/{sa/es/styles-B9b-tQBe.js → vg/es/styles-BBH1tiV9.js} +1 -1
  294. package/vg/es/{styles-PeGgCF8H.js → styles-BI4vAe4o.js} +1 -1
  295. package/vg/es/{styles-EfZsLCIV.js → styles-BO0Zkzbl.js} +1 -1
  296. package/vg/es/{styles-B_JWmkJG.js → styles-BYOYoTG-.js} +1 -1
  297. package/{bt/es/styles-aKU-xgzP.js → vg/es/styles-BaL0R31f.js} +1 -1
  298. package/vg/es/{styles-CyQVwQ3u.js → styles-BpJZXTPG.js} +1 -1
  299. package/vg/es/{styles-CracV5XI.js → styles-C4Xps43V.js} +1 -1
  300. package/vg/es/{styles-DMICEpSy.js → styles-Cr-Lu10Z.js} +1 -1
  301. package/vg/es/{styles-DJ4rsvOC.js → styles-CrKFASKe.js} +1 -1
  302. package/vg/es/{styles-U_xyVoRe.js → styles-DDNKkEzd.js} +1 -1
  303. package/{bt/es/styles-CPlYciF9.js → vg/es/styles-DPxr1rvG.js} +1 -1
  304. package/{sa/es/styles-DiKIHYk8.js → vg/es/styles-DWVf_5i5.js} +1 -1
  305. package/vg/es/{styles-1JIUF_E8.js → styles-DYenIxMV.js} +1 -1
  306. package/vg/es/{styles-96foOY6e.js → styles-Dh-KGVLB.js} +1 -1
  307. package/vg/es/{styles-F9geefdO.js → styles-EyAdkrFJ.js} +1 -1
  308. package/vgv2/es/{_auto-entry_vgv2-DI5G8ObB.js → _auto-entry_vgv2-RZ38lnR0.js} +1 -1
  309. package/vgv2/es/{events-DPEFkQ--.js → events-Dlw5UgN6.js} +1 -1
  310. package/vgv2/es/{index-DK6bfeGg.js → index-B4bKS3eF.js} +1 -1
  311. package/vgv2/es/{index-BmvOC5lR.js → index-C4a6tTwa.js} +1 -1
  312. package/vgv2/es/{index-smm5ZyVj.js → index-CuiZBleO.js} +1 -1
  313. package/vgv2/es/{index-BbxhQxDr.js → index-CyymqJnx.js} +1 -1
  314. package/vgv2/es/{index-CQJhC0Kc.js → index-D6ZZZe6V.js} +1 -1
  315. package/vgv2/es/{index-DZx9Ssyx.js → index-DFbQx1p5.js} +1 -1
  316. package/vgv2/es/{index-DL2cnwgP.js → index-azIt2Y0H.js} +1 -1
  317. package/vgv2/es/{index-Qmo9Nan-.js → index-tYZjVN8z.js} +1 -1
  318. package/vgv2/es/index.js +1 -1
  319. package/vgv2/es/{scale-ad-Pwah6lar.js → scale-ad-CMimq6Of.js} +1 -1
  320. package/vgv2/es/{styles-BdbJiPyJ.js → styles-BEnFRSZQ.js} +1 -1
  321. package/vgv2/es/{styles-Bkay-zKq.js → styles-BYeumSRu.js} +1 -1
  322. package/vgv2/es/{styles-Cs_0DRMW.js → styles-BwlWUr3V.js} +1 -1
  323. package/vgv2/es/{styles-HjkY3I3R.js → styles-C2Vo-soL.js} +1 -1
  324. package/{sav2/es/styles-B6vJg0Xr.js → vgv2/es/styles-C5iKe9f9.js} +1 -1
  325. package/{btv2/es/styles-DiXpAeoP.js → vgv2/es/styles-C8W7GC5E.js} +1 -1
  326. package/vgv2/es/{styles-Cz9QEV6B.js → styles-CLivlydP.js} +1 -1
  327. package/vgv2/es/{styles-CcCqhkYD.js → styles-ChwcrMcl.js} +1 -1
  328. package/vgv2/es/{styles-DeCv4Yvp.js → styles-Cu4tRH6t.js} +1 -1
  329. package/vgv2/es/{styles-DN6PbtF3.js → styles-DG3nbsdh.js} +1 -1
  330. package/vgv2/es/{styles-BRYOzfcc.js → styles-DI1U5ZgF.js} +1 -1
  331. package/{btv2/es/styles-DiYQ1TzQ.js → vgv2/es/styles-Dymwy8vi.js} +1 -1
  332. package/{btv2/es/styles-B4Ahi4ph.js → vgv2/es/styles-ITcDtgO1.js} +1 -1
  333. package/vgv2/es/{styles-4VdivQOu.js → styles-oG4sTy6B.js} +1 -1
  334. package/vgv2/es/{styles-uXZLq50U.js → styles-w5xrejWS.js} +1 -1
  335. package/vgv2/styles.css +1 -1
  336. package/video/es/index.js +1 -0
@@ -1 +1 @@
1
- import{c as e,x as t,m as r,A as s,y as n,z as a,B as o,C as i}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import"react/jsx-runtime";const l=(a,o)=>{const{siteSpecificConfig:{publisherClassName:i}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${a}`);if(!c)return;if(c.classList.add(t),!i)return;r(i,c,s.FINN_BLINK,null!=o?o:l);n({preferredTestIdData:{targetId:a,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();a(t)&&o(t,r),i(t)&&(null==s||s(t,e.get()))},u=t=>{const{pageContext:{publisher:r=""}}=e.get(),s=document.querySelector(`#${t}`);if(!s)return;const n=`-${r}`;s.classList.remove(`advertory${n}-finn-blink`),s.classList.remove(`advertory${n}-finn-blink-wrapper`)};export{c as displaySpecialFormatsForFinnFallback,l as finnBlinkLoaded,u as xandrAdLoaded};
1
+ import{c as e,x as t,m as r,A as s,y as n,z as a,B as o,C as i}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import"react/jsx-runtime";const l=(a,o)=>{const{siteSpecificConfig:{publisherClassName:i}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${a}`);if(!c)return;if(c.classList.add(t),!i)return;r(i,c,s.FINN_BLINK,null!=o?o:l);n({preferredTestIdData:{targetId:a,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();a(t)&&o(t,r),i(t)&&(null==s||s(t,e.get()))},u=t=>{const{pageContext:{publisher:r=""}}=e.get(),s=document.querySelector(`#${t}`);if(!s)return;const n=`-${r}`;s.classList.remove(`advertory${n}-finn-blink`),s.classList.remove(`advertory${n}-finn-blink-wrapper`)};export{c as displaySpecialFormatsForFinnFallback,l as finnBlinkLoaded,u as xandrAdLoaded};
@@ -1 +1 @@
1
- import{c as t}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import{c as e}from"./scale-ad-arh_rlli.js";import"react/jsx-runtime";const r=e=>{const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:l}={}}=t.get();if(!r||!a||!l)return;const s=r.parentElement;s&&(r.classList.add(`advertory-${a}-${l}__full-width-ad`),s.classList.add(`advertory-${a}-${l}-wrapper__full-width-ad`))},a=r=>{var a;const l=document.querySelector(`#${r.targetId}`),s=null===(a=document.querySelector(`#${r.targetId}`))||void 0===a?void 0:a.parentElement,i=null==l?void 0:l.querySelector("iframe"),o=null==i?void 0:i.parentElement,{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:n}={}}=t.get();if(!(l&&i&&o&&s))return;s.classList.add(`advertory-${d}-${n}__vertical-full-width-ad-wrapper`);const c=window.innerWidth,u=Math.round(c/1080*1920);l.style.width="100%",l.style.height=`${u}px`,l.classList.add(`advertory-${d}-${n}__vertical-full-width-ad`);const f=e(r,l.offsetWidth);o.style.transform=`scale(${f})`,o.style.transformOrigin="left top"};export{r as prepareContainerForFullWidthFormat,a as scaleVerticalFullWidthAd};
1
+ import{c as t}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import{c as e}from"./scale-ad-nDIVtUO1.js";import"react/jsx-runtime";const r=e=>{const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:l}={}}=t.get();if(!r||!a||!l)return;const s=r.parentElement;s&&(r.classList.add(`advertory-${a}-${l}__full-width-ad`),s.classList.add(`advertory-${a}-${l}-wrapper__full-width-ad`))},a=r=>{var a;const l=document.querySelector(`#${r.targetId}`),s=null===(a=document.querySelector(`#${r.targetId}`))||void 0===a?void 0:a.parentElement,i=null==l?void 0:l.querySelector("iframe"),o=null==i?void 0:i.parentElement,{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:n}={}}=t.get();if(!(l&&i&&o&&s))return;s.classList.add(`advertory-${d}-${n}__vertical-full-width-ad-wrapper`);const c=window.innerWidth,u=Math.round(c/1080*1920);l.style.width="100%",l.style.height=`${u}px`,l.classList.add(`advertory-${d}-${n}__vertical-full-width-ad`);const f=e(r,l.offsetWidth);o.style.transform=`scale(${f})`,o.style.transformOrigin="left top"};export{r as prepareContainerForFullWidthFormat,a as scaleVerticalFullWidthAd};
@@ -1 +1 @@
1
- import{_ as t,c as e,j as o,O as n,P as s}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",a=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:a,isMobileApp:d},tcf:c}=e.get(),r=yield o(c,d,a,"norstat");if(!s||d||!r)return;const l=n(a);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(a)}/map/${l}`,"norstat")});export{i as getCampaign,a as loadNorstat};
1
+ import{_ as t,c as e,j as o,O as n,P as s}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",a=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:a,isMobileApp:d},tcf:c}=e.get(),r=yield o(c,d,a,"norstat");if(!s||d||!r)return;const l=n(a);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(a)}/map/${l}`,"norstat")});export{i as getCampaign,a as loadNorstat};
@@ -1 +1 @@
1
- import{c as e,E as t,S as o,G as l}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import{s as d}from"./scale-ad-arh_rlli.js";export{c as calculateScaleFactor,g as getAspectRatio,a as scaleAdIpadAirPortrait}from"./scale-ad-arh_rlli.js";import"react/jsx-runtime";const n=a=>{var n,i,s,r,c,u;const{adScaleConfig:f,pageContext:{deviceType:v}}=e.get();if(!(null==f?void 0:f.enabled))return;if(t(a,o.ANY_FULLSCREEN))return;const p=null!==(n=f.adsToBeScaled[v])&&void 0!==n?n:[],m=l(a.targetId.split("-")[0]);if(!p.includes(m))return;const g=null!==(s=null===(i=f.offset)||void 0===i?void 0:i[m])&&void 0!==s?s:0,w=document.getElementById(a.targetId),E=null!==(r=null==w?void 0:w.offsetWidth)&&void 0!==r?r:window.screen.width,S=null!==(u=null===(c=null==w?void 0:w.parentElement)||void 0===c?void 0:c.offsetWidth)&&void 0!==u?u:window.screen.width;d(a,(E<S?E:S)-g)};export{d as scaleAd,n as scaleAds};
1
+ import{c as e,E as t,S as o,G as l}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import{s as d}from"./scale-ad-nDIVtUO1.js";export{c as calculateScaleFactor,g as getAspectRatio,a as scaleAdIpadAirPortrait}from"./scale-ad-nDIVtUO1.js";import"react/jsx-runtime";const n=a=>{var n,i,s,r,c,u;const{adScaleConfig:f,pageContext:{deviceType:v}}=e.get();if(!(null==f?void 0:f.enabled))return;if(t(a,o.ANY_FULLSCREEN))return;const p=null!==(n=f.adsToBeScaled[v])&&void 0!==n?n:[],m=l(a.targetId.split("-")[0]);if(!p.includes(m))return;const g=null!==(s=null===(i=f.offset)||void 0===i?void 0:i[m])&&void 0!==s?s:0,w=document.getElementById(a.targetId),E=null!==(r=null==w?void 0:w.offsetWidth)&&void 0!==r?r:window.screen.width,S=null!==(u=null===(c=null==w?void 0:w.parentElement)||void 0===c?void 0:c.offsetWidth)&&void 0!==u?u:window.screen.width;d(a,(E<S?E:S)-g)};export{d as scaleAd,n as scaleAds};
@@ -1 +1 @@
1
- import{_ as t,l as e,Q as a,R as n,j as i,U as l}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import{jsxs as r,jsx as s}from"react/jsx-runtime";class o{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let a;if(a=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!a)return[];const{host:n,pathname:i}=new URL(a);if(!n.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[a];const l=i.split("/");return l.length?[...l.filter(Boolean).slice(1).map(t=>t),a]:[a]}}class c{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}class d{constructor(t,e){this.pulse=t,this.newsroomStrategy=e}getEventInput(t,e){return{}}parseKilkayaData(t){const e=t.querySelector("article");if(!e)return{};const a=e.dataset.k5aTeaserAnalytics;try{return a?JSON.parse(a):{}}catch(t){return{}}}mapPageType(t){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[t||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(t){const{url:e,title:a,itemId:n}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:e}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)?null===(i=null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)||void 0===i||i.call(n,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)||void 0===s||s.call(r,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(a=(t=this.pulse).trackLegacyClickUIElement)||void 0===a||a.call(t,s):this.pulse.trackClickUIElement?null===(i=(n=this.pulse).trackClickUIElement)||void 0===i||i.call(n,s):null===(r=(l=this.pulse).trackElementClick)||void 0===r||r.call(l,s)})}}class u extends d{constructor(t,e,a){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=a}getEventBaseData(t){var e,a,n,i,l,r;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(t),u=this.mapPageType(this.pageType),v=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(n=null===(a=this.newsroomStrategy)||void 0===a?void 0:a.getPulseObjectId)||void 0===n?void 0:n.call(a))&&void 0!==i?i:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=v?v:d,"@type":u,url:location.origin},tags:null===(r=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===r?void 0:r.call(l,t)}}getEventTarget(t){const{link:e,itemId:a,title:n}=this.parseKilkayaData(t);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}getEventInput(t,e){return{object:this.getEventBaseData(t),partnerstudio:this.getEventPartnerstudioData(t,e),target:this.getEventTarget(t),provider:this.getProviderData()}}getEventPartnerstudioData(t,e){const a=this.parseKilkayaData(t);return Object.assign(Object.assign({},a),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v="[data-k5a-teaser-analytics]",p=(t,e,a)=>{const n=document.querySelectorAll("k5a-stream");if(!n.length)return;const i=new u(t,e,a),l=new WeakMap,r=t=>{const e=l.get(t);e&&(e.disconnect(),l.delete(t))},s=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(!t.isIntersecting)return;const a=t.target,n=a.querySelector(v);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)?(i.trackContentView(a),e.unobserve(t.target),r(a)):((t,e)=>{if(l.has(t))return;const a=new MutationObserver(()=>{const a=t.querySelector(v);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)&&(i.trackContentView(t),e.unobserve(t),r(t))});a.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),l.set(t,a)})(a,e)})},{threshold:.5});n.forEach(t=>{s.observe(t),t.addEventListener("click",()=>i.trackContentClick(t))})};class g{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a}}){if(!(null==t?void 0:t.instance))return;const n={[l.VG]:new o}[a]||new c;p(t.instance,n,e)}injectKilkayaMeta(t){const e=document.createElement("script");e.textContent=`var k5aMeta = { consent: ${t} };`,document.head.appendChild(e)}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var a;const n=null===(a=null==t?void 0:t.detail)||void 0===a?void 0:a.streamSlot;if(!n)return;const i=n.parentElement;i&&(e(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(i))})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";a(i)}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield n(e)})}run(e){return t(this,void 0,void 0,function*(){var t,a;const{tcf:n,pageContext:{isMobileApp:l,countryCode:r},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const o=yield i(n,l,r,"kilkaya");o&&(this.observeForKilkayaBackfills(),this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(a=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==a?a:""),this.handleKilkayaStreamTracking(e))})}}const h=({placementName:t,slotTag:e,fallbackTargetId:a,children:n,pulseData:i,htmlAttributes:l})=>{const o=(t,e)=>{const a={};if(!t)return a;for(const[n,i]of Object.entries(t)){a[e?`${e}-${n}`:n]=String(i)}return a},c=o(i,"data-pulse"),d=o(l,"data");return r("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},c,d,{children:[s("div",{className:"inscreen-target"}),s("k5a-stream",{name:t,"slot-tag":e}),s("div",{className:"container"}),s("div",{className:"fallback","data-fallback-target-id":a,style:{display:"none"},children:n})]}))},k=e=>t(void 0,void 0,void 0,function*(){const t=new g;yield t.run(e)});export{h as Kilkaya,k as runKilkaya};
1
+ import{_ as t,l as e,Q as a,R as n,j as i,U as l}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import{jsxs as r,jsx as s}from"react/jsx-runtime";class o{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let a;if(a=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!a)return[];const{host:n,pathname:i}=new URL(a);if(!n.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[a];const l=i.split("/");return l.length?[...l.filter(Boolean).slice(1).map(t=>t),a]:[a]}}class c{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}class d{constructor(t,e){this.pulse=t,this.newsroomStrategy=e}getEventInput(t,e){return{}}parseKilkayaData(t){const e=t.querySelector("article");if(!e)return{};const a=e.dataset.k5aTeaserAnalytics;try{return a?JSON.parse(a):{}}catch(t){return{}}}mapPageType(t){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[t||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(t){const{url:e,title:a,itemId:n}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:e}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)?null===(i=null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)||void 0===i||i.call(n,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)||void 0===s||s.call(r,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(a=(t=this.pulse).trackLegacyClickUIElement)||void 0===a||a.call(t,s):this.pulse.trackClickUIElement?null===(i=(n=this.pulse).trackClickUIElement)||void 0===i||i.call(n,s):null===(r=(l=this.pulse).trackElementClick)||void 0===r||r.call(l,s)})}}class u extends d{constructor(t,e,a){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=a}getEventBaseData(t){var e,a,n,i,l,r;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(t),u=this.mapPageType(this.pageType),v=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(n=null===(a=this.newsroomStrategy)||void 0===a?void 0:a.getPulseObjectId)||void 0===n?void 0:n.call(a))&&void 0!==i?i:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=v?v:d,"@type":u,url:location.origin},tags:null===(r=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===r?void 0:r.call(l,t)}}getEventTarget(t){const{link:e,itemId:a,title:n}=this.parseKilkayaData(t);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}getEventInput(t,e){return{object:this.getEventBaseData(t),partnerstudio:this.getEventPartnerstudioData(t,e),target:this.getEventTarget(t),provider:this.getProviderData()}}getEventPartnerstudioData(t,e){const a=this.parseKilkayaData(t);return Object.assign(Object.assign({},a),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v="[data-k5a-teaser-analytics]",p=(t,e,a)=>{const n=document.querySelectorAll("k5a-stream");if(!n.length)return;const i=new u(t,e,a),l=new WeakMap,r=t=>{const e=l.get(t);e&&(e.disconnect(),l.delete(t))},s=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(!t.isIntersecting)return;const a=t.target,n=a.querySelector(v);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)?(i.trackContentView(a),e.unobserve(t.target),r(a)):((t,e)=>{if(l.has(t))return;const a=new MutationObserver(()=>{const a=t.querySelector(v);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)&&(i.trackContentView(t),e.unobserve(t),r(t))});a.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),l.set(t,a)})(a,e)})},{threshold:.5});n.forEach(t=>{s.observe(t),t.addEventListener("click",()=>i.trackContentClick(t))})};class g{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a}}){if(!(null==t?void 0:t.instance))return;const n={[l.VG]:new o}[a]||new c;p(t.instance,n,e)}injectKilkayaMeta(t){const e=document.createElement("script");e.textContent=`var k5aMeta = { consent: ${t} };`,document.head.appendChild(e)}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var a;const n=null===(a=null==t?void 0:t.detail)||void 0===a?void 0:a.streamSlot;if(!n)return;const i=n.parentElement;i&&(e(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(i))})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";a(i)}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield n(e)})}run(e){return t(this,void 0,void 0,function*(){var t,a;const{tcf:n,pageContext:{isMobileApp:l,countryCode:r},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const o=yield i(n,l,r,"kilkaya");o&&(this.observeForKilkayaBackfills(),this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(a=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==a?a:""),this.handleKilkayaStreamTracking(e))})}}const h=({placementName:t,slotTag:e,fallbackTargetId:a,children:n,pulseData:i,htmlAttributes:l})=>{const o=(t,e)=>{const a={};if(!t)return a;for(const[n,i]of Object.entries(t)){a[e?`${e}-${n}`:n]=String(i)}return a},c=o(i,"data-pulse"),d=o(l,"data");return r("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},c,d,{children:[s("div",{className:"inscreen-target"}),s("k5a-stream",{name:t,"slot-tag":e}),s("div",{className:"container"}),s("div",{className:"fallback","data-fallback-target-id":a,style:{display:"none"},children:n})]}))},k=e=>t(void 0,void 0,void 0,function*(){const t=new g;yield t.run(e)});export{h as Kilkaya,k as runKilkaya};
@@ -1 +1 @@
1
- import{i as e,l as n,_ as i,c as t,g as o,a as r,b as d,d as l,e as s,F as a,h as c,f as u,j as f,k as v,u as m,m as g,A as h,s as p}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import{xandrAdLoaded as y,finnBlinkLoaded as b}from"./events-DEDuFlTj.js";import"react/jsx-runtime";e('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const k={Blink:"Blink"},w=new Map,$=e=>{var n;if(!w.has(e)){const n=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[n,i]of Object.entries(k)){const t=e[n];null!=t&&(window[i]=t)}})(e)).catch(n=>{throw w.delete(e),n});w.set(e,n)}return null!==(n=w.get(e))&&void 0!==n?n:Promise.resolve()},I="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",C="https://www.finn.no/distribution-front/external/carousel",S={get:e=>{try{const n=sessionStorage.getItem(e);return n?JSON.parse(n):null}catch(e){return n(`sessionStorageClient.get: Error during getting data from sessionStorage: ${e}`),null}},set:(e,i)=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(e){n(`sessionStorageClient.set: Error during saving data to sessionStorage: ${e}`)}},remove:e=>{try{sessionStorage.removeItem(e)}catch(e){n(`sessionStorageClient.remove: Error during remove data from sessionStorage: ${e}`)}}},j="finn_blink_id",x=e=>i(void 0,void 0,void 0,function*(){const{userId:n,id:i,hashed_email:t,theme:o}=e,r=u(e,["userId","id","hashed_email","theme"]),d=window[k.Blink];if(!d)return;const l=new d({remote:C,id:i,hashed_email:t,theme:o});yield l.inject(Object.assign({},r))}),B=e=>i(void 0,void 0,void 0,function*(){const{userId:n,theme:i}=e,t=u(e,["userId","theme"]),o=window[k.Blink];if(!o)return;const r=new o({remote:C,userId:n,theme:i});yield r.inject(Object.assign({},t))}),_=e=>{var n,i;const t=document.querySelector(`[id^="${e}"]`);return null!==(i=null===(n=null==t?void 0:t.dataset)||void 0===n?void 0:n.finnBlinkId)&&void 0!==i?i:e},E=(e,n)=>{const{finnBlink:{enabled:i}={}}=t.get(),o=(null==n?void 0:n.enabled)||(e=>{var n;const i=document.querySelector(`[id^="${e}"]`);return!!(null===(n=null==i?void 0:i.dataset)||void 0===n?void 0:n.noBidAd)})(e);if(!o||!i)return null;const{limit:r,height:d,requireImage:l,theme:s,rec:a,distributionTypes:c,position:u,offset:f}=(null==n?void 0:n.sdkPayload)||{};return{selector:`#${_(e)}`,enabled:o,position:null!=u?u:e,distributionTypes:null!=c?c:[],limit:null!=r?r:100,height:null!=d?d:100,offset:null!=f?f:200,requireImage:l,rec:a,theme:"dark"===s?"dark":"light",advertoryTheme:null==n?void 0:n.advertoryTheme}},T=(e,u,f)=>i(void 0,void 0,void 0,function*(){var v;const{placements:m,pageContext:{deviceType:g}}=t.get();n(`rendering finn blink ad for ${e}`);const h=o(e),p=m[g].find(e=>e.targetId===h),k=E(e,null==p?void 0:p.finnBlink);if(!(null==k?void 0:k.enabled))return n(`Finn blink is not enabled on placement: ${e}`),f&&f(e),void y(e);if((e=>{var n;const i=_(e),t=document.querySelector(`[id^="${i}"]`);return!!(null===(n=null==t?void 0:t.classList)||void 0===n?void 0:n.contains("finn"))})(e))return void n(`Finn blink already loaded ${e}`);const{publisher:w,countryCode:$,finnBlink:I}=u,{sdkPayload:{userId:C,uuid:T,channel:F,theme:N}={}}=null!=I?I:{},A=null!=F?F:`${w}.${$}`,q=(e=>{if(!e){const e=l();return null!=e?e:""}return e})(C),O="dark"===N?"dark":"light";try{const e=yield i(void 0,void 0,void 0,function*(){const{finnBlink:{identifierUrl:e}={}}=t.get(),n=S.get(j),i=s(a);if(!e||i)return"";if(!n){const n=yield c.get(e,{credentials:"include"}),{finn_blink_id:i}=n;if(!i)throw new Error("getFinnBlinkIdentifier: No finn_blink_id found");return S.set(j,i),i}return n}),n=yield r(),o=(null===(v=null==p?void 0:p.finnBlink)||void 0===v?void 0:v.useNewConstructor)?B:x;yield o(Object.assign(Object.assign({},k),{channel:A,id:q,userId:n,hashed_email:e,theme:O,uuid:T})).then(()=>{b(k.selector.replace("#",""),k.advertoryTheme)})}catch(i){n(`Finn blink error ${i}`),f&&f(e),!f&&d(e),y(e)}}),F=()=>i(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:i,countryCode:o}}=t.get();return!!(yield f(e,i,o,"finn-blink"))||(n("Skip loading finn blink ad due to missing TCF consent."),!1)}),N=(e,o,r,l)=>i(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=t.get();if(n(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield F())||i)return r&&r(e),y(e),void(!r&&d(e));try{yield $(I)}catch(e){console.error(e)}yield T(e,o,r),l&&l()}),A=(e,i)=>{var t;(n(`Appending ${i.id} after ${e.id}`),e.parentElement&&(t=e.parentElement,!Array.from(t.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",i)):n(`Cannot perform afterend on: ${e.id}`)},q=e=>i(void 0,void 0,void 0,function*(){if(!e)return;const{replacementConfig:i}=e;if(!(v()&&(null==i?void 0:i.adsToReplace)&&(null==i?void 0:i.sizes)&&e.enabled))return void n(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`);if(!(yield F()))return;yield $(I);const{adsToReplace:o,sizes:r}=i;o.forEach(([e,i])=>{const o=document.querySelector(`[id^="${e}"]`);if(!o)return;const r=(e=>{const{siteSpecificConfig:{publisherClassName:i}={}}=t.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=e,o.appendChild(r),g(i,r,h.FINN_BLINK),n(`Creating blink container for: ${e}`),o})(i);(e=>{n(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(o),A(o,r),o.dataset.finnBlinkId=i,m().withFullAdsChain(e)})}),O=e=>document.querySelector(`#${e}`),P=e=>i(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:n,pageContext:{deviceType:i}}=t.get(),o=null==n?void 0:n.defaultThreshold[i];for(const n of e){const{requestThreshold:e,targetId:i}=n,t=O(i);t&&(yield p(t,null!=e?e:o))}});export{P as handleFinnBlinkOnlyPlacements,N as loadFinnBlinkAd,q as replaceAdsWithFinnBlink};
1
+ import{i as e,l as n,_ as i,c as t,g as o,a as r,b as d,d as l,e as s,F as a,h as c,f as u,j as f,k as v,u as m,m as g,A as h,s as p}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import{xandrAdLoaded as y,finnBlinkLoaded as b}from"./events-BYqbWgGb.js";import"react/jsx-runtime";e('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const k={Blink:"Blink"},w=new Map,$=e=>{var n;if(!w.has(e)){const n=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[n,i]of Object.entries(k)){const t=e[n];null!=t&&(window[i]=t)}})(e)).catch(n=>{throw w.delete(e),n});w.set(e,n)}return null!==(n=w.get(e))&&void 0!==n?n:Promise.resolve()},I="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",C="https://www.finn.no/distribution-front/external/carousel",S={get:e=>{try{const n=sessionStorage.getItem(e);return n?JSON.parse(n):null}catch(e){return n(`sessionStorageClient.get: Error during getting data from sessionStorage: ${e}`),null}},set:(e,i)=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(e){n(`sessionStorageClient.set: Error during saving data to sessionStorage: ${e}`)}},remove:e=>{try{sessionStorage.removeItem(e)}catch(e){n(`sessionStorageClient.remove: Error during remove data from sessionStorage: ${e}`)}}},j="finn_blink_id",x=e=>i(void 0,void 0,void 0,function*(){const{userId:n,id:i,hashed_email:t,theme:o}=e,r=u(e,["userId","id","hashed_email","theme"]),d=window[k.Blink];if(!d)return;const l=new d({remote:C,id:i,hashed_email:t,theme:o});yield l.inject(Object.assign({},r))}),B=e=>i(void 0,void 0,void 0,function*(){const{userId:n,theme:i}=e,t=u(e,["userId","theme"]),o=window[k.Blink];if(!o)return;const r=new o({remote:C,userId:n,theme:i});yield r.inject(Object.assign({},t))}),_=e=>{var n,i;const t=document.querySelector(`[id^="${e}"]`);return null!==(i=null===(n=null==t?void 0:t.dataset)||void 0===n?void 0:n.finnBlinkId)&&void 0!==i?i:e},E=(e,n)=>{const{finnBlink:{enabled:i}={}}=t.get(),o=(null==n?void 0:n.enabled)||(e=>{var n;const i=document.querySelector(`[id^="${e}"]`);return!!(null===(n=null==i?void 0:i.dataset)||void 0===n?void 0:n.noBidAd)})(e);if(!o||!i)return null;const{limit:r,height:d,requireImage:l,theme:s,rec:a,distributionTypes:c,position:u,offset:f}=(null==n?void 0:n.sdkPayload)||{};return{selector:`#${_(e)}`,enabled:o,position:null!=u?u:e,distributionTypes:null!=c?c:[],limit:null!=r?r:100,height:null!=d?d:100,offset:null!=f?f:200,requireImage:l,rec:a,theme:"dark"===s?"dark":"light",advertoryTheme:null==n?void 0:n.advertoryTheme}},T=(e,u,f)=>i(void 0,void 0,void 0,function*(){var v;const{placements:m,pageContext:{deviceType:g}}=t.get();n(`rendering finn blink ad for ${e}`);const h=o(e),p=m[g].find(e=>e.targetId===h),k=E(e,null==p?void 0:p.finnBlink);if(!(null==k?void 0:k.enabled))return n(`Finn blink is not enabled on placement: ${e}`),f&&f(e),void y(e);if((e=>{var n;const i=_(e),t=document.querySelector(`[id^="${i}"]`);return!!(null===(n=null==t?void 0:t.classList)||void 0===n?void 0:n.contains("finn"))})(e))return void n(`Finn blink already loaded ${e}`);const{publisher:w,countryCode:$,finnBlink:I}=u,{sdkPayload:{userId:C,uuid:T,channel:F,theme:N}={}}=null!=I?I:{},A=null!=F?F:`${w}.${$}`,q=(e=>{if(!e){const e=l();return null!=e?e:""}return e})(C),O="dark"===N?"dark":"light";try{const e=yield i(void 0,void 0,void 0,function*(){const{finnBlink:{identifierUrl:e}={}}=t.get(),n=S.get(j),i=s(a);if(!e||i)return"";if(!n){const n=yield c.get(e,{credentials:"include"}),{finn_blink_id:i}=n;if(!i)throw new Error("getFinnBlinkIdentifier: No finn_blink_id found");return S.set(j,i),i}return n}),n=yield r(),o=(null===(v=null==p?void 0:p.finnBlink)||void 0===v?void 0:v.useNewConstructor)?B:x;yield o(Object.assign(Object.assign({},k),{channel:A,id:q,userId:n,hashed_email:e,theme:O,uuid:T})).then(()=>{b(k.selector.replace("#",""),k.advertoryTheme)})}catch(i){n(`Finn blink error ${i}`),f&&f(e),!f&&d(e),y(e)}}),F=()=>i(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:i,countryCode:o}}=t.get();return!!(yield f(e,i,o,"finn-blink"))||(n("Skip loading finn blink ad due to missing TCF consent."),!1)}),N=(e,o,r,l)=>i(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=t.get();if(n(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield F())||i)return r&&r(e),y(e),void(!r&&d(e));try{yield $(I)}catch(e){console.error(e)}yield T(e,o,r),l&&l()}),A=(e,i)=>{var t;(n(`Appending ${i.id} after ${e.id}`),e.parentElement&&(t=e.parentElement,!Array.from(t.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",i)):n(`Cannot perform afterend on: ${e.id}`)},q=e=>i(void 0,void 0,void 0,function*(){if(!e)return;const{replacementConfig:i}=e;if(!(v()&&(null==i?void 0:i.adsToReplace)&&(null==i?void 0:i.sizes)&&e.enabled))return void n(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`);if(!(yield F()))return;yield $(I);const{adsToReplace:o,sizes:r}=i;o.forEach(([e,i])=>{const o=document.querySelector(`[id^="${e}"]`);if(!o)return;const r=(e=>{const{siteSpecificConfig:{publisherClassName:i}={}}=t.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=e,o.appendChild(r),g(i,r,h.FINN_BLINK),n(`Creating blink container for: ${e}`),o})(i);(e=>{n(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(o),A(o,r),o.dataset.finnBlinkId=i,m().withFullAdsChain(e)})}),O=e=>document.querySelector(`#${e}`),P=e=>i(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:n,pageContext:{deviceType:i}}=t.get(),o=null==n?void 0:n.defaultThreshold[i];for(const n of e){const{requestThreshold:e,targetId:i}=n,t=O(i);t&&(yield p(t,null!=e?e:o))}});export{P as handleFinnBlinkOnlyPlacements,N as loadFinnBlinkAd,q as replaceAdsWithFinnBlink};
@@ -1 +1 @@
1
- import{c as e,n as t,t as o}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import"react/jsx-runtime";const n=1e4,r=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let s;const a=()=>{const{widescreenSwitching:t}=e.get(),{enabled:a,options:{rotationInterval:i=n,widescreenIdPrefix:l}={}}=null!=t?t:{};if(!a)return;const c=((t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();return o?Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`))):[]})(l);let y=0,p=Date.now(),d=r(c);if(!c.length)return;s&&window.removeEventListener("scroll",s);const m=(e,t,o)=>{e.forEach(e=>{e&&e.style.setProperty(t,o)})},w=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(c);const u=o(()=>{d||(d=r(c)||d,p=Date.now());Date.now()-p>=i&&((()=>{const e=w(y),t=c.map(e=>e[y]),o=c.map(t=>t[e]);m(t,"opacity","0"),setTimeout(()=>{m(t,"display","none"),m(o,"opacity","0"),m(o,"display","block"),setTimeout(()=>{m(o,"opacity","1")},450)},450)})(),y=w(y),p=Date.now())},1e3);s=u,window.addEventListener("scroll",u)};export{a as initWidescreenSwitching};
1
+ import{c as e,n as t,t as o}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import"react/jsx-runtime";const n=1e4,r=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let s;const a=()=>{const{widescreenSwitching:t}=e.get(),{enabled:a,options:{rotationInterval:i=n,widescreenIdPrefix:l}={}}=null!=t?t:{};if(!a)return;const c=((t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();return o?Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`))):[]})(l);let y=0,p=Date.now(),d=r(c);if(!c.length)return;s&&window.removeEventListener("scroll",s);const m=(e,t,o)=>{e.forEach(e=>{e&&e.style.setProperty(t,o)})},w=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(c);const u=o(()=>{d||(d=r(c)||d,p=Date.now());Date.now()-p>=i&&((()=>{const e=w(y),t=c.map(e=>e[y]),o=c.map(t=>t[e]);m(t,"opacity","0"),setTimeout(()=>{m(t,"display","none"),m(o,"opacity","0"),m(o,"display","block"),setTimeout(()=>{m(o,"opacity","1")},450)},450)})(),y=w(y),p=Date.now())},1e3);s=u,window.addEventListener("scroll",u)};export{a as initWidescreenSwitching};
@@ -1 +1 @@
1
- import{T as e,o as t,D as o,c as r,p as l,_ as s,q as a,r as n,v as c,w as d}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import"react/jsx-runtime";const i="#fff",y="#0098da",p=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},A=e=>{const t=w(e),o=m(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},m=e=>{const t=()=>A(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&A(e)};return u(),window.addEventListener("keydown",t),t},E=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),m(e),u(),t.addEventListener("click",()=>{A(e)}),v(!1))},g=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),m(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},b=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>A(e))})(e)},h=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},f=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},T=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},C=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=d(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=d(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,T(t))},x=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){const{takeover:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),u=document.querySelector(".advertory-takeover-wrapper");if(!d||!u||!l)return;const v=a(o),A=u.offsetHeight,m=window.scrollY>A;u.style.display="block",!m&&p(v,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:h,[e.TOPSCROLLER]:f,[e.VELVET]:S})[o](t)})(u,v),k(),((t,o)=>{({[e.WELCOME_PAGE]:g,[e.TOPSCROLLER]:g,[e.SPLASH]:E,[e.VELVET]:b})[o](t)})(u,v),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:y}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(u,v,l),yield n(),!m&&p(v,!0),c(o,v)});export{q as createTakeoverAd,C as modifyTakeoverAdContent,x as modifyTakeoverIframe};
1
+ import{T as e,o as t,D as o,c as r,p as l,_ as s,q as a,r as n,v as c,w as d}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import"react/jsx-runtime";const i="#fff",y="#0098da",p=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},A=e=>{const t=w(e),o=m(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},m=e=>{const t=()=>A(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&A(e)};return u(),window.addEventListener("keydown",t),t},E=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),m(e),u(),t.addEventListener("click",()=>{A(e)}),v(!1))},g=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),m(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},b=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>A(e))})(e)},h=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},f=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},T=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},C=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=d(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=d(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,T(t))},x=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){const{takeover:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),u=document.querySelector(".advertory-takeover-wrapper");if(!d||!u||!l)return;const v=a(o),A=u.offsetHeight,m=window.scrollY>A;u.style.display="block",!m&&p(v,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:h,[e.TOPSCROLLER]:f,[e.VELVET]:S})[o](t)})(u,v),k(),((t,o)=>{({[e.WELCOME_PAGE]:g,[e.TOPSCROLLER]:g,[e.SPLASH]:E,[e.VELVET]:b})[o](t)})(u,v),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:y}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(u,v,l),yield n(),!m&&p(v,!0),c(o,v)});export{q as createTakeoverAd,C as modifyTakeoverAdContent,x as modifyTakeoverIframe};
@@ -1 +1 @@
1
- export{K as getDrEditionManager,L as handleDrEdition,M as handleDrEditionBackfill,N as handleDrEditionBackfillOnAdblock}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import{jsxs as a,jsx as t}from"react/jsx-runtime";const e=({editionName:e,fallbackTargetId:i,children:n,pulseData:r,htmlAttributes:l})=>{const d=(a,t)=>{const e={};if(!a)return e;for(const[i,n]of Object.entries(a)){e[t?`${t}-${i}`:i]=String(n)}return e},s=d(r,"data-pulse"),o=d(l,"data");return a("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":e},s,o,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:n})]}))};export{e as DrEdition};
1
+ export{K as getDrEditionManager,L as handleDrEdition,M as handleDrEditionBackfill,N as handleDrEditionBackfillOnAdblock}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import{jsxs as a,jsx as t}from"react/jsx-runtime";const e=({editionName:e,fallbackTargetId:i,children:n,pulseData:r,htmlAttributes:l})=>{const d=(a,t)=>{const e={};if(!a)return e;for(const[i,n]of Object.entries(a)){e[t?`${t}-${i}`:i]=String(n)}return e},s=d(r,"data-pulse"),o=d(l,"data");return a("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":e},s,o,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:n})]}))};export{e as DrEdition};
@@ -1 +1 @@
1
- export{W as Takeover,V as default}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import"react/jsx-runtime";
1
+ export{W as Takeover,V as default}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import"react/jsx-runtime";
@@ -1 +1 @@
1
- import{I as t,H as e,J as r}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";const n=(t,e)=>{const r=t.width,n=(null!=e?e:window.screen.width)/r;return n<1?n:1},o=(t,e=window.screen.width,r,o)=>{const s=n(t,e);if(r&&r(t,s),o)return void o(t);const i=document.querySelector(`iframe[id^="utif_${t.targetId}"]`);i&&(i.style.transform=`scale(${s})`,i.style.transformOrigin="left top")},s=(t,e)=>{if(t&&e)return e/t},i=new Map;i.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),i.set("panorama",{scale:.79,transformOrigin:"center center"}),i.set("outstream",{scale:.79,transformOrigin:"center center"}),i.set("integration",{scale:.79,transformOrigin:"center center"}),i.set("toppanorama",{scale:.8,transformOrigin:"left center"});const a=n=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>t&&(null===(s=null===document||void 0===document?void 0:document.body)||void 0===s?void 0:s.clientWidth)<=e))return;var o,s;const a=r(n),c=i.get(a),l=document.querySelector(`#${n.targetId}`);if(!l||!c)return;if(l.style.transformOrigin=c.transformOrigin,l.style.transform=`scale(${c.scale})`,!(null==c?void 0:c.cogwheelAdjust))return;const d=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${n.targetId}"]`),u=null==l?void 0:l.offsetWidth;d&&"number"==typeof u&&!isNaN(u)&&d.style.setProperty("right",String(-1*u*.2)+"px")};export{a,n as c,s as g,o as s};
1
+ import{I as t,H as e,J as r}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";const n=(t,e)=>{const r=t.width,n=(null!=e?e:window.screen.width)/r;return n<1?n:1},o=(t,e=window.screen.width,r,o)=>{const s=n(t,e);if(r&&r(t,s),o)return void o(t);const i=document.querySelector(`iframe[id^="utif_${t.targetId}"]`);i&&(i.style.transform=`scale(${s})`,i.style.transformOrigin="left top")},s=(t,e)=>{if(t&&e)return e/t},i=new Map;i.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),i.set("panorama",{scale:.79,transformOrigin:"center center"}),i.set("outstream",{scale:.79,transformOrigin:"center center"}),i.set("integration",{scale:.79,transformOrigin:"center center"}),i.set("toppanorama",{scale:.8,transformOrigin:"left center"});const a=n=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>t&&(null===(s=null===document||void 0===document?void 0:document.body)||void 0===s?void 0:s.clientWidth)<=e))return;var o,s;const a=r(n),c=i.get(a),l=document.querySelector(`#${n.targetId}`);if(!l||!c)return;if(l.style.transformOrigin=c.transformOrigin,l.style.transform=`scale(${c.scale})`,!(null==c?void 0:c.cogwheelAdjust))return;const d=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${n.targetId}"]`),u=null==l?void 0:l.offsetWidth;d&&"number"==typeof u&&!isNaN(u)&&d.style.setProperty("right",String(-1*u*.2)+"px")};export{a,n as c,s as g,o as s};
@@ -1 +1 @@
1
- import{i as o}from"./_auto-entry_fotbollskanalen-tf5B8Ird.js";import"react/jsx-runtime";const t=o("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");export{t as default};
1
+ import{i as o}from"./_auto-entry_fotbollskanalen-BL4ZlKfU.js";import"react/jsx-runtime";const t=o("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");export{t as default};
@@ -0,0 +1 @@
1
+ import{r,g as e}from"./glimr-sdk-B7FY2YN8.js";function t(r,e){return e.forEach(function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach(function(t){if("default"!==t&&!(t in r)){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})}),Object.freeze(r)}var n=r(),o=t({__proto__:null,default:e(n)},[n]);export{o as g};
@@ -0,0 +1 @@
1
+ function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e,r,n,a,i,o,s,u,c,h,g,l,d,f,p,T,C,y,v,m,_,w,b,I;function S(){if(r)return e;r=1;var t={bindFunction:function(t,e){var r=Array.prototype.slice.call(arguments,2),n=e,a=function(){},i=function(){return n.apply(this instanceof a?this:t,r.concat(Array.prototype.slice.call(arguments)))};return e.prototype&&(a.prototype=e.prototype),i.prototype=new a,i}};return e=t}function L(){return a?n:(a=1,n={GLIMR_HOST:"//pixel.glimr.io",GLIMR_PATHS:{tags:"/v4/iptags/:id/",store:"/v4/collect/:id/"},MAX_CACHE_TIME:300,CACHE_TIMINGS:{tags:0},V2_PREFIX:"[v2]:"})}function U(){if(o)return i;o=1;var t={objectToQuery:function(e,r){r=r||"";var n=[];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i,o=e[a];if(i=r.length?r+"["+t.escapeStringForQuery(a)+"]":t.escapeStringForQuery(a),"object"==typeof o&&o.constructor===Array){for(var s=0,u=o.length;s<u;s+=1)n.push(i+"="+t.escapeStringForQuery(o[s])),n.push("&");n.pop()}else"object"==typeof o?n.push(t.objectToQuery(o,i)):n.push(i+"="+t.escapeStringForQuery(o));n.push("&")}return n.pop(),n.join("")},arrayToQuery:function(e,r){r=r||"";for(var n=t.escapeStringForQuery(r),a=[],i=0,o=e.length;i<o;i+=1){var s=t.escapeStringForQuery(e[i]);a.push(n+"="+s)}return a.join("&")},queryToObject:function(e){for(var r={},n=e.split("&"),a=0,i=n.length;a<i;a+=1){var o=n[a].split("="),s=t.unescapeStringForQuery(o[0]||""),u=t.unescapeStringForQuery(o[1]||"");void 0===r[s]&&(r[s]=[]),u.length>0&&r[s].push(u)}return r},escapeStringForQuery:function(t){return encodeURIComponent(t)},unescapeStringForQuery:function(t){return decodeURIComponent(t)}};return i=t}function A(){if(h)return c;h=1;return c=function(t){function e(t,e){return t<<e|t>>>32-e}function r(t,e){var r,n,a,i,o;return a=2147483648&t,i=2147483648&e,o=(1073741823&t)+(1073741823&e),(r=1073741824&t)&(n=1073741824&e)?2147483648^o^a^i:r|n?1073741824&o?3221225472^o^a^i:1073741824^o^a^i:o^a^i}function n(t,n,a,i,o,s,u){return t=r(t,r(r(function(t,e,r){return t&e|~t&r}(n,a,i),o),u)),r(e(t,s),n)}function a(t,n,a,i,o,s,u){return t=r(t,r(r(function(t,e,r){return t&r|e&~r}(n,a,i),o),u)),r(e(t,s),n)}function i(t,n,a,i,o,s,u){return t=r(t,r(r(function(t,e,r){return t^e^r}(n,a,i),o),u)),r(e(t,s),n)}function o(t,n,a,i,o,s,u){return t=r(t,r(r(function(t,e,r){return e^(t|~r)}(n,a,i),o),u)),r(e(t,s),n)}function s(t){var e,r="",n="";for(e=0;e<=3;e+=1)r+=(n="0"+(t>>>8*e&255).toString(16)).substr(n.length-2,2);return r}var u,c,h,g,l,d,f,p,T,C;for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",r=0;r<t.length;r+=1){var n=t.charCodeAt(r);n<128?e+=String.fromCharCode(n):n>127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e}(t),u=function(t){for(var e,r=t.length,n=r+8,a=16*((n-n%64)/64+1),i=Array(a-1),o=0,s=0;s<r;)o=s%4*8,i[e=(s-s%4)/4]=i[e]|t.charCodeAt(s)<<o,s+=1;return o=s%4*8,i[e=(s-s%4)/4]=i[e]|128<<o,i[a-2]=r<<3,i[a-1]=r>>>29,i}(t),f=1732584193,p=4023233417,T=2562383102,C=271733878,c=0;c<u.length;c+=16)h=f,g=p,l=T,d=C,f=n(f,p,T,C,u[c+0],7,3614090360),C=n(C,f,p,T,u[c+1],12,3905402710),T=n(T,C,f,p,u[c+2],17,606105819),p=n(p,T,C,f,u[c+3],22,3250441966),f=n(f,p,T,C,u[c+4],7,4118548399),C=n(C,f,p,T,u[c+5],12,1200080426),T=n(T,C,f,p,u[c+6],17,2821735955),p=n(p,T,C,f,u[c+7],22,4249261313),f=n(f,p,T,C,u[c+8],7,1770035416),C=n(C,f,p,T,u[c+9],12,2336552879),T=n(T,C,f,p,u[c+10],17,4294925233),p=n(p,T,C,f,u[c+11],22,2304563134),f=n(f,p,T,C,u[c+12],7,1804603682),C=n(C,f,p,T,u[c+13],12,4254626195),T=n(T,C,f,p,u[c+14],17,2792965006),f=a(f,p=n(p,T,C,f,u[c+15],22,1236535329),T,C,u[c+1],5,4129170786),C=a(C,f,p,T,u[c+6],9,3225465664),T=a(T,C,f,p,u[c+11],14,643717713),p=a(p,T,C,f,u[c+0],20,3921069994),f=a(f,p,T,C,u[c+5],5,3593408605),C=a(C,f,p,T,u[c+10],9,38016083),T=a(T,C,f,p,u[c+15],14,3634488961),p=a(p,T,C,f,u[c+4],20,3889429448),f=a(f,p,T,C,u[c+9],5,568446438),C=a(C,f,p,T,u[c+14],9,3275163606),T=a(T,C,f,p,u[c+3],14,4107603335),p=a(p,T,C,f,u[c+8],20,1163531501),f=a(f,p,T,C,u[c+13],5,2850285829),C=a(C,f,p,T,u[c+2],9,4243563512),T=a(T,C,f,p,u[c+7],14,1735328473),f=i(f,p=a(p,T,C,f,u[c+12],20,2368359562),T,C,u[c+5],4,4294588738),C=i(C,f,p,T,u[c+8],11,2272392833),T=i(T,C,f,p,u[c+11],16,1839030562),p=i(p,T,C,f,u[c+14],23,4259657740),f=i(f,p,T,C,u[c+1],4,2763975236),C=i(C,f,p,T,u[c+4],11,1272893353),T=i(T,C,f,p,u[c+7],16,4139469664),p=i(p,T,C,f,u[c+10],23,3200236656),f=i(f,p,T,C,u[c+13],4,681279174),C=i(C,f,p,T,u[c+0],11,3936430074),T=i(T,C,f,p,u[c+3],16,3572445317),p=i(p,T,C,f,u[c+6],23,76029189),f=i(f,p,T,C,u[c+9],4,3654602809),C=i(C,f,p,T,u[c+12],11,3873151461),T=i(T,C,f,p,u[c+15],16,530742520),f=o(f,p=i(p,T,C,f,u[c+2],23,3299628645),T,C,u[c+0],6,4096336452),C=o(C,f,p,T,u[c+7],10,1126891415),T=o(T,C,f,p,u[c+14],15,2878612391),p=o(p,T,C,f,u[c+5],21,4237533241),f=o(f,p,T,C,u[c+12],6,1700485571),C=o(C,f,p,T,u[c+3],10,2399980690),T=o(T,C,f,p,u[c+10],15,4293915773),p=o(p,T,C,f,u[c+1],21,2240044497),f=o(f,p,T,C,u[c+8],6,1873313359),C=o(C,f,p,T,u[c+15],10,4264355552),T=o(T,C,f,p,u[c+6],15,2734768916),p=o(p,T,C,f,u[c+13],21,1309151649),f=o(f,p,T,C,u[c+4],6,4149444226),C=o(C,f,p,T,u[c+11],10,3174756917),T=o(T,C,f,p,u[c+2],15,718787259),p=o(p,T,C,f,u[c+9],21,3951481745),f=r(f,h),p=r(p,g),T=r(T,l),C=r(C,d);return(s(f)+s(p)+s(T)+s(C)).toLowerCase()}}function R(){if(f)return d;f=1;var t=S(),e=function(){if(u)return s;u=1;var t={flattenObjectIntoArray:function(e){var r=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=e[n];if("object"==typeof a&&a.constructor===Array)for(var i=0,o=a.length;i<o;i+=1)r.push(a[i]);else"object"==typeof a?r=r.concat(t.flattenObjectIntoArray(a)):r.push(a)}return r}};return s=t}();A();var r=l?g:(l=1,g=function(t,e){var r=(new Date).getTime(),n="glmrjsonp"+Math.round(r+1000001*Math.random()),a=window.document.createElement("script");window[n]=function(t){e&&"function"==typeof e&&e(t);try{delete window[n]}catch(t){window[n]=void 0}try{a.parentNode.removeChild(a)}catch(t){}},t+=-1===t.indexOf("?")?"?":"&",t+="callback="+n,"function"==typeof a.addEventListener&&a.addEventListener("error",function(){e&&"function"==typeof e&&e(!1)},!1),a.setAttribute("src",t),window.document.getElementsByTagName("head")[0].appendChild(a)}),n=U();function a(t,e){return new TypeError("Parameter #"+t+" is required: "+e)}function i(t,e,r,n){this.storage=t,this.tagCache=e,this.state={loadingTags:{},loadedTags:{},currentURLCacheKey:!1},this.networkRequests=0,this.url=r,this.enrichment=n}return L(),i.prototype={getPixelLastUpdated:function(t){return this.storage.isEnabled()&&this.storage.get("glimrArticleTags_"+t+"_lastUpdate")||!1},getCachedURLTags:function(t){if(void 0===t)throw a(0,"pixelId");var e=this.tagCache._getOrUnmarshalCache(t),r=this.tagCache._currentURLCacheKey();return e[r]||(e[r]=[]),e[r]},getCachedBehaviorTags:function(t){if(void 0===t)throw a(0,"pixelId");return!(!this.tagCache.usesTagCache()||!this.tagCache.isTagCacheValid(t))&&this._getLocalTags(t)[0]},getCachedBehaviorTagsAndUpdateInBackground:function(t,e){if(void 0===t)throw a(0,"pixelId");if((e=e||{}).onUpdate="function"==typeof e.onUpdate?e.onUpdate:function(){},!this.tagCache.usesTagCache())return window.console&&window.console.error("Caching not enabled. Enable with Glimr.setTagCacheTimeInSeconds(number)"),[];var r=this._getLocalTags(t);return this.tagCache.isTagCacheValid(t)||this.getTags(t,e.onUpdate),r[0]||!1},getTagsAndPushToDataLayer:function(t,e){if(void 0===t)throw a(0,"pixelId");this.getTags(t,function(t){window.dataLayer&&window.dataLayer.push&&window.dataLayer.push({glimrTags:t,event:"glimr.tags"}),e&&"function"==typeof e&&e()})},getTags:function(e,r){if(void 0===e)throw a(0,"pixelId");var n=e+this.tagCache._currentURLCacheKey();if(this._needsToMakeRequest()||!this.state.loadedTags[n])void 0===this.state.loadingTags[n]?this._requestTags(e,n,r,t.bindFunction(this,function(t){var a=[],i={},o=a;t&&t.tags&&(o=a=t.tags),t&&t.mapping&&(o=i=t.mapping),t&&t.cache&&this.tagCache._updateURLCache(e,t.cache),this.tagCache.usesTagCache()&&this.tagCache._updateTagCache(e,o);for(var s=this.getCachedURLTags(e),u=0;u<s.length;u+=1)-1===a.indexOf(s[u])&&(a.push(s[u]),i.urlTags=i.urlTags||[],i.urlTags.push(s[u]));this.state.loadedTags[n]=[a,i];var c=this.state.loadingTags[n];delete this.state.loadingTags[n];for(var h=0;h<c.length;h+=1)r&&"function"==typeof r&&c[h](a,i)})):this.state.loadingTags[n].push(r);else{var i=this.state.loadedTags[n];r&&"function"==typeof r&&r(i[0],i[1])}},_getLocalTags:function(t){var r=this.tagCache._deserializeTags(this.storage.get("glimrTags_"+t)),n=this.getCachedURLTags(t);return"object"==typeof r&&r.constructor===Array?[r.concat(n),{urlTags:n}]:(r.urlTags=n,[e.flattenObjectIntoArray(r),r])},_requestTags:function(t,e,a,i){var o=this.getPixelLastUpdated(t);if(!this._needsToMakeRequest()&&this.tagCache.usesTagCache()&&this.tagCache.isTagCacheValid(t)){var s=this._getLocalTags(t);a&&"function"==typeof a&&a(s[0],s[1])}else{var u="";o&&(u+="&keywords_last_updated="+o),window.document.location.hash&&(u+="&fragment="+encodeURIComponent(window.document.location.hash)),u+="&"+n.objectToQuery(this.enrichment._flush());var c=(this.url.host+this.url.tags).replace(":id",t)+"?id=0"+u;this.state.loadingTags[e]=[],this.state.loadingTags[e].push(a),this.networkRequests+=1,r(c,i)}},_needsToMakeRequest:function(){return this.enrichment._needsToFlush()}},d=i}function E(){if(T)return p;T=1;var t=A(),e=L(),r=U();function n(t){this.storage=t,this.state={urlCache:{},currentURLCacheKey:!1}}return n.prototype={usesTagCache:function(){return e.CACHE_TIMINGS.tags>0&&this.storage.isEnabled()},isTagCacheValid:function(t){if(void 0===t)throw new TypeError("Parameter #"+0+" is required: "+"pixelId");var r=parseInt(this.storage.get("glimrTags_"+t+"_lastUpdate"),10),n=(new Date).getTime();return!isNaN(r)&&(n-r)/1e3<e.CACHE_TIMINGS.tags},setTagCacheTimeInSeconds:function(t){t>e.MAX_CACHE_TIME&&(t=e.MAX_CACHE_TIME),e.CACHE_TIMINGS.tags=t},getTagCacheTimeInSeconds:function(){return e.CACHE_TIMINGS.tags},currentURLIdentifier:function(){return window.document.location.hash&&-1!==window.document.location.hash.indexOf("#!")?window.document.location.hash.replace("#!",""):window.document.location.pathname},_currentURLCacheKey:function(){return this.state.currentURLCacheKey?this.state.currentURLCacheKey:t(this.currentURLIdentifier()).substr(0,10)},_unmarshalTags:function(t){if(!t)return{};for(var e=t.split("|"),r={},n=0;n<e.length;n+=1){var a=e[n].indexOf("=");r[e[n].substring(0,a)]=this._deserializeTags(e[n].substring(a+1))}return r},_marshalTags:function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r.substr(0,10)+"="+this._serializeTags(t[r]));return e.join("|")},_getOrUnmarshalCache:function(t){return this.storage.isEnabled()&&this.storage.get("glimrArticleTags_"+t)&&(this.state.urlCache[t]=this._unmarshalTags(this.storage.get("glimrArticleTags_"+t))),this.state.urlCache[t]||{}},_serializeTags:function(t){return"object"==typeof t&&t.constructor===Array?t.join(","):e.V2_PREFIX+r.objectToQuery(t)},_deserializeTags:function(t){return(t=t||"").substr(0,e.V2_PREFIX.length)===e.V2_PREFIX?r.queryToObject(t.substr(e.V2_PREFIX.length)):""===t?[]:t.split(",")},_updateTagCache:function(t,e){this.storage.isEnabled()&&(this.storage.set("glimrTags_"+t+"_lastUpdate",(new Date).getTime()),this.storage.set("glimrTags_"+t,this._serializeTags(e)))},_updateURLCache:function(t,e){for(var r in this.storage.isEnabled()&&(this.storage.set("glimrArticleTags_"+t,this._marshalTags(e)),this.storage.set("glimrArticleTags_"+t+"_lastUpdate",(new Date).getTime())),this.state.urlCache[t]||(this.state.urlCache[t]={}),e)e.hasOwnProperty(r)&&(this.state.urlCache[t][r.substr(0,10)]=e[r])}},p=n}function j(){if(m)return v;m=1;var t=function(){if(y)return C;y=1;var t=function(){var t,e,r=(new Date).getTime().toString();try{return(t=window.localStorage).setItem(r,r),e=t.getItem(r)===r,t.removeItem(r),e&&t}catch(t){}}();return C=t}();function e(t){this._isEnabledCallback=t}return e.prototype={set:function(e,r){t[e]=r},get:function(e){return t[e]},isEnabled:function(){return this._isEnabledCallback()}},e.isSupportedByBrowser=function(){return!!t},v=e}function F(){if(I)return b;I=1;var t=S(),e=L(),r=U(),n=R(),a=E(),i=j(),o=function(){if(w)return _;function t(){this.data={},this.hasData=!1}return w=1,t.prototype={storePosition:function(t){if("number"!=typeof t.longitude&&isNaN(parseFloat(t.longitude))||"number"!=typeof t.latitude&&isNaN(parseFloat(t.latitude)))throw new Error("Glimr.storePosition requires one argument, an object with a numeric .longitude and .latitude");this._store("u_pos",[t.latitude,t.longitude].join(","))},storeUid:function(t){if(!t||"string"!=typeof t)throw new Error("Glimr.storeUid requires one string argument");this._store("uid",t)},_store:function(t,e){this.hasData=!0,this.data[t]=e},_flush:function(){var t=this.data;return this.data={},this.hasData=!1,t},_needsToFlush:function(){return this.hasData}},_=t}(),s=function(){this.constructor=s,this.initialize()};function u(t,e){s.prototype[t]=function(){return this[e][t].apply(this[e],arguments)}}s.prototype={initialize:function(){this.url={host:e.GLIMR_HOST,tags:e.GLIMR_PATHS.tags,store:e.GLIMR_PATHS.store},this.storage=new i(t.bindFunction(this,function(){return this.useLocalStorage})),this.enrichment=new o,this.tagCache=new a(this.storage),this.tags=new n(this.storage,this.tagCache,this.url,this.enrichment),this.useLocalStorage=i.isSupportedByBrowser()}};var c,h=["objectToQuery","arrayToQuery","queryToObject","escapeStringForQuery","unescapeStringForQuery"];for(c=0;c<h.length;c+=1){var g=h[c];s.prototype[g]=r[g]}var l=["getPixelLastUpdated","getCachedURLTags","getCachedBehaviorTags","getCachedBehaviorTagsAndUpdateInBackground","getTagsAndPushToDataLayer","getTags"];for(c=0;c<l.length;c+=1)u(l[c],"tags");var d=["usesTagCache","isTagCacheValid","setTagCacheTimeInSeconds","getTagCacheTimeInSeconds","currentURLIdentifier"];for(c=0;c<d.length;c+=1)u(d[c],"tagCache");var f=["storePosition","storeUid"];for(c=0;c<f.length;c+=1)u(f[c],"enrichment");return b=new s}export{t as g,F as r};
@@ -0,0 +1 @@
1
+ import{g as e}from"./glimr-sdk-B7FY2YN8.js";function t(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})}var n,o;"function"==typeof SuppressedError&&SuppressedError;var r=e(function(){if(o)return n;o=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 r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function a(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 s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var o={};return n.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=r(e[t],n)}),a(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))}),o}function c(t,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(t)?a?o.arrayMerge(t,n,o):l(t,n,o):r(n,o)}return c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})},n=c}());const i=["placements","takeover","refreshConfig","editableConfiguration"],a={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},s=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},l=(e,t)=>{console.warn("[Advertory WARN]: ",e)},c=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||l("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||l("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||l("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||l("pageContext.deviceType is required."),n||l("pageOptions is required."),o||l("placements is required."),(null==r?void 0:r.defaultThreshold)||l("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,r;const i=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(o=e.fullscreenScroll)||void 0===o?void 0:o.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 a)e&&!(null==i?void 0:i[t])&&l(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class d{set(e){c(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 i){const o=e[n];void 0!==o&&(t[n]=o)}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(d.DEFAULT_SITE_HANDLERS,e)}}d.DEFAULT_SITE_HANDLERS={siteEvents:a,initNativeAd:function(){}};const u=new d;u.modifyConfigProperties.bind(u);const g=864e5,f=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return s("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=g)=>{const r={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(r))},getByTimestamp:(t,n=g)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return s("Error with parsing localStorage data"),null}}}})(),v="glimrTags",p=["glwe_","glwet_"],b={geofenceTags:[],geoTags:[],weatherTags:[]},h=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 s("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const r=e=>{o||(s("Resolving advertising permission value obtained"),o=!0,t(e))},i=setTimeout(()=>{s("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{s("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const t=Number(e);s("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),m="no",y="se",w="cmp:loaded";let C="undefined"!=typeof window?window._tcf_:void 0,T=!1;const O=(e,n,o)=>{const r=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,a=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const c=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(s("TCF bypass param detected, returning consent: true"),!0):(s("TCF is not enabled, returning consent: true"),!0))(r,a))return!0;if(T)return null;if(!C)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=C.getConsentedToAllSync();return s(`TCF consented to all is: ${t}`),C.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(s("Getting TCF consent manager..."),window._tcf_)return s("TCF consent manager is already available"),C=window._tcf_,void e(C);s("TCF consent manager is not available");const n=()=>{s("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(C=window._tcf_,e(C)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(w,n),T=!0,t(new Error("Timeout waiting for CMP to load"))},i);s("Listening for CMP loaded event..."),document.addEventListener(w,n,{once:!0})}):Promise.resolve(null),getConsentSync:c,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===y,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&o===m;if(t||n)return s("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield h(e);if(!(null==e?void 0:e.enabled))return!0;const r=c();return null!==r?r:yield new Promise((e,t)=>{try{if(!C)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{s("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);C.onTcfReady(()=>{s("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),C.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},S=(...e)=>t(void 0,[...e],void 0,function*(e=u.get()){const{tcf:n,pageContext:{isMobileApp:o,countryCode:r}={}}=e;if(null==n?void 0:n.schibstedConsentToPayEnabled){const e=yield((e,n,o,...r)=>t(void 0,[e,n,o,...r],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return s(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=O(e,0,n);return(yield r())?(s(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(s(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}))(n,o,r,"glimr");return e}const{getConsentAsync:i}=O(n,0,r);return yield i()}),A=()=>t(void 0,void 0,void 0,function*(){const{glimr:e}=u.get();if(!(yield S())||!(null==e?void 0:e.enabled))return void s("No consent for glimr data fetching.");const n=yield(o=500,t(void 0,void 0,void 0,function*(){return yield Promise.race([t(void 0,void 0,void 0,function*(){const e=yield import("./glimr-Crymyq4O.js").then(function(e){return e.g});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),o))])}));var o;if(n)try{n.setTagCacheTimeInSeconds(300),yield new Promise(t=>{n.getTags(e.clientId,(e,n)=>{f.setWithTimestamp(v,{tags:e,tagMappings:n}),t(!0)})})}catch(e){s(`Error during getting glimr data: ${e}`)}else s("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:n})}),E={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"},P=e=>p.some(t=>e.startsWith(t)),_=e=>e.startsWith("glgc_"),j=e=>!P(e)&&!_(e),M=(e,n)=>t(void 0,void 0,void 0,function*(){const{addPublisherToGeo:t}=n||{},{glimr:o,pageContext:{countryCode:r}={}}=e,i=yield S(e);if(!(null==o?void 0:o.enabled)||!i)return s("No consent for getting glimr tags."),{};const a=(e=>e===m?"no-sno":"se-generic")(r),l=N(e,Boolean(t));return{[`${a}-geo`]:l.geoTags,[`${a}-weather`]:l.weatherTags,[`${a}-geofence`]:l.geofenceTags}}),N=(e,t)=>{const n=x();if(!n)return b;const o=((e=[])=>e.filter(P))(n),r=((e=[])=>e.filter(_))(n),i=((e=[],t,n)=>{var o;const r=e.filter(j);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=E[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:i,geofenceTags:r,weatherTags:o}},x=()=>{const e=f.getByTimestamp(v);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};export{M as getGlimrKeywords,A as updateGlimr};