@schibsted/advertory 3.8.2 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/ad-native/cjs/index.d.ts +16 -2
  2. package/ad-native/cjs/index.js +1 -1
  3. package/ad-native/es/index.d.ts +16 -2
  4. package/ad-native/es/index.js +1 -1
  5. package/aftenposten/cjs/index.d.ts +23 -3
  6. package/aftenposten/cjs/index.js +1 -1
  7. package/aftenposten/es/_auto-entry_aftenposten-CuZOOTrg.js +1 -0
  8. package/aftenposten/es/{events-De_XNEBM.js → events-C5u9PVF0.js} +1 -1
  9. package/aftenposten/es/{index-Da8uFqzx.js → index--ICKuVqQ.js} +1 -1
  10. package/aftenposten/es/{index-B7UHaEno.js → index-B7n4b1dc.js} +1 -1
  11. package/aftenposten/es/index-B8F94V3r.js +1 -0
  12. package/aftenposten/es/{index-B3x9U_np.js → index-CFJwjN6C.js} +1 -1
  13. package/aftenposten/es/{index-VOwb1-CL.js → index-Cwd9idd4.js} +1 -1
  14. package/aftenposten/es/{index-byvqoWAP.js → index-DPxMBcHY.js} +1 -1
  15. package/aftenposten/es/{index-BHm7lsx2.js → index-Dh9gaDr5.js} +1 -1
  16. package/aftenposten/es/{index-Ch1D86AR.js → index-DnWiCQEi.js} +1 -1
  17. package/aftenposten/es/{index-BV_dKGpc.js → index-DqJcFZDB.js} +1 -1
  18. package/aftenposten/es/index.d.ts +23 -3
  19. package/aftenposten/es/index.js +1 -1
  20. package/aftenposten/es/{styles-D1aw7RIX.js → styles-C4k2OgXZ.js} +1 -1
  21. package/aftenposten/es/{styles-YQI095fL.js → styles-CfIcBsnO.js} +1 -1
  22. package/aftenposten/es/{styles-C_8vXBqx.js → styles-D3XIATun.js} +1 -1
  23. package/aftenposten/es/{styles-CWFBs4ne.js → styles-DA5edeQS.js} +1 -1
  24. package/aftenposten/es/{styles-KS3U53wj.js → styles-DKupwGXD.js} +1 -1
  25. package/aftenposten/es/{styles-CBFAj7Fm.js → styles-DexMlq7C.js} +1 -1
  26. package/aftenposten/es/{styles-DEs_UpWO.js → styles-DjNjfnDk.js} +1 -1
  27. package/aftenposten/es/{styles-C8ijfuku.js → styles-DlqjGyzO.js} +1 -1
  28. package/aftenposten/es/{styles-CAT38yg3.js → styles-DttRpXc3.js} +1 -1
  29. package/aftenposten/es/{styles-CeZGWfIU.js → styles-xYGc9kPZ.js} +1 -1
  30. package/aftenposten/styles.css +1 -1
  31. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BXl0FJ01.js +1 -0
  32. package/aftenpostenv2/es/{events-CfDwPQrw.js → events-BDeF4GuQ.js} +1 -1
  33. package/aftenpostenv2/es/{index-BKlohwao.js → index-BFcUEljT.js} +1 -1
  34. package/aftenpostenv2/es/{index-D1aIRnUZ.js → index-BIkvCkqw.js} +1 -1
  35. package/aftenpostenv2/es/{index-oDJuhPBQ.js → index-BOYmJs7G.js} +1 -1
  36. package/aftenpostenv2/es/index-CIoimw5r.js +1 -0
  37. package/aftenpostenv2/es/{index-DgO4gFc5.js → index-CLudG6lr.js} +1 -1
  38. package/aftenpostenv2/es/{index-DAs9vIRw.js → index-DFb-18Hs.js} +1 -1
  39. package/aftenpostenv2/es/{index-Dr6jLiGs.js → index-DWJMsl8I.js} +1 -1
  40. package/aftenpostenv2/es/{index-NYx6fWvA.js → index-DqwKVXtR.js} +1 -1
  41. package/aftenpostenv2/es/{index-DFViuUoO.js → index-DtVqe3JZ.js} +1 -1
  42. package/aftenpostenv2/es/index.d.ts +23 -3
  43. package/aftenpostenv2/es/index.js +1 -1
  44. package/aftenpostenv2/es/{styles-Bl_D9xGC.js → styles-B1wxexSY.js} +1 -1
  45. package/aftenpostenv2/es/{styles-BZE6JppJ.js → styles-CFZ_NdGB.js} +1 -1
  46. package/aftenpostenv2/es/{styles-D7fjqJQd.js → styles-CG7EbvVF.js} +1 -1
  47. package/aftenpostenv2/es/{styles-CZjNLLvW.js → styles-COqWiHKx.js} +1 -1
  48. package/aftenpostenv2/es/{styles-CV4lpabF.js → styles-CQ86Y_UZ.js} +1 -1
  49. package/aftenpostenv2/es/{styles-O7gV6Qrl.js → styles-CbJrZ00K.js} +1 -1
  50. package/aftenpostenv2/es/{styles-DtY8Z7kN.js → styles-CyHw-a1N.js} +1 -1
  51. package/aftenpostenv2/es/{styles-CAJXl1qf.js → styles-CzbdoAcS.js} +1 -1
  52. package/aftenpostenv2/es/{styles-Dohlbq1G.js → styles-DUTuRg1r.js} +1 -1
  53. package/aftenpostenv2/es/{styles-BZ7cApks.js → styles-g1bg4X5I.js} +1 -1
  54. package/aftonbladet/cjs/index.d.ts +23 -3
  55. package/aftonbladet/cjs/index.js +1 -1
  56. package/aftonbladet/es/_auto-entry_aftonbladet-BEO4HopU.js +1 -0
  57. package/aftonbladet/es/{events-CPtNggCH.js → events-MBii8RJz.js} +1 -1
  58. package/aftonbladet/es/{index-y69nVZXL.js → index-BHKVF3fd.js} +1 -1
  59. package/aftonbladet/es/{index-IgbhxHBl.js → index-BIBbPxUN.js} +1 -1
  60. package/aftonbladet/es/index-CI4iwCT4.js +1 -0
  61. package/aftonbladet/es/{index-B0uNKLi7.js → index-C_fAT5Dj.js} +1 -1
  62. package/aftonbladet/es/{index-UAPHZ46B.js → index-CxWXzVF4.js} +1 -1
  63. package/aftonbladet/es/{index-CGvXxUI9.js → index-DJnLxeho.js} +1 -1
  64. package/aftonbladet/es/{index-C4UHH9uB.js → index-KC1gH-3a.js} +1 -1
  65. package/aftonbladet/es/{index-O9XAZLg-.js → index-TEgwsWT0.js} +1 -1
  66. package/aftonbladet/es/{index-BYclcrdN.js → index-xwwxv7eA.js} +1 -1
  67. package/aftonbladet/es/index.d.ts +23 -3
  68. package/aftonbladet/es/index.js +1 -1
  69. package/aftonbladet/es/{styles-CX11sHS2.js → styles-B2qoV3Ud.js} +1 -1
  70. package/aftonbladet/es/{styles-CuGCFAMf.js → styles-BPDpyCtB.js} +1 -1
  71. package/aftonbladet/es/{styles-BiUXUtgT.js → styles-ClqS9bpg.js} +1 -1
  72. package/aftonbladet/es/{styles-creIo6N0.js → styles-CwrRdCtI.js} +1 -1
  73. package/aftonbladet/es/{styles-BIBN63xd.js → styles-DtwomKE2.js} +1 -1
  74. package/aftonbladet/es/{styles-G7ASfQkT.js → styles-NsWV6P-C.js} +1 -1
  75. package/aftonbladet/styles.css +1 -1
  76. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-lB2SKLJz.js +1 -0
  77. package/aftonbladetv2/es/{events-BkfmXiwJ.js → events-BvYRg0da.js} +1 -1
  78. package/aftonbladetv2/es/{index-DHPHZn9c.js → index-9J0ibtVP.js} +1 -1
  79. package/aftonbladetv2/es/{index-DS0gpXw2.js → index-Bm9a22kK.js} +1 -1
  80. package/aftonbladetv2/es/{index-300aBK0_.js → index-CHN0nrWK.js} +1 -1
  81. package/aftonbladetv2/es/{index-BJEUXBJd.js → index-CP6vk8Hw.js} +1 -1
  82. package/aftonbladetv2/es/{index-SK0tPuYM.js → index-DNR3jkwa.js} +1 -1
  83. package/aftonbladetv2/es/{index-BwFYOnLe.js → index-DQ6P_XYV.js} +1 -1
  84. package/aftonbladetv2/es/{index-DevH6YEa.js → index-DjOPjwA_.js} +1 -1
  85. package/aftonbladetv2/es/index-_lahIVWi.js +1 -0
  86. package/aftonbladetv2/es/{index-CKmdujqd.js → index-lSOIhhXs.js} +1 -1
  87. package/aftonbladetv2/es/index.d.ts +23 -3
  88. package/aftonbladetv2/es/index.js +1 -1
  89. package/aftonbladetv2/es/{styles-Del3d0DG.js → styles-29W8EaOf.js} +1 -1
  90. package/aftonbladetv2/es/{styles-DSB9Drj0.js → styles-BVzAtCbB.js} +1 -1
  91. package/aftonbladetv2/es/{styles-By-8BpsU.js → styles-CbLnjM-N.js} +1 -1
  92. package/aftonbladetv2/es/{styles-CfH7i6fq.js → styles-CfDcYpJr.js} +1 -1
  93. package/aftonbladetv2/es/{styles-BhflNv9C.js → styles-Cz72_Y7R.js} +1 -1
  94. package/aftonbladetv2/es/{styles-KA24xWg3.js → styles-DU9MmZTT.js} +1 -1
  95. package/aftonbladetv2/styles.css +1 -1
  96. package/brandmetrics/cjs/index.js +1 -1
  97. package/brandmetrics/es/index.js +1 -1
  98. package/bt/cjs/index.d.ts +23 -3
  99. package/bt/cjs/index.js +1 -1
  100. package/bt/es/_auto-entry_bt-3yUxnPqO.js +1 -0
  101. package/bt/es/{events-vSYaQpFL.js → events-C9MJvhY-.js} +1 -1
  102. package/bt/es/{index-Cd7JVwYt.js → index-BIJVD8Dl.js} +1 -1
  103. package/bt/es/{index-CFspLHrW.js → index-C6ELcMBu.js} +1 -1
  104. package/bt/es/index-C6b5IlFV.js +1 -0
  105. package/bt/es/{index-CXiG1BV4.js → index-CPONiEYb.js} +1 -1
  106. package/{sa/es/index-Dl_qOeD7.js → bt/es/index-CvCbmQEe.js} +1 -1
  107. package/bt/es/{index-LPJqSZxd.js → index-DKPN_YcZ.js} +1 -1
  108. package/bt/es/{index-CQK46sRg.js → index-DqriOpkp.js} +1 -1
  109. package/{sa/es/index-DdgPDdmL.js → bt/es/index-GeFPrRyv.js} +1 -1
  110. package/bt/es/{index-DMMviw4a.js → index-Pwk9kHv-.js} +1 -1
  111. package/bt/es/index.d.ts +23 -3
  112. package/bt/es/index.js +1 -1
  113. package/{sa/es/styles-BqMi_QI_.js → bt/es/styles-1u2QT7Fw.js} +1 -1
  114. package/bt/es/{styles-CRCM5dyr.js → styles-7-78H6e6.js} +1 -1
  115. package/bt/es/{styles-C30uJwWr.js → styles-B1cUb6SH.js} +1 -1
  116. package/bt/es/{styles-DwrXYYT9.js → styles-B_wNTDPN.js} +1 -1
  117. package/bt/es/{styles-CLv5x1Fm.js → styles-BtTAaePE.js} +1 -1
  118. package/bt/es/{styles-HRjZr8ls.js → styles-COOK6SIy.js} +1 -1
  119. package/bt/es/{styles-BvfpqrqJ.js → styles-Cl8KzOND.js} +1 -1
  120. package/{sa/es/styles-CxItiM4V.js → bt/es/styles-CoBh5oyN.js} +1 -1
  121. package/{sa/es/styles-P8QXzT5E.js → bt/es/styles-z7-TrHJk.js} +1 -1
  122. package/btv2/es/_auto-entry_btv2-Wfvr-0kI.js +1 -0
  123. package/{omni/es/events-DSHEjWEq.js → btv2/es/events-BUFrhuQX.js} +1 -1
  124. package/btv2/es/{index-DWBQKRfM.js → index-B1yjQp8N.js} +1 -1
  125. package/btv2/es/{index-DqqQy-HT.js → index-BIlcFh7D.js} +1 -1
  126. package/btv2/es/{index-DUxfRiOK.js → index-BVXG2L-o.js} +1 -1
  127. package/btv2/es/{index-Dr7u-b0Z.js → index-BynM05fq.js} +1 -1
  128. package/btv2/es/index-CfC_QaSq.js +1 -0
  129. package/btv2/es/{index-XaZLb9oD.js → index-DWwORwK2.js} +1 -1
  130. package/btv2/es/{index-CtiH9OpA.js → index-Z8GlQPjz.js} +1 -1
  131. package/btv2/es/{index-DTXO71jJ.js → index-iUnK_gxt.js} +1 -1
  132. package/btv2/es/{index-BbIRLslS.js → index-jKixVDHE.js} +1 -1
  133. package/btv2/es/index.d.ts +23 -3
  134. package/btv2/es/index.js +1 -1
  135. package/{sav2/es/styles-mlsKL0G-.js → btv2/es/styles-BCbSGrlJ.js} +1 -1
  136. package/{sav2/es/styles-Ch9IBDfZ.js → btv2/es/styles-BnoPWSGN.js} +1 -1
  137. package/{sav2/es/styles-B4_KBpTZ.js → btv2/es/styles-C2a5SKqb.js} +1 -1
  138. package/{sav2/es/styles-B_3-whkG.js → btv2/es/styles-CKaOJYil.js} +1 -1
  139. package/btv2/es/{styles-D-e4qQRV.js → styles-CccCoH6D.js} +1 -1
  140. package/btv2/es/{styles-Ds87Oq3a.js → styles-DTbzHjym.js} +1 -1
  141. package/btv2/es/{styles-CHWL1hTn.js → styles-P55sXX35.js} +1 -1
  142. package/{vgv2/es/styles-C9Rn4nW7.js → btv2/es/styles-waKHMN6k.js} +1 -1
  143. package/common/cjs/index.js +1 -1
  144. package/common/es/index.js +1 -1
  145. package/dr-edition/cjs/index.d.ts +16 -2
  146. package/dr-edition/es/index.d.ts +16 -2
  147. package/e24/es/_auto-entry_e24-wYPA0ji6.js +1 -0
  148. package/e24/es/{events-CbpNuAuB.js → events-CPLroU1U.js} +1 -1
  149. package/e24/es/{index-CyCFEqzA.js → index-BTIugQeB.js} +1 -1
  150. package/e24/es/{index-ClnLIdMN.js → index-BYWGZI5X.js} +1 -1
  151. package/e24/es/index-Bw8tRu3o.js +1 -0
  152. package/e24/es/{index-NM1PaXW4.js → index-Cs_AXTkg.js} +1 -1
  153. package/e24/es/{index-C5a9EymD.js → index-D11ueYXf.js} +1 -1
  154. package/e24/es/{index-CVF6ZO96.js → index-D1ejFMLf.js} +1 -1
  155. package/e24/es/{index-DsUqXQT6.js → index-DBNXn_xy.js} +1 -1
  156. package/e24/es/{index-CYT1tNCp.js → index-DRJAlwGJ.js} +1 -1
  157. package/e24/es/{index-Dog6tp3N.js → index-DwvvvYtP.js} +1 -1
  158. package/e24/es/index.d.ts +23 -3
  159. package/e24/es/index.js +1 -1
  160. package/e24/es/{styles-BX3I89mP.js → styles-B94XdU83.js} +1 -1
  161. package/e24/es/{styles-BhL647LP.js → styles-Bj2eYyVI.js} +1 -1
  162. package/e24/es/{styles-U53WHYLF.js → styles-BwAwT2Pf.js} +1 -1
  163. package/e24/es/{styles-DhLQ_8OP.js → styles-BxW11dxZ.js} +1 -1
  164. package/e24/es/{styles-Bb2UTZSa.js → styles-Cqt6TYgb.js} +1 -1
  165. package/e24/es/{styles-Bk0HjfcV.js → styles-DA2Dzkna.js} +1 -1
  166. package/e24/es/{styles-CnS4yjdb.js → styles-DGVYL94d.js} +1 -1
  167. package/e24/es/{styles-2P3d8sbR.js → styles-DX3RJxam.js} +1 -1
  168. package/e24/es/{styles-BnL1UDz0.js → styles-YxayLmbP.js} +1 -1
  169. package/{tv4/es/styles-CwJ7BYLW.js → e24/es/styles-j2tvqYAB.js} +1 -1
  170. package/e24/es/{styles-DgFCm_0I.js → styles-mUTrLuxN.js} +1 -1
  171. package/editory/cjs/index.d.ts +16 -2
  172. package/editory/cjs/index.js +1 -1
  173. package/editory/es/index.d.ts +16 -2
  174. package/editory/es/index.js +1 -1
  175. package/fotbollskanalen/cjs/index.d.ts +23 -3
  176. package/fotbollskanalen/cjs/index.js +1 -1
  177. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DHfPSYwC.js +1 -0
  178. package/fotbollskanalen/es/{events-DoLXyFbE.js → events-DhGoXo9G.js} +1 -1
  179. package/fotbollskanalen/es/{index-DGEGftA6.js → index-4wHfjSlu.js} +1 -1
  180. package/fotbollskanalen/es/index-BeESyiwi.js +1 -0
  181. package/fotbollskanalen/es/{index-BCgy2dTJ.js → index-CZBayMKW.js} +1 -1
  182. package/fotbollskanalen/es/{index-BeeQLR-6.js → index-Cu3ZnyR6.js} +1 -1
  183. package/fotbollskanalen/es/{index-D40vdQup.js → index-DCOuEnjg.js} +1 -1
  184. package/fotbollskanalen/es/{index-B2FpyhX_.js → index-DWYgJnwg.js} +1 -1
  185. package/fotbollskanalen/es/{index-BQxih9it.js → index-DhVglpdL.js} +1 -1
  186. package/fotbollskanalen/es/{index-DR6h-w6x.js → index-Dw1_d_VA.js} +1 -1
  187. package/fotbollskanalen/es/{index-DwKOrrUc.js → index-u0qOegJH.js} +1 -1
  188. package/fotbollskanalen/es/index.d.ts +23 -3
  189. package/fotbollskanalen/es/index.js +1 -1
  190. package/fotbollskanalen/es/{styles-BAiocxKr.js → styles-DP9rtrHX.js} +1 -1
  191. package/fotbollskanalen/es/{styles-CmMTN857.js → styles-XYMr9zkd.js} +1 -1
  192. package/fotbollskanalen/es/{styles-BWeGtOl5.js → styles-uTKP14L3.js} +1 -1
  193. package/glimr/cjs/index.js +1 -1
  194. package/glimr/es/index.js +1 -1
  195. package/godt/cjs/index.d.ts +23 -3
  196. package/godt/cjs/index.js +1 -1
  197. package/kilkaya/cjs/index.d.ts +16 -2
  198. package/kilkaya/cjs/index.js +1 -1
  199. package/kilkaya/es/index.d.ts +16 -2
  200. package/kilkaya/es/index.js +1 -1
  201. package/klart/cjs/index.d.ts +23 -3
  202. package/klart/cjs/index.js +1 -1
  203. package/koket/cjs/index.d.ts +23 -3
  204. package/koket/cjs/index.js +1 -1
  205. package/koket/es/_auto-entry_koket-BVcgjIWt.js +1 -0
  206. package/koket/es/{events-CxlMC0Pe.js → events-6LCCHuf-.js} +1 -1
  207. package/koket/es/{index-B-67vUiq.js → index-0dCHEkH0.js} +1 -1
  208. package/koket/es/{index-CNEDz5Tp.js → index-B4t_R1zf.js} +1 -1
  209. package/koket/es/{index-CubByMLk.js → index-BFf-E9qh.js} +1 -1
  210. package/koket/es/{index-qSi107Kc.js → index-BIATBMkd.js} +1 -1
  211. package/koket/es/{index-BF1VkH6H.js → index-BOG56Y-s.js} +1 -1
  212. package/koket/es/index-BUe0OVty.js +1 -0
  213. package/koket/es/{index-BpuSaMGD.js → index-DgIbvEk4.js} +1 -1
  214. package/koket/es/{index-CGiWf9n3.js → index-DtfCbUqO.js} +1 -1
  215. package/{svdv2/es/index-B6rBneoU.js → koket/es/index-iI6c65Nq.js} +1 -1
  216. package/koket/es/index.d.ts +23 -3
  217. package/koket/es/index.js +1 -1
  218. package/koket/es/{styles-CO82pHn7.js → styles-CcRXJ_mV.js} +1 -1
  219. package/{svdv2/es/styles-CexHBws-.js → koket/es/styles-DBqrZJ4L.js} +1 -1
  220. package/koket/es/{styles-BprjAY4k.js → styles-DT6YHndJ.js} +1 -1
  221. package/minmote/cjs/index.d.ts +23 -3
  222. package/minmote/cjs/index.js +1 -1
  223. package/omni/es/_auto-entry_omni-BKT9NlKt.js +1 -0
  224. package/{tvnu/es/events-ChwR2t1s.js → omni/es/events-CogHzF8X.js} +1 -1
  225. package/omni/es/{index-DGGKxokR.js → index-B15R_7XF.js} +1 -1
  226. package/omni/es/index-BABqCLLq.js +1 -0
  227. package/omni/es/{index-DAzmS8rf.js → index-Bt9cgFZ-.js} +1 -1
  228. package/omni/es/{index-DaQ_dmdJ.js → index-CGxXpTiC.js} +1 -1
  229. package/omni/es/{index-DB-tHP7y.js → index-DRqL3tiS.js} +1 -1
  230. package/{sav2/es/index-DBh48a5m.js → omni/es/index-DURQZpI1.js} +1 -1
  231. package/omni/es/{index-CkdVm9dg.js → index-DdhApfDo.js} +1 -1
  232. package/omni/es/{index-Bsp823kV.js → index-uMLx2gHS.js} +1 -1
  233. package/omni/es/{index-DCvgtrOp.js → index-yaDa09sa.js} +1 -1
  234. package/omni/es/index.d.ts +23 -3
  235. package/omni/es/index.js +1 -1
  236. package/omni/es/{styles-BWj6vkZn.js → styles-Dvy7iSh5.js} +1 -1
  237. package/package.json +1 -1
  238. package/pent/cjs/index.d.ts +23 -3
  239. package/pent/cjs/index.js +1 -1
  240. package/sa/cjs/index.d.ts +23 -3
  241. package/sa/cjs/index.js +1 -1
  242. package/sa/es/_auto-entry_sa-CuYCkRC6.js +1 -0
  243. package/sa/es/{events-DOd0Afsf.js → events-DAHMwW_e.js} +1 -1
  244. package/{bt/es/index-CzZ1T04Q.js → sa/es/index-09rUAzem.js} +1 -1
  245. package/sa/es/{index-rVMp4gTY.js → index-BfctA8E2.js} +1 -1
  246. package/{vg/es/index-DaWeGVT5.js → sa/es/index-BqKGk5jY.js} +1 -1
  247. package/sa/es/{index-DB-irIgL.js → index-C9tNcvjy.js} +1 -1
  248. package/sa/es/{index-DfMDaJEr.js → index-CxpAf_XM.js} +1 -1
  249. package/sa/es/{index-CF2R1msU.js → index-DqGM7FdG.js} +1 -1
  250. package/sa/es/{index-2W8OGyqy.js → index-hXfeYXcX.js} +1 -1
  251. package/{bt/es/index-CO7gdXUq.js → sa/es/index-pGnxPr5A.js} +1 -1
  252. package/sa/es/index-w3irufo2.js +1 -0
  253. package/sa/es/index.d.ts +23 -3
  254. package/sa/es/index.js +1 -1
  255. package/sa/es/{styles-C6P3u2TZ.js → styles-C7pZ1XBS.js} +1 -1
  256. package/sa/es/{styles-qxoHZT8g.js → styles-CB6b9tKz.js} +1 -1
  257. package/{vg/es/styles-BAjUTIsG.js → sa/es/styles-CBEoeVgw.js} +1 -1
  258. package/sa/es/{styles-4NfTfqd_.js → styles-CfvXvgjF.js} +1 -1
  259. package/{bt/es/styles-CBk605Zp.js → sa/es/styles-ChS5Hcsx.js} +1 -1
  260. package/sa/es/{styles-B4yEaoh8.js → styles-CiVbyIAU.js} +1 -1
  261. package/{vg/es/styles-DrM756ll.js → sa/es/styles-DW-MYRDP.js} +1 -1
  262. package/{bt/es/styles-pkgvXGWy.js → sa/es/styles-DyQgvzLs.js} +1 -1
  263. package/sa/es/{styles-BXDzS_7d.js → styles-Vqdajbb8.js} +1 -1
  264. package/sav2/es/_auto-entry_sav2-D-u9aUEk.js +1 -0
  265. package/sav2/es/{events-BhAqx0NN.js → events-Bm_ejb_G.js} +1 -1
  266. package/sav2/es/{index-zqpWwCoI.js → index-9M3eQzWk.js} +1 -1
  267. package/sav2/es/index-BVE5IsDH.js +1 -0
  268. package/{tvnu/es/index-Cpt8AoVv.js → sav2/es/index-BWt6p5vf.js} +1 -1
  269. package/sav2/es/{index-BP7pgjOi.js → index-C1v6ONJf.js} +1 -1
  270. package/sav2/es/{index-D0gF_y-V.js → index-Cb07js6i.js} +1 -1
  271. package/sav2/es/{index-BHFXrYso.js → index-DLl6CkEZ.js} +1 -1
  272. package/sav2/es/{index-bVrgZbvT.js → index-DQuoo7tu.js} +1 -1
  273. package/{vgv2/es/index-B9JpqDA_.js → sav2/es/index-Dqjf1Ma7.js} +1 -1
  274. package/sav2/es/{index-Cdu-uTu5.js → index-UCjIih4E.js} +1 -1
  275. package/sav2/es/index.d.ts +23 -3
  276. package/sav2/es/index.js +1 -1
  277. package/{vgv2/es/styles-BxNfnhvc.js → sav2/es/styles-30V8p9Ei.js} +1 -1
  278. package/{btv2/es/styles-I8q89v-L.js → sav2/es/styles-3Vp7Tlxe.js} +1 -1
  279. package/{vgv2/es/styles-BOkY4s5z.js → sav2/es/styles-BBAZHFc8.js} +1 -1
  280. package/sav2/es/{styles-B4He93ZM.js → styles-ChMssAyz.js} +1 -1
  281. package/{vgv2/es/styles-bcAOnG6k.js → sav2/es/styles-DMzS_SBX.js} +1 -1
  282. package/{btv2/es/styles-RwTxlja5.js → sav2/es/styles-KmCCflHF.js} +1 -1
  283. package/sav2/es/{styles-BBlsfaRJ.js → styles-cH5zE_Ej.js} +1 -1
  284. package/sav2/es/{styles--IGQOzlG.js → styles-ue2279T_.js} +1 -1
  285. package/svd/cjs/index.d.ts +23 -3
  286. package/svd/cjs/index.js +1 -1
  287. package/svd/es/_auto-entry_svd-B_dR0M__.js +1 -0
  288. package/svd/es/{events-CABWdVCF.js → events-BlyzNwD6.js} +1 -1
  289. package/svd/es/index--5E-_IBc.js +1 -0
  290. package/svd/es/{index-DBclz1lr.js → index-B6eGRb_D.js} +1 -1
  291. package/svd/es/{index-BC16HRDo.js → index-BTEd_LrX.js} +1 -1
  292. package/svd/es/{index-BREo8EqT.js → index-Bz7V7U8t.js} +1 -1
  293. package/svd/es/{index-DLnd39Bp.js → index-C-78DFuv.js} +1 -1
  294. package/svd/es/{index-BTOZLqYu.js → index-CLTzk2UP.js} +1 -1
  295. package/svd/es/{index-Dr3NDEo0.js → index-CmbrT1DY.js} +1 -1
  296. package/svd/es/{index-D379on78.js → index-Cvn84NVe.js} +1 -1
  297. package/svd/es/{index-B8g3j-UO.js → index-cbZyZ41n.js} +1 -1
  298. package/svd/es/index.d.ts +23 -3
  299. package/svd/es/index.js +1 -1
  300. package/svd/es/{styles-q4nezI7T.js → styles-BDMn7X-z.js} +1 -1
  301. package/svd/es/{styles-Cr3ZWIa3.js → styles-CCTRK-VH.js} +1 -1
  302. package/svd/es/{styles-Cul3Jfb9.js → styles-Ce5rb8Cj.js} +1 -1
  303. package/svd/es/{styles-jKYtLIsC.js → styles-DnehSsh8.js} +1 -1
  304. package/svd/es/{styles-CcjXlYV8.js → styles-DxzEkgQn.js} +1 -1
  305. package/svd/es/{styles-B0gdVVui.js → styles-umijz7MP.js} +1 -1
  306. package/svd/styles.css +1 -1
  307. package/svdv2/es/_auto-entry_svdv2-Ch92LmpU.js +1 -0
  308. package/svdv2/es/{events-CpKtSVLE.js → events-DiiTKHD1.js} +1 -1
  309. package/svdv2/es/{index-D4SnoNeU.js → index-BhrjbHC4.js} +1 -1
  310. package/{koket/es/index-rs-OV2C2.js → svdv2/es/index-CIS2NBoC.js} +1 -1
  311. package/svdv2/es/{index-Dr_AGYPr.js → index-CeEW1Ejp.js} +1 -1
  312. package/svdv2/es/{index-DCGsg_oz.js → index-CrUQU9h4.js} +1 -1
  313. package/svdv2/es/{index-Bn_LbUGh.js → index-DMEU8X4c.js} +1 -1
  314. package/svdv2/es/{index-QXU9gcPR.js → index-De9ZmQNy.js} +1 -1
  315. package/svdv2/es/{index-DF9-ecNl.js → index-GF7KL6sz.js} +1 -1
  316. package/svdv2/es/index-U451sS6_.js +1 -0
  317. package/svdv2/es/{index-B9IKK2qC.js → index-z-pbeRcc.js} +1 -1
  318. package/svdv2/es/index.d.ts +23 -3
  319. package/svdv2/es/index.js +1 -1
  320. package/{koket/es/styles-BOKkBfgU.js → svdv2/es/styles-0psng0gE.js} +1 -1
  321. package/svdv2/es/{styles-CEjjfjYH.js → styles-BGKC9KSQ.js} +1 -1
  322. package/svdv2/es/{styles-C7-ltrsv.js → styles-BN5diuGI.js} +1 -1
  323. package/svdv2/es/{styles-BundofIV.js → styles-BolXnzQm.js} +1 -1
  324. package/svdv2/es/{styles-DRWeMnQb.js → styles-DiTs4sHY.js} +1 -1
  325. package/svdv2/es/{styles-C4hOZPfR.js → styles-DwpPk1Hd.js} +1 -1
  326. package/svdv2/styles.css +1 -1
  327. package/tek/cjs/index.d.ts +23 -3
  328. package/tek/cjs/index.js +1 -1
  329. package/tracker/cjs/index.d.ts +16 -2
  330. package/tracker/es/index.d.ts +16 -2
  331. package/tv4/cjs/index.d.ts +23 -3
  332. package/tv4/cjs/index.js +1 -1
  333. package/tv4/es/_auto-entry_tv4-DdDbZbqV.js +1 -0
  334. package/tv4/es/{events-CHMrMwjZ.js → events-Dy98-0gN.js} +1 -1
  335. package/tv4/es/{index-CSDwi5H5.js → index-9UDcWNPe.js} +1 -1
  336. package/tv4/es/index-CEKVGOx4.js +1 -0
  337. package/tv4/es/{index-4XrehjG8.js → index-CJkSmTnd.js} +1 -1
  338. package/tv4/es/{index-BXmX5BFY.js → index-CVc1e08y.js} +1 -1
  339. package/tv4/es/{index-BCZtrwrU.js → index-DHELahhE.js} +1 -1
  340. package/tv4/es/{index-Dona4q4B.js → index-DKqSrDAg.js} +1 -1
  341. package/tv4/es/{index-fe_l3drg.js → index-DioHx2HA.js} +1 -1
  342. package/tv4/es/{index-CrRlTy6H.js → index-N6xtIF9P.js} +1 -1
  343. package/tv4/es/{index-Co64wylw.js → index-fYufsWne.js} +1 -1
  344. package/tv4/es/index.d.ts +23 -3
  345. package/tv4/es/index.js +1 -1
  346. package/tv4/es/{styles-ITrX4mRs.js → styles-BvJEVYZo.js} +1 -1
  347. package/tv4/es/{styles-DbNMe3dR.js → styles-DgmaJMiI.js} +1 -1
  348. package/{e24/es/styles-DQnblQ-e.js → tv4/es/styles-PMs6ZmdH.js} +1 -1
  349. package/tvnu/cjs/index.d.ts +23 -3
  350. package/tvnu/cjs/index.js +1 -1
  351. package/tvnu/es/_auto-entry_tvnu-G5A1zqUB.js +1 -0
  352. package/{btv2/es/events-DKfTqaRt.js → tvnu/es/events-B158cY-i.js} +1 -1
  353. package/tvnu/es/{index-CR1PvPV7.js → index-Bd1xEb5Y.js} +1 -1
  354. package/tvnu/es/{index-CojvHFIp.js → index-BpwUFeW1.js} +1 -1
  355. package/{sav2/es/index-C3b_LXUu.js → tvnu/es/index-Bv_w_Bwg.js} +1 -1
  356. package/tvnu/es/{index-CBAbZBXX.js → index-Bvz07aF_.js} +1 -1
  357. package/tvnu/es/{index-BzTcFYRI.js → index-C5MxwLjd.js} +1 -1
  358. package/tvnu/es/index-CLrpGCMt.js +1 -0
  359. package/tvnu/es/{index-JQxZSr45.js → index-DPaLXQjX.js} +1 -1
  360. package/tvnu/es/{index-Dgaf--Vi.js → index-ZpbJGlLo.js} +1 -1
  361. package/{omni/es/index-B-A0WAt_.js → tvnu/es/index-aHwdJg2C.js} +1 -1
  362. package/tvnu/es/index.d.ts +23 -3
  363. package/tvnu/es/index.js +1 -1
  364. package/{btv2/es/styles-Dnx9c-Rd.js → tvnu/es/styles-CY_eOUgO.js} +1 -1
  365. package/tvnu/es/{styles-DpMy4BKZ.js → styles-S1y0WjE-.js} +1 -1
  366. package/types/index.d.ts +23 -3
  367. package/vg/cjs/index.d.ts +23 -3
  368. package/vg/cjs/index.js +1 -1
  369. package/vg/es/_auto-entry_vg-CjqE54dS.js +1 -0
  370. package/vg/es/{events-4e8ic4JW.js → events-lUCpvQb5.js} +1 -1
  371. package/vg/es/{index-BckJy1hN.js → index-BHlXcqJc.js} +1 -1
  372. package/vg/es/{index-CHsg0739.js → index-BIulONOf.js} +1 -1
  373. package/{sa/es/index-BiMl7dWD.js → vg/es/index-BJi-QVAv.js} +1 -1
  374. package/vg/es/{index-CHvLGzoc.js → index-CMxG82l8.js} +1 -1
  375. package/vg/es/index-ClD3ElrA.js +1 -0
  376. package/vg/es/{index-Cy3WeRRV.js → index-DjZ7SGq1.js} +1 -1
  377. package/vg/es/{index-CNy3j9j6.js → index-FPdoLHu8.js} +1 -1
  378. package/vg/es/{index-Is4ynno0.js → index-faU0HhzX.js} +1 -1
  379. package/vg/es/{index-CAe4kSWr.js → index-iZZTHOjx.js} +1 -1
  380. package/vg/es/index.d.ts +23 -3
  381. package/vg/es/index.js +1 -1
  382. package/vg/es/{styles-BCn-8mdK.js → styles-B4BR_ydZ.js} +1 -1
  383. package/vg/es/{styles-BpLZyb2l.js → styles-BUyBk_4e.js} +1 -1
  384. package/{bt/es/styles-CgLUOmWs.js → vg/es/styles-BdmuVc4H.js} +1 -1
  385. package/vg/es/{styles-C0FAiivL.js → styles-Bu-Hajjg.js} +1 -1
  386. package/vg/es/{styles-EO4Z04eS.js → styles-Buw5zFpP.js} +1 -1
  387. package/vg/es/{styles-B8CMoKLB.js → styles-C-4_7G5C.js} +1 -1
  388. package/{sa/es/styles-DigC3QK3.js → vg/es/styles-C-7Xhku6.js} +1 -1
  389. package/vg/es/{styles-ClR8adLs.js → styles-CG1aVs8L.js} +1 -1
  390. package/vg/es/{styles-CfXvGBax.js → styles-CSOyluV6.js} +1 -1
  391. package/vg/es/{styles-W1laIZ6S.js → styles-Cb5yE_EI.js} +1 -1
  392. package/vg/es/{styles-zJ39jql2.js → styles-CeIeBDyP.js} +1 -1
  393. package/vg/es/{styles-CQgjpbmw.js → styles-CmmjTUoa.js} +1 -1
  394. package/vg/es/{styles-bIv4Q47_.js → styles-DzlGagE8.js} +1 -1
  395. package/vg/es/{styles-D6Rg-ulX.js → styles-KZ2glX5N.js} +1 -1
  396. package/vg/es/{styles-9ECHynlH.js → styles-jTMMC0Oy.js} +1 -1
  397. package/vgv2/es/_auto-entry_vgv2-DMRmCnNF.js +1 -0
  398. package/vgv2/es/{events-4ylFIDYC.js → events-Dsdq7E_j.js} +1 -1
  399. package/vgv2/es/{index-VWpvgpvl.js → index-438xX8Px.js} +1 -1
  400. package/vgv2/es/index-BXypP1nQ.js +1 -0
  401. package/vgv2/es/{index-CEsTB_kN.js → index-CZIBtass.js} +1 -1
  402. package/{tvnu/es/index-BZCzeImC.js → vgv2/es/index-CegyZuAB.js} +1 -1
  403. package/vgv2/es/{index-dLtCjpUS.js → index-CozQyEKS.js} +1 -1
  404. package/vgv2/es/{index-BM-vkMOt.js → index-DQDuNoQN.js} +1 -1
  405. package/vgv2/es/{index-CFXDbRQf.js → index-IRJOgoWt.js} +1 -1
  406. package/vgv2/es/{index-BVPA8uep.js → index-Yx0CBEyO.js} +1 -1
  407. package/vgv2/es/{index-CHrr1VyU.js → index-pAxZwoOU.js} +1 -1
  408. package/vgv2/es/index.d.ts +23 -3
  409. package/vgv2/es/index.js +1 -1
  410. package/vgv2/es/{styles-D3HCr2vT.js → styles-BNgngtw0.js} +1 -1
  411. package/vgv2/es/{styles-DtcAZIpd.js → styles-BpQwHO4d.js} +1 -1
  412. package/vgv2/es/{styles-DwNwjaEO.js → styles-C2-IzwR2.js} +1 -1
  413. package/{sav2/es/styles-CoizTY-s.js → vgv2/es/styles-CEcnINNS.js} +1 -1
  414. package/vgv2/es/{styles-CCNC1prS.js → styles-COmAoSDL.js} +1 -1
  415. package/vgv2/es/{styles-DHEg0KlQ.js → styles-CtV0tjcn.js} +1 -1
  416. package/vgv2/es/{styles-D7i1H034.js → styles-D0PaSccJ.js} +1 -1
  417. package/vgv2/es/{styles-bwUKzTlr.js → styles-D2KoRDSx.js} +1 -1
  418. package/{btv2/es/styles-CBZi2Vg7.js → vgv2/es/styles-D3XTOuas.js} +1 -1
  419. package/vgv2/es/{styles-BCGHoGS4.js → styles-DWJ_EMpn.js} +1 -1
  420. package/{tvnu/es/styles-DYbgH_Or.js → vgv2/es/styles-D_lSWh7D.js} +1 -1
  421. package/vgv2/es/{styles-B5z33JF9.js → styles-DrW5Y_sp.js} +1 -1
  422. package/{btv2/es/styles-BNAOpime.js → vgv2/es/styles-Du0oMdYa.js} +1 -1
  423. package/vgv2/es/{styles-SYespUPX.js → styles-Rh_ty11t.js} +1 -1
  424. package/vgv2/es/{styles-D0IA2Lg4.js → styles-sdP2BY8I.js} +1 -1
  425. package/video/cjs/index.js +1 -1
  426. package/video/es/index.js +1 -1
  427. package/aftenposten/es/_auto-entry_aftenposten-BCyk6yXn.js +0 -1
  428. package/aftenposten/es/index-_VQ1JPu8.js +0 -1
  429. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-D-Gf-aaT.js +0 -1
  430. package/aftenpostenv2/es/index-DOEt8rhF.js +0 -1
  431. package/aftonbladet/es/_auto-entry_aftonbladet-fp81TE2z.js +0 -1
  432. package/aftonbladet/es/index-ByRtNlAq.js +0 -1
  433. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DAnOR99S.js +0 -1
  434. package/aftonbladetv2/es/index--xnbkaCV.js +0 -1
  435. package/bt/es/_auto-entry_bt-DdPlAew1.js +0 -1
  436. package/bt/es/index-UcG1XQgN.js +0 -1
  437. package/btv2/es/_auto-entry_btv2-CwxbGr-F.js +0 -1
  438. package/btv2/es/index-CplLJxhV.js +0 -1
  439. package/e24/es/_auto-entry_e24-xOYSZLi0.js +0 -1
  440. package/e24/es/index-DZuxNX1s.js +0 -1
  441. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-BN9R-Vte.js +0 -1
  442. package/fotbollskanalen/es/index-z4kH-WyA.js +0 -1
  443. package/koket/es/_auto-entry_koket-C0ijoPG-.js +0 -1
  444. package/koket/es/index-BVn2HWkJ.js +0 -1
  445. package/omni/es/_auto-entry_omni-BmtNR1x1.js +0 -1
  446. package/omni/es/index-CrKNO2Un.js +0 -1
  447. package/sa/es/_auto-entry_sa-D5OZvzUI.js +0 -1
  448. package/sa/es/index-CP1Yj4Ka.js +0 -1
  449. package/sav2/es/_auto-entry_sav2-Dv-SxFhr.js +0 -1
  450. package/sav2/es/index-BkthDzfu.js +0 -1
  451. package/svd/es/_auto-entry_svd-C0m9gdEF.js +0 -1
  452. package/svd/es/index-BtcpqwMH.js +0 -1
  453. package/svdv2/es/_auto-entry_svdv2-BB3jweAN.js +0 -1
  454. package/svdv2/es/index-BvP6-sDg.js +0 -1
  455. package/tv4/es/_auto-entry_tv4-C36OAWyu.js +0 -1
  456. package/tv4/es/index-BD9W0hNC.js +0 -1
  457. package/tvnu/es/_auto-entry_tvnu-BdPpWEQt.js +0 -1
  458. package/tvnu/es/index-CeG83sJw.js +0 -1
  459. package/vg/es/_auto-entry_vg-U9mW36wb.js +0 -1
  460. package/vg/es/index-CldVNTKo.js +0 -1
  461. package/vgv2/es/_auto-entry_vgv2-D-c2xkPT.js +0 -1
  462. package/vgv2/es/index-BfhIVMSm.js +0 -1
