@schibsted/advertory 3.11.4 → 3.11.5-inv-2016.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/ad-native/cjs/index.js +1 -1
  2. package/ad-native/es/index.js +1 -1
  3. package/aftenposten/cjs/index.d.ts +11 -1
  4. package/aftenposten/cjs/index.js +1 -1
  5. package/aftenposten/es/_auto-entry_aftenposten-uUJxqH4d.js +1 -0
  6. package/aftenposten/es/{events-Ccj_hyG-.js → events-oowebcdX.js} +1 -1
  7. package/aftenposten/es/{index-CIl8iIWU.js → index-BMEgv2sK.js} +1 -1
  8. package/aftenposten/es/{index-CoSX-XPA.js → index-BNTw1sYT.js} +1 -1
  9. package/aftenposten/es/{index-Kh_7aXJ6.js → index-BVQD7bB7.js} +1 -1
  10. package/aftenposten/es/{index-DEaV7xPZ.js → index-CWtqz2K6.js} +1 -1
  11. package/aftenposten/es/{index-iuCK31PD.js → index-D21Mff7p.js} +1 -1
  12. package/aftenposten/es/{index-Cv4LP8YQ.js → index-DU8y7PEZ.js} +1 -1
  13. package/aftenposten/es/{index-PdJJsBBD.js → index-Dki6M5oQ.js} +1 -1
  14. package/aftenposten/es/{index-Cr0Mj1lz.js → index-JlyHe8dR.js} +1 -1
  15. package/aftenposten/es/{index-BJpGmhSP.js → index-qVdNkysk.js} +1 -1
  16. package/aftenposten/es/index.d.ts +11 -1
  17. package/aftenposten/es/index.js +1 -1
  18. package/aftenposten/es/{styles-DoMf6FTn.js → styles-3zFcjPfb.js} +1 -1
  19. package/aftenposten/es/{styles-B1DYDwkg.js → styles-B-UvFm2M.js} +1 -1
  20. package/aftenposten/es/{styles-Day-E1X5.js → styles-BvOAIIU-.js} +1 -1
  21. package/aftenposten/es/{styles-DJ5IYmRR.js → styles-CMrfLiGk.js} +1 -1
  22. package/aftenposten/es/{styles-Cf8NYWq0.js → styles-CWkNVCXh.js} +1 -1
  23. package/aftenposten/es/{styles-Bm6FvEUA.js → styles-CdVw18K-.js} +1 -1
  24. package/aftenposten/es/{styles-DBZ6kAP9.js → styles-DIAPsmhx.js} +1 -1
  25. package/aftenposten/es/{styles-hUHjaXLn.js → styles-DNijisSW.js} +1 -1
  26. package/aftenposten/es/{styles-DD5wG0xb.js → styles-DyQMc0gU.js} +1 -1
  27. package/aftenposten/es/{styles-C_maLT4U.js → styles-b10LSVmS.js} +1 -1
  28. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-DzGgGohe.js +1 -0
  29. package/aftenpostenv2/es/{events-QIJaNwGt.js → events-WcqkCTCg.js} +1 -1
  30. package/aftenpostenv2/es/{index-Buzv3ZIY.js → index-BMufIJZk.js} +1 -1
  31. package/aftenpostenv2/es/{index-CxV9Im-P.js → index-Bjg4Ux_b.js} +1 -1
  32. package/aftenpostenv2/es/{index-C5MuFYwv.js → index-CsnlnhBg.js} +1 -1
  33. package/aftenpostenv2/es/{index-BAviAWw-.js → index-D8LcLGEy.js} +1 -1
  34. package/aftenpostenv2/es/{index-CYATFY3T.js → index-DD0iJIX_.js} +1 -1
  35. package/aftenpostenv2/es/{index-BYNMysD1.js → index-DDLsn_yH.js} +1 -1
  36. package/aftenpostenv2/es/{index-Ewe3b7d9.js → index-D_s86qm4.js} +1 -1
  37. package/aftenpostenv2/es/{index-BtR5MLly.js → index-L-uvZ0Y3.js} +1 -1
  38. package/aftenpostenv2/es/{index-DWiKXFMY.js → index-vWBQwY1z.js} +1 -1
  39. package/aftenpostenv2/es/index.d.ts +11 -1
  40. package/aftenpostenv2/es/index.js +1 -1
  41. package/aftenpostenv2/es/{styles-C9uSymMX.js → styles-AdV3-ejq.js} +1 -1
  42. package/aftenpostenv2/es/{styles-C-dv1sYj.js → styles-BNbRfZ2i.js} +1 -1
  43. package/aftenpostenv2/es/{styles-4C7okTxZ.js → styles-C27IyQ-S.js} +1 -1
  44. package/aftenpostenv2/es/{styles-9Lc9kTQO.js → styles-C7f7bqyE.js} +1 -1
  45. package/aftenpostenv2/es/{styles-yAg8NmZC.js → styles-CZgme4Sv.js} +1 -1
  46. package/aftenpostenv2/es/{styles-BSeTCeZK.js → styles-CgmT-lXG.js} +1 -1
  47. package/aftenpostenv2/es/{styles-CwWRVWvA.js → styles-Ck0r9QzO.js} +1 -1
  48. package/aftenpostenv2/es/{styles-DfmWmZ2K.js → styles-Qy0V38Jb.js} +1 -1
  49. package/aftenpostenv2/es/{styles-DiSU2UFS.js → styles-atDteXQW.js} +1 -1
  50. package/aftenpostenv2/es/{styles-6MHAxV1G.js → styles-mfGZROlP.js} +1 -1
  51. package/aftonbladet/cjs/index.d.ts +11 -1
  52. package/aftonbladet/cjs/index.js +1 -1
  53. package/aftonbladet/es/_auto-entry_aftonbladet-DQMRJVxp.js +1 -0
  54. package/aftonbladet/es/{events-DhfbFiPo.js → events-BmuPc2zI.js} +1 -1
  55. package/aftonbladet/es/{index-Cfidrdnd.js → index-B5SG_L6H.js} +1 -1
  56. package/aftonbladet/es/{index-Cp2JulSJ.js → index-BztYZKOs.js} +1 -1
  57. package/aftonbladet/es/{index-C5w-x5BX.js → index-CDvY3-nU.js} +1 -1
  58. package/aftonbladet/es/{index-DH3EfdLp.js → index-CNTqMI3C.js} +1 -1
  59. package/aftonbladet/es/{index-DJe_vj7O.js → index-CQYbkVBG.js} +1 -1
  60. package/aftonbladet/es/{index-CsjLCdHr.js → index-CeApDoWL.js} +1 -1
  61. package/aftonbladet/es/{index-BWbmoCIU.js → index-DJmHBBvi.js} +1 -1
  62. package/aftonbladet/es/{index-OmwD65ab.js → index-Dc9x2tHL.js} +1 -1
  63. package/aftonbladet/es/{index-BYj88MA1.js → index-gvqchnDu.js} +1 -1
  64. package/aftonbladet/es/index.d.ts +11 -1
  65. package/aftonbladet/es/index.js +1 -1
  66. package/aftonbladet/es/{styles-HwY9E4bK.js → styles-3bkTLEJR.js} +1 -1
  67. package/aftonbladet/es/{styles-BI1L7SI4.js → styles-CA1lPwqE.js} +1 -1
  68. package/aftonbladet/es/{styles-huj_2fOX.js → styles-CW4M8OZK.js} +1 -1
  69. package/aftonbladet/es/{styles-9miFAFkx.js → styles-DCR4rAaW.js} +1 -1
  70. package/aftonbladet/es/{styles-DTiCYBZu.js → styles-DEFiBi-e.js} +1 -1
  71. package/aftonbladet/es/{styles-Buckzq8l.js → styles-UFwMSzVW.js} +1 -1
  72. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-D1n0LoZT.js +1 -0
  73. package/aftonbladetv2/es/{events-Dms4x6XL.js → events-BLfMFK2i.js} +1 -1
  74. package/aftonbladetv2/es/{index-CKcdYsmz.js → index-B78tjZeo.js} +1 -1
  75. package/aftonbladetv2/es/{index-BnRszSE0.js → index-BG0ZZjLD.js} +1 -1
  76. package/aftonbladetv2/es/{index-DvCRUUOG.js → index-BGDR-TSE.js} +1 -1
  77. package/aftonbladetv2/es/{index-ZlPHWpeX.js → index-Ct3ncX3B.js} +1 -1
  78. package/aftonbladetv2/es/{index-BYCBLB57.js → index-D0SomnT_.js} +1 -1
  79. package/aftonbladetv2/es/{index-XPieFyFs.js → index-D71qmC1b.js} +1 -1
  80. package/aftonbladetv2/es/{index-x6UM4Clu.js → index-diUTzHDQ.js} +1 -1
  81. package/aftonbladetv2/es/{index-DsJe3gXo.js → index-n8iWhEqG.js} +1 -1
  82. package/aftonbladetv2/es/{index-Ct99Y0fg.js → index-uXj6JeVW.js} +1 -1
  83. package/aftonbladetv2/es/index.d.ts +11 -1
  84. package/aftonbladetv2/es/index.js +1 -1
  85. package/aftonbladetv2/es/{styles-DOnb-fRZ.js → styles--lPU1159.js} +1 -1
  86. package/aftonbladetv2/es/{styles-L9zC1hFj.js → styles-C1H7JGL5.js} +1 -1
  87. package/aftonbladetv2/es/{styles-C_YZWhmh.js → styles-C4FHakLm.js} +1 -1
  88. package/aftonbladetv2/es/{styles-onzl2DAF.js → styles-CRiuUPTn.js} +1 -1
  89. package/aftonbladetv2/es/{styles-D3cX3KDx.js → styles-CdZakqJp.js} +1 -1
  90. package/aftonbladetv2/es/{styles-f3DH74p3.js → styles-D1L0dKgW.js} +1 -1
  91. package/brandmetrics/cjs/index.js +1 -1
  92. package/brandmetrics/es/index.js +1 -1
  93. package/bt/cjs/index.d.ts +11 -1
  94. package/bt/cjs/index.js +1 -1
  95. package/bt/es/_auto-entry_bt-CLHpDz34.js +1 -0
  96. package/bt/es/{events-DWFF0XlU.js → events-Delt2KrV.js} +1 -1
  97. package/{sa/es/index-CP-nPIQE.js → bt/es/index-B81FhrVl.js} +1 -1
  98. package/bt/es/{index-DpvT-Rrq.js → index-CKfRcDMQ.js} +1 -1
  99. package/{sa/es/index-DQnxrNq4.js → bt/es/index-Czha8usz.js} +1 -1
  100. package/bt/es/{index-CeMqRLv9.js → index-D-pf4xC5.js} +1 -1
  101. package/bt/es/{index-DgGZRNce.js → index-D2U0VzdB.js} +1 -1
  102. package/{sa/es/index-C88BkO5U.js → bt/es/index-DYoky3Rt.js} +1 -1
  103. package/bt/es/{index-FOIl5etK.js → index-Dw8knlc1.js} +1 -1
  104. package/bt/es/{index-CpzuQsNV.js → index-jbSHJs46.js} +1 -1
  105. package/bt/es/{index-DAEf_J_m.js → index-qIaG2S86.js} +1 -1
  106. package/bt/es/index.d.ts +11 -1
  107. package/bt/es/index.js +1 -1
  108. package/bt/es/{styles-DOVb1LXQ.js → styles-B3MVIcyC.js} +1 -1
  109. package/bt/es/{styles-DScF1nIO.js → styles-BHxI0kb0.js} +1 -1
  110. package/bt/es/{styles-liJVXEyL.js → styles-BJ5Lxelc.js} +1 -1
  111. package/{sa/es/styles-Bw7iQjmQ.js → bt/es/styles-C-9URtVU.js} +1 -1
  112. package/bt/es/{styles-hUjXuztl.js → styles-CkBxlHD3.js} +1 -1
  113. package/{sa/es/styles-B_vZCwlP.js → bt/es/styles-DmTjWDHy.js} +1 -1
  114. package/bt/es/{styles-2ahzQYLo.js → styles-WSZpaqOS.js} +1 -1
  115. package/bt/es/{styles-DGilIOGm.js → styles-XtMk880y.js} +1 -1
  116. package/bt/es/{styles-tvoIe4og.js → styles-f4XwYR1B.js} +1 -1
  117. package/btv2/es/_auto-entry_btv2-BWstbr-H.js +1 -0
  118. package/{omni/es/events-BuXhgHRk.js → btv2/es/events-0Vt9HCsr.js} +1 -1
  119. package/{omni/es/index-DsIOTrCa.js → btv2/es/index-BH01wI9o.js} +1 -1
  120. package/btv2/es/{index-BrBPm5DB.js → index-BOnzFg7P.js} +1 -1
  121. package/btv2/es/{index-Ch1F3WIs.js → index-BpFOn2mt.js} +1 -1
  122. package/btv2/es/{index-BK_EeLbd.js → index-Bv6svwmN.js} +1 -1
  123. package/btv2/es/{index-DDE1UQHd.js → index-CPTdWrEZ.js} +1 -1
  124. package/btv2/es/{index-D5Jf6Mxl.js → index-CapJDq9U.js} +1 -1
  125. package/{sav2/es/index-DKTKKPyF.js → btv2/es/index-Ch04IAuo.js} +1 -1
  126. package/btv2/es/{index-BPtzYdTv.js → index-DEXZ3VGk.js} +1 -1
  127. package/btv2/es/{index-zDoaQ7NH.js → index-_4LIrNnQ.js} +1 -1
  128. package/btv2/es/index.d.ts +11 -1
  129. package/btv2/es/index.js +1 -1
  130. package/{sav2/es/styles-CFKBjzwt.js → btv2/es/styles-BGeRf38f.js} +1 -1
  131. package/btv2/es/{styles-BNy8wN_y.js → styles-Bs4gws72.js} +1 -1
  132. package/btv2/es/{styles-CDgK5_Jw.js → styles-C2kDu2ji.js} +1 -1
  133. package/btv2/es/{styles-CqRyul8W.js → styles-Cy9R3NuG.js} +1 -1
  134. package/{vgv2/es/styles-Bg6NWiWb.js → btv2/es/styles-DXP5sfJ3.js} +1 -1
  135. package/{sav2/es/styles-BxibrvAz.js → btv2/es/styles-DqY6VzxO.js} +1 -1
  136. package/btv2/es/{styles-DsTbmZ3J.js → styles-nISv7__T.js} +1 -1
  137. package/{sav2/es/styles-aOV4AUSS.js → btv2/es/styles-pNiHG2xl.js} +1 -1
  138. package/common/cjs/index.js +1 -1
  139. package/common/es/index.js +1 -1
  140. package/e24/es/_auto-entry_e24-CDUVzklP.js +1 -0
  141. package/e24/es/{events-D87tYoTu.js → events-DbklY88J.js} +1 -1
  142. package/e24/es/{index-i3Gwwhq7.js → index-0yj1kGfp.js} +1 -1
  143. package/e24/es/{index-e4uJJnH7.js → index-BIIgvLke.js} +1 -1
  144. package/e24/es/{index-CcROKN7u.js → index-CWA9GAF9.js} +1 -1
  145. package/e24/es/{index-CPGCtbJX.js → index-DFSHJjie.js} +1 -1
  146. package/e24/es/{index-Ci9XTJAb.js → index-Dmu0Smok.js} +1 -1
  147. package/e24/es/{index-D9UIZfAT.js → index-DphueMsP.js} +1 -1
  148. package/e24/es/{index-Cm_41bR3.js → index-DtakbwIl.js} +1 -1
  149. package/{tv4/es/index-CKo2TJRA.js → e24/es/index-FB4smybo.js} +1 -1
  150. package/e24/es/{index-CDqQ6Jsm.js → index-SonRz8Q8.js} +1 -1
  151. package/e24/es/index.d.ts +11 -1
  152. package/e24/es/index.js +1 -1
  153. package/e24/es/{styles-Be782pgc.js → styles-0otZ2EAT.js} +1 -1
  154. package/e24/es/{styles-Dbo-EEAy.js → styles-BMyJ4uVH.js} +1 -1
  155. package/e24/es/{styles-9GyP0Fh9.js → styles-BVZp3fji.js} +1 -1
  156. package/e24/es/{styles-B12TirGn.js → styles-BZQ_5fST.js} +1 -1
  157. package/e24/es/{styles-3mwX7uG7.js → styles-C9BgFqwj.js} +1 -1
  158. package/e24/es/{styles-ssgxp-9a.js → styles-CQmnKsJY.js} +1 -1
  159. package/e24/es/{styles-BxgGUSqa.js → styles-CTZxuXit.js} +1 -1
  160. package/e24/es/{styles-DeJha6Mk.js → styles-CUZ2L_0Q.js} +1 -1
  161. package/{tv4/es/styles-CEtPXuhU.js → e24/es/styles-CvoBEgTp.js} +1 -1
  162. package/e24/es/{styles-Bg09hj_f.js → styles-DKlbkCRL.js} +1 -1
  163. package/e24/es/{styles-JMI_kJaR.js → styles-_Aac3pHB.js} +1 -1
  164. package/editory/cjs/index.js +1 -1
  165. package/editory/es/index.js +1 -1
  166. package/fotbollskanalen/cjs/index.d.ts +11 -1
  167. package/fotbollskanalen/cjs/index.js +1 -1
  168. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-naFn6ehi.js +1 -0
  169. package/fotbollskanalen/es/{events-CtxazKOE.js → events-DAz910F7.js} +1 -1
  170. package/fotbollskanalen/es/{index-Dt0hwls7.js → index-Bhtd9UhV.js} +1 -1
  171. package/fotbollskanalen/es/{index-CtCKs0AB.js → index-DUuxtiOs.js} +1 -1
  172. package/fotbollskanalen/es/{index-BMFX7sXH.js → index-DXhI1VFx.js} +1 -1
  173. package/fotbollskanalen/es/{index-BwIEuu8Q.js → index-DgrUc2Mf.js} +1 -1
  174. package/fotbollskanalen/es/{index-pJqKndSC.js → index-Ds4nq1_q.js} +1 -1
  175. package/fotbollskanalen/es/{index-Bqxya_Ea.js → index-Dv6Y4NxW.js} +1 -1
  176. package/fotbollskanalen/es/{index-C66zLngc.js → index-MAAfDiU9.js} +1 -1
  177. package/fotbollskanalen/es/{index-BYryqJTh.js → index-OU1_GnMC.js} +1 -1
  178. package/fotbollskanalen/es/{index-J_M26Tn6.js → index-feGOYRzY.js} +1 -1
  179. package/fotbollskanalen/es/index.d.ts +11 -1
  180. package/fotbollskanalen/es/index.js +1 -1
  181. package/fotbollskanalen/es/{styles-FD5FTjff.js → styles-7jN7Zt14.js} +1 -1
  182. package/fotbollskanalen/es/{styles-CkY6AFKa.js → styles-CNomqwdY.js} +1 -1
  183. package/fotbollskanalen/es/{styles-BY0U63am.js → styles-Cslku5A6.js} +1 -1
  184. package/fotbollskanalen/es/{styles-1WfRQUTI.js → styles-DEICgiky.js} +1 -1
  185. package/glimr/cjs/index.js +1 -1
  186. package/glimr/es/index.js +1 -1
  187. package/godt/cjs/index.d.ts +11 -1
  188. package/godt/cjs/index.js +1 -1
  189. package/kilkaya/cjs/index.js +1 -1
  190. package/kilkaya/es/index.js +1 -1
  191. package/klart/cjs/index.d.ts +11 -1
  192. package/klart/cjs/index.js +1 -1
  193. package/koket/cjs/index.d.ts +11 -1
  194. package/koket/cjs/index.js +1 -1
  195. package/koket/es/_auto-entry_koket-C16JoqJi.js +1 -0
  196. package/koket/es/{events-Bt32B6c1.js → events-eSCdLqO-.js} +1 -1
  197. package/koket/es/{index-ByKgL3ea.js → index-18XopGuv.js} +1 -1
  198. package/koket/es/{index-CgUuSPu8.js → index-B021A6ty.js} +1 -1
  199. package/koket/es/{index-Dj_MPGTU.js → index-B2PiHYrK.js} +1 -1
  200. package/{svdv2/es/index-BtvKoiYy.js → koket/es/index-COmy07hD.js} +1 -1
  201. package/koket/es/{index-arriLO-o.js → index-CUhHvLJo.js} +1 -1
  202. package/koket/es/{index-z-UMmbkx.js → index-DNHyIek7.js} +1 -1
  203. package/koket/es/{index-BmgYc41P.js → index-DOT-7mAg.js} +1 -1
  204. package/koket/es/{index-CxIoty2V.js → index-DUX1lB70.js} +1 -1
  205. package/koket/es/{index-Dg5Bu40T.js → index-gJZPc3eA.js} +1 -1
  206. package/koket/es/index.d.ts +11 -1
  207. package/koket/es/index.js +1 -1
  208. package/{svdv2/es/styles-Bo9WXwRO.js → koket/es/styles-Cf91Uj_a.js} +1 -1
  209. package/koket/es/{styles-COOJuQnA.js → styles-Cthdy59c.js} +1 -1
  210. package/koket/es/{styles-fabjxGVn.js → styles-D8o1kalz.js} +1 -1
  211. package/{svdv2/es/styles-1nnooC2v.js → koket/es/styles-DWrVNtmu.js} +1 -1
  212. package/minmote/cjs/index.d.ts +11 -1
  213. package/minmote/cjs/index.js +1 -1
  214. package/omni/es/_auto-entry_omni-xUxPDlJp.js +1 -0
  215. package/{tvnu/es/events-dbJoWEmm.js → omni/es/events-C9gOKOoF.js} +1 -1
  216. package/omni/es/{index-CT7nbdp2.js → index-CI7VBPtC.js} +1 -1
  217. package/omni/es/{index-Bt3KZGss.js → index-CPSI26eM.js} +1 -1
  218. package/omni/es/{index-B-R5kQ40.js → index-CSeSBVLD.js} +1 -1
  219. package/{btv2/es/index-DKtbULvt.js → omni/es/index-CtM3QoYA.js} +1 -1
  220. package/omni/es/{index-impki1Mb.js → index-DSRgiqCm.js} +1 -1
  221. package/omni/es/{index-DajyiIJT.js → index-PWg3nP1K.js} +1 -1
  222. package/{sav2/es/index-C2rnBaVI.js → omni/es/index-_T0988jv.js} +1 -1
  223. package/{vgv2/es/index-H0d2uPHA.js → omni/es/index-rU3dv0Gv.js} +1 -1
  224. package/omni/es/{index-C2FBvkC1.js → index-sBWYMmrV.js} +1 -1
  225. package/omni/es/index.d.ts +11 -1
  226. package/omni/es/index.js +1 -1
  227. package/omni/es/{styles-DlRYfEt6.js → styles-DvIUAW8v.js} +1 -1
  228. package/package.json +1 -1
  229. package/pent/cjs/index.d.ts +11 -1
  230. package/pent/cjs/index.js +1 -1
  231. package/sa/cjs/index.d.ts +11 -1
  232. package/sa/cjs/index.js +1 -1
  233. package/sa/es/_auto-entry_sa-zA-Tx-Zn.js +1 -0
  234. package/sa/es/{events-1TEwqTkG.js → events-PwcJ0Xnv.js} +1 -1
  235. package/{bt/es/index-BccJjfqs.js → sa/es/index-0nDfb8Sz.js} +1 -1
  236. package/{bt/es/index-_x8j0ZGq.js → sa/es/index-BUZ1FjAP.js} +1 -1
  237. package/sa/es/{index-C9p9PikE.js → index-BXgipt3o.js} +1 -1
  238. package/{vg/es/index-PD1cyzVk.js → sa/es/index-BmfSJjLc.js} +1 -1
  239. package/sa/es/{index-CZZuqSqk.js → index-BonIzH1N.js} +1 -1
  240. package/{vg/es/index-uMX4FX7Y.js → sa/es/index-C0W1h0a0.js} +1 -1
  241. package/{bt/es/index-DkGka7Df.js → sa/es/index-Ce1eve-k.js} +1 -1
  242. package/sa/es/{index-rrkjfWVa.js → index-Djq9zm3M.js} +1 -1
  243. package/sa/es/{index-CkkJwXj_.js → index-KSAK7mEm.js} +1 -1
  244. package/sa/es/index.d.ts +11 -1
  245. package/sa/es/index.js +1 -1
  246. package/sa/es/{styles-CnmR25Yj.js → styles-BfSnLi8i.js} +1 -1
  247. package/{bt/es/styles-MkzmBBZX.js → sa/es/styles-BwV0ldLH.js} +1 -1
  248. package/sa/es/{styles-C2Cs1ZNx.js → styles-CM9Z7epu.js} +1 -1
  249. package/{vg/es/styles-exk1Q4Xe.js → sa/es/styles-CgOwXkIX.js} +1 -1
  250. package/sa/es/{styles-BY2Gkdu9.js → styles-DDAtFq96.js} +1 -1
  251. package/{vg/es/styles-b3SSaru7.js → sa/es/styles-DQ8b4KFl.js} +1 -1
  252. package/sa/es/{styles-DBHxy_Aj.js → styles-DsQk8h9d.js} +1 -1
  253. package/sa/es/{styles-BhmiKXv_.js → styles-LSNufKHs.js} +1 -1
  254. package/sa/es/{styles-CPDzgQT5.js → styles-qzMELAIs.js} +1 -1
  255. package/sav2/es/_auto-entry_sav2-CsPfKG8V.js +1 -0
  256. package/sav2/es/{events-CWY0BMHN.js → events-D5imFjL3.js} +1 -1
  257. package/{tvnu/es/index-DhQu269Q.js → sav2/es/index-BVy9t7jR.js} +1 -1
  258. package/{tvnu/es/index-C8jADDhX.js → sav2/es/index-Bv5YfABl.js} +1 -1
  259. package/sav2/es/{index-DOoyPAPP.js → index-CVkZFfpD.js} +1 -1
  260. package/sav2/es/{index-57a-nwHV.js → index-CWlF_rz7.js} +1 -1
  261. package/sav2/es/{index-CDZrvE3m.js → index-ChGRsyz5.js} +1 -1
  262. package/sav2/es/{index-CqpfkEC2.js → index-Ci1YEgT4.js} +1 -1
  263. package/{btv2/es/index-Re6BJZQG.js → sav2/es/index-DEeFttgY.js} +1 -1
  264. package/{vgv2/es/index-D9_rBGQh.js → sav2/es/index-DPVgkpqo.js} +1 -1
  265. package/sav2/es/{index-CpMFZBdk.js → index-haGc9z35.js} +1 -1
  266. package/sav2/es/index.d.ts +11 -1
  267. package/sav2/es/index.js +1 -1
  268. package/{btv2/es/styles-BvtD47PR.js → sav2/es/styles-B17DMKcA.js} +1 -1
  269. package/{vgv2/es/styles-3DE7d40Y.js → sav2/es/styles-BKiT0Xs6.js} +1 -1
  270. package/sav2/es/{styles-CORJPKkB.js → styles-BxKJ2r4h.js} +1 -1
  271. package/{vgv2/es/styles-BLO38Nt2.js → sav2/es/styles-CUqPuytM.js} +1 -1
  272. package/sav2/es/{styles-BRM0cCGo.js → styles-DRhw1Zl5.js} +1 -1
  273. package/{btv2/es/styles-BMPzs3vK.js → sav2/es/styles-DjxjfmM5.js} +1 -1
  274. package/sav2/es/{styles-7rBOZLvq.js → styles-Dy40qeQV.js} +1 -1
  275. package/{btv2/es/styles-UsItCb38.js → sav2/es/styles-wHcQlWSZ.js} +1 -1
  276. package/svd/cjs/index.d.ts +11 -1
  277. package/svd/cjs/index.js +1 -1
  278. package/svd/es/_auto-entry_svd-Bqmhzef1.js +1 -0
  279. package/svd/es/{events-DiOBkdaR.js → events-BwaMP1UY.js} +1 -1
  280. package/svd/es/{index--sKTdtaT.js → index-3nOPR82k.js} +1 -1
  281. package/svd/es/{index-0F-kTJmJ.js → index-COjNZvTC.js} +1 -1
  282. package/svd/es/{index-BRAFolUo.js → index-CZJQ5SDz.js} +1 -1
  283. package/svd/es/{index-BtTo0Fso.js → index-DTC_og_s.js} +1 -1
  284. package/svd/es/{index-Cl6JJIRM.js → index-DTkDtGJE.js} +1 -1
  285. package/svd/es/{index-D40yVVBZ.js → index-DVQgvpWs.js} +1 -1
  286. package/svd/es/{index-Cxuqrll-.js → index-DWihdJtm.js} +1 -1
  287. package/svd/es/{index-CAl6Zwoj.js → index-Dbnx98t8.js} +1 -1
  288. package/svd/es/{index-M4mHpeZ9.js → index-OBw39y03.js} +1 -1
  289. package/svd/es/index.d.ts +11 -1
  290. package/svd/es/index.js +1 -1
  291. package/svd/es/{styles-CN5w3c9N.js → styles-BFi5Z-7z.js} +1 -1
  292. package/svd/es/{styles-BNcv7vzA.js → styles-BxvBLkWb.js} +1 -1
  293. package/svd/es/{styles-C88ucB5d.js → styles-C_MPxLGX.js} +1 -1
  294. package/svd/es/{styles-BxHb_AY-.js → styles-DKPJkl0i.js} +1 -1
  295. package/svd/es/{styles-CBZoYMk0.js → styles-DLCX22XR.js} +1 -1
  296. package/svd/es/{styles-Cb1ST55Q.js → styles-XiVAQhP8.js} +1 -1
  297. package/svdv2/es/_auto-entry_svdv2-Co4stGMB.js +1 -0
  298. package/svdv2/es/{events-DLT5FeOJ.js → events-DSsMj8gE.js} +1 -1
  299. package/svdv2/es/{index-CVOlBcKd.js → index-9P7IOlck.js} +1 -1
  300. package/svdv2/es/{index-DyChcZYn.js → index-B2ESQfoV.js} +1 -1
  301. package/svdv2/es/{index-C5DfoDVV.js → index-BV6vXVSX.js} +1 -1
  302. package/svdv2/es/{index-c4l7gc-i.js → index-CxLS3a38.js} +1 -1
  303. package/svdv2/es/{index-EXEwAGC6.js → index-D8VcY3YA.js} +1 -1
  304. package/{koket/es/index-OTjAuTDs.js → svdv2/es/index-RF_bjX6r.js} +1 -1
  305. package/svdv2/es/{index-BejCxTtE.js → index-TxHOq61H.js} +1 -1
  306. package/svdv2/es/{index-CmBcbolT.js → index-rOdXiXS7.js} +1 -1
  307. package/svdv2/es/{index-cVqg6UOM.js → index-ucS3Xg52.js} +1 -1
  308. package/svdv2/es/index.d.ts +11 -1
  309. package/svdv2/es/index.js +1 -1
  310. package/svdv2/es/{styles-CuGr2z59.js → styles-B-rml97p.js} +1 -1
  311. package/svdv2/es/{styles-CPy1p8Vp.js → styles-B7JlKFfz.js} +1 -1
  312. package/svdv2/es/{styles-B-XdO_8n.js → styles-BPXDS_1w.js} +1 -1
  313. package/{koket/es/styles-Sh5ZhRbJ.js → svdv2/es/styles-BnWLnP9z.js} +1 -1
  314. package/{koket/es/styles-Dc88VGSM.js → svdv2/es/styles-BrtNreA9.js} +1 -1
  315. package/svdv2/es/{styles-BaBOxLPL.js → styles-NWy4FCEH.js} +1 -1
  316. package/svdv2/es/{styles-CGqNPahf.js → styles-W5BUrkeE.js} +1 -1
  317. package/tek/cjs/index.d.ts +11 -1
  318. package/tek/cjs/index.js +1 -1
  319. package/tv4/cjs/index.d.ts +11 -1
  320. package/tv4/cjs/index.js +1 -1
  321. package/tv4/es/_auto-entry_tv4-Bohkf3Hd.js +1 -0
  322. package/tv4/es/{events-C4-f_Upn.js → events-DoIA6fQv.js} +1 -1
  323. package/tv4/es/{index-kAU6gDyG.js → index-BHJvMXkp.js} +1 -1
  324. package/tv4/es/{index-S2xTybr0.js → index-BeC1q_iG.js} +1 -1
  325. package/tv4/es/{index-DR6KGreJ.js → index-Bqy_imba.js} +1 -1
  326. package/tv4/es/{index-c6tvVjeX.js → index-BubcJopf.js} +1 -1
  327. package/tv4/es/{index-q_MBrICn.js → index-CEqF3V-m.js} +1 -1
  328. package/tv4/es/{index-DYUShRtI.js → index-D9dehYzb.js} +1 -1
  329. package/tv4/es/{index-D_tclyKQ.js → index-DWKKqeg_.js} +1 -1
  330. package/tv4/es/{index-DoL3zLlk.js → index-JgXpvk9g.js} +1 -1
  331. package/{e24/es/index-D6kn_Zhe.js → tv4/es/index-rrXlLqhR.js} +1 -1
  332. package/tv4/es/index.d.ts +11 -1
  333. package/tv4/es/index.js +1 -1
  334. package/tv4/es/{styles-BCMxfYdQ.js → styles-B0DEYJaF.js} +1 -1
  335. package/{e24/es/styles-BzWi44RO.js → tv4/es/styles-C1QIpF43.js} +1 -1
  336. package/tv4/es/{styles-CqQae2eO.js → styles-CmxTzbj1.js} +1 -1
  337. package/tv4/es/{styles-BA8xLm-k.js → styles-DcilEZBu.js} +1 -1
  338. package/tvnu/cjs/index.d.ts +11 -1
  339. package/tvnu/cjs/index.js +1 -1
  340. package/tvnu/es/_auto-entry_tvnu-BgFymd5q.js +1 -0
  341. package/{btv2/es/events-Cp-BhIzn.js → tvnu/es/events-B6k-Q087.js} +1 -1
  342. package/tvnu/es/{index-BA7L6VHL.js → index-C6L_PvsD.js} +1 -1
  343. package/tvnu/es/{index-DbDMRhOk.js → index-CeorXOR_.js} +1 -1
  344. package/tvnu/es/{index-Z6AurkfQ.js → index-D42FXN7n.js} +1 -1
  345. package/tvnu/es/{index-DWVQiJqx.js → index-D46Zhwq5.js} +1 -1
  346. package/{sav2/es/index-xDoLqi7x.js → tvnu/es/index-D8ipEy9p.js} +1 -1
  347. package/tvnu/es/{index-DNR8_fQJ.js → index-DQm0ZcIb.js} +1 -1
  348. package/tvnu/es/{index-Cf_g-D_j.js → index-DTAPkyHq.js} +1 -1
  349. package/{omni/es/index-Dz2oue_R.js → tvnu/es/index-DZNXmsbZ.js} +1 -1
  350. package/{omni/es/index-BuA9KLWq.js → tvnu/es/index-DsN1R6UX.js} +1 -1
  351. package/tvnu/es/index.d.ts +11 -1
  352. package/tvnu/es/index.js +1 -1
  353. package/tvnu/es/{styles-9qS0ITG2.js → styles-CbFkml4-.js} +1 -1
  354. package/tvnu/es/{styles-B4aU3vbm.js → styles-DHyEzAIG.js} +1 -1
  355. package/{btv2/es/styles-D-1NJfxL.js → tvnu/es/styles-LYXvzSHN.js} +1 -1
  356. package/types/index.d.ts +12 -2
  357. package/vg/cjs/index.d.ts +11 -1
  358. package/vg/cjs/index.js +1 -1
  359. package/vg/es/_auto-entry_vg-ye6ADZ1c.js +1 -0
  360. package/vg/es/{events-CCqqUdoK.js → events-DrzfYqRd.js} +1 -1
  361. package/{sa/es/index-B4O9clcj.js → vg/es/index-959-e3qg.js} +1 -1
  362. package/vg/es/{index-C-wVERAL.js → index-Bud28cNo.js} +1 -1
  363. package/vg/es/{index-eDu7oy6w.js → index-CBUXuGmG.js} +1 -1
  364. package/{sa/es/index-Bl5mnbMc.js → vg/es/index-CNhVK7sr.js} +1 -1
  365. package/vg/es/{index-Z3c1Odq3.js → index-D88N1JCZ.js} +1 -1
  366. package/vg/es/{index-B-Ey9AQF.js → index-Dq29g_H4.js} +1 -1
  367. package/vg/es/{index-DkfrSby4.js → index-Dxschdsc.js} +1 -1
  368. package/vg/es/{index-LCEKsPE0.js → index-Lu05VUTn.js} +1 -1
  369. package/vg/es/{index-ji7IQU-H.js → index-wkwls13v.js} +1 -1
  370. package/vg/es/index.d.ts +11 -1
  371. package/vg/es/index.js +1 -1
  372. package/vg/es/{styles-Du_Hz1vz.js → styles-AEijs-Xf.js} +1 -1
  373. package/vg/es/{styles-BPAGV6Lk.js → styles-B5mwHG7Z.js} +1 -1
  374. package/vg/es/{styles-C3y8Kczo.js → styles-Bp-3f9Uc.js} +1 -1
  375. package/vg/es/{styles-DN72_48A.js → styles-BsJ_2JBp.js} +1 -1
  376. package/vg/es/{styles-Dy-EHNYS.js → styles-Bxn7oUBb.js} +1 -1
  377. package/vg/es/{styles-iGp2q3ok.js → styles-BznN2kum.js} +1 -1
  378. package/vg/es/{styles-9daC3Bxg.js → styles-C0CG_4df.js} +1 -1
  379. package/vg/es/{styles-DP1dvony.js → styles-Co6g4zsv.js} +1 -1
  380. package/{sa/es/styles-Bog6G99I.js → vg/es/styles-DVT7bQwN.js} +1 -1
  381. package/vg/es/{styles-BdrYiQO_.js → styles-DfpSwGDm.js} +1 -1
  382. package/vg/es/{styles-CDdKTX7E.js → styles-DoPpPyB4.js} +1 -1
  383. package/vg/es/{styles-CEU82aFa.js → styles-E2Q2aLMc.js} +1 -1
  384. package/vg/es/{styles-BPyXCsb2.js → styles-EGmPQT_2.js} +1 -1
  385. package/{bt/es/styles-CUYGp__R.js → vg/es/styles-Z17Am5Ip.js} +1 -1
  386. package/vg/es/{styles-CpAVRXKf.js → styles-pRAxIZmi.js} +1 -1
  387. package/vgv2/es/_auto-entry_vgv2-CbxyFdiS.js +1 -0
  388. package/vgv2/es/{events-Lx2NOz7D.js → events-DbpvsaHk.js} +1 -1
  389. package/{tvnu/es/index-C4h8mNsE.js → vgv2/es/index-5_o_QeXm.js} +1 -1
  390. package/vgv2/es/{index-Btfn-YxW.js → index-B2CuoWCa.js} +1 -1
  391. package/vgv2/es/{index-BL4KAq3u.js → index-BWGoU95D.js} +1 -1
  392. package/{sav2/es/index-DaPXi-LE.js → vgv2/es/index-BieKfOim.js} +1 -1
  393. package/vgv2/es/{index-CEqN_Vxf.js → index-CAjXDCho.js} +1 -1
  394. package/vgv2/es/{index-Br7HhVnA.js → index-DBdigGH-.js} +1 -1
  395. package/vgv2/es/{index-9WXQ2dEc.js → index-DfXQeOna.js} +1 -1
  396. package/vgv2/es/{index-78Fdj1VA.js → index-XTMGKTCI.js} +1 -1
  397. package/vgv2/es/{index-C5jN7jaq.js → index-pORFXPZc.js} +1 -1
  398. package/vgv2/es/index.d.ts +11 -1
  399. package/vgv2/es/index.js +1 -1
  400. package/vgv2/es/{styles-DPJtWX3a.js → styles-B08wZLL5.js} +1 -1
  401. package/{tvnu/es/styles-CAXiRleF.js → vgv2/es/styles-B2YFuU0A.js} +1 -1
  402. package/vgv2/es/{styles-KhLdFF7f.js → styles-BiYbp5pf.js} +1 -1
  403. package/vgv2/es/{styles-CVBHX8qm.js → styles-Bml10ric.js} +1 -1
  404. package/vgv2/es/{styles-54itSzwJ.js → styles-C2fMhMrZ.js} +1 -1
  405. package/{sav2/es/styles-DQ2PyzIm.js → vgv2/es/styles-CH0tP6aR.js} +1 -1
  406. package/vgv2/es/{styles-PclyX2Fu.js → styles-CXk6D9kH.js} +1 -1
  407. package/vgv2/es/{styles-I1woEUs8.js → styles-CuDXHuLX.js} +1 -1
  408. package/vgv2/es/{styles-BqTCR9Zr.js → styles-DO2pdiCG.js} +1 -1
  409. package/vgv2/es/{styles-auZzGw_9.js → styles-DlkPAj1_.js} +1 -1
  410. package/vgv2/es/{styles-D6-LbdhJ.js → styles-DrIggONC.js} +1 -1
  411. package/vgv2/es/{styles-D4-wWQCf.js → styles-SzSSsJ8p.js} +1 -1
  412. package/vgv2/es/{styles-7J_vDCTE.js → styles-VEvvm2zE.js} +1 -1
  413. package/vgv2/es/{styles-B0nVnMpO.js → styles-ezUtAD3N.js} +1 -1
  414. package/{sav2/es/styles-BrFyTMxa.js → vgv2/es/styles-j-CYfNWA.js} +1 -1
  415. package/video/cjs/index.js +1 -1
  416. package/video/es/index.js +1 -1
  417. package/aftenposten/es/_auto-entry_aftenposten-PZL1C7pW.js +0 -1
  418. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-B2SdifSb.js +0 -1
  419. package/aftonbladet/es/_auto-entry_aftonbladet-0klSZ2a6.js +0 -1
  420. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DyxfbT17.js +0 -1
  421. package/bt/es/_auto-entry_bt-zmqosl5i.js +0 -1
  422. package/btv2/es/_auto-entry_btv2-BH44guox.js +0 -1
  423. package/e24/es/_auto-entry_e24-CMNWnUkJ.js +0 -1
  424. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DXOfh0Bk.js +0 -1
  425. package/koket/es/_auto-entry_koket-DzUtiLSd.js +0 -1
  426. package/omni/es/_auto-entry_omni-DGc_NIMQ.js +0 -1
  427. package/sa/es/_auto-entry_sa-izXaHro7.js +0 -1
  428. package/sav2/es/_auto-entry_sav2-aSzshq0U.js +0 -1
  429. package/svd/es/_auto-entry_svd-D1L2EdNT.js +0 -1
  430. package/svdv2/es/_auto-entry_svdv2-O84IVSUQ.js +0 -1
  431. package/tv4/es/_auto-entry_tv4-CadJ2M9s.js +0 -1
  432. package/tvnu/es/_auto-entry_tvnu-B37EXWfF.js +0 -1
  433. package/vg/es/_auto-entry_vg-Bn30BWxq.js +0 -1
  434. package/vgv2/es/_auto-entry_vgv2-BGlbp4YW.js +0 -1
