@schibsted/advertory 3.17.3 → 3.18.0-no-issue.1

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 (515) hide show
  1. package/ad-native/cjs/index.d.ts +6 -1
  2. package/ad-native/cjs/index.js +1 -1
  3. package/ad-native/es/index.d.ts +6 -1
  4. package/ad-native/es/index.js +1 -1
  5. package/aftenposten/cjs/index.d.ts +25 -4
  6. package/aftenposten/cjs/index.js +1 -1
  7. package/aftenposten/es/_auto-entry_aftenposten-BWUl_s4k.js +1 -0
  8. package/aftenposten/es/{events-BakZyPiF.js → events-CZJW-RDX.js} +1 -1
  9. package/aftenposten/es/identity-facade-DxRuUHtC.js +1 -0
  10. package/aftenposten/es/{index-DmAryKai.js → index-BbLJDzU9.js} +1 -1
  11. package/aftenposten/es/{index-Y61-K0-j.js → index-BqBcmig8.js} +1 -1
  12. package/aftenposten/es/index-CZPGZviN.js +1 -0
  13. package/aftenposten/es/index-Cpfp7go_.js +1 -0
  14. package/aftenposten/es/{index-DE2eFbE4.js → index-DNZe4EyH.js} +1 -1
  15. package/aftenposten/es/{index-Ci5Fq3pY.js → index-DdDdPtI1.js} +1 -1
  16. package/aftenposten/es/{index-BqtiIE9j.js → index-P_-01_ir.js} +1 -1
  17. package/aftenposten/es/{index-B0weyrUI.js → index-U4THMtW5.js} +1 -1
  18. package/aftenposten/es/index.d.ts +25 -4
  19. package/aftenposten/es/index.js +1 -1
  20. package/aftenposten/es/{styles-BP8RnxXT.js → styles-B0I8pfXO.js} +1 -1
  21. package/aftenposten/es/{styles-pDM1TuiG.js → styles-BErqrDLT.js} +1 -1
  22. package/aftenposten/es/{styles-B3DQSVEX.js → styles-BL6j2JsH.js} +1 -1
  23. package/aftenposten/es/{styles-Dc-23vIm.js → styles-BqLOGjcB.js} +1 -1
  24. package/aftenposten/es/{styles-Cnb69FPt.js → styles-Bz4HZdkm.js} +1 -1
  25. package/aftenposten/es/{styles-DXaafc97.js → styles-C5_9_i7v.js} +1 -1
  26. package/aftenposten/es/{styles-w7N9sIkQ.js → styles-CKu2Bs1_.js} +1 -1
  27. package/aftenposten/es/{styles-DbkR_81Z.js → styles-DVGIUlpj.js} +1 -1
  28. package/aftenposten/es/{styles-BMgTMPVA.js → styles-hPr8HcnU.js} +1 -1
  29. package/aftenposten/es/{styles-fSCaFYq3.js → styles-jqkq4APO.js} +1 -1
  30. package/aftenposten/es/{styles-DCGX00AR.js → styles-ufEgf-Hq.js} +1 -1
  31. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-_z7Q5Q7B.js +1 -0
  32. package/aftenpostenv2/es/{events-vFxFcBFY.js → events-Ckp13LaN.js} +1 -1
  33. package/aftenpostenv2/es/identity-facade-B65CiuOZ.js +1 -0
  34. package/aftenpostenv2/es/index-B6p9Vrp9.js +1 -0
  35. package/aftenpostenv2/es/{index-BORfNCfl.js → index-BbgvELNh.js} +1 -1
  36. package/aftenpostenv2/es/{index-BzIPIQlR.js → index-BoUbnbEA.js} +1 -1
  37. package/aftenpostenv2/es/{index-bu82MskF.js → index-CJnEhN8f.js} +1 -1
  38. package/aftenpostenv2/es/index-CcQkQ71N.js +1 -0
  39. package/aftenpostenv2/es/{index-BNsm3sza.js → index-CrvRuKDj.js} +1 -1
  40. package/aftenpostenv2/es/{index-CE3zyO-s.js → index-CvqzXHiz.js} +1 -1
  41. package/aftenpostenv2/es/{index-C6o6H3rD.js → index-D3-ANsZW.js} +1 -1
  42. package/aftenpostenv2/es/index.d.ts +25 -4
  43. package/aftenpostenv2/es/index.js +1 -1
  44. package/aftenpostenv2/es/{styles-CrKxUXak.js → styles-BTYRHLRq.js} +1 -1
  45. package/aftenpostenv2/es/{styles-CfDUxRlT.js → styles-BggaavQu.js} +1 -1
  46. package/aftenpostenv2/es/{styles-DSZABaqe.js → styles-CAquGrAo.js} +1 -1
  47. package/aftenpostenv2/es/{styles-C3tA1qVG.js → styles-CJHoS2U6.js} +1 -1
  48. package/aftenpostenv2/es/{styles-C9KcvIrm.js → styles-Cn00TiUa.js} +1 -1
  49. package/aftenpostenv2/es/{styles-Bv3fC79e.js → styles-CqDqFvay.js} +1 -1
  50. package/aftenpostenv2/es/{styles-DGYGS77o.js → styles-CwZd3grk.js} +1 -1
  51. package/aftenpostenv2/es/{styles-Bo1Osfh2.js → styles-CwjH-wAn.js} +1 -1
  52. package/aftenpostenv2/es/{styles-CpTRDnEr.js → styles-DbIo_xoe.js} +1 -1
  53. package/aftenpostenv2/es/{styles-D9mUlhzN.js → styles-Dj_EN_Hw.js} +1 -1
  54. package/aftenpostenv2/es/{styles-Dod5Pact.js → styles-V0ekT45h.js} +1 -1
  55. package/aftonbladet/cjs/index.d.ts +25 -4
  56. package/aftonbladet/cjs/index.js +1 -1
  57. package/aftonbladet/es/_auto-entry_aftonbladet-CdiGgrtm.js +1 -0
  58. package/aftonbladet/es/{events-CllJmzBm.js → events-474Sp70g.js} +1 -1
  59. package/aftonbladet/es/identity-facade-Dj5-DopI.js +1 -0
  60. package/aftonbladet/es/{index-DSWRH1Jg.js → index--6Ve3pvg.js} +1 -1
  61. package/aftonbladet/es/{index-CQZ4fqal.js → index-BSmdGy__.js} +1 -1
  62. package/aftonbladet/es/index-CCXMTLPZ.js +1 -0
  63. package/aftonbladet/es/{index-DxCSaps1.js → index-D6aO0uq-.js} +1 -1
  64. package/aftonbladet/es/index-Df3dJExx.js +1 -0
  65. package/aftonbladet/es/{index-BMrgDbpw.js → index-L_5KP2Dl.js} +1 -1
  66. package/aftonbladet/es/{index-BtWKibaA.js → index-Lk7dCEOo.js} +1 -1
  67. package/aftonbladet/es/{index-CNg6LTKO.js → index-WjtO0BpT.js} +1 -1
  68. package/aftonbladet/es/index.d.ts +25 -4
  69. package/aftonbladet/es/index.js +1 -1
  70. package/aftonbladet/es/{styles-D9Tu4mQ5.js → styles-BUsuC6Vt.js} +1 -1
  71. package/aftonbladet/es/{styles-w-g-y6lI.js → styles-BjINrUVV.js} +1 -1
  72. package/aftonbladet/es/{styles-CYGn0uwQ.js → styles-CvfT_zUc.js} +1 -1
  73. package/aftonbladet/es/{styles-DSuXLA-G.js → styles-Du2flY4N.js} +1 -1
  74. package/aftonbladet/es/{styles-Ds_pdjCT.js → styles-FB9dlHgS.js} +1 -1
  75. package/aftonbladet/es/{styles-DajJqIJ6.js → styles-JRGM57lr.js} +1 -1
  76. package/aftonbladet/es/{styles-BaT7xTNZ.js → styles-_yHnhosG.js} +1 -1
  77. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-BjaS1StL.js +1 -0
  78. package/aftonbladetv2/es/{events-BTQYlE4z.js → events-lxftMUS5.js} +1 -1
  79. package/aftonbladetv2/es/identity-facade--kUhyv2K.js +1 -0
  80. package/aftonbladetv2/es/index-B87m1_QT.js +1 -0
  81. package/aftonbladetv2/es/{index-DLKbIJ-6.js → index-CqGf0TtK.js} +1 -1
  82. package/aftonbladetv2/es/{index-C5NPR1-m.js → index-D2hQqkfx.js} +1 -1
  83. package/aftonbladetv2/es/{index-BVz8_dGm.js → index-DVAxLpvT.js} +1 -1
  84. package/aftonbladetv2/es/{index-DGryPq5p.js → index-Ddx_llgj.js} +1 -1
  85. package/aftonbladetv2/es/{index-DKIljxtC.js → index-OOy5kNjB.js} +1 -1
  86. package/aftonbladetv2/es/{index-CI4mHGgl.js → index-dCwA_AlF.js} +1 -1
  87. package/aftonbladetv2/es/index-zGBUVKso.js +1 -0
  88. package/aftonbladetv2/es/index.d.ts +25 -4
  89. package/aftonbladetv2/es/index.js +1 -1
  90. package/aftonbladetv2/es/{styles-BuDgf6Qh.js → styles-BMcAuvPo.js} +1 -1
  91. package/aftonbladetv2/es/{styles-Dm48yxHj.js → styles-CmkcQw05.js} +1 -1
  92. package/aftonbladetv2/es/{styles-CtZYGlVa.js → styles-CsP5z0lL.js} +1 -1
  93. package/aftonbladetv2/es/{styles-LIJqt1Fs.js → styles-D610lhpC.js} +1 -1
  94. package/aftonbladetv2/es/{styles-BHjBufYm.js → styles-DALNcZV7.js} +1 -1
  95. package/aftonbladetv2/es/{styles-DNvKyAG2.js → styles-DX67sWfR.js} +1 -1
  96. package/aftonbladetv2/es/{styles-BhGxCZKJ.js → styles-p_eawZTm.js} +1 -1
  97. package/brandmetrics/cjs/index.js +1 -1
  98. package/brandmetrics/es/index.js +1 -1
  99. package/bt/cjs/index.d.ts +25 -4
  100. package/bt/cjs/index.js +1 -1
  101. package/bt/es/_auto-entry_bt-q3esUuvn.js +1 -0
  102. package/bt/es/{events-QdGrCsME.js → events-BMecocbf.js} +1 -1
  103. package/bt/es/identity-facade-Br6nKhQr.js +1 -0
  104. package/bt/es/index-3ub03vbq.js +1 -0
  105. package/bt/es/{index-CWyqinTF.js → index-7HVaEndb.js} +1 -1
  106. package/bt/es/{index-DE5oE3LU.js → index-Ctvv5Tkb.js} +1 -1
  107. package/bt/es/{index-BNwzTf_4.js → index-Czd1zTYi.js} +1 -1
  108. package/{sa/es/index-sAZnIVZD.js → bt/es/index-DX-0jkcE.js} +1 -1
  109. package/bt/es/index-Hs9PnSDf.js +1 -0
  110. package/bt/es/{index-BPq3-G1u.js → index-PLNExfvm.js} +1 -1
  111. package/bt/es/{index-CbsaLJJs.js → index-tCd5A2I_.js} +1 -1
  112. package/bt/es/index.d.ts +25 -4
  113. package/bt/es/index.js +1 -1
  114. package/bt/es/{styles-C-HKDal6.js → styles-AGJSGeYa.js} +1 -1
  115. package/bt/es/{styles-B_CfTWpC.js → styles-AvVEXQua.js} +1 -1
  116. package/bt/es/{styles-Dz_mjOky.js → styles-B11xbsFG.js} +1 -1
  117. package/{sa/es/styles-BGNGJdjv.js → bt/es/styles-BHc1ekXs.js} +1 -1
  118. package/bt/es/{styles-K_Cy-GX8.js → styles-BlELjh5y.js} +1 -1
  119. package/bt/es/{styles-DUX9_U_G.js → styles-C5j3Ca5D.js} +1 -1
  120. package/bt/es/{styles-DpUy4TjI.js → styles-CTagi6ej.js} +1 -1
  121. package/{vg/es/styles-DO48QaHN.js → bt/es/styles-CpjyQ2Qx.js} +1 -1
  122. package/bt/es/{styles-D0rpulrE.js → styles-DRu66zB_.js} +1 -1
  123. package/bt/es/{styles-CGeziON4.js → styles-DUHEo6ot.js} +1 -1
  124. package/btv2/es/_auto-entry_btv2-blOPzoM6.js +1 -0
  125. package/{sav2/es/events--V9H3X-z.js → btv2/es/events-BVyVuzSr.js} +1 -1
  126. package/btv2/es/identity-facade-BSa_Bx7n.js +1 -0
  127. package/btv2/es/index-BFo8DNdW.js +1 -0
  128. package/btv2/es/index-Ch8APzv_.js +1 -0
  129. package/btv2/es/{index-DQCYe43A.js → index-CvWMp-BV.js} +1 -1
  130. package/{omni/es/index-C3Q814r2.js → btv2/es/index-DQrHqEFO.js} +1 -1
  131. package/{sav2/es/index-D4Hxkads.js → btv2/es/index-DoRVJw1R.js} +1 -1
  132. package/btv2/es/{index-p-Wu9qmN.js → index-Du5SjgQy.js} +1 -1
  133. package/btv2/es/{index-_1WEzNOh.js → index-Zfm3nFF6.js} +1 -1
  134. package/btv2/es/{index-4ysd4A7K.js → index-io0Va-0H.js} +1 -1
  135. package/btv2/es/index.d.ts +25 -4
  136. package/btv2/es/index.js +1 -1
  137. package/{sav2/es/styles-DMF9Z1dt.js → btv2/es/styles-CBsGwKkK.js} +1 -1
  138. package/{sav2/es/styles-WFP5Fozc.js → btv2/es/styles-CJiDW3i6.js} +1 -1
  139. package/btv2/es/{styles-DyFP9zsK.js → styles-Coikry5X.js} +1 -1
  140. package/{sav2/es/styles-jXzGh7gC.js → btv2/es/styles-CvXP7uzP.js} +1 -1
  141. package/{vgv2/es/styles-DtKJ-J7F.js → btv2/es/styles-DVoPhltZ.js} +1 -1
  142. package/{sav2/es/styles-CpXnuTL4.js → btv2/es/styles-Djdj2L-O.js} +1 -1
  143. package/btv2/es/{styles-Bc9_7msJ.js → styles-DsUBiBF_.js} +1 -1
  144. package/btv2/es/{styles-BwgZ6h4w.js → styles-Zo6hcV5N.js} +1 -1
  145. package/btv2/es/{styles-B8bkA3_5.js → styles-wJYWWh3Q.js} +1 -1
  146. package/btv2/styles.css +1 -1
  147. package/common/cjs/index.js +1 -1
  148. package/common/es/index.js +1 -1
  149. package/e24/es/_auto-entry_e24-WZSQP5dL.js +1 -0
  150. package/e24/es/{events-CtniS6m3.js → events-hZPS0msk.js} +1 -1
  151. package/e24/es/{index-4Zm0Grmh.js → index-BHgagogK.js} +1 -1
  152. package/e24/es/index-BkYYzMk7.js +1 -0
  153. package/e24/es/{index-CfS9YWLe.js → index-CPifEKMW.js} +1 -1
  154. package/e24/es/index-CY0ROjqG.js +1 -0
  155. package/e24/es/{index-BM2r1wLq.js → index-CujyeBUu.js} +1 -1
  156. package/e24/es/{index-CIlYOp5N.js → index-DXUt_FuU.js} +1 -1
  157. package/e24/es/{index-Ci-qNYB_.js → index-KaIB2lL5.js} +1 -1
  158. package/e24/es/{index-DKfGdWTL.js → index-cYEvZD9f.js} +1 -1
  159. package/e24/es/index.d.ts +25 -4
  160. package/e24/es/index.js +1 -1
  161. package/{tv4/es/styles-BAxYdJA1.js → e24/es/styles-B4YjE2W_.js} +1 -1
  162. package/e24/es/{styles-D7w8P_5v.js → styles-B7OreVfA.js} +1 -1
  163. package/e24/es/{styles-DcGRyDQP.js → styles-BWRO9wIK.js} +1 -1
  164. package/e24/es/{styles-CYk14rdS.js → styles-BX_zCrm7.js} +1 -1
  165. package/e24/es/{styles-C-oO0oDe.js → styles-BZG7ExwH.js} +1 -1
  166. package/e24/es/{styles-DnRAFVxv.js → styles-BnkKrrsi.js} +1 -1
  167. package/e24/es/{styles-CezDMrIZ.js → styles-Bpg3mYrx.js} +1 -1
  168. package/e24/es/{styles-BHKszP6X.js → styles-Bx-9NZab.js} +1 -1
  169. package/e24/es/{styles-CzB5N6Nl.js → styles-CLxhxpfa.js} +1 -1
  170. package/e24/es/{styles-SNZbYMgv.js → styles-DVS49mr7.js} +1 -1
  171. package/e24/es/{styles-DmMYkAFs.js → styles-DsdHFqkp.js} +1 -1
  172. package/e24/es/{styles-DzEznh_S.js → styles-lFgR0zqz.js} +1 -1
  173. package/editory/cjs/index.d.ts +6 -1
  174. package/editory/es/index.d.ts +6 -1
  175. package/fotbollskanalen/cjs/index.d.ts +25 -4
  176. package/fotbollskanalen/cjs/index.js +1 -1
  177. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-xRHg3rRX.js +1 -0
  178. package/fotbollskanalen/es/{events-BJ6mPaCc.js → events-D8taGH8W.js} +1 -1
  179. package/fotbollskanalen/es/identity-facade-DFYD733z.js +1 -0
  180. package/fotbollskanalen/es/{index-Cg7_oqDR.js → index-B3sM6a_K.js} +1 -1
  181. package/fotbollskanalen/es/index-BX6P9-vA.js +1 -0
  182. package/fotbollskanalen/es/{index-hYl9FgdN.js → index-C6Wq_SqS.js} +1 -1
  183. package/fotbollskanalen/es/{index-K_6o99m1.js → index-CevcP1bg.js} +1 -1
  184. package/fotbollskanalen/es/index-Ci3WSVHM.js +1 -0
  185. package/fotbollskanalen/es/{index-DCPogE5b.js → index-DVbjL5N8.js} +1 -1
  186. package/fotbollskanalen/es/{index-YD7CRD4F.js → index-DW7Yc1HM.js} +1 -1
  187. package/fotbollskanalen/es/{index-CcCWGFRI.js → index-nJVSD3G0.js} +1 -1
  188. package/fotbollskanalen/es/index.d.ts +25 -4
  189. package/fotbollskanalen/es/index.js +1 -1
  190. package/fotbollskanalen/es/{styles-BDfacPqd.js → styles-CRimium2.js} +1 -1
  191. package/fotbollskanalen/es/{styles-2f9vh7tO.js → styles-DOQn9ta7.js} +1 -1
  192. package/fotbollskanalen/es/{styles-D3eqs7xM.js → styles-Di68mZZR.js} +1 -1
  193. package/fotbollskanalen/es/{styles-Cze8UsvM.js → styles-dgieQbLu.js} +1 -1
  194. package/fotbollskanalen/es/{styles-BsW1z6U1.js → styles-hzDToQGi.js} +1 -1
  195. package/glimr/cjs/index.js +1 -1
  196. package/glimr/es/index.js +1 -1
  197. package/godt/cjs/index.d.ts +25 -4
  198. package/godt/cjs/index.js +1 -1
  199. package/kilkaya/cjs/index.d.ts +6 -1
  200. package/kilkaya/cjs/index.js +1 -1
  201. package/kilkaya/es/index.d.ts +6 -1
  202. package/kilkaya/es/index.js +1 -1
  203. package/klart/cjs/index.d.ts +25 -4
  204. package/klart/cjs/index.js +1 -1
  205. package/koket/cjs/index.d.ts +25 -4
  206. package/koket/cjs/index.js +1 -1
  207. package/koket/es/_auto-entry_koket-DnbOiCOS.js +1 -0
  208. package/koket/es/{events-CJgWZC6E.js → events-BJ9f8qfO.js} +1 -1
  209. package/koket/es/identity-facade-GrkXxjiN.js +1 -0
  210. package/koket/es/{index-Bc3NO9Mw.js → index-CWt1eVCp.js} +1 -1
  211. package/koket/es/{index-B4K9iUVT.js → index-CxwBag2W.js} +1 -1
  212. package/koket/es/{index-C2olyB1x.js → index-D-278DkW.js} +1 -1
  213. package/koket/es/{index-FpW7qdqo.js → index-Dj7SPjju.js} +1 -1
  214. package/koket/es/index-DmsaPddA.js +1 -0
  215. package/koket/es/index-DrBOcrYa.js +1 -0
  216. package/koket/es/{index-DOXR-6vM.js → index-DuMVecPG.js} +1 -1
  217. package/koket/es/{index-BO7-UQcf.js → index-vjv1ARfD.js} +1 -1
  218. package/koket/es/index.d.ts +25 -4
  219. package/koket/es/index.js +1 -1
  220. package/{svdv2/es/styles-CzsWVNYE.js → koket/es/styles-BXHbuhtT.js} +1 -1
  221. package/koket/es/{styles-BwESZmQi.js → styles-BYWxTuT6.js} +1 -1
  222. package/koket/es/{styles-BBI31SR8.js → styles-BjMXX0ZS.js} +1 -1
  223. package/koket/es/{styles-BRxC9raX.js → styles-CFyCcjtk.js} +1 -1
  224. package/{svdv2/es/styles-CGWD917e.js → koket/es/styles-e1pKoZgC.js} +1 -1
  225. package/minmote/cjs/index.d.ts +25 -4
  226. package/minmote/cjs/index.js +1 -1
  227. package/mtv/es/_auto-entry_mtv-CWjDKMS2.js +1 -0
  228. package/mtv/es/identity-facade-WjtiSyIt.js +1 -0
  229. package/mtv/es/index-BLVNluUr.js +1 -0
  230. package/mtv/es/index-BUag4wG0.js +1 -0
  231. package/mtv/es/{index-B3fi7Kjz.js → index-CHtdIWUv.js} +1 -1
  232. package/mtv/es/index-ylKS-Wrs.js +1 -0
  233. package/mtv/es/index.d.ts +27 -6
  234. package/mtv/es/index.js +1 -1
  235. package/{svd/es/styles-Ili64SUo.js → mtv/es/styles-BUywiU9N.js} +1 -1
  236. package/omni/es/_auto-entry_omni-BKRA8dcO.js +1 -0
  237. package/omni/es/{events-D8oXnK9A.js → events-BOtlUVC6.js} +1 -1
  238. package/omni/es/identity-facade-Bp_iQ3hy.js +1 -0
  239. package/omni/es/index-Byabm41K.js +1 -0
  240. package/omni/es/index-BzY5nq8N.js +1 -0
  241. package/{btv2/es/index-BxQ9QWgL.js → omni/es/index-CB3WSxn8.js} +1 -1
  242. package/omni/es/{index-CQHXVyOc.js → index-DCzyefss.js} +1 -1
  243. package/omni/es/{index-B1CsqT1v.js → index-DkpJ_ghf.js} +1 -1
  244. package/omni/es/{index-Do_Anxwk.js → index-Dn_u9hBY.js} +1 -1
  245. package/omni/es/{index-DoI3bFIC.js → index-Jvlz6JAw.js} +1 -1
  246. package/omni/es/{index-oYzDmTix.js → index-hpYxtt8_.js} +1 -1
  247. package/omni/es/index.d.ts +25 -4
  248. package/omni/es/index.js +1 -1
  249. package/omni/es/{styles-QXlcLvKz.js → styles-B395Ktll.js} +1 -1
  250. package/omni/es/{styles-DmYIWMWw.js → styles-BQCPia9w.js} +1 -1
  251. package/omni/es/{styles-Dh_pACB9.js → styles-Kya-6hze.js} +1 -1
  252. package/package.json +1 -1
  253. package/pent/cjs/index.d.ts +25 -4
  254. package/pent/cjs/index.js +1 -1
  255. package/pulse/cjs/index.d.ts +8 -3
  256. package/pulse/cjs/index.js +1 -1
  257. package/pulse/es/index.d.ts +8 -3
  258. package/pulse/es/index.js +1 -1
  259. package/sa/cjs/index.d.ts +25 -4
  260. package/sa/cjs/index.js +1 -1
  261. package/sa/es/_auto-entry_sa-DYNCUaO9.js +1 -0
  262. package/sa/es/{events-DJlxmoyQ.js → events-B762grJL.js} +1 -1
  263. package/sa/es/identity-facade-BHn6rIVT.js +1 -0
  264. package/sa/es/index-BE9AO2hY.js +1 -0
  265. package/sa/es/{index-D-jh7EcB.js → index-BarfqnSX.js} +1 -1
  266. package/sa/es/{index-CwXblevG.js → index-Bh6K2QMA.js} +1 -1
  267. package/sa/es/index-CJz8hgtM.js +1 -0
  268. package/sa/es/{index-DdxQE4LO.js → index-Cayela7L.js} +1 -1
  269. package/sa/es/{index-BQQH0v-V.js → index-CtxVR_Hl.js} +1 -1
  270. package/{bt/es/index-BEn9Oc7O.js → sa/es/index-DLD_3Jw4.js} +1 -1
  271. package/sa/es/{index-BBpzoo6q.js → index-kWzZgkSX.js} +1 -1
  272. package/sa/es/index.d.ts +25 -4
  273. package/sa/es/index.js +1 -1
  274. package/sa/es/{styles-BbYBBoEu.js → styles-BYzVFwye.js} +1 -1
  275. package/{vg/es/styles-CA2O0zNt.js → sa/es/styles-CD4Fhthm.js} +1 -1
  276. package/sa/es/{styles-CxMgRiB0.js → styles-CGl3jhGd.js} +1 -1
  277. package/sa/es/{styles-BqoJN48z.js → styles-Cn1mwyFQ.js} +1 -1
  278. package/sa/es/{styles-CR2l0VPi.js → styles-DVWIxkt9.js} +1 -1
  279. package/sa/es/{styles-CZbGc4JN.js → styles-DbGdhxH4.js} +1 -1
  280. package/sa/es/{styles-COBYxap6.js → styles-DqAwlIeH.js} +1 -1
  281. package/sa/es/{styles-dtFf-QzC.js → styles-DwJwOLPK.js} +1 -1
  282. package/{vg/es/styles-BvJq1DbU.js → sa/es/styles-MAGpRDb7.js} +1 -1
  283. package/sa/es/{styles-CsqrQMUa.js → styles-jk8vv0La.js} +1 -1
  284. package/sav2/es/_auto-entry_sav2-DyuWcccs.js +1 -0
  285. package/{tvnu/es/events-CYIyY_O8.js → sav2/es/events-D5lYc7K2.js} +1 -1
  286. package/sav2/es/identity-facade-BZkmeZUQ.js +1 -0
  287. package/sav2/es/{index-Cfn4EpE3.js → index-2UK8DR-y.js} +1 -1
  288. package/sav2/es/{index-DU69N01e.js → index-BJSLRS2s.js} +1 -1
  289. package/sav2/es/index-C43vrxNn.js +1 -0
  290. package/{tvnu/es/index-n2OqZE3x.js → sav2/es/index-CKGxlrTt.js} +1 -1
  291. package/sav2/es/{index-BHVPw0uA.js → index-Cfx6Rel9.js} +1 -1
  292. package/{tvnu/es/index-D53Lfqpz.js → sav2/es/index-CiVc_8YI.js} +1 -1
  293. package/sav2/es/index-DKS7C_7e.js +1 -0
  294. package/sav2/es/{index-DVdqEzgu.js → index-DjvyYhI_.js} +1 -1
  295. package/sav2/es/index.d.ts +25 -4
  296. package/sav2/es/index.js +1 -1
  297. package/{btv2/es/styles-D8oEO915.js → sav2/es/styles-B8NZopko.js} +1 -1
  298. package/{vgv2/es/styles-BZDzqgQY.js → sav2/es/styles-BDhfh5su.js} +1 -1
  299. package/sav2/es/{styles-CEF-0mza.js → styles-Bjqjzybq.js} +1 -1
  300. package/{btv2/es/styles-DucQJHxT.js → sav2/es/styles-C2H4RMKQ.js} +1 -1
  301. package/sav2/es/{styles-ZhK4-day.js → styles-CxbH5UA2.js} +1 -1
  302. package/sav2/es/{styles-F7jUJjJn.js → styles-D-8e1O80.js} +1 -1
  303. package/{btv2/es/styles-DAHadlhX.js → sav2/es/styles-DgLkJN0M.js} +1 -1
  304. package/sav2/es/{styles-C4-rOm8X.js → styles-Dhk5nxiL.js} +1 -1
  305. package/sav2/es/{styles-CFf2Ku9c.js → styles-jfZhazb5.js} +1 -1
  306. package/svd/cjs/index.d.ts +25 -4
  307. package/svd/cjs/index.js +1 -1
  308. package/svd/es/_auto-entry_svd-Dh1L1ZTe.js +1 -0
  309. package/svd/es/{events-CXoatmpv.js → events-BfWtxZkh.js} +1 -1
  310. package/svd/es/identity-facade-DDv8aYXn.js +1 -0
  311. package/svd/es/{index-DonfcwIE.js → index-BV7wv2Y7.js} +1 -1
  312. package/svd/es/index-BxhyDQTd.js +1 -0
  313. package/svd/es/{index-BMn-d7Z_.js → index-C5ZEbfyX.js} +1 -1
  314. package/svd/es/{index-ntuGyR2_.js → index-CIQBNQom.js} +1 -1
  315. package/svd/es/{index-UhMbVarR.js → index-CmutQVjh.js} +1 -1
  316. package/svd/es/{index-BXR4R0DG.js → index-DtCyh9dg.js} +1 -1
  317. package/svd/es/index-DvGlhxqG.js +1 -0
  318. package/svd/es/{index-KSUkz5Ec.js → index-NC_G8CHE.js} +1 -1
  319. package/svd/es/index.d.ts +25 -4
  320. package/svd/es/index.js +1 -1
  321. package/{mtv/es/styles-Cfow3icP.js → svd/es/styles-BXrEFmlc.js} +1 -1
  322. package/svd/es/{styles-B6N0NAK1.js → styles-CQISYjSC.js} +1 -1
  323. package/svd/es/{styles-CzzKpKOY.js → styles-DObhN2H3.js} +1 -1
  324. package/svd/es/{styles-xB_mBaye.js → styles-DSdFfMyd.js} +1 -1
  325. package/svd/es/{styles-2098DKtE.js → styles-lM_sfnc7.js} +1 -1
  326. package/svd/es/{styles-BHFhjoVx.js → styles-m8p6a-dP.js} +1 -1
  327. package/svd/es/{styles-BsUvk2WV.js → styles-y0tx_5Nt.js} +1 -1
  328. package/svdv2/es/_auto-entry_svdv2-Dlk4fJ5Z.js +1 -0
  329. package/svdv2/es/{events-rieoT5HD.js → events-BRDx14sk.js} +1 -1
  330. package/svdv2/es/identity-facade-B5Q9Uzd9.js +1 -0
  331. package/svdv2/es/{index-BSzaY9HS.js → index-B43y6hjO.js} +1 -1
  332. package/svdv2/es/{index-B7VeIIa1.js → index-Bks9HAk6.js} +1 -1
  333. package/svdv2/es/{index-C6jaff-U.js → index-COwdQHN3.js} +1 -1
  334. package/svdv2/es/{index-SZHJspYo.js → index-CQ4SkQFm.js} +1 -1
  335. package/svdv2/es/{index-B82Dt7Y9.js → index-CQu4_uWu.js} +1 -1
  336. package/svdv2/es/index-CyOvYZf6.js +1 -0
  337. package/svdv2/es/{index-j0sWy6XQ.js → index-DZUGzW2m.js} +1 -1
  338. package/svdv2/es/index-aL_wTiP4.js +1 -0
  339. package/svdv2/es/index.d.ts +25 -4
  340. package/svdv2/es/index.js +1 -1
  341. package/svdv2/es/{styles-BPY37MKL.js → styles-73_TVY0M.js} +1 -1
  342. package/svdv2/es/{styles-CPISTY9o.js → styles-BcMaHqRO.js} +1 -1
  343. package/svdv2/es/{styles-BPhm6VCm.js → styles-BsYP5noN.js} +1 -1
  344. package/{koket/es/styles-Dnaf1zGg.js → svdv2/es/styles-Bv57LPpi.js} +1 -1
  345. package/svdv2/es/{styles-CaHsrPmd.js → styles-CoeBOvU-.js} +1 -1
  346. package/svdv2/es/{styles-DR0vrRzH.js → styles-DvEndzhu.js} +1 -1
  347. package/{koket/es/styles-CH1-lHKr.js → svdv2/es/styles-Mh-OVxJ7.js} +1 -1
  348. package/svdv2/es/{styles-c1jdK7Es.js → styles-bqPQ4mdC.js} +1 -1
  349. package/tek/cjs/index.d.ts +25 -4
  350. package/tek/cjs/index.js +1 -1
  351. package/tv4/cjs/index.d.ts +25 -4
  352. package/tv4/cjs/index.js +1 -1
  353. package/tv4/es/_auto-entry_tv4-CAYbwTdq.js +1 -0
  354. package/{mtv/es/events-GqbgSzdx.js → tv4/es/events-DW96ZVTh.js} +1 -1
  355. package/tv4/es/identity-facade-C2NeLN-j.js +1 -0
  356. package/tv4/es/index-Bino6rLY.js +1 -0
  357. package/tv4/es/index-C2OtOquR.js +1 -0
  358. package/tv4/es/{index-CLlZ_nvb.js → index-D-1_ROt3.js} +1 -1
  359. package/tv4/es/{index-Ba-gl0fE.js → index-DFhaL1J7.js} +1 -1
  360. package/tv4/es/{index-BPFUDpOI.js → index-DPpuUt0s.js} +1 -1
  361. package/tv4/es/{index-kMw82AyQ.js → index-Dm-6nZpq.js} +1 -1
  362. package/tv4/es/{index-DsO94JLJ.js → index-DunTxO8W.js} +1 -1
  363. package/tv4/es/{index-But-X6-M.js → index-ga2kOKnC.js} +1 -1
  364. package/tv4/es/index.d.ts +25 -4
  365. package/tv4/es/index.js +1 -1
  366. package/tv4/es/{styles-CiQyajrm.js → styles-BPPytBg6.js} +1 -1
  367. package/tv4/es/{styles-DyGJ5lUA.js → styles-C2LVLrOH.js} +1 -1
  368. package/tv4/es/{styles-BOhTEsfH.js → styles-Cciik90f.js} +1 -1
  369. package/tv4/es/{styles-ClhVmvvn.js → styles-DSWbigxW.js} +1 -1
  370. package/{e24/es/styles-U3ev4vZ7.js → tv4/es/styles-wMAzjCh0.js} +1 -1
  371. package/tvnu/cjs/index.d.ts +25 -4
  372. package/tvnu/cjs/index.js +1 -1
  373. package/tvnu/es/_auto-entry_tvnu-BrerGzvJ.js +1 -0
  374. package/{btv2/es/events-D6P6hD23.js → tvnu/es/events-EvHup10f.js} +1 -1
  375. package/tvnu/es/identity-facade-D-F0duuq.js +1 -0
  376. package/tvnu/es/{index-DLpVVZf_.js → index-B7fJrKVH.js} +1 -1
  377. package/tvnu/es/index-BvFvHMoa.js +1 -0
  378. package/tvnu/es/index-CAT86bPl.js +1 -0
  379. package/{btv2/es/index-bR4EjUyv.js → tvnu/es/index-Co3vEuCY.js} +1 -1
  380. package/tvnu/es/{index-DPea4ItP.js → index-CxbOMJEm.js} +1 -1
  381. package/{sav2/es/index-BgJctlWz.js → tvnu/es/index-CyrKuK0G.js} +1 -1
  382. package/tvnu/es/{index-CgR2vaLd.js → index-IPzer9RK.js} +1 -1
  383. package/tvnu/es/{index-pN42MHkO.js → index-rw50W2ju.js} +1 -1
  384. package/tvnu/es/index.d.ts +25 -4
  385. package/tvnu/es/index.js +1 -1
  386. package/{btv2/es/styles-CtL-yllF.js → tvnu/es/styles-C1b3iYOo.js} +1 -1
  387. package/tvnu/es/{styles-Blkyvqh4.js → styles-CkEF93-e.js} +1 -1
  388. package/tvnu/es/{styles-tV1z1GZ_.js → styles-D5GcvjUY.js} +1 -1
  389. package/tvnu/es/{styles-BYv3c9cw.js → styles-vQl2r_Lm.js} +1 -1
  390. package/types/index.d.ts +6 -1
  391. package/vg/cjs/index.d.ts +25 -4
  392. package/vg/cjs/index.js +1 -1
  393. package/vg/es/_auto-entry_vg-CNJf7SUB.js +1 -0
  394. package/vg/es/{events-BqQucSf6.js → events-BmlMhqwy.js} +1 -1
  395. package/vg/es/{index-bCzcmyfy.js → index-B9bBm9yR.js} +1 -1
  396. package/vg/es/{index-BcaL6jsh.js → index-BWiGXczB.js} +1 -1
  397. package/vg/es/{index-CsWAXOq-.js → index-Bf9CbJzs.js} +1 -1
  398. package/vg/es/index-CRoJfOxx.js +1 -0
  399. package/vg/es/{index-DAAjvi1C.js → index-DUI6Mvpf.js} +1 -1
  400. package/vg/es/{index-C2UHtfj_.js → index-Y7tlSjQY.js} +1 -1
  401. package/vg/es/{index-BSPaei4i.js → index-YF5c_JuV.js} +1 -1
  402. package/vg/es/index-gDgbRZ7O.js +1 -0
  403. package/vg/es/index.d.ts +25 -4
  404. package/vg/es/index.js +1 -1
  405. package/vg/es/{styles-DFInM_03.js → styles-3EurmzQO.js} +1 -1
  406. package/vg/es/{styles-CSIB_T1c.js → styles-5mX4r5jr.js} +1 -1
  407. package/vg/es/{styles-B0hflLDs.js → styles-BmdOnq7A.js} +1 -1
  408. package/vg/es/{styles-Ddh-HkO8.js → styles-Bs1Aggf5.js} +1 -1
  409. package/{sa/es/styles-CwbbNFdE.js → vg/es/styles-C591km3G.js} +1 -1
  410. package/vg/es/{styles-CdpkwzOZ.js → styles-CHXYI0fY.js} +1 -1
  411. package/vg/es/{styles-TZp4Js-a.js → styles-CpzWFBZb.js} +1 -1
  412. package/vg/es/{styles-CIvA8Doz.js → styles-CzbkjzNY.js} +1 -1
  413. package/vg/es/{styles-CYzyLEV0.js → styles-D1ug5S12.js} +1 -1
  414. package/{bt/es/styles-B188diER.js → vg/es/styles-D2SoDuD_.js} +1 -1
  415. package/{bt/es/styles-Djjc7UzY.js → vg/es/styles-D8zugQ-O.js} +1 -1
  416. package/vg/es/{styles-Ce4iBXFA.js → styles-DDJjkHPQ.js} +1 -1
  417. package/vg/es/{styles-C51lw1yU.js → styles-DTAnITuc.js} +1 -1
  418. package/vg/es/{styles-CciYrbs8.js → styles-DeMihaB6.js} +1 -1
  419. package/vg/es/{styles-D9qbS1Gw.js → styles-_vQcCN41.js} +1 -1
  420. package/vg/es/{styles-CoLiVlSG.js → styles-tTC-fLRk.js} +1 -1
  421. package/vgv2/es/_auto-entry_vgv2-jE5K_4Rp.js +1 -0
  422. package/vgv2/es/events-BpDwhNOP.js +1 -0
  423. package/vgv2/es/index-BUT7kOaj.js +1 -0
  424. package/vgv2/es/{index-DQGn1tXh.js → index-Bzb4_DGy.js} +1 -1
  425. package/vgv2/es/{index-CVGQqZVE.js → index-C18s-_pP.js} +1 -1
  426. package/vgv2/es/{index-BAnN0RdP.js → index-CHWX8euE.js} +1 -1
  427. package/vgv2/es/{index-BMvVZ3PU.js → index-CuKgwABk.js} +1 -1
  428. package/vgv2/es/{index-OzkyZrFL.js → index-Di2rk1OZ.js} +1 -1
  429. package/vgv2/es/index-pYIGndpg.js +1 -0
  430. package/vgv2/es/{index-I-HW65_x.js → index-uDx3jxpl.js} +1 -1
  431. package/vgv2/es/index.d.ts +25 -4
  432. package/vgv2/es/index.js +1 -1
  433. package/vgv2/es/{styles-dPSL7ERU.js → styles-0b4PLQ3R.js} +1 -1
  434. package/vgv2/es/{styles-V8Y9NY4R.js → styles-5NJZT84L.js} +1 -1
  435. package/vgv2/es/styles-5dOaVKuU.js +1 -0
  436. package/vgv2/es/{styles-DOZIdQKO.js → styles-B14I9QWy.js} +1 -1
  437. package/vgv2/es/{styles-BZNQ1vE8.js → styles-BWGGJghl.js} +1 -1
  438. package/vgv2/es/{styles-Cualb3_D.js → styles-BcFHitcx.js} +1 -1
  439. package/vgv2/es/{styles-CtTqdZis.js → styles-CU1-8Qp0.js} +1 -1
  440. package/vgv2/es/{styles-YZ88G27K.js → styles-CXPZJsXG.js} +1 -1
  441. package/vgv2/es/{styles-wF0dHoty.js → styles-D0DqwIVN.js} +1 -1
  442. package/vgv2/es/{styles--uVNPccL.js → styles-D6jopFwN.js} +1 -1
  443. package/vgv2/es/{styles-BgSFy8jC.js → styles-DUySgpEw.js} +1 -1
  444. package/vgv2/es/{styles-CCY1tyd6.js → styles-DvdItfJl.js} +1 -1
  445. package/vgv2/es/{styles-F0n6XlmZ.js → styles-Oe4s36cd.js} +1 -1
  446. package/{btv2/es/styles-BIEV_UDm.js → vgv2/es/styles-aGuM_mZr.js} +1 -1
  447. package/{tvnu/es/styles-DgLNK3GP.js → vgv2/es/styles-cs7VumeQ.js} +1 -1
  448. package/vgv2/es/{styles-DhnA4Y2g.js → styles-l0SzsIkc.js} +1 -1
  449. package/video/cjs/index.js +1 -1
  450. package/video/es/index.js +1 -1
  451. package/aftenposten/es/_auto-entry_aftenposten-VdgcR_BE.js +0 -1
  452. package/aftenposten/es/index-DP0BbbWJ.js +0 -1
  453. package/aftenposten/es/index-PdNwftJA.js +0 -1
  454. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BIMCdj2e.js +0 -1
  455. package/aftenpostenv2/es/index-6k3Y32Fw.js +0 -1
  456. package/aftenpostenv2/es/index-DPqkphHW.js +0 -1
  457. package/aftonbladet/es/_auto-entry_aftonbladet-D2fIitz4.js +0 -1
  458. package/aftonbladet/es/index-C1IqSowz.js +0 -1
  459. package/aftonbladet/es/index-CFu2vZ67.js +0 -1
  460. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-3dTEWOlI.js +0 -1
  461. package/aftonbladetv2/es/index-BVirA6E3.js +0 -1
  462. package/aftonbladetv2/es/index-DB2zWF2S.js +0 -1
  463. package/bt/es/_auto-entry_bt-CvnjeTKS.js +0 -1
  464. package/bt/es/index-5orz6iDE.js +0 -1
  465. package/bt/es/index-B4s9DYHb.js +0 -1
  466. package/btv2/es/_auto-entry_btv2-Dvycsb0N.js +0 -1
  467. package/btv2/es/index-CYUq8h41.js +0 -1
  468. package/btv2/es/index-wU5-fkkY.js +0 -1
  469. package/e24/es/_auto-entry_e24-EmoPFNdZ.js +0 -1
  470. package/e24/es/index-BHxQeiJc.js +0 -1
  471. package/e24/es/index-C4omnW1M.js +0 -1
  472. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DntxanXt.js +0 -1
  473. package/fotbollskanalen/es/index-8KLTEqRi.js +0 -1
  474. package/fotbollskanalen/es/index-BMDVF1u1.js +0 -1
  475. package/koket/es/_auto-entry_koket-a4ea-7Qw.js +0 -1
  476. package/koket/es/index-CZ7fRUR1.js +0 -1
  477. package/koket/es/index-I63ib7qd.js +0 -1
  478. package/mtv/es/_auto-entry_mtv-DsuRsc1u.js +0 -1
  479. package/mtv/es/index--OizxMLO.js +0 -1
  480. package/mtv/es/index-B83VUyBB.js +0 -1
  481. package/mtv/es/index-BnTnl5EG.js +0 -1
  482. package/mtv/es/index-D2XPbfTm.js +0 -1
  483. package/mtv/es/index-DN3cR0Fw.js +0 -1
  484. package/mtv/es/index-DTrcSpan.js +0 -1
  485. package/mtv/es/index-Dv15bwI7.js +0 -1
  486. package/omni/es/_auto-entry_omni-HSpRNCg1.js +0 -1
  487. package/omni/es/index-74zEx__y.js +0 -1
  488. package/omni/es/index-wkJKThPL.js +0 -1
  489. package/sa/es/_auto-entry_sa-B3BT1vI-.js +0 -1
  490. package/sa/es/index-CrWFSHI0.js +0 -1
  491. package/sa/es/index-d0MDNCl0.js +0 -1
  492. package/sav2/es/_auto-entry_sav2-Ms7Jve07.js +0 -1
  493. package/sav2/es/index-BBAAh5bR.js +0 -1
  494. package/sav2/es/index-DS2guFzB.js +0 -1
  495. package/svd/es/_auto-entry_svd-CuD9iF48.js +0 -1
  496. package/svd/es/index-BfA2xLfw.js +0 -1
  497. package/svd/es/index-EJwoMYuf.js +0 -1
  498. package/svdv2/es/_auto-entry_svdv2-1VQfx2m3.js +0 -1
  499. package/svdv2/es/index-DB2h1Swy.js +0 -1
  500. package/svdv2/es/index-DU1mD5yI.js +0 -1
  501. package/tv4/es/_auto-entry_tv4-CWqxLSel.js +0 -1
  502. package/tv4/es/events-D6xMM-17.js +0 -1
  503. package/tv4/es/index-BONgzmFt.js +0 -1
  504. package/tv4/es/index-DP-cpF3Z.js +0 -1
  505. package/tvnu/es/_auto-entry_tvnu-VQhBZ5ti.js +0 -1
  506. package/tvnu/es/index-Ca_3Ni0n.js +0 -1
  507. package/tvnu/es/index-DjWYwuQw.js +0 -1
  508. package/vg/es/_auto-entry_vg-DfuxvRye.js +0 -1
  509. package/vg/es/index-DCWH5HnK.js +0 -1
  510. package/vg/es/index-DX5agaGX.js +0 -1
  511. package/vgv2/es/_auto-entry_vgv2-Bq8_SS3m.js +0 -1
  512. package/vgv2/es/events-BMoajPYv.js +0 -1
  513. package/vgv2/es/index-Ck1oE8Pa.js +0 -1
  514. package/vgv2/es/index-DxSr_M00.js +0 -1
  515. package/vgv2/es/styles-DDsDYtIG.js +0 -1
