@schibsted/advertory 3.7.4 → 3.7.6

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 (347) hide show
  1. package/ad-native/cjs/index.js +1 -1
  2. package/ad-native/es/index.js +1 -1
  3. package/aftenposten/cjs/index.js +1 -1
  4. package/aftenposten/es/{_auto-entry_aftenposten-D8gbetae.js → _auto-entry_aftenposten-BcIPO2_w.js} +1 -1
  5. package/aftenposten/es/{events-c6w5nUUN.js → events-Bk_gPHRz.js} +1 -1
  6. package/aftenposten/es/{index-J39KjbME.js → index-1g_Z4i1Y.js} +1 -1
  7. package/aftenposten/es/{index-DzM9y0kH.js → index-B2Wdv1Sj.js} +1 -1
  8. package/aftenposten/es/{index-gwMBNwjO.js → index-BB8levUx.js} +1 -1
  9. package/aftenposten/es/{index-DxKHOmmx.js → index-BjW3QrIK.js} +1 -1
  10. package/aftenposten/es/{index-DtST6JTl.js → index-CmgbB425.js} +1 -1
  11. package/aftenposten/es/{index-DTKxym1X.js → index-DUUYe8Be.js} +1 -1
  12. package/aftenposten/es/{index-CcNRr4F7.js → index-DVyn-vPZ.js} +1 -1
  13. package/aftenposten/es/{index-PTHbPEpX.js → index-DZWjMbYW.js} +1 -1
  14. package/aftenposten/es/{index-DzvS0ukn.js → index-Z8YvmZ-6.js} +1 -1
  15. package/aftenposten/es/index.js +1 -1
  16. package/aftenposten/es/{styles-Chyo7NXk.js → styles-Bpz1fEvj.js} +1 -1
  17. package/aftenposten/es/{styles-Dej0lLC_.js → styles-BqeAC4M3.js} +1 -1
  18. package/aftenposten/es/{styles-CFvg-DHQ.js → styles-CLnkAZ3S.js} +1 -1
  19. package/aftenposten/es/{styles-QKPKiXMf.js → styles-CV2BEybe.js} +1 -1
  20. package/aftenposten/es/{styles-D163cTDv.js → styles-Cj0oA7jR.js} +1 -1
  21. package/aftenposten/es/{styles-DGak1Dyy.js → styles-DUdmRpC0.js} +1 -1
  22. package/aftenposten/es/{styles-BxMePyOZ.js → styles-Do4yZWq8.js} +1 -1
  23. package/aftenposten/es/{styles--7roB4zF.js → styles-l8q4zAoa.js} +1 -1
  24. package/aftenposten/es/{styles-Ia3jgrSx.js → styles-oiH-f5bV.js} +1 -1
  25. package/aftenposten/es/{styles-BhQzgEWG.js → styles-wFgk-AIF.js} +1 -1
  26. package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-BVVM8E0Q.js → _auto-entry_aftenpostenv2-34VJBRbj.js} +1 -1
  27. package/aftenpostenv2/es/{events-0gnOLezR.js → events-De5IJbfy.js} +1 -1
  28. package/aftenpostenv2/es/{index-C7tu5Url.js → index-AUgUxish.js} +1 -1
  29. package/aftenpostenv2/es/{index-DbZ5DD2a.js → index-Bmh3quPK.js} +1 -1
  30. package/aftenpostenv2/es/{index-Dw1rEEtj.js → index-CZlu2528.js} +1 -1
  31. package/aftenpostenv2/es/{index-DVbHkQ5n.js → index-CdE9ZoL2.js} +1 -1
  32. package/aftenpostenv2/es/{index-BsjFAl4N.js → index-D2yM5bQM.js} +1 -1
  33. package/aftenpostenv2/es/{index-BEAwvfQU.js → index-D7K6NWzF.js} +1 -1
  34. package/aftenpostenv2/es/{index-Ccu3JBJt.js → index-DDP1b7UJ.js} +1 -1
  35. package/aftenpostenv2/es/{index-BeGdrxrN.js → index-DGe2RY-Q.js} +1 -1
  36. package/aftenpostenv2/es/{index-Cgkbnyjf.js → index-rkWLnU7C.js} +1 -1
  37. package/aftenpostenv2/es/index.js +1 -1
  38. package/aftenpostenv2/es/{styles-D9KMvASf.js → styles-9KHl4VEQ.js} +1 -1
  39. package/aftenpostenv2/es/{styles-CLpM5C-N.js → styles-BFTEZfPu.js} +1 -1
  40. package/aftenpostenv2/es/{styles-CfvJPEi0.js → styles-BK7_1g3H.js} +1 -1
  41. package/aftenpostenv2/es/{styles-hUP4ZYXw.js → styles-C4vLs4He.js} +1 -1
  42. package/aftenpostenv2/es/{styles-Bm0zkGl9.js → styles-CAQohUFC.js} +1 -1
  43. package/aftenpostenv2/es/{styles-ChHzG8gw.js → styles-CIKN2aWc.js} +1 -1
  44. package/aftenpostenv2/es/{styles-3SZsGONr.js → styles-CaT_OnHh.js} +1 -1
  45. package/aftenpostenv2/es/{styles-Cn4i8xPe.js → styles-DfMP2csV.js} +1 -1
  46. package/aftenpostenv2/es/{styles-CJKCWW8q.js → styles-DfqND0Xb.js} +1 -1
  47. package/aftenpostenv2/es/{styles-CMwz40y8.js → styles-Dl3WgsHv.js} +1 -1
  48. package/aftonbladet/cjs/index.js +1 -1
  49. package/aftonbladet/es/_auto-entry_aftonbladet-D3XIcLiX.js +1 -0
  50. package/aftonbladet/es/{events-DpdvzLXw.js → events-oCNhumei.js} +1 -1
  51. package/aftonbladet/es/{index-BMpRMYUf.js → index-B0Kouhyl.js} +1 -1
  52. package/aftonbladet/es/{index-DCQ_ylbs.js → index-Bal9uZOj.js} +1 -1
  53. package/aftonbladet/es/{index-Dpsl9fTZ.js → index-CkddpaB4.js} +1 -1
  54. package/aftonbladet/es/{index-wJcsxuSa.js → index-CqxH9lnM.js} +1 -1
  55. package/aftonbladet/es/{index-CIALx_sU.js → index-DGd3rjUx.js} +1 -1
  56. package/aftonbladet/es/{index-DHg8Xrny.js → index-DhbRI4nT.js} +1 -1
  57. package/aftonbladet/es/{index-Bz-s_c8-.js → index-DoV-URKL.js} +1 -1
  58. package/aftonbladet/es/{index-DqZqkGLv.js → index-DtcWIsVU.js} +1 -1
  59. package/aftonbladet/es/{index-CtVHtb37.js → index-Du-bhD-5.js} +1 -1
  60. package/aftonbladet/es/index.js +1 -1
  61. package/aftonbladet/es/{styles-DuNjm6pn.js → styles-Bh6REQGe.js} +1 -1
  62. package/aftonbladet/es/{styles-rAh8KIjh.js → styles-By9PoDTf.js} +1 -1
  63. package/aftonbladet/es/{styles-Dr-TwIrr.js → styles-CItMJ9JH.js} +1 -1
  64. package/aftonbladet/es/{styles-SH1zx4eU.js → styles-CwaPWXPJ.js} +1 -1
  65. package/aftonbladet/es/{styles-CUBGSuNT.js → styles-Da-gLl0E.js} +1 -1
  66. package/aftonbladet/es/{styles-BluZBfFW.js → styles-P2WtoxF3.js} +1 -1
  67. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CHw7QnRS.js +1 -0
  68. package/aftonbladetv2/es/{events-Bc1HmMsd.js → events-TbuvfXPb.js} +1 -1
  69. package/aftonbladetv2/es/{index-csIQ2Vg4.js → index-BF7l7Izx.js} +1 -1
  70. package/aftonbladetv2/es/{index-KITDB_m-.js → index-BNRnjrwP.js} +1 -1
  71. package/aftonbladetv2/es/{index-Bp7xKMGM.js → index-BRhpR6_w.js} +1 -1
  72. package/aftonbladetv2/es/{index-CGobwRDT.js → index-CB4BWgXG.js} +1 -1
  73. package/aftonbladetv2/es/{index-8HAC4UOU.js → index-CRSepoSA.js} +1 -1
  74. package/aftonbladetv2/es/{index-fLwRSPiq.js → index-CXKogX7K.js} +1 -1
  75. package/aftonbladetv2/es/{index-CyCPz1u_.js → index-DPF9_zd5.js} +1 -1
  76. package/aftonbladetv2/es/{index-BEh41nGT.js → index-Ddsq6nCK.js} +1 -1
  77. package/aftonbladetv2/es/{index-DAAju4vO.js → index-Du-NTDMT.js} +1 -1
  78. package/aftonbladetv2/es/index.js +1 -1
  79. package/aftonbladetv2/es/{styles-DRLuv17B.js → styles-Bp9pO5uf.js} +1 -1
  80. package/aftonbladetv2/es/{styles-Bk3gBt4S.js → styles-CGVkPbgK.js} +1 -1
  81. package/aftonbladetv2/es/{styles-CzVXhWhX.js → styles-Cv_902r7.js} +1 -1
  82. package/aftonbladetv2/es/{styles-BhBO9Fkn.js → styles-Dlr14WdA.js} +1 -1
  83. package/aftonbladetv2/es/{styles-BENCtzhv.js → styles-Dud9l8tc.js} +1 -1
  84. package/aftonbladetv2/es/{styles-W2dGAKDW.js → styles-pyjZ2tz6.js} +1 -1
  85. package/bt/cjs/index.js +1 -1
  86. package/bt/es/{_auto-entry_bt-RPUoTkor.js → _auto-entry_bt-B7_mliOx.js} +1 -1
  87. package/bt/es/{events-BuA5I1E8.js → events-DoCsOQk5.js} +1 -1
  88. package/bt/es/{index-Fgcos_gJ.js → index-0q5wpPda.js} +1 -1
  89. package/bt/es/{index-D7J7Y6__.js → index-2p_TijSy.js} +1 -1
  90. package/bt/es/{index-CYKSkjS0.js → index-C46f2HLU.js} +1 -1
  91. package/bt/es/{index-DW6uC_6s.js → index-CAcYORGj.js} +1 -1
  92. package/bt/es/{index-BrMyo6ij.js → index-CVYGaFNH.js} +1 -1
  93. package/bt/es/{index-CxkT37nb.js → index-D1xhMK7r.js} +1 -1
  94. package/{sa/es/index-Btm4cxdh.js → bt/es/index-Q-11l2O6.js} +1 -1
  95. package/bt/es/{index-BLifzTxc.js → index-VcmU2DjD.js} +1 -1
  96. package/bt/es/{index-CDCIbBrZ.js → index-jVXe5Xjy.js} +1 -1
  97. package/bt/es/index.js +1 -1
  98. package/bt/es/{styles-Cb9qz9Ch.js → styles-4U8DV6Lr.js} +1 -1
  99. package/{sa/es/styles-vb3qr0CX.js → bt/es/styles-7wm3Yuh7.js} +1 -1
  100. package/{sa/es/styles-DJXHqvc_.js → bt/es/styles-B7Yc39Aa.js} +1 -1
  101. package/bt/es/{styles-Dxnnd8tg.js → styles-BTanJs7s.js} +1 -1
  102. package/{vg/es/styles-iAOYWvgq.js → bt/es/styles-BfsPIHDo.js} +1 -1
  103. package/{sa/es/styles-B2Dv_34h.js → bt/es/styles-CGj6lco-.js} +1 -1
  104. package/bt/es/{styles-CjkgtNUK.js → styles-D8CscCO3.js} +1 -1
  105. package/bt/es/{styles-DPepCfZa.js → styles-DwsQQy7w.js} +1 -1
  106. package/bt/es/{styles-CTPyQdOm.js → styles-MoTMLnF7.js} +1 -1
  107. package/btv2/es/{_auto-entry_btv2-6llzIBcB.js → _auto-entry_btv2-D_jrKIDS.js} +1 -1
  108. package/btv2/es/{events-Ch1784Ur.js → events-BCKaXBi-.js} +1 -1
  109. package/btv2/es/{index-BHcI4_dI.js → index-B8jqtTgN.js} +1 -1
  110. package/btv2/es/{index-WhVIyJ5_.js → index-B9gfOae-.js} +1 -1
  111. package/btv2/es/{index-CUz4cVol.js → index-BBn-lJPK.js} +1 -1
  112. package/btv2/es/{index-DL2nZhbu.js → index-C4gUQyyc.js} +1 -1
  113. package/{sav2/es/index-DnqPn7Qh.js → btv2/es/index-CXKmAKxO.js} +1 -1
  114. package/btv2/es/{index-C4jBQW0x.js → index-CtWtMWWZ.js} +1 -1
  115. package/{sav2/es/index-CMmNvfnD.js → btv2/es/index-D7Uobr3w.js} +1 -1
  116. package/btv2/es/{index-BtLN7qTe.js → index-p_EW31nU.js} +1 -1
  117. package/btv2/es/{index-DDWdVEp8.js → index-ygjaoOOz.js} +1 -1
  118. package/btv2/es/index.js +1 -1
  119. package/{sav2/es/styles-DbqZRQvv.js → btv2/es/styles--TcevCgJ.js} +1 -1
  120. package/btv2/es/{styles-ouyn131c.js → styles-DInPbiKO.js} +1 -1
  121. package/btv2/es/{styles-0g4_syVv.js → styles-DTRrvBVr.js} +1 -1
  122. package/{vgv2/es/styles-wQRYx2Y4.js → btv2/es/styles-DTx3_Yxq.js} +1 -1
  123. package/{sav2/es/styles-CEPY7pBI.js → btv2/es/styles-DfFI6h_K.js} +1 -1
  124. package/{vgv2/es/styles-C3LLMom9.js → btv2/es/styles-DvR-HLUt.js} +1 -1
  125. package/btv2/es/{styles-BQLXv0K5.js → styles-gxMzVubc.js} +1 -1
  126. package/{sav2/es/styles-Y0revP5B.js → btv2/es/styles-kOJRWcfP.js} +1 -1
  127. package/e24/es/{_auto-entry_e24-ConBBqmc.js → _auto-entry_e24-D5FxM2Ie.js} +1 -1
  128. package/e24/es/{events-C68NBzPq.js → events-C6JT7nsL.js} +1 -1
  129. package/e24/es/{index-D5dB_-hP.js → index--kDp3VOg.js} +1 -1
  130. package/{tv4/es/index-zqzFHLIh.js → e24/es/index-BCKhs0jM.js} +1 -1
  131. package/e24/es/{index-CFnzPmUU.js → index-BS5_xF5x.js} +1 -1
  132. package/e24/es/{index-CBVYJ5as.js → index-BuCPHkRJ.js} +1 -1
  133. package/e24/es/{index-BmIlSEyQ.js → index-CAuiGqZY.js} +1 -1
  134. package/e24/es/{index-0E8OlFlk.js → index-CfBjYvSb.js} +1 -1
  135. package/e24/es/{index-BlX0NfFL.js → index-DM5RUoMD.js} +1 -1
  136. package/e24/es/{index-C2NLlasc.js → index-DW_DQZoP.js} +1 -1
  137. package/e24/es/{index-Bl3k6Pn7.js → index-RRFlocEV.js} +1 -1
  138. package/e24/es/index.js +1 -1
  139. package/e24/es/{styles-CpCJ5p4Y.js → styles-B7yIfec-.js} +1 -1
  140. package/e24/es/{styles-Cn6VcTT9.js → styles-BCBpdPq-.js} +1 -1
  141. package/e24/es/{styles-BitMYT0a.js → styles-BvNqdPmX.js} +1 -1
  142. package/e24/es/{styles-CjUPx1N8.js → styles-C_FtFHUT.js} +1 -1
  143. package/e24/es/{styles-ClTBwXm-.js → styles-Cv9aSGH0.js} +1 -1
  144. package/e24/es/{styles-61bteS79.js → styles-D7IjDMbf.js} +1 -1
  145. package/e24/es/{styles-Bl7bhtCJ.js → styles-DK14ECLR.js} +1 -1
  146. package/e24/es/{styles-D09alThQ.js → styles-Da_uKof7.js} +1 -1
  147. package/e24/es/{styles-SD1dLggo.js → styles-Dg12mhS0.js} +1 -1
  148. package/{tv4/es/styles-B8WkK2mF.js → e24/es/styles-Dvy6Fqy5.js} +1 -1
  149. package/e24/es/{styles-CUvCvqfW.js → styles-k30z8-N8.js} +1 -1
  150. package/editory/cjs/index.d.ts +13 -3
  151. package/editory/cjs/index.js +1 -1
  152. package/editory/es/index.d.ts +13 -3
  153. package/editory/es/index.js +1 -1
  154. package/fotbollskanalen/cjs/index.js +1 -1
  155. package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-Db3I9OQg.js → _auto-entry_fotbollskanalen-Dr0gcDMw.js} +1 -1
  156. package/fotbollskanalen/es/{events-DuvmEjXS.js → events-Bg5T0gIZ.js} +1 -1
  157. package/fotbollskanalen/es/{index-BCYJQ7yI.js → index-B0-T4MvU.js} +1 -1
  158. package/fotbollskanalen/es/{index-0S_1j6tD.js → index-BZwI4ice.js} +1 -1
  159. package/fotbollskanalen/es/{index-C231GnmP.js → index-BsDhPUje.js} +1 -1
  160. package/fotbollskanalen/es/{index-D24Qo4wu.js → index-C-V9j4SX.js} +1 -1
  161. package/fotbollskanalen/es/{index-BdB-lQyC.js → index-CSt3_0V3.js} +1 -1
  162. package/fotbollskanalen/es/{index-CWNi3BvR.js → index-CcTyYskw.js} +1 -1
  163. package/fotbollskanalen/es/{index-CDc_6nI6.js → index-Dbi-O26M.js} +1 -1
  164. package/fotbollskanalen/es/{index-Brc7AFjR.js → index-St9c8gLv.js} +1 -1
  165. package/fotbollskanalen/es/{index-CdPJXCgK.js → index-nkT79qoS.js} +1 -1
  166. package/fotbollskanalen/es/index.js +1 -1
  167. package/fotbollskanalen/es/{styles-D-5aylL-.js → styles-8AzxZzNL.js} +1 -1
  168. package/fotbollskanalen/es/{styles-CURE8DT5.js → styles-D0_ahb2D.js} +1 -1
  169. package/fotbollskanalen/es/{styles-CHpEy9LE.js → styles-DhFHP3dm.js} +1 -1
  170. package/godt/cjs/index.js +1 -1
  171. package/klart/cjs/index.js +1 -1
  172. package/koket/cjs/index.js +1 -1
  173. package/koket/es/{_auto-entry_koket-B-7m9cMZ.js → _auto-entry_koket-BnZ_AOWT.js} +1 -1
  174. package/koket/es/{events-BYw0v45f.js → events-CFquLX59.js} +1 -1
  175. package/koket/es/{index-CCLhE4pT.js → index--xfyyiPg.js} +1 -1
  176. package/koket/es/{index-CQjBux3b.js → index-3Yz5bPi3.js} +1 -1
  177. package/koket/es/{index-BTo8-Ji-.js → index-B8639_a0.js} +1 -1
  178. package/koket/es/{index-5iNzU-od.js → index-BKNKfiHf.js} +1 -1
  179. package/koket/es/{index-DZZmn_fe.js → index-BOgTrrkv.js} +1 -1
  180. package/koket/es/{index-DuyA5TKz.js → index-BzEU8QsE.js} +1 -1
  181. package/{svdv2/es/index-pL4lTqe8.js → koket/es/index-CJomd62b.js} +1 -1
  182. package/koket/es/{index-BSnVhetF.js → index-DisKtDxK.js} +1 -1
  183. package/{svdv2/es/index-DgtLAQo0.js → koket/es/index-NFqv_NcM.js} +1 -1
  184. package/koket/es/index.js +1 -1
  185. package/koket/es/{styles-DSb9JC4A.js → styles-CyCDcPtN.js} +1 -1
  186. package/koket/es/{styles-C3tV2JdN.js → styles-DoEhA_Q0.js} +1 -1
  187. package/{svdv2/es/styles-BfDJRocW.js → koket/es/styles-aLLEVZ4w.js} +1 -1
  188. package/minmote/cjs/index.js +1 -1
  189. package/package.json +1 -1
  190. package/pent/cjs/index.js +1 -1
  191. package/sa/cjs/index.js +1 -1
  192. package/sa/es/{_auto-entry_sa-BtS4YeM_.js → _auto-entry_sa-Dal35Xcf.js} +1 -1
  193. package/sa/es/{events-CY18iq1H.js → events-nzNTYGTa.js} +1 -1
  194. package/{vg/es/index-Cd_WeT9s.js → sa/es/index-B14TCo9Y.js} +1 -1
  195. package/sa/es/{index-CKWBIDvi.js → index-BOWfhs8x.js} +1 -1
  196. package/{bt/es/index-BZOR_FIU.js → sa/es/index-BY5g_wZX.js} +1 -1
  197. package/sa/es/{index-CGDqOGoZ.js → index-BmBogSVX.js} +1 -1
  198. package/sa/es/{index-B3bADHnB.js → index-CTYhvToA.js} +1 -1
  199. package/sa/es/{index-DaZLRa1Q.js → index-CZqPRM6y.js} +1 -1
  200. package/sa/es/{index-DbpZOLQ3.js → index-SpBX77gd.js} +1 -1
  201. package/sa/es/{index-DF0MRUcf.js → index-VHcShYvA.js} +1 -1
  202. package/sa/es/{index-DRV5Dxy4.js → index-qN2zNlKt.js} +1 -1
  203. package/sa/es/index.js +1 -1
  204. package/{bt/es/styles-D_CAwhgJ.js → sa/es/styles-1g-x1phD.js} +1 -1
  205. package/sa/es/{styles-CIryw5y3.js → styles-4TYogDN8.js} +1 -1
  206. package/sa/es/{styles-BKS_Xh2O.js → styles-CP9D-BJ7.js} +1 -1
  207. package/sa/es/{styles-D6Q57mVk.js → styles-CUZJCH2b.js} +1 -1
  208. package/sa/es/{styles-CmV-eZSM.js → styles-CuEM--3I.js} +1 -1
  209. package/sa/es/{styles-Du065Txz.js → styles-DPZzUT6P.js} +1 -1
  210. package/{bt/es/styles-Cg8QznX9.js → sa/es/styles-DyfUdnUw.js} +1 -1
  211. package/{bt/es/styles-B5vTP9TW.js → sa/es/styles-Ey02gf2M.js} +1 -1
  212. package/{vg/es/styles-8Y0CsaBx.js → sa/es/styles-PqaJMera.js} +1 -1
  213. package/sav2/es/_auto-entry_sav2-BHYsWnN5.js +1 -0
  214. package/sav2/es/{events-G1PAv_Rs.js → events-Bnm8aqV1.js} +1 -1
  215. package/{btv2/es/index-HJyqPqrN.js → sav2/es/index-C0o97RJ6.js} +1 -1
  216. package/sav2/es/{index-BScxidvW.js → index-C9y4PPBx.js} +1 -1
  217. package/sav2/es/{index-B-D7khgR.js → index-CNJxoDL-.js} +1 -1
  218. package/sav2/es/{index-CI2P1_N0.js → index-CpAw5ye7.js} +1 -1
  219. package/sav2/es/{index-Dc0j4De4.js → index-Cy6JzhyL.js} +1 -1
  220. package/sav2/es/{index-CjkPCtL_.js → index-DEXw9zIg.js} +1 -1
  221. package/{btv2/es/index-CZ_sd464.js → sav2/es/index-DFLWK5Tl.js} +1 -1
  222. package/sav2/es/{index-CW_4oaru.js → index-Diji7w4u.js} +1 -1
  223. package/sav2/es/{index-DCfY4xtV.js → index-nPjJLKs9.js} +1 -1
  224. package/sav2/es/index.js +1 -1
  225. package/sav2/es/{styles-CwVOF72f.js → styles-3Mw2_8uk.js} +1 -1
  226. package/sav2/es/{styles-BJf5tNSb.js → styles-B6O6o4lp.js} +1 -1
  227. package/{vgv2/es/styles-C727Ij-0.js → sav2/es/styles-CCu4v-bn.js} +1 -1
  228. package/{vgv2/es/styles-CAGuznG-.js → sav2/es/styles-CRQpp2N8.js} +1 -1
  229. package/{btv2/es/styles-BorJ1xPw.js → sav2/es/styles-CTvpdD15.js} +1 -1
  230. package/sav2/es/{styles-B6BsD6g-.js → styles-DGX5oHwl.js} +1 -1
  231. package/{btv2/es/styles-61qTcBSw.js → sav2/es/styles-SFPFjwNQ.js} +1 -1
  232. package/sav2/es/{styles-j6fTIucZ.js → styles-zkSr-eY7.js} +1 -1
  233. package/sav2/styles.css +1 -1
  234. package/svd/cjs/index.js +1 -1
  235. package/svd/es/{_auto-entry_svd-CDY8P7XU.js → _auto-entry_svd-CML7A62C.js} +1 -1
  236. package/svd/es/{events-yyPawwqF.js → events-B0zWVlSH.js} +1 -1
  237. package/svd/es/{index-tM-qrG2F.js → index-BBs_aLU5.js} +1 -1
  238. package/svd/es/{index-C2Rf3wym.js → index-Bs77PNIr.js} +1 -1
  239. package/{e24/es/index-DDPvUCxP.js → svd/es/index-C9i8t7Cb.js} +1 -1
  240. package/svd/es/{index-BNy_lQ5A.js → index-CBKoO7SJ.js} +1 -1
  241. package/svd/es/{index-DAhO-hQo.js → index-CloDeVfZ.js} +1 -1
  242. package/svd/es/{index-B_TZOI5-.js → index-DVxX9DMB.js} +1 -1
  243. package/svd/es/{index-D-m9-Xkw.js → index-DkZM_Jlq.js} +1 -1
  244. package/svd/es/{index-REyaQvyR.js → index-Dy2wjgBx.js} +1 -1
  245. package/svd/es/{index-Ca30w2br.js → index-_39vIwJU.js} +1 -1
  246. package/svd/es/index.js +1 -1
  247. package/svd/es/{styles-CM4zbZQH.js → styles-B94VdEKi.js} +1 -1
  248. package/svd/es/{styles-Jq9ixtti.js → styles-BiRQM_a4.js} +1 -1
  249. package/svd/es/{styles-DCiWNTjQ.js → styles-C3Ie6oYT.js} +1 -1
  250. package/svd/es/{styles-BQ2IMtly.js → styles-CiiuQwU8.js} +1 -1
  251. package/svd/es/{styles-CQ2b_vR7.js → styles-CkUwuuBu.js} +1 -1
  252. package/svd/es/{styles-BPHV-uvH.js → styles-DwIv1xbt.js} +1 -1
  253. package/svdv2/es/{_auto-entry_svdv2-BRQ2l42a.js → _auto-entry_svdv2-CYBpCl9F.js} +1 -1
  254. package/svdv2/es/{events-BOHwRh1W.js → events-CyzUxvDc.js} +1 -1
  255. package/svdv2/es/{index-DpioQc3a.js → index-36J4Yj67.js} +1 -1
  256. package/{koket/es/index-WzKd-Snf.js → svdv2/es/index-9oEnFWd3.js} +1 -1
  257. package/svdv2/es/{index-D7IpoQf3.js → index-B0JGLtQG.js} +1 -1
  258. package/svdv2/es/{index-DNho-GUJ.js → index-CMeUTeBm.js} +1 -1
  259. package/svdv2/es/{index-H26yB9H8.js → index-CU5Z0Fit.js} +1 -1
  260. package/svdv2/es/{index-5I4aOAEu.js → index-DMkxJOCT.js} +1 -1
  261. package/svdv2/es/{index-DhuM8po5.js → index-DrGalB1q.js} +1 -1
  262. package/{koket/es/index-BuPg_SCZ.js → svdv2/es/index-Uqul_oCi.js} +1 -1
  263. package/svdv2/es/{index-D0oADPCR.js → index-bdFmZ38h.js} +1 -1
  264. package/svdv2/es/index.js +1 -1
  265. package/{koket/es/styles-oevuERGK.js → svdv2/es/styles-BIS89caS.js} +1 -1
  266. package/svdv2/es/{styles-iZnnUh-Z.js → styles-BKCksz5J.js} +1 -1
  267. package/svdv2/es/{styles-DS9BLwJK.js → styles-C7gdFWXw.js} +1 -1
  268. package/svdv2/es/{styles-DNdB6W5X.js → styles-Cl9XlxmN.js} +1 -1
  269. package/svdv2/es/{styles-BNv5ju_a.js → styles-DiEIULzD.js} +1 -1
  270. package/svdv2/es/{styles-DpnfWjVb.js → styles-VIxmTdk_.js} +1 -1
  271. package/tek/cjs/index.js +1 -1
  272. package/tv4/cjs/index.js +1 -1
  273. package/tv4/es/{_auto-entry_tv4-sBIir3N6.js → _auto-entry_tv4-C7OD2wZR.js} +1 -1
  274. package/tv4/es/{events-CP189TuP.js → events-u-SdwnmW.js} +1 -1
  275. package/tv4/es/{index-Djw2SS7b.js → index-3dJ_a6lg.js} +1 -1
  276. package/tv4/es/{index-Eo-Y83tc.js → index-CJ_o2cWm.js} +1 -1
  277. package/tv4/es/{index-C9wPyPmY.js → index-CP2CQvk0.js} +1 -1
  278. package/tv4/es/{index-CBLzKV_y.js → index-CTLzX4-J.js} +1 -1
  279. package/tv4/es/{index-DPUf0oFv.js → index-D6husx0z.js} +1 -1
  280. package/tv4/es/{index-kKPPrno6.js → index-DMYTeF6X.js} +1 -1
  281. package/tv4/es/{index-0K5XQO4g.js → index-GT6Uctj4.js} +1 -1
  282. package/{svd/es/index-BaogYRei.js → tv4/es/index-OEzvQiTC.js} +1 -1
  283. package/tv4/es/{index-DeYiu5T6.js → index-Y-vFh8FC.js} +1 -1
  284. package/tv4/es/index.js +1 -1
  285. package/tv4/es/{styles-pa9NN9Yl.js → styles-BDRZ7qPn.js} +1 -1
  286. package/{e24/es/styles-DMVlBDm9.js → tv4/es/styles-BjCiKNTU.js} +1 -1
  287. package/tv4/es/{styles-CbcI43qp.js → styles-DJhEoAzp.js} +1 -1
  288. package/tvnu/cjs/index.js +1 -1
  289. package/types/index.d.ts +2 -0
  290. package/vg/cjs/index.js +1 -1
  291. package/vg/es/{_auto-entry_vg-BxpLJWHB.js → _auto-entry_vg-CRU6IDhh.js} +1 -1
  292. package/vg/es/{events-PlgIjYPr.js → events-BWwLbzMQ.js} +1 -1
  293. package/vg/es/{index-CLsgFmLO.js → index-BRZe2VAe.js} +1 -1
  294. package/vg/es/{index-DYmNQdVI.js → index-BS5ugpzW.js} +1 -1
  295. package/vg/es/{index-BSBkJi7g.js → index-Bmci9O8C.js} +1 -1
  296. package/vg/es/{index-zKwvsdgs.js → index-CDIx8jVP.js} +1 -1
  297. package/vg/es/{index-CsK9qSxO.js → index-ChVrMgnR.js} +1 -1
  298. package/vg/es/{index-D3aXkD9u.js → index-D0B8bYNi.js} +1 -1
  299. package/vg/es/{index-DZsALC5z.js → index-DEKoBNbu.js} +1 -1
  300. package/vg/es/{index-Bn0tevYs.js → index-ZFw_luDV.js} +1 -1
  301. package/{sa/es/index-B1Fpmdt9.js → vg/es/index-lBN2FcSG.js} +1 -1
  302. package/vg/es/index.js +1 -1
  303. package/vg/es/{styles-B6azDrCW.js → styles-7_CLWn0P.js} +1 -1
  304. package/vg/es/{styles-CR3KI2gI.js → styles-BE2E7qKY.js} +1 -1
  305. package/vg/es/{styles-B59x_fiR.js → styles-BTGsK_GB.js} +1 -1
  306. package/vg/es/{styles-EeMG4p8n.js → styles-B_lpSc7i.js} +1 -1
  307. package/vg/es/{styles-BGIIvssp.js → styles-Bf3I_H_s.js} +1 -1
  308. package/vg/es/{styles-7eaPh5pS.js → styles-Bu2LYJHm.js} +1 -1
  309. package/vg/es/{styles-ByFRjOzp.js → styles-Cqzisdr8.js} +1 -1
  310. package/{sa/es/styles-CzEX1tB8.js → vg/es/styles-CzDbq0iS.js} +1 -1
  311. package/vg/es/{styles-BoSCKikG.js → styles-DImZpAH_.js} +1 -1
  312. package/vg/es/{styles-CJoX79TE.js → styles-DPXbnjuy.js} +1 -1
  313. package/vg/es/{styles-4M5lkE4M.js → styles-DRN15Z6U.js} +1 -1
  314. package/vg/es/{styles-Robz5xhK.js → styles-DecEZ5zq.js} +1 -1
  315. package/vg/es/{styles-wTfxI3Ta.js → styles-DiHVruZa.js} +1 -1
  316. package/{bt/es/styles-CG74DcQ2.js → vg/es/styles-DukO5L4z.js} +1 -1
  317. package/vg/es/{styles-B3jE9EuB.js → styles-Dv808To7.js} +1 -1
  318. package/vgv2/es/{_auto-entry_vgv2-DsKvDdXW.js → _auto-entry_vgv2-BF8mKAKV.js} +1 -1
  319. package/vgv2/es/{events-B7cwEZ72.js → events-B1G8w7OS.js} +1 -1
  320. package/vgv2/es/{index-DciS1Z5m.js → index-BhZsWwGJ.js} +1 -1
  321. package/vgv2/es/{index-DKw3oZA8.js → index-BpjXZY0e.js} +1 -1
  322. package/vgv2/es/{index-BLplYf-K.js → index-DktfkNLr.js} +1 -1
  323. package/vgv2/es/{index-D6fSKW7L.js → index-DsDAQMXL.js} +1 -1
  324. package/vgv2/es/{index-Byv7Olve.js → index-DvJ677MK.js} +1 -1
  325. package/vgv2/es/{index-Ni7QwD1o.js → index-J3GkCMOP.js} +1 -1
  326. package/vgv2/es/{index-C6zxlTbp.js → index-MbwRiOki.js} +1 -1
  327. package/vgv2/es/{index-0T3cEibi.js → index-SbpJYerL.js} +1 -1
  328. package/vgv2/es/{index-DMt6UQOZ.js → index-alneNRjq.js} +1 -1
  329. package/vgv2/es/index.js +1 -1
  330. package/vgv2/es/{styles-DKjHpxAV.js → styles-B1eiujc9.js} +1 -1
  331. package/vgv2/es/{styles-BlTCBYZY.js → styles-BDj5AIa9.js} +1 -1
  332. package/vgv2/es/{styles-BJ_1xTF8.js → styles-BZ6T8um9.js} +1 -1
  333. package/vgv2/es/{styles-BARYBmjY.js → styles-CMV1gqIG.js} +1 -1
  334. package/vgv2/es/{styles-ny4Vp3wx.js → styles-CU68iL1N.js} +1 -1
  335. package/{btv2/es/styles-CnYE3L23.js → vgv2/es/styles-CWTDuE-U.js} +1 -1
  336. package/vgv2/es/{styles-BITuJI4S.js → styles-CpfRVDtP.js} +1 -1
  337. package/{btv2/es/styles-sVntfv2f.js → vgv2/es/styles-CqlJsOoY.js} +1 -1
  338. package/{btv2/es/styles-dOSU7HAK.js → vgv2/es/styles-DBURH_Gq.js} +1 -1
  339. package/vgv2/es/{styles-Z3p4ZgDv.js → styles-DHF3Tmt3.js} +1 -1
  340. package/vgv2/es/{styles-QCZIsY3A.js → styles-DSdkjwEK.js} +1 -1
  341. package/vgv2/es/{styles-DEDPZlGk.js → styles-DUuolZk6.js} +1 -1
  342. package/vgv2/es/{styles-CwmW1xU2.js → styles-D_tWoAV1.js} +1 -1
  343. package/{sav2/es/styles-B50W5QPS.js → vgv2/es/styles-DeG4OJuP.js} +1 -1
  344. package/vgv2/es/{styles-CoN5sN9f.js → styles-acUWR8eU.js} +1 -1
  345. package/aftonbladet/es/_auto-entry_aftonbladet-OvzW5WaN.js +0 -1
  346. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DkllDGoG.js +0 -1
  347. package/sav2/es/_auto-entry_sav2-IzY3_UWp.js +0 -1