@@ -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""}}class c{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:r}=this.parseKilkayaData(e);return{id:r,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,n,r,i,o,a,s,l,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===i||i.call(r,u):(null===(o=this.pulse)||void 0===o?void 0:o.trackViewUIElement)?null===(s=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===s||s.call(a,u):null===(d=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===d||d.call(l,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,n,r,i,o,a;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(i=(r=this.pulse).trackClickUIElement)||void 0===i||i.call(r,s):null===(a=(o=this.pulse).trackElementClick)||void 0===a||a.call(o,s)})}}class u extends c{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,r,i,o,a;const{clientName:s,creativeId:l,itemId:d,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===r?void 0:r.call(n))&&void 0!==i?i:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=l?l:d},page:{"@id":null!=g?g:c,"@type":u,url:location.origin},tags:null===(a=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getTags)||void 0===a?void 0:a.call(o,e)}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const g=/^glci_/,v="gender_",p="geo_",f="male",y="female";class h extends c{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:r="",clientName:i="",creativeId:o="",link:a=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:l}=this.getPlacementData(e),d={publicUrl:a,urlPath:a?new URL(a).pathname:""},{publicUrl:c,urlPath:u}=a&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,a))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:r,placement:{columnName:s,primaryPosition:l},tags:[i,r,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:i,"spt:creativeId":o,pageTitle:r,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const m="no",b="se",w="[data-k5a-teaser-analytics]",k=(e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const o=new(r===b?h:u)(e,t,n),a=new WeakMap,s=e=>{const t=a.get(e);t&&(t.disconnect(),a.delete(e))},l=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,r=n.querySelector(w);Boolean(null==r?void 0:r.dataset.k5aTeaserAnalytics)?(o.trackContentView(n),t.unobserve(e.target),s(n)):((e,t)=>{if(a.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(w);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(o.trackContentView(e),t.unobserve(e),s(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),a.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{l.observe(e),e.addEventListener("click",()=>o.trackContentClick(e))})},P=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},T=(e,t)=>{console.warn("[Advertory WARN]: ",e)},E=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 P("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(P("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{P("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{P("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);P("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),C="cmp:loaded";let I="undefined"!=typeof window?window._tcf_:void 0,S=!1;const A=(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&&(P("TCF bypass param detected, returning consent: true"),!0):(P("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(S)return null;if(!I)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=I.getConsentedToAllSync();return P(`TCF consented to all is: ${t}`),I.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(P("Getting TCF consent manager..."),window._tcf_)return P("TCF consent manager is already available"),I=window._tcf_,void e(I);P("TCF consent manager is not available");const n=()=>{P("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(I=window._tcf_,e(I)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(C,n),S=!0,t(new Error("Timeout waiting for CMP to load"))},o);P("Listening for CMP loaded event..."),document.addEventListener(C,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 P(`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===b,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===m;if(t||n)return P("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield E(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();return null!==i?i:yield new Promise((e,t)=>{try{if(!I)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(()=>{P("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);I.onTcfReady(()=>{P("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),I.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class O{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 P("[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 j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U,L;var _=j(function(){if(L)return U;L=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)},{})},U=s}());const M={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},N=(e,t)=>_(e,t,M),$={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},D=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||T("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||T("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||T("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||T("pageContext.deviceType is required."),n||T("pageOptions is required."),r||T("placements is required."),(null==i?void 0:i.defaultThreshold)||T("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])&&T(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},x=["placements","takeover","refreshConfig","editory"],B=(e,t)=>Object.assign(Object.assign({},e),t),F={editory:(e,t)=>{var n;return N(null!==(n=e)&&void 0!==n?n:{},t)},pageContext:B,pageOptions:B,tcf:B};class K{set(e){D(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n={};for(const e of x){const r=t[e];void 0===r||e in F||(n[e]=r)}Object.assign(e,n);const r=e;for(const e of Object.keys(F))Object.hasOwn(t,e)&&void 0!==t[e]&&(r[e]=F[e](r[e],t[e]))})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=N(K.DEFAULT_SITE_HANDLERS,e)}}K.DEFAULT_SITE_HANDLERS={siteEvents:$,initNativeAd:()=>{}};const q=new K;q.modifyConfigProperties.bind(q);const R=864e5,V=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return P("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=R)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=R)=>{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 P("Error with parsing localStorage data"),null}}}})(),z=e=>e.startsWith("glci_"),H=()=>{var e;return((e=[])=>e.filter(z))(null!==(e=(()=>{const e=V.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},J=()=>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 O(n),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===f||o===y?`${v}${o}`:void 0}catch(e){return}var e}),W=()=>t(void 0,void 0,void 0,function*(){const e=[],t=yield J(),n=(()=>{const e=H().map(e=>`${p}${e.replace(g,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),X="front";class G{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===X?"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 Q{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Y{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class Z{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class ee{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===X?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class te{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 ne{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 G,"no-aftenposten":new Q,[o]:new Y,"no-bergenstidende":new Y,[i]:new Z,"no-stavangeraftenblad":new Z,[n]:new ee,[a]:new te}[c]||new d;k(e.instance,g,t,u)}injectKilkayaMeta(e){return t(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield W();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(P(`Kilkaya event for slot: ${n}`),!n)return void P("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(P(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):P("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";(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 P(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return P(`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}=A(e,0,n);return(yield i())?(P(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(P(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");l&&(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%"}},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 ne;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""}}class c{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:r}=this.parseKilkayaData(e);return{id:r,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,n,r,i,o,a,s,l,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===i||i.call(r,u):(null===(o=this.pulse)||void 0===o?void 0:o.trackViewUIElement)?null===(s=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===s||s.call(a,u):null===(d=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===d||d.call(l,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,n,r,i,o,a;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(i=(r=this.pulse).trackClickUIElement)||void 0===i||i.call(r,s):null===(a=(o=this.pulse).trackElementClick)||void 0===a||a.call(o,s)})}}class u extends c{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,r,i,o,a;const{clientName:s,creativeId:l,itemId:d,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===r?void 0:r.call(n))&&void 0!==i?i:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=l?l:d},page:{"@id":null!=g?g:c,"@type":u,url:location.origin},tags:null===(a=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getTags)||void 0===a?void 0:a.call(o,e)}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const g=/^glci_/,v="gender_",p="geo_",f="male",y="female";class h extends c{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:r="",clientName:i="",creativeId:o="",link:a=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:l}=this.getPlacementData(e),d={publicUrl:a,urlPath:a?new URL(a).pathname:""},{publicUrl:c,urlPath:u}=a&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,a))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:r,placement:{columnName:s,primaryPosition:l},tags:[i,r,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:i,"spt:creativeId":o,pageTitle:r,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const m="no",b="se",w="[data-k5a-teaser-analytics]",k=(e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const o=new(r===b?h:u)(e,t,n),a=new WeakMap,s=e=>{const t=a.get(e);t&&(t.disconnect(),a.delete(e))},l=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,r=n.querySelector(w);Boolean(null==r?void 0:r.dataset.k5aTeaserAnalytics)?(o.trackContentView(n),t.unobserve(e.target),s(n)):((e,t)=>{if(a.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(w);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(o.trackContentView(e),t.unobserve(e),s(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),a.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{l.observe(e),e.addEventListener("click",()=>o.trackContentClick(e))})},P=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},T=(e,t)=>{console.warn("[Advertory WARN]: ",e)},E=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 P("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(P("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{P("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{P("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);P("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),C="cmp:loaded";let I="undefined"!=typeof window?window._tcf_:void 0,S=!1;const A=(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&&(P("TCF bypass param detected, returning consent: true"),!0):(P("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(S)return null;if(!I)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=I.getConsentedToAllSync();return P(`TCF consented to all is: ${t}`),I.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(P("Getting TCF consent manager..."),window._tcf_)return P("TCF consent manager is already available"),I=window._tcf_,void e(I);P("TCF consent manager is not available");const n=()=>{P("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(I=window._tcf_,e(I)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(C,n),S=!0,t(new Error("Timeout waiting for CMP to load"))},o);P("Listening for CMP loaded event..."),document.addEventListener(C,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 P(`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===b,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===m;if(t||n)return P("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield E(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();return null!==i?i:yield new Promise((e,t)=>{try{if(!I)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(()=>{P("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);I.onTcfReady(()=>{P("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),I.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class O{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 P("[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 j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U,L;var _=j(function(){if(L)return U;L=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)},{})},U=s}());const M={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},N=(e,t)=>_(e,t,M),$=(e,t)=>Object.assign(Object.assign({},e),t),D=(e,t)=>{var n;return N(null!==(n=e)&&void 0!==n?n:{},t)},x={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},B=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||T("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||T("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||T("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||T("pageContext.deviceType is required."),n||T("pageOptions is required."),r||T("placements is required."),(null==i?void 0:i.defaultThreshold)||T("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])&&T(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},F={placements:(e,t)=>t,takeover:D,refreshConfig:$,editory:D,appearanceConfig:D,pageContext:$,pageOptions:$,tcf:$};class K{set(e){B(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(F)){const r=t[e];void 0!==r&&(n[e]=F[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=N(K.DEFAULT_SITE_HANDLERS,e)}}K.DEFAULT_SITE_HANDLERS={siteEvents:x,initNativeAd:()=>{}};const q=new K;q.modifyConfigProperties.bind(q);const R=864e5,V=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return P("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=R)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=R)=>{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 P("Error with parsing localStorage data"),null}}}})(),z=e=>e.startsWith("glci_"),H=()=>{var e;return((e=[])=>e.filter(z))(null!==(e=(()=>{const e=V.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},J=()=>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 O(n),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===f||o===y?`${v}${o}`:void 0}catch(e){return}var e}),W=()=>t(void 0,void 0,void 0,function*(){const e=[],t=yield J(),n=(()=>{const e=H().map(e=>`${p}${e.replace(g,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e}),X="front";class G{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===X?"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 Q{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Y{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class Z{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class ee{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===X?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class te{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 ne{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 G,"no-aftenposten":new Q,[o]:new Y,"no-bergenstidende":new Y,[i]:new Z,"no-stavangeraftenblad":new Z,[n]:new ee,[a]:new te}[c]||new d;k(e.instance,g,t,u)}injectKilkayaMeta(e){return t(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield W();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(P(`Kilkaya event for slot: ${n}`),!n)return void P("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(P(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):P("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";(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 P(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return P(`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}=A(e,0,n);return(yield i())?(P(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(P(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");l&&(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%"}},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 ne;yield t.run(e)});
@@ -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""}}class u{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:r}=this.parseKilkayaData(e);return{id:r,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return n(this,void 0,void 0,function*(){var t,n,r,i,o,a,s,l,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===i||i.call(r,u):(null===(o=this.pulse)||void 0===o?void 0:o.trackViewUIElement)?null===(s=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===s||s.call(a,u):null===(d=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===d||d.call(l,u)})}trackContentClick(e){return n(this,void 0,void 0,function*(){var t,n,r,i,o,a;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(i=(r=this.pulse).trackClickUIElement)||void 0===i||i.call(r,s):null===(a=(o=this.pulse).trackElementClick)||void 0===a||a.call(o,s)})}}class g extends u{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,r,i,o,a;const{clientName:s,creativeId:l,itemId:d,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===r?void 0:r.call(n))&&void 0!==i?i:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=l?l:d},page:{"@id":null!=g?g:c,"@type":u,url:location.origin},tags:null===(a=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getTags)||void 0===a?void 0:a.call(o,e)}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v=/^glci_/,p="gender_",f="geo_",h="male",y="female";class m extends u{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:r="",clientName:i="",creativeId:o="",link:a=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:l}=this.getPlacementData(e),d={publicUrl:a,urlPath:a?new URL(a).pathname:""},{publicUrl:c,urlPath:u}=a&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,a))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:r,placement:{columnName:s,primaryPosition:l},tags:[i,r,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:i,"spt:creativeId":o,pageTitle:r,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const b="no",w="se",k="[data-k5a-teaser-analytics]",P=(e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const o=new(r===w?m:g)(e,t,n),a=new WeakMap,s=e=>{const t=a.get(e);t&&(t.disconnect(),a.delete(e))},l=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,r=n.querySelector(k);Boolean(null==r?void 0:r.dataset.k5aTeaserAnalytics)?(o.trackContentView(n),t.unobserve(e.target),s(n)):((e,t)=>{if(a.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(k);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(o.trackContentView(e),t.unobserve(e),s(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),a.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{l.observe(e),e.addEventListener("click",()=>o.trackContentClick(e))})},T=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},E=(e,t)=>{console.warn("[Advertory WARN]: ",e)},C=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 T("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(T("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{T("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{T("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);T("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),I="cmp:loaded";let S="undefined"!=typeof window?window._tcf_:void 0,A=!1;const O=(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&&(T("TCF bypass param detected, returning consent: true"),!0):(T("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(A)return null;if(!S)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=S.getConsentedToAllSync();return T(`TCF consented to all is: ${t}`),S.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(T("Getting TCF consent manager..."),window._tcf_)return T("TCF consent manager is already available"),S=window._tcf_,void e(S);T("TCF consent manager is not available");const n=()=>{T("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(S=window._tcf_,e(S)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(I,n),A=!0,t(new Error("Timeout waiting for CMP to load"))},o);T("Listening for CMP loaded event..."),document.addEventListener(I,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 T(`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===w,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===b;if(t||n)return T("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield C(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();return null!==i?i:yield new Promise((e,t)=>{try{if(!S)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(()=>{T("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);S.onTcfReady(()=>{T("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),S.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class j{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 T("[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 U(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L,_;var M=U(function(){if(_)return L;_=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)},{})},L=s}());const N={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},$=(e,t)=>M(e,t,N),D={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},B=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||E("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||E("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||E("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||E("pageContext.deviceType is required."),n||E("pageOptions is required."),r||E("placements is required."),(null==i?void 0:i.defaultThreshold)||E("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])&&E(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},F=["placements","takeover","refreshConfig","editory"],K=(e,t)=>Object.assign(Object.assign({},e),t),q={editory:(e,t)=>{var n;return $(null!==(n=e)&&void 0!==n?n:{},t)},pageContext:K,pageOptions:K,tcf:K};class x{set(e){B(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n={};for(const e of F){const r=t[e];void 0===r||e in q||(n[e]=r)}Object.assign(e,n);const r=e;for(const e of Object.keys(q))Object.hasOwn(t,e)&&void 0!==t[e]&&(r[e]=q[e](r[e],t[e]))})(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=$(x.DEFAULT_SITE_HANDLERS,e)}}x.DEFAULT_SITE_HANDLERS={siteEvents:D,initNativeAd:()=>{}};const R=new x;R.modifyConfigProperties.bind(R);const V=864e5,z=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return T("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=V)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=V)=>{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 T("Error with parsing localStorage data"),null}}}})(),H=e=>e.startsWith("glci_"),J=()=>{var e;return((e=[])=>e.filter(H))(null!==(e=(()=>{const e=z.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},W=()=>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 j(t),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===h||o===y?`${p}${o}`:void 0}catch(e){return}var e}),X=()=>n(void 0,void 0,void 0,function*(){const e=[],t=yield W(),n=(()=>{const e=J().map(e=>`${f}${e.replace(v,"")}`);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:n,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[i]:new d,[l]:new Q,"no-aftenposten":new Y,[a]:new Z,"no-bergenstidende":new Z,[o]:new ee,"no-stavangeraftenblad":new ee,[r]:new te,[s]:new ne}[n]||new c;P(e.instance,g,t,u)}injectKilkayaMeta(e){return n(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(T(`Kilkaya event for slot: ${n}`),!n)return void T("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(T(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):T("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";(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 T(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return T(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=O(e,0,n);return(yield i())?(T(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(T(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");l&&(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 ie=({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%"}},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})]}))},oe=e=>n(void 0,void 0,void 0,function*(){const t=new re;yield t.run(e)});export{ie as Kilkaya,oe 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""}}class u{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:r}=this.parseKilkayaData(e);return{id:r,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return n(this,void 0,void 0,function*(){var t,n,r,i,o,a,s,l,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===i||i.call(r,u):(null===(o=this.pulse)||void 0===o?void 0:o.trackViewUIElement)?null===(s=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===s||s.call(a,u):null===(d=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===d||d.call(l,u)})}trackContentClick(e){return n(this,void 0,void 0,function*(){var t,n,r,i,o,a;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(i=(r=this.pulse).trackClickUIElement)||void 0===i||i.call(r,s):null===(a=(o=this.pulse).trackElementClick)||void 0===a||a.call(o,s)})}}class g extends u{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,r,i,o,a;const{clientName:s,creativeId:l,itemId:d,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(r=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===r?void 0:r.call(n))&&void 0!==i?i:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=l?l:d},page:{"@id":null!=g?g:c,"@type":u,url:location.origin},tags:null===(a=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getTags)||void 0===a?void 0:a.call(o,e)}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v=/^glci_/,p="gender_",f="geo_",h="male",m="female";class y extends u{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:r="",clientName:i="",creativeId:o="",link:a=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:l}=this.getPlacementData(e),d={publicUrl:a,urlPath:a?new URL(a).pathname:""},{publicUrl:c,urlPath:u}=a&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,a))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:r,placement:{columnName:s,primaryPosition:l},tags:[i,r,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:i,"spt:creativeId":o,pageTitle:r,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:r}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const b="no",w="se",k="[data-k5a-teaser-analytics]",P=(e,t,n,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const o=new(r===w?y:g)(e,t,n),a=new WeakMap,s=e=>{const t=a.get(e);t&&(t.disconnect(),a.delete(e))},l=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,r=n.querySelector(k);Boolean(null==r?void 0:r.dataset.k5aTeaserAnalytics)?(o.trackContentView(n),t.unobserve(e.target),s(n)):((e,t)=>{if(a.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(k);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(o.trackContentView(e),t.unobserve(e),s(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),a.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{l.observe(e),e.addEventListener("click",()=>o.trackContentClick(e))})},T=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},E=(e,t)=>{console.warn("[Advertory WARN]: ",e)},C=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 T("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(T("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{T("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{T("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);T("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),I="cmp:loaded";let S="undefined"!=typeof window?window._tcf_:void 0,A=!1;const O=(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&&(T("TCF bypass param detected, returning consent: true"),!0):(T("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(A)return null;if(!S)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=S.getConsentedToAllSync();return T(`TCF consented to all is: ${t}`),S.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(T("Getting TCF consent manager..."),window._tcf_)return T("TCF consent manager is already available"),S=window._tcf_,void e(S);T("TCF consent manager is not available");const n=()=>{T("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(S=window._tcf_,e(S)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(I,n),A=!0,t(new Error("Timeout waiting for CMP to load"))},o);T("Listening for CMP loaded event..."),document.addEventListener(I,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 T(`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===w,n=(null==e?void 0:e.advertisingCMPSignalEnabled)&&r===b;if(t||n)return T("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield C(e);if(!(null==e?void 0:e.enabled))return!0;const i=l();return null!==i?i:yield new Promise((e,t)=>{try{if(!S)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(()=>{T("TCF isConsentedToAll timed out, resolving with false"),n(!1)},o);S.onTcfReady(()=>{T("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),S.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}};class U{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 T("[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 j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L,_;var M=j(function(){if(_)return L;_=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)},{})},L=s}());const N={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},$=(e,t)=>M(e,t,N),D=(e,t)=>Object.assign(Object.assign({},e),t),B=(e,t)=>{var n;return $(null!==(n=e)&&void 0!==n?n:{},t)},F={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},K=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||E("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||E("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||E("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||E("pageContext.deviceType is required."),n||E("pageOptions is required."),r||E("placements is required."),(null==i?void 0:i.defaultThreshold)||E("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])&&E(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},q={placements:(e,t)=>t,takeover:B,refreshConfig:D,editory:B,appearanceConfig:B,pageContext:D,pageOptions:D,tcf:D};class x{set(e){K(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");((e,t)=>{const n=e;for(const e of Object.keys(q)){const r=t[e];void 0!==r&&(n[e]=q[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=$(x.DEFAULT_SITE_HANDLERS,e)}}x.DEFAULT_SITE_HANDLERS={siteEvents:F,initNativeAd:()=>{}};const R=new x;R.modifyConfigProperties.bind(R);const V=864e5,z=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return T("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=V)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=V)=>{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 T("Error with parsing localStorage data"),null}}}})(),H=e=>e.startsWith("glci_"),J=()=>{var e;return((e=[])=>e.filter(H))(null!==(e=(()=>{const e=z.getByTimestamp("glimrTags");return e&&"string"!=typeof e?null==e?void 0:e.tags:null})())&&void 0!==e?e:[])},W=()=>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 U(t),i=yield r.getIdentityUser(),{gender:o}=null!=i?i:{};return o===h||o===m?`${p}${o}`:void 0}catch(e){return}var e}),X=()=>n(void 0,void 0,void 0,function*(){const e=[],t=yield W(),n=(()=>{const e=J().map(e=>`${f}${e.replace(v,"")}`);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:n,countryCode:u}}){if(!(null==e?void 0:e.instance))return;const g={[i]:new d,[l]:new Q,"no-aftenposten":new Y,[a]:new Z,"no-bergenstidende":new Z,[o]:new ee,"no-stavangeraftenblad":new ee,[r]:new te,[s]:new ne}[n]||new c;P(e.instance,g,t,u)}injectKilkayaMeta(e){return n(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(T(`Kilkaya event for slot: ${n}`),!n)return void T("Kilkaya slot empty, Xandr backfill won't be loaded");const r=n.parentElement;r?(T(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):T("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";(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 T(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return T(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=O(e,0,n);return(yield i())?(T(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(T(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}))(i,o,a,"kilkaya");l&&(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 ie=({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%"}},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})]}))},oe=e=>n(void 0,void 0,void 0,function*(){const t=new re;yield t.run(e)});export{ie as Kilkaya,oe as runKilkaya};
@@ -809,6 +809,16 @@ interface DevicePlacementBatches {
809
809
  type PlacementBatchesConfig = {
810
810
  [device in DeviceType]: DevicePlacementBatches;
811
811
  };
812
+ interface UpdatableSiteConfig {
813
+ placements?: SiteConfig['placements'];
814
+ takeover?: SiteConfig['takeover'];
815
+ refreshConfig?: SiteConfig['refreshConfig'];
816
+ editory?: SiteConfig['editory'];
817
+ tcf?: SiteConfig['tcf'];
818
+ pageContext?: Partial<PageContext>;
819
+ pageOptions?: Partial<AstPageOptions>;
820
+ appearanceConfig?: Partial<AppearanceConfig>;
821
+ }
812
822
 
813
823
  declare const siteSpecificConfig: SiteSpecificConfig;
814
824
 
@@ -870,7 +880,7 @@ interface VideoStream {
870
880
 
871
881
  interface Advertory {
872
882
  init: (config: SiteConfig | EditorySiteConfig) => Promise<void>;
873
- update: (configToUpdate?: Partial<SiteConfig>, options?: UpdateAdvertoryConfig) => Promise<Array<Placement>>;
883
+ update: (configToUpdate?: UpdatableSiteConfig, options?: UpdateAdvertoryConfig) => Promise<Array<Placement>>;
874
884
  renderNativeAd: (adObj: AstAdObj, options?: Partial<SiteConfig>) => void;
875
885
  getVideoPPIDs: (country: Country) => Promise<string>;
876
886
  createInitNativeAd: (config: CreateInitNativeAdConfig) => InitNativeAd;