@@ -306,7 +306,6 @@ interface PlacementRefreshConfig {
306
306
  }
307
307
  interface Placement {
308
308
  targetId: string;
309
- adUnitId?: string;
310
309
  sizes: Array<Array<number>>;
311
310
  allowedFormats: Array<AstAdType>;
312
311
  invCode: string;
@@ -393,6 +392,11 @@ interface TCFConfig {
393
392
  timeout?: number;
394
393
  nonRtb?: NonRTBConfig;
395
394
  }
395
+ interface ManagedThirdPartyConfig {
396
+ readpeakUrl?: string;
397
+ adnamiUrl?: string;
398
+ adformDmpUrl?: string;
399
+ }
396
400
  interface PrebidConfig {
397
401
  enabled: boolean;
398
402
  prebidUrl: string;
@@ -403,6 +407,7 @@ interface PrebidConfig {
403
407
  forwardGlimrTags?: boolean;
404
408
  manageAdserver?: boolean;
405
409
  adServerUrl?: string;
410
+ thirdParty?: ManagedThirdPartyConfig;
406
411
  }
407
412
  interface NonRTBConfig {
408
413
  invCodeSuffix?: string;
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime");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())})}"function"==typeof SuppressedError&&SuppressedError;const n="svd",r="vg",i="sa",o="bt",a="aftonbladet",s="e24";class l{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:r,pathname:i}=new URL(n);if(!r.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const o=i.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class d{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const c=(e,t)=>{new IntersectionObserver((e,n)=>{for(const r of e)if(r.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class u{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&c(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}const g="[data-k5a-teaser-analytics]";class p extends u{constructor(e,t,n,r){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=r}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(g);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(g);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){c(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const r=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(r):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(r):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,r)}))}trackEngagement(e){var t,n;const r=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(r):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(r):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,r)}}class v extends p{getEventBaseData(){var e,t,n,r;const{clientName:i,creativeId:o,itemId:a,placement:s}=this.parseKilkayaData(),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),g=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:s,elementType:"Article",custom:{customer:i,creativeId:null!=o?o:a},page:{"@id":null!=g?g:s,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===r?void 0:r.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class m extends p{getEventBaseData(){var e,t;const{title:n="",clientName:r="",creativeId:i="",link:o="",itemId:a=""}=this.parseKilkayaData(),{columnName:s,primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u={publicUrl:o,urlPath:o?new URL(o).pathname:""},{publicUrl:g,urlPath:p}=o&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,o))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:s,primaryPosition:l,secondaryPosition:d,source:c},tags:[r,n,g,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":i,pageTitle:n,publicUrl:g,urlPath:p},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}const h="no",f="se",y=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},b=(e,t)=>{console.warn("[Advertory WARN]: ",e)},w=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 y("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(y("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{y("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{y("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);y("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),k="cmp:loaded";let P="undefined"!=typeof window?window._tcf_:void 0,T=!1;const E=(e,n,r)=>{const i=!!(null==e?void 0:e.enabled),o=(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&&(y("TCF bypass param detected, returning consent: true"),!0):(y("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(T)return null;if(!P)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=P.getConsentedToAllSync();return y(`TCF consented to all is: ${t}`),P.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(y("Getting TCF consent manager..."),window._tcf_)return y("TCF consent manager is already available"),P=window._tcf_,void e(P);y("TCF consent manager is not available");const n=()=>{y("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(P=window._tcf_,e(P)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(k,n),T=!0,t(new Error("Timeout waiting for CMP to load"))},o);y("Listening for CMP loaded event..."),document.addEventListener(k,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return y(`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===f,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===h;if(t||n)return y("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield w(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();return null!==i?i:yield new Promise((e,t)=>{try{if(!P)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(()=>{y("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);P.onTcfReady(()=>{y("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),P.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class I{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return y("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A,S;var O=C(function(){if(S)return A;S=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},A=s}());const j={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},L=(e,t)=>O(e,t,j),U=(e,t)=>Object.assign(Object.assign({},e),t),_=(e,t)=>{var n;return L(null!==(n=e)&&void 0!==n?n:{},t)},N={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},$=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||b("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||b("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||b("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||b("pageContext.deviceType is required."),n||b("pageOptions is required."),r||b("placements is required."),(null==i?void 0:i.defaultThreshold)||b("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])&&b(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},M={placements:(e,t)=>t,takeover:_,refreshConfig:U,editory:_,appearanceConfig:_,pageContext:U,pageOptions:U,pageSectionsSelectors:U,tcf:U};class x{set(e){$(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(M)){const r=t[e];void 0!==r&&(n[e]=M[e](n[e],r))}})(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=L(x.DEFAULT_SITE_HANDLERS,e)}}x.DEFAULT_SITE_HANDLERS={siteEvents:N,initNativeAd:()=>{}};const D=new x;D.modifyConfigProperties.bind(D);const F=864e5,B=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return y("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 y("Error with parsing localStorage data"),null}}}})(),q=e=>e.startsWith("glci_"),K=()=>{var e;return((e=[])=>e.filter(q))(null!==(e=(()=>{const e=B.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},R=/^glci_/,V="gender_",H="geo_",z="male",J="female",W=()=>t(void 0,void 0,void 0,function*(){try{const n=yield(e=500,t(void 0,void 0,void 0,function*(){return Promise.race([t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),r=new I(n),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===z||o===J?`${V}${o}`:void 0}catch(e){return}var e}),X=()=>t(void 0,void 0,void 0,function*(){const e=[],t=yield W(),n=(()=>{const e=K().map(e=>`${H}${e.replace(R,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),G="front";class Q{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===G?"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:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Y{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Z{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class ee{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class te{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===G?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class ne{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 re{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:c,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[r]:new l,[s]:new Q,"no-aftenposten":new Y,[o]:new Z,"no-bergenstidende":new Z,[i]:new ee,"no-stavangeraftenblad":new ee,[n]:new te,[a]:new ne}[c]||new d;((e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const o=r===f?new m(e,i,t):new v(e,i,t,n);o.trackImpression(),i.addEventListener("click",()=>o.trackEngagement())})})(e.instance,g,t,u)}injectKilkayaMeta(e){return t(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield X();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}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(y(`Kilkaya event for slot: ${n}`),!n)return void y("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(y(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):y("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="flex";(e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))})(null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"")}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield((e,...n)=>t(void 0,[e,...n],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(l)};i.addEventListener("load",o),i.addEventListener("error",a);const l=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}))(e)})}run(e){return t(this,void 0,void 0,function*(){var n,r;const{tcf:i,pageContext:{isMobileApp:o,countryCode:a},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const l=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 y(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return y(`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}=E(e,0,n);return(yield i())?(y(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(y(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(l),yield this.loadKilkayaScript(null!==(r=null===(n=s.options)||void 0===n?void 0:n.kilkayaUrl)&&void 0!==r?r:""),this.handleKilkayaStreamTracking(e)})}}exports.Kilkaya=({placementName:t,slotTag:n,fallbackTargetId:r,children:i,pulseData:o,htmlAttributes:a})=>{const s=(e,t)=>{const n={};if(!e)return n;for(const[r,i]of Object.entries(e)){n[t?`${t}-${r}`:r]=String(i)}return n},l=s(o,"data-pulse"),d=s(a,"data");return e.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":n},l,d,{children:[e.jsx("div",{className:"inscreen-target"}),e.jsx("k5a-stream",{name:t,"slot-tag":n}),e.jsx("div",{className:"container"}),e.jsx("div",{className:"fallback","data-fallback-target-id":r,style:{display:"none"},children:i})]}))},exports.runKilkaya=e=>t(void 0,void 0,void 0,function*(){const t=new re;yield t.run(e)});
1
+ "use strict";var e=require("react/jsx-runtime");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())})}"function"==typeof SuppressedError&&SuppressedError;const n="svd",r="vg",i="sa",o="bt",a="aftonbladet",s="e24";class l{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:r,pathname:i}=new URL(n);if(!r.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const o=i.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class d{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const c=(e,t)=>{new IntersectionObserver((e,n)=>{for(const r of e)if(r.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class u{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&c(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}const g="[data-k5a-teaser-analytics]";class p extends u{constructor(e,t,n,r){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=r}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(g);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(g);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){c(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const r=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(r):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(r):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,r)}))}trackEngagement(e){var t,n;const r=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(r):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(r):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,r)}}class v extends p{getEventBaseData(){var e,t,n,r;const{clientName:i,creativeId:o,itemId:a,placement:s}=this.parseKilkayaData(),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),g=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:s,elementType:"Article",custom:{customer:i,creativeId:null!=o?o:a},page:{"@id":null!=g?g:s,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===r?void 0:r.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class m extends p{getEventBaseData(){var e,t;const{title:n="",clientName:r="",creativeId:i="",link:o="",itemId:a=""}=this.parseKilkayaData(),{columnName:s,primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u={publicUrl:o,urlPath:o?new URL(o).pathname:""},{publicUrl:g,urlPath:p}=o&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,o))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:s,primaryPosition:l,secondaryPosition:d,source:c},tags:[r,n,g,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":i,pageTitle:n,publicUrl:g,urlPath:p},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}const h="no",f="se",y=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},b=(e,t)=>{console.warn("[Advertory WARN]: ",e)},w=()=>{return e="bypass_tcf",new URLSearchParams(window.location.search).get(e);var e},k=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 y("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(y("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{y("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{y("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);y("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),P="cmp:loaded";let T="undefined"!=typeof window?window._tcf_:void 0,E=!1;const I=(e,n,r)=>{const i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,a=w(),s=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(y("TCF bypass param detected, returning consent: true"),!0):(y("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(E)return null;if(!T)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=T.getConsentedToAllSync();return y(`TCF consented to all is: ${t}`),T.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(y("Getting TCF consent manager..."),window._tcf_)return y("TCF consent manager is already available"),T=window._tcf_,void e(T);y("TCF consent manager is not available");const n=()=>{y("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(P,n),E=!0,t(new Error("Timeout waiting for CMP to load"))},o);y("Listening for CMP loaded event..."),document.addEventListener(P,n,{once:!0})}):Promise.resolve(null),getConsentSync:s,getConsentAsync:()=>t(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return y(`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===f,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===h;if(t||n)return y("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield k(e);if(!(null==e?void 0:e.enabled))return!0;const i=s();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(()=>{y("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);T.onTcfReady(()=>{y("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),T.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class C{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return y("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A,O;var j=S(function(){if(O)return A;O=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},A=s}());const U={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},L=(e,t)=>j(e,t,U),_=(e,t)=>Object.assign(Object.assign({},e),t),$=(e,t)=>{var n;return L(null!==(n=e)&&void 0!==n?n:{},t)},N=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||b("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||b("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||b("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||b("pageContext.deviceType is required."),n||b("pageOptions is required."),r||b("placements is required."),(null==i?void 0:i.defaultThreshold)||b("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])&&b(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},M={placements:(e,t)=>t,takeover:$,refreshConfig:_,editory:$,appearanceConfig:$,pageContext:_,pageOptions:_,pageSectionsSelectors:_,tcf:_};class x{set(e){N(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(M)){const r=t[e];void 0!==r&&(n[e]=M[e](n[e],r))}})(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=L(x.DEFAULT_SITE_HANDLERS,e)}}x.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const D=new x;D.modifyConfigProperties.bind(D);const F=864e5,K=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return y("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 y("Error with parsing localStorage data"),null}}}})(),B=e=>e.startsWith("glci_"),q=()=>{var e;return((e=[])=>e.filter(B))(null!==(e=(()=>{const e=K.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},R=/^glci_/,V="gender_",H="geo_",z="male",J="female",W=()=>t(void 0,void 0,void 0,function*(){try{const e=yield((...e)=>t(void 0,[...e],void 0,function*(e=500){return Promise.race([t(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])}))(),n=new C(e),r=yield n.getIdentityUser(),{gender:i}=null!=r?r:{};return i===z||i===J?`${V}${i}`:void 0}catch(e){return}}),X=()=>t(void 0,void 0,void 0,function*(){const e=[],t=yield W(),n=(()=>{const e=q().map(e=>`${H}${e.replace(R,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),G="front";class Q{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===G?"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:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Y{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Z{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class ee{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class te{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===G?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class ne{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 re{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:c,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[r]:new l,[s]:new Q,"no-aftenposten":new Y,[o]:new Z,"no-bergenstidende":new Z,[i]:new ee,"no-stavangeraftenblad":new ee,[n]:new te,[a]:new ne}[c]||new d;((e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const o=r===f?new m(e,i,t):new v(e,i,t,n);o.trackImpression(),i.addEventListener("click",()=>o.trackEngagement())})})(e.instance,g,t,u)}injectKilkayaMeta(e){return t(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield X();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}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(y(`Kilkaya event for slot: ${n}`),!n)return void y("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(y(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):y("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="flex";(e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))})(null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"")}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield((e,...n)=>t(void 0,[e,...n],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(l)};i.addEventListener("load",o),i.addEventListener("error",a);const l=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}))(e)})}run(e){return t(this,void 0,void 0,function*(){var n,r;const{tcf:i,pageContext:{isMobileApp:o,countryCode:a},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const l=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 y(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return y(`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}=I(e,0,n);return(yield i())?(y(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(y(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(l),yield this.loadKilkayaScript(null!==(r=null===(n=s.options)||void 0===n?void 0:n.kilkayaUrl)&&void 0!==r?r:""),this.handleKilkayaStreamTracking(e)})}}exports.Kilkaya=({placementName:t,slotTag:n,fallbackTargetId:r,children:i,pulseData:o,htmlAttributes:a})=>{const s=(e,t)=>{const n={};if(!e)return n;for(const[r,i]of Object.entries(e)){n[t?`${t}-${r}`:r]=String(i)}return n},l=s(o,"data-pulse"),d=s(a,"data");return e.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":n},l,d,{children:[e.jsx("div",{className:"inscreen-target"}),e.jsx("k5a-stream",{name:t,"slot-tag":n}),e.jsx("div",{className:"container"}),e.jsx("div",{className:"fallback","data-fallback-target-id":r,style:{display:"none"},children:i})]}))},exports.runKilkaya=e=>t(void 0,void 0,void 0,function*(){const t=new re;yield t.run(e)});
@@ -306,7 +306,6 @@ interface PlacementRefreshConfig {
306
306
  }
307
307
  interface Placement {
308
308
  targetId: string;
309
- adUnitId?: string;
310
309
  sizes: Array<Array<number>>;
311
310
  allowedFormats: Array<AstAdType>;
312
311
  invCode: string;
@@ -393,6 +392,11 @@ interface TCFConfig {
393
392
  timeout?: number;
394
393
  nonRtb?: NonRTBConfig;
395
394
  }
395
+ interface ManagedThirdPartyConfig {
396
+ readpeakUrl?: string;
397
+ adnamiUrl?: string;
398
+ adformDmpUrl?: string;
399
+ }
396
400
  interface PrebidConfig {
397
401
  enabled: boolean;
398
402
  prebidUrl: string;
@@ -403,6 +407,7 @@ interface PrebidConfig {
403
407
  forwardGlimrTags?: boolean;
404
408
  manageAdserver?: boolean;
405
409
  adServerUrl?: string;
410
+ thirdParty?: ManagedThirdPartyConfig;
406
411
  }
407
412
  interface NonRTBConfig {
408
413
  invCodeSuffix?: string;
@@ -1 +1 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";function n(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())})}"function"==typeof SuppressedError&&SuppressedError;const r="svd",i="vg",o="sa",a="bt",s="aftonbladet",l="e24";class d{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:r,pathname:i}=new URL(n);if(!r.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const o=i.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class c{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const u=(e,t)=>{new IntersectionObserver((e,n)=>{for(const r of e)if(r.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class g{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&u(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}const p="[data-k5a-teaser-analytics]";class v extends g{constructor(e,t,n,r){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=r}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(p);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(p);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){u(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const r=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(r):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(r):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,r)}))}trackEngagement(e){var t,n;const r=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(r):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(r):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,r)}}class m extends v{getEventBaseData(){var e,t,n,r;const{clientName:i,creativeId:o,itemId:a,placement:s}=this.parseKilkayaData(),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),g=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:s,elementType:"Article",custom:{customer:i,creativeId:null!=o?o:a},page:{"@id":null!=g?g:s,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===r?void 0:r.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class h extends v{getEventBaseData(){var e,t;const{title:n="",clientName:r="",creativeId:i="",link:o="",itemId:a=""}=this.parseKilkayaData(),{columnName:s,primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u={publicUrl:o,urlPath:o?new URL(o).pathname:""},{publicUrl:g,urlPath:p}=o&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,o))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:s,primaryPosition:l,secondaryPosition:d,source:c},tags:[r,n,g,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":i,pageTitle:n,publicUrl:g,urlPath:p},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}const f="no",y="se",b=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},w=(e,t)=>{console.warn("[Advertory WARN]: ",e)},k=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 b("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(b("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{b("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{b("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);b("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),P="cmp:loaded";let T="undefined"!=typeof window?window._tcf_:void 0,E=!1;const I=(e,t,r)=>{const i=!!(null==e?void 0:e.enabled),o=(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&&(b("TCF bypass param detected, returning consent: true"),!0):(b("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(E)return null;if(!T)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=T.getConsentedToAllSync();return b(`TCF consented to all is: ${t}`),T.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(b("Getting TCF consent manager..."),window._tcf_)return b("TCF consent manager is already available"),T=window._tcf_,void e(T);b("TCF consent manager is not available");const n=()=>{b("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(P,n),E=!0,t(new Error("Timeout waiting for CMP to load"))},o);b("Listening for CMP loaded event..."),document.addEventListener(P,n,{once:!0})}):Promise.resolve(null),getConsentSync:l,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return b(`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===f;if(t||n)return b("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield k(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();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(()=>{b("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);T.onTcfReady(()=>{b("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),T.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class C{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return n(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return b("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return n(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S,O;var j=A(function(){if(O)return S;O=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},S=s}());const L={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},U=(e,t)=>j(e,t,L),_=(e,t)=>Object.assign(Object.assign({},e),t),N=(e,t)=>{var n;return U(null!==(n=e)&&void 0!==n?n:{},t)},$={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},M=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||w("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||w("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||w("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||w("pageContext.deviceType is required."),n||w("pageOptions is required."),r||w("placements is required."),(null==i?void 0:i.defaultThreshold)||w("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])&&w(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},D={placements:(e,t)=>t,takeover:N,refreshConfig:_,editory:N,appearanceConfig:N,pageContext:_,pageOptions:_,pageSectionsSelectors:_,tcf:_};class F{set(e){M(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(D)){const r=t[e];void 0!==r&&(n[e]=D[e](n[e],r))}})(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=U(F.DEFAULT_SITE_HANDLERS,e)}}F.DEFAULT_SITE_HANDLERS={siteEvents:$,initNativeAd:()=>{}};const B=new F;B.modifyConfigProperties.bind(B);const x=864e5,q=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return b("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=x)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=x)=>{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 b("Error with parsing localStorage data"),null}}}})(),R=e=>e.startsWith("glci_"),K=()=>{var e;return((e=[])=>e.filter(R))(null!==(e=(()=>{const e=q.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},V=/^glci_/,H="gender_",z="geo_",J="male",W="female",X=()=>n(void 0,void 0,void 0,function*(){try{const t=yield(e=500,n(void 0,void 0,void 0,function*(){return Promise.race([n(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),r=new C(t),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===J||o===W?`${H}${o}`:void 0}catch(e){return}var e}),G=()=>n(void 0,void 0,void 0,function*(){const e=[],t=yield X(),n=(()=>{const e=K().map(e=>`${z}${e.replace(V,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),Q="front";class Y{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Q?"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:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Z{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class ee{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class te{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class ne{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===Q?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class re{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 ie{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[i]:new d,[l]:new Y,"no-aftenposten":new Z,[a]:new ee,"no-bergenstidende":new ee,[o]:new te,"no-stavangeraftenblad":new te,[r]:new ne,[s]:new re}[n]||new c;((e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const o=r===y?new h(e,i,t):new m(e,i,t,n);o.trackImpression(),i.addEventListener("click",()=>o.trackEngagement())})})(e.instance,g,t,u)}injectKilkayaMeta(e){return n(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield G();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}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(b(`Kilkaya event for slot: ${n}`),!n)return void b("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(b(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):b("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="flex";(e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))})(null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"")}loadKilkayaScript(e){return n(this,void 0,void 0,function*(){yield((e,...t)=>n(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(l)};i.addEventListener("load",o),i.addEventListener("error",a);const l=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}))(e)})}run(e){return n(this,void 0,void 0,function*(){var t,r;const{tcf:i,pageContext:{isMobileApp:o,countryCode:a},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const l=yield((e,t,r,...i)=>n(void 0,[e,t,r,...i],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return b(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return b(`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}=I(e,0,n);return(yield i())?(b(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(b(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(l),yield this.loadKilkayaScript(null!==(r=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==r?r:""),this.handleKilkayaStreamTracking(e)})}}const oe=({placementName:n,slotTag:r,fallbackTargetId:i,children:o,pulseData:a,htmlAttributes:s})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[r,i]of Object.entries(e)){n[t?`${t}-${r}`:r]=String(i)}return n},d=l(a,"data-pulse"),c=l(s,"data");return e("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":r},d,c,{children:[t("div",{className:"inscreen-target"}),t("k5a-stream",{name:n,"slot-tag":r}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:o})]}))},ae=e=>n(void 0,void 0,void 0,function*(){const t=new ie;yield t.run(e)});export{oe as Kilkaya,ae as runKilkaya};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";function n(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())})}"function"==typeof SuppressedError&&SuppressedError;const r="svd",i="vg",o="sa",a="bt",s="aftonbladet",l="e24";class d{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:r,pathname:i}=new URL(n);if(!r.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const o=i.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class c{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const u=(e,t)=>{new IntersectionObserver((e,n)=>{for(const r of e)if(r.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class g{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&u(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}const p="[data-k5a-teaser-analytics]";class v extends g{constructor(e,t,n,r){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=r}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(p);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(p);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){u(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const r=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(r):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(r):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,r)}))}trackEngagement(e){var t,n;const r=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(r):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(r):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,r)}}class m extends v{getEventBaseData(){var e,t,n,r;const{clientName:i,creativeId:o,itemId:a,placement:s}=this.parseKilkayaData(),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),g=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:s,elementType:"Article",custom:{customer:i,creativeId:null!=o?o:a},page:{"@id":null!=g?g:s,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===r?void 0:r.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class h extends v{getEventBaseData(){var e,t;const{title:n="",clientName:r="",creativeId:i="",link:o="",itemId:a=""}=this.parseKilkayaData(),{columnName:s,primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u={publicUrl:o,urlPath:o?new URL(o).pathname:""},{publicUrl:g,urlPath:p}=o&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,o))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:s,primaryPosition:l,secondaryPosition:d,source:c},tags:[r,n,g,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":i,pageTitle:n,publicUrl:g,urlPath:p},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}const f="no",y="se",b=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},w=(e,t)=>{console.warn("[Advertory WARN]: ",e)},k=()=>{return e="bypass_tcf",new URLSearchParams(window.location.search).get(e);var e},P=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 b("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(b("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{b("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{b("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);b("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),T="cmp:loaded";let E="undefined"!=typeof window?window._tcf_:void 0,I=!1;const C=(e,t,r)=>{const i=!!(null==e?void 0:e.enabled),o=(null==e?void 0:e.timeout)||3e3,a=k(),s=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(b("TCF bypass param detected, returning consent: true"),!0):(b("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(I)return null;if(!E)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=E.getConsentedToAllSync();return b(`TCF consented to all is: ${t}`),E.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(b("Getting TCF consent manager..."),window._tcf_)return b("TCF consent manager is already available"),E=window._tcf_,void e(E);b("TCF consent manager is not available");const n=()=>{b("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(T,n),I=!0,t(new Error("Timeout waiting for CMP to load"))},o);b("Listening for CMP loaded event..."),document.addEventListener(T,n,{once:!0})}):Promise.resolve(null),getConsentSync:s,getConsentAsync:()=>n(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return b(`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===f;if(t||n)return b("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield P(e);if(!(null==e?void 0:e.enabled))return!0;const i=s();return null!==i?i: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(()=>{b("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);E.onTcfReady(()=>{b("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),E.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class S{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return n(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return b("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return n(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O,j;var U=A(function(){if(j)return O;j=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},O=s}());const L={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},_=(e,t)=>U(e,t,L),$=(e,t)=>Object.assign(Object.assign({},e),t),N=(e,t)=>{var n;return _(null!==(n=e)&&void 0!==n?n:{},t)},M=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||w("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||w("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||w("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||w("pageContext.deviceType is required."),n||w("pageOptions is required."),r||w("placements is required."),(null==i?void 0:i.defaultThreshold)||w("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])&&w(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},D={placements:(e,t)=>t,takeover:N,refreshConfig:$,editory:N,appearanceConfig:N,pageContext:$,pageOptions:$,pageSectionsSelectors:$,tcf:$};class F{set(e){M(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(D)){const r=t[e];void 0!==r&&(n[e]=D[e](n[e],r))}})(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=_(F.DEFAULT_SITE_HANDLERS,e)}}F.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const x=new F;x.modifyConfigProperties.bind(x);const B=864e5,K=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return b("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 i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},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 b("Error with parsing localStorage data"),null}}}})(),q=e=>e.startsWith("glci_"),R=()=>{var e;return((e=[])=>e.filter(q))(null!==(e=(()=>{const e=K.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},V=/^glci_/,H="gender_",z="geo_",J="male",W="female",X=()=>n(void 0,void 0,void 0,function*(){try{const e=yield((...e)=>n(void 0,[...e],void 0,function*(e=500){return Promise.race([n(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])}))(),t=new S(e),r=yield t.getIdentityUser(),{gender:i}=null!=r?r:{};return i===J||i===W?`${H}${i}`:void 0}catch(e){return}}),G=()=>n(void 0,void 0,void 0,function*(){const e=[],t=yield X(),n=(()=>{const e=R().map(e=>`${z}${e.replace(V,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),Q="front";class Y{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Q?"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:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Z{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class ee{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class te{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class ne{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===Q?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class re{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 ie{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[i]:new d,[l]:new Y,"no-aftenposten":new Z,[a]:new ee,"no-bergenstidende":new ee,[o]:new te,"no-stavangeraftenblad":new te,[r]:new ne,[s]:new re}[n]||new c;((e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const o=r===y?new h(e,i,t):new m(e,i,t,n);o.trackImpression(),i.addEventListener("click",()=>o.trackEngagement())})})(e.instance,g,t,u)}injectKilkayaMeta(e){return n(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield G();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}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(b(`Kilkaya event for slot: ${n}`),!n)return void b("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(b(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):b("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="flex";(e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))})(null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"")}loadKilkayaScript(e){return n(this,void 0,void 0,function*(){yield((e,...t)=>n(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(l)};i.addEventListener("load",o),i.addEventListener("error",a);const l=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}))(e)})}run(e){return n(this,void 0,void 0,function*(){var t,r;const{tcf:i,pageContext:{isMobileApp:o,countryCode:a},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const l=yield((e,t,r,...i)=>n(void 0,[e,t,r,...i],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return b(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return b(`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}=C(e,0,n);return(yield i())?(b(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(b(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(l),yield this.loadKilkayaScript(null!==(r=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==r?r:""),this.handleKilkayaStreamTracking(e)})}}const oe=({placementName:n,slotTag:r,fallbackTargetId:i,children:o,pulseData:a,htmlAttributes:s})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[r,i]of Object.entries(e)){n[t?`${t}-${r}`:r]=String(i)}return n},d=l(a,"data-pulse"),c=l(s,"data");return e("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":r},d,c,{children:[t("div",{className:"inscreen-target"}),t("k5a-stream",{name:n,"slot-tag":r}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:o})]}))},ae=e=>n(void 0,void 0,void 0,function*(){const t=new ie;yield t.run(e)});export{oe as Kilkaya,ae as runKilkaya};
@@ -520,7 +520,6 @@ interface PlacementRefreshConfig {
520
520
  }
521
521
  interface Placement {
522
522
  targetId: string;
523
- adUnitId?: string;
524
523
  sizes: Array<Array<number>>;
525
524
  allowedFormats: Array<AstAdType>;
526
525
  invCode: string;
@@ -607,6 +606,11 @@ interface TCFConfig {
607
606
  timeout?: number;
608
607
  nonRtb?: NonRTBConfig;
609
608
  }
609
+ interface ManagedThirdPartyConfig {
610
+ readpeakUrl?: string;
611
+ adnamiUrl?: string;
612
+ adformDmpUrl?: string;
613
+ }
610
614
  interface PrebidConfig {
611
615
  enabled: boolean;
612
616
  prebidUrl: string;
@@ -617,6 +621,7 @@ interface PrebidConfig {
617
621
  forwardGlimrTags?: boolean;
618
622
  manageAdserver?: boolean;
619
623
  adServerUrl?: string;
624
+ thirdParty?: ManagedThirdPartyConfig;
620
625
  }
621
626
  interface NonRTBConfig {
622
627
  invCodeSuffix?: string;
@@ -891,8 +896,13 @@ interface Advertory {
891
896
  getVideoAdsConfig: (params: VideoAdsConfigParams) => (stream: VideoStream) => Promise<Record<string, unknown>>;
892
897
  }
893
898
 
899
+ declare const TagDefinitions: {
900
+ readonly EXPLICIT: "explicit";
901
+ readonly DOM_DISCOVERED: "dom-discovered";
902
+ };
903
+ type TagDefinition = (typeof TagDefinitions)[keyof typeof TagDefinitions];
894
904
  interface AdServerCapabilities {
895
- tagDefinition: 'explicit' | 'dom-discovered';
905
+ tagDefinition: TagDefinition;
896
906
  deferredRequest: boolean;
897
907
  deferredRender: boolean;
898
908
  refresh: boolean;
@@ -910,18 +920,29 @@ interface AdEventBus {
910
920
  on: (event: AdEventName, handler: AdEventHandler) => void;
911
921
  }
912
922
 
923
+ interface RefreshOptions {
924
+ keepPreviousSizes?: Array<Placement>;
925
+ applyReloadKeyword?: boolean;
926
+ }
913
927
  interface AdServerDriver {
914
928
  readonly name: string;
915
929
  readonly capabilities: AdServerCapabilities;
930
+ readonly messageOrigins?: ReadonlyArray<string>;
916
931
  setup(): Promise<void>;
917
932
  setTargeting(): Promise<void>;
933
+ enrichPlacementsAfterDiscovery?(placements: Array<Placement>): Array<Placement>;
934
+ adjustPlacementsBeforeRequest?(placements: Array<Placement>): Promise<Array<Placement>>;
918
935
  definePlacements?(placements: Array<Placement>): void;
919
936
  requestPlacements?(placements: Array<Placement>): Promise<void>;
920
937
  requestPage?(): Promise<void>;
921
938
  bindEvents(bus: AdEventBus): Promise<void>;
939
+ clear?(targetIds: Array<string>): void;
940
+ resizeCreative?(targetId: string, size: Array<number>, isMediation?: boolean): void;
941
+ render?(targetId: string): void;
942
+ refresh?(targetIds: Array<string>, options?: RefreshOptions): void;
922
943
  }
923
944
 
924
- declare const createAdvertory: (handlers: SiteHandlers, siteSpecificConfig?: SiteSpecificConfig, driver?: AdServerDriver) => Advertory;
945
+ declare const createAdvertory: (handlers: SiteHandlers, driver: AdServerDriver, siteSpecificConfig?: SiteSpecificConfig) => Advertory;
925
946
 
926
947
  declare const prepareTag: (tag: AstDefineTagParams) => AstDefineTagParams;
927
948
 
@@ -962,6 +983,6 @@ const HANDLERS = {
962
983
  initNativeAd: initAdsOnKlart,
963
984
  };
964
985
 
965
- const advertory = createAdvertory(HANDLERS, siteSpecificConfig, xandrDriver);
986
+ const advertory = createAdvertory(HANDLERS, xandrDriver, siteSpecificConfig);
966
987
 
967
988
  export { Integration, Panorama, Takeover, Widescreen, advertory as default };