@@ -1 +1 @@
1
- function t(t,e,r,o){return new(r||(r=Promise))(function(n,i){function c(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(c,s)}l((o=o.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const e=(t,e)=>{const r="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(e?console.log(r,t,e):console.log(r,t))};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var o,n;var i=function(){if(n)return o;n=1;var t=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var r=Object.prototype.toString.call(t);return"[object RegExp]"===r||"[object Date]"===r||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?u((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function i(t,e,o){return t.concat(e).map(function(t){return r(t,o)})}function c(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}(t))}function s(t,e){try{return e in t}catch(t){return!1}}function l(t,e,o){var n={};return o.isMergeableObject(t)&&c(t).forEach(function(e){n[e]=r(t[e],o)}),c(e).forEach(function(i){(function(t,e){return s(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(s(t,i)&&o.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return u;var r=e.customMerge(t);return"function"==typeof r?r:u}(i,o)(t[i],e[i],o):n[i]=r(e[i],o))}),n}function u(e,o,n){(n=n||{}).arrayMerge=n.arrayMerge||i,n.isMergeableObject=n.isMergeableObject||t,n.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(o);return c===Array.isArray(e)?c?n.arrayMerge(e,o,n):l(e,o,n):r(o,n)}return u.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,r){return u(t,r,e)},{})},o=u}(),c=r(i);const s={arrayMerge:(t,e)=>e,isMergeableObject:t=>"object"==typeof t&&null!==t&&t.constructor===Object},l="opaque",u=e=>t(void 0,void 0,void 0,function*(){if(e.type!==l){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),a={get:(e,...r)=>t(void 0,[e,...r],void 0,function*(e,r={}){var{timeout:o}=r,n=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]])}return r}(r,["timeout"]);if(o)return((e,r,o)=>t(void 0,void 0,void 0,function*(){const t=new AbortController,n=setTimeout(()=>t.abort(),o);try{const o=yield fetch(e,Object.assign(Object.assign({},r),{signal:t.signal}));return u(o)}finally{clearTimeout(n)}}))(e,n,o);const i=yield fetch(e,n);return u(i)}),post:(e,r,o)=>t(void 0,void 0,void 0,function*(){const t=JSON.stringify(o),n=yield fetch(e,{method:"POST",headers:r,body:t});if(!n.ok)throw new Error(n.statusText);return yield n.json()})},d="mobile",y={arrayMerge:(t,e)=>e,isMergeableObject:t=>"object"==typeof t&&null!==t&&t.constructor===Object},f=(t,e)=>{var r,o,n;const i=Object.assign({},t);i.overrides=t.overrides?c({},t.overrides,y):t.overrides;for(const s of Object.keys(e)){const l=e[s];if(!l)continue;const u=l[t.id];if(!u)continue;const a=null!==(o=null===(r=i.overrides)||void 0===r?void 0:r[s])&&void 0!==o?o:{},d=c(a,u,y);i.overrides=Object.assign(Object.assign({},null!==(n=i.overrides)&&void 0!==n?n:{}),{[s]:d})}return t.children&&(i.children=t.children.map(t=>f(t,e))),i},b=(t,e)=>e.overrides?Object.assign(Object.assign({},t),{root:f(t.root,e.overrides)}):c({},t,y),v="desktop",p="mobile",g="container",h="text",m="image",j="cogwheel",O=t=>t===d?p:v,w=(t,e)=>{var r,o,n,i,c,s;const l=null===(r=t.overrides)||void 0===r?void 0:r[e];if(null!==(o=null==l?void 0:l.hidden)&&void 0!==o?o:t.hidden)return null;const u=Object.assign(Object.assign({},t.styles),null!==(n=null==l?void 0:l.styles)&&void 0!==n?n:{}),a=null!==(i=null==l?void 0:l.tag)&&void 0!==i?i:t.tag,d=null!==(c=null==l?void 0:l.text)&&void 0!==c?c:t.text,y=null===(s=t.children)||void 0===s?void 0:s.map(t=>w(t,e)).filter(t=>null!==t),f={id:t.id,tag:a,type:t.type,name:t.name,styles:u,connections:t.connections};return void 0!==d&&(f.text=d),void 0!==y&&(f.children=y),f},S=t=>Object.entries(t).map(([t,e])=>`${(t=>t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))(t)}:${(t=>String(t).replace(/"/g,"&quot;"))(e)}`).join(";"),$={microsoftMonetize:{title:"title","body-text":"body",description:"body","sponsored-by":"sponsoredBy","call-to-action":"cta","display-url":"clickUrl","desc-2":"desc2",image:"image",icon:"icon","title-1":"customTitle1","title-2":"customTitle2","title-3":"customTitle3","title-4":"customTitle4","icon-1":"customIcon1","icon-2":"customIcon2","custom-display-url-1":"customDisplayUrl1","custom-body-1":"customBody1","custom-body-2":"customBody2","custom-body-3":"customBody3","custom-body-4":"customBody4","custom-body-5":"customBody5"}},M=(t,e)=>{const r=t[e];return null==r?"":"object"==typeof r&&"content"in r?r.content:"object"==typeof r&&"url"in r?r.url:String(r)};class x{constructor(t,e=!1){this.tag=t,this.voidElement=e,this.attributes=new Map,this.content=""}attr(t,e){return e&&this.attributes.set(t,e),this}children(t){return this.content=t,this}build(){const t=[...this.attributes].map(([t,e])=>` ${t}="${e}"`).join("");return this.voidElement?`<${this.tag}${t}>`:`<${this.tag}${t}>${this.content}</${this.tag}>`}}const E=(t,e,r="")=>{var o;return(null===(o=t.connections)||void 0===o?void 0:o.length)?((t,e)=>{const r=[];for(const o of t){const t=$[o.server];if(t)for(const n of o.properties){const o=t[n];if(!o)continue;const i=M(e,o);i&&r.push(i)}}return r.join(" ")})(t.connections,e):r},T=(t,e,r,o)=>{var n;const{tag:i,styles:c}=t,s=(null!==(n=t.children)&&void 0!==n?n:[]).map(t=>C(t,e,r,!1)).join(""),l=new x(i);return o(l),l.attr("href","a"===i?E(t,e):"").attr("style",S(c)).children(s).build()},A={[g]:(t,e,r,o)=>{var n;const i=null!==(n=r.publisher)&&void 0!==n?n:"shared";return T(t,e,r,e=>{o&&e.attr("class",`advertory-${i}-ad-native-${t.name.toLowerCase()}`)})},[j]:(t,e,r)=>T(t,e,r,t=>{r.containerId&&t.attr("id",`${r.containerId}-button`)}),[h]:(t,e)=>{var r;return new x(t.tag).attr("style",S(t.styles)).children(E(t,e,null!==(r=t.text)&&void 0!==r?r:"")).build()},[m]:(t,e)=>new x("img",!0).attr("style",S(t.styles)).attr("src",E(t,e)).build()},C=(t,e,r,o=!0)=>{const n=A[t.type];return n?n(t,e,r,o):""},I=(t,e,r,o,n)=>{const i=w(t.root,r);return i?C(i,e,{breakpoint:r,publisher:o,containerId:n}):null},P=t=>(e,{publisher:r,containerId:o,deviceType:n})=>I(t,e,O(n),r,o),k=r=>t(void 0,void 0,void 0,function*(){if(!(t=>{const{editory:{editableConfiguration:{enabled:e=!1,pageTypeToFetch:r}={}}={},siteSpecificConfig:o}=t;return Boolean(e&&r&&(null==o?void 0:o.publisherClassName))})(r))return r;try{const o=yield(r=>t(void 0,void 0,void 0,function*(){const t=(t=>{const{siteSpecificConfig:e,editory:{editoryUrl:r,editableConfiguration:{pageTypeToFetch:o}={}}={}}=t;return(null==e?void 0:e.publisherClassName)&&o?`${r||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${e.publisherClassName}/${o.toLowerCase()}.json`:null})(r);if(!t)return null;try{return yield a.get(t,{timeout:5e3})}catch(r){throw e("Failed to fetch S3 config",{error:r,url:t}),r}}))(r);return o?((t,e)=>c(e,t,s))(r,o):r}catch(t){return e("Error fetching S3 config, using site config",{error:t}),r}});export{P as createTemplateFromConfig,O as detectBreakpoint,k as getConfig,b as mergeAdjustment,I as renderAdNativeHtml};
1
+ function t(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}function e(t,e,n,o){return new(n||(n=Promise))(function(r,i){function c(t){try{s(o.next(t))}catch(t){i(t)}}function l(t){try{s(o.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,l)}s((o=o.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const n=(t,e)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(e?console.log(n,t,e):console.log(n,t))};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r,i;var c=function(){if(i)return r;i=1;var t=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?u((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function o(t,e,o){return t.concat(e).map(function(t){return n(t,o)})}function c(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}(t))}function l(t,e){try{return e in t}catch(t){return!1}}function s(t,e,o){var r={};return o.isMergeableObject(t)&&c(t).forEach(function(e){r[e]=n(t[e],o)}),c(e).forEach(function(i){(function(t,e){return l(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(l(t,i)&&o.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return u;var n=e.customMerge(t);return"function"==typeof n?n:u}(i,o)(t[i],e[i],o):r[i]=n(e[i],o))}),r}function u(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(e)?c?i.arrayMerge(e,r,i):s(e,r,i):n(r,i)}return u.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return u(t,n,e)},{})},r=u}(),l=o(c);const s={arrayMerge:(t,e)=>e,isMergeableObject:t=>"object"==typeof t&&null!==t&&t.constructor===Object},u="opaque",a=t=>e(void 0,void 0,void 0,function*(){if(t.type!==u){if(!t.ok)throw new Error(t.statusText);return yield t.json()}}),d={get:(n,...o)=>e(void 0,[n,...o],void 0,function*(n,o={}){var{timeout:r}=o,i=t(o,["timeout"]);if(r)return((t,n,o)=>e(void 0,void 0,void 0,function*(){const e=new AbortController,r=setTimeout(()=>e.abort(),o);try{const o=yield fetch(t,Object.assign(Object.assign({},n),{signal:e.signal}));return a(o)}finally{clearTimeout(r)}}))(n,i,r);const c=yield fetch(n,i);return a(c)}),post:(t,n,o)=>e(void 0,void 0,void 0,function*(){const e=JSON.stringify(o),r=yield fetch(t,{method:"POST",headers:n,body:e});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},y="mobile",f={arrayMerge:(t,e)=>e,isMergeableObject:t=>"object"==typeof t&&null!==t&&t.constructor===Object},v=(e,n)=>{const{adjustmentOverrides:o}=e,r=t(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},r),n.overrides&&{adjustmentOverrides:l({},n.overrides,f)})},b="desktop",p="mobile",g="container",h="text",m="image",j="cogwheel",O=t=>{if(t)return t===y?p:b},w=(t,e,n)=>{var o,r,i,c,l,s,u,a,d,y,f,v,b;const p=e?null===(o=t.overrides)||void 0===o?void 0:o[e]:void 0,g=null===(r=null==n?void 0:n.default)||void 0===r?void 0:r[t.id],h=e?null===(i=null==n?void 0:n[e])||void 0===i?void 0:i[t.id]:void 0;if(null!==(s=null!==(l=null!==(c=null==h?void 0:h.hidden)&&void 0!==c?c:null==g?void 0:g.hidden)&&void 0!==l?l:null==p?void 0:p.hidden)&&void 0!==s?s:t.hidden)return null;const m=Object.assign(Object.assign(Object.assign(Object.assign({},t.styles),null==p?void 0:p.styles),null==g?void 0:g.styles),null==h?void 0:h.styles),j=null!==(d=null!==(a=null!==(u=null==h?void 0:h.tag)&&void 0!==u?u:null==g?void 0:g.tag)&&void 0!==a?a:null==p?void 0:p.tag)&&void 0!==d?d:t.tag,O=null!==(v=null!==(f=null!==(y=null==h?void 0:h.text)&&void 0!==y?y:null==g?void 0:g.text)&&void 0!==f?f:null==p?void 0:p.text)&&void 0!==v?v:t.text,S=null===(b=t.children)||void 0===b?void 0:b.map(t=>w(t,e,n)).filter(t=>null!==t),$={id:t.id,tag:j,type:t.type,name:t.name,styles:m,connections:t.connections};return void 0!==O&&($.text=O),void 0!==S&&($.children=S),$},S=t=>Object.entries(t).map(([t,e])=>`${(t=>t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))(t)}:${(t=>String(t).replace(/"/g,"&quot;"))(e)}`).join(";"),$={microsoftMonetize:{title:"title","body-text":"body",description:"body","sponsored-by":"sponsoredBy","call-to-action":"cta","display-url":"clickUrl","desc-2":"desc2",image:"image",icon:"icon","title-1":"customTitle1","title-2":"customTitle2","title-3":"customTitle3","title-4":"customTitle4","icon-1":"customIcon1","icon-2":"customIcon2","custom-display-url-1":"customDisplayUrl1","custom-body-1":"customBody1","custom-body-2":"customBody2","custom-body-3":"customBody3","custom-body-4":"customBody4","custom-body-5":"customBody5"}},M=(t,e)=>{const n=t[e];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class x{constructor(t,e=!1){this.tag=t,this.voidElement=e,this.attributes=new Map,this.content=""}attr(t,e){return e&&this.attributes.set(t,e),this}children(t){return this.content=t,this}build(){const t=[...this.attributes].map(([t,e])=>` ${t}="${e}"`).join("");return this.voidElement?`<${this.tag}${t}>`:`<${this.tag}${t}>${this.content}</${this.tag}>`}}const E=(t,e,n="")=>{var o;return(null===(o=t.connections)||void 0===o?void 0:o.length)?((t,e)=>{const n=[];for(const o of t){const t=$[o.server];if(t)for(const r of o.properties){const o=t[r];if(!o)continue;const i=M(e,o);i&&n.push(i)}}return n.join(" ")})(t.connections,e):n},T=(t,e,n,o)=>{var r;const{tag:i,styles:c}=t,l=(null!==(r=t.children)&&void 0!==r?r:[]).map(t=>C(t,e,n,!1)).join(""),s=new x(i);return o(s),s.attr("href","a"===i?E(t,e):"").attr("style",S(c)).children(l).build()},A={[g]:(t,e,n,o)=>{var r;const i=null!==(r=n.publisher)&&void 0!==r?r:"shared";return T(t,e,n,e=>{o&&e.attr("class",`advertory-${i}-ad-native-${t.name.toLowerCase()}`)})},[j]:(t,e,n)=>T(t,e,n,t=>{n.containerId&&t.attr("id",`${n.containerId}-button`)}),[h]:(t,e)=>{var n;return new x(t.tag).attr("style",S(t.styles)).children(E(t,e,null!==(n=t.text)&&void 0!==n?n:"")).build()},[m]:(t,e)=>new x("img",!0).attr("style",S(t.styles)).attr("src",E(t,e)).build()},C=(t,e,n,o=!0)=>{const r=A[t.type];return r?r(t,e,n,o):""},I=({config:t,nativeData:e,breakpoint:n,adjustments:o,publisher:r,containerId:i})=>{const c=o?v(t,o):t,l=w(c.root,n,c.adjustmentOverrides);return l?C(l,e,{breakpoint:n,publisher:r,containerId:i}):null},P=t=>(e,{publisher:n,containerId:o,deviceType:r})=>I({config:t,nativeData:e,breakpoint:O(r),publisher:n,containerId:o}),k=t=>e(void 0,void 0,void 0,function*(){if(!(t=>{const{editory:{editableConfiguration:{enabled:e=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=t;return Boolean(e&&n&&(null==o?void 0:o.publisherClassName))})(t))return t;try{const o=yield(t=>e(void 0,void 0,void 0,function*(){const e=(t=>{const{siteSpecificConfig:e,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=t;return(null==e?void 0:e.publisherClassName)&&o?`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${e.publisherClassName}/${o.toLowerCase()}.json`:null})(t);if(!e)return null;try{return yield d.get(e,{timeout:5e3})}catch(t){throw n("Failed to fetch S3 config",{error:t,url:e}),t}}))(t);return o?((t,e)=>l(e,t,s))(t,o):t}catch(e){return n("Error fetching S3 config, using site config",{error:e}),t}});export{P as createTemplateFromConfig,O as detectBreakpoint,k as getConfig,v as mergeAdjustment,I as renderAdNativeHtml};