@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,65 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { t } from './i18n.js';
3
+ import { A as Auth } from './auth.js';
4
+ import { s as state } from './auth-store.js';
5
+
6
+ const Passkey = /*@__PURE__*/ proxyCustomElement(class Passkey extends HTMLElement {
7
+ constructor(registerHost) {
8
+ super();
9
+ if (registerHost !== false) {
10
+ this.__registerHost();
11
+ }
12
+ }
13
+ disabled = false;
14
+ componentClassName = "";
15
+ ariaDescribedBy = "";
16
+ isSupported = false;
17
+ componentWillLoad() {
18
+ // Check if WebAuthn is supported
19
+ this.isSupported = typeof window !== "undefined" && !!window.PublicKeyCredential;
20
+ }
21
+ handleClick = async () => {
22
+ if (this.disabled || state.loading || !this.isSupported)
23
+ return;
24
+ const authInstance = await Auth.getInstance();
25
+ await authInstance.helpers.authenticateWithPasskey();
26
+ };
27
+ render() {
28
+ if (!state.availableLoginOptions?.passkey) {
29
+ return null;
30
+ }
31
+ if (!this.isSupported) {
32
+ return null;
33
+ }
34
+ const isDisabled = this.disabled || state.loading;
35
+ const text = t("auth.passkey.button_text", { defaultValue: "Sign in with Passkey" });
36
+ const loadingText = t("auth.passkey.loading_text", { defaultValue: "Authenticating..." });
37
+ return (h(Host, null, h("button", { type: "button", disabled: isDisabled, onClick: this.handleClick, class: this.componentClassName, "aria-live": "polite", "aria-describedby": this.ariaDescribedBy || undefined }, state.loading ? loadingText : text)));
38
+ }
39
+ }, [768, "u-passkey", {
40
+ "disabled": [4],
41
+ "componentClassName": [1, "class-name"],
42
+ "ariaDescribedBy": [1, "aria-described-by"],
43
+ "isSupported": [32]
44
+ }]);
45
+ function defineCustomElement$1() {
46
+ if (typeof customElements === "undefined") {
47
+ return;
48
+ }
49
+ const components = ["u-passkey"];
50
+ components.forEach(tagName => { switch (tagName) {
51
+ case "u-passkey":
52
+ if (!customElements.get(tagName)) {
53
+ customElements.define(tagName, Passkey);
54
+ }
55
+ break;
56
+ } });
57
+ }
58
+
59
+ const UPasskey = Passkey;
60
+ const defineCustomElement = defineCustomElement$1;
61
+
62
+ export { UPasskey, defineCustomElement };
63
+ //# sourceMappingURL=u-passkey.js.map
64
+
65
+ //# sourceMappingURL=u-passkey.js.map
@@ -0,0 +1 @@
1
+ {"file":"u-passkey.js","mappings":";;;;;MASa,OAAO,iBAAAA,kBAAA,CAAA,MAAA,OAAA,SAAA,WAAA,CAAA;;;;;;;IACV,QAAQ,GAAG,KAAK;IACW,kBAAkB,GAAG,EAAE;IAClD,eAAe,GAAI,EAAE;IAEpB,WAAW,GAAG,KAAK;IAE5B,iBAAiB,GAAA;;AAEf,QAAA,IAAI,CAAC,WAAW,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,CAAC,MAAM,CAAC,mBAAmB;;IAG1E,WAAW,GAAG,YAAW;QAC/B,IAAI,IAAI,CAAC,QAAQ,IAAIC,KAAS,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE;AAE7D,QAAA,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE;AAE7C,QAAA,MAAM,YAAY,CAAC,OAAO,CAAC,uBAAuB,EAAE;AACtD,KAAC;IAED,MAAM,GAAA;AACJ,QAAA,IAAI,CAACA,KAAS,CAAC,qBAAqB,EAAE,OAAO,EAAE;AAC7C,YAAA,OAAO,IAAI;;AAGb,QAAA,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;AACrB,YAAA,OAAO,IAAI;;QAGb,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,IAAIA,KAAS,CAAC,OAAO;AACrD,QAAA,MAAM,IAAI,GAAG,CAAC,CAAC,0BAA0B,EAAE,EAAE,YAAY,EAAE,sBAAsB,EAAE,CAAC;AACpF,QAAA,MAAM,WAAW,GAAG,CAAC,CAAC,2BAA2B,EAAE,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC;QAEzF,QACE,EAAC,IAAI,EAAA,IAAA,EACH,CAAA,CAAA,QAAA,EAAA,EACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,KAAK,EAAE,IAAI,CAAC,kBAAkB,EACpB,WAAA,EAAA,QAAQ,EACA,kBAAA,EAAA,IAAI,CAAC,eAAe,IAAI,SAAS,EAElD,EAAAA,KAAS,CAAC,OAAO,GAAG,WAAW,GAAG,IAAI,CAChC,CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","authState"],"sources":["src/auth/components/passkey/passkey.tsx"],"sourcesContent":["import { Component, Host, h, Prop, State } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport { Auth } from \"../../auth\";\nimport { authState } from \"../../store/auth-store\";\n\n@Component({\n tag: \"u-passkey\",\n shadow: false,\n})\nexport class Passkey {\n @Prop() disabled = false;\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n @Prop() ariaDescribedBy? = \"\";\n\n @State() isSupported = false;\n\n componentWillLoad() {\n // Check if WebAuthn is supported\n this.isSupported = typeof window !== \"undefined\" && !!window.PublicKeyCredential;\n }\n\n private handleClick = async () => {\n if (this.disabled || authState.loading || !this.isSupported) return;\n\n const authInstance = await Auth.getInstance();\n\n await authInstance.helpers.authenticateWithPasskey();\n };\n\n render() {\n if (!authState.availableLoginOptions?.passkey) {\n return null;\n }\n\n if (!this.isSupported) {\n return null;\n }\n\n const isDisabled = this.disabled || authState.loading;\n const text = t(\"auth.passkey.button_text\", { defaultValue: \"Sign in with Passkey\" });\n const loadingText = t(\"auth.passkey.loading_text\", { defaultValue: \"Authenticating...\" });\n\n return (\n <Host>\n <button\n type=\"button\"\n disabled={isDisabled}\n onClick={this.handleClick}\n class={this.componentClassName}\n aria-live=\"polite\"\n aria-describedby={this.ariaDescribedBy || undefined}\n >\n {authState.loading ? loadingText : text}\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface UPasswordField extends Components.UPasswordField, HTMLElement {}
4
+ export const UPasswordField: {
5
+ prototype: UPasswordField;
6
+ new (): UPasswordField;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,127 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { t } from './i18n.js';
3
+ import { s as state, a as authStore } from './auth-store.js';
4
+ import { g as getParentSigninStep } from './helpers.js';
5
+
6
+ const PasswordField = /*@__PURE__*/ proxyCustomElement(class PasswordField extends HTMLElement {
7
+ constructor(registerHost) {
8
+ super();
9
+ if (registerHost !== false) {
10
+ this.__registerHost();
11
+ }
12
+ }
13
+ get el() { return this; }
14
+ for = "login";
15
+ componentClassName = "";
16
+ ariaLabel = "";
17
+ getAriaLabel() {
18
+ if (this.ariaLabel)
19
+ return this.ariaLabel;
20
+ switch (this.for) {
21
+ case "login":
22
+ return "Password";
23
+ case "new-password":
24
+ return "New Password";
25
+ case "password-confirmation":
26
+ return "Password Confirmation";
27
+ }
28
+ }
29
+ getValue() {
30
+ switch (this.for) {
31
+ case "login":
32
+ return state.password;
33
+ case "new-password":
34
+ return state.resetPassword.newPassword;
35
+ case "password-confirmation":
36
+ return state.resetPassword.passwordConfirmation;
37
+ }
38
+ }
39
+ getAutocomplete() {
40
+ switch (this.for) {
41
+ case "login":
42
+ return "current-password";
43
+ case "new-password":
44
+ case "password-confirmation":
45
+ return "new-password";
46
+ }
47
+ }
48
+ getInputName() {
49
+ switch (this.for) {
50
+ case "login":
51
+ return "password";
52
+ case "new-password":
53
+ return "new-password";
54
+ case "password-confirmation":
55
+ return "confirm-password";
56
+ }
57
+ }
58
+ handleInput = (event) => {
59
+ const target = event.target;
60
+ switch (this.for) {
61
+ case "login":
62
+ authStore.setPassword(target.value);
63
+ break;
64
+ case "new-password":
65
+ authStore.setNewPassword(target.value);
66
+ authStore.clearFieldError("resetPassword");
67
+ authStore.clearFieldError("password");
68
+ break;
69
+ case "password-confirmation":
70
+ authStore.setConfirmPassword(target.value);
71
+ authStore.clearFieldError("resetPassword");
72
+ authStore.clearFieldError("password");
73
+ break;
74
+ }
75
+ };
76
+ handleSubmit = async (event) => {
77
+ event.preventDefault();
78
+ (await getParentSigninStep(this.el))?.submit();
79
+ };
80
+ shouldRender() {
81
+ switch (this.for) {
82
+ case "login":
83
+ if (state.step === "single-login")
84
+ return true;
85
+ if (state.step === "verification" && state.availableLoginOptions?.password) {
86
+ return true;
87
+ }
88
+ return false;
89
+ case "new-password":
90
+ case "password-confirmation":
91
+ return state.step === "reset-password";
92
+ }
93
+ }
94
+ render() {
95
+ if (!this.shouldRender()) {
96
+ return null;
97
+ }
98
+ const key = this.for === "password-confirmation" ? "auth.password.confirmation.placeholder" : "auth.password.placeholder";
99
+ const placeholder = t(key, { defaultValue: "Enter your password" });
100
+ return (h("form", { onSubmit: this.handleSubmit }, h("input", { name: this.getInputName(), type: "password", value: this.getValue(), autocomplete: this.getAutocomplete(), placeholder: placeholder, disabled: state.loading, class: this.componentClassName, onInput: this.handleInput, "aria-label": this.getAriaLabel() })));
101
+ }
102
+ }, [768, "u-password-field", {
103
+ "for": [1],
104
+ "componentClassName": [1, "class-name"],
105
+ "ariaLabel": [1, "aria-label"]
106
+ }]);
107
+ function defineCustomElement$1() {
108
+ if (typeof customElements === "undefined") {
109
+ return;
110
+ }
111
+ const components = ["u-password-field"];
112
+ components.forEach(tagName => { switch (tagName) {
113
+ case "u-password-field":
114
+ if (!customElements.get(tagName)) {
115
+ customElements.define(tagName, PasswordField);
116
+ }
117
+ break;
118
+ } });
119
+ }
120
+
121
+ const UPasswordField = PasswordField;
122
+ const defineCustomElement = defineCustomElement$1;
123
+
124
+ export { UPasswordField, defineCustomElement };
125
+ //# sourceMappingURL=u-password-field.js.map
126
+
127
+ //# sourceMappingURL=u-password-field.js.map
@@ -0,0 +1 @@
1
+ {"file":"u-password-field.js","mappings":"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","names":["__stencil_proxyCustomElement","authState"],"sources":["src/auth/components/password-field/password-field.tsx"],"sourcesContent":["import { Component, Element, h, Prop } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport { authState, authStore } from \"../../store/auth-store\";\nimport { getParentSigninStep } from \"../helpers\";\n\nexport type PasswordFieldFor = \"login\" | \"new-password\" | \"password-confirmation\";\n\n@Component({\n tag: \"u-password-field\",\n shadow: false,\n})\nexport class PasswordField {\n @Element() el!: HTMLElement;\n\n @Prop() for: PasswordFieldFor = \"login\";\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n @Prop() ariaLabel = \"\";\n\n private getAriaLabel(): string {\n if (this.ariaLabel) return this.ariaLabel;\n\n switch (this.for) {\n case \"login\":\n return \"Password\";\n case \"new-password\":\n return \"New Password\";\n case \"password-confirmation\":\n return \"Password Confirmation\";\n }\n }\n\n private getValue(): string {\n switch (this.for) {\n case \"login\":\n return authState.password;\n case \"new-password\":\n return authState.resetPassword.newPassword;\n case \"password-confirmation\":\n return authState.resetPassword.passwordConfirmation;\n }\n }\n\n private getAutocomplete(): string {\n switch (this.for) {\n case \"login\":\n return \"current-password\";\n case \"new-password\":\n case \"password-confirmation\":\n return \"new-password\";\n }\n }\n\n private getInputName(): string {\n switch (this.for) {\n case \"login\":\n return \"password\";\n case \"new-password\":\n return \"new-password\";\n case \"password-confirmation\":\n return \"confirm-password\";\n }\n }\n\n private handleInput = (event: Event) => {\n const target = event.target as HTMLInputElement;\n\n switch (this.for) {\n case \"login\":\n authStore.setPassword(target.value);\n break;\n case \"new-password\":\n authStore.setNewPassword(target.value);\n authStore.clearFieldError(\"resetPassword\");\n authStore.clearFieldError(\"password\");\n break;\n case \"password-confirmation\":\n authStore.setConfirmPassword(target.value);\n authStore.clearFieldError(\"resetPassword\");\n authStore.clearFieldError(\"password\");\n break;\n }\n };\n\n private handleSubmit = async (event: Event) => {\n event.preventDefault();\n\n (await getParentSigninStep(this.el))?.submit();\n };\n\n private shouldRender(): boolean {\n switch (this.for) {\n case \"login\":\n if (authState.step === \"single-login\") return true;\n if (authState.step === \"verification\" && authState.availableLoginOptions?.password) {\n return true;\n }\n return false;\n case \"new-password\":\n case \"password-confirmation\":\n return authState.step === \"reset-password\";\n }\n }\n\n render() {\n if (!this.shouldRender()) {\n return null;\n }\n\n const key = this.for === \"password-confirmation\" ? \"auth.password.confirmation.placeholder\" : \"auth.password.placeholder\";\n const placeholder = t(key, { defaultValue: \"Enter your password\" });\n\n return (\n <form onSubmit={this.handleSubmit}>\n <input\n name={this.getInputName()}\n type=\"password\"\n value={this.getValue()}\n autocomplete={this.getAutocomplete()}\n placeholder={placeholder}\n disabled={authState.loading}\n class={this.componentClassName}\n onInput={this.handleInput}\n aria-label={this.getAriaLabel()}\n />\n </form>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface UProfile extends Components.UProfile, HTMLElement {}
4
+ export const UProfile: {
5
+ prototype: UProfile;
6
+ new (): UProfile;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,9 @@
1
+ import { P as Profile, d as defineCustomElement$1 } from './profile.js';
2
+
3
+ const UProfile = Profile;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { UProfile, defineCustomElement };
7
+ //# sourceMappingURL=u-profile.js.map
8
+
9
+ //# sourceMappingURL=u-profile.js.map
@@ -0,0 +1 @@
1
+ {"file":"u-profile.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface URawField extends Components.URawField, HTMLElement {}
4
+ export const URawField: {
5
+ prototype: URawField;
6
+ new (): URawField;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,9 @@
1
+ import { R as RawField, d as defineCustomElement$1 } from './raw-field.js';
2
+
3
+ const URawField = RawField;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { URawField, defineCustomElement };
7
+ //# sourceMappingURL=u-raw-field.js.map
8
+
9
+ //# sourceMappingURL=u-raw-field.js.map
@@ -0,0 +1 @@
1
+ {"file":"u-raw-field.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface URegistrationButton extends Components.URegistrationButton, HTMLElement {}
4
+ export const URegistrationButton: {
5
+ prototype: URegistrationButton;
6
+ new (): URegistrationButton;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,70 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { t } from './i18n.js';
3
+ import { u as unidyState } from './unidy-store.js';
4
+ import { s as state, a as authStore } from './auth-store.js';
5
+
6
+ const RegistrationButton = /*@__PURE__*/ proxyCustomElement(class RegistrationButton extends HTMLElement {
7
+ constructor(registerHost) {
8
+ super();
9
+ if (registerHost !== false) {
10
+ this.__registerHost();
11
+ }
12
+ }
13
+ get el() { return this; }
14
+ for;
15
+ componentClassName = "";
16
+ redirectUri = window.location.href;
17
+ getButtonText() {
18
+ return t("buttons.registration", { defaultValue: "Register New Account" });
19
+ }
20
+ shouldRender() {
21
+ if (state.errors.email === "account_not_found") {
22
+ authStore.setStep("registration");
23
+ return this.for === "email";
24
+ }
25
+ return false;
26
+ }
27
+ getAuthUrl() {
28
+ const baseUrl = unidyState.baseUrl;
29
+ const redirectUri = this.redirectUri ? encodeURIComponent(this.redirectUri) : baseUrl;
30
+ const encodedEmail = encodeURIComponent(state.email);
31
+ return `${baseUrl}/logins?email=${encodedEmail}&sdk_redirect_uri=${redirectUri}`;
32
+ }
33
+ handleClick = async (event) => {
34
+ event.preventDefault();
35
+ if (state.errors.email === "account_not_found" && state.step === "registration") {
36
+ window.location.href = this.getAuthUrl();
37
+ }
38
+ };
39
+ render() {
40
+ if (!this.shouldRender()) {
41
+ return null;
42
+ }
43
+ return (h(Host, null, h("slot", { name: "registration-content" }), h("button", { type: "submit", class: this.componentClassName, onClick: this.handleClick, "aria-live": "polite" }, this.getButtonText())));
44
+ }
45
+ }, [772, "u-registration-button", {
46
+ "for": [1],
47
+ "componentClassName": [1, "class-name"],
48
+ "redirectUri": [1, "redirect-uri"]
49
+ }]);
50
+ function defineCustomElement$1() {
51
+ if (typeof customElements === "undefined") {
52
+ return;
53
+ }
54
+ const components = ["u-registration-button"];
55
+ components.forEach(tagName => { switch (tagName) {
56
+ case "u-registration-button":
57
+ if (!customElements.get(tagName)) {
58
+ customElements.define(tagName, RegistrationButton);
59
+ }
60
+ break;
61
+ } });
62
+ }
63
+
64
+ const URegistrationButton = RegistrationButton;
65
+ const defineCustomElement = defineCustomElement$1;
66
+
67
+ export { URegistrationButton, defineCustomElement };
68
+ //# sourceMappingURL=u-registration-button.js.map
69
+
70
+ //# sourceMappingURL=u-registration-button.js.map
@@ -0,0 +1 @@
1
+ {"file":"u-registration-button.js","mappings":";;;;;MASa,kBAAkB,iBAAAA,kBAAA,CAAA,MAAA,kBAAA,SAAA,WAAA,CAAA;;;;;;;;AAGrB,IAAA,GAAG;IACwB,kBAAkB,GAAG,EAAE;AAClD,IAAA,WAAW,GAAW,MAAM,CAAC,QAAQ,CAAC,IAAI;IAE1C,aAAa,GAAA;QACnB,OAAO,CAAC,CAAC,sBAAsB,EAAE,EAAE,YAAY,EAAE,sBAAsB,EAAE,CAAC;;IAGpE,YAAY,GAAA;QAClB,IAAIC,KAAS,CAAC,MAAM,CAAC,KAAK,KAAK,mBAAmB,EAAE;AAClD,YAAA,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC;AACjC,YAAA,OAAO,IAAI,CAAC,GAAG,KAAK,OAAO;;AAG7B,QAAA,OAAO,KAAK;;IAGN,UAAU,GAAA;AAChB,QAAA,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO;AAClC,QAAA,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,OAAO;QACrF,MAAM,YAAY,GAAG,kBAAkB,CAACA,KAAS,CAAC,KAAK,CAAC;AAExD,QAAA,OAAO,GAAG,OAAO,CAAA,cAAA,EAAiB,YAAY,CAAqB,kBAAA,EAAA,WAAW,EAAE;;AAG1E,IAAA,WAAW,GAAG,OAAO,KAAY,KAAI;QAC3C,KAAK,CAAC,cAAc,EAAE;AAEtB,QAAA,IAAIA,KAAS,CAAC,MAAM,CAAC,KAAK,KAAK,mBAAmB,IAAIA,KAAS,CAAC,IAAI,KAAK,cAAc,EAAE;YACvF,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE;;AAE5C,KAAC;IAED,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE;AACxB,YAAA,OAAO,IAAI;;QAGb,QACE,EAAC,IAAI,EAAA,IAAA,EACH,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,sBAAsB,EAAG,CAAA,EACpC,CAAQ,CAAA,QAAA,EAAA,EAAA,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,EAAY,WAAA,EAAA,QAAQ,EAChG,EAAA,IAAI,CAAC,aAAa,EAAE,CACd,CACJ;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","authState"],"sources":["src/auth/components/registration/registration-button.tsx"],"sourcesContent":["import { Component, Element, Host, h, Prop } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport { unidyState } from \"../../../shared/store/unidy-store\";\nimport { authState, authStore } from \"../../store/auth-store\";\n\n@Component({\n tag: \"u-registration-button\",\n shadow: false,\n})\nexport class RegistrationButton {\n @Element() el!: HTMLElement;\n\n @Prop() for!: \"email\";\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n @Prop() redirectUri: string = window.location.href;\n\n private getButtonText() {\n return t(\"buttons.registration\", { defaultValue: \"Register New Account\" });\n }\n\n private shouldRender(): boolean {\n if (authState.errors.email === \"account_not_found\") {\n authStore.setStep(\"registration\");\n return this.for === \"email\";\n }\n\n return false;\n }\n\n private getAuthUrl(): string {\n const baseUrl = unidyState.baseUrl;\n const redirectUri = this.redirectUri ? encodeURIComponent(this.redirectUri) : baseUrl;\n const encodedEmail = encodeURIComponent(authState.email);\n\n return `${baseUrl}/logins?email=${encodedEmail}&sdk_redirect_uri=${redirectUri}`;\n }\n\n private handleClick = async (event: Event) => {\n event.preventDefault();\n\n if (authState.errors.email === \"account_not_found\" && authState.step === \"registration\") {\n window.location.href = this.getAuthUrl();\n }\n };\n\n render() {\n if (!this.shouldRender()) {\n return null;\n }\n\n return (\n <Host>\n <slot name=\"registration-content\" />\n <button type=\"submit\" class={this.componentClassName} onClick={this.handleClick} aria-live=\"polite\">\n {this.getButtonText()}\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface UResetPasswordButton extends Components.UResetPasswordButton, HTMLElement {}
4
+ export const UResetPasswordButton: {
5
+ prototype: UResetPasswordButton;
6
+ new (): UResetPasswordButton;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,72 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { t } from './i18n.js';
3
+ import { F as Flash } from './flash-store.js';
4
+ import { A as Auth } from './auth.js';
5
+ import { s as state } from './auth-store.js';
6
+
7
+ const ResetPasswordButton = /*@__PURE__*/ proxyCustomElement(class ResetPasswordButton extends HTMLElement {
8
+ constructor(registerHost) {
9
+ super();
10
+ if (registerHost !== false) {
11
+ this.__registerHost();
12
+ }
13
+ }
14
+ componentClassName = "";
15
+ handleClick = async () => {
16
+ const authInstance = await Auth.getInstance();
17
+ await authInstance.helpers.sendResetPasswordEmail();
18
+ if (state.resetPassword.step === "sent") {
19
+ const successMessage = t("auth.resetPassword.success_message", {
20
+ defaultValue: "Password reset email sent. Please check your inbox.",
21
+ });
22
+ Flash.success.addMessage(successMessage);
23
+ }
24
+ };
25
+ shouldRender() {
26
+ if (["verification", "reset-password"].includes(state.step))
27
+ return true;
28
+ if (state.step === "single-login" && state.sid !== null)
29
+ return true;
30
+ return false;
31
+ }
32
+ getButtonText() {
33
+ if (["verification", "single-login"].includes(state.step) &&
34
+ state.availableLoginOptions &&
35
+ !state.availableLoginOptions.password) {
36
+ return t("auth.resetPassword.button_text_set", { defaultValue: "Set Password" });
37
+ }
38
+ if (state.step === "reset-password") {
39
+ return t("auth.resetPassword.button_text_resend", { defaultValue: "Resend Password Reset Email" });
40
+ }
41
+ return t("auth.resetPassword.button_text_reset", { defaultValue: "Reset Password" });
42
+ }
43
+ render() {
44
+ if (!this.shouldRender()) {
45
+ return null;
46
+ }
47
+ return (h("button", { type: "button", onClick: this.handleClick, class: this.componentClassName }, this.getButtonText()));
48
+ }
49
+ }, [768, "u-reset-password-button", {
50
+ "componentClassName": [1, "class-name"]
51
+ }]);
52
+ function defineCustomElement$1() {
53
+ if (typeof customElements === "undefined") {
54
+ return;
55
+ }
56
+ const components = ["u-reset-password-button"];
57
+ components.forEach(tagName => { switch (tagName) {
58
+ case "u-reset-password-button":
59
+ if (!customElements.get(tagName)) {
60
+ customElements.define(tagName, ResetPasswordButton);
61
+ }
62
+ break;
63
+ } });
64
+ }
65
+
66
+ const UResetPasswordButton = ResetPasswordButton;
67
+ const defineCustomElement = defineCustomElement$1;
68
+
69
+ export { UResetPasswordButton, defineCustomElement };
70
+ //# sourceMappingURL=u-reset-password-button.js.map
71
+
72
+ //# sourceMappingURL=u-reset-password-button.js.map
@@ -0,0 +1 @@
1
+ {"file":"u-reset-password-button.js","mappings":";;;;;;MAUa,mBAAmB,iBAAAA,kBAAA,CAAA,MAAA,mBAAA,SAAA,WAAA,CAAA;;;;;;;IACK,kBAAkB,GAAG,EAAE;IAElD,WAAW,GAAG,YAAW;AAC/B,QAAA,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE;AAE7C,QAAA,MAAM,YAAY,CAAC,OAAO,CAAC,sBAAsB,EAAE;QAEnD,IAAIC,KAAS,CAAC,aAAa,CAAC,IAAI,KAAK,MAAM,EAAE;AAC3C,YAAA,MAAM,cAAc,GAAG,CAAC,CAAC,oCAAoC,EAAE;AAC7D,gBAAA,YAAY,EAAE,qDAAqD;AACpE,aAAA,CAAC;AAEF,YAAA,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC;;AAE5C,KAAC;IAEO,YAAY,GAAA;QAClB,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC,QAAQ,CAACA,KAAS,CAAC,IAAI,CAAC;AAAE,YAAA,OAAO,IAAI;QAE5E,IAAIA,KAAS,CAAC,IAAI,KAAK,cAAc,IAAIA,KAAS,CAAC,GAAG,KAAK,IAAI;AAAE,YAAA,OAAO,IAAI;AAE5E,QAAA,OAAO,KAAK;;IAGN,aAAa,GAAA;QACnB,IACE,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,QAAQ,CAACA,KAAS,CAAC,IAAI,CAAC;AACzD,YAAAA,KAAS,CAAC,qBAAqB;AAC/B,YAAA,CAACA,KAAS,CAAC,qBAAqB,CAAC,QAAQ,EACzC;YACA,OAAO,CAAC,CAAC,oCAAoC,EAAE,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;;AAGlF,QAAA,IAAIA,KAAS,CAAC,IAAI,KAAK,gBAAgB,EAAE;YACvC,OAAO,CAAC,CAAC,uCAAuC,EAAE,EAAE,YAAY,EAAE,6BAA6B,EAAE,CAAC;;QAGpG,OAAO,CAAC,CAAC,sCAAsC,EAAE,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;;IAEtF,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE;AACxB,YAAA,OAAO,IAAI;;AAGb,QAAA,QACE,CAAQ,CAAA,QAAA,EAAA,EAAA,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAC5E,EAAA,IAAI,CAAC,aAAa,EAAE,CACd;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","authState"],"sources":["src/auth/components/reset-pass-button/reset-pass-button.tsx"],"sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport { Flash } from \"../../../shared/store/flash-store\";\nimport { Auth } from \"../../auth\";\nimport { authState } from \"../../store/auth-store\";\n\n@Component({\n tag: \"u-reset-password-button\",\n shadow: false,\n})\nexport class ResetPasswordButton {\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n\n private handleClick = async () => {\n const authInstance = await Auth.getInstance();\n\n await authInstance.helpers.sendResetPasswordEmail();\n\n if (authState.resetPassword.step === \"sent\") {\n const successMessage = t(\"auth.resetPassword.success_message\", {\n defaultValue: \"Password reset email sent. Please check your inbox.\",\n });\n\n Flash.success.addMessage(successMessage);\n }\n };\n\n private shouldRender(): boolean {\n if ([\"verification\", \"reset-password\"].includes(authState.step)) return true;\n\n if (authState.step === \"single-login\" && authState.sid !== null) return true;\n\n return false;\n }\n\n private getButtonText() {\n if (\n [\"verification\", \"single-login\"].includes(authState.step) &&\n authState.availableLoginOptions &&\n !authState.availableLoginOptions.password\n ) {\n return t(\"auth.resetPassword.button_text_set\", { defaultValue: \"Set Password\" });\n }\n\n if (authState.step === \"reset-password\") {\n return t(\"auth.resetPassword.button_text_resend\", { defaultValue: \"Resend Password Reset Email\" });\n }\n\n return t(\"auth.resetPassword.button_text_reset\", { defaultValue: \"Reset Password\" });\n }\n render() {\n if (!this.shouldRender()) {\n return null;\n }\n\n return (\n <button type=\"button\" onClick={this.handleClick} class={this.componentClassName}>\n {this.getButtonText()}\n </button>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface USendMagicCodeButton extends Components.USendMagicCodeButton, HTMLElement {}
4
+ export const USendMagicCodeButton: {
5
+ prototype: USendMagicCodeButton;
6
+ new (): USendMagicCodeButton;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,85 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { t } from './i18n.js';
3
+ import { A as Auth } from './auth.js';
4
+ import { s as state, a as authStore } from './auth-store.js';
5
+
6
+ const SendMagicCodeButton = /*@__PURE__*/ proxyCustomElement(class SendMagicCodeButton extends HTMLElement {
7
+ constructor(registerHost) {
8
+ super();
9
+ if (registerHost !== false) {
10
+ this.__registerHost();
11
+ }
12
+ }
13
+ disabled = false;
14
+ componentClassName = "";
15
+ countdown = 0;
16
+ countdownInterval = null;
17
+ handleClick = async () => {
18
+ if (this.disabled || state.loading || this.countdown > 0)
19
+ return;
20
+ const authInstance = await Auth.getInstance();
21
+ const [_error, response] = await authInstance.helpers.sendMagicCode();
22
+ if (response && "enable_resend_after" in response) {
23
+ this.startCountdown(response.enable_resend_after);
24
+ }
25
+ };
26
+ startCountdown = (enableResendAfter) => {
27
+ this.countdown = Math.ceil(enableResendAfter / 1000);
28
+ this.countdownInterval = window.setInterval(() => {
29
+ this.countdown--;
30
+ if (this.countdown <= 0) {
31
+ this.clearCountdown();
32
+ authStore.clearFieldError("magicCode");
33
+ }
34
+ }, 1000);
35
+ };
36
+ clearCountdown = () => {
37
+ if (this.countdownInterval) {
38
+ clearInterval(this.countdownInterval);
39
+ this.countdownInterval = null;
40
+ }
41
+ this.countdown = 0;
42
+ };
43
+ disconnectedCallback() {
44
+ this.clearCountdown();
45
+ }
46
+ render() {
47
+ if (!state.availableLoginOptions?.magic_link && state.step !== "single-login") {
48
+ return null;
49
+ }
50
+ if (state.step !== "magic-code" && state.step !== "verification" && state.step !== "single-login") {
51
+ return null;
52
+ }
53
+ const isDisabled = this.disabled || state.magicCodeStep === "requested" || this.countdown > 0 || state.email === "";
54
+ const buttonTextKey = state.step !== "magic-code" ? "auth.magicCode.button_text" : "auth.magicCode.resend.button_text";
55
+ const text = t(buttonTextKey, { defaultValue: "Send Magic Code" });
56
+ const alreadySentText = t("auth.magicCode.already_sent_text", { defaultValue: "Magic code already sent to your email" });
57
+ const sendingText = t("auth.magicCode.sending_text", { defaultValue: "Sending..." });
58
+ return (h("button", { type: "button", disabled: isDisabled, onClick: this.handleClick, class: this.componentClassName, "aria-live": "polite" }, this.countdown > 0 ? alreadySentText : state.loading && state.magicCodeStep === "requested" ? sendingText : text));
59
+ }
60
+ }, [768, "u-send-magic-code-button", {
61
+ "disabled": [4],
62
+ "componentClassName": [1, "class-name"],
63
+ "countdown": [32]
64
+ }]);
65
+ function defineCustomElement$1() {
66
+ if (typeof customElements === "undefined") {
67
+ return;
68
+ }
69
+ const components = ["u-send-magic-code-button"];
70
+ components.forEach(tagName => { switch (tagName) {
71
+ case "u-send-magic-code-button":
72
+ if (!customElements.get(tagName)) {
73
+ customElements.define(tagName, SendMagicCodeButton);
74
+ }
75
+ break;
76
+ } });
77
+ }
78
+
79
+ const USendMagicCodeButton = SendMagicCodeButton;
80
+ const defineCustomElement = defineCustomElement$1;
81
+
82
+ export { USendMagicCodeButton, defineCustomElement };
83
+ //# sourceMappingURL=u-send-magic-code-button.js.map
84
+
85
+ //# sourceMappingURL=u-send-magic-code-button.js.map
@@ -0,0 +1 @@
1
+ {"file":"u-send-magic-code-button.js","mappings":"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","names":["__stencil_proxyCustomElement","authState"],"sources":["src/auth/components/send-magic-code-button/send-magic-code-button.tsx"],"sourcesContent":["import { Component, h, Prop, State } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport { Auth } from \"../../auth\";\nimport { authState, authStore } from \"../../store/auth-store\";\n\n@Component({\n tag: \"u-send-magic-code-button\",\n shadow: false,\n})\nexport class SendMagicCodeButton {\n @Prop() disabled = false;\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n\n @State() countdown = 0;\n private countdownInterval: number | null = null;\n\n private handleClick = async () => {\n if (this.disabled || authState.loading || this.countdown > 0) return;\n\n const authInstance = await Auth.getInstance();\n\n const [_error, response] = await authInstance.helpers.sendMagicCode();\n\n if (response && \"enable_resend_after\" in response) {\n this.startCountdown(response.enable_resend_after);\n }\n };\n\n private startCountdown = (enableResendAfter: number) => {\n this.countdown = Math.ceil(enableResendAfter / 1000);\n\n this.countdownInterval = window.setInterval(() => {\n this.countdown--;\n if (this.countdown <= 0) {\n this.clearCountdown();\n authStore.clearFieldError(\"magicCode\");\n }\n }, 1000);\n };\n\n private clearCountdown = () => {\n if (this.countdownInterval) {\n clearInterval(this.countdownInterval);\n this.countdownInterval = null;\n }\n this.countdown = 0;\n };\n\n disconnectedCallback() {\n this.clearCountdown();\n }\n\n render() {\n if (!authState.availableLoginOptions?.magic_link && authState.step !== \"single-login\") {\n return null;\n }\n\n if (authState.step !== \"magic-code\" && authState.step !== \"verification\" && authState.step !== \"single-login\") {\n return null;\n }\n\n const isDisabled = this.disabled || authState.magicCodeStep === \"requested\" || this.countdown > 0 || authState.email === \"\";\n const buttonTextKey = authState.step !== \"magic-code\" ? \"auth.magicCode.button_text\" : \"auth.magicCode.resend.button_text\";\n const text = t(buttonTextKey, { defaultValue: \"Send Magic Code\" });\n const alreadySentText = t(\"auth.magicCode.already_sent_text\", { defaultValue: \"Magic code already sent to your email\" });\n const sendingText = t(\"auth.magicCode.sending_text\", { defaultValue: \"Sending...\" });\n\n return (\n <button type=\"button\" disabled={isDisabled} onClick={this.handleClick} class={this.componentClassName} aria-live=\"polite\">\n {this.countdown > 0 ? alreadySentText : authState.loading && authState.magicCodeStep === \"requested\" ? sendingText : text}\n </button>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface USignedIn extends Components.USignedIn, HTMLElement {}
4
+ export const USignedIn: {
5
+ prototype: USignedIn;
6
+ new (): USignedIn;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,44 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { a as authStore } from './auth-store.js';
3
+
4
+ const SignedIn = /*@__PURE__*/ proxyCustomElement(class SignedIn extends HTMLElement {
5
+ constructor(registerHost) {
6
+ super();
7
+ if (registerHost !== false) {
8
+ this.__registerHost();
9
+ }
10
+ this.__attachShadow();
11
+ }
12
+ componentClassName = "";
13
+ not = false;
14
+ render() {
15
+ if (this.not ? authStore.state.authenticated : !authStore.state.authenticated) {
16
+ return null;
17
+ }
18
+ return (h(Host, { class: this.componentClassName }, h("slot", null)));
19
+ }
20
+ }, [769, "u-signed-in", {
21
+ "componentClassName": [1, "class-name"],
22
+ "not": [4]
23
+ }]);
24
+ function defineCustomElement$1() {
25
+ if (typeof customElements === "undefined") {
26
+ return;
27
+ }
28
+ const components = ["u-signed-in"];
29
+ components.forEach(tagName => { switch (tagName) {
30
+ case "u-signed-in":
31
+ if (!customElements.get(tagName)) {
32
+ customElements.define(tagName, SignedIn);
33
+ }
34
+ break;
35
+ } });
36
+ }
37
+
38
+ const USignedIn = SignedIn;
39
+ const defineCustomElement = defineCustomElement$1;
40
+
41
+ export { USignedIn, defineCustomElement };
42
+ //# sourceMappingURL=u-signed-in.js.map
43
+
44
+ //# sourceMappingURL=u-signed-in.js.map
@@ -0,0 +1 @@
1
+ {"file":"u-signed-in.js","mappings":";;;MAOa,QAAQ,iBAAAA,kBAAA,CAAA,MAAA,QAAA,SAAA,WAAA,CAAA;;;;;;;;IACgB,kBAAkB,GAAG,EAAE;IAClD,GAAG,GAAG,KAAK;IAEnB,MAAM,GAAA;QACJ,IAAI,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,aAAa,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,aAAa,EAAE;AAC7E,YAAA,OAAO,IAAI;;QAGb,QACE,EAAC,IAAI,EAAA,EAAC,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAA,EAClC,CAAQ,CAAA,MAAA,EAAA,IAAA,CAAA,CACH;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement"],"sources":["src/auth/components/signed-in/signed-in.tsx"],"sourcesContent":["import { Component, Host, h, Prop } from \"@stencil/core\";\nimport { authStore } from \"../../store/auth-store\";\n\n@Component({\n tag: \"u-signed-in\",\n shadow: true,\n})\nexport class SignedIn {\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n @Prop() not = false;\n\n render() {\n if (this.not ? authStore.state.authenticated : !authStore.state.authenticated) {\n return null;\n }\n\n return (\n <Host class={this.componentClassName}>\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}