@@ -1 +1 @@
1
- import{_ as e,N as t,R as n,U as a,V as r,W as l,l as i,X as s,Y as o,h as c,Z as d}from"./_auto-entry_fotbollskanalen-BN9R-Vte.js";import{jsxs as u,jsx as p}from"react/jsx-runtime";class g{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const l=r.split("/");return l.length?[...l.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class m{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,l,i,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)||void 0===s||s.call(i,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,l,i;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(i=(l=this.pulse).trackElementClick)||void 0===i||i.call(l,s)})}}class h extends m{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,l,i;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(i=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===i?void 0:i.call(l,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const y=/^glci_/,k="gender_",f="geo_",b="male",P="female";class w extends m{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:a="",clientName:r="",creativeId:l="",link:i=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:o}=this.getPlacementData(e),c={publicUrl:i,urlPath:i?new URL(i).pathname:""},{publicUrl:d,urlPath:u}=i&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,i))||c;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:s,primaryPosition:o},tags:[r,a,d,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":l,pageTitle:a,publicUrl:d,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const I="[data-k5a-teaser-analytics]",E=(e,n,a,r)=>{const l=document.querySelectorAll("k5a-stream");if(!l.length)return;const i=new(r===t.SE?w:h)(e,n,a),s=new WeakMap,o=e=>{const t=s.get(e);t&&(t.disconnect(),s.delete(e))},c=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(I);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(i.trackContentView(n),t.unobserve(e.target),o(n)):((e,t)=>{if(s.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(I);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(i.trackContentView(e),t.unobserve(e),o(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),s.set(e,n)})(n,t)})},{threshold:.5});l.forEach(e=>{c.observe(e),e.addEventListener("click",()=>i.trackContentClick(e))})},T=()=>e(void 0,void 0,void 0,function*(){try{const a=yield(t=500,e(void 0,void 0,void 0,function*(){return Promise.race([r(),new Promise(e=>setTimeout(()=>e(void 0),t))])})),l=new n(a),i=yield l.getIdentityUser(),{gender:s}=null!=i?i:{};return s===b||s===P?`${k}${s}`:void 0}catch(e){return}var t}),S=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield T(),n=(()=>{const e=a().map(e=>`${f}${e.replace(y,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class U{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===l.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class A{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class D{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===l.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class O{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class j{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:a}}){if(!(null==e?void 0:e.instance))return;const r={[d.VG]:new g,[d.E24]:new U,"no-aftenposten":new A,[d.BT]:new D,"no-bergenstidende":new D,[d.SA]:new K,"no-stavangeraftenblad":new K,[d.SVD]:new C,[d.AFTONBLADET]:new O}[n]||new v;E(e.instance,r,t,a)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield S();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";s(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield o(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:l},kilkaya:i}=t;if(!(null==i?void 0:i.enabled))return;const s=yield c(a,r,l,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=i.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const N=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:l})=>{const i=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=i(r,"data-pulse"),o=i(l,"data");return u("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[p("div",{className:"inscreen-target"}),p("k5a-stream",{name:e,"slot-tag":t}),p("div",{className:"container"}),p("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},L=t=>e(void 0,void 0,void 0,function*(){const e=new j;yield e.run(t)});export{N as Kilkaya,L as runKilkaya};
1
+ import{_ as e,N as t,R as n,U as a,V as r,W as l,l as i,X as s,Y as o,h as c,Z as d}from"./_auto-entry_fotbollskanalen-DHfPSYwC.js";import{jsxs as u,jsx as p}from"react/jsx-runtime";class g{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const l=r.split("/");return l.length?[...l.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class v{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class m{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,l,i,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)||void 0===s||s.call(i,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,l,i;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(i=(l=this.pulse).trackElementClick)||void 0===i||i.call(l,s)})}}class h extends m{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,l,i;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},tags:null===(i=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===i?void 0:i.call(l,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const y=/^glci_/,k="gender_",f="geo_",b="male",P="female";class w extends m{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:a="",clientName:r="",creativeId:l="",link:i=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:o}=this.getPlacementData(e),c={publicUrl:i,urlPath:i?new URL(i).pathname:""},{publicUrl:d,urlPath:u}=i&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,i))||c;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:s,primaryPosition:o},tags:[r,a,d,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":l,pageTitle:a,publicUrl:d,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const I="[data-k5a-teaser-analytics]",E=(e,n,a,r)=>{const l=document.querySelectorAll("k5a-stream");if(!l.length)return;const i=new(r===t.SE?w:h)(e,n,a),s=new WeakMap,o=e=>{const t=s.get(e);t&&(t.disconnect(),s.delete(e))},c=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(I);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(i.trackContentView(n),t.unobserve(e.target),o(n)):((e,t)=>{if(s.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(I);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(i.trackContentView(e),t.unobserve(e),o(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),s.set(e,n)})(n,t)})},{threshold:.5});l.forEach(e=>{c.observe(e),e.addEventListener("click",()=>i.trackContentClick(e))})},T=()=>e(void 0,void 0,void 0,function*(){try{const a=yield(t=500,e(void 0,void 0,void 0,function*(){return Promise.race([r(),new Promise(e=>setTimeout(()=>e(void 0),t))])})),l=new n(a),i=yield l.getIdentityUser(),{gender:s}=null!=i?i:{};return s===b||s===P?`${k}${s}`:void 0}catch(e){return}var t}),S=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield T(),n=(()=>{const e=a().map(e=>`${f}${e.replace(y,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class U{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===l.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class A{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class D{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class K{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===l.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class O{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class j{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:a}}){if(!(null==e?void 0:e.instance))return;const r={[d.VG]:new g,[d.E24]:new U,"no-aftenposten":new A,[d.BT]:new D,"no-bergenstidende":new D,[d.SA]:new K,"no-stavangeraftenblad":new K,[d.SVD]:new C,[d.AFTONBLADET]:new O}[n]||new v;E(e.instance,r,t,a)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield S();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(i(`Kilkaya event for slot: ${n}`),!n)return void i("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(i(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):i("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";s(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield o(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:l},kilkaya:i}=t;if(!(null==i?void 0:i.enabled))return;const s=yield c(a,r,l,"kilkaya");s&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(s),yield this.loadKilkayaScript(null!==(n=null===(e=i.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t))})}}const N=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:l})=>{const i=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=i(r,"data-pulse"),o=i(l,"data");return u("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[p("div",{className:"inscreen-target"}),p("k5a-stream",{name:e,"slot-tag":t}),p("div",{className:"container"}),p("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},L=t=>e(void 0,void 0,void 0,function*(){const e=new j;yield e.run(t)});export{N as Kilkaya,L as runKilkaya};
@@ -459,6 +459,12 @@ interface PageContext {
459
459
  deviceType: DeviceType;
460
460
  isMobileApp?: boolean;
461
461
  }
462
+ type EditoryPageContext = Partial<PageContext> & Required<Pick<PageContext, 'deviceType'>>;
463
+ type EditoryPageOptions = Partial<AstPageOptions> & Required<Pick<AstPageOptions, 'keywords'>>;
464
+ type EditorySiteConfig = Partial<Omit<SiteConfig, 'pageContext' | 'pageOptions'>> & {
465
+ pageContext: EditoryPageContext;
466
+ pageOptions: EditoryPageOptions;
467
+ };
462
468
  interface PageSetup {
463
469
  pageOptions?: PageSetupPageOptions;
464
470
  tag?: PageSetupTag;
@@ -649,6 +655,7 @@ interface FullscreenScrollOptions {
649
655
  overlayStyles?: OverlayStyles;
650
656
  cogwheelPosition?: CogwheelPosition;
651
657
  iosSafeAreaTopFix?: string;
658
+ annonsLabel?: string;
652
659
  }
653
660
  interface FullscreenScrollConfig {
654
661
  enabled: boolean;
@@ -659,14 +666,26 @@ interface WelcomePageConfig {
659
666
  buttonLabel?: string;
660
667
  showCloseButton?: boolean;
661
668
  }
662
- interface Logotype {
669
+ interface LogotypeVariant {
663
670
  url: string;
664
671
  alt: string;
665
672
  }
666
- interface ThemeColors {
673
+ interface Logotype extends LogotypeVariant {
674
+ darkMode?: {
675
+ url?: string;
676
+ alt?: string;
677
+ };
678
+ }
679
+ interface ThemeColorsVariant {
667
680
  backgroundColor: string;
668
681
  color: string;
669
682
  }
683
+ interface ThemeColors extends ThemeColorsVariant {
684
+ darkMode?: {
685
+ backgroundColor?: string;
686
+ color?: string;
687
+ };
688
+ }
670
689
  interface SplashConfig {
671
690
  themeColors?: ThemeColors;
672
691
  buttonLabel: string;
@@ -739,6 +758,7 @@ interface RightColumnSplitConfig {
739
758
  interface EditableConfigurationConfig {
740
759
  enabled?: boolean;
741
760
  pageTypeToFetch?: string;
761
+ section?: string;
742
762
  }
743
763
  interface AdNativeBuilderConfig {
744
764
  enabled?: boolean;
@@ -847,7 +867,7 @@ interface VideoStream {
847
867
  }
848
868
 
849
869
  interface Advertory {
850
- init: (config: SiteConfig) => Promise<void>;
870
+ init: (config: SiteConfig | EditorySiteConfig) => Promise<void>;
851
871
  update: (configToUpdate?: Partial<SiteConfig>, options?: UpdateAdvertoryConfig) => Promise<Array<Placement>>;
852
872
  getVideoPPIDs: (country: Country) => Promise<string>;
853
873
  createInitNativeAd: (config: CreateInitNativeAdConfig) => InitNativeAd;
@@ -1 +1 @@
1
- export{a0 as Takeover,$ as default}from"./_auto-entry_fotbollskanalen-BN9R-Vte.js";import"react/jsx-runtime";
1
+ export{a0 as Takeover,$ as default}from"./_auto-entry_fotbollskanalen-DHfPSYwC.js";import"react/jsx-runtime";
@@ -1 +1 @@
1
- import{i as a}from"./_auto-entry_fotbollskanalen-BN9R-Vte.js";import"react/jsx-runtime";a('.advertory-fotbollskanalen-ad-native-default{border-top:4px solid #2a72dd;position:relative;font-family:var(--font-quattro-new, Roboto, Arial, sans-serif);font-weight:750;font-style:normal;background-color:var(--color-default-box, #ffffff);color:var(--text-color, #000000);width:100%}.advertory-fotbollskanalen-ad-native-default .ad-info{top:2px;right:0;position:absolute;height:26px;width:26px;z-index:1000;border-bottom-left-radius:13px;border-top-right-radius:13px}.advertory-fotbollskanalen-ad-native-default .ad-link{color:inherit;text-decoration:none;display:block}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content{border-left:1px solid rgba(34,34,34,.1);border-right:1px solid rgba(34,34,34,.1);border-bottom:1px solid rgba(34,34,34,.1);display:flex;flex-direction:column}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-header{display:flex;padding:8px 16px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-header .ad-annonse{font-size:14px;font-weight:bold;color:var(--color-primary-link, #2a72dd);content:"ANNONS";display:inline-block;text-align:left;vertical-align:middle}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content{padding:8px 16px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-subtitle{font-family:var(--font-quattro-new, Roboto, Arial, sans-serif);font-weight:normal;font-size:15px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-subtitle .ad-sponsored{color:var(--color-primary-link, #2a72dd);font-weight:bold;text-transform:uppercase}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-title{font-weight:750;font-size:30px;letter-spacing:-1px;line-height:1.08;margin:0 0 4px}@media screen and (min-width: 768px){.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-title{font-size:54px;letter-spacing:-1.8px}}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-image-container .ad-image{position:relative;width:100%;height:100%;aspect-ratio:2.8;object-fit:cover;object-position:center}@media(prefers-color-scheme: dark){.advertory-fotbollskanalen-ad-native-default{background-color:var(--color-default-box, #222222);color:var(--text-color, #ffffff)}}');
1
+ import{i as a}from"./_auto-entry_fotbollskanalen-DHfPSYwC.js";import"react/jsx-runtime";a('.advertory-fotbollskanalen-ad-native-default{border-top:4px solid #2a72dd;position:relative;font-family:var(--font-quattro-new, Roboto, Arial, sans-serif);font-weight:750;font-style:normal;background-color:var(--color-default-box, #ffffff);color:var(--text-color, #000000);width:100%}.advertory-fotbollskanalen-ad-native-default .ad-info{top:2px;right:0;position:absolute;height:26px;width:26px;z-index:1000;border-bottom-left-radius:13px;border-top-right-radius:13px}.advertory-fotbollskanalen-ad-native-default .ad-link{color:inherit;text-decoration:none;display:block}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content{border-left:1px solid rgba(34,34,34,.1);border-right:1px solid rgba(34,34,34,.1);border-bottom:1px solid rgba(34,34,34,.1);display:flex;flex-direction:column}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-header{display:flex;padding:8px 16px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-header .ad-annonse{font-size:14px;font-weight:bold;color:var(--color-primary-link, #2a72dd);content:"ANNONS";display:inline-block;text-align:left;vertical-align:middle}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content{padding:8px 16px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-subtitle{font-family:var(--font-quattro-new, Roboto, Arial, sans-serif);font-weight:normal;font-size:15px}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-subtitle .ad-sponsored{color:var(--color-primary-link, #2a72dd);font-weight:bold;text-transform:uppercase}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-title{font-weight:750;font-size:30px;letter-spacing:-1px;line-height:1.08;margin:0 0 4px}@media screen and (min-width: 768px){.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-data-content .ad-title{font-size:54px;letter-spacing:-1.8px}}.advertory-fotbollskanalen-ad-native-default .ad-link .ad-content .ad-image-container .ad-image{position:relative;width:100%;height:100%;aspect-ratio:2.8;object-fit:cover;object-position:center}@media(prefers-color-scheme: dark){.advertory-fotbollskanalen-ad-native-default{background-color:var(--color-default-box, #222222);color:var(--text-color, #ffffff)}}');
@@ -1 +1 @@
1
- import{i as o}from"./_auto-entry_fotbollskanalen-BN9R-Vte.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-DHfPSYwC.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 +1 @@
1
- import{i as e}from"./_auto-entry_fotbollskanalen-BN9R-Vte.js";import"react/jsx-runtime";e(".advertory-shared-ad-native-video{width:100%;min-height:250px;height:auto;margin:auto;text-align:left;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}@media screen and (min-width: 768px){.advertory-shared-ad-native-video{width:580px}}.advertory-shared-ad-native-video .ad-info{position:absolute;top:2px;right:24px}.advertory-shared-ad-native-video .ad-info .gdprAdTransparencyCogWheelButton{background-color:rgba(0,0,0,0);border-bottom-right-radius:13px;z-index:10}.advertory-shared-ad-native-video a.ad-link{display:block;text-decoration:none;color:#2b2b2b}.advertory-shared-ad-native-video a.ad-link:hover{text-decoration:none}.advertory-shared-ad-native-video .ad-content .ad-header{font-size:12px;padding:5px 8px;color:#4c3d00;background:rgba(255,205,0,.8);font-weight:bold}.advertory-shared-ad-native-video .ad-content .ad-image-container{position:relative;line-height:0}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-image-container{min-height:300px}}.advertory-shared-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:56.4971751412vw;width:100%}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:326px}}.advertory-shared-ad-native-video .ad-content .ad-text-container{background:#fff6d1;overflow:auto;padding-bottom:15px;padding-left:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container{background:#fff6d1;padding-left:16px;overflow:auto}}.advertory-shared-ad-native-video .ad-content .ad-text-container .sponsored-by{margin:8px 16px 8px 0;color:#64625a;font-size:10px;text-transform:uppercase;display:block;font-weight:600}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container .sponsored-by{font-size:12px}}.advertory-shared-ad-native-video .ad-content .ad-text-container .title{line-height:1;margin:8px 0;font-weight:bold;font-size:20px;font-family:Arial,sans-serif}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container .title{font-size:22px}}");
1
+ import{i as e}from"./_auto-entry_fotbollskanalen-DHfPSYwC.js";import"react/jsx-runtime";e(".advertory-shared-ad-native-video{width:100%;min-height:250px;height:auto;margin:auto;text-align:left;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed}@media screen and (min-width: 768px){.advertory-shared-ad-native-video{width:580px}}.advertory-shared-ad-native-video .ad-info{position:absolute;top:2px;right:24px}.advertory-shared-ad-native-video .ad-info .gdprAdTransparencyCogWheelButton{background-color:rgba(0,0,0,0);border-bottom-right-radius:13px;z-index:10}.advertory-shared-ad-native-video a.ad-link{display:block;text-decoration:none;color:#2b2b2b}.advertory-shared-ad-native-video a.ad-link:hover{text-decoration:none}.advertory-shared-ad-native-video .ad-content .ad-header{font-size:12px;padding:5px 8px;color:#4c3d00;background:rgba(255,205,0,.8);font-weight:bold}.advertory-shared-ad-native-video .ad-content .ad-image-container{position:relative;line-height:0}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-image-container{min-height:300px}}.advertory-shared-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:56.4971751412vw;width:100%}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-image-container .ad-player-wrapper{height:326px}}.advertory-shared-ad-native-video .ad-content .ad-text-container{background:#fff6d1;overflow:auto;padding-bottom:15px;padding-left:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container{background:#fff6d1;padding-left:16px;overflow:auto}}.advertory-shared-ad-native-video .ad-content .ad-text-container .sponsored-by{margin:8px 16px 8px 0;color:#64625a;font-size:10px;text-transform:uppercase;display:block;font-weight:600}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container .sponsored-by{font-size:12px}}.advertory-shared-ad-native-video .ad-content .ad-text-container .title{line-height:1;margin:8px 0;font-weight:bold;font-size:20px;font-family:Arial,sans-serif}@media screen and (min-width: 768px){.advertory-shared-ad-native-video .ad-content .ad-text-container .title{font-size:22px}}");
@@ -1 +1 @@
1
- "use strict";var e,t,n=require("./glimr-sdk-mS8sOhxy.js");function r(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var i=function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function s(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 a(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach(function(t){r[t]=i(e[t],n)}),s(t).forEach(function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))}),r}function d(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=i;var s=Array.isArray(t);return s===Array.isArray(e)?s?r.arrayMerge(e,t,r):l(e,t,r):i(t,r)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},e=d}(),o=n.getDefaultExportFromCjs(i);const s=["placements","takeover","refreshConfig","editory"],a={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},l=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},d=(e,t)=>{console.warn("[Advertory WARN]: ",e)},c=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||d("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||d("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||d("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||d("pageContext.deviceType is required."),n||d("pageOptions is required."),r||d("placements is required."),(null==i?void 0:i.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=e.pageSectionsSelectors,s=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&d(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class u{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 s){const r=e[n];void 0!==r&&(t[n]=r)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=o(u.DEFAULT_SITE_HANDLERS,e)}}u.DEFAULT_SITE_HANDLERS={siteEvents:a,initNativeAd:()=>{}};const g=new u;g.modifyConfigProperties.bind(g);const f=864e5,v=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return l("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=f)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=f)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return l("Error with parsing localStorage data"),null}}}})(),p="glimrTags",h=["glwe_","glwet_"],m={geofenceTags:[],geoTags:[],weatherTags:[]},b=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 l("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(l("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{l("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{l("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);l("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),y="no",w="se",C="cmp:loaded";let T="undefined"!=typeof window?window._tcf_:void 0,O=!1;const S=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,s=(a="bypass_tcf",new URLSearchParams(window.location.search).get(a));var a;const d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(l("TCF bypass param detected, returning consent: true"),!0):(l("TCF is not enabled, returning consent: true"),!0))(i,s))return!0;if(O)return null;if(!T)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=T.getConsentedToAllSync();return l(`TCF consented to all is: ${t}`),T.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(l("Getting TCF consent manager..."),window._tcf_)return l("TCF consent manager is already available"),T=window._tcf_,void e(T);l("TCF consent manager is not available");const n=()=>{l("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(T=window._tcf_,e(T)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(C,n),O=!0,t(new Error("Timeout waiting for CMP to load"))},o);l("Listening for CMP loaded event..."),document.addEventListener(C,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>r(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===w,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===y;if(t||r)return l("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield b(e);if(!(null==e?void 0:e.enabled))return!0;const i=d();return null!==i?i:yield new Promise((e,t)=>{try{if(!T)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{l("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);T.onTcfReady(()=>{l("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),T.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},A=(...e)=>r(void 0,[...e],void 0,function*(e=g.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,n,...i)=>r(void 0,[e,t,n,...i],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return l(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=S(e,0,n);return(yield i())?(l(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(l(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(t,n,i,"glimr");return e}const{getConsentAsync:o}=S(t,0,i);return yield o()}),E={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},_=e=>h.some(t=>e.startsWith(t)),P=e=>e.startsWith("glgc_"),j=e=>e.startsWith("glci_"),M=e=>!_(e)&&!P(e),x=(e,t)=>{const n=N();if(!n)return m;const r=((e=[])=>e.filter(_))(n),i=((e=[])=>e.filter(P))(n),o=((e=[],t,n)=>{var r;const i=e.filter(M);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=E[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:o,geofenceTags:i,weatherTags:r}},N=()=>{const e=v.getByTimestamp(p);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};exports.getCityTags=()=>{var e;return((e=[])=>e.filter(j))(null!==(e=N())&&void 0!==e?e:[])},exports.getGlimrKeywords=(e,t)=>r(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:i}={}}=e,o=yield A(e);if(!(null==r?void 0:r.enabled)||!o)return l("No consent for getting glimr tags."),{};const s=(e=>e===y?"no-sno":"se-generic")(i),a=x(e,Boolean(n));return{[`${s}-geo`]:a.geoTags,[`${s}-weather`]:a.weatherTags,[`${s}-geofence`]:a.geofenceTags}}),exports.updateGlimr=()=>r(void 0,void 0,void 0,function*(){const{glimr:e}=g.get();if(!(yield A())||!(null==e?void 0:e.enabled))return void l("No consent for glimr data fetching.");const t=yield(n=500,r(void 0,void 0,void 0,function*(){return yield Promise.race([r(void 0,void 0,void 0,function*(){const e=yield Promise.resolve().then(function(){return require("./glimr-BIcFSFRk.js")}).then(function(e){return e.glimr});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{v.setWithTimestamp(p,{tags:e,tagMappings:t}),n(!0)})})}catch(e){l(`Error during getting glimr data: ${e}`)}else l("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})});
1
+ "use strict";var e,t,n=require("./glimr-sdk-mS8sOhxy.js");function r(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var o=function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return o(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 r={};return n.isMergeableObject(e)&&a(e).forEach(function(t){r[t]=o(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])?r[i]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))}),r}function d(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},e=d}(),i=n.getDefaultExportFromCjs(o);const a={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},s=(e,t)=>i(e,t,a),l={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},d=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},c=(e,t)=>{console.warn("[Advertory WARN]: ",e)},u=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||c("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||c("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||c("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||c("pageContext.deviceType is required."),n||c("pageOptions is required."),r||c("placements is required."),(null==o?void 0:o.defaultThreshold)||c("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,o;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===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==i?void 0:i[t])&&c(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},g=["placements","takeover","refreshConfig","editory"],f=(e,t)=>Object.assign(Object.assign({},e),t),v={editory:(e,t)=>{var n;return s(null!==(n=e)&&void 0!==n?n:{},t)},pageContext:f,pageOptions:f,tcf:f};class p{set(e){u(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n={};for(const e of g){const r=t[e];void 0===r||e in v||(n[e]=r)}Object.assign(e,n);const r=e;for(const e of Object.keys(v))Object.hasOwn(t,e)&&void 0!==t[e]&&(r[e]=v[e](r[e],t[e]))})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=s(p.DEFAULT_SITE_HANDLERS,e)}}p.DEFAULT_SITE_HANDLERS={siteEvents:l,initNativeAd:()=>{}};const m=new p;m.modifyConfigProperties.bind(m);const b=864e5,y=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return d("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=b)=>{const o={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(o))},getByTimestamp:(t,n=b)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return d("Error with parsing localStorage data"),null}}}})(),h="glimrTags",w=["glwe_","glwet_"],C={geofenceTags:[],geoTags:[],weatherTags:[]},T=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 d("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const o=e=>{r||(d("Resolving advertising permission value obtained"),r=!0,t(e))},i=setTimeout(()=>{d("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{d("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const t=Number(e);d("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),S="no",A="se",O="cmp:loaded";let E="undefined"!=typeof window?window._tcf_:void 0,_=!1;const P=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,a=(s="bypass_tcf",new URLSearchParams(window.location.search).get(s));var s;const l=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(d("TCF bypass param detected, returning consent: true"),!0):(d("TCF is not enabled, returning consent: true"),!0))(o,a))return!0;if(_)return null;if(!E)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=E.getConsentedToAllSync();return d(`TCF consented to all is: ${t}`),E.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(d("Getting TCF consent manager..."),window._tcf_)return d("TCF consent manager is already available"),E=window._tcf_,void e(E);d("TCF consent manager is not available");const n=()=>{d("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(E=window._tcf_,e(E)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(O,n),_=!0,t(new Error("Timeout waiting for CMP to load"))},i);d("Listening for CMP loaded event..."),document.addEventListener(O,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>r(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return d(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===A,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===S;if(t||r)return d("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield T(e);if(!(null==e?void 0:e.enabled))return!0;const o=l();return null!==o?o:yield new Promise((e,t)=>{try{if(!E)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{d("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);E.onTcfReady(()=>{d("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),E.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},M=(...e)=>r(void 0,[...e],void 0,function*(e=m.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,n,...o)=>r(void 0,[e,t,n,...o],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return d(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return d(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=P(e,0,n);return(yield o())?(d(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(d(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(t,n,o,"glimr");return e}const{getConsentAsync:i}=P(t,0,o);return yield i()}),j={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},N=e=>w.some(t=>e.startsWith(t)),x=e=>e.startsWith("glgc_"),F=e=>e.startsWith("glci_"),$=e=>!N(e)&&!x(e),R=(e,t)=>{const n=q();if(!n)return C;const r=((e=[])=>e.filter(N))(n),o=((e=[])=>e.filter(x))(n),i=((e=[],t,n)=>{var r;const o=e.filter($);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=j[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:i,geofenceTags:o,weatherTags:r}},q=()=>{const e=y.getByTimestamp(h);return e&&"string"!=typeof e?null==e?void 0:e.tags:null};exports.getCityTags=()=>{var e;return((e=[])=>e.filter(F))(null!==(e=q())&&void 0!==e?e:[])},exports.getGlimrKeywords=(e,t)=>r(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield M(e);if(!(null==r?void 0:r.enabled)||!i)return d("No consent for getting glimr tags."),{};const a=(e=>e===S?"no-sno":"se-generic")(o),s=R(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),exports.updateGlimr=()=>r(void 0,void 0,void 0,function*(){const{glimr:e}=m.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void d("No consent for glimr data fetching.");const t=yield(n=500,r(void 0,void 0,void 0,function*(){return yield Promise.race([r(void 0,void 0,void 0,function*(){const e=yield Promise.resolve().then(function(){return require("./glimr-BIcFSFRk.js")}).then(function(e){return e.glimr});return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{y.setWithTimestamp(h,{tags:e,tagMappings:t}),n(!0)})})}catch(e){d(`Error during getting glimr data: ${e}`)}else d("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})});
package/glimr/es/index.js CHANGED
@@ -1 +1 @@
1
- import{g as e}from"./glimr-sdk-B7FY2YN8.js";function t(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}var n,r;"function"==typeof SuppressedError&&SuppressedError;var i=e(function(){if(r)return n;r=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 i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map(function(e){return i(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 r={};return n.isMergeableObject(e)&&a(e).forEach(function(t){r[t]=i(e[t],n)}),a(t).forEach(function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))}),r}function d(t,n,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=i;var a=Array.isArray(n);return a===Array.isArray(t)?a?r.arrayMerge(t,n,r):l(t,n,r):i(n,r)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},n=d}());const o=["placements","takeover","refreshConfig","editory"],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)},d=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=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."),r||l("placements is required."),(null==i?void 0:i.defaultThreshold)||l("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=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===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&l(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)};class c{set(e){d(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 o){const r=e[n];void 0!==r&&(t[n]=r)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=i(c.DEFAULT_SITE_HANDLERS,e)}}c.DEFAULT_SITE_HANDLERS={siteEvents:a,initNativeAd:()=>{}};const u=new c;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,r=g)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=g)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return s("Error with parsing localStorage data"),null}}}})(),v="glimrTags",p=["glwe_","glwet_"],h={geofenceTags:[],geoTags:[],weatherTags:[]},b=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 r=!1;const i=e=>{r||(s("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{s("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{s("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);s("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),m="no",y="se",w="cmp:loaded";let C="undefined"!=typeof window?window._tcf_:void 0,T=!1;const O=(e,n,r)=>{const i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,a=(l="bypass_tcf",new URLSearchParams(window.location.search).get(l));var l;const d=()=>{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))(i,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..."),r&&clearTimeout(r),window._tcf_?(C=window._tcf_,e(C)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(w,n),T=!0,t(new Error("Timeout waiting for CMP to load"))},o);s("Listening for CMP loaded event..."),document.addEventListener(w,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,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)&&r===y,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===m;if(t||n)return s("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield b(e);if(!(null==e?void 0:e.enabled))return!0;const i=d();return null!==i?i: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))},r=setTimeout(()=>{s("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);C.onTcfReady(()=>{s("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),C.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},S=(...e)=>t(void 0,[...e],void 0,function*(e=u.get()){const{tcf:n,pageContext:{isMobileApp:r,countryCode:i}={}}=e;if(null==n?void 0:n.schibstedConsentToPayEnabled){const e=yield((e,n,r,...i)=>t(void 0,[e,n,r,...i],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return s(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!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 ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=O(e,0,n);return(yield i())?(s(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(s(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(n,r,i,"glimr");return e}const{getConsentAsync:o}=O(n,0,i);return yield o()}),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(r=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),r))])}));var r;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",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},_=e=>p.some(t=>e.startsWith(t)),P=e=>e.startsWith("glgc_"),j=e=>e.startsWith("glci_"),M=e=>!_(e)&&!P(e),N=(e,n)=>t(void 0,void 0,void 0,function*(){const{addPublisherToGeo:t}=n||{},{glimr:r,pageContext:{countryCode:i}={}}=e,o=yield S(e);if(!(null==r?void 0:r.enabled)||!o)return s("No consent for getting glimr tags."),{};const a=(e=>e===m?"no-sno":"se-generic")(i),l=x(e,Boolean(t));return{[`${a}-geo`]:l.geoTags,[`${a}-weather`]:l.weatherTags,[`${a}-geofence`]:l.geofenceTags}}),x=(e,t)=>{const n=$();if(!n)return h;const r=((e=[])=>e.filter(_))(n),i=((e=[])=>e.filter(P))(n),o=((e=[],t,n)=>{var r;const i=e.filter(M);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=E[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:o,geofenceTags:i,weatherTags:r}},$=()=>{const e=f.getByTimestamp(v);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},F=()=>{var e;return((e=[])=>e.filter(j))(null!==(e=$())&&void 0!==e?e:[])};export{F as getCityTags,N as getGlimrKeywords,A as updateGlimr};
1
+ import{g as e}from"./glimr-sdk-B7FY2YN8.js";function n(e,n,t,r){return new(t||(t=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,s)}l((r=r.apply(e,n||[])).next())})}var t,r;"function"==typeof SuppressedError&&SuppressedError;var o=e(function(){if(r)return t;r=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,n){return!1!==n.clone&&n.isMergeableObject(e)?d((t=e,Array.isArray(t)?[]:{}),e,n):e;var t}function i(e,n,t){return e.concat(n).map(function(e){return o(e,t)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return Object.propertyIsEnumerable.call(e,n)}):[]}(e))}function s(e,n){try{return n in e}catch(e){return!1}}function l(e,n,t){var r={};return t.isMergeableObject(e)&&a(e).forEach(function(n){r[n]=o(e[n],t)}),a(n).forEach(function(i){(function(e,n){return s(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))})(e,i)||(s(e,i)&&t.isMergeableObject(n[i])?r[i]=function(e,n){if(!n.customMerge)return d;var t=n.customMerge(e);return"function"==typeof t?t:d}(i,t)(e[i],n[i],t):r[i]=o(n[i],t))}),r}function d(n,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(n)?a?r.arrayMerge(n,t,r):l(n,t,r):o(t,r)}return d.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return d(e,t,n)},{})},t=d}());const i={arrayMerge:(e,n)=>n,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,n)=>o(e,n,i),s={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,n)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},l=(e,n)=>{const t="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(n?console.log(t,e,n):console.log(t,e))},d=(e,n)=>{console.warn("[Advertory WARN]: ",e)},c=e=>{(e=>{const{pageContext:n,pageOptions:t,placements:r,appearanceConfig:o}=null!=e?e:{};(null==n?void 0:n.publisher)||d("pageContext.publisher is required."),(null==n?void 0:n.countryCode)||d("pageContext.countryCode is required."),(null==n?void 0:n.pageType)||d("pageContext.pageType is required."),(null==n?void 0:n.deviceType)||d("pageContext.deviceType is required."),t||d("pageOptions is required."),r||d("placements is required."),(null==o?void 0:o.defaultThreshold)||d("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var n,t,r,o;const i=e.pageSectionsSelectors,a=[{flag:!!(null===(n=e.takeover)||void 0===n?void 0:n.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(t=e.sponsorstripe)||void 0===t?void 0:t.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:n,featureName:t}of a)e&&!(null==i?void 0:i[n])&&d(`pageSectionsSelectors.${n} is required when ${t} is enabled.`)})(e)},u=["placements","takeover","refreshConfig","editory"],g=(e,n)=>Object.assign(Object.assign({},e),n),f={editory:(e,n)=>{var t;return a(null!==(t=e)&&void 0!==t?t:{},n)},pageContext:g,pageOptions:g,tcf:g};class v{set(e){c(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,n)=>{const t={};for(const e of u){const r=n[e];void 0===r||e in f||(t[e]=r)}Object.assign(e,t);const r=e;for(const e of Object.keys(f))Object.hasOwn(n,e)&&void 0!==n[e]&&(r[e]=f[e](r[e],n[e]))})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=a(v.DEFAULT_SITE_HANDLERS,e)}}v.DEFAULT_SITE_HANDLERS={siteEvents:s,initNativeAd:()=>{}};const p=new v;p.modifyConfigProperties.bind(p);const m=864e5,b=(()=>{const e=e=>{const n=window.localStorage.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch(e){return l("Error with parsing localStorage data"),null}},n=(e,n)=>{window.localStorage.setItem(e,JSON.stringify(n))};return{get:e,set:n,setWithTimestamp:(e,t,r=m)=>{const o={data:t,expirationTime:(new Date).getTime()+r};n(e,JSON.stringify(o))},getByTimestamp:(n,t=m)=>{const r=e(n);if(!r)return null;if(!t)return r;try{const{expirationTime:e,data:n}=JSON.parse(r);return(new Date).getTime()<=e?n:null}catch(e){return l("Error with parsing localStorage data"),null}}}})(),h="glimrTags",y=["glwe_","glwet_"],w={geofenceTags:[],geoTags:[],weatherTags:[]},C=e=>new Promise(n=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void n(!1);const t=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const n=Number(e);return l("Advertising permission value obtained synchronously: ",e),Boolean(n)})();if(null!==t)return void n(t);let r=!1;const o=e=>{r||(l("Resolving advertising permission value obtained"),r=!0,n(e))},i=setTimeout(()=>{l("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{l("On Tcf Ready called, waiting for permission"),clearTimeout(i)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(i);const n=Number(e);l("Advertising permission value obtained asynchronously: ",e),o(Boolean(n))})}),T="no",S="se",A="cmp:loaded";let O="undefined"!=typeof window?window._tcf_:void 0,E=!1;const _=(e,t,r)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,a=(s="bypass_tcf",new URLSearchParams(window.location.search).get(s));var s;const d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,n)=>e?!!n&&(l("TCF bypass param detected, returning consent: true"),!0):(l("TCF is not enabled, returning consent: true"),!0))(o,a))return!0;if(E)return null;if(!O)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const n=O.getConsentedToAllSync();return l(`TCF consented to all is: ${n}`),O.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,n)=>{if(l("Getting TCF consent manager..."),window._tcf_)return l("TCF consent manager is already available"),O=window._tcf_,void e(O);l("TCF consent manager is not available");const t=()=>{l("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(O=window._tcf_,e(O)):n(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(A,t),E=!0,n(new Error("Timeout waiting for CMP to load"))},i);l("Listening for CMP loaded event..."),document.addEventListener(A,t,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===S,t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===T;if(n||t)return l("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield C(e);if(!(null==e?void 0:e.enabled))return!0;const o=d();return null!==o?o:yield new Promise((e,n)=>{try{if(!O)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let n=!1;const t=t=>{n||(n=!0,e(t))},r=setTimeout(()=>{l("TCF isConsentedToAll timed out, resolving with false"),t(!1)},i);O.onTcfReady(()=>{l("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),O.isConsentedToAll(n=>{clearTimeout(r),e(n)})}catch(e){n(e)}})})}},P=(...e)=>n(void 0,[...e],void 0,function*(e=p.get()){const{tcf:t,pageContext:{isMobileApp:r,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){const e=yield((e,t,r,...o)=>n(void 0,[e,t,r,...o],void 0,function*(e,n,t,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return l(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=_(e,0,t);return(yield o())?(l(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(l(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(t,r,o,"glimr");return e}const{getConsentAsync:i}=_(t,0,o);return yield i()}),M=()=>n(void 0,void 0,void 0,function*(){const{glimr:e}=p.get();if(!(yield P())||!(null==e?void 0:e.enabled))return void l("No consent for glimr data fetching.");const t=yield(r=500,n(void 0,void 0,void 0,function*(){return yield Promise.race([n(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),r))])}));var r;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{b.setWithTimestamp(h,{tags:e,tagMappings:t}),n(!0)})})}catch(e){l(`Error during getting glimr data: ${e}`)}else l("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),j={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},N=e=>y.some(n=>e.startsWith(n)),x=e=>e.startsWith("glgc_"),$=e=>e.startsWith("glci_"),F=e=>!N(e)&&!x(e),R=(e,t)=>n(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:o}={}}=e,i=yield P(e);if(!(null==r?void 0:r.enabled)||!i)return l("No consent for getting glimr tags."),{};const a=(e=>e===T?"no-sno":"se-generic")(o),s=q(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),q=(e,n)=>{const t=L();if(!t)return w;const r=((e=[])=>e.filter(N))(t),o=((e=[])=>e.filter(x))(t),i=((e=[],n,t)=>{var r;const o=e.filter(F);if(t&&n){const{publisher:e}=null!==(r=n.pageContext)&&void 0!==r?r:{},t=j[e]||e;o.push(t)}return o})(t,e,n);return{geoTags:i,geofenceTags:o,weatherTags:r}},L=()=>{const e=b.getByTimestamp(h);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},k=()=>{var e;return((e=[])=>e.filter($))(null!==(e=L())&&void 0!==e?e:[])};export{k as getCityTags,R as getGlimrKeywords,M as updateGlimr};
@@ -459,6 +459,12 @@ interface PageContext {
459
459
  deviceType: DeviceType;
460
460
  isMobileApp?: boolean;
461
461
  }
462
+ type EditoryPageContext = Partial<PageContext> & Required<Pick<PageContext, 'deviceType'>>;
463
+ type EditoryPageOptions = Partial<AstPageOptions> & Required<Pick<AstPageOptions, 'keywords'>>;
464
+ type EditorySiteConfig = Partial<Omit<SiteConfig, 'pageContext' | 'pageOptions'>> & {
465
+ pageContext: EditoryPageContext;
466
+ pageOptions: EditoryPageOptions;
467
+ };
462
468
  interface PageSetup {
463
469
  pageOptions?: PageSetupPageOptions;
464
470
  tag?: PageSetupTag;
@@ -649,6 +655,7 @@ interface FullscreenScrollOptions {
649
655
  overlayStyles?: OverlayStyles;
650
656
  cogwheelPosition?: CogwheelPosition;
651
657
  iosSafeAreaTopFix?: string;
658
+ annonsLabel?: string;
652
659
  }
653
660
  interface FullscreenScrollConfig {
654
661
  enabled: boolean;
@@ -659,14 +666,26 @@ interface WelcomePageConfig {
659
666
  buttonLabel?: string;
660
667
  showCloseButton?: boolean;
661
668
  }
662
- interface Logotype {
669
+ interface LogotypeVariant {
663
670
  url: string;
664
671
  alt: string;
665
672
  }
666
- interface ThemeColors {
673
+ interface Logotype extends LogotypeVariant {
674
+ darkMode?: {
675
+ url?: string;
676
+ alt?: string;
677
+ };
678
+ }
679
+ interface ThemeColorsVariant {
667
680
  backgroundColor: string;
668
681
  color: string;
669
682
  }
683
+ interface ThemeColors extends ThemeColorsVariant {
684
+ darkMode?: {
685
+ backgroundColor?: string;
686
+ color?: string;
687
+ };
688
+ }
670
689
  interface SplashConfig {
671
690
  themeColors?: ThemeColors;
672
691
  buttonLabel: string;
@@ -739,6 +758,7 @@ interface RightColumnSplitConfig {
739
758
  interface EditableConfigurationConfig {
740
759
  enabled?: boolean;
741
760
  pageTypeToFetch?: string;
761
+ section?: string;
742
762
  }
743
763
  interface AdNativeBuilderConfig {
744
764
  enabled?: boolean;
@@ -847,7 +867,7 @@ interface VideoStream {
847
867
  }
848
868
 
849
869
  interface Advertory {
850
- init: (config: SiteConfig) => Promise<void>;
870
+ init: (config: SiteConfig | EditorySiteConfig) => Promise<void>;
851
871
  update: (configToUpdate?: Partial<SiteConfig>, options?: UpdateAdvertoryConfig) => Promise<Array<Placement>>;
852
872
  getVideoPPIDs: (country: Country) => Promise<string>;
853
873
  createInitNativeAd: (config: CreateInitNativeAdConfig) => InitNativeAd;