@unidy.io/sdk 1.1.1-alpha2 → 1.1.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 (661) hide show
  1. package/dist/{esm/auth-DLKPv5Zm.js → sdk/auth-Che07PeV.js} +9 -9
  2. package/dist/{esm/auth-DLKPv5Zm.js.map → sdk/auth-Che07PeV.js.map} +1 -1
  3. package/dist/{components/auth-store.js → sdk/auth-store-CapiC8gJ.js} +4 -4
  4. package/dist/{esm/auth-store-BMqUdTpC.js.map → sdk/auth-store-CapiC8gJ.js.map} +1 -1
  5. package/dist/{components/flash-store.js → sdk/flash-store-DNcSEn2p.js} +4 -3
  6. package/dist/{esm/flash-store-CEvWSG0c.js.map → sdk/flash-store-DNcSEn2p.js.map} +1 -1
  7. package/dist/{components/i18n.js → sdk/i18n-BCI_ARJL.js} +25 -5
  8. package/dist/sdk/i18n-BCI_ARJL.js.map +1 -0
  9. package/dist/{esm/index-Bjp1XO-f.js → sdk/index-BnBstyfp.js} +3 -3
  10. package/dist/{esm/index-Bjp1XO-f.js.map → sdk/index-BnBstyfp.js.map} +1 -1
  11. package/dist/sdk/index-BqL27K_R.js +49640 -0
  12. package/dist/sdk/index-BqL27K_R.js.map +1 -0
  13. package/dist/{collection/auth/error-definitions.js → sdk/index-Cz3idqu9.js} +19 -2
  14. package/dist/sdk/index-Cz3idqu9.js.map +1 -0
  15. package/dist/sdk/index-gEcJztft.js +15349 -0
  16. package/dist/sdk/index-gEcJztft.js.map +1 -0
  17. package/dist/sdk/index.esm.js +22 -2
  18. package/dist/sdk/index.esm.js.map +1 -1
  19. package/dist/sdk/loader.esm.js.map +1 -1
  20. package/dist/sdk/locales/de.json +1 -0
  21. package/dist/sdk/locales/en.json +1 -0
  22. package/dist/sdk/locales/fr.json +1 -0
  23. package/dist/sdk/locales/it.json +1 -0
  24. package/dist/sdk/locales/nl_be.json +1 -0
  25. package/dist/sdk/locales/ro.json +1 -0
  26. package/dist/{esm/newsletter-helpers-Dh9k-4Ph.js → sdk/newsletter-helpers-DEXEBD0F.js} +16 -9
  27. package/dist/sdk/newsletter-helpers-DEXEBD0F.js.map +1 -0
  28. package/dist/sdk/newsletter-store-CvULKmsu.js +39 -0
  29. package/dist/sdk/newsletter-store-CvULKmsu.js.map +1 -0
  30. package/dist/{components/profile-helpers.js → sdk/profile-helpers-Bs3aj0CO.js} +4 -4
  31. package/dist/{esm/profile-helpers-7onubaoR.js.map → sdk/profile-helpers-Bs3aj0CO.js.map} +1 -1
  32. package/dist/{components/profile-store.js → sdk/profile-store-DD6sq42i.js} +3 -3
  33. package/dist/{esm/profile-store-RmZB2PTc.js.map → sdk/profile-store-DD6sq42i.js.map} +1 -1
  34. package/dist/sdk/sdk.esm.js +48 -2
  35. package/dist/sdk/sdk.esm.js.map +1 -1
  36. package/dist/sdk/u-conditional-render.entry.esm.js.map +1 -1
  37. package/dist/{esm → sdk}/u-conditional-render.entry.js +13 -12
  38. package/dist/sdk/u-config.entry.esm.js.map +1 -1
  39. package/dist/{esm → sdk}/u-config.entry.js +13 -12
  40. package/dist/sdk/u-email-field.entry.esm.js.map +1 -1
  41. package/dist/sdk/u-email-field.entry.js +75 -0
  42. package/dist/{esm → sdk}/u-error-message.entry.js +7 -7
  43. package/dist/sdk/u-field.entry.esm.js.map +1 -0
  44. package/dist/sdk/u-field.entry.js +101 -0
  45. package/dist/sdk/u-flash-message.entry.esm.js.map +1 -1
  46. package/dist/sdk/u-flash-message.entry.js +35 -0
  47. package/dist/sdk/u-full-profile.entry.esm.js.map +1 -1
  48. package/dist/sdk/u-full-profile.entry.js +35 -0
  49. package/dist/{esm → sdk}/u-logout-button.entry.js +11 -11
  50. package/dist/sdk/u-magic-code-field.entry.esm.js.map +1 -1
  51. package/dist/{esm → sdk}/u-magic-code-field.entry.js +10 -10
  52. package/dist/{esm → sdk}/u-missing-field.entry.js +5 -5
  53. package/dist/{esm → sdk}/u-missing-fields-submit-button.entry.js +9 -9
  54. package/dist/sdk/u-newsletter-checkbox.entry.esm.js.map +1 -1
  55. package/dist/{esm → sdk}/u-newsletter-checkbox.entry.js +25 -37
  56. package/dist/{esm → sdk}/u-newsletter-logout-button.entry.js +12 -12
  57. package/dist/sdk/u-newsletter-preference-checkbox.entry.esm.js.map +1 -1
  58. package/dist/{esm → sdk}/u-newsletter-preference-checkbox.entry.js +22 -33
  59. package/dist/sdk/u-newsletter-resend-doi-button.entry.esm.js.map +1 -1
  60. package/dist/sdk/u-newsletter-resend-doi-button.entry.js +47 -0
  61. package/dist/sdk/u-newsletter-root.entry.esm.js.map +1 -1
  62. package/dist/{esm → sdk}/u-newsletter-root.entry.js +19 -33
  63. package/dist/sdk/u-newsletter-toggle-subscription-button.entry.esm.js.map +1 -1
  64. package/dist/sdk/u-newsletter-toggle-subscription-button.entry.js +71 -0
  65. package/dist/{esm → sdk}/u-pagination-button.entry.js +2 -2
  66. package/dist/{esm → sdk}/u-pagination-page.entry.js +2 -2
  67. package/dist/{esm → sdk}/u-passkey.entry.js +10 -10
  68. package/dist/{esm → sdk}/u-password-field.entry.js +6 -6
  69. package/dist/sdk/u-profile.entry.esm.js.map +1 -0
  70. package/dist/{components/profile.js → sdk/u-profile.entry.js} +18 -38
  71. package/dist/sdk/u-raw-field.entry.esm.js.map +1 -0
  72. package/dist/{components/raw-field.js → sdk/u-raw-field.entry.js} +10 -51
  73. package/dist/{esm → sdk}/u-registration-button.entry.js +6 -6
  74. package/dist/{esm → sdk}/u-reset-password-button.entry.js +10 -10
  75. package/dist/{esm → sdk}/u-send-magic-code-button.entry.js +10 -10
  76. package/dist/{esm → sdk}/u-signed-in.entry.js +5 -5
  77. package/dist/{esm → sdk}/u-signin-root.entry.js +7 -7
  78. package/dist/sdk/u-signin-step.entry.esm.js.map +1 -1
  79. package/dist/{esm → sdk}/u-signin-step.entry.js +11 -10
  80. package/dist/{esm → sdk}/u-signin-strategy.entry.js +5 -5
  81. package/dist/{esm → sdk}/u-social-login-button.entry.js +6 -6
  82. package/dist/sdk/u-spinner.entry.esm.js.map +1 -1
  83. package/dist/{esm → sdk}/u-spinner.entry.js +3 -3
  84. package/dist/sdk/u-submit-button.entry.esm.js.map +1 -0
  85. package/dist/sdk/u-submit-button.entry.js +204 -0
  86. package/dist/sdk/u-ticketable-list.entry.esm.js.map +1 -1
  87. package/dist/{esm → sdk}/u-ticketable-list.entry.js +141 -73
  88. package/dist/{components/unidy-store.js → sdk/unidy-store-BwZym11Y.js} +4 -3
  89. package/dist/{esm/unidy-store-BldTAtO0.js.map → sdk/unidy-store-BwZym11Y.js.map} +1 -1
  90. package/dist/types/components.d.ts +0 -36
  91. package/dist/types/newsletter/components/newsletter-checkbox/newsletter-checkbox.d.ts +0 -5
  92. package/dist/types/newsletter/components/newsletter-root/newsletter-root.d.ts +0 -9
  93. package/dist/types/newsletter/components/preference-checkbox/preference-checkbox.d.ts +0 -5
  94. package/dist/types/newsletter/newsletter-helpers.d.ts +1 -1
  95. package/dist/types/newsletter/store/newsletter-store.d.ts +3 -0
  96. package/dist/types/shared/components/email-field/email-field.d.ts +0 -2
  97. package/package.json +1 -1
  98. package/dist/cjs/app-globals-DSKjcXX_.js +0 -10
  99. package/dist/cjs/app-globals-DSKjcXX_.js.map +0 -1
  100. package/dist/cjs/auth-BVKZHhXz.js +0 -573
  101. package/dist/cjs/auth-BVKZHhXz.js.map +0 -1
  102. package/dist/cjs/auth-store-DC9EVec8.js +0 -184
  103. package/dist/cjs/auth-store-DC9EVec8.js.map +0 -1
  104. package/dist/cjs/component-utils-BpMyeVQo.js +0 -35
  105. package/dist/cjs/component-utils-BpMyeVQo.js.map +0 -1
  106. package/dist/cjs/flash-store-BuIBuQDx.js +0 -50
  107. package/dist/cjs/flash-store-BuIBuQDx.js.map +0 -1
  108. package/dist/cjs/helpers-BcPlKlBG.js +0 -11
  109. package/dist/cjs/helpers-BcPlKlBG.js.map +0 -1
  110. package/dist/cjs/helpers-DJyRa0Qo.js +0 -11
  111. package/dist/cjs/helpers-DJyRa0Qo.js.map +0 -1
  112. package/dist/cjs/i18n-Xy1So-ba.js +0 -3224
  113. package/dist/cjs/i18n-Xy1So-ba.js.map +0 -1
  114. package/dist/cjs/index-B_N5xKgH.js +0 -12025
  115. package/dist/cjs/index-B_N5xKgH.js.map +0 -1
  116. package/dist/cjs/index-DLz3FT7T.js +0 -214
  117. package/dist/cjs/index-DLz3FT7T.js.map +0 -1
  118. package/dist/cjs/index-DiUlebpf.js +0 -5256
  119. package/dist/cjs/index-DiUlebpf.js.map +0 -1
  120. package/dist/cjs/index.cjs.js +0 -64
  121. package/dist/cjs/index.cjs.js.map +0 -1
  122. package/dist/cjs/loader.cjs.js +0 -14
  123. package/dist/cjs/loader.cjs.js.map +0 -1
  124. package/dist/cjs/newsletter-helpers-D34j8zxr.js +0 -280
  125. package/dist/cjs/newsletter-helpers-D34j8zxr.js.map +0 -1
  126. package/dist/cjs/newsletter-store-dhtu8ywO.js +0 -27
  127. package/dist/cjs/newsletter-store-dhtu8ywO.js.map +0 -1
  128. package/dist/cjs/pagination-store-BEiW3MQd.js +0 -16
  129. package/dist/cjs/pagination-store-BEiW3MQd.js.map +0 -1
  130. package/dist/cjs/profile-helpers-DrcTgN5n.js +0 -39
  131. package/dist/cjs/profile-helpers-DrcTgN5n.js.map +0 -1
  132. package/dist/cjs/profile-store-P_BcYkef.js +0 -22
  133. package/dist/cjs/profile-store-P_BcYkef.js.map +0 -1
  134. package/dist/cjs/sdk.cjs.js +0 -26
  135. package/dist/cjs/sdk.cjs.js.map +0 -1
  136. package/dist/cjs/u-conditional-render.cjs.entry.js +0 -102
  137. package/dist/cjs/u-conditional-render.entry.cjs.js.map +0 -1
  138. package/dist/cjs/u-config.cjs.entry.js +0 -87
  139. package/dist/cjs/u-config.entry.cjs.js.map +0 -1
  140. package/dist/cjs/u-email-field.cjs.entry.js +0 -75
  141. package/dist/cjs/u-email-field.entry.cjs.js.map +0 -1
  142. package/dist/cjs/u-error-message.cjs.entry.js +0 -82
  143. package/dist/cjs/u-error-message.entry.cjs.js.map +0 -1
  144. package/dist/cjs/u-field.u-raw-field.entry.cjs.js.map +0 -1
  145. package/dist/cjs/u-field_2.cjs.entry.js +0 -375
  146. package/dist/cjs/u-flash-message.cjs.entry.js +0 -34
  147. package/dist/cjs/u-flash-message.entry.cjs.js.map +0 -1
  148. package/dist/cjs/u-full-profile.cjs.entry.js +0 -36
  149. package/dist/cjs/u-full-profile.entry.cjs.js.map +0 -1
  150. package/dist/cjs/u-logout-button.cjs.entry.js +0 -38
  151. package/dist/cjs/u-logout-button.entry.cjs.js.map +0 -1
  152. package/dist/cjs/u-magic-code-field.cjs.entry.js +0 -91
  153. package/dist/cjs/u-magic-code-field.entry.cjs.js.map +0 -1
  154. package/dist/cjs/u-missing-field.cjs.entry.js +0 -22
  155. package/dist/cjs/u-missing-field.entry.cjs.js.map +0 -1
  156. package/dist/cjs/u-missing-fields-submit-button.cjs.entry.js +0 -46
  157. package/dist/cjs/u-missing-fields-submit-button.entry.cjs.js.map +0 -1
  158. package/dist/cjs/u-newsletter-checkbox.cjs.entry.js +0 -75
  159. package/dist/cjs/u-newsletter-checkbox.entry.cjs.js.map +0 -1
  160. package/dist/cjs/u-newsletter-logout-button.cjs.entry.js +0 -36
  161. package/dist/cjs/u-newsletter-logout-button.entry.cjs.js.map +0 -1
  162. package/dist/cjs/u-newsletter-preference-checkbox.cjs.entry.js +0 -117
  163. package/dist/cjs/u-newsletter-preference-checkbox.entry.cjs.js.map +0 -1
  164. package/dist/cjs/u-newsletter-resend-doi-button.cjs.entry.js +0 -46
  165. package/dist/cjs/u-newsletter-resend-doi-button.entry.cjs.js.map +0 -1
  166. package/dist/cjs/u-newsletter-root.cjs.entry.js +0 -86
  167. package/dist/cjs/u-newsletter-root.entry.cjs.js.map +0 -1
  168. package/dist/cjs/u-newsletter-toggle-subscription-button.cjs.entry.js +0 -70
  169. package/dist/cjs/u-newsletter-toggle-subscription-button.entry.cjs.js.map +0 -1
  170. package/dist/cjs/u-pagination-button.cjs.entry.js +0 -63
  171. package/dist/cjs/u-pagination-button.entry.cjs.js.map +0 -1
  172. package/dist/cjs/u-pagination-page.cjs.entry.js +0 -44
  173. package/dist/cjs/u-pagination-page.entry.cjs.js.map +0 -1
  174. package/dist/cjs/u-passkey.cjs.entry.js +0 -47
  175. package/dist/cjs/u-passkey.entry.cjs.js.map +0 -1
  176. package/dist/cjs/u-password-field.cjs.entry.js +0 -104
  177. package/dist/cjs/u-password-field.entry.cjs.js.map +0 -1
  178. package/dist/cjs/u-profile.u-submit-button.entry.cjs.js.map +0 -1
  179. package/dist/cjs/u-profile_2.cjs.entry.js +0 -311
  180. package/dist/cjs/u-registration-button.cjs.entry.js +0 -48
  181. package/dist/cjs/u-registration-button.entry.cjs.js.map +0 -1
  182. package/dist/cjs/u-reset-password-button.cjs.entry.js +0 -47
  183. package/dist/cjs/u-reset-password-button.entry.cjs.js.map +0 -1
  184. package/dist/cjs/u-send-magic-code-button.cjs.entry.js +0 -68
  185. package/dist/cjs/u-send-magic-code-button.entry.cjs.js.map +0 -1
  186. package/dist/cjs/u-signed-in.cjs.entry.js +0 -25
  187. package/dist/cjs/u-signed-in.entry.cjs.js.map +0 -1
  188. package/dist/cjs/u-signin-root.cjs.entry.js +0 -43
  189. package/dist/cjs/u-signin-root.entry.cjs.js.map +0 -1
  190. package/dist/cjs/u-signin-step.cjs.entry.js +0 -66
  191. package/dist/cjs/u-signin-step.entry.cjs.js.map +0 -1
  192. package/dist/cjs/u-signin-strategy.cjs.entry.js +0 -30
  193. package/dist/cjs/u-signin-strategy.entry.cjs.js.map +0 -1
  194. package/dist/cjs/u-social-login-button.cjs.entry.js +0 -100
  195. package/dist/cjs/u-social-login-button.entry.cjs.js.map +0 -1
  196. package/dist/cjs/u-spinner.cjs.entry.js +0 -18
  197. package/dist/cjs/u-spinner.entry.cjs.js.map +0 -1
  198. package/dist/cjs/u-ticketable-list.cjs.entry.js +0 -6078
  199. package/dist/cjs/u-ticketable-list.entry.cjs.js.map +0 -1
  200. package/dist/cjs/unidy-store-7AbWnZ6g.js +0 -41
  201. package/dist/cjs/unidy-store-7AbWnZ6g.js.map +0 -1
  202. package/dist/collection/api/client.js +0 -144
  203. package/dist/collection/api/client.js.map +0 -1
  204. package/dist/collection/api/index.js +0 -42
  205. package/dist/collection/api/index.js.map +0 -1
  206. package/dist/collection/api/shared.js +0 -18
  207. package/dist/collection/api/shared.js.map +0 -1
  208. package/dist/collection/auth/api/auth.js +0 -264
  209. package/dist/collection/auth/api/auth.js.map +0 -1
  210. package/dist/collection/auth/auth-helpers.js +0 -291
  211. package/dist/collection/auth/auth-helpers.js.map +0 -1
  212. package/dist/collection/auth/auth.js +0 -121
  213. package/dist/collection/auth/auth.js.map +0 -1
  214. package/dist/collection/auth/components/helpers.js +0 -5
  215. package/dist/collection/auth/components/helpers.js.map +0 -1
  216. package/dist/collection/auth/components/logout-button/logout-button.js +0 -85
  217. package/dist/collection/auth/components/logout-button/logout-button.js.map +0 -1
  218. package/dist/collection/auth/components/magic-code-field/magic-code-field.css +0 -1
  219. package/dist/collection/auth/components/magic-code-field/magic-code-field.js +0 -113
  220. package/dist/collection/auth/components/magic-code-field/magic-code-field.js.map +0 -1
  221. package/dist/collection/auth/components/missing-field/missing-field.js +0 -14
  222. package/dist/collection/auth/components/missing-field/missing-field.js.map +0 -1
  223. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js +0 -39
  224. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js.map +0 -1
  225. package/dist/collection/auth/components/passkey/passkey.js +0 -103
  226. package/dist/collection/auth/components/passkey/passkey.js.map +0 -1
  227. package/dist/collection/auth/components/password-field/password-field.js +0 -166
  228. package/dist/collection/auth/components/password-field/password-field.js.map +0 -1
  229. package/dist/collection/auth/components/registration/registration-button.js +0 -104
  230. package/dist/collection/auth/components/registration/registration-button.js.map +0 -1
  231. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js +0 -59
  232. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js.map +0 -1
  233. package/dist/collection/auth/components/send-magic-code-button/send-magic-code-button.js +0 -104
  234. package/dist/collection/auth/components/send-magic-code-button/send-magic-code-button.js.map +0 -1
  235. package/dist/collection/auth/components/signed-in/signed-in.js +0 -59
  236. package/dist/collection/auth/components/signed-in/signed-in.js.map +0 -1
  237. package/dist/collection/auth/components/signin-root/signin-root.js +0 -97
  238. package/dist/collection/auth/components/signin-root/signin-root.js.map +0 -1
  239. package/dist/collection/auth/components/signin-step/signin-step.js +0 -135
  240. package/dist/collection/auth/components/signin-step/signin-step.js.map +0 -1
  241. package/dist/collection/auth/components/signin-strategy/signin-strategy.js +0 -64
  242. package/dist/collection/auth/components/signin-strategy/signin-strategy.js.map +0 -1
  243. package/dist/collection/auth/components/social-logins/logos/apple.js +0 -3
  244. package/dist/collection/auth/components/social-logins/logos/apple.js.map +0 -1
  245. package/dist/collection/auth/components/social-logins/logos/discord.js +0 -3
  246. package/dist/collection/auth/components/social-logins/logos/discord.js.map +0 -1
  247. package/dist/collection/auth/components/social-logins/logos/facebook.js +0 -3
  248. package/dist/collection/auth/components/social-logins/logos/facebook.js.map +0 -1
  249. package/dist/collection/auth/components/social-logins/logos/google.js +0 -3
  250. package/dist/collection/auth/components/social-logins/logos/google.js.map +0 -1
  251. package/dist/collection/auth/components/social-logins/logos/linkedin.js +0 -3
  252. package/dist/collection/auth/components/social-logins/logos/linkedin.js.map +0 -1
  253. package/dist/collection/auth/components/social-logins/social-login-button.css +0 -1
  254. package/dist/collection/auth/components/social-logins/social-login-button.js +0 -188
  255. package/dist/collection/auth/components/social-logins/social-login-button.js.map +0 -1
  256. package/dist/collection/auth/components/submit-button/auth-submit-button.js +0 -62
  257. package/dist/collection/auth/components/submit-button/auth-submit-button.js.map +0 -1
  258. package/dist/collection/auth/error-definitions.js.map +0 -1
  259. package/dist/collection/auth/index.js +0 -14
  260. package/dist/collection/auth/index.js.map +0 -1
  261. package/dist/collection/auth/passkey-auth.js +0 -106
  262. package/dist/collection/auth/passkey-auth.js.map +0 -1
  263. package/dist/collection/auth/store/auth-store.js +0 -175
  264. package/dist/collection/auth/store/auth-store.js.map +0 -1
  265. package/dist/collection/collection-manifest.json +0 -46
  266. package/dist/collection/globalScript.js +0 -18
  267. package/dist/collection/globalScript.js.map +0 -1
  268. package/dist/collection/i18n.js +0 -31
  269. package/dist/collection/i18n.js.map +0 -1
  270. package/dist/collection/index.js +0 -16
  271. package/dist/collection/index.js.map +0 -1
  272. package/dist/collection/locales/de.json +0 -131
  273. package/dist/collection/locales/en.json +0 -131
  274. package/dist/collection/locales/fr.json +0 -131
  275. package/dist/collection/locales/it.json +0 -131
  276. package/dist/collection/locales/nl_be.json +0 -131
  277. package/dist/collection/locales/ro.json +0 -131
  278. package/dist/collection/logger.js +0 -106
  279. package/dist/collection/logger.js.map +0 -1
  280. package/dist/collection/newsletter/api/newsletters.js +0 -189
  281. package/dist/collection/newsletter/api/newsletters.js.map +0 -1
  282. package/dist/collection/newsletter/components/helpers.js +0 -5
  283. package/dist/collection/newsletter/components/helpers.js.map +0 -1
  284. package/dist/collection/newsletter/components/logout-button/logout-button.js +0 -48
  285. package/dist/collection/newsletter/components/logout-button/logout-button.js.map +0 -1
  286. package/dist/collection/newsletter/components/newsletter-checkbox/newsletter-checkbox.js +0 -163
  287. package/dist/collection/newsletter/components/newsletter-checkbox/newsletter-checkbox.js.map +0 -1
  288. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js +0 -164
  289. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js.map +0 -1
  290. package/dist/collection/newsletter/components/preference-checkbox/preference-checkbox.js +0 -231
  291. package/dist/collection/newsletter/components/preference-checkbox/preference-checkbox.js.map +0 -1
  292. package/dist/collection/newsletter/components/resend-doi-button/resend-doi-button.js +0 -79
  293. package/dist/collection/newsletter/components/resend-doi-button/resend-doi-button.js.map +0 -1
  294. package/dist/collection/newsletter/components/submit-button/newsletter-submit-button.js +0 -19
  295. package/dist/collection/newsletter/components/submit-button/newsletter-submit-button.js.map +0 -1
  296. package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.js +0 -144
  297. package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.js.map +0 -1
  298. package/dist/collection/newsletter/index.js +0 -11
  299. package/dist/collection/newsletter/index.js.map +0 -1
  300. package/dist/collection/newsletter/newsletter-helpers.js +0 -268
  301. package/dist/collection/newsletter/newsletter-helpers.js.map +0 -1
  302. package/dist/collection/newsletter/store/newsletter-store.js +0 -24
  303. package/dist/collection/newsletter/store/newsletter-store.js.map +0 -1
  304. package/dist/collection/profile/api/profile.js +0 -156
  305. package/dist/collection/profile/api/profile.js.map +0 -1
  306. package/dist/collection/profile/components/field/field.css +0 -1
  307. package/dist/collection/profile/components/field/field.js +0 -359
  308. package/dist/collection/profile/components/field/field.js.map +0 -1
  309. package/dist/collection/profile/components/full-profile/full-profile.css +0 -1
  310. package/dist/collection/profile/components/full-profile/full-profile.js +0 -77
  311. package/dist/collection/profile/components/full-profile/full-profile.js.map +0 -1
  312. package/dist/collection/profile/components/profile/profile.js +0 -189
  313. package/dist/collection/profile/components/profile/profile.js.map +0 -1
  314. package/dist/collection/profile/components/raw-field/raw-field.js +0 -697
  315. package/dist/collection/profile/components/raw-field/raw-field.js.map +0 -1
  316. package/dist/collection/profile/components/raw-input-fields/Input.js +0 -3
  317. package/dist/collection/profile/components/raw-input-fields/Input.js.map +0 -1
  318. package/dist/collection/profile/components/raw-input-fields/MultiSelect.js +0 -8
  319. package/dist/collection/profile/components/raw-input-fields/MultiSelect.js.map +0 -1
  320. package/dist/collection/profile/components/raw-input-fields/RadioGroup.js +0 -8
  321. package/dist/collection/profile/components/raw-input-fields/RadioGroup.js.map +0 -1
  322. package/dist/collection/profile/components/raw-input-fields/Select.js +0 -11
  323. package/dist/collection/profile/components/raw-input-fields/Select.js.map +0 -1
  324. package/dist/collection/profile/components/raw-input-fields/Textarea.js +0 -3
  325. package/dist/collection/profile/components/raw-input-fields/Textarea.js.map +0 -1
  326. package/dist/collection/profile/components/submit-button/profile-submit-button.js +0 -17
  327. package/dist/collection/profile/components/submit-button/profile-submit-button.js.map +0 -1
  328. package/dist/collection/profile/index.js +0 -13
  329. package/dist/collection/profile/index.js.map +0 -1
  330. package/dist/collection/profile/profile-helpers.js +0 -31
  331. package/dist/collection/profile/profile-helpers.js.map +0 -1
  332. package/dist/collection/profile/store/profile-store.js +0 -15
  333. package/dist/collection/profile/store/profile-store.js.map +0 -1
  334. package/dist/collection/sdk.css +0 -39
  335. package/dist/collection/shared/component-utils.js +0 -28
  336. package/dist/collection/shared/component-utils.js.map +0 -1
  337. package/dist/collection/shared/components/conditional-render/conditional-render.js +0 -177
  338. package/dist/collection/shared/components/conditional-render/conditional-render.js.map +0 -1
  339. package/dist/collection/shared/components/config/config.js +0 -260
  340. package/dist/collection/shared/components/config/config.js.map +0 -1
  341. package/dist/collection/shared/components/email-field/email-field.js +0 -161
  342. package/dist/collection/shared/components/email-field/email-field.js.map +0 -1
  343. package/dist/collection/shared/components/error-message/error-message.js +0 -141
  344. package/dist/collection/shared/components/error-message/error-message.js.map +0 -1
  345. package/dist/collection/shared/components/flash-message/close-icon.js +0 -3
  346. package/dist/collection/shared/components/flash-message/close-icon.js.map +0 -1
  347. package/dist/collection/shared/components/flash-message/flash-message.js +0 -69
  348. package/dist/collection/shared/components/flash-message/flash-message.js.map +0 -1
  349. package/dist/collection/shared/components/spinner/spinner.css +0 -1
  350. package/dist/collection/shared/components/spinner/spinner.js +0 -19
  351. package/dist/collection/shared/components/spinner/spinner.js.map +0 -1
  352. package/dist/collection/shared/components/submit-button/context.js +0 -10
  353. package/dist/collection/shared/components/submit-button/context.js.map +0 -1
  354. package/dist/collection/shared/components/submit-button/submit-button.js +0 -186
  355. package/dist/collection/shared/components/submit-button/submit-button.js.map +0 -1
  356. package/dist/collection/shared/store/flash-store.js +0 -43
  357. package/dist/collection/shared/store/flash-store.js.map +0 -1
  358. package/dist/collection/shared/store/unidy-store.js +0 -33
  359. package/dist/collection/shared/store/unidy-store.js.map +0 -1
  360. package/dist/collection/ticketable/api/get-with-schema.js +0 -35
  361. package/dist/collection/ticketable/api/get-with-schema.js.map +0 -1
  362. package/dist/collection/ticketable/api/schemas.js +0 -12
  363. package/dist/collection/ticketable/api/schemas.js.map +0 -1
  364. package/dist/collection/ticketable/api/subscriptions.js +0 -47
  365. package/dist/collection/ticketable/api/subscriptions.js.map +0 -1
  366. package/dist/collection/ticketable/api/tickets.js +0 -48
  367. package/dist/collection/ticketable/api/tickets.js.map +0 -1
  368. package/dist/collection/ticketable/components/pagination/pagination-button.js +0 -108
  369. package/dist/collection/ticketable/components/pagination/pagination-button.js.map +0 -1
  370. package/dist/collection/ticketable/components/pagination/pagination-page.js +0 -69
  371. package/dist/collection/ticketable/components/pagination/pagination-page.js.map +0 -1
  372. package/dist/collection/ticketable/components/ticketable-list/skeleton-helpers.js +0 -54
  373. package/dist/collection/ticketable/components/ticketable-list/skeleton-helpers.js.map +0 -1
  374. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js +0 -442
  375. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js.map +0 -1
  376. package/dist/collection/ticketable/index.js +0 -13
  377. package/dist/collection/ticketable/index.js.map +0 -1
  378. package/dist/collection/ticketable/store/pagination-store.js +0 -9
  379. package/dist/collection/ticketable/store/pagination-store.js.map +0 -1
  380. package/dist/components/auth-store.js.map +0 -1
  381. package/dist/components/auth.js +0 -572
  382. package/dist/components/auth.js.map +0 -1
  383. package/dist/components/component-utils.js +0 -32
  384. package/dist/components/component-utils.js.map +0 -1
  385. package/dist/components/exports.js +0 -4106
  386. package/dist/components/exports.js.map +0 -1
  387. package/dist/components/field.js +0 -144
  388. package/dist/components/field.js.map +0 -1
  389. package/dist/components/flash-store.js.map +0 -1
  390. package/dist/components/helpers.js +0 -9
  391. package/dist/components/helpers.js.map +0 -1
  392. package/dist/components/helpers2.js +0 -9
  393. package/dist/components/helpers2.js.map +0 -1
  394. package/dist/components/i18n.js.map +0 -1
  395. package/dist/components/index.js +0 -5902
  396. package/dist/components/index.js.map +0 -1
  397. package/dist/components/index2.js +0 -5245
  398. package/dist/components/index2.js.map +0 -1
  399. package/dist/components/index3.js +0 -212
  400. package/dist/components/index3.js.map +0 -1
  401. package/dist/components/logger.js +0 -111
  402. package/dist/components/logger.js.map +0 -1
  403. package/dist/components/newsletter-helpers.js +0 -269
  404. package/dist/components/newsletter-helpers.js.map +0 -1
  405. package/dist/components/newsletter-store.js +0 -24
  406. package/dist/components/newsletter-store.js.map +0 -1
  407. package/dist/components/pagination-store.js +0 -14
  408. package/dist/components/pagination-store.js.map +0 -1
  409. package/dist/components/profile-helpers.js.map +0 -1
  410. package/dist/components/profile-store.js.map +0 -1
  411. package/dist/components/profile.js.map +0 -1
  412. package/dist/components/raw-field.js.map +0 -1
  413. package/dist/components/spinner.js +0 -35
  414. package/dist/components/spinner.js.map +0 -1
  415. package/dist/components/submit-button.js +0 -229
  416. package/dist/components/submit-button.js.map +0 -1
  417. package/dist/components/u-conditional-render.js +0 -120
  418. package/dist/components/u-conditional-render.js.map +0 -1
  419. package/dist/components/u-config.js +0 -113
  420. package/dist/components/u-config.js.map +0 -1
  421. package/dist/components/u-email-field.js +0 -98
  422. package/dist/components/u-email-field.js.map +0 -1
  423. package/dist/components/u-error-message.js +0 -105
  424. package/dist/components/u-error-message.js.map +0 -1
  425. package/dist/components/u-field.js +0 -9
  426. package/dist/components/u-field.js.map +0 -1
  427. package/dist/components/u-flash-message.js +0 -55
  428. package/dist/components/u-flash-message.js.map +0 -1
  429. package/dist/components/u-full-profile.js +0 -86
  430. package/dist/components/u-full-profile.js.map +0 -1
  431. package/dist/components/u-logout-button.js +0 -53
  432. package/dist/components/u-logout-button.js.map +0 -1
  433. package/dist/components/u-magic-code-field.js +0 -106
  434. package/dist/components/u-magic-code-field.js.map +0 -1
  435. package/dist/components/u-missing-field.js +0 -57
  436. package/dist/components/u-missing-field.js.map +0 -1
  437. package/dist/components/u-missing-fields-submit-button.js +0 -70
  438. package/dist/components/u-missing-fields-submit-button.js.map +0 -1
  439. package/dist/components/u-newsletter-checkbox.js +0 -91
  440. package/dist/components/u-newsletter-checkbox.js.map +0 -1
  441. package/dist/components/u-newsletter-logout-button.js +0 -51
  442. package/dist/components/u-newsletter-logout-button.js.map +0 -1
  443. package/dist/components/u-newsletter-preference-checkbox.js +0 -137
  444. package/dist/components/u-newsletter-preference-checkbox.js.map +0 -1
  445. package/dist/components/u-newsletter-resend-doi-button.js +0 -67
  446. package/dist/components/u-newsletter-resend-doi-button.js.map +0 -1
  447. package/dist/components/u-newsletter-root.js +0 -104
  448. package/dist/components/u-newsletter-root.js.map +0 -1
  449. package/dist/components/u-newsletter-toggle-subscription-button.js +0 -94
  450. package/dist/components/u-newsletter-toggle-subscription-button.js.map +0 -1
  451. package/dist/components/u-pagination-button.js +0 -86
  452. package/dist/components/u-pagination-button.js.map +0 -1
  453. package/dist/components/u-pagination-page.js +0 -66
  454. package/dist/components/u-pagination-page.js.map +0 -1
  455. package/dist/components/u-passkey.js +0 -65
  456. package/dist/components/u-passkey.js.map +0 -1
  457. package/dist/components/u-password-field.js +0 -125
  458. package/dist/components/u-password-field.js.map +0 -1
  459. package/dist/components/u-profile.js +0 -9
  460. package/dist/components/u-profile.js.map +0 -1
  461. package/dist/components/u-raw-field.js +0 -9
  462. package/dist/components/u-raw-field.js.map +0 -1
  463. package/dist/components/u-registration-button.js +0 -70
  464. package/dist/components/u-registration-button.js.map +0 -1
  465. package/dist/components/u-reset-password-button.js +0 -63
  466. package/dist/components/u-reset-password-button.js.map +0 -1
  467. package/dist/components/u-send-magic-code-button.js +0 -85
  468. package/dist/components/u-send-magic-code-button.js.map +0 -1
  469. package/dist/components/u-signed-in.js +0 -44
  470. package/dist/components/u-signed-in.js.map +0 -1
  471. package/dist/components/u-signin-root.js +0 -63
  472. package/dist/components/u-signin-root.js.map +0 -1
  473. package/dist/components/u-signin-step.js +0 -84
  474. package/dist/components/u-signin-step.js.map +0 -1
  475. package/dist/components/u-signin-strategy.js +0 -50
  476. package/dist/components/u-signin-strategy.js.map +0 -1
  477. package/dist/components/u-social-login-button.js +0 -125
  478. package/dist/components/u-social-login-button.js.map +0 -1
  479. package/dist/components/u-spinner.js +0 -9
  480. package/dist/components/u-spinner.js.map +0 -1
  481. package/dist/components/u-submit-button.js +0 -9
  482. package/dist/components/u-submit-button.js.map +0 -1
  483. package/dist/components/u-ticketable-list.js +0 -6113
  484. package/dist/components/u-ticketable-list.js.map +0 -1
  485. package/dist/components/unidy-store.js.map +0 -1
  486. package/dist/esm/app-globals-CPU9ZcqZ.js +0 -8
  487. package/dist/esm/app-globals-CPU9ZcqZ.js.map +0 -1
  488. package/dist/esm/auth-store-BMqUdTpC.js +0 -179
  489. package/dist/esm/flash-store-CEvWSG0c.js +0 -47
  490. package/dist/esm/i18n-BR-AGAnn.js +0 -3221
  491. package/dist/esm/i18n-BR-AGAnn.js.map +0 -1
  492. package/dist/esm/index-Ci3aTmzp.js +0 -12007
  493. package/dist/esm/index-Ci3aTmzp.js.map +0 -1
  494. package/dist/esm/index-DKaIwo59.js +0 -5243
  495. package/dist/esm/index-DKaIwo59.js.map +0 -1
  496. package/dist/esm/index.js +0 -40
  497. package/dist/esm/index.js.map +0 -1
  498. package/dist/esm/loader.js +0 -12
  499. package/dist/esm/loader.js.map +0 -1
  500. package/dist/esm/newsletter-helpers-Dh9k-4Ph.js.map +0 -1
  501. package/dist/esm/newsletter-store-BYmuLQg8.js +0 -24
  502. package/dist/esm/newsletter-store-BYmuLQg8.js.map +0 -1
  503. package/dist/esm/pagination-store-DzdJOp-n.js +0 -14
  504. package/dist/esm/pagination-store-DzdJOp-n.js.map +0 -1
  505. package/dist/esm/profile-helpers-7onubaoR.js +0 -36
  506. package/dist/esm/profile-store-RmZB2PTc.js +0 -18
  507. package/dist/esm/sdk.js +0 -22
  508. package/dist/esm/sdk.js.map +0 -1
  509. package/dist/esm/u-conditional-render.entry.js.map +0 -1
  510. package/dist/esm/u-config.entry.js.map +0 -1
  511. package/dist/esm/u-email-field.entry.js +0 -73
  512. package/dist/esm/u-email-field.entry.js.map +0 -1
  513. package/dist/esm/u-error-message.entry.js.map +0 -1
  514. package/dist/esm/u-field.u-raw-field.entry.js.map +0 -1
  515. package/dist/esm/u-field_2.entry.js +0 -372
  516. package/dist/esm/u-flash-message.entry.js +0 -32
  517. package/dist/esm/u-flash-message.entry.js.map +0 -1
  518. package/dist/esm/u-full-profile.entry.js +0 -34
  519. package/dist/esm/u-full-profile.entry.js.map +0 -1
  520. package/dist/esm/u-logout-button.entry.js.map +0 -1
  521. package/dist/esm/u-magic-code-field.entry.js.map +0 -1
  522. package/dist/esm/u-missing-field.entry.js.map +0 -1
  523. package/dist/esm/u-missing-fields-submit-button.entry.js.map +0 -1
  524. package/dist/esm/u-newsletter-checkbox.entry.js.map +0 -1
  525. package/dist/esm/u-newsletter-logout-button.entry.js.map +0 -1
  526. package/dist/esm/u-newsletter-preference-checkbox.entry.js.map +0 -1
  527. package/dist/esm/u-newsletter-resend-doi-button.entry.js +0 -44
  528. package/dist/esm/u-newsletter-resend-doi-button.entry.js.map +0 -1
  529. package/dist/esm/u-newsletter-root.entry.js.map +0 -1
  530. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js +0 -68
  531. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js.map +0 -1
  532. package/dist/esm/u-pagination-button.entry.js.map +0 -1
  533. package/dist/esm/u-pagination-page.entry.js.map +0 -1
  534. package/dist/esm/u-passkey.entry.js.map +0 -1
  535. package/dist/esm/u-password-field.entry.js.map +0 -1
  536. package/dist/esm/u-profile.u-submit-button.entry.js.map +0 -1
  537. package/dist/esm/u-profile_2.entry.js +0 -308
  538. package/dist/esm/u-registration-button.entry.js.map +0 -1
  539. package/dist/esm/u-reset-password-button.entry.js.map +0 -1
  540. package/dist/esm/u-send-magic-code-button.entry.js.map +0 -1
  541. package/dist/esm/u-signed-in.entry.js.map +0 -1
  542. package/dist/esm/u-signin-root.entry.js.map +0 -1
  543. package/dist/esm/u-signin-step.entry.js.map +0 -1
  544. package/dist/esm/u-signin-strategy.entry.js.map +0 -1
  545. package/dist/esm/u-social-login-button.entry.js.map +0 -1
  546. package/dist/esm/u-spinner.entry.js.map +0 -1
  547. package/dist/esm/u-ticketable-list.entry.js.map +0 -1
  548. package/dist/esm/unidy-store-BldTAtO0.js +0 -37
  549. package/dist/index.cjs.js +0 -1
  550. package/dist/index.js +0 -1
  551. package/dist/sdk/p-10e06612.entry.js +0 -2
  552. package/dist/sdk/p-10e06612.entry.js.map +0 -1
  553. package/dist/sdk/p-16f86a4d.entry.js +0 -2
  554. package/dist/sdk/p-16f86a4d.entry.js.map +0 -1
  555. package/dist/sdk/p-20240b02.entry.js +0 -2
  556. package/dist/sdk/p-20240b02.entry.js.map +0 -1
  557. package/dist/sdk/p-26f3d8db.entry.js +0 -2
  558. package/dist/sdk/p-26f3d8db.entry.js.map +0 -1
  559. package/dist/sdk/p-2da4497a.entry.js +0 -2
  560. package/dist/sdk/p-2da4497a.entry.js.map +0 -1
  561. package/dist/sdk/p-3f4c947d.entry.js +0 -2
  562. package/dist/sdk/p-3f4c947d.entry.js.map +0 -1
  563. package/dist/sdk/p-431ec460.entry.js +0 -2
  564. package/dist/sdk/p-431ec460.entry.js.map +0 -1
  565. package/dist/sdk/p-4f54194a.entry.js +0 -2
  566. package/dist/sdk/p-4f54194a.entry.js.map +0 -1
  567. package/dist/sdk/p-552056e7.entry.js +0 -2
  568. package/dist/sdk/p-552056e7.entry.js.map +0 -1
  569. package/dist/sdk/p-5da49d00.entry.js +0 -2
  570. package/dist/sdk/p-5da49d00.entry.js.map +0 -1
  571. package/dist/sdk/p-67096601.entry.js +0 -2
  572. package/dist/sdk/p-67096601.entry.js.map +0 -1
  573. package/dist/sdk/p-6893d167.entry.js +0 -2
  574. package/dist/sdk/p-6893d167.entry.js.map +0 -1
  575. package/dist/sdk/p-6e3c210c.entry.js +0 -2
  576. package/dist/sdk/p-6e3c210c.entry.js.map +0 -1
  577. package/dist/sdk/p-6febeead.entry.js +0 -2
  578. package/dist/sdk/p-6febeead.entry.js.map +0 -1
  579. package/dist/sdk/p-73c2ec89.entry.js +0 -2
  580. package/dist/sdk/p-73c2ec89.entry.js.map +0 -1
  581. package/dist/sdk/p-745742f1.entry.js +0 -2
  582. package/dist/sdk/p-745742f1.entry.js.map +0 -1
  583. package/dist/sdk/p-7a7c0db2.entry.js +0 -2
  584. package/dist/sdk/p-7a7c0db2.entry.js.map +0 -1
  585. package/dist/sdk/p-8d787494.entry.js +0 -2
  586. package/dist/sdk/p-8d787494.entry.js.map +0 -1
  587. package/dist/sdk/p-94dde7e5.entry.js +0 -2
  588. package/dist/sdk/p-94dde7e5.entry.js.map +0 -1
  589. package/dist/sdk/p-97d8ae02.entry.js +0 -2
  590. package/dist/sdk/p-97d8ae02.entry.js.map +0 -1
  591. package/dist/sdk/p-9da4dd6d.entry.js +0 -2
  592. package/dist/sdk/p-9da4dd6d.entry.js.map +0 -1
  593. package/dist/sdk/p-BZ1kW_eK.js +0 -2
  594. package/dist/sdk/p-BZ1kW_eK.js.map +0 -1
  595. package/dist/sdk/p-BlOjABPD.js +0 -2
  596. package/dist/sdk/p-BlOjABPD.js.map +0 -1
  597. package/dist/sdk/p-BqFCd65h.js +0 -2
  598. package/dist/sdk/p-BqFCd65h.js.map +0 -1
  599. package/dist/sdk/p-C0feI0p8.js +0 -2
  600. package/dist/sdk/p-C0feI0p8.js.map +0 -1
  601. package/dist/sdk/p-CDtLILSR.js +0 -2
  602. package/dist/sdk/p-CDtLILSR.js.map +0 -1
  603. package/dist/sdk/p-CFiZLMAA.js +0 -2
  604. package/dist/sdk/p-CFiZLMAA.js.map +0 -1
  605. package/dist/sdk/p-CR1oWC4S.js +0 -2
  606. package/dist/sdk/p-CR1oWC4S.js.map +0 -1
  607. package/dist/sdk/p-Ce8zGAi1.js +0 -2
  608. package/dist/sdk/p-Ce8zGAi1.js.map +0 -1
  609. package/dist/sdk/p-Ci3aTmzp.js +0 -3
  610. package/dist/sdk/p-Ci3aTmzp.js.map +0 -1
  611. package/dist/sdk/p-D1lzXl_Z.js +0 -2
  612. package/dist/sdk/p-D1lzXl_Z.js.map +0 -1
  613. package/dist/sdk/p-D4B6Zkq_.js +0 -2
  614. package/dist/sdk/p-D4B6Zkq_.js.map +0 -1
  615. package/dist/sdk/p-D8RGdjD3.js +0 -2
  616. package/dist/sdk/p-D8RGdjD3.js.map +0 -1
  617. package/dist/sdk/p-DGqadgLO.js +0 -2
  618. package/dist/sdk/p-DGqadgLO.js.map +0 -1
  619. package/dist/sdk/p-DSwwVdp1.js +0 -2
  620. package/dist/sdk/p-DSwwVdp1.js.map +0 -1
  621. package/dist/sdk/p-DUHc_Cx7.js +0 -2
  622. package/dist/sdk/p-DUHc_Cx7.js.map +0 -1
  623. package/dist/sdk/p-DYtgart8.js +0 -2
  624. package/dist/sdk/p-DYtgart8.js.map +0 -1
  625. package/dist/sdk/p-DsSffQBc.js +0 -2
  626. package/dist/sdk/p-DsSffQBc.js.map +0 -1
  627. package/dist/sdk/p-b79abe80.entry.js +0 -2
  628. package/dist/sdk/p-b79abe80.entry.js.map +0 -1
  629. package/dist/sdk/p-bb5ae222.entry.js +0 -2
  630. package/dist/sdk/p-bb5ae222.entry.js.map +0 -1
  631. package/dist/sdk/p-bbbec3d4.entry.js +0 -2
  632. package/dist/sdk/p-bbbec3d4.entry.js.map +0 -1
  633. package/dist/sdk/p-c2b6c674.entry.js +0 -2
  634. package/dist/sdk/p-c2b6c674.entry.js.map +0 -1
  635. package/dist/sdk/p-c2fba7c8.entry.js +0 -2
  636. package/dist/sdk/p-c2fba7c8.entry.js.map +0 -1
  637. package/dist/sdk/p-cba5d81e.entry.js +0 -2
  638. package/dist/sdk/p-cba5d81e.entry.js.map +0 -1
  639. package/dist/sdk/p-d2c6179a.entry.js +0 -2
  640. package/dist/sdk/p-d2c6179a.entry.js.map +0 -1
  641. package/dist/sdk/p-dcd4e8f0.entry.js +0 -2
  642. package/dist/sdk/p-dcd4e8f0.entry.js.map +0 -1
  643. package/dist/sdk/p-eaedb08e.entry.js +0 -2
  644. package/dist/sdk/p-eaedb08e.entry.js.map +0 -1
  645. package/dist/sdk/p-f0aecd55.entry.js +0 -2
  646. package/dist/sdk/p-f0aecd55.entry.js.map +0 -1
  647. package/dist/sdk/p-fc51c88d.entry.js +0 -2
  648. package/dist/sdk/p-fc51c88d.entry.js.map +0 -1
  649. package/dist/sdk/u-field.u-raw-field.entry.esm.js.map +0 -1
  650. package/dist/sdk/u-profile.u-submit-button.entry.esm.js.map +0 -1
  651. package/loader/cdn.js +0 -1
  652. package/loader/index.cjs.js +0 -1
  653. package/loader/index.d.ts +0 -24
  654. package/loader/index.es2017.js +0 -1
  655. package/loader/index.js +0 -2
  656. /package/dist/{esm → sdk}/component-utils-D1lzXl_Z.js +0 -0
  657. /package/dist/{esm → sdk}/component-utils-D1lzXl_Z.js.map +0 -0
  658. /package/dist/{esm → sdk}/helpers-BqFCd65h.js +0 -0
  659. /package/dist/{esm → sdk}/helpers-BqFCd65h.js.map +0 -0
  660. /package/dist/{esm → sdk}/helpers-DUHc_Cx7.js +0 -0
  661. /package/dist/{esm → sdk}/helpers-DUHc_Cx7.js.map +0 -0
