@unidy.io/sdk 1.1.8 → 1.1.10

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 (769) hide show
  1. package/dist/cjs/app-globals-Pb3mNuRv.js +10 -0
  2. package/dist/cjs/app-globals-Pb3mNuRv.js.map +1 -0
  3. package/dist/cjs/auth-ChsE2RD7.js +614 -0
  4. package/dist/cjs/auth-ChsE2RD7.js.map +1 -0
  5. package/dist/cjs/auth-store-BO38Txmj.js +187 -0
  6. package/dist/cjs/auth-store-BO38Txmj.js.map +1 -0
  7. package/dist/cjs/component-utils-bu3SY4dE.js +42 -0
  8. package/dist/cjs/component-utils-bu3SY4dE.js.map +1 -0
  9. package/dist/cjs/flash-store-D5vGuIFc.js +50 -0
  10. package/dist/cjs/flash-store-D5vGuIFc.js.map +1 -0
  11. package/dist/cjs/helpers-BcPlKlBG.js +11 -0
  12. package/dist/cjs/helpers-BcPlKlBG.js.map +1 -0
  13. package/dist/cjs/helpers-DJyRa0Qo.js +11 -0
  14. package/dist/cjs/helpers-DJyRa0Qo.js.map +1 -0
  15. package/dist/cjs/i18n-B2T1e9Mf.js +3072 -0
  16. package/dist/cjs/i18n-B2T1e9Mf.js.map +1 -0
  17. package/dist/cjs/index-BzhKFIXk.js +14706 -0
  18. package/dist/cjs/index-BzhKFIXk.js.map +1 -0
  19. package/dist/cjs/index-DmDGhWTM.js +6338 -0
  20. package/dist/cjs/index-DmDGhWTM.js.map +1 -0
  21. package/dist/cjs/index-DxENvy7x.js +283 -0
  22. package/dist/cjs/index-DxENvy7x.js.map +1 -0
  23. package/dist/cjs/index.cjs.js +64 -0
  24. package/dist/cjs/index.cjs.js.map +1 -0
  25. package/dist/cjs/loader.cjs.js +14 -0
  26. package/dist/cjs/loader.cjs.js.map +1 -0
  27. package/dist/cjs/newsletter-helpers-B5P7q8Xk.js +289 -0
  28. package/dist/cjs/newsletter-helpers-B5P7q8Xk.js.map +1 -0
  29. package/dist/cjs/newsletter-store-f5zhJljn.js +38 -0
  30. package/dist/cjs/newsletter-store-f5zhJljn.js.map +1 -0
  31. package/dist/cjs/pagination-store-DjGYEIqm.js +16 -0
  32. package/dist/cjs/pagination-store-DjGYEIqm.js.map +1 -0
  33. package/dist/cjs/profile-helpers-BcLjojeG.js +39 -0
  34. package/dist/cjs/profile-helpers-BcLjojeG.js.map +1 -0
  35. package/dist/cjs/profile-store-BWJ9qAcg.js +22 -0
  36. package/dist/cjs/profile-store-BWJ9qAcg.js.map +1 -0
  37. package/dist/cjs/sdk.cjs.js +53 -0
  38. package/dist/cjs/sdk.cjs.js.map +1 -0
  39. package/dist/cjs/u-conditional-render.cjs.entry.js +102 -0
  40. package/dist/cjs/u-conditional-render.entry.cjs.js.map +1 -0
  41. package/dist/cjs/u-config.cjs.entry.js +91 -0
  42. package/dist/cjs/u-config.entry.cjs.js.map +1 -0
  43. package/dist/cjs/u-email-field.cjs.entry.js +77 -0
  44. package/dist/cjs/u-email-field.entry.cjs.js.map +1 -0
  45. package/dist/cjs/u-error-message.cjs.entry.js +82 -0
  46. package/dist/cjs/u-error-message.entry.cjs.js.map +1 -0
  47. package/dist/cjs/u-field.u-raw-field.entry.cjs.js.map +1 -0
  48. package/dist/cjs/u-field_2.cjs.entry.js +371 -0
  49. package/dist/cjs/u-flash-message.cjs.entry.js +37 -0
  50. package/dist/cjs/u-flash-message.entry.cjs.js.map +1 -0
  51. package/dist/cjs/u-full-profile.cjs.entry.js +37 -0
  52. package/dist/cjs/u-full-profile.entry.cjs.js.map +1 -0
  53. package/dist/cjs/u-logout-button.u-signed-in.entry.cjs.js.map +1 -0
  54. package/dist/cjs/u-logout-button_2.cjs.entry.js +62 -0
  55. package/dist/cjs/u-magic-code-field.cjs.entry.js +91 -0
  56. package/dist/cjs/u-magic-code-field.entry.cjs.js.map +1 -0
  57. package/dist/cjs/u-missing-field.cjs.entry.js +22 -0
  58. package/dist/cjs/u-missing-field.entry.cjs.js.map +1 -0
  59. package/dist/cjs/u-missing-fields-submit-button.cjs.entry.js +46 -0
  60. package/dist/cjs/u-missing-fields-submit-button.entry.cjs.js.map +1 -0
  61. package/dist/cjs/u-newsletter-checkbox.cjs.entry.js +77 -0
  62. package/dist/cjs/u-newsletter-checkbox.entry.cjs.js.map +1 -0
  63. package/dist/cjs/u-newsletter-logout-button.cjs.entry.js +41 -0
  64. package/dist/cjs/u-newsletter-logout-button.entry.cjs.js.map +1 -0
  65. package/dist/cjs/u-newsletter-preference-checkbox.cjs.entry.js +120 -0
  66. package/dist/cjs/u-newsletter-preference-checkbox.entry.cjs.js.map +1 -0
  67. package/dist/cjs/u-newsletter-resend-doi-button.cjs.entry.js +49 -0
  68. package/dist/cjs/u-newsletter-resend-doi-button.entry.cjs.js.map +1 -0
  69. package/dist/cjs/u-newsletter-root.cjs.entry.js +72 -0
  70. package/dist/cjs/u-newsletter-root.entry.cjs.js.map +1 -0
  71. package/dist/cjs/u-newsletter-toggle-subscription-button.cjs.entry.js +73 -0
  72. package/dist/cjs/u-newsletter-toggle-subscription-button.entry.cjs.js.map +1 -0
  73. package/dist/cjs/u-pagination-button.cjs.entry.js +63 -0
  74. package/dist/cjs/u-pagination-button.entry.cjs.js.map +1 -0
  75. package/dist/cjs/u-pagination-page.cjs.entry.js +44 -0
  76. package/dist/cjs/u-pagination-page.entry.cjs.js.map +1 -0
  77. package/dist/cjs/u-passkey.cjs.entry.js +47 -0
  78. package/dist/cjs/u-passkey.entry.cjs.js.map +1 -0
  79. package/dist/cjs/u-password-field.cjs.entry.js +106 -0
  80. package/dist/cjs/u-password-field.entry.cjs.js.map +1 -0
  81. package/dist/cjs/u-profile.u-submit-button.entry.cjs.js.map +1 -0
  82. package/dist/cjs/u-profile_2.cjs.entry.js +329 -0
  83. package/dist/cjs/u-registration-button.cjs.entry.js +48 -0
  84. package/dist/cjs/u-registration-button.entry.cjs.js.map +1 -0
  85. package/dist/cjs/u-reset-password-button.cjs.entry.js +56 -0
  86. package/dist/cjs/u-reset-password-button.entry.cjs.js.map +1 -0
  87. package/dist/cjs/u-send-magic-code-button.cjs.entry.js +68 -0
  88. package/dist/cjs/u-send-magic-code-button.entry.cjs.js.map +1 -0
  89. package/dist/cjs/u-signin-root.cjs.entry.js +43 -0
  90. package/dist/cjs/u-signin-root.entry.cjs.js.map +1 -0
  91. package/dist/cjs/u-signin-step.cjs.entry.js +66 -0
  92. package/dist/cjs/u-signin-step.entry.cjs.js.map +1 -0
  93. package/dist/cjs/u-signin-strategy.cjs.entry.js +30 -0
  94. package/dist/cjs/u-signin-strategy.entry.cjs.js.map +1 -0
  95. package/dist/cjs/u-social-login-button.cjs.entry.js +100 -0
  96. package/dist/cjs/u-social-login-button.entry.cjs.js.map +1 -0
  97. package/dist/cjs/u-spinner.cjs.entry.js +18 -0
  98. package/dist/cjs/u-spinner.entry.cjs.js.map +1 -0
  99. package/dist/cjs/u-ticketable-list.cjs.entry.js +6097 -0
  100. package/dist/cjs/u-ticketable-list.entry.cjs.js.map +1 -0
  101. package/dist/cjs/unidy-store-zhdhlK0a.js +41 -0
  102. package/dist/cjs/unidy-store-zhdhlK0a.js.map +1 -0
  103. package/dist/collection/api/client.js +144 -0
  104. package/dist/collection/api/client.js.map +1 -0
  105. package/dist/collection/api/index.js +42 -0
  106. package/dist/collection/api/index.js.map +1 -0
  107. package/dist/collection/api/shared.js +18 -0
  108. package/dist/collection/api/shared.js.map +1 -0
  109. package/dist/collection/auth/api/auth.js +274 -0
  110. package/dist/collection/auth/api/auth.js.map +1 -0
  111. package/dist/collection/auth/auth-helpers.js +314 -0
  112. package/dist/collection/auth/auth-helpers.js.map +1 -0
  113. package/dist/collection/auth/auth.js +139 -0
  114. package/dist/collection/auth/auth.js.map +1 -0
  115. package/dist/collection/auth/components/helpers.js +5 -0
  116. package/dist/collection/auth/components/helpers.js.map +1 -0
  117. package/dist/collection/auth/components/logout-button/logout-button.js +94 -0
  118. package/dist/collection/auth/components/logout-button/logout-button.js.map +1 -0
  119. package/dist/collection/auth/components/magic-code-field/magic-code-field.css +1 -0
  120. package/dist/collection/auth/components/magic-code-field/magic-code-field.js +113 -0
  121. package/dist/collection/auth/components/magic-code-field/magic-code-field.js.map +1 -0
  122. package/dist/collection/auth/components/missing-field/missing-field.js +14 -0
  123. package/dist/collection/auth/components/missing-field/missing-field.js.map +1 -0
  124. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js +39 -0
  125. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js.map +1 -0
  126. package/dist/collection/auth/components/passkey/passkey.js +103 -0
  127. package/dist/collection/auth/components/passkey/passkey.js.map +1 -0
  128. package/dist/collection/auth/components/password-field/password-field.js +168 -0
  129. package/dist/collection/auth/components/password-field/password-field.js.map +1 -0
  130. package/dist/collection/auth/components/registration/registration-button.js +104 -0
  131. package/dist/collection/auth/components/registration/registration-button.js.map +1 -0
  132. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js +68 -0
  133. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js.map +1 -0
  134. package/dist/collection/auth/components/send-magic-code-button/send-magic-code-button.js +104 -0
  135. package/dist/collection/auth/components/send-magic-code-button/send-magic-code-button.js.map +1 -0
  136. package/dist/collection/auth/components/signed-in/signed-in.js +59 -0
  137. package/dist/collection/auth/components/signed-in/signed-in.js.map +1 -0
  138. package/dist/collection/auth/components/signin-root/signin-root.js +97 -0
  139. package/dist/collection/auth/components/signin-root/signin-root.js.map +1 -0
  140. package/dist/collection/auth/components/signin-step/signin-step.js +135 -0
  141. package/dist/collection/auth/components/signin-step/signin-step.js.map +1 -0
  142. package/dist/collection/auth/components/signin-strategy/signin-strategy.js +64 -0
  143. package/dist/collection/auth/components/signin-strategy/signin-strategy.js.map +1 -0
  144. package/dist/collection/auth/components/social-logins/logos/apple.js +3 -0
  145. package/dist/collection/auth/components/social-logins/logos/apple.js.map +1 -0
  146. package/dist/collection/auth/components/social-logins/logos/discord.js +3 -0
  147. package/dist/collection/auth/components/social-logins/logos/discord.js.map +1 -0
  148. package/dist/collection/auth/components/social-logins/logos/facebook.js +3 -0
  149. package/dist/collection/auth/components/social-logins/logos/facebook.js.map +1 -0
  150. package/dist/collection/auth/components/social-logins/logos/google.js +3 -0
  151. package/dist/collection/auth/components/social-logins/logos/google.js.map +1 -0
  152. package/dist/collection/auth/components/social-logins/logos/linkedin.js +3 -0
  153. package/dist/collection/auth/components/social-logins/logos/linkedin.js.map +1 -0
  154. package/dist/collection/auth/components/social-logins/social-login-button.css +1 -0
  155. package/dist/collection/auth/components/social-logins/social-login-button.js +188 -0
  156. package/dist/collection/auth/components/social-logins/social-login-button.js.map +1 -0
  157. package/dist/collection/auth/components/submit-button/auth-submit-button.js +62 -0
  158. package/dist/collection/auth/components/submit-button/auth-submit-button.js.map +1 -0
  159. package/dist/collection/auth/error-definitions.js +26 -0
  160. package/dist/collection/auth/error-definitions.js.map +1 -0
  161. package/dist/collection/auth/index.js +13 -0
  162. package/dist/collection/auth/index.js.map +1 -0
  163. package/dist/collection/auth/passkey-auth.js +106 -0
  164. package/dist/collection/auth/passkey-auth.js.map +1 -0
  165. package/dist/collection/auth/store/auth-store.js +178 -0
  166. package/dist/collection/auth/store/auth-store.js.map +1 -0
  167. package/dist/collection/collection-manifest.json +46 -0
  168. package/dist/collection/globalScript.js +18 -0
  169. package/dist/collection/globalScript.js.map +1 -0
  170. package/dist/collection/i18n.js +31 -0
  171. package/dist/collection/i18n.js.map +1 -0
  172. package/dist/collection/index.js +16 -0
  173. package/dist/collection/index.js.map +1 -0
  174. package/dist/collection/locales/de.json +133 -0
  175. package/dist/collection/locales/en.json +133 -0
  176. package/dist/collection/locales/fr.json +133 -0
  177. package/dist/collection/locales/it.json +133 -0
  178. package/dist/collection/locales/nl_be.json +133 -0
  179. package/dist/collection/locales/ro.json +133 -0
  180. package/dist/collection/logger.js +106 -0
  181. package/dist/collection/logger.js.map +1 -0
  182. package/dist/collection/newsletter/api/newsletters.js +189 -0
  183. package/dist/collection/newsletter/api/newsletters.js.map +1 -0
  184. package/dist/collection/newsletter/components/helpers.js +5 -0
  185. package/dist/collection/newsletter/components/helpers.js.map +1 -0
  186. package/dist/collection/newsletter/components/logout-button/logout-button.js +53 -0
  187. package/dist/collection/newsletter/components/logout-button/logout-button.js.map +1 -0
  188. package/dist/collection/newsletter/components/newsletter-checkbox/newsletter-checkbox.js +165 -0
  189. package/dist/collection/newsletter/components/newsletter-checkbox/newsletter-checkbox.js.map +1 -0
  190. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js +119 -0
  191. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js.map +1 -0
  192. package/dist/collection/newsletter/components/preference-checkbox/preference-checkbox.js +234 -0
  193. package/dist/collection/newsletter/components/preference-checkbox/preference-checkbox.js.map +1 -0
  194. package/dist/collection/newsletter/components/resend-doi-button/resend-doi-button.css +1 -0
  195. package/dist/collection/newsletter/components/resend-doi-button/resend-doi-button.js +89 -0
  196. package/dist/collection/newsletter/components/resend-doi-button/resend-doi-button.js.map +1 -0
  197. package/dist/collection/newsletter/components/submit-button/newsletter-submit-button.js +18 -0
  198. package/dist/collection/newsletter/components/submit-button/newsletter-submit-button.js.map +1 -0
  199. package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.css +1 -0
  200. package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.js +154 -0
  201. package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.js.map +1 -0
  202. package/dist/collection/newsletter/index.js +11 -0
  203. package/dist/collection/newsletter/index.js.map +1 -0
  204. package/dist/collection/newsletter/newsletter-helpers.js +277 -0
  205. package/dist/collection/newsletter/newsletter-helpers.js.map +1 -0
  206. package/dist/collection/newsletter/store/newsletter-store.js +34 -0
  207. package/dist/collection/newsletter/store/newsletter-store.js.map +1 -0
  208. package/dist/collection/profile/api/profile.js +168 -0
  209. package/dist/collection/profile/api/profile.js.map +1 -0
  210. package/dist/collection/profile/components/field/field.css +1 -0
  211. package/dist/collection/profile/components/field/field.js +355 -0
  212. package/dist/collection/profile/components/field/field.js.map +1 -0
  213. package/dist/collection/profile/components/full-profile/full-profile.css +1 -0
  214. package/dist/collection/profile/components/full-profile/full-profile.js +78 -0
  215. package/dist/collection/profile/components/full-profile/full-profile.js.map +1 -0
  216. package/dist/collection/profile/components/profile/profile.js +250 -0
  217. package/dist/collection/profile/components/profile/profile.js.map +1 -0
  218. package/dist/collection/profile/components/raw-field/raw-field.js +697 -0
  219. package/dist/collection/profile/components/raw-field/raw-field.js.map +1 -0
  220. package/dist/collection/profile/components/raw-input-fields/Input.js +3 -0
  221. package/dist/collection/profile/components/raw-input-fields/Input.js.map +1 -0
  222. package/dist/collection/profile/components/raw-input-fields/MultiSelect.js +8 -0
  223. package/dist/collection/profile/components/raw-input-fields/MultiSelect.js.map +1 -0
  224. package/dist/collection/profile/components/raw-input-fields/RadioGroup.js +8 -0
  225. package/dist/collection/profile/components/raw-input-fields/RadioGroup.js.map +1 -0
  226. package/dist/collection/profile/components/raw-input-fields/Select.js +11 -0
  227. package/dist/collection/profile/components/raw-input-fields/Select.js.map +1 -0
  228. package/dist/collection/profile/components/raw-input-fields/Textarea.js +3 -0
  229. package/dist/collection/profile/components/raw-input-fields/Textarea.js.map +1 -0
  230. package/dist/collection/profile/components/submit-button/profile-submit-button.js +17 -0
  231. package/dist/collection/profile/components/submit-button/profile-submit-button.js.map +1 -0
  232. package/dist/collection/profile/index.js +12 -0
  233. package/dist/collection/profile/index.js.map +1 -0
  234. package/dist/collection/profile/profile-helpers.js +31 -0
  235. package/dist/collection/profile/profile-helpers.js.map +1 -0
  236. package/dist/collection/profile/store/profile-store.js +15 -0
  237. package/dist/collection/profile/store/profile-store.js.map +1 -0
  238. package/dist/collection/sdk.css +39 -0
  239. package/dist/collection/shared/component-utils.js +35 -0
  240. package/dist/collection/shared/component-utils.js.map +1 -0
  241. package/dist/collection/shared/components/conditional-render/conditional-render.js +177 -0
  242. package/dist/collection/shared/components/conditional-render/conditional-render.js.map +1 -0
  243. package/dist/collection/shared/components/config/config.js +284 -0
  244. package/dist/collection/shared/components/config/config.js.map +1 -0
  245. package/dist/collection/shared/components/email-field/email-field.css +1 -0
  246. package/dist/collection/shared/components/email-field/email-field.js +145 -0
  247. package/dist/collection/shared/components/email-field/email-field.js.map +1 -0
  248. package/dist/collection/shared/components/error-message/error-message.js +141 -0
  249. package/dist/collection/shared/components/error-message/error-message.js.map +1 -0
  250. package/dist/collection/shared/components/flash-message/close-icon.js +3 -0
  251. package/dist/collection/shared/components/flash-message/close-icon.js.map +1 -0
  252. package/dist/collection/shared/components/flash-message/flash-message.css +1 -0
  253. package/dist/collection/shared/components/flash-message/flash-message.js +79 -0
  254. package/dist/collection/shared/components/flash-message/flash-message.js.map +1 -0
  255. package/dist/collection/shared/components/spinner/spinner.css +1 -0
  256. package/dist/collection/shared/components/spinner/spinner.js +19 -0
  257. package/dist/collection/shared/components/spinner/spinner.js.map +1 -0
  258. package/dist/collection/shared/components/submit-button/context.js +10 -0
  259. package/dist/collection/shared/components/submit-button/context.js.map +1 -0
  260. package/dist/collection/shared/components/submit-button/submit-button.css +1 -0
  261. package/dist/collection/shared/components/submit-button/submit-button.js +198 -0
  262. package/dist/collection/shared/components/submit-button/submit-button.js.map +1 -0
  263. package/dist/collection/shared/store/flash-store.js +43 -0
  264. package/dist/collection/shared/store/flash-store.js.map +1 -0
  265. package/dist/collection/shared/store/unidy-store.js +33 -0
  266. package/dist/collection/shared/store/unidy-store.js.map +1 -0
  267. package/dist/collection/ticketable/api/get-with-schema.js +35 -0
  268. package/dist/collection/ticketable/api/get-with-schema.js.map +1 -0
  269. package/dist/collection/ticketable/api/schemas.js +12 -0
  270. package/dist/collection/ticketable/api/schemas.js.map +1 -0
  271. package/dist/collection/ticketable/api/subscriptions.js +47 -0
  272. package/dist/collection/ticketable/api/subscriptions.js.map +1 -0
  273. package/dist/collection/ticketable/api/tickets.js +48 -0
  274. package/dist/collection/ticketable/api/tickets.js.map +1 -0
  275. package/dist/collection/ticketable/components/pagination/pagination-button.js +108 -0
  276. package/dist/collection/ticketable/components/pagination/pagination-button.js.map +1 -0
  277. package/dist/collection/ticketable/components/pagination/pagination-page.js +69 -0
  278. package/dist/collection/ticketable/components/pagination/pagination-page.js.map +1 -0
  279. package/dist/collection/ticketable/components/ticketable-list/skeleton-helpers.js +54 -0
  280. package/dist/collection/ticketable/components/ticketable-list/skeleton-helpers.js.map +1 -0
  281. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js +505 -0
  282. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js.map +1 -0
  283. package/dist/collection/ticketable/index.js +13 -0
  284. package/dist/collection/ticketable/index.js.map +1 -0
  285. package/dist/collection/ticketable/store/pagination-store.js +9 -0
  286. package/dist/collection/ticketable/store/pagination-store.js.map +1 -0
  287. package/dist/components/auth-store.js +182 -0
  288. package/dist/components/auth-store.js.map +1 -0
  289. package/dist/components/auth.js +613 -0
  290. package/dist/components/auth.js.map +1 -0
  291. package/dist/components/component-utils.js +39 -0
  292. package/dist/components/component-utils.js.map +1 -0
  293. package/dist/components/exports.js +4262 -0
  294. package/dist/components/exports.js.map +1 -0
  295. package/dist/components/field.js +134 -0
  296. package/dist/components/field.js.map +1 -0
  297. package/dist/components/flash-store.js +47 -0
  298. package/dist/components/flash-store.js.map +1 -0
  299. package/dist/components/helpers.js +9 -0
  300. package/dist/components/helpers.js.map +1 -0
  301. package/dist/components/helpers2.js +9 -0
  302. package/dist/components/helpers2.js.map +1 -0
  303. package/dist/components/i18n.js +3070 -0
  304. package/dist/components/i18n.js.map +1 -0
  305. package/dist/components/index.d.ts +33 -0
  306. package/dist/components/index.js +5929 -0
  307. package/dist/components/index.js.map +1 -0
  308. package/dist/components/index2.js +6327 -0
  309. package/dist/components/index2.js.map +1 -0
  310. package/dist/components/index3.js +281 -0
  311. package/dist/components/index3.js.map +1 -0
  312. package/dist/components/logger.js +111 -0
  313. package/dist/components/logger.js.map +1 -0
  314. package/dist/components/newsletter-helpers.js +278 -0
  315. package/dist/components/newsletter-helpers.js.map +1 -0
  316. package/dist/components/newsletter-store.js +34 -0
  317. package/dist/components/newsletter-store.js.map +1 -0
  318. package/dist/components/pagination-store.js +14 -0
  319. package/dist/components/pagination-store.js.map +1 -0
  320. package/dist/components/profile-helpers.js +36 -0
  321. package/dist/components/profile-helpers.js.map +1 -0
  322. package/dist/components/profile-store.js +18 -0
  323. package/dist/components/profile-store.js.map +1 -0
  324. package/dist/components/profile.js +151 -0
  325. package/dist/components/profile.js.map +1 -0
  326. package/dist/components/raw-field.js +318 -0
  327. package/dist/components/raw-field.js.map +1 -0
  328. package/dist/components/spinner.js +35 -0
  329. package/dist/components/spinner.js.map +1 -0
  330. package/dist/components/submit-button.js +233 -0
  331. package/dist/components/submit-button.js.map +1 -0
  332. package/dist/components/u-conditional-render.d.ts +11 -0
  333. package/dist/components/u-conditional-render.js +120 -0
  334. package/dist/components/u-conditional-render.js.map +1 -0
  335. package/dist/components/u-config.d.ts +11 -0
  336. package/dist/components/u-config.js +118 -0
  337. package/dist/components/u-config.js.map +1 -0
  338. package/dist/components/u-email-field.d.ts +11 -0
  339. package/dist/components/u-email-field.js +99 -0
  340. package/dist/components/u-email-field.js.map +1 -0
  341. package/dist/components/u-error-message.d.ts +11 -0
  342. package/dist/components/u-error-message.js +105 -0
  343. package/dist/components/u-error-message.js.map +1 -0
  344. package/dist/components/u-field.d.ts +11 -0
  345. package/dist/components/u-field.js +9 -0
  346. package/dist/components/u-field.js.map +1 -0
  347. package/dist/components/u-flash-message.d.ts +11 -0
  348. package/dist/components/u-flash-message.js +58 -0
  349. package/dist/components/u-flash-message.js.map +1 -0
  350. package/dist/components/u-full-profile.d.ts +11 -0
  351. package/dist/components/u-full-profile.js +87 -0
  352. package/dist/components/u-full-profile.js.map +1 -0
  353. package/dist/components/u-logout-button.d.ts +11 -0
  354. package/dist/components/u-logout-button.js +61 -0
  355. package/dist/components/u-logout-button.js.map +1 -0
  356. package/dist/components/u-magic-code-field.d.ts +11 -0
  357. package/dist/components/u-magic-code-field.js +106 -0
  358. package/dist/components/u-magic-code-field.js.map +1 -0
  359. package/dist/components/u-missing-field.d.ts +11 -0
  360. package/dist/components/u-missing-field.js +51 -0
  361. package/dist/components/u-missing-field.js.map +1 -0
  362. package/dist/components/u-missing-fields-submit-button.d.ts +11 -0
  363. package/dist/components/u-missing-fields-submit-button.js +70 -0
  364. package/dist/components/u-missing-fields-submit-button.js.map +1 -0
  365. package/dist/components/u-newsletter-checkbox.d.ts +11 -0
  366. package/dist/components/u-newsletter-checkbox.js +93 -0
  367. package/dist/components/u-newsletter-checkbox.js.map +1 -0
  368. package/dist/components/u-newsletter-logout-button.d.ts +11 -0
  369. package/dist/components/u-newsletter-logout-button.js +56 -0
  370. package/dist/components/u-newsletter-logout-button.js.map +1 -0
  371. package/dist/components/u-newsletter-preference-checkbox.d.ts +11 -0
  372. package/dist/components/u-newsletter-preference-checkbox.js +140 -0
  373. package/dist/components/u-newsletter-preference-checkbox.js.map +1 -0
  374. package/dist/components/u-newsletter-resend-doi-button.d.ts +11 -0
  375. package/dist/components/u-newsletter-resend-doi-button.js +70 -0
  376. package/dist/components/u-newsletter-resend-doi-button.js.map +1 -0
  377. package/dist/components/u-newsletter-root.d.ts +11 -0
  378. package/dist/components/u-newsletter-root.js +90 -0
  379. package/dist/components/u-newsletter-root.js.map +1 -0
  380. package/dist/components/u-newsletter-toggle-subscription-button.d.ts +11 -0
  381. package/dist/components/u-newsletter-toggle-subscription-button.js +97 -0
  382. package/dist/components/u-newsletter-toggle-subscription-button.js.map +1 -0
  383. package/dist/components/u-pagination-button.d.ts +11 -0
  384. package/dist/components/u-pagination-button.js +86 -0
  385. package/dist/components/u-pagination-button.js.map +1 -0
  386. package/dist/components/u-pagination-page.d.ts +11 -0
  387. package/dist/components/u-pagination-page.js +66 -0
  388. package/dist/components/u-pagination-page.js.map +1 -0
  389. package/dist/components/u-passkey.d.ts +11 -0
  390. package/dist/components/u-passkey.js +65 -0
  391. package/dist/components/u-passkey.js.map +1 -0
  392. package/dist/components/u-password-field.d.ts +11 -0
  393. package/dist/components/u-password-field.js +127 -0
  394. package/dist/components/u-password-field.js.map +1 -0
  395. package/dist/components/u-profile.d.ts +11 -0
  396. package/dist/components/u-profile.js +9 -0
  397. package/dist/components/u-profile.js.map +1 -0
  398. package/dist/components/u-raw-field.d.ts +11 -0
  399. package/dist/components/u-raw-field.js +9 -0
  400. package/dist/components/u-raw-field.js.map +1 -0
  401. package/dist/components/u-registration-button.d.ts +11 -0
  402. package/dist/components/u-registration-button.js +70 -0
  403. package/dist/components/u-registration-button.js.map +1 -0
  404. package/dist/components/u-reset-password-button.d.ts +11 -0
  405. package/dist/components/u-reset-password-button.js +72 -0
  406. package/dist/components/u-reset-password-button.js.map +1 -0
  407. package/dist/components/u-send-magic-code-button.d.ts +11 -0
  408. package/dist/components/u-send-magic-code-button.js +85 -0
  409. package/dist/components/u-send-magic-code-button.js.map +1 -0
  410. package/dist/components/u-signed-in.d.ts +11 -0
  411. package/dist/components/u-signed-in.js +44 -0
  412. package/dist/components/u-signed-in.js.map +1 -0
  413. package/dist/components/u-signin-root.d.ts +11 -0
  414. package/dist/components/u-signin-root.js +63 -0
  415. package/dist/components/u-signin-root.js.map +1 -0
  416. package/dist/components/u-signin-step.d.ts +11 -0
  417. package/dist/components/u-signin-step.js +84 -0
  418. package/dist/components/u-signin-step.js.map +1 -0
  419. package/dist/components/u-signin-strategy.d.ts +11 -0
  420. package/dist/components/u-signin-strategy.js +50 -0
  421. package/dist/components/u-signin-strategy.js.map +1 -0
  422. package/dist/components/u-social-login-button.d.ts +11 -0
  423. package/dist/components/u-social-login-button.js +125 -0
  424. package/dist/components/u-social-login-button.js.map +1 -0
  425. package/dist/components/u-spinner.d.ts +11 -0
  426. package/dist/components/u-spinner.js +9 -0
  427. package/dist/components/u-spinner.js.map +1 -0
  428. package/dist/components/u-submit-button.d.ts +11 -0
  429. package/dist/components/u-submit-button.js +9 -0
  430. package/dist/components/u-submit-button.js.map +1 -0
  431. package/dist/components/u-ticketable-list.d.ts +11 -0
  432. package/dist/components/u-ticketable-list.js +6130 -0
  433. package/dist/components/u-ticketable-list.js.map +1 -0
  434. package/dist/components/unidy-store.js +37 -0
  435. package/dist/components/unidy-store.js.map +1 -0
  436. package/dist/esm/app-globals-BHWOrMsm.js +8 -0
  437. package/dist/esm/app-globals-BHWOrMsm.js.map +1 -0
  438. package/dist/esm/auth-CAHM6e4m.js +612 -0
  439. package/dist/esm/auth-CAHM6e4m.js.map +1 -0
  440. package/dist/esm/auth-store-ItTnEMlF.js +182 -0
  441. package/dist/esm/auth-store-ItTnEMlF.js.map +1 -0
  442. package/dist/esm/component-utils-BGq0leDV.js +39 -0
  443. package/dist/esm/component-utils-BGq0leDV.js.map +1 -0
  444. package/dist/esm/flash-store-CMXH65i_.js +47 -0
  445. package/dist/esm/flash-store-CMXH65i_.js.map +1 -0
  446. package/dist/esm/helpers-BqFCd65h.js +9 -0
  447. package/dist/esm/helpers-BqFCd65h.js.map +1 -0
  448. package/dist/esm/helpers-DUHc_Cx7.js +9 -0
  449. package/dist/esm/helpers-DUHc_Cx7.js.map +1 -0
  450. package/dist/esm/i18n-OKf8uE5j.js +3069 -0
  451. package/dist/esm/i18n-OKf8uE5j.js.map +1 -0
  452. package/dist/esm/index-COQ27Nb6.js +14684 -0
  453. package/dist/esm/index-COQ27Nb6.js.map +1 -0
  454. package/dist/esm/index-DVkRTYPC.js +281 -0
  455. package/dist/esm/index-DVkRTYPC.js.map +1 -0
  456. package/dist/esm/index-Du3hUdhU.js +6325 -0
  457. package/dist/esm/index-Du3hUdhU.js.map +1 -0
  458. package/dist/esm/index.js +40 -0
  459. package/dist/esm/index.js.map +1 -0
  460. package/dist/esm/loader.js +12 -0
  461. package/dist/esm/loader.js.map +1 -0
  462. package/dist/esm/newsletter-helpers-ChXON0f4.js +278 -0
  463. package/dist/esm/newsletter-helpers-ChXON0f4.js.map +1 -0
  464. package/dist/esm/newsletter-store-CIsyE51r.js +34 -0
  465. package/dist/esm/newsletter-store-CIsyE51r.js.map +1 -0
  466. package/dist/esm/pagination-store-B9lk_lqK.js +14 -0
  467. package/dist/esm/pagination-store-B9lk_lqK.js.map +1 -0
  468. package/dist/esm/profile-helpers-Beduxnin.js +36 -0
  469. package/dist/esm/profile-helpers-Beduxnin.js.map +1 -0
  470. package/dist/esm/profile-store-CsSDT9Tb.js +18 -0
  471. package/dist/esm/profile-store-CsSDT9Tb.js.map +1 -0
  472. package/dist/esm/sdk.js +49 -0
  473. package/dist/esm/sdk.js.map +1 -0
  474. package/dist/esm/u-conditional-render.entry.js +100 -0
  475. package/dist/esm/u-conditional-render.entry.js.map +1 -0
  476. package/dist/esm/u-config.entry.js +89 -0
  477. package/dist/esm/u-config.entry.js.map +1 -0
  478. package/dist/esm/u-email-field.entry.js +75 -0
  479. package/dist/esm/u-email-field.entry.js.map +1 -0
  480. package/dist/esm/u-error-message.entry.js +80 -0
  481. package/dist/esm/u-error-message.entry.js.map +1 -0
  482. package/dist/esm/u-field.u-raw-field.entry.js.map +1 -0
  483. package/dist/esm/u-field_2.entry.js +368 -0
  484. package/dist/esm/u-flash-message.entry.js +35 -0
  485. package/dist/esm/u-flash-message.entry.js.map +1 -0
  486. package/dist/esm/u-full-profile.entry.js +35 -0
  487. package/dist/esm/u-full-profile.entry.js.map +1 -0
  488. package/dist/esm/u-logout-button.u-signed-in.entry.js.map +1 -0
  489. package/dist/esm/u-logout-button_2.entry.js +59 -0
  490. package/dist/esm/u-magic-code-field.entry.js +89 -0
  491. package/dist/esm/u-magic-code-field.entry.js.map +1 -0
  492. package/dist/esm/u-missing-field.entry.js +20 -0
  493. package/dist/esm/u-missing-field.entry.js.map +1 -0
  494. package/dist/esm/u-missing-fields-submit-button.entry.js +44 -0
  495. package/dist/esm/u-missing-fields-submit-button.entry.js.map +1 -0
  496. package/dist/esm/u-newsletter-checkbox.entry.js +75 -0
  497. package/dist/esm/u-newsletter-checkbox.entry.js.map +1 -0
  498. package/dist/esm/u-newsletter-logout-button.entry.js +39 -0
  499. package/dist/esm/u-newsletter-logout-button.entry.js.map +1 -0
  500. package/dist/esm/u-newsletter-preference-checkbox.entry.js +118 -0
  501. package/dist/esm/u-newsletter-preference-checkbox.entry.js.map +1 -0
  502. package/dist/esm/u-newsletter-resend-doi-button.entry.js +47 -0
  503. package/dist/esm/u-newsletter-resend-doi-button.entry.js.map +1 -0
  504. package/dist/esm/u-newsletter-root.entry.js +70 -0
  505. package/dist/esm/u-newsletter-root.entry.js.map +1 -0
  506. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js +71 -0
  507. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js.map +1 -0
  508. package/dist/esm/u-pagination-button.entry.js +61 -0
  509. package/dist/esm/u-pagination-button.entry.js.map +1 -0
  510. package/dist/esm/u-pagination-page.entry.js +42 -0
  511. package/dist/esm/u-pagination-page.entry.js.map +1 -0
  512. package/dist/esm/u-passkey.entry.js +45 -0
  513. package/dist/esm/u-passkey.entry.js.map +1 -0
  514. package/dist/esm/u-password-field.entry.js +104 -0
  515. package/dist/esm/u-password-field.entry.js.map +1 -0
  516. package/dist/esm/u-profile.u-submit-button.entry.js.map +1 -0
  517. package/dist/esm/u-profile_2.entry.js +326 -0
  518. package/dist/esm/u-registration-button.entry.js +46 -0
  519. package/dist/esm/u-registration-button.entry.js.map +1 -0
  520. package/dist/esm/u-reset-password-button.entry.js +54 -0
  521. package/dist/esm/u-reset-password-button.entry.js.map +1 -0
  522. package/dist/esm/u-send-magic-code-button.entry.js +66 -0
  523. package/dist/esm/u-send-magic-code-button.entry.js.map +1 -0
  524. package/dist/esm/u-signin-root.entry.js +41 -0
  525. package/dist/esm/u-signin-root.entry.js.map +1 -0
  526. package/dist/esm/u-signin-step.entry.js +64 -0
  527. package/dist/esm/u-signin-step.entry.js.map +1 -0
  528. package/dist/esm/u-signin-strategy.entry.js +28 -0
  529. package/dist/esm/u-signin-strategy.entry.js.map +1 -0
  530. package/dist/esm/u-social-login-button.entry.js +98 -0
  531. package/dist/esm/u-social-login-button.entry.js.map +1 -0
  532. package/dist/esm/u-spinner.entry.js +16 -0
  533. package/dist/esm/u-spinner.entry.js.map +1 -0
  534. package/dist/esm/u-ticketable-list.entry.js +6095 -0
  535. package/dist/esm/u-ticketable-list.entry.js.map +1 -0
  536. package/dist/esm/unidy-store-CAcMVdD8.js +37 -0
  537. package/dist/esm/unidy-store-CAcMVdD8.js.map +1 -0
  538. package/dist/index.cjs.js +1 -0
  539. package/dist/index.js +1 -0
  540. package/dist/sdk/index.esm.js +2 -0
  541. package/dist/sdk/index.esm.js.map +1 -0
  542. package/dist/sdk/loader.esm.js.map +1 -0
  543. package/dist/sdk/locales/de.json +133 -0
  544. package/dist/sdk/locales/en.json +133 -0
  545. package/dist/sdk/locales/fr.json +133 -0
  546. package/dist/sdk/locales/it.json +133 -0
  547. package/dist/sdk/locales/nl_be.json +133 -0
  548. package/dist/sdk/locales/ro.json +133 -0
  549. package/dist/sdk/p-1bad3fd0.entry.js +2 -0
  550. package/dist/sdk/p-1bad3fd0.entry.js.map +1 -0
  551. package/dist/sdk/p-1d6982cd.entry.js +2 -0
  552. package/dist/sdk/p-1d6982cd.entry.js.map +1 -0
  553. package/dist/sdk/p-23d8e922.entry.js +2 -0
  554. package/dist/sdk/p-23d8e922.entry.js.map +1 -0
  555. package/dist/sdk/p-2855d3bb.entry.js +2 -0
  556. package/dist/sdk/p-2855d3bb.entry.js.map +1 -0
  557. package/dist/sdk/p-288f37c3.entry.js +2 -0
  558. package/dist/sdk/p-288f37c3.entry.js.map +1 -0
  559. package/dist/sdk/p-32842e98.entry.js +2 -0
  560. package/dist/sdk/p-32842e98.entry.js.map +1 -0
  561. package/dist/sdk/p-34af7470.entry.js +2 -0
  562. package/dist/sdk/p-34af7470.entry.js.map +1 -0
  563. package/dist/sdk/p-39126514.entry.js +2 -0
  564. package/dist/sdk/p-39126514.entry.js.map +1 -0
  565. package/dist/sdk/p-438f62e5.entry.js +2 -0
  566. package/dist/sdk/p-438f62e5.entry.js.map +1 -0
  567. package/dist/sdk/p-46013b2f.entry.js +2 -0
  568. package/dist/sdk/p-46013b2f.entry.js.map +1 -0
  569. package/dist/sdk/p-46cdb255.entry.js +2 -0
  570. package/dist/sdk/p-46cdb255.entry.js.map +1 -0
  571. package/dist/sdk/p-4d9bde6e.entry.js +2 -0
  572. package/dist/sdk/p-4d9bde6e.entry.js.map +1 -0
  573. package/dist/sdk/p-5c40c6ea.entry.js +2 -0
  574. package/dist/sdk/p-5c40c6ea.entry.js.map +1 -0
  575. package/dist/sdk/p-5c8b31bd.entry.js +2 -0
  576. package/dist/sdk/p-5c8b31bd.entry.js.map +1 -0
  577. package/dist/sdk/p-69172b22.entry.js +2 -0
  578. package/dist/sdk/p-69172b22.entry.js.map +1 -0
  579. package/dist/sdk/p-7381aca7.entry.js +2 -0
  580. package/dist/sdk/p-7381aca7.entry.js.map +1 -0
  581. package/dist/sdk/p-BGq0leDV.js +2 -0
  582. package/dist/sdk/p-BGq0leDV.js.map +1 -0
  583. package/dist/sdk/p-BR6L248H.js +2 -0
  584. package/dist/sdk/p-BR6L248H.js.map +1 -0
  585. package/dist/sdk/p-BhrvnKAS.js +2 -0
  586. package/dist/sdk/p-BhrvnKAS.js.map +1 -0
  587. package/dist/sdk/p-BqFCd65h.js +2 -0
  588. package/dist/sdk/p-BqFCd65h.js.map +1 -0
  589. package/dist/sdk/p-CMw6v6sC.js +2 -0
  590. package/dist/sdk/p-CMw6v6sC.js.map +1 -0
  591. package/dist/sdk/p-COQ27Nb6.js +14 -0
  592. package/dist/sdk/p-COQ27Nb6.js.map +1 -0
  593. package/dist/sdk/p-CSLU6kes.js +2 -0
  594. package/dist/sdk/p-CSLU6kes.js.map +1 -0
  595. package/dist/sdk/p-Cai8JwlG.js +2 -0
  596. package/dist/sdk/p-Cai8JwlG.js.map +1 -0
  597. package/dist/sdk/p-CpJghKnM.js +2 -0
  598. package/dist/sdk/p-CpJghKnM.js.map +1 -0
  599. package/dist/sdk/p-DAn4FkxC.js +2 -0
  600. package/dist/sdk/p-DAn4FkxC.js.map +1 -0
  601. package/dist/sdk/p-DUHc_Cx7.js +2 -0
  602. package/dist/sdk/p-DUHc_Cx7.js.map +1 -0
  603. package/dist/sdk/p-FFRhPCmc.js +2 -0
  604. package/dist/sdk/p-FFRhPCmc.js.map +1 -0
  605. package/dist/sdk/p-Jrp0G45B.js +2 -0
  606. package/dist/sdk/p-Jrp0G45B.js.map +1 -0
  607. package/dist/sdk/p-MA26cw6g.js +2 -0
  608. package/dist/sdk/p-MA26cw6g.js.map +1 -0
  609. package/dist/sdk/p-P0eZf5rH.js +2 -0
  610. package/dist/sdk/p-P0eZf5rH.js.map +1 -0
  611. package/dist/sdk/p-PSIHL0wP.js +2 -0
  612. package/dist/sdk/p-PSIHL0wP.js.map +1 -0
  613. package/dist/sdk/p-a341c7f6.entry.js +2 -0
  614. package/dist/sdk/p-a341c7f6.entry.js.map +1 -0
  615. package/dist/sdk/p-a38cd448.entry.js +2 -0
  616. package/dist/sdk/p-a38cd448.entry.js.map +1 -0
  617. package/dist/sdk/p-a45ef398.entry.js +2 -0
  618. package/dist/sdk/p-a45ef398.entry.js.map +1 -0
  619. package/dist/sdk/p-b5a6ad01.entry.js +2 -0
  620. package/dist/sdk/p-b5a6ad01.entry.js.map +1 -0
  621. package/dist/sdk/p-b93bf91d.entry.js +2 -0
  622. package/dist/sdk/p-b93bf91d.entry.js.map +1 -0
  623. package/dist/sdk/p-baf5dcb7.entry.js +2 -0
  624. package/dist/sdk/p-baf5dcb7.entry.js.map +1 -0
  625. package/dist/sdk/p-c07a43e2.entry.js +2 -0
  626. package/dist/sdk/p-c07a43e2.entry.js.map +1 -0
  627. package/dist/sdk/p-c98ad60d.entry.js +2 -0
  628. package/dist/sdk/p-c98ad60d.entry.js.map +1 -0
  629. package/dist/sdk/p-d0c0fb6b.entry.js +2 -0
  630. package/dist/sdk/p-d0c0fb6b.entry.js.map +1 -0
  631. package/dist/sdk/p-d47aaf26.entry.js +2 -0
  632. package/dist/sdk/p-d47aaf26.entry.js.map +1 -0
  633. package/dist/sdk/p-e5ef30ef.entry.js +2 -0
  634. package/dist/sdk/p-e5ef30ef.entry.js.map +1 -0
  635. package/dist/sdk/p-eb348798.entry.js +2 -0
  636. package/dist/sdk/p-eb348798.entry.js.map +1 -0
  637. package/dist/sdk/p-f82f500d.entry.js +2 -0
  638. package/dist/sdk/p-f82f500d.entry.js.map +1 -0
  639. package/dist/sdk/p-f88ed6e8.entry.js +2 -0
  640. package/dist/sdk/p-f88ed6e8.entry.js.map +1 -0
  641. package/dist/sdk/p-f9affafe.entry.js +2 -0
  642. package/dist/sdk/p-f9affafe.entry.js.map +1 -0
  643. package/dist/sdk/p-jyF1XwDG.js +2 -0
  644. package/dist/sdk/p-jyF1XwDG.js.map +1 -0
  645. package/dist/sdk/sdk.css +39 -0
  646. package/dist/sdk/sdk.esm.js +2 -0
  647. package/dist/sdk/sdk.esm.js.map +1 -0
  648. package/dist/sdk/u-conditional-render.entry.esm.js.map +1 -0
  649. package/dist/sdk/u-config.entry.esm.js.map +1 -0
  650. package/dist/sdk/u-email-field.entry.esm.js.map +1 -0
  651. package/dist/sdk/u-error-message.entry.esm.js.map +1 -0
  652. package/dist/sdk/u-field.u-raw-field.entry.esm.js.map +1 -0
  653. package/dist/sdk/u-flash-message.entry.esm.js.map +1 -0
  654. package/dist/sdk/u-full-profile.entry.esm.js.map +1 -0
  655. package/dist/sdk/u-logout-button.u-signed-in.entry.esm.js.map +1 -0
  656. package/dist/sdk/u-magic-code-field.entry.esm.js.map +1 -0
  657. package/dist/sdk/u-missing-field.entry.esm.js.map +1 -0
  658. package/dist/sdk/u-missing-fields-submit-button.entry.esm.js.map +1 -0
  659. package/dist/sdk/u-newsletter-checkbox.entry.esm.js.map +1 -0
  660. package/dist/sdk/u-newsletter-logout-button.entry.esm.js.map +1 -0
  661. package/dist/sdk/u-newsletter-preference-checkbox.entry.esm.js.map +1 -0
  662. package/dist/sdk/u-newsletter-resend-doi-button.entry.esm.js.map +1 -0
  663. package/dist/sdk/u-newsletter-root.entry.esm.js.map +1 -0
  664. package/dist/sdk/u-newsletter-toggle-subscription-button.entry.esm.js.map +1 -0
  665. package/dist/sdk/u-pagination-button.entry.esm.js.map +1 -0
  666. package/dist/sdk/u-pagination-page.entry.esm.js.map +1 -0
  667. package/dist/sdk/u-passkey.entry.esm.js.map +1 -0
  668. package/dist/sdk/u-password-field.entry.esm.js.map +1 -0
  669. package/dist/sdk/u-profile.u-submit-button.entry.esm.js.map +1 -0
  670. package/dist/sdk/u-registration-button.entry.esm.js.map +1 -0
  671. package/dist/sdk/u-reset-password-button.entry.esm.js.map +1 -0
  672. package/dist/sdk/u-send-magic-code-button.entry.esm.js.map +1 -0
  673. package/dist/sdk/u-signin-root.entry.esm.js.map +1 -0
  674. package/dist/sdk/u-signin-step.entry.esm.js.map +1 -0
  675. package/dist/sdk/u-signin-strategy.entry.esm.js.map +1 -0
  676. package/dist/sdk/u-social-login-button.entry.esm.js.map +1 -0
  677. package/dist/sdk/u-spinner.entry.esm.js.map +1 -0
  678. package/dist/sdk/u-ticketable-list.entry.esm.js.map +1 -0
  679. package/dist/types/api/client.d.ts +32 -0
  680. package/dist/types/api/index.d.ts +22 -0
  681. package/dist/types/api/shared.d.ts +20 -0
  682. package/dist/types/auth/api/auth.d.ts +302 -0
  683. package/dist/types/auth/auth-helpers.d.ts +376 -0
  684. package/dist/types/auth/auth.d.ts +62 -0
  685. package/dist/types/auth/components/helpers.d.ts +1 -0
  686. package/dist/types/auth/components/logout-button/logout-button.d.ts +11 -0
  687. package/dist/types/auth/components/magic-code-field/magic-code-field.d.ts +10 -0
  688. package/dist/types/auth/components/missing-field/missing-field.d.ts +4 -0
  689. package/dist/types/auth/components/missing-fields-submit-button/missing-fields-submit-button.d.ts +5 -0
  690. package/dist/types/auth/components/passkey/passkey.d.ts +9 -0
  691. package/dist/types/auth/components/password-field/password-field.d.ts +15 -0
  692. package/dist/types/auth/components/registration/registration-button.d.ts +11 -0
  693. package/dist/types/auth/components/reset-pass-button/reset-pass-button.d.ts +7 -0
  694. package/dist/types/auth/components/send-magic-code-button/send-magic-code-button.d.ts +11 -0
  695. package/dist/types/auth/components/signed-in/signed-in.d.ts +5 -0
  696. package/dist/types/auth/components/signin-root/signin-root.d.ts +14 -0
  697. package/dist/types/auth/components/signin-step/signin-step.d.ts +8 -0
  698. package/dist/types/auth/components/signin-strategy/signin-strategy.d.ts +5 -0
  699. package/dist/types/auth/components/social-logins/logos/apple.d.ts +4 -0
  700. package/dist/types/auth/components/social-logins/logos/discord.d.ts +4 -0
  701. package/dist/types/auth/components/social-logins/logos/facebook.d.ts +4 -0
  702. package/dist/types/auth/components/social-logins/logos/google.d.ts +4 -0
  703. package/dist/types/auth/components/social-logins/logos/linkedin.d.ts +4 -0
  704. package/dist/types/auth/components/social-logins/social-login-button.d.ts +24 -0
  705. package/dist/types/auth/components/submit-button/auth-submit-button.d.ts +3 -0
  706. package/dist/types/auth/error-definitions.d.ts +23 -0
  707. package/dist/types/auth/index.d.ts +15 -0
  708. package/dist/types/auth/passkey-auth.d.ts +2 -0
  709. package/dist/types/auth/store/auth-store.d.ts +58 -0
  710. package/dist/types/components.d.ts +1270 -0
  711. package/dist/types/globalScript.d.ts +1 -0
  712. package/dist/types/i18n.d.ts +3 -0
  713. package/dist/types/index.d.ts +16 -0
  714. package/dist/types/logger.d.ts +55 -0
  715. package/dist/types/newsletter/api/newsletters.d.ts +198 -0
  716. package/dist/types/newsletter/components/helpers.d.ts +1 -0
  717. package/dist/types/newsletter/components/logout-button/logout-button.d.ts +8 -0
  718. package/dist/types/newsletter/components/newsletter-checkbox/newsletter-checkbox.d.ts +15 -0
  719. package/dist/types/newsletter/components/newsletter-root/newsletter-root.d.ts +11 -0
  720. package/dist/types/newsletter/components/preference-checkbox/preference-checkbox.d.ts +28 -0
  721. package/dist/types/newsletter/components/resend-doi-button/resend-doi-button.d.ts +8 -0
  722. package/dist/types/newsletter/components/submit-button/newsletter-submit-button.d.ts +3 -0
  723. package/dist/types/newsletter/components/toggle-subscription-button/toggle-subscription-button.d.ts +12 -0
  724. package/dist/types/newsletter/index.d.ts +10 -0
  725. package/dist/types/newsletter/newsletter-helpers.d.ts +15 -0
  726. package/dist/types/newsletter/store/newsletter-store.d.ts +25 -0
  727. package/dist/types/profile/api/profile.d.ts +238 -0
  728. package/dist/types/profile/components/field/field.d.ts +39 -0
  729. package/dist/types/profile/components/full-profile/full-profile.d.ts +6 -0
  730. package/dist/types/profile/components/profile/profile.d.ts +27 -0
  731. package/dist/types/profile/components/raw-field/raw-field.d.ts +45 -0
  732. package/dist/types/profile/components/raw-input-fields/Input.d.ts +17 -0
  733. package/dist/types/profile/components/raw-input-fields/MultiSelect.d.ts +28 -0
  734. package/dist/types/profile/components/raw-input-fields/RadioGroup.d.ts +30 -0
  735. package/dist/types/profile/components/raw-input-fields/Select.d.ts +24 -0
  736. package/dist/types/profile/components/raw-input-fields/Textarea.d.ts +17 -0
  737. package/dist/types/profile/components/submit-button/profile-submit-button.d.ts +2 -0
  738. package/dist/types/profile/index.d.ts +12 -0
  739. package/dist/types/profile/profile-helpers.d.ts +7 -0
  740. package/dist/types/profile/store/profile-store.d.ts +39 -0
  741. package/dist/types/shared/component-utils.d.ts +16 -0
  742. package/dist/types/shared/components/conditional-render/conditional-render.d.ts +11 -0
  743. package/dist/types/shared/components/config/config.d.ts +32 -0
  744. package/dist/types/shared/components/email-field/email-field.d.ts +13 -0
  745. package/dist/types/shared/components/error-message/error-message.d.ts +15 -0
  746. package/dist/types/shared/components/flash-message/close-icon.d.ts +1 -0
  747. package/dist/types/shared/components/flash-message/flash-message.d.ts +6 -0
  748. package/dist/types/shared/components/spinner/spinner.d.ts +3 -0
  749. package/dist/types/shared/components/submit-button/context.d.ts +9 -0
  750. package/dist/types/shared/components/submit-button/submit-button.d.ts +20 -0
  751. package/dist/types/shared/store/flash-store.d.ts +29 -0
  752. package/dist/types/shared/store/unidy-store.d.ts +12 -0
  753. package/dist/types/stencil-public-runtime.d.ts +1756 -0
  754. package/dist/types/ticketable/api/get-with-schema.d.ts +3 -0
  755. package/dist/types/ticketable/api/schemas.d.ts +18 -0
  756. package/dist/types/ticketable/api/subscriptions.d.ts +84 -0
  757. package/dist/types/ticketable/api/tickets.d.ts +86 -0
  758. package/dist/types/ticketable/components/pagination/pagination-button.d.ts +14 -0
  759. package/dist/types/ticketable/components/pagination/pagination-page.d.ts +12 -0
  760. package/dist/types/ticketable/components/ticketable-list/skeleton-helpers.d.ts +13 -0
  761. package/dist/types/ticketable/components/ticketable-list/ticketable-list.d.ts +41 -0
  762. package/dist/types/ticketable/index.d.ts +12 -0
  763. package/dist/types/ticketable/store/pagination-store.d.ts +10 -0
  764. package/loader/cdn.js +1 -0
  765. package/loader/index.cjs.js +1 -0
  766. package/loader/index.d.ts +24 -0
  767. package/loader/index.es2017.js +1 -0
  768. package/loader/index.js +2 -0
  769. package/package.json +23 -18