@@ -1,137 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { a as isSubscribed, u as updateSubscriptionPreferences } from './newsletter-helpers.js';
3
- import { n as newsletterStore } from './newsletter-store.js';
4
-
5
- const NewsletterPreferenceCheckbox = /*@__PURE__*/ proxyCustomElement(class NewsletterPreferenceCheckbox extends HTMLElement {
6
- constructor(registerHost) {
7
- super();
8
- if (registerHost !== false) {
9
- this.__registerHost();
10
- }
11
- }
12
- internalName;
13
- preferenceIdentifier;
14
- checked = false;
15
- componentClassName;
16
- loading = false;
17
- existingSubscriptions = [];
18
- checkedPreferences = [];
19
- storeUnsubscribe;
20
- componentWillLoad() {
21
- this.subscribeToStore();
22
- this.initializeCheckedState();
23
- }
24
- disconnectedCallback() {
25
- this.storeUnsubscribe?.();
26
- }
27
- subscribeToStore() {
28
- this.storeUnsubscribe = newsletterStore.onChange("existingSubscriptions", (subscriptions) => {
29
- this.existingSubscriptions = subscriptions;
30
- });
31
- newsletterStore.onChange("checkedNewsletters", (checkedNewsletters) => {
32
- this.checkedPreferences = checkedNewsletters[this.internalName] || [];
33
- });
34
- this.existingSubscriptions = newsletterStore.state.existingSubscriptions;
35
- this.checkedPreferences = newsletterStore.state.checkedNewsletters[this.internalName] || [];
36
- }
37
- initializeCheckedState() {
38
- if (isSubscribed(this.internalName)) {
39
- return;
40
- }
41
- if (this.checked) {
42
- this.syncToStore(true);
43
- }
44
- }
45
- get subscription() {
46
- return this.existingSubscriptions.find((sub) => sub.newsletter_internal_name === this.internalName);
47
- }
48
- get isSubscribed() {
49
- return this.subscription !== undefined;
50
- }
51
- get isConfirmed() {
52
- return this.subscription?.confirmed ?? false;
53
- }
54
- get isDisabled() {
55
- return this.loading || (this.isSubscribed && !this.isConfirmed);
56
- }
57
- get isChecked() {
58
- return this.checkedPreferences.includes(this.preferenceIdentifier);
59
- }
60
- syncToStore(add) {
61
- const currentPreferences = newsletterStore.state.checkedNewsletters[this.internalName] || [];
62
- if (add) {
63
- if (!currentPreferences.includes(this.preferenceIdentifier)) {
64
- newsletterStore.set("checkedNewsletters", {
65
- ...newsletterStore.state.checkedNewsletters,
66
- [this.internalName]: [...currentPreferences, this.preferenceIdentifier],
67
- });
68
- }
69
- }
70
- else {
71
- newsletterStore.set("checkedNewsletters", {
72
- ...newsletterStore.state.checkedNewsletters,
73
- [this.internalName]: currentPreferences.filter((p) => p !== this.preferenceIdentifier),
74
- });
75
- }
76
- }
77
- async persistIfSubscribed() {
78
- if (this.isSubscribed && this.isConfirmed) {
79
- this.loading = true;
80
- await updateSubscriptionPreferences(this.internalName);
81
- this.loading = false;
82
- }
83
- }
84
- handleChange = async () => {
85
- if (this.isDisabled)
86
- return;
87
- this.syncToStore(!this.isChecked);
88
- await this.persistIfSubscribed();
89
- };
90
- /** Public method to toggle the checkbox programmatically */
91
- async toggle() {
92
- await this.handleChange();
93
- }
94
- /** Public method to set the checkbox state programmatically */
95
- async setChecked(checked) {
96
- if (this.isDisabled)
97
- return;
98
- if (checked !== this.isChecked) {
99
- this.syncToStore(checked);
100
- await this.persistIfSubscribed();
101
- }
102
- }
103
- render() {
104
- return (h("input", { key: 'da785ab75ed8def88589a3c35de2ef039f71df1b', type: "checkbox", checked: this.isChecked, disabled: this.isDisabled, onChange: this.handleChange, class: this.componentClassName, "aria-checked": this.isChecked, "aria-busy": this.loading, "aria-disabled": this.isDisabled, "data-internal-name": this.internalName, "data-preference-identifier": this.preferenceIdentifier }));
105
- }
106
- }, [768, "u-newsletter-preference-checkbox", {
107
- "internalName": [1, "internal-name"],
108
- "preferenceIdentifier": [1, "preference-identifier"],
109
- "checked": [4],
110
- "componentClassName": [1, "class-name"],
111
- "loading": [32],
112
- "existingSubscriptions": [32],
113
- "checkedPreferences": [32],
114
- "toggle": [64],
115
- "setChecked": [64]
116
- }]);
117
- function defineCustomElement$1() {
118
- if (typeof customElements === "undefined") {
119
- return;
120
- }
121
- const components = ["u-newsletter-preference-checkbox"];
122
- components.forEach(tagName => { switch (tagName) {
123
- case "u-newsletter-preference-checkbox":
124
- if (!customElements.get(tagName)) {
125
- customElements.define(tagName, NewsletterPreferenceCheckbox);
126
- }
127
- break;
128
- } });
129
- }
130
-
131
- const UNewsletterPreferenceCheckbox = NewsletterPreferenceCheckbox;
132
- const defineCustomElement = defineCustomElement$1;
133
-
134
- export { UNewsletterPreferenceCheckbox, defineCustomElement };
135
- //# sourceMappingURL=u-newsletter-preference-checkbox.js.map
136
-
137
- //# sourceMappingURL=u-newsletter-preference-checkbox.js.map
@@ -1 +0,0 @@
1
- {"file":"u-newsletter-preference-checkbox.js","mappings":";;;;MAQa,4BAA4B,iBAAAA,kBAAA,CAAA,MAAA,4BAAA,SAAA,WAAA,CAAA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AO,GAAG,IAAI;YACnB,MAAMC,6BAA+C,CAAC,IAAI,CAAC,YAAY,CAAC;AACxE,YAAA,IAAI,CAAC,OAAO,GAAG,KAAK;;;IAIhB,YAAY,GAAG,YAAW;QAChC,IAAI,IAAI,CAAC,UAAU;YAAE;QAErB,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;AACjC,QAAA,MAAM,IAAI,CAAC,mBAAmB,EAAE;AAClC,KAAC;;AAID,IAAA,MAAM,MAAM,GAAA;AACV,QAAA,MAAM,IAAI,CAAC,YAAY,EAAE;;;IAK3B,MAAM,UAAU,CAAC,OAAgB,EAAA;QAC/B,IAAI,IAAI,CAAC,UAAU;YAAE;AACrB,QAAA,IAAI,OAAO,KAAK,IAAI,CAAC,SAAS,EAAE;AAC9B,YAAA,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;AACzB,YAAA,MAAM,IAAI,CAAC,mBAAmB,EAAE;;;IAIpC,MAAM,GAAA;AACJ,QAAA,QACE,8DACE,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,IAAI,CAAC,SAAS,EACvB,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAA,cAAA,EAChB,IAAI,CAAC,SAAS,EACjB,WAAA,EAAA,IAAI,CAAC,OAAO,EACR,eAAA,EAAA,IAAI,CAAC,UAAU,EAAA,oBAAA,EACV,IAAI,CAAC,YAAY,EAAA,4BAAA,EACT,IAAI,CAAC,oBAAoB,EACrD,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","NewsletterHelpers.isSubscribed","NewsletterHelpers.updateSubscriptionPreferences"],"sources":["src/newsletter/components/preference-checkbox/preference-checkbox.tsx"],"sourcesContent":["import { Component, h, Method, Prop, State } from \"@stencil/core\";\nimport * as NewsletterHelpers from \"../../newsletter-helpers\";\nimport { type ExistingSubscription, newsletterStore } from \"../../store/newsletter-store\";\n\n@Component({\n tag: \"u-newsletter-preference-checkbox\",\n shadow: false,\n})\nexport class NewsletterPreferenceCheckbox {\n @Prop() internalName!: string;\n @Prop() preferenceIdentifier!: string;\n @Prop() checked = false;\n @Prop({ attribute: \"class-name\" }) componentClassName?: string;\n\n @State() loading = false;\n\n @State() existingSubscriptions: ExistingSubscription[] = [];\n @State() checkedPreferences: string[] = [];\n\n private storeUnsubscribe?: () => void;\n\n componentWillLoad() {\n this.subscribeToStore();\n this.initializeCheckedState();\n }\n\n disconnectedCallback() {\n this.storeUnsubscribe?.();\n }\n\n private subscribeToStore() {\n this.storeUnsubscribe = newsletterStore.onChange(\"existingSubscriptions\", (subscriptions) => {\n this.existingSubscriptions = subscriptions;\n });\n\n newsletterStore.onChange(\"checkedNewsletters\", (checkedNewsletters) => {\n this.checkedPreferences = checkedNewsletters[this.internalName] || [];\n });\n\n this.existingSubscriptions = newsletterStore.state.existingSubscriptions;\n this.checkedPreferences = newsletterStore.state.checkedNewsletters[this.internalName] || [];\n }\n\n private initializeCheckedState() {\n if (NewsletterHelpers.isSubscribed(this.internalName)) {\n return;\n }\n\n if (this.checked) {\n this.syncToStore(true);\n }\n }\n\n private get subscription(): ExistingSubscription | undefined {\n return this.existingSubscriptions.find((sub) => sub.newsletter_internal_name === this.internalName);\n }\n\n private get isSubscribed(): boolean {\n return this.subscription !== undefined;\n }\n\n private get isConfirmed(): boolean {\n return this.subscription?.confirmed ?? false;\n }\n\n private get isDisabled(): boolean {\n return this.loading || (this.isSubscribed && !this.isConfirmed);\n }\n\n private get isChecked(): boolean {\n return this.checkedPreferences.includes(this.preferenceIdentifier);\n }\n\n private syncToStore(add: boolean) {\n const currentPreferences = newsletterStore.state.checkedNewsletters[this.internalName] || [];\n\n if (add) {\n if (!currentPreferences.includes(this.preferenceIdentifier)) {\n newsletterStore.set(\"checkedNewsletters\", {\n ...newsletterStore.state.checkedNewsletters,\n [this.internalName]: [...currentPreferences, this.preferenceIdentifier],\n });\n }\n } else {\n newsletterStore.set(\"checkedNewsletters\", {\n ...newsletterStore.state.checkedNewsletters,\n [this.internalName]: currentPreferences.filter((p) => p !== this.preferenceIdentifier),\n });\n }\n }\n\n private async persistIfSubscribed() {\n if (this.isSubscribed && this.isConfirmed) {\n this.loading = true;\n await NewsletterHelpers.updateSubscriptionPreferences(this.internalName);\n this.loading = false;\n }\n }\n\n private handleChange = async () => {\n if (this.isDisabled) return;\n\n this.syncToStore(!this.isChecked);\n await this.persistIfSubscribed();\n };\n\n /** Public method to toggle the checkbox programmatically */\n @Method()\n async toggle() {\n await this.handleChange();\n }\n\n /** Public method to set the checkbox state programmatically */\n @Method()\n async setChecked(checked: boolean) {\n if (this.isDisabled) return;\n if (checked !== this.isChecked) {\n this.syncToStore(checked);\n await this.persistIfSubscribed();\n }\n }\n\n render() {\n return (\n <input\n type=\"checkbox\"\n checked={this.isChecked}\n disabled={this.isDisabled}\n onChange={this.handleChange}\n class={this.componentClassName}\n aria-checked={this.isChecked}\n aria-busy={this.loading}\n aria-disabled={this.isDisabled}\n data-internal-name={this.internalName}\n data-preference-identifier={this.preferenceIdentifier}\n />\n );\n }\n}\n"],"version":3}
@@ -1,67 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { t } from './i18n.js';
3
- import { a as isSubscribed, i as isConfirmed, r as resendDoi } from './newsletter-helpers.js';
4
- import { F as Flash } from './flash-store.js';
5
- import { d as defineCustomElement$2 } from './spinner.js';
6
-
7
- const NewsletterResendDoiButton = /*@__PURE__*/ proxyCustomElement(class NewsletterResendDoiButton extends HTMLElement {
8
- constructor(registerHost) {
9
- super();
10
- if (registerHost !== false) {
11
- this.__registerHost();
12
- }
13
- }
14
- internalName;
15
- componentClassName = "";
16
- isResending = false;
17
- get shouldShow() {
18
- return isSubscribed(this.internalName) && !isConfirmed(this.internalName);
19
- }
20
- handleClick = async () => {
21
- this.isResending = true;
22
- const success = await resendDoi(this.internalName);
23
- this.isResending = false;
24
- if (success) {
25
- Flash.success.addMessage(t("newsletter.success.doi_sent"));
26
- }
27
- else {
28
- Flash.error.addMessage(t("newsletter.errors.resend_doi_failed"));
29
- }
30
- };
31
- render() {
32
- if (!this.shouldShow) {
33
- return null;
34
- }
35
- return (h("button", { type: "button", onClick: this.handleClick, disabled: this.isResending, "aria-busy": this.isResending, "aria-live": "polite", class: `${this.componentClassName} u:flex u:items-center u:justify-center` }, this.isResending ? h("u-spinner", null) : t("newsletter.buttons.resend_doi")));
36
- }
37
- }, [768, "u-newsletter-resend-doi-button", {
38
- "internalName": [1, "internal-name"],
39
- "componentClassName": [1, "class-name"],
40
- "isResending": [32]
41
- }]);
42
- function defineCustomElement$1() {
43
- if (typeof customElements === "undefined") {
44
- return;
45
- }
46
- const components = ["u-newsletter-resend-doi-button", "u-spinner"];
47
- components.forEach(tagName => { switch (tagName) {
48
- case "u-newsletter-resend-doi-button":
49
- if (!customElements.get(tagName)) {
50
- customElements.define(tagName, NewsletterResendDoiButton);
51
- }
52
- break;
53
- case "u-spinner":
54
- if (!customElements.get(tagName)) {
55
- defineCustomElement$2();
56
- }
57
- break;
58
- } });
59
- }
60
-
61
- const UNewsletterResendDoiButton = NewsletterResendDoiButton;
62
- const defineCustomElement = defineCustomElement$1;
63
-
64
- export { UNewsletterResendDoiButton, defineCustomElement };
65
- //# sourceMappingURL=u-newsletter-resend-doi-button.js.map
66
-
67
- //# sourceMappingURL=u-newsletter-resend-doi-button.js.map
@@ -1 +0,0 @@
1
- {"file":"u-newsletter-resend-doi-button.js","mappings":";;;;;;MASa,yBAAyB,iBAAAA,kBAAA,CAAA,MAAA,yBAAA,SAAA,WAAA,CAAA;;;;;;;AAC5B,IAAA,YAAY;IACe,kBAAkB,GAAG,EAAE;IAEjD,WAAW,GAAG,KAAK;AAE5B,IAAA,IAAY,UAAU,GAAA;AACpB,QAAA,OAAOC,YAA8B,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAACC,WAA6B,CAAC,IAAI,CAAC,YAAY,CAAC;;IAGvG,WAAW,GAAG,YAAW;AAC/B,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI;QACvB,MAAM,OAAO,GAAG,MAAMC,SAA2B,CAAC,IAAI,CAAC,YAAY,CAAC;AACpE,QAAA,IAAI,CAAC,WAAW,GAAG,KAAK;QAExB,IAAI,OAAO,EAAE;YACX,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC;;aACrD;YACL,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC;;AAEpE,KAAC;IAED,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;AACpB,YAAA,OAAO,IAAI;;AAGb,QAAA,QACE,cACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,QAAQ,EAAE,IAAI,CAAC,WAAW,eACf,IAAI,CAAC,WAAW,EAAA,WAAA,EACjB,QAAQ,EAClB,KAAK,EAAE,CAAA,EAAG,IAAI,CAAC,kBAAkB,CAAA,uCAAA,CAAyC,EAEzE,EAAA,IAAI,CAAC,WAAW,GAAG,CAAa,CAAA,WAAA,EAAA,IAAA,CAAA,GAAG,CAAC,CAAC,+BAA+B,CAAC,CAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","NewsletterHelpers.isSubscribed","NewsletterHelpers.isConfirmed","NewsletterHelpers.resendDoi"],"sources":["src/newsletter/components/resend-doi-button/resend-doi-button.tsx"],"sourcesContent":["import { Component, h, Prop, State } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport * as NewsletterHelpers from \"../../newsletter-helpers\";\nimport { Flash } from \"../../../shared/store/flash-store\";\n\n@Component({\n tag: \"u-newsletter-resend-doi-button\",\n shadow: false,\n})\nexport class NewsletterResendDoiButton {\n @Prop() internalName!: string;\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n\n @State() isResending = false;\n\n private get shouldShow(): boolean {\n return NewsletterHelpers.isSubscribed(this.internalName) && !NewsletterHelpers.isConfirmed(this.internalName);\n }\n\n private handleClick = async () => {\n this.isResending = true;\n const success = await NewsletterHelpers.resendDoi(this.internalName);\n this.isResending = false;\n\n if (success) {\n Flash.success.addMessage(t(\"newsletter.success.doi_sent\"));\n } else {\n Flash.error.addMessage(t(\"newsletter.errors.resend_doi_failed\"));\n }\n };\n\n render() {\n if (!this.shouldShow) {\n return null;\n }\n\n return (\n <button\n type=\"button\"\n onClick={this.handleClick}\n disabled={this.isResending}\n aria-busy={this.isResending}\n aria-live=\"polite\"\n class={`${this.componentClassName} u:flex u:items-center u:justify-center`}\n >\n {this.isResending ? <u-spinner /> : t(\"newsletter.buttons.resend_doi\")}\n </button>\n );\n }\n}\n"],"version":3}
@@ -1,104 +0,0 @@
1
- import { proxyCustomElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { A as Auth } from './auth.js';
3
- import { t } from './i18n.js';
4
- import { U as UnidyComponent, l as logger } from './logger.js';
5
- import { c as clearUrlParam } from './component-utils.js';
6
- import { F as Flash } from './flash-store.js';
7
- import { w as waitForConfig } from './unidy-store.js';
8
- import { f as fetchSubscriptions, s as sendLoginEmail, c as createSubscriptions } from './newsletter-helpers.js';
9
- import { n as newsletterStore, p as persist } from './newsletter-store.js';
10
-
11
- const NewsletterRoot = /*@__PURE__*/ proxyCustomElement(class NewsletterRoot extends UnidyComponent {
12
- constructor(registerHost) {
13
- super();
14
- if (registerHost !== false) {
15
- this.__registerHost();
16
- }
17
- this.uNewsletterSuccess = createEvent(this, "uNewsletterSuccess", 7);
18
- this.uNewsletterError = createEvent(this, "uNewsletterError", 7);
19
- }
20
- get el() { return this; }
21
- componentClassName = "";
22
- uNewsletterSuccess;
23
- uNewsletterError;
24
- getErrorText(errorIdentifier) {
25
- return t(`newsletter.errors.${errorIdentifier}`) || t("errors.unknown", { defaultValue: "An unknown error occurred" });
26
- }
27
- async componentWillLoad() {
28
- const newsletterError = clearUrlParam("newsletter_error");
29
- const preferenceToken = clearUrlParam("preference_token");
30
- const email = clearUrlParam("email");
31
- if (newsletterError) {
32
- Flash.error.addMessage(this.getErrorText(newsletterError));
33
- }
34
- if (preferenceToken && email) {
35
- newsletterStore.state.preferenceToken = preferenceToken;
36
- newsletterStore.state.email = email;
37
- persist("preferenceToken");
38
- persist("email");
39
- }
40
- const authInstance = await Auth.getInstance();
41
- const isAuthenticated = await authInstance.isAuthenticated();
42
- newsletterStore.state.isAuthenticated = isAuthenticated;
43
- if (isAuthenticated) {
44
- const userData = await authInstance.userData();
45
- if (userData) {
46
- newsletterStore.state.email = userData.email;
47
- }
48
- }
49
- await waitForConfig();
50
- await fetchSubscriptions();
51
- }
52
- async submit(forType) {
53
- const { email, checkedNewsletters } = newsletterStore.state;
54
- if (!email) {
55
- // TODO: Mark this as an error (or probably by forcing the email field to be native required)
56
- logger.error("Email is required for login");
57
- this.uNewsletterError.emit({ email: "", error: "email_required" });
58
- return;
59
- }
60
- if (forType === "login") {
61
- return await sendLoginEmail(email);
62
- }
63
- const newsletters = Object.keys(checkedNewsletters);
64
- if (newsletters.length === 0) {
65
- logger.error("No newsletters selected: please select at least one newsletter");
66
- this.uNewsletterError.emit({ email, error: "no_newsletters_selected" });
67
- return;
68
- }
69
- const success = await createSubscriptions({ email });
70
- if (success) {
71
- this.uNewsletterSuccess.emit({ email, newsletters });
72
- }
73
- else {
74
- this.uNewsletterError.emit({ email, error: "subscription_failed" });
75
- }
76
- }
77
- render() {
78
- return (h(Host, { key: '6e03b34d1bd9dc630885d57c9efc92f7ea8b03f6', class: this.componentClassName }, h("slot", { key: '17681aed6f26a2afcbd21a1546ef31b82bf3ee31' })));
79
- }
80
- }, [772, "u-newsletter-root", {
81
- "componentClassName": [1, "class-name"],
82
- "submit": [64]
83
- }]);
84
- function defineCustomElement$1() {
85
- if (typeof customElements === "undefined") {
86
- return;
87
- }
88
- const components = ["u-newsletter-root"];
89
- components.forEach(tagName => { switch (tagName) {
90
- case "u-newsletter-root":
91
- if (!customElements.get(tagName)) {
92
- customElements.define(tagName, NewsletterRoot);
93
- }
94
- break;
95
- } });
96
- }
97
-
98
- const UNewsletterRoot = NewsletterRoot;
99
- const defineCustomElement = defineCustomElement$1;
100
-
101
- export { UNewsletterRoot, defineCustomElement };
102
- //# sourceMappingURL=u-newsletter-root.js.map
103
-
104
- //# sourceMappingURL=u-newsletter-root.js.map
@@ -1 +0,0 @@
1
- {"file":"u-newsletter-root.js","mappings":";;;;;;;;;;MAea,cAAe,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAQ,cAAc,CAAA;;;;;;;;;;IAEb,kBAAkB,GAAG,EAAE;AAEjD,IAAA,kBAAkB;AAClB,IAAA,gBAAgB;AAEzB,IAAA,YAAY,CAAC,eAA0C,EAAA;AACrD,QAAA,OAAO,CAAC,CAAC,CAAA,kBAAA,EAAqB,eAAe,CAAA,CAAE,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,EAAE,YAAY,EAAE,2BAA2B,EAAE,CAAC;;AAGxH,IAAA,MAAM,iBAAiB,GAAA;AACrB,QAAA,MAAM,eAAe,GAAG,aAAa,CAAC,kBAAkB,CAAC;AACzD,QAAA,MAAM,eAAe,GAAG,aAAa,CAAC,kBAAkB,CAAC;AACzD,QAAA,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC;QAEpC,IAAI,eAAe,EAAE;AACnB,YAAA,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,eAA4C,CAAC,CAAC;;AAGzF,QAAA,IAAI,eAAe,IAAI,KAAK,EAAE;AAC5B,YAAA,eAAe,CAAC,KAAK,CAAC,eAAe,GAAG,eAAe;AACvD,YAAA,eAAe,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK;YAEnC,OAAO,CAAC,iBAAiB,CAAC;YAC1B,OAAO,CAAC,OAAO,CAAC;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AAI,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;;aAC/C;AACL,YAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC;;;IAIvE,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAA,EAClC,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACH;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","NewsletterHelpers.fetchSubscriptions","NewsletterHelpers.sendLoginEmail","NewsletterHelpers.createSubscriptions"],"sources":["src/newsletter/components/newsletter-root/newsletter-root.tsx"],"sourcesContent":["import { Component, Element, Event, type EventEmitter, Host, h, Method, Prop } from \"@stencil/core\";\nimport { Auth } from \"../../../auth/auth\";\nimport { t } from \"../../../i18n\";\nimport { logger, UnidyComponent } from \"../../../logger\";\nimport { clearUrlParam } from \"../../../shared/component-utils\";\nimport { Flash } from \"../../../shared/store/flash-store\";\nimport { waitForConfig } from \"../../../shared/store/unidy-store\";\nimport * as NewsletterHelpers from \"../../newsletter-helpers\";\nimport { type NewsletterErrorIdentifier, newsletterStore, persist } from \"../../store/newsletter-store\";\nimport type { NewsletterButtonFor } from \"../submit-button/newsletter-submit-button\";\n\n@Component({\n tag: \"u-newsletter-root\",\n shadow: false,\n})\nexport class NewsletterRoot extends UnidyComponent {\n @Element() el!: HTMLElement;\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n\n @Event() uNewsletterSuccess!: EventEmitter<{ email: string; newsletters: string[] }>;\n @Event() uNewsletterError!: EventEmitter<{ email: string; error: string }>;\n\n getErrorText(errorIdentifier: NewsletterErrorIdentifier): string {\n return t(`newsletter.errors.${errorIdentifier}`) || t(\"errors.unknown\", { defaultValue: \"An unknown error occurred\" });\n }\n\n async componentWillLoad() {\n const newsletterError = clearUrlParam(\"newsletter_error\");\n const preferenceToken = clearUrlParam(\"preference_token\");\n const email = clearUrlParam(\"email\");\n\n if (newsletterError) {\n Flash.error.addMessage(this.getErrorText(newsletterError as NewsletterErrorIdentifier));\n }\n\n if (preferenceToken && email) {\n newsletterStore.state.preferenceToken = preferenceToken;\n newsletterStore.state.email = email;\n\n persist(\"preferenceToken\");\n persist(\"email\");\n }\n\n const authInstance = await Auth.getInstance();\n const isAuthenticated = await authInstance.isAuthenticated();\n newsletterStore.state.isAuthenticated = isAuthenticated;\n\n if (isAuthenticated) {\n const userData = await authInstance.userData();\n\n if (userData) {\n newsletterStore.state.email = userData.email;\n }\n }\n\n await waitForConfig();\n await NewsletterHelpers.fetchSubscriptions();\n }\n\n @Method()\n async submit(forType?: NewsletterButtonFor) {\n const { email, checkedNewsletters } = newsletterStore.state;\n\n if (!email) {\n // TODO: Mark this as an error (or probably by forcing the email field to be native required)\n logger.error(\"Email is required for login\");\n this.uNewsletterError.emit({ email: \"\", error: \"email_required\" });\n return;\n }\n\n if (forType === \"login\") {\n return await NewsletterHelpers.sendLoginEmail(email);\n }\n\n const newsletters = Object.keys(checkedNewsletters);\n\n if (newsletters.length === 0) {\n logger.error(\"No newsletters selected: please select at least one newsletter\");\n this.uNewsletterError.emit({ email, error: \"no_newsletters_selected\" });\n return;\n }\n\n const success = await NewsletterHelpers.createSubscriptions({ email });\n\n if (success) {\n this.uNewsletterSuccess.emit({ email, newsletters });\n } else {\n this.uNewsletterError.emit({ email, error: \"subscription_failed\" });\n }\n }\n\n render() {\n return (\n <Host class={this.componentClassName}>\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,94 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { t } from './i18n.js';
3
- import { n as newsletterStore } from './newsletter-store.js';
4
- import { a as isSubscribed, b as subscribeToNewsletter, d as deleteSubscription } from './newsletter-helpers.js';
5
- import { F as Flash } from './flash-store.js';
6
- import { d as defineCustomElement$2 } from './spinner.js';
7
-
8
- const ToggleNewsletterSubscriptionButton = /*@__PURE__*/ proxyCustomElement(class ToggleNewsletterSubscriptionButton extends HTMLElement {
9
- constructor(registerHost) {
10
- super();
11
- if (registerHost !== false) {
12
- this.__registerHost();
13
- }
14
- }
15
- internalName;
16
- componentClassName = "";
17
- subscribeClassName = "";
18
- unsubscribeClassName = "";
19
- loading = false;
20
- get isSubscribed() {
21
- return isSubscribed(this.internalName);
22
- }
23
- handleClick = async () => {
24
- if (this.loading)
25
- return;
26
- if (this.isSubscribed) {
27
- await this.handleUnsubscribe();
28
- }
29
- else {
30
- await this.handleSubscribe();
31
- }
32
- };
33
- handleSubscribe = async () => {
34
- const { email } = newsletterStore.state;
35
- if (!email) {
36
- Flash.error.addMessage(t("newsletter.errors.email_required"));
37
- return;
38
- }
39
- this.loading = true;
40
- const success = await subscribeToNewsletter(this.internalName, email);
41
- this.loading = false;
42
- if (success) {
43
- Flash.success.addMessage(t("newsletter.success.subscribe"));
44
- }
45
- };
46
- handleUnsubscribe = async () => {
47
- this.loading = true;
48
- const success = await deleteSubscription(this.internalName);
49
- this.loading = false;
50
- if (success) {
51
- Flash.info.addMessage(t("newsletter.success.unsubscribe"));
52
- }
53
- else {
54
- Flash.error.addMessage(t("newsletter.errors.unsubscribe_failed"));
55
- }
56
- };
57
- render() {
58
- const isSubscribed = this.isSubscribed;
59
- const stateClassName = isSubscribed ? this.unsubscribeClassName : this.subscribeClassName;
60
- return (h("button", { key: '76b7f2de7c121586c04e70f30002ce65da5cce7e', type: "button", onClick: this.handleClick, disabled: this.loading, "aria-busy": this.loading, "aria-label": isSubscribed ? t("newsletter.buttons.unsubscribe") : t("newsletter.buttons.subscribe"), "aria-live": "polite", "data-subscribed": isSubscribed, class: `${this.componentClassName} ${stateClassName} u:flex u:items-center u:justify-center`.trim() }, this.loading ? h("u-spinner", null) : isSubscribed ? t("newsletter.buttons.unsubscribe") : t("newsletter.buttons.subscribe")));
61
- }
62
- }, [768, "u-newsletter-toggle-subscription-button", {
63
- "internalName": [1, "internal-name"],
64
- "componentClassName": [1, "class-name"],
65
- "subscribeClassName": [1, "subscribe-class-name"],
66
- "unsubscribeClassName": [1, "unsubscribe-class-name"],
67
- "loading": [32]
68
- }]);
69
- function defineCustomElement$1() {
70
- if (typeof customElements === "undefined") {
71
- return;
72
- }
73
- const components = ["u-newsletter-toggle-subscription-button", "u-spinner"];
74
- components.forEach(tagName => { switch (tagName) {
75
- case "u-newsletter-toggle-subscription-button":
76
- if (!customElements.get(tagName)) {
77
- customElements.define(tagName, ToggleNewsletterSubscriptionButton);
78
- }
79
- break;
80
- case "u-spinner":
81
- if (!customElements.get(tagName)) {
82
- defineCustomElement$2();
83
- }
84
- break;
85
- } });
86
- }
87
-
88
- const UNewsletterToggleSubscriptionButton = ToggleNewsletterSubscriptionButton;
89
- const defineCustomElement = defineCustomElement$1;
90
-
91
- export { UNewsletterToggleSubscriptionButton, defineCustomElement };
92
- //# sourceMappingURL=u-newsletter-toggle-subscription-button.js.map
93
-
94
- //# sourceMappingURL=u-newsletter-toggle-subscription-button.js.map
@@ -1 +0,0 @@
1
- {"file":"u-newsletter-toggle-subscription-button.js","mappings":";;;;;;;MAUa,kCAAkC,iBAAAA,kBAAA,CAAA,MAAA,kCAAA,SAAA,WAAA,CAAA;;;;;;;AACrC,IAAA,YAAY;IAEe,kBAAkB,GAAG,EAAE;IACb,kBAAkB,GAAG,EAAE;IACrB,oBAAoB,GAAG,EAAE;IAE/D,OAAO,GAAG,KAAK;AAExB,IAAA,IAAY,YAAY,GAAA;QACtB,OAAOC,YAA8B,CAAC,IAAI,CAAC,YAAY,CAAC;;IAGlD,WAAW,GAAG,YAAW;QAC/B,IAAI,IAAI,CAAC,OAAO;YAAE;AAElB,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;AACrB,YAAA,MAAM,IAAI,CAAC,iBAAiB,EAAE;;aACzB;AACL,YAAA,MAAM,IAAI,CAAC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BACX,YAAY,GAAG,CAAC,CAAC,gCAAgC,CAAC,GAAG,CAAC,CAAC,8BAA8B,CAAC,EAAA,WAAA,EACxF,QAAQ,EACD,iBAAA,EAAA,YAAY,EAC7B,KAAK,EAAE,CAAA,EAAG,IAAI,CAAC,kBAAkB,CAAA,CAAA,EAAI,cAAc,CAAyC,uCAAA,CAAA,CAAC,IAAI,EAAE,EAElG,EAAA,IAAI,CAAC,OAAO,GAAG,CAAA,CAAA,WAAA,EAAA,IAAA,CAAa,GAAG,YAAY,GAAG,CAAC,CAAC,gCAAgC,CAAC,GAAG,CAAC,CAAC,8BAA8B,CAAC,CAC/G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","NewsletterHelpers.isSubscribed","NewsletterHelpers.subscribeToNewsletter","NewsletterHelpers.deleteSubscription"],"sources":["src/newsletter/components/toggle-subscription-button/toggle-subscription-button.tsx"],"sourcesContent":["import { Component, h, Prop, State } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport { newsletterStore } from \"../../store/newsletter-store\";\nimport * as NewsletterHelpers from \"../../newsletter-helpers\";\nimport { Flash } from \"../../../shared/store/flash-store\";\n\n@Component({\n tag: \"u-newsletter-toggle-subscription-button\",\n shadow: false,\n})\nexport class ToggleNewsletterSubscriptionButton {\n @Prop() internalName!: string;\n\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n @Prop({ attribute: \"subscribe-class-name\" }) subscribeClassName = \"\";\n @Prop({ attribute: \"unsubscribe-class-name\" }) unsubscribeClassName = \"\";\n\n @State() loading = false;\n\n private get isSubscribed(): boolean {\n return NewsletterHelpers.isSubscribed(this.internalName);\n }\n\n private handleClick = async () => {\n if (this.loading) return;\n\n if (this.isSubscribed) {\n await this.handleUnsubscribe();\n } else {\n await this.handleSubscribe();\n }\n };\n\n private handleSubscribe = async () => {\n const { email } = newsletterStore.state;\n\n if (!email) {\n Flash.error.addMessage(t(\"newsletter.errors.email_required\"));\n return;\n }\n\n this.loading = true;\n const success = await NewsletterHelpers.subscribeToNewsletter(this.internalName, email);\n this.loading = false;\n\n if (success) {\n Flash.success.addMessage(t(\"newsletter.success.subscribe\"));\n }\n };\n\n private handleUnsubscribe = async () => {\n this.loading = true;\n const success = await NewsletterHelpers.deleteSubscription(this.internalName);\n this.loading = false;\n\n if (success) {\n Flash.info.addMessage(t(\"newsletter.success.unsubscribe\"));\n } else {\n Flash.error.addMessage(t(\"newsletter.errors.unsubscribe_failed\"));\n }\n };\n\n render() {\n const isSubscribed = this.isSubscribed;\n const stateClassName = isSubscribed ? this.unsubscribeClassName : this.subscribeClassName;\n\n return (\n <button\n type=\"button\"\n onClick={this.handleClick}\n disabled={this.loading}\n aria-busy={this.loading}\n aria-label={isSubscribed ? t(\"newsletter.buttons.unsubscribe\") : t(\"newsletter.buttons.subscribe\")}\n aria-live=\"polite\"\n data-subscribed={isSubscribed}\n class={`${this.componentClassName} ${stateClassName} u:flex u:items-center u:justify-center`.trim()}\n >\n {this.loading ? <u-spinner /> : isSubscribed ? t(\"newsletter.buttons.unsubscribe\") : t(\"newsletter.buttons.subscribe\")}\n </button>\n );\n }\n}\n"],"version":3}
@@ -1,86 +0,0 @@
1
- import { proxyCustomElement, h, Host } from '@stencil/core/internal/client';
2
- import { U as UnidyComponent } from './logger.js';
3
-
4
- const PaginationButton = /*@__PURE__*/ proxyCustomElement(class PaginationButton extends UnidyComponent {
5
- constructor(registerHost) {
6
- super();
7
- if (registerHost !== false) {
8
- this.__registerHost();
9
- }
10
- }
11
- get element() { return this; }
12
- direction = "next";
13
- customClass;
14
- paginationMeta = null;
15
- store = null;
16
- unsubscribe = null;
17
- componentDidLoad() {
18
- this.store = this.element.closest("u-ticketable-list")?.store;
19
- if (!this.store) {
20
- this.logger.warn("TicketableList component not found");
21
- return;
22
- }
23
- // Get initial state
24
- this.paginationMeta = this.store.state.paginationMeta;
25
- // Subscribe to store changes - watch for changes to paginationMeta
26
- this.unsubscribe = this.store.onChange("paginationMeta", (value) => {
27
- this.paginationMeta = value;
28
- });
29
- }
30
- disconnectedCallback() {
31
- this.unsubscribe?.();
32
- }
33
- handleClick = () => {
34
- const parent = this.element.closest("u-ticketable-list");
35
- if (!parent || !this.paginationMeta) {
36
- return;
37
- }
38
- const isPrev = this.direction === "prev";
39
- let newPage = null;
40
- if (isPrev && this.paginationMeta.prev !== null) {
41
- newPage = this.paginationMeta.prev;
42
- }
43
- else if (!isPrev && this.paginationMeta.next !== null) {
44
- newPage = this.paginationMeta.next;
45
- }
46
- if (newPage !== null) {
47
- parent.setAttribute("page", String(newPage));
48
- }
49
- };
50
- render() {
51
- if (!this.store) {
52
- this.logger.warn("TicketableList component not found");
53
- return null;
54
- }
55
- const isPrev = this.direction === "prev";
56
- const icon = isPrev ? "←" : "→";
57
- // Determine disabled state based on pagination meta
58
- const disabled = !this.paginationMeta || (isPrev ? this.paginationMeta.prev === null : this.paginationMeta.next === null);
59
- return (h(Host, null, h("button", { type: "button", onClick: this.handleClick, disabled: disabled, "aria-label": isPrev ? "Previous page" : "Next page", class: this.customClass }, h("slot", { name: "icon" }, h("span", { "aria-hidden": "true" }, icon)))));
60
- }
61
- }, [772, "u-pagination-button", {
62
- "direction": [1],
63
- "customClass": [1, "custom-class"],
64
- "paginationMeta": [32]
65
- }]);
66
- function defineCustomElement$1() {
67
- if (typeof customElements === "undefined") {
68
- return;
69
- }
70
- const components = ["u-pagination-button"];
71
- components.forEach(tagName => { switch (tagName) {
72
- case "u-pagination-button":
73
- if (!customElements.get(tagName)) {
74
- customElements.define(tagName, PaginationButton);
75
- }
76
- break;
77
- } });
78
- }
79
-
80
- const UPaginationButton = PaginationButton;
81
- const defineCustomElement = defineCustomElement$1;
82
-
83
- export { UPaginationButton, defineCustomElement };
84
- //# sourceMappingURL=u-pagination-button.js.map
85
-
86
- //# sourceMappingURL=u-pagination-button.js.map
@@ -1 +0,0 @@
1
- {"file":"u-pagination-button.js","mappings":";;;MAMa,gBAAiB,iBAAAA,kBAAA,CAAA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C,QAAA,IAAI,OAAO,KAAK,IAAI,EAAE;YACpB,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;;AAEhD,KAAC;IAED,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;AACf,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oCAAoC,CAAC;AACtD,YAAA,OAAO,IAAI;;AAGb,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,KAAK,MAAM;QACxC,MAAM,IAAI,GAAG,MAAM,GAAG,GAAG,GAAG,GAAG;;AAG/B,QAAA,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,cAAc,KAAK,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,KAAK,IAAI,CAAC;AAEzH,QAAA,QACE,EAAC,IAAI,EAAA,IAAA,EACH,CAAA,CAAA,QAAA,EAAA,EACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,QAAQ,EAAE,QAAQ,EAAA,YAAA,EACN,MAAM,GAAG,eAAe,GAAG,WAAW,EAClD,KAAK,EAAE,IAAI,CAAC,WAAW,EAAA,EAEvB,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,MAAM,EAAA,EACf,CAAkB,CAAA,MAAA,EAAA,EAAA,aAAA,EAAA,MAAM,IAAE,IAAI,CAAQ,CACjC,CACA,CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement"],"sources":["src/ticketable/components/pagination/pagination-button.tsx"],"sourcesContent":["import { Component, h, Prop, Element, Host, State } from \"@stencil/core\";\nimport type { PaginationMeta } from \"../../../api\";\nimport type { PaginationStore } from \"../../store/pagination-store\";\nimport { UnidyComponent } from \"../../../logger\";\n\n@Component({ tag: \"u-pagination-button\", shadow: false })\nexport class PaginationButton extends UnidyComponent {\n @Element() element: HTMLElement;\n\n @Prop() direction: \"prev\" | \"next\" = \"next\";\n @Prop() customClass?: string;\n\n @State() paginationMeta: PaginationMeta | null = null;\n\n private store: PaginationStore | null = null;\n private unsubscribe: (() => void) | null = null;\n\n componentDidLoad() {\n this.store = this.element.closest(\"u-ticketable-list\")?.store;\n if (!this.store) {\n this.logger.warn(\"TicketableList component not found\");\n return;\n }\n\n // Get initial state\n this.paginationMeta = this.store.state.paginationMeta;\n\n // Subscribe to store changes - watch for changes to paginationMeta\n this.unsubscribe = this.store.onChange(\"paginationMeta\", (value: PaginationMeta | null) => {\n this.paginationMeta = value;\n });\n }\n\n disconnectedCallback() {\n this.unsubscribe?.();\n }\n\n private handleClick = () => {\n const parent = this.element.closest(\"u-ticketable-list\");\n if (!parent || !this.paginationMeta) {\n return;\n }\n\n const isPrev = this.direction === \"prev\";\n let newPage: number | null = null;\n\n if (isPrev && this.paginationMeta.prev !== null) {\n newPage = this.paginationMeta.prev;\n } else if (!isPrev && this.paginationMeta.next !== null) {\n newPage = this.paginationMeta.next;\n }\n\n if (newPage !== null) {\n parent.setAttribute(\"page\", String(newPage));\n }\n };\n\n render() {\n if (!this.store) {\n this.logger.warn(\"TicketableList component not found\");\n return null;\n }\n\n const isPrev = this.direction === \"prev\";\n const icon = isPrev ? \"←\" : \"→\";\n\n // Determine disabled state based on pagination meta\n const disabled = !this.paginationMeta || (isPrev ? this.paginationMeta.prev === null : this.paginationMeta.next === null);\n\n return (\n <Host>\n <button\n type=\"button\"\n onClick={this.handleClick}\n disabled={disabled}\n aria-label={isPrev ? \"Previous page\" : \"Next page\"}\n class={this.customClass}\n >\n <slot name=\"icon\">\n <span aria-hidden=\"true\">{icon}</span>\n </slot>\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,66 +0,0 @@
1
- import { proxyCustomElement, h, Host } from '@stencil/core/internal/client';
2
- import { U as UnidyComponent } from './logger.js';
3
-
4
- const PaginationPage = /*@__PURE__*/ proxyCustomElement(class PaginationPage extends UnidyComponent {
5
- constructor(registerHost) {
6
- super();
7
- if (registerHost !== false) {
8
- this.__registerHost();
9
- }
10
- }
11
- get element() { return this; }
12
- customClass;
13
- paginationMeta = null;
14
- store = null;
15
- unsubscribe = null;
16
- componentDidLoad() {
17
- this.store = this.element.closest("u-ticketable-list")?.store;
18
- if (!this.store) {
19
- this.logger.warn("TicketableList component not found");
20
- return;
21
- }
22
- // Get initial state
23
- this.paginationMeta = this.store.state.paginationMeta;
24
- // Subscribe to store changes - watch for changes to paginationMeta
25
- this.unsubscribe = this.store.onChange("paginationMeta", (value) => {
26
- this.paginationMeta = value;
27
- });
28
- }
29
- disconnectedCallback() {
30
- this.unsubscribe?.();
31
- }
32
- render() {
33
- if (!this.store) {
34
- this.logger.warn("TicketableList component not found");
35
- return null;
36
- }
37
- if (!this.paginationMeta) {
38
- return null;
39
- }
40
- return (h(Host, null, h("span", { class: this.customClass }, "Page ", this.paginationMeta.page, " of ", this.paginationMeta.last)));
41
- }
42
- }, [768, "u-pagination-page", {
43
- "customClass": [1, "custom-class"],
44
- "paginationMeta": [32]
45
- }]);
46
- function defineCustomElement$1() {
47
- if (typeof customElements === "undefined") {
48
- return;
49
- }
50
- const components = ["u-pagination-page"];
51
- components.forEach(tagName => { switch (tagName) {
52
- case "u-pagination-page":
53
- if (!customElements.get(tagName)) {
54
- customElements.define(tagName, PaginationPage);
55
- }
56
- break;
57
- } });
58
- }
59
-
60
- const UPaginationPage = PaginationPage;
61
- const defineCustomElement = defineCustomElement$1;
62
-
63
- export { UPaginationPage, defineCustomElement };
64
- //# sourceMappingURL=u-pagination-page.js.map
65
-
66
- //# sourceMappingURL=u-pagination-page.js.map
@@ -1 +0,0 @@
1
- {"file":"u-pagination-page.js","mappings":";;;MAMa,cAAe,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAQ,cAAc,CAAA;;;;;;;;AAGxC,IAAA,WAAW;IAEV,cAAc,GAA0B,IAAI;IAE7C,KAAK,GAA2B,IAAI;IACpC,WAAW,GAAwB,IAAI;IAE/C,gBAAgB,GAAA;AACd,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE,KAAK;AAC7D,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;AACf,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oCAAoC,CAAC;YACtD;;;QAIF,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc;;AAGrD,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,KAA4B,KAAI;AACxF,YAAA,IAAI,CAAC,cAAc,GAAG,KAAK;AAC7B,SAAC,CAAC;;IAGJ,oBAAoB,GAAA;AAClB,QAAA,IAAI,CAAC,WAAW,IAAI;;IAGtB,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;AACf,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oCAAoC,CAAC;AACtD,YAAA,OAAO,IAAI;;AAGb,QAAA,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;AACxB,YAAA,OAAO,IAAI;;AAGb,QAAA,QACE,EAAC,IAAI,EAAA,IAAA,EACH,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,IAAI,CAAC,WAAW,EAAA,WACrB,IAAI,CAAC,cAAc,CAAC,IAAI,UAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CACvD,CACF;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement"],"sources":["src/ticketable/components/pagination/pagination-page.tsx"],"sourcesContent":["import { Component, h, Element, Host, State, Prop } from \"@stencil/core\";\nimport type { PaginationMeta } from \"../../../api\";\nimport type { PaginationStore } from \"../../store/pagination-store\";\nimport { UnidyComponent } from \"../../../logger\";\n\n@Component({ tag: \"u-pagination-page\", shadow: false })\nexport class PaginationPage extends UnidyComponent {\n @Element() element: HTMLElement;\n\n @Prop() customClass?: string;\n\n @State() paginationMeta: PaginationMeta | null = null;\n\n private store: PaginationStore | null = null;\n private unsubscribe: (() => void) | null = null;\n\n componentDidLoad() {\n this.store = this.element.closest(\"u-ticketable-list\")?.store;\n if (!this.store) {\n this.logger.warn(\"TicketableList component not found\");\n return;\n }\n\n // Get initial state\n this.paginationMeta = this.store.state.paginationMeta;\n\n // Subscribe to store changes - watch for changes to paginationMeta\n this.unsubscribe = this.store.onChange(\"paginationMeta\", (value: PaginationMeta | null) => {\n this.paginationMeta = value;\n });\n }\n\n disconnectedCallback() {\n this.unsubscribe?.();\n }\n\n render() {\n if (!this.store) {\n this.logger.warn(\"TicketableList component not found\");\n return null;\n }\n\n if (!this.paginationMeta) {\n return null;\n }\n\n return (\n <Host>\n <span class={this.customClass}>\n Page {this.paginationMeta.page} of {this.paginationMeta.last}\n </span>\n </Host>\n );\n }\n}\n"],"version":3}