@@ -0,0 +1,40 @@
1
+ export { A as ApiClient, a as AuthService, N as NewsletterService, d as PaginationMetaSchema, e as PaginationParamsSchema, P as ProfileService, c as SchemaValidationErrorSchema, S as SubscriptionsService, T as TicketsService, U as UnidyClient, b as UserProfileSchema, g as getUnidyClient } from './index-Du3hUdhU.js';
2
+ export { A as Auth } from './auth-CAHM6e4m.js';
3
+ export { s as authState, a as authStore, m as missingFieldNames, b as onAuthChange } from './auth-store-ItTnEMlF.js';
4
+ export { p as onProfileChange, s as profileState, a as profileStore } from './profile-store-CsSDT9Tb.js';
5
+ export { F as Flash } from './flash-store-CMXH65i_.js';
6
+ export { c as createPaginationStore } from './pagination-store-B9lk_lqK.js';
7
+ import './index-COQ27Nb6.js';
8
+ import './unidy-store-CAcMVdD8.js';
9
+ import './index-DVkRTYPC.js';
10
+ import './i18n-OKf8uE5j.js';
11
+ import './component-utils-BGq0leDV.js';
12
+
13
+ const AUTH_ERROR_CODES = {
14
+ EMAIL: {
15
+ NOT_FOUND: "account_not_found",
16
+ },
17
+ PASSWORD: {
18
+ INVALID: "invalid_password",
19
+ NOT_SET: "password_not_set",
20
+ RESET_PASSWORD_ALREADY_SENT: "reset_password_already_sent",
21
+ },
22
+ MAGIC_CODE: {
23
+ RECENTLY_CREATED: "magic_code_recently_created",
24
+ EXPIRED: "magic_code_expired",
25
+ USED: "magic_code_used",
26
+ NOT_VALID: "magic_code_not_valid",
27
+ },
28
+ PASSWORD_RESET: {
29
+ // TODO: figure out how to handle password requirements --> it should be same as in Unidy
30
+ // just a placeholder for now
31
+ PASSWORD_TOO_WEAK: "password_too_weak",
32
+ },
33
+ GENERAL: {
34
+ ACCOUNT_LOCKED: "account_locked",
35
+ SIGN_IN_EXPIRED: "sign_in_expired",
36
+ },
37
+ };
38
+
39
+ export { AUTH_ERROR_CODES };
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["src/auth/error-definitions.ts"],"sourcesContent":["export const AUTH_ERROR_CODES = {\n EMAIL: {\n NOT_FOUND: \"account_not_found\",\n },\n PASSWORD: {\n INVALID: \"invalid_password\",\n NOT_SET: \"password_not_set\",\n RESET_PASSWORD_ALREADY_SENT: \"reset_password_already_sent\",\n },\n MAGIC_CODE: {\n RECENTLY_CREATED: \"magic_code_recently_created\",\n EXPIRED: \"magic_code_expired\",\n USED: \"magic_code_used\",\n NOT_VALID: \"magic_code_not_valid\",\n },\n PASSWORD_RESET: {\n // TODO: figure out how to handle password requirements --> it should be same as in Unidy\n // just a placeholder for now\n PASSWORD_TOO_WEAK: \"password_too_weak\",\n },\n GENERAL: {\n ACCOUNT_LOCKED: \"account_locked\",\n SIGN_IN_EXPIRED: \"sign_in_expired\",\n },\n} as const;\n"],"names":[],"mappings":";;;;;;;;;;;;AAAa,MAAA,gBAAgB,GAAG;AAC9B,IAAA,KAAK,EAAE;AACL,QAAA,SAAS,EAAE,mBAAmB;AAC/B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE,kBAAkB;AAC3B,QAAA,OAAO,EAAE,kBAAkB;AAC3B,QAAA,2BAA2B,EAAE,6BAA6B;AAC3D,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,gBAAgB,EAAE,6BAA6B;AAC/C,QAAA,OAAO,EAAE,oBAAoB;AAC7B,QAAA,IAAI,EAAE,iBAAiB;AACvB,QAAA,SAAS,EAAE,sBAAsB;AAClC,KAAA;AACD,IAAA,cAAc,EAAE;;;AAGd,QAAA,iBAAiB,EAAE,mBAAmB;AACvC,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,cAAc,EAAE,gBAAgB;AAChC,QAAA,eAAe,EAAE,iBAAiB;AACnC,KAAA;;;;;"}
@@ -0,0 +1,12 @@
1
+ import { b as bootstrapLazy } from './index-COQ27Nb6.js';
2
+ export { s as setNonce } from './index-COQ27Nb6.js';
3
+ import { g as globalScripts } from './app-globals-BHWOrMsm.js';
4
+
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await globalScripts();
8
+ return bootstrapLazy([["u-full-profile",[[768,"u-full-profile",{"fields":[1],"countryCodeDisplayOption":[1,"country-code-display-option"]}]]],["u-missing-field",[[256,"u-missing-field"]]],["u-missing-fields-submit-button",[[257,"u-missing-fields-submit-button"]]],["u-newsletter-resend-doi-button",[[768,"u-newsletter-resend-doi-button",{"internalName":[1,"internal-name"],"componentClassName":[1,"class-name"],"isResending":[32]}]]],["u-newsletter-toggle-subscription-button",[[768,"u-newsletter-toggle-subscription-button",{"internalName":[1,"internal-name"],"componentClassName":[1,"class-name"],"subscribeClassName":[1,"subscribe-class-name"],"unsubscribeClassName":[1,"unsubscribe-class-name"],"loading":[32]}]]],["u-logout-button_2",[[772,"u-logout-button",{"componentClassName":[1,"class-name"],"reloadOnSuccess":[4,"reload-on-success"]}],[769,"u-signed-in",{"componentClassName":[1,"class-name"],"not":[4]}]]],["u-conditional-render",[[769,"u-conditional-render",{"when":[1],"is":[1],"not":[4],"conditionFunction":[16]}]]],["u-config",[[772,"u-config",{"mode":[1],"baseUrl":[1,"base-url"],"apiKey":[1,"api-key"],"customTranslations":[1,"custom-translations"],"fallbackLocale":[1,"fallback-locale"],"locale":[1],"checkSignedIn":[4,"check-signed-in"]},null,{"mode":["onPropChange"],"locale":["onPropChange"]}]]],["u-email-field",[[772,"u-email-field",{"componentClassName":[1,"class-name"],"ariaLabel":[1,"aria-label"],"disabled":[4],"emailValue":[32]}]]],["u-error-message",[[769,"u-error-message",{"componentClassName":[1,"class-name"],"for":[1],"errorMessages":[16]}]]],["u-flash-message",[[768,"u-flash-message",{"componentClassName":[1,"class-name"],"removeAfterSeconds":[2,"remove-after-seconds"]}]]],["u-magic-code-field",[[768,"u-magic-code-field",{"componentClassName":[1,"class-name"],"codeDigits":[32]}]]],["u-newsletter-checkbox",[[768,"u-newsletter-checkbox",{"internalName":[1,"internal-name"],"checked":[4],"componentClassName":[1,"class-name"],"toggle":[64],"setChecked":[64]}]]],["u-newsletter-logout-button",[[772,"u-newsletter-logout-button",{"componentClassName":[1,"class-name"]}]]],["u-newsletter-preference-checkbox",[[768,"u-newsletter-preference-checkbox",{"internalName":[1,"internal-name"],"preferenceIdentifier":[1,"preference-identifier"],"checked":[4],"componentClassName":[1,"class-name"],"loading":[32],"existingSubscriptions":[32],"checkedPreferences":[32],"toggle":[64],"setChecked":[64]}]]],["u-newsletter-root",[[772,"u-newsletter-root",{"componentClassName":[1,"class-name"],"submit":[64]}]]],["u-pagination-button",[[772,"u-pagination-button",{"direction":[1],"customClass":[1,"custom-class"],"paginationMeta":[32]}]]],["u-pagination-page",[[768,"u-pagination-page",{"customClass":[1,"custom-class"],"paginationMeta":[32]}]]],["u-passkey",[[768,"u-passkey",{"disabled":[4],"componentClassName":[1,"class-name"],"ariaDescribedBy":[1,"aria-described-by"],"isSupported":[32]}]]],["u-password-field",[[768,"u-password-field",{"for":[1],"componentClassName":[1,"class-name"],"ariaLabel":[1,"aria-label"]}]]],["u-registration-button",[[772,"u-registration-button",{"for":[1],"componentClassName":[1,"class-name"],"redirectUri":[1,"redirect-uri"]}]]],["u-reset-password-button",[[768,"u-reset-password-button",{"componentClassName":[1,"class-name"]}]]],["u-send-magic-code-button",[[768,"u-send-magic-code-button",{"disabled":[4],"componentClassName":[1,"class-name"],"countdown":[32]}]]],["u-signin-root",[[769,"u-signin-root",{"componentClassName":[1,"class-name"]}]]],["u-signin-step",[[769,"u-signin-step",{"name":[1],"alwaysRender":[4,"always-render"],"isActive":[64],"submit":[64]}]]],["u-signin-strategy",[[772,"u-signin-strategy",{"type":[1],"componentClassName":[1,"class-name"]}]]],["u-social-login-button",[[769,"u-social-login-button",{"provider":[1],"redirectUri":[1,"redirect-uri"],"iconOnly":[4,"icon-only"],"theme":[1]}]]],["u-ticketable-list",[[772,"u-ticketable-list",{"paginationMeta":[16],"target":[1],"containerClass":[1,"container-class"],"filter":[1025],"limit":[1026],"page":[1026],"skeletonCount":[2,"skeleton-count"],"skeletonAllText":[4,"skeleton-all-text"],"ticketableType":[1,"ticketable-type"],"store":[16],"items":[32],"loading":[32],"error":[32]},null,{"page":["fetchData"],"limit":["fetchData"],"filter":["fetchData"]}]]],["u-profile_2",[[772,"u-submit-button",{"for":[1],"text":[1],"disabled":[4],"componentClassName":[1,"class-name"]}],[772,"u-profile",{"profileId":[1,"profile-id"],"initialData":[1,"initial-data"],"fetchingProfileData":[32],"submitProfile":[64]}]]],["u-field_2",[[769,"u-field",{"field":[1],"required":[4],"readonlyPlaceholder":[1,"readonly-placeholder"],"countryCodeDisplayOption":[1,"country-code-display-option"],"invalidPhoneMessage":[1,"invalid-phone-message"],"componentClassName":[1,"class-name"],"emptyOption":[4,"empty-option"],"placeholder":[1],"renderDefaultLabel":[4,"render-default-label"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"validationFunc":[16],"selected":[32]}],[768,"u-raw-field",{"required":[4],"readonlyPlaceholder":[1,"readonly-placeholder"],"countryCodeDisplayOption":[1,"country-code-display-option"],"invalidPhoneMessage":[1,"invalid-phone-message"],"componentClassName":[1,"class-name"],"field":[1],"value":[1],"checked":[4],"disabled":[4],"tooltip":[1],"type":[1],"placeholder":[1],"options":[1],"emptyOption":[4,"empty-option"],"attrName":[1,"attr-name"],"radioOptions":[16],"multiSelectOptions":[16],"specificPartKey":[1,"specific-part-key"],"ariaDescribedBy":[1,"aria-described-by"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"validationFunc":[16],"selected":[32]}]]],["u-spinner",[[257,"u-spinner"]]]], options);
9
+ };
10
+
11
+ export { defineCustomElements };
12
+ //# sourceMappingURL=loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":[],"mappings":";;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;"}
@@ -0,0 +1,278 @@
1
+ import { g as getUnidyClient } from './index-Du3hUdhU.js';
2
+ import { A as Auth } from './auth-CAHM6e4m.js';
3
+ import { t } from './i18n-OKf8uE5j.js';
4
+ import { i as createLogger } from './index-COQ27Nb6.js';
5
+ import { F as Flash } from './flash-store-CMXH65i_.js';
6
+ import { n as newsletterStore, p as persist } from './newsletter-store-CIsyE51r.js';
7
+
8
+ const logger = createLogger("NewsletterHelpers");
9
+ const PERSIST_KEY_PREFIX = "unidy_newsletter_";
10
+ function newsletterLogout() {
11
+ newsletterStore.state.preferenceToken = "";
12
+ newsletterStore.state.existingSubscriptions = [];
13
+ sessionStorage.removeItem(`${PERSIST_KEY_PREFIX}preferenceToken`);
14
+ sessionStorage.removeItem(`${PERSIST_KEY_PREFIX}email`);
15
+ }
16
+ async function resendDoi(internalName) {
17
+ const { preferenceToken } = newsletterStore.state;
18
+ const authInstance = await Auth.getInstance();
19
+ const idToken = await authInstance.getToken();
20
+ const response = await getUnidyClient().newsletters.resendDoi(internalName, { redirect_to_after_confirmation: redirectToAfterConfirmationUrl() }, {
21
+ preferenceToken: typeof preferenceToken === "string" ? preferenceToken : "",
22
+ idToken: typeof idToken === "string" ? idToken : "",
23
+ });
24
+ if (response.status === 204) {
25
+ return true;
26
+ }
27
+ if (response.status === 401) {
28
+ Flash.error.addMessage(t("newsletter.errors.unauthorized"));
29
+ newsletterLogout();
30
+ return false;
31
+ }
32
+ return false;
33
+ }
34
+ async function sendLoginEmail(email) {
35
+ const response = await getUnidyClient().newsletters.sendLoginEmail({
36
+ email,
37
+ redirect_uri: redirectToAfterConfirmationUrl(),
38
+ });
39
+ if (response.status === 204) {
40
+ Flash.info.addMessage(t("newsletter.success.login_email_sent"));
41
+ }
42
+ else if (response.status === 404) {
43
+ Flash.error.addMessage(t("newsletter.errors.login_email_not_found"));
44
+ }
45
+ else {
46
+ Flash.error.addMessage(t("errors.unknown", { defaultValue: "An unknown error occurred" }));
47
+ }
48
+ }
49
+ async function fetchSubscriptions() {
50
+ const { preferenceToken } = newsletterStore.state;
51
+ // either preference token is needed or the user must be authenticated
52
+ if (!preferenceToken && !newsletterStore.state.isAuthenticated) {
53
+ logger.error("Preference token or authentication is required to fetch subscriptions");
54
+ return;
55
+ }
56
+ const authInstance = await Auth.getInstance();
57
+ const idToken = await authInstance.getToken();
58
+ newsletterStore.state.fetchingSubscriptions = true;
59
+ const response = await getUnidyClient().newsletters.listSubscriptions({
60
+ preferenceToken,
61
+ idToken: typeof idToken === "string" ? idToken : "",
62
+ });
63
+ newsletterStore.state.fetchingSubscriptions = false;
64
+ if (response.status === 401) {
65
+ newsletterLogout();
66
+ Flash.error.addMessage(t("newsletter.errors.unauthorized"));
67
+ return;
68
+ }
69
+ if (response.success && response.data) {
70
+ newsletterStore.state.existingSubscriptions = response.data.map((sub) => ({
71
+ newsletter_internal_name: sub.newsletter_internal_name,
72
+ confirmed: sub.confirmed_at !== null,
73
+ preference_identifiers: sub.preference_identifiers || [],
74
+ }));
75
+ // init checked newsletters and preferences
76
+ const checkedNewsletters = { ...newsletterStore.state.checkedNewsletters };
77
+ for (const sub of response.data) {
78
+ checkedNewsletters[sub.newsletter_internal_name] = [...(sub.preference_identifiers || [])];
79
+ }
80
+ newsletterStore.state.checkedNewsletters = checkedNewsletters;
81
+ }
82
+ }
83
+ async function handleAlreadySubscribedError(email, errors) {
84
+ if (newsletterStore.state.isAuthenticated || newsletterStore.state.preferenceToken) {
85
+ const existingNames = new Set(newsletterStore.state.existingSubscriptions.map((s) => s.newsletter_internal_name));
86
+ const newSubscriptions = errors
87
+ .filter((err) => err.error_identifier === "already_subscribed" && !existingNames.has(err.meta.newsletter_internal_name))
88
+ .map((err) => ({
89
+ newsletter_internal_name: err.meta.newsletter_internal_name,
90
+ confirmed: null,
91
+ preference_identifiers: [],
92
+ }));
93
+ if (newSubscriptions.length > 0) {
94
+ newsletterStore.state.existingSubscriptions = [...newsletterStore.state.existingSubscriptions, ...newSubscriptions];
95
+ }
96
+ }
97
+ else {
98
+ await sendLoginEmail(email);
99
+ }
100
+ }
101
+ async function handleCreateSubscriptionRequest(email, internalNames, showSuccessMessage = true) {
102
+ const authInstance = await Auth.getInstance();
103
+ const idToken = await authInstance.getToken();
104
+ const { checkedNewsletters } = newsletterStore.state;
105
+ const [error, response] = await getUnidyClient().newsletters.createSubscriptions({
106
+ email,
107
+ newsletter_subscriptions: internalNames.map((newsletter) => ({
108
+ newsletter_internal_name: newsletter,
109
+ preference_identifiers: checkedNewsletters[newsletter] || [],
110
+ })),
111
+ redirect_to_after_confirmation: redirectToAfterConfirmationUrl(),
112
+ }, {
113
+ idToken: typeof idToken === "string" ? idToken : "",
114
+ });
115
+ if (error === null) {
116
+ if (response.data?.results && response.data.results.length > 0) {
117
+ const newSubscriptions = response.data.results.map((result) => ({
118
+ newsletter_internal_name: result.newsletter_internal_name,
119
+ confirmed: result.confirmed_at !== null,
120
+ preference_identifiers: result.preference_identifiers || [],
121
+ }));
122
+ newsletterStore.state.existingSubscriptions = [...newsletterStore.state.existingSubscriptions, ...newSubscriptions];
123
+ }
124
+ if (showSuccessMessage) {
125
+ Flash.success.addMessage(t("newsletter.success.subscribe"));
126
+ }
127
+ return true;
128
+ }
129
+ if (error === "unauthorized") {
130
+ Flash.error.addMessage(t("newsletter.errors.unauthorized"));
131
+ newsletterLogout();
132
+ return false;
133
+ }
134
+ if (error === "newsletter_error") {
135
+ const errors = response.data?.errors || [];
136
+ const errorMap = {};
137
+ // special error case which is handled differently: if user is not authenticated, we send a login email, otherwise we add the
138
+ // already_subscribed subscriptions to the existing subscriptions
139
+ const hasAlreadySubscribedError = errors.some((err) => err.error_identifier === "already_subscribed");
140
+ if (hasAlreadySubscribedError) {
141
+ await handleAlreadySubscribedError(email, errors);
142
+ }
143
+ const newsletterNotFoundError = errors.some((err) => err.error_identifier === "newsletter_not_found");
144
+ if (newsletterNotFoundError) {
145
+ errorMap.general = "newsletter_not_found";
146
+ }
147
+ const hasInvalidEmailError = errors.some((err) => err.error_identifier === "validation_error" && err.error_details && "email" in err.error_details);
148
+ if (hasInvalidEmailError) {
149
+ errorMap.email = "invalid_email";
150
+ }
151
+ else {
152
+ for (const err of errors) {
153
+ errorMap[err.meta.newsletter_internal_name] = err.error_identifier;
154
+ }
155
+ }
156
+ newsletterStore.state.errors = errorMap;
157
+ }
158
+ else {
159
+ Flash.error.addMessage(t("errors.unknown", { defaultValue: "An unknown error occurred" }));
160
+ }
161
+ return false;
162
+ }
163
+ async function subscribeToNewsletter(internalName, email) {
164
+ return handleCreateSubscriptionRequest(email, [internalName], false);
165
+ }
166
+ async function createSubscriptions({ email }) {
167
+ const internalNames = Object.keys(newsletterStore.state.checkedNewsletters);
168
+ await handleCreateSubscriptionRequest(email, internalNames, true);
169
+ }
170
+ async function deleteSubscription(internalName) {
171
+ const { preferenceToken } = newsletterStore.state;
172
+ // either preference token is needed or the user must be authenticated to delete a subscription
173
+ if (!preferenceToken && !newsletterStore.state.isAuthenticated) {
174
+ logger.error("Preference token or authentication is required to delete a subscription");
175
+ return false;
176
+ }
177
+ const authInstance = await Auth.getInstance();
178
+ const idToken = await authInstance.getToken();
179
+ const response = await getUnidyClient().newsletters.deleteSubscription(internalName, {
180
+ preferenceToken,
181
+ idToken: typeof idToken === "string" ? idToken : "",
182
+ });
183
+ if (response.status === 200 && response.data?.new_preference_token) {
184
+ // if user is not authenticated, we need to store the new preference token which is used for the next request
185
+ if (!newsletterStore.state.isAuthenticated) {
186
+ newsletterStore.state.preferenceToken = response.data.new_preference_token;
187
+ persist("preferenceToken");
188
+ }
189
+ newsletterStore.state.existingSubscriptions = newsletterStore.state.existingSubscriptions.filter((sub) => sub.newsletter_internal_name !== internalName);
190
+ // Reset checked preferences to defaults (preferences marked with checked='true')
191
+ const defaultPrefs = newsletterStore.state.defaultPreferences[internalName];
192
+ newsletterStore.state.checkedNewsletters = {
193
+ ...newsletterStore.state.checkedNewsletters,
194
+ [internalName]: defaultPrefs ? [...defaultPrefs] : [],
195
+ };
196
+ return true;
197
+ }
198
+ if (response.status === 204) {
199
+ newsletterLogout();
200
+ newsletterStore.state.checkedNewsletters = {};
201
+ return true;
202
+ }
203
+ if (response.status === 401) {
204
+ Flash.error.addMessage(t("newsletter.errors.unauthorized"));
205
+ newsletterLogout();
206
+ return false;
207
+ }
208
+ if (response.status === 422) {
209
+ return false;
210
+ }
211
+ Flash.error.addMessage(t("errors.unknown", { defaultValue: "An unknown error occurred" }));
212
+ return false;
213
+ }
214
+ function getSubscription(internalName) {
215
+ return newsletterStore.state.existingSubscriptions.find((sub) => sub.newsletter_internal_name === internalName);
216
+ }
217
+ function isSubscribed(internalName) {
218
+ return newsletterStore.state.existingSubscriptions.some((sub) => sub.newsletter_internal_name === internalName);
219
+ }
220
+ function isConfirmed(internalName) {
221
+ const sub = getSubscription(internalName);
222
+ return sub?.confirmed ?? false;
223
+ }
224
+ function redirectToAfterConfirmationUrl() {
225
+ const baseUrl = `${location.origin}${location.pathname}`;
226
+ const params = new URLSearchParams(location.search);
227
+ for (const key of ["email", "newsletter_error"]) {
228
+ params.delete(key);
229
+ }
230
+ const queryString = params.toString();
231
+ return queryString ? `${baseUrl}?${queryString}` : baseUrl;
232
+ }
233
+ async function updateSubscriptionPreferences(internalName) {
234
+ const { preferenceToken } = newsletterStore.state;
235
+ // Either preference token is needed or the user must be authenticated
236
+ if (!preferenceToken && !newsletterStore.state.isAuthenticated) {
237
+ logger.error("Preference token or authentication is required to update subscription preferences");
238
+ return false;
239
+ }
240
+ // Check if the subscription exists
241
+ if (!isSubscribed(internalName)) {
242
+ logger.error(`Cannot update preferences: not subscribed to newsletter '${internalName}'`);
243
+ return false;
244
+ }
245
+ const authInstance = await Auth.getInstance();
246
+ const idToken = await authInstance.getToken();
247
+ const preferenceIdentifiers = newsletterStore.state.checkedNewsletters[internalName] || [];
248
+ const response = await getUnidyClient().newsletters.updateSubscription(internalName, { preference_identifiers: preferenceIdentifiers }, {
249
+ preferenceToken,
250
+ idToken: typeof idToken === "string" ? idToken : "",
251
+ });
252
+ if (response.status === 401) {
253
+ Flash.error.addMessage(t("newsletter.errors.unauthorized"));
254
+ newsletterLogout();
255
+ return false;
256
+ }
257
+ if (response.success && response.data) {
258
+ // Update the local subscription with the new preferences
259
+ const subscriptionIndex = newsletterStore.state.existingSubscriptions.findIndex((sub) => sub.newsletter_internal_name === internalName);
260
+ if (subscriptionIndex !== -1) {
261
+ const updatedSubscriptions = [...newsletterStore.state.existingSubscriptions];
262
+ updatedSubscriptions[subscriptionIndex] = {
263
+ ...updatedSubscriptions[subscriptionIndex],
264
+ preference_identifiers: response.data.preference_identifiers || [],
265
+ };
266
+ newsletterStore.state.existingSubscriptions = updatedSubscriptions;
267
+ }
268
+ Flash.success.addMessage(t("newsletter.success.preferences_updated"));
269
+ return true;
270
+ }
271
+ Flash.error.addMessage(t("errors.unknown", { defaultValue: "An unknown error occurred" }));
272
+ return false;
273
+ }
274
+
275
+ export { isSubscribed as a, subscribeToNewsletter as b, createSubscriptions as c, deleteSubscription as d, fetchSubscriptions as f, isConfirmed as i, newsletterLogout as n, resendDoi as r, sendLoginEmail as s, updateSubscriptionPreferences as u };
276
+ //# sourceMappingURL=newsletter-helpers-ChXON0f4.js.map
277
+
278
+ //# sourceMappingURL=newsletter-helpers-ChXON0f4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newsletter-helpers-ChXON0f4.js","sources":["src/newsletter/newsletter-helpers.ts"],"sourcesContent":["import { getUnidyClient } from \"../api\";\nimport { Auth } from \"../auth/auth\";\nimport { t } from \"../i18n\";\nimport { createLogger } from \"../logger\";\nimport { Flash } from \"../shared/store/flash-store\";\nimport {\n type CheckedNewsletters,\n type ExistingSubscription,\n type NewsletterErrorIdentifier,\n newsletterStore,\n persist,\n} from \"./store/newsletter-store\";\n\nconst logger = createLogger(\"NewsletterHelpers\");\n\nconst PERSIST_KEY_PREFIX = \"unidy_newsletter_\";\n\nexport function newsletterLogout(): void {\n newsletterStore.state.preferenceToken = \"\";\n newsletterStore.state.existingSubscriptions = [];\n sessionStorage.removeItem(`${PERSIST_KEY_PREFIX}preferenceToken`);\n sessionStorage.removeItem(`${PERSIST_KEY_PREFIX}email`);\n}\n\nexport async function resendDoi(internalName: string): Promise<boolean> {\n const { preferenceToken } = newsletterStore.state;\n\n const authInstance = await Auth.getInstance();\n const idToken = await authInstance.getToken();\n\n const response = await getUnidyClient().newsletters.resendDoi(\n internalName,\n { redirect_to_after_confirmation: redirectToAfterConfirmationUrl() },\n {\n preferenceToken: typeof preferenceToken === \"string\" ? preferenceToken : \"\",\n idToken: typeof idToken === \"string\" ? idToken : \"\",\n },\n );\n\n if (response.status === 204) {\n return true;\n }\n\n if (response.status === 401) {\n Flash.error.addMessage(t(\"newsletter.errors.unauthorized\"));\n newsletterLogout();\n return false;\n }\n\n return false;\n}\n\nexport async function sendLoginEmail(email: string): Promise<void> {\n const response = await getUnidyClient().newsletters.sendLoginEmail({\n email,\n redirect_uri: redirectToAfterConfirmationUrl(),\n });\n\n if (response.status === 204) {\n Flash.info.addMessage(t(\"newsletter.success.login_email_sent\"));\n } else if (response.status === 404) {\n Flash.error.addMessage(t(\"newsletter.errors.login_email_not_found\"));\n } else {\n Flash.error.addMessage(t(\"errors.unknown\", { defaultValue: \"An unknown error occurred\" }));\n }\n}\n\nexport async function fetchSubscriptions(): Promise<void> {\n const { preferenceToken } = newsletterStore.state;\n\n // either preference token is needed or the user must be authenticated\n if (!preferenceToken && !newsletterStore.state.isAuthenticated) {\n logger.error(\"Preference token or authentication is required to fetch subscriptions\");\n return;\n }\n\n const authInstance = await Auth.getInstance();\n const idToken = await authInstance.getToken();\n\n newsletterStore.state.fetchingSubscriptions = true;\n\n const response = await getUnidyClient().newsletters.listSubscriptions({\n preferenceToken,\n idToken: typeof idToken === \"string\" ? idToken : \"\",\n });\n\n newsletterStore.state.fetchingSubscriptions = false;\n\n if (response.status === 401) {\n newsletterLogout();\n Flash.error.addMessage(t(\"newsletter.errors.unauthorized\"));\n return;\n }\n\n if (response.success && response.data) {\n newsletterStore.state.existingSubscriptions = response.data.map(\n (sub): ExistingSubscription => ({\n newsletter_internal_name: sub.newsletter_internal_name,\n confirmed: sub.confirmed_at !== null,\n preference_identifiers: sub.preference_identifiers || [],\n }),\n );\n\n // init checked newsletters and preferences\n const checkedNewsletters: CheckedNewsletters = { ...newsletterStore.state.checkedNewsletters };\n for (const sub of response.data) {\n checkedNewsletters[sub.newsletter_internal_name] = [...(sub.preference_identifiers || [])];\n }\n newsletterStore.state.checkedNewsletters = checkedNewsletters;\n }\n}\n\nasync function handleAlreadySubscribedError(\n email: string,\n errors: Array<{ error_identifier: string; meta: { newsletter_internal_name: string } }>,\n): Promise<void> {\n if (newsletterStore.state.isAuthenticated || newsletterStore.state.preferenceToken) {\n const existingNames = new Set(newsletterStore.state.existingSubscriptions.map((s) => s.newsletter_internal_name));\n\n const newSubscriptions: ExistingSubscription[] = errors\n .filter((err) => err.error_identifier === \"already_subscribed\" && !existingNames.has(err.meta.newsletter_internal_name))\n .map((err) => ({\n newsletter_internal_name: err.meta.newsletter_internal_name,\n confirmed: null,\n preference_identifiers: [],\n }));\n\n if (newSubscriptions.length > 0) {\n newsletterStore.state.existingSubscriptions = [...newsletterStore.state.existingSubscriptions, ...newSubscriptions];\n }\n } else {\n await sendLoginEmail(email);\n }\n}\n\nasync function handleCreateSubscriptionRequest(email: string, internalNames: string[], showSuccessMessage = true): Promise<boolean> {\n const authInstance = await Auth.getInstance();\n const idToken = await authInstance.getToken();\n const { checkedNewsletters } = newsletterStore.state;\n\n const [error, response] = await getUnidyClient().newsletters.createSubscriptions(\n {\n email,\n newsletter_subscriptions: internalNames.map((newsletter) => ({\n newsletter_internal_name: newsletter,\n preference_identifiers: checkedNewsletters[newsletter] || [],\n })),\n redirect_to_after_confirmation: redirectToAfterConfirmationUrl(),\n },\n {\n idToken: typeof idToken === \"string\" ? idToken : \"\",\n },\n );\n\n if (error === null) {\n if (response.data?.results && response.data.results.length > 0) {\n const newSubscriptions: ExistingSubscription[] = response.data.results.map((result) => ({\n newsletter_internal_name: result.newsletter_internal_name,\n confirmed: result.confirmed_at !== null,\n preference_identifiers: result.preference_identifiers || [],\n }));\n\n newsletterStore.state.existingSubscriptions = [...newsletterStore.state.existingSubscriptions, ...newSubscriptions];\n }\n\n if (showSuccessMessage) {\n Flash.success.addMessage(t(\"newsletter.success.subscribe\"));\n }\n\n return true;\n }\n\n if (error === \"unauthorized\") {\n Flash.error.addMessage(t(\"newsletter.errors.unauthorized\"));\n newsletterLogout();\n return false;\n }\n\n if (error === \"newsletter_error\") {\n const errors = response.data?.errors || [];\n const errorMap: Record<string, NewsletterErrorIdentifier> = {};\n\n // special error case which is handled differently: if user is not authenticated, we send a login email, otherwise we add the\n // already_subscribed subscriptions to the existing subscriptions\n const hasAlreadySubscribedError = errors.some((err) => err.error_identifier === \"already_subscribed\");\n if (hasAlreadySubscribedError) {\n await handleAlreadySubscribedError(email, errors);\n }\n\n const newsletterNotFoundError = errors.some((err) => err.error_identifier === \"newsletter_not_found\");\n if (newsletterNotFoundError) {\n errorMap.general = \"newsletter_not_found\";\n }\n\n const hasInvalidEmailError = errors.some(\n (err) => err.error_identifier === \"validation_error\" && err.error_details && \"email\" in err.error_details,\n );\n\n if (hasInvalidEmailError) {\n errorMap.email = \"invalid_email\";\n } else {\n for (const err of errors) {\n errorMap[err.meta.newsletter_internal_name] = err.error_identifier as NewsletterErrorIdentifier;\n }\n }\n\n newsletterStore.state.errors = errorMap;\n } else {\n Flash.error.addMessage(t(\"errors.unknown\", { defaultValue: \"An unknown error occurred\" }));\n }\n\n return false;\n}\n\nexport async function subscribeToNewsletter(internalName: string, email: string): Promise<boolean> {\n return handleCreateSubscriptionRequest(email, [internalName], false);\n}\n\nexport async function createSubscriptions({ email }: { email: string }): Promise<void> {\n const internalNames = Object.keys(newsletterStore.state.checkedNewsletters);\n await handleCreateSubscriptionRequest(email, internalNames, true);\n}\n\nexport async function deleteSubscription(internalName: string): Promise<boolean> {\n const { preferenceToken } = newsletterStore.state;\n\n // either preference token is needed or the user must be authenticated to delete a subscription\n if (!preferenceToken && !newsletterStore.state.isAuthenticated) {\n logger.error(\"Preference token or authentication is required to delete a subscription\");\n return false;\n }\n\n const authInstance = await Auth.getInstance();\n const idToken = await authInstance.getToken();\n\n const response = await getUnidyClient().newsletters.deleteSubscription(internalName, {\n preferenceToken,\n idToken: typeof idToken === \"string\" ? idToken : \"\",\n });\n\n if (response.status === 200 && response.data?.new_preference_token) {\n // if user is not authenticated, we need to store the new preference token which is used for the next request\n if (!newsletterStore.state.isAuthenticated) {\n newsletterStore.state.preferenceToken = response.data.new_preference_token;\n persist(\"preferenceToken\");\n }\n\n newsletterStore.state.existingSubscriptions = newsletterStore.state.existingSubscriptions.filter(\n (sub) => sub.newsletter_internal_name !== internalName,\n );\n\n // Reset checked preferences to defaults (preferences marked with checked='true')\n const defaultPrefs = newsletterStore.state.defaultPreferences[internalName];\n newsletterStore.state.checkedNewsletters = {\n ...newsletterStore.state.checkedNewsletters,\n [internalName]: defaultPrefs ? [...defaultPrefs] : [],\n };\n\n return true;\n }\n\n if (response.status === 204) {\n newsletterLogout();\n\n newsletterStore.state.checkedNewsletters = {};\n return true;\n }\n\n if (response.status === 401) {\n Flash.error.addMessage(t(\"newsletter.errors.unauthorized\"));\n newsletterLogout();\n return false;\n }\n\n if (response.status === 422) {\n return false;\n }\n\n Flash.error.addMessage(t(\"errors.unknown\", { defaultValue: \"An unknown error occurred\" }));\n return false;\n}\n\nexport function getSubscription(internalName: string): ExistingSubscription | undefined {\n return newsletterStore.state.existingSubscriptions.find((sub) => sub.newsletter_internal_name === internalName);\n}\n\nexport function isSubscribed(internalName: string): boolean {\n return newsletterStore.state.existingSubscriptions.some((sub) => sub.newsletter_internal_name === internalName);\n}\n\nexport function isConfirmed(internalName: string): boolean {\n const sub = getSubscription(internalName);\n return sub?.confirmed ?? false;\n}\n\nfunction redirectToAfterConfirmationUrl(): string {\n const baseUrl = `${location.origin}${location.pathname}`;\n const params = new URLSearchParams(location.search);\n for (const key of [\"email\", \"newsletter_error\"]) {\n params.delete(key);\n }\n const queryString = params.toString();\n return queryString ? `${baseUrl}?${queryString}` : baseUrl;\n}\n\nexport function getSubscriptionPreferences(internalName: string): string[] {\n const subscription = getSubscription(internalName);\n return subscription?.preference_identifiers || [];\n}\n\nexport async function updateSubscriptionPreferences(internalName: string): Promise<boolean> {\n const { preferenceToken } = newsletterStore.state;\n\n // Either preference token is needed or the user must be authenticated\n if (!preferenceToken && !newsletterStore.state.isAuthenticated) {\n logger.error(\"Preference token or authentication is required to update subscription preferences\");\n return false;\n }\n\n // Check if the subscription exists\n if (!isSubscribed(internalName)) {\n logger.error(`Cannot update preferences: not subscribed to newsletter '${internalName}'`);\n return false;\n }\n\n const authInstance = await Auth.getInstance();\n const idToken = await authInstance.getToken();\n\n const preferenceIdentifiers = newsletterStore.state.checkedNewsletters[internalName] || [];\n\n const response = await getUnidyClient().newsletters.updateSubscription(\n internalName,\n { preference_identifiers: preferenceIdentifiers },\n {\n preferenceToken,\n idToken: typeof idToken === \"string\" ? idToken : \"\",\n },\n );\n\n if (response.status === 401) {\n Flash.error.addMessage(t(\"newsletter.errors.unauthorized\"));\n newsletterLogout();\n return false;\n }\n\n if (response.success && response.data) {\n // Update the local subscription with the new preferences\n const subscriptionIndex = newsletterStore.state.existingSubscriptions.findIndex((sub) => sub.newsletter_internal_name === internalName);\n\n if (subscriptionIndex !== -1) {\n const updatedSubscriptions = [...newsletterStore.state.existingSubscriptions];\n updatedSubscriptions[subscriptionIndex] = {\n ...updatedSubscriptions[subscriptionIndex],\n preference_identifiers: response.data.preference_identifiers || [],\n };\n newsletterStore.state.existingSubscriptions = updatedSubscriptions;\n }\n\n Flash.success.addMessage(t(\"newsletter.success.preferences_updated\"));\n return true;\n }\n\n Flash.error.addMessage(t(\"errors.unknown\", { defaultValue: \"An unknown error occurred\" }));\n return false;\n}\n"],"names":[],"mappings":";;;;;;;AAaA,MAAM,MAAM,GAAG,YAAY,CAAC,mBAAmB,CAAC;AAEhD,MAAM,kBAAkB,GAAG,mBAAmB;SAE9B,gBAAgB,GAAA;AAC9B,IAAA,eAAe,CAAC,KAAK,CAAC,eAAe,GAAG,EAAE;AAC1C,IAAA,eAAe,CAAC,KAAK,CAAC,qBAAqB,GAAG,EAAE;AAChD,IAAA,cAAc,CAAC,UAAU,CAAC,GAAG,kBAAkB,CAAA,eAAA,CAAiB,CAAC;AACjE,IAAA,cAAc,CAAC,UAAU,CAAC,GAAG,kBAAkB,CAAA,KAAA,CAAO,CAAC;AACzD;AAEO,eAAe,SAAS,CAAC,Y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AAC,IAAI,CAAC,sBAAsB,IAAI,EAAE;aACnE;AACD,YAAA,eAAe,CAAC,KAAK,CAAC,qBAAqB,GAAG,oBAAoB;;QAGpE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC;AACrE,QAAA,OAAO,IAAI;;AAGb,IAAA,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,gBAAgB,EAAE,EAAE,YAAY,EAAE,2BAA2B,EAAE,CAAC,CAAC;AAC1F,IAAA,OAAO,KAAK;AACd;;;;"}
@@ -0,0 +1,34 @@
1
+ import { c as createStore } from './index-DVkRTYPC.js';
2
+
3
+ const PERSIST_KEY_PREFIX = "unidy_newsletter_";
4
+ const persist = (key) => {
5
+ sessionStorage.setItem(`${PERSIST_KEY_PREFIX}${key}`, newsletterStore.state[key]);
6
+ };
7
+ const getPersistedValue = (key) => {
8
+ return sessionStorage.getItem(`${PERSIST_KEY_PREFIX}${key}`);
9
+ };
10
+ const initialState = {
11
+ email: getPersistedValue("email") ?? "",
12
+ preferenceToken: getPersistedValue("preferenceToken") ?? "",
13
+ checkedNewsletters: {},
14
+ defaultPreferences: {},
15
+ fetchingSubscriptions: false,
16
+ existingSubscriptions: [],
17
+ errors: {},
18
+ isAuthenticated: false,
19
+ };
20
+ const newsletterStore = createStore(initialState);
21
+ const storeDefaultPreference = (internalName, preferenceIdentifier) => {
22
+ const current = newsletterStore.state.defaultPreferences[internalName] ?? new Set();
23
+ const updated = new Set(current);
24
+ updated.add(preferenceIdentifier);
25
+ newsletterStore.state.defaultPreferences = {
26
+ ...newsletterStore.state.defaultPreferences,
27
+ [internalName]: updated,
28
+ };
29
+ };
30
+
31
+ export { newsletterStore as n, persist as p, storeDefaultPreference as s };
32
+ //# sourceMappingURL=newsletter-store-CIsyE51r.js.map
33
+
34
+ //# sourceMappingURL=newsletter-store-CIsyE51r.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newsletter-store-CIsyE51r.js","sources":["src/newsletter/store/newsletter-store.ts"],"sourcesContent":["import { createStore } from \"@stencil/store\";\n\nexport type NewsletterErrorIdentifier =\n | \"unconfirmed\"\n | \"already_subscribed\"\n | \"invalid_email\"\n | \"newsletter_not_found\"\n | \"preferences_not_found\"\n | \"invalid_preference_token\"\n | \"unknown\";\n\nexport type NewsletterInternalName = string;\nexport type PreferenceIdentifier = string;\n\nexport interface ExistingSubscription {\n newsletter_internal_name: NewsletterInternalName;\n confirmed: boolean;\n preference_identifiers: PreferenceIdentifier[];\n}\n\nexport type CheckedNewsletters = Record<NewsletterInternalName, PreferenceIdentifier[]>;\n\nexport type DefaultPreferences = Record<NewsletterInternalName, Set<PreferenceIdentifier>>;\n\ninterface NewsletterState {\n email: string;\n preferenceToken: string;\n checkedNewsletters: CheckedNewsletters;\n defaultPreferences: DefaultPreferences;\n\n fetchingSubscriptions: boolean;\n existingSubscriptions: ExistingSubscription[];\n\n errors: Record<string, NewsletterErrorIdentifier>;\n\n isAuthenticated: boolean;\n}\n\nconst PERSIST_KEY_PREFIX = \"unidy_newsletter_\";\n\nexport const persist = (key: \"email\" | \"preferenceToken\") => {\n sessionStorage.setItem(`${PERSIST_KEY_PREFIX}${key}`, newsletterStore.state[key]);\n};\n\nconst getPersistedValue = (key: \"email\" | \"preferenceToken\") => {\n return sessionStorage.getItem(`${PERSIST_KEY_PREFIX}${key}`);\n};\n\nconst initialState: NewsletterState = {\n email: getPersistedValue(\"email\") ?? \"\",\n preferenceToken: getPersistedValue(\"preferenceToken\") ?? \"\",\n checkedNewsletters: {},\n defaultPreferences: {},\n\n fetchingSubscriptions: false,\n existingSubscriptions: [],\n\n errors: {},\n isAuthenticated: false,\n};\n\nexport const newsletterStore = createStore<NewsletterState>(initialState);\n\nexport const storeDefaultPreference = (internalName: NewsletterInternalName, preferenceIdentifier: PreferenceIdentifier) => {\n const current = newsletterStore.state.defaultPreferences[internalName] ?? new Set();\n const updated = new Set(current);\n updated.add(preferenceIdentifier);\n newsletterStore.state.defaultPreferences = {\n ...newsletterStore.state.defaultPreferences,\n [internalName]: updated,\n };\n};\n\nexport const reset = () => {\n sessionStorage.removeItem(`${PERSIST_KEY_PREFIX}preferenceToken`);\n sessionStorage.removeItem(`${PERSIST_KEY_PREFIX}email`);\n newsletterStore.state = initialState;\n};\n"],"names":[],"mappings":";;AAsCA,MAAM,kBAAkB,GAAG,mBAAmB;AAEjC,MAAA,OAAO,GAAG,CAAC,GAAgC,KAAI;AAC1D,IAAA,cAAc,CAAC,OAAO,CAAC,CAAG,EAAA,kBAAkB,GAAG,GAAG,CAAA,CAAE,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnF;AAEA,MAAM,iBAAiB,GAAG,CAAC,GAAgC,KAAI;IAC7D,OAAO,cAAc,CAAC,OAAO,CAAC,CAAA,EAAG,kBAAkB,CAAG,EAAA,GAAG,CAAE,CAAA,CAAC;AAC9D,CAAC;AAED,MAAM,YAAY,GAAoB;AACpC,IAAA,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,IAAI,EAAE;AACvC,IAAA,eAAe,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,IAAI,EAAE;AAC3D,IAAA,kBAAkB,EAAE,EAAE;AACtB,IAAA,kBAAkB,EAAE,EAAE;AAEtB,IAAA,qBAAqB,EAAE,KAAK;AAC5B,IAAA,qBAAqB,EAAE,EAAE;AAEzB,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,eAAe,EAAE,KAAK;CACvB;MAEY,eAAe,GAAG,WAAW,CAAkB,YAAY;MAE3D,sBAAsB,GAAG,CAAC,YAAoC,EAAE,oBAA0C,KAAI;AACzH,IAAA,MAAM,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,kBAAkB,CAAC,YAAY,CAAC,IAAI,IAAI,GAAG,EAAE;AACnF,IAAA,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC;AAChC,IAAA,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC;AACjC,IAAA,eAAe,CAAC,KAAK,CAAC,kBAAkB,GAAG;AACzC,QAAA,GAAG,eAAe,CAAC,KAAK,CAAC,kBAAkB;QAC3C,CAAC,YAAY,GAAG,OAAO;KACxB;AACH;;;;"}
@@ -0,0 +1,14 @@
1
+ import { c as createStore } from './index-DVkRTYPC.js';
2
+
3
+ function createPaginationStore() {
4
+ const initialState = {
5
+ paginationMeta: null,
6
+ };
7
+ const store = createStore(initialState);
8
+ return { state: store.state, onChange: store.onChange, reset: store.reset };
9
+ }
10
+
11
+ export { createPaginationStore as c };
12
+ //# sourceMappingURL=pagination-store-B9lk_lqK.js.map
13
+
14
+ //# sourceMappingURL=pagination-store-B9lk_lqK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination-store-B9lk_lqK.js","sources":["src/ticketable/store/pagination-store.ts"],"sourcesContent":["import { createStore } from \"@stencil/store\";\nimport type { PaginationMeta } from \"../../api\";\n\nexport interface PaginationState {\n paginationMeta: PaginationMeta | null;\n}\n\nexport type PaginationStore = {\n state: PaginationState;\n onChange: <K extends keyof PaginationState>(prop: K, cb: (newValue: PaginationState[K]) => void) => () => void;\n reset: () => void;\n};\n\nexport function createPaginationStore(): PaginationStore {\n const initialState: PaginationState = {\n paginationMeta: null,\n };\n\n const store = createStore<PaginationState>(initialState);\n\n return { state: store.state, onChange: store.onChange, reset: store.reset };\n}\n"],"names":[],"mappings":";;SAagB,qBAAqB,GAAA;AACnC,IAAA,MAAM,YAAY,GAAoB;AACpC,QAAA,cAAc,EAAE,IAAI;KACrB;AAED,IAAA,MAAM,KAAK,GAAG,WAAW,CAAkB,YAAY,CAAC;AAExD,IAAA,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;AAC7E;;;;"}
@@ -0,0 +1,36 @@
1
+ import { t } from './i18n-OKf8uE5j.js';
2
+ import { s as state } from './profile-store-CsSDT9Tb.js';
3
+
4
+ function validateRequiredFieldsUnchanged(sWC) {
5
+ for (const key of Object.keys(sWC)) {
6
+ if (key === "custom_attributes")
7
+ continue;
8
+ const field = sWC[key];
9
+ if (field.required === true && (field.value === "" || field.value === null)) {
10
+ state.errors = { [key]: t("errors.required_field", { field: key }) };
11
+ return false;
12
+ }
13
+ }
14
+ for (const key of Object.keys(sWC.custom_attributes ?? {})) {
15
+ const field = sWC.custom_attributes?.[key];
16
+ const fieldDisplayName = `custom_attributes.${key}`;
17
+ if (field?.required === true && (field.value === "" || field.value === null)) {
18
+ state.errors = { [fieldDisplayName]: t("errors.required_field", { field: fieldDisplayName }) };
19
+ return false;
20
+ }
21
+ }
22
+ return true;
23
+ }
24
+ function buildPayload(stateData) {
25
+ return {
26
+ ...Object.fromEntries(Object.entries(stateData)
27
+ .filter(([k]) => k !== "custom_attributes")
28
+ .map(([k, v]) => [k, v.value])),
29
+ custom_attributes: Object.fromEntries(Object.entries(stateData.custom_attributes ?? {}).map(([k, v]) => [k, v.value])),
30
+ };
31
+ }
32
+
33
+ export { buildPayload as b, validateRequiredFieldsUnchanged as v };
34
+ //# sourceMappingURL=profile-helpers-Beduxnin.js.map
35
+
36
+ //# sourceMappingURL=profile-helpers-Beduxnin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-helpers-Beduxnin.js","sources":["src/profile/profile-helpers.ts"],"sourcesContent":["import { t } from \"../i18n\";\nimport { type ProfileRaw, state as profileState } from \"./store/profile-store\";\n\nexport function validateRequiredFieldsUnchanged(sWC: ProfileRaw) {\n for (const key of Object.keys(sWC)) {\n if (key === \"custom_attributes\") continue;\n const field = sWC[key];\n if (field.required === true && (field.value === \"\" || field.value === null)) {\n profileState.errors = { [key]: t(\"errors.required_field\", { field: key }) };\n return false;\n }\n }\n\n for (const key of Object.keys(sWC.custom_attributes ?? {})) {\n const field = sWC.custom_attributes?.[key];\n const fieldDisplayName = `custom_attributes.${key}`;\n if (field?.required === true && (field.value === \"\" || field.value === null)) {\n profileState.errors = { [fieldDisplayName]: t(\"errors.required_field\", { field: fieldDisplayName }) };\n return false;\n }\n }\n\n return true;\n}\n\nexport function buildPayload(stateData: ProfileRaw) {\n return {\n ...Object.fromEntries(\n Object.entries(stateData)\n .filter(([k]) => k !== \"custom_attributes\")\n .map(([k, v]: [string, unknown]) => [k, (v as { value: unknown }).value]),\n ),\n custom_attributes: Object.fromEntries(\n Object.entries(stateData.custom_attributes ?? {}).map(([k, v]: [string, unknown]) => [k, (v as { value: unknown }).value]),\n ),\n };\n}\n"],"names":["profileState"],"mappings":";;;AAGM,SAAU,+BAA+B,CAAC,GAAe,EAAA;IAC7D,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAClC,IAAI,GAAG,KAAK,mBAAmB;YAAE;AACjC,QAAA,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC;QACtB,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,KAAK,KAAK,CAAC,KAAK,KAAK,EAAE,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,EAAE;AAC3E,YAAAA,KAAY,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE;AAC3E,YAAA,OAAO,KAAK;;;AAIhB,IAAA,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,IAAI,EAAE,CAAC,EAAE;QAC1D,MAAM,KAAK,GAAG,GAAG,CAAC,iBAAiB,GAAG,GAAG,CAAC;AAC1C,QAAA,MAAM,gBAAgB,GAAG,CAAqB,kBAAA,EAAA,GAAG,EAAE;QACnD,IAAI,KAAK,EAAE,QAAQ,KAAK,IAAI,KAAK,KAAK,CAAC,KAAK,KAAK,EAAE,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,EAAE;AAC5E,YAAAA,KAAY,CAAC,MAAM,GAAG,EAAE,CAAC,gBAAgB,GAAG,CAAC,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,EAAE;AACrG,YAAA,OAAO,KAAK;;;AAIhB,IAAA,OAAO,IAAI;AACb;AAEM,SAAU,YAAY,CAAC,SAAqB,EAAA;IAChD,OAAO;QACL,GAAG,MAAM,CAAC,WAAW,CACnB,MAAM,CAAC,OAAO,CAAC,SAAS;aACrB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,mBAAmB;AACzC,aAAA,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAoB,KAAK,CAAC,CAAC,EAAG,CAAwB,CAAC,KAAK,CAAC,CAAC,CAC5E;AACD,QAAA,iBAAiB,EAAE,MAAM,CAAC,WAAW,CACnC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAoB,KAAK,CAAC,CAAC,EAAG,CAAwB,CAAC,KAAK,CAAC,CAAC,CAC3H;KACF;AACH;;;;"}
@@ -0,0 +1,18 @@
1
+ import { c as createStore } from './index-DVkRTYPC.js';
2
+
3
+ const initialState = {
4
+ loading: true,
5
+ data: {},
6
+ configuration: {},
7
+ errors: {},
8
+ flashErrors: {},
9
+ phoneValid: true,
10
+ };
11
+ const profileStore = createStore(initialState);
12
+ const profileStoreOnChange = profileStore.onChange;
13
+ const { state } = profileStore;
14
+
15
+ export { profileStore as a, profileStoreOnChange as p, state as s };
16
+ //# sourceMappingURL=profile-store-CsSDT9Tb.js.map
17
+
18
+ //# sourceMappingURL=profile-store-CsSDT9Tb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-store-CsSDT9Tb.js","sources":["src/profile/store/profile-store.ts"],"sourcesContent":["import { createStore } from \"@stencil/store\";\n\nexport type Option = { value: string; label: string; icon?: string | null };\nexport type RadioOption = { value: string; label: string; checked: boolean };\n\nexport interface ProfileNode {\n value?: string | undefined | string[];\n type?: string;\n label?: string;\n required?: boolean;\n readonly?: boolean;\n locked?: boolean;\n locked_text?: string;\n options?: Option[];\n radio_options?: RadioOption[];\n attr_name?: string;\n}\n\nexport type ProfileRaw = {\n custom_attributes?: Record<string, ProfileNode>;\n} & Record<string, ProfileNode>;\n\nexport interface ProfileState {\n loading: boolean;\n data: ProfileRaw;\n configuration: ProfileRaw;\n errors: Record<string, string | null>;\n configUpdateSource?: \"fetch\" | \"submit\";\n flashErrors: Record<string, string | null>;\n phoneValid: boolean;\n}\n\nconst initialState: ProfileState = {\n loading: true,\n data: {},\n configuration: {},\n errors: {},\n flashErrors: {},\n phoneValid: true,\n};\n\nconst profileStore = createStore<ProfileState>(initialState);\n\nconst profileStoreOnChange: <K extends keyof ProfileState>(prop: K, cb: (value: ProfileState[K]) => void) => () => void =\n profileStore.onChange;\n\nexport { profileStore };\nexport const { state } = profileStore;\nexport { profileStoreOnChange as onChange };\n"],"names":[],"mappings":";;AAgCA,MAAM,YAAY,GAAiB;AACjC,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,aAAa,EAAE,EAAE;AACjB,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,WAAW,EAAE,EAAE;AACf,IAAA,UAAU,EAAE,IAAI;CACjB;AAED,MAAM,YAAY,GAAG,WAAW,CAAe,YAAY;AAE3D,MAAM,oBAAoB,GACxB,YAAY,CAAC;AAGF,MAAA,EAAE,KAAK,EAAE,GAAG;;;;"}
@@ -0,0 +1,49 @@
1
+ import { p as promiseResolve, B as BUILD, c as consoleDevInfo, w as win, N as NAMESPACE, H, b as bootstrapLazy } from './index-COQ27Nb6.js';
2
+ export { s as setNonce } from './index-COQ27Nb6.js';
3
+ import { g as globalScripts } from './app-globals-BHWOrMsm.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.38.3 | MIT Licensed | https://stenciljs.com
7
+ */
8
+
9
+ var patchBrowser = () => {
10
+ if (BUILD.isDev && !BUILD.isTesting) {
11
+ consoleDevInfo("Running in development mode.");
12
+ }
13
+ if (BUILD.cloneNodeFix) {
14
+ patchCloneNodeFix(H.prototype);
15
+ }
16
+ const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll("script")).find(
17
+ (s) => new RegExp(`/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute("data-stencil-namespace") === NAMESPACE
18
+ ) : null;
19
+ const importMeta = import.meta.url;
20
+ const opts = BUILD.scriptDataOpts ? (scriptElm || {})["data-opts"] || {} : {};
21
+ if (importMeta !== "") {
22
+ opts.resourcesUrl = new URL(".", importMeta).href;
23
+ }
24
+ return promiseResolve(opts);
25
+ };
26
+ var patchCloneNodeFix = (HTMLElementPrototype) => {
27
+ const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
28
+ HTMLElementPrototype.cloneNode = function(deep) {
29
+ if (this.nodeName === "TEMPLATE") {
30
+ return nativeCloneNodeFn.call(this, deep);
31
+ }
32
+ const clonedNode = nativeCloneNodeFn.call(this, false);
33
+ const srcChildNodes = this.childNodes;
34
+ if (deep) {
35
+ for (let i = 0; i < srcChildNodes.length; i++) {
36
+ if (srcChildNodes[i].nodeType !== 2) {
37
+ clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
38
+ }
39
+ }
40
+ }
41
+ return clonedNode;
42
+ };
43
+ };
44
+
45
+ patchBrowser().then(async (options) => {
46
+ await globalScripts();
47
+ return bootstrapLazy([["u-full-profile",[[768,"u-full-profile",{"fields":[1],"countryCodeDisplayOption":[1,"country-code-display-option"]}]]],["u-missing-field",[[256,"u-missing-field"]]],["u-missing-fields-submit-button",[[257,"u-missing-fields-submit-button"]]],["u-newsletter-resend-doi-button",[[768,"u-newsletter-resend-doi-button",{"internalName":[1,"internal-name"],"componentClassName":[1,"class-name"],"isResending":[32]}]]],["u-newsletter-toggle-subscription-button",[[768,"u-newsletter-toggle-subscription-button",{"internalName":[1,"internal-name"],"componentClassName":[1,"class-name"],"subscribeClassName":[1,"subscribe-class-name"],"unsubscribeClassName":[1,"unsubscribe-class-name"],"loading":[32]}]]],["u-logout-button_2",[[772,"u-logout-button",{"componentClassName":[1,"class-name"],"reloadOnSuccess":[4,"reload-on-success"]}],[769,"u-signed-in",{"componentClassName":[1,"class-name"],"not":[4]}]]],["u-conditional-render",[[769,"u-conditional-render",{"when":[1],"is":[1],"not":[4],"conditionFunction":[16]}]]],["u-config",[[772,"u-config",{"mode":[1],"baseUrl":[1,"base-url"],"apiKey":[1,"api-key"],"customTranslations":[1,"custom-translations"],"fallbackLocale":[1,"fallback-locale"],"locale":[1],"checkSignedIn":[4,"check-signed-in"]},null,{"mode":["onPropChange"],"locale":["onPropChange"]}]]],["u-email-field",[[772,"u-email-field",{"componentClassName":[1,"class-name"],"ariaLabel":[1,"aria-label"],"disabled":[4],"emailValue":[32]}]]],["u-error-message",[[769,"u-error-message",{"componentClassName":[1,"class-name"],"for":[1],"errorMessages":[16]}]]],["u-flash-message",[[768,"u-flash-message",{"componentClassName":[1,"class-name"],"removeAfterSeconds":[2,"remove-after-seconds"]}]]],["u-magic-code-field",[[768,"u-magic-code-field",{"componentClassName":[1,"class-name"],"codeDigits":[32]}]]],["u-newsletter-checkbox",[[768,"u-newsletter-checkbox",{"internalName":[1,"internal-name"],"checked":[4],"componentClassName":[1,"class-name"],"toggle":[64],"setChecked":[64]}]]],["u-newsletter-logout-button",[[772,"u-newsletter-logout-button",{"componentClassName":[1,"class-name"]}]]],["u-newsletter-preference-checkbox",[[768,"u-newsletter-preference-checkbox",{"internalName":[1,"internal-name"],"preferenceIdentifier":[1,"preference-identifier"],"checked":[4],"componentClassName":[1,"class-name"],"loading":[32],"existingSubscriptions":[32],"checkedPreferences":[32],"toggle":[64],"setChecked":[64]}]]],["u-newsletter-root",[[772,"u-newsletter-root",{"componentClassName":[1,"class-name"],"submit":[64]}]]],["u-pagination-button",[[772,"u-pagination-button",{"direction":[1],"customClass":[1,"custom-class"],"paginationMeta":[32]}]]],["u-pagination-page",[[768,"u-pagination-page",{"customClass":[1,"custom-class"],"paginationMeta":[32]}]]],["u-passkey",[[768,"u-passkey",{"disabled":[4],"componentClassName":[1,"class-name"],"ariaDescribedBy":[1,"aria-described-by"],"isSupported":[32]}]]],["u-password-field",[[768,"u-password-field",{"for":[1],"componentClassName":[1,"class-name"],"ariaLabel":[1,"aria-label"]}]]],["u-registration-button",[[772,"u-registration-button",{"for":[1],"componentClassName":[1,"class-name"],"redirectUri":[1,"redirect-uri"]}]]],["u-reset-password-button",[[768,"u-reset-password-button",{"componentClassName":[1,"class-name"]}]]],["u-send-magic-code-button",[[768,"u-send-magic-code-button",{"disabled":[4],"componentClassName":[1,"class-name"],"countdown":[32]}]]],["u-signin-root",[[769,"u-signin-root",{"componentClassName":[1,"class-name"]}]]],["u-signin-step",[[769,"u-signin-step",{"name":[1],"alwaysRender":[4,"always-render"],"isActive":[64],"submit":[64]}]]],["u-signin-strategy",[[772,"u-signin-strategy",{"type":[1],"componentClassName":[1,"class-name"]}]]],["u-social-login-button",[[769,"u-social-login-button",{"provider":[1],"redirectUri":[1,"redirect-uri"],"iconOnly":[4,"icon-only"],"theme":[1]}]]],["u-ticketable-list",[[772,"u-ticketable-list",{"paginationMeta":[16],"target":[1],"containerClass":[1,"container-class"],"filter":[1025],"limit":[1026],"page":[1026],"skeletonCount":[2,"skeleton-count"],"skeletonAllText":[4,"skeleton-all-text"],"ticketableType":[1,"ticketable-type"],"store":[16],"items":[32],"loading":[32],"error":[32]},null,{"page":["fetchData"],"limit":["fetchData"],"filter":["fetchData"]}]]],["u-profile_2",[[772,"u-submit-button",{"for":[1],"text":[1],"disabled":[4],"componentClassName":[1,"class-name"]}],[772,"u-profile",{"profileId":[1,"profile-id"],"initialData":[1,"initial-data"],"fetchingProfileData":[32],"submitProfile":[64]}]]],["u-field_2",[[769,"u-field",{"field":[1],"required":[4],"readonlyPlaceholder":[1,"readonly-placeholder"],"countryCodeDisplayOption":[1,"country-code-display-option"],"invalidPhoneMessage":[1,"invalid-phone-message"],"componentClassName":[1,"class-name"],"emptyOption":[4,"empty-option"],"placeholder":[1],"renderDefaultLabel":[4,"render-default-label"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"validationFunc":[16],"selected":[32]}],[768,"u-raw-field",{"required":[4],"readonlyPlaceholder":[1,"readonly-placeholder"],"countryCodeDisplayOption":[1,"country-code-display-option"],"invalidPhoneMessage":[1,"invalid-phone-message"],"componentClassName":[1,"class-name"],"field":[1],"value":[1],"checked":[4],"disabled":[4],"tooltip":[1],"type":[1],"placeholder":[1],"options":[1],"emptyOption":[4,"empty-option"],"attrName":[1,"attr-name"],"radioOptions":[16],"multiSelectOptions":[16],"specificPartKey":[1,"specific-part-key"],"ariaDescribedBy":[1,"aria-described-by"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"validationFunc":[16],"selected":[32]}]]],["u-spinner",[[257,"u-spinner"]]]], options);
48
+ });
49
+ //# sourceMappingURL=sdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.js","sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.38.3 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AACzB,EAAE,IAAI,KAAK,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;AACvC,IAAI,cAAc,CAAC,8BAA8B,CAAC;AAClD;AACA,EAAE,IAAI,KAAK,CAAC,YAAY,EAAE;AAC1B,IAAI,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;AAClC;AACA,EAAE,MAAM,SAAS,GAAG,KAAK,CAAC,cAAc,GAAG,GAAG,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI;AACnH,IAA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