@unidy.io/sdk 1.2.0-alpha9 → 1.2.0

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 (715) hide show
  1. package/dist/cjs/_commonjsHelpers-CFO10eej.js +10 -0
  2. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  3. package/dist/cjs/app-globals-C-Wl5lPS.js +10 -0
  4. package/dist/cjs/app-globals-C-Wl5lPS.js.map +1 -0
  5. package/dist/cjs/{auth-store-DPmGKHZ2.js → auth-store-0vv3uOib.js} +4 -4
  6. package/dist/cjs/{auth-store-DPmGKHZ2.js.map → auth-store-0vv3uOib.js.map} +1 -1
  7. package/dist/cjs/component-DLxnZCW6.js +34 -0
  8. package/dist/cjs/component-DLxnZCW6.js.map +1 -0
  9. package/dist/cjs/component-utils-XXctnOM9.js +38 -0
  10. package/dist/cjs/component-utils-XXctnOM9.js.map +1 -0
  11. package/dist/cjs/de-BWF6Glzg.js +704 -0
  12. package/dist/cjs/de-BWF6Glzg.js.map +1 -0
  13. package/dist/cjs/en-GB-DhD5mdQw.js +119 -0
  14. package/dist/cjs/en-GB-DhD5mdQw.js.map +1 -0
  15. package/dist/cjs/{flash-store-gbSYhPAV.js → flash-store-CR6Umh1O.js} +3 -3
  16. package/dist/cjs/{flash-store-gbSYhPAV.js.map → flash-store-CR6Umh1O.js.map} +1 -1
  17. package/dist/cjs/fr-j2wwoj-A.js +577 -0
  18. package/dist/cjs/fr-j2wwoj-A.js.map +1 -0
  19. package/dist/cjs/has-slot-content-CfJbU4t-.js +37 -0
  20. package/dist/cjs/has-slot-content-CfJbU4t-.js.map +1 -0
  21. package/dist/cjs/{i18n-D5j_Zl-4.js → i18n-ClWrNmGh.js} +100 -4
  22. package/dist/cjs/{i18n-D5j_Zl-4.js.map → i18n-ClWrNmGh.js.map} +1 -1
  23. package/dist/cjs/{index-B325yXfO.js → index-2Fz3r5o0.js} +5 -41
  24. package/dist/cjs/index-2Fz3r5o0.js.map +1 -0
  25. package/dist/cjs/{index-yaeiYlfa.js → index-C6ZBKFYr.js} +3 -3
  26. package/dist/cjs/{index-yaeiYlfa.js.map → index-C6ZBKFYr.js.map} +1 -1
  27. package/dist/cjs/{index-BzPYBLYC.js → index-CpPKy1CZ.js} +1170 -1087
  28. package/dist/cjs/index-CpPKy1CZ.js.map +1 -0
  29. package/dist/cjs/index.cjs.js +24 -11
  30. package/dist/cjs/index.cjs.js.map +1 -1
  31. package/dist/cjs/loader.cjs.js +3 -3
  32. package/dist/cjs/{newsletter-helpers-hdDC5X-V.js → newsletter-helpers-BHvOI8M4.js} +46 -9
  33. package/dist/cjs/newsletter-helpers-BHvOI8M4.js.map +1 -0
  34. package/dist/cjs/{newsletter-store-CupsLgO9.js → newsletter-store-22Jswiqe.js} +5 -3
  35. package/dist/cjs/newsletter-store-22Jswiqe.js.map +1 -0
  36. package/dist/cjs/nl-BE-yKvOp1-G.js +542 -0
  37. package/dist/cjs/nl-BE-yKvOp1-G.js.map +1 -0
  38. package/dist/cjs/{profile-helpers-Bprrm-Xl.js → profile-helpers-BBpAqHjK.js} +4 -4
  39. package/dist/cjs/{profile-helpers-Bprrm-Xl.js.map → profile-helpers-BBpAqHjK.js.map} +1 -1
  40. package/dist/cjs/{profile-store-C_q-TuA_.js → profile-store-CQEQhPQD.js} +4 -4
  41. package/dist/cjs/{profile-store-C_q-TuA_.js.map → profile-store-CQEQhPQD.js.map} +1 -1
  42. package/dist/cjs/redirect-with-token-wupYX97S.js +37 -0
  43. package/dist/cjs/redirect-with-token-wupYX97S.js.map +1 -0
  44. package/dist/cjs/ro-CXq9d1lv.js +578 -0
  45. package/dist/cjs/ro-CXq9d1lv.js.map +1 -0
  46. package/dist/cjs/sdk.cjs.js +3 -3
  47. package/dist/cjs/sv-CMln4V33.js +597 -0
  48. package/dist/cjs/sv-CMln4V33.js.map +1 -0
  49. package/dist/cjs/u-conditional-render.cjs.entry.js +14 -14
  50. package/dist/cjs/u-conditional-render.entry.cjs.js.map +1 -1
  51. package/dist/cjs/u-config.cjs.entry.js +24 -11
  52. package/dist/cjs/u-config.entry.cjs.js.map +1 -1
  53. package/dist/cjs/u-email-field.cjs.entry.js +7 -7
  54. package/dist/cjs/u-error-message.cjs.entry.js +49 -22
  55. package/dist/cjs/u-error-message.entry.cjs.js.map +1 -1
  56. package/dist/cjs/u-field.u-raw-field.entry.cjs.js.map +1 -1
  57. package/dist/cjs/u-field_2.cjs.entry.js +124 -12
  58. package/dist/cjs/u-flash-message.cjs.entry.js +3 -3
  59. package/dist/cjs/u-full-profile.cjs.entry.js +6 -6
  60. package/dist/cjs/u-jump-to-service.cjs.entry.js +23 -44
  61. package/dist/cjs/u-jump-to-service.entry.cjs.js.map +1 -1
  62. package/dist/cjs/u-jump-to-unidy.cjs.entry.js +22 -43
  63. package/dist/cjs/u-jump-to-unidy.entry.cjs.js.map +1 -1
  64. package/dist/cjs/u-logout-button.u-signed-in.entry.cjs.js.map +1 -1
  65. package/dist/cjs/u-logout-button_2.cjs.entry.js +15 -22
  66. package/dist/cjs/u-magic-code-field.cjs.entry.js +8 -9
  67. package/dist/cjs/u-magic-code-field.entry.cjs.js.map +1 -1
  68. package/dist/cjs/u-missing-field.cjs.entry.js +6 -5
  69. package/dist/cjs/u-missing-field.entry.cjs.js.map +1 -1
  70. package/dist/cjs/u-missing-fields-submit-button.cjs.entry.js +16 -14
  71. package/dist/cjs/u-missing-fields-submit-button.entry.cjs.js.map +1 -1
  72. package/dist/cjs/u-newsletter-checkbox.cjs.entry.js +11 -12
  73. package/dist/cjs/u-newsletter-checkbox.entry.cjs.js.map +1 -1
  74. package/dist/cjs/u-newsletter-consent-checkbox.cjs.entry.js +4 -4
  75. package/dist/cjs/u-newsletter-logout-button.cjs.entry.js +15 -20
  76. package/dist/cjs/u-newsletter-logout-button.entry.cjs.js.map +1 -1
  77. package/dist/cjs/u-newsletter-preference-checkbox.cjs.entry.js +11 -12
  78. package/dist/cjs/u-newsletter-preference-checkbox.entry.cjs.js.map +1 -1
  79. package/dist/cjs/u-newsletter-resend-doi-button.cjs.entry.js +10 -11
  80. package/dist/cjs/u-newsletter-resend-doi-button.entry.cjs.js.map +1 -1
  81. package/dist/cjs/u-newsletter-root.cjs.entry.js +45 -22
  82. package/dist/cjs/u-newsletter-root.entry.cjs.js.map +1 -1
  83. package/dist/cjs/u-newsletter-toggle-subscription-button.cjs.entry.js +11 -12
  84. package/dist/cjs/u-newsletter-toggle-subscription-button.entry.cjs.js.map +1 -1
  85. package/dist/cjs/u-pagination-button.cjs.entry.js +4 -4
  86. package/dist/cjs/u-pagination-button.entry.cjs.js.map +1 -1
  87. package/dist/cjs/u-pagination-page.cjs.entry.js +4 -4
  88. package/dist/cjs/u-pagination-page.entry.cjs.js.map +1 -1
  89. package/dist/cjs/u-passkey.cjs.entry.js +8 -9
  90. package/dist/cjs/u-passkey.entry.cjs.js.map +1 -1
  91. package/dist/cjs/u-password-field.cjs.entry.js +5 -5
  92. package/dist/cjs/u-profile.u-submit-button.entry.cjs.js.map +1 -1
  93. package/dist/cjs/u-profile_2.cjs.entry.js +31 -33
  94. package/dist/cjs/u-registration-button.cjs.entry.js +5 -5
  95. package/dist/cjs/u-reset-password-button.cjs.entry.js +12 -15
  96. package/dist/cjs/u-reset-password-button.entry.cjs.js.map +1 -1
  97. package/dist/cjs/u-send-magic-code-button.cjs.entry.js +8 -9
  98. package/dist/cjs/u-send-magic-code-button.entry.cjs.js.map +1 -1
  99. package/dist/cjs/u-signin-root.cjs.entry.js +6 -8
  100. package/dist/cjs/u-signin-root.entry.cjs.js.map +1 -1
  101. package/dist/cjs/u-signin-step.cjs.entry.js +17 -21
  102. package/dist/cjs/u-signin-step.entry.cjs.js.map +1 -1
  103. package/dist/cjs/u-social-login-button.cjs.entry.js +16 -15
  104. package/dist/cjs/u-social-login-button.entry.cjs.js.map +1 -1
  105. package/dist/cjs/u-spinner.cjs.entry.js +3 -3
  106. package/dist/cjs/u-spinner.entry.cjs.js.map +1 -1
  107. package/dist/cjs/u-ticketable-export.cjs.entry.js +76 -0
  108. package/dist/cjs/u-ticketable-export.entry.cjs.js.map +1 -0
  109. package/dist/cjs/u-ticketable-list-D3M8iA-g.js +3991 -0
  110. package/dist/cjs/u-ticketable-list-D3M8iA-g.js.map +1 -0
  111. package/dist/cjs/u-ticketable-list.cjs.entry.js +11 -6118
  112. package/dist/cjs/u-ticketable-list.entry.cjs.js.map +1 -1
  113. package/dist/cjs/{unidy-store-BGnWn9pc.js → unidy-store-Bvnl24i9.js} +3 -3
  114. package/dist/cjs/{unidy-store-BGnWn9pc.js.map → unidy-store-Bvnl24i9.js.map} +1 -1
  115. package/dist/collection/api/base-service.js.map +1 -1
  116. package/dist/collection/api/client.js.map +1 -1
  117. package/dist/collection/api/index.js +6 -6
  118. package/dist/collection/api/index.js.map +1 -1
  119. package/dist/collection/api/standalone.js +88 -39
  120. package/dist/collection/api/standalone.js.map +1 -1
  121. package/dist/collection/auth/api/auth.js.map +1 -1
  122. package/dist/collection/auth/api/schemas.js +5 -5
  123. package/dist/collection/auth/api/schemas.js.map +1 -1
  124. package/dist/collection/auth/auth-helpers.js +7 -8
  125. package/dist/collection/auth/auth-helpers.js.map +1 -1
  126. package/dist/collection/auth/auth.js +1 -0
  127. package/dist/collection/auth/auth.js.map +1 -1
  128. package/dist/collection/auth/components/jump-to-service/jump-to-service.js +20 -40
  129. package/dist/collection/auth/components/jump-to-service/jump-to-service.js.map +1 -1
  130. package/dist/collection/auth/components/jump-to-unidy/jump-to-unidy.js +20 -39
  131. package/dist/collection/auth/components/jump-to-unidy/jump-to-unidy.js.map +1 -1
  132. package/dist/collection/auth/components/logout-button/logout-button.js +7 -11
  133. package/dist/collection/auth/components/logout-button/logout-button.js.map +1 -1
  134. package/dist/collection/auth/components/missing-field/missing-field.js +25 -1
  135. package/dist/collection/auth/components/missing-field/missing-field.js.map +1 -1
  136. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js +33 -7
  137. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js.map +1 -1
  138. package/dist/collection/auth/components/password-field/password-field.js +1 -1
  139. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js +6 -8
  140. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js.map +1 -1
  141. package/dist/collection/auth/components/signed-in/signed-in.js +2 -5
  142. package/dist/collection/auth/components/signed-in/signed-in.js.map +1 -1
  143. package/dist/collection/auth/components/signin-root/signin-root.js +2 -5
  144. package/dist/collection/auth/components/signin-root/signin-root.js.map +1 -1
  145. package/dist/collection/auth/components/signin-step/signin-step.js +9 -13
  146. package/dist/collection/auth/components/signin-step/signin-step.js.map +1 -1
  147. package/dist/collection/auth/components/social-logins/social-login-button.css +1 -1
  148. package/dist/collection/auth/components/social-logins/social-login-button.js +11 -12
  149. package/dist/collection/auth/components/social-logins/social-login-button.js.map +1 -1
  150. package/dist/collection/auth/components/submit-button/auth-submit-button.js +10 -0
  151. package/dist/collection/auth/components/submit-button/auth-submit-button.js.map +1 -1
  152. package/dist/collection/collection-manifest.json +1 -0
  153. package/dist/collection/locales/de.json +16 -0
  154. package/dist/collection/locales/en.json +16 -0
  155. package/dist/collection/locales/fr.json +16 -0
  156. package/dist/collection/locales/it.json +16 -0
  157. package/dist/collection/locales/nl_be.json +16 -0
  158. package/dist/collection/locales/ro.json +16 -0
  159. package/dist/collection/logger.js +0 -37
  160. package/dist/collection/logger.js.map +1 -1
  161. package/dist/collection/newsletter/api/newsletters.js +19 -18
  162. package/dist/collection/newsletter/api/newsletters.js.map +1 -1
  163. package/dist/collection/newsletter/components/consent-checkbox/consent-checkbox.js +1 -1
  164. package/dist/collection/newsletter/components/logout-button/logout-button.js +6 -10
  165. package/dist/collection/newsletter/components/logout-button/logout-button.js.map +1 -1
  166. package/dist/collection/newsletter/components/newsletter-checkbox/newsletter-checkbox.js +1 -1
  167. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js +65 -10
  168. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js.map +1 -1
  169. package/dist/collection/newsletter/components/preference-checkbox/preference-checkbox.js +1 -1
  170. package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.js +1 -1
  171. package/dist/collection/newsletter/newsletter-helpers.js +39 -2
  172. package/dist/collection/newsletter/newsletter-helpers.js.map +1 -1
  173. package/dist/collection/newsletter/store/newsletter-store.js +2 -0
  174. package/dist/collection/newsletter/store/newsletter-store.js.map +1 -1
  175. package/dist/collection/profile/api/profile.js.map +1 -1
  176. package/dist/collection/profile/api/schemas.js +1 -1
  177. package/dist/collection/profile/api/schemas.js.map +1 -1
  178. package/dist/collection/profile/components/field/field.js +3 -1
  179. package/dist/collection/profile/components/field/field.js.map +1 -1
  180. package/dist/collection/profile/components/full-profile/full-profile.js +1 -1
  181. package/dist/collection/profile/components/raw-field/raw-field.js +40 -7
  182. package/dist/collection/profile/components/raw-field/raw-field.js.map +1 -1
  183. package/dist/collection/profile/store/profile-store.js +1 -1
  184. package/dist/collection/profile/store/profile-store.js.map +1 -1
  185. package/dist/collection/shared/base/component.js +28 -0
  186. package/dist/collection/shared/base/component.js.map +1 -0
  187. package/dist/collection/shared/base/has-slot-content.js +31 -0
  188. package/dist/collection/shared/base/has-slot-content.js.map +1 -0
  189. package/dist/collection/shared/component-utils.js +23 -27
  190. package/dist/collection/shared/component-utils.js.map +1 -1
  191. package/dist/collection/shared/components/conditional-render/conditional-render.js +4 -5
  192. package/dist/collection/shared/components/conditional-render/conditional-render.js.map +1 -1
  193. package/dist/collection/shared/components/config/config.js +18 -5
  194. package/dist/collection/shared/components/config/config.js.map +1 -1
  195. package/dist/collection/shared/components/email-field/email-field.js +1 -1
  196. package/dist/collection/shared/components/error-message/error-message.css +1 -1
  197. package/dist/collection/shared/components/error-message/error-message.js +44 -17
  198. package/dist/collection/shared/components/error-message/error-message.js.map +1 -1
  199. package/dist/collection/shared/components/spinner/spinner.css +1 -1
  200. package/dist/collection/shared/components/spinner/spinner.js +1 -1
  201. package/dist/collection/shared/components/submit-button/submit-button.css +1 -1
  202. package/dist/collection/shared/components/submit-button/submit-button.js +12 -23
  203. package/dist/collection/shared/components/submit-button/submit-button.js.map +1 -1
  204. package/dist/collection/shared/context-utils.js +96 -0
  205. package/dist/collection/shared/context-utils.js.map +1 -0
  206. package/dist/collection/shared/utils/redirect-with-token.js +30 -0
  207. package/dist/collection/shared/utils/redirect-with-token.js.map +1 -0
  208. package/dist/collection/shared/utils/url-utils.js +25 -0
  209. package/dist/collection/shared/utils/url-utils.js.map +1 -0
  210. package/dist/collection/ticketable/api/schemas.js +10 -2
  211. package/dist/collection/ticketable/api/schemas.js.map +1 -1
  212. package/dist/collection/ticketable/api/subscriptions.js +22 -1
  213. package/dist/collection/ticketable/api/subscriptions.js.map +1 -1
  214. package/dist/collection/ticketable/api/tickets.js +22 -1
  215. package/dist/collection/ticketable/api/tickets.js.map +1 -1
  216. package/dist/collection/ticketable/components/pagination/pagination-button.js +3 -5
  217. package/dist/collection/ticketable/components/pagination/pagination-button.js.map +1 -1
  218. package/dist/collection/ticketable/components/pagination/pagination-page.js +3 -5
  219. package/dist/collection/ticketable/components/pagination/pagination-page.js.map +1 -1
  220. package/dist/collection/ticketable/components/ticketable-export/ticketable-export.js +175 -0
  221. package/dist/collection/ticketable/components/ticketable-export/ticketable-export.js.map +1 -0
  222. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js +163 -25
  223. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js.map +1 -1
  224. package/dist/collection/ticketable/index.js +1 -0
  225. package/dist/collection/ticketable/index.js.map +1 -1
  226. package/dist/components/_commonjsHelpers.js +8 -0
  227. package/dist/components/_commonjsHelpers.js.map +1 -0
  228. package/dist/components/component-utils.js +25 -28
  229. package/dist/components/component-utils.js.map +1 -1
  230. package/dist/components/component.js +33 -0
  231. package/dist/components/component.js.map +1 -0
  232. package/dist/components/de.js +702 -0
  233. package/dist/components/de.js.map +1 -0
  234. package/dist/components/en-GB.js +117 -0
  235. package/dist/components/en-GB.js.map +1 -0
  236. package/dist/components/field.js +3 -1
  237. package/dist/components/field.js.map +1 -1
  238. package/dist/components/fr.js +575 -0
  239. package/dist/components/fr.js.map +1 -0
  240. package/dist/components/has-slot-content.js +35 -0
  241. package/dist/components/has-slot-content.js.map +1 -0
  242. package/dist/components/i18n.js +96 -0
  243. package/dist/components/i18n.js.map +1 -1
  244. package/dist/components/index.js +11 -3
  245. package/dist/components/index.js.map +1 -1
  246. package/dist/components/index2.js +1158 -1083
  247. package/dist/components/index2.js.map +1 -1
  248. package/dist/components/logger.js +1 -39
  249. package/dist/components/logger.js.map +1 -1
  250. package/dist/components/newsletter-helpers.js +39 -2
  251. package/dist/components/newsletter-helpers.js.map +1 -1
  252. package/dist/components/newsletter-store.js +2 -0
  253. package/dist/components/newsletter-store.js.map +1 -1
  254. package/dist/components/nl-BE.js +540 -0
  255. package/dist/components/nl-BE.js.map +1 -0
  256. package/dist/components/profile-store.js +1 -1
  257. package/dist/components/profile-store.js.map +1 -1
  258. package/dist/components/raw-field.js +116 -7
  259. package/dist/components/raw-field.js.map +1 -1
  260. package/dist/components/redirect-with-token.js +35 -0
  261. package/dist/components/redirect-with-token.js.map +1 -0
  262. package/dist/components/ro.js +576 -0
  263. package/dist/components/ro.js.map +1 -0
  264. package/dist/components/spinner.js +2 -2
  265. package/dist/components/spinner.js.map +1 -1
  266. package/dist/components/submit-button.js +21 -24
  267. package/dist/components/submit-button.js.map +1 -1
  268. package/dist/components/sv.js +595 -0
  269. package/dist/components/sv.js.map +1 -0
  270. package/dist/components/u-conditional-render.js +5 -6
  271. package/dist/components/u-conditional-render.js.map +1 -1
  272. package/dist/components/u-config.js +16 -3
  273. package/dist/components/u-config.js.map +1 -1
  274. package/dist/components/u-email-field.js +1 -1
  275. package/dist/components/u-error-message.js +44 -19
  276. package/dist/components/u-error-message.js.map +1 -1
  277. package/dist/components/u-full-profile.js +1 -1
  278. package/dist/components/u-jump-to-service.js +16 -38
  279. package/dist/components/u-jump-to-service.js.map +1 -1
  280. package/dist/components/u-jump-to-unidy.js +16 -37
  281. package/dist/components/u-jump-to-unidy.js.map +1 -1
  282. package/dist/components/u-logout-button.js +5 -11
  283. package/dist/components/u-logout-button.js.map +1 -1
  284. package/dist/components/u-missing-field.js +5 -2
  285. package/dist/components/u-missing-field.js.map +1 -1
  286. package/dist/components/u-missing-fields-submit-button.js +10 -8
  287. package/dist/components/u-missing-fields-submit-button.js.map +1 -1
  288. package/dist/components/u-newsletter-checkbox.js +1 -1
  289. package/dist/components/u-newsletter-consent-checkbox.js +1 -1
  290. package/dist/components/u-newsletter-logout-button.js +6 -12
  291. package/dist/components/u-newsletter-logout-button.js.map +1 -1
  292. package/dist/components/u-newsletter-preference-checkbox.js +1 -1
  293. package/dist/components/u-newsletter-root.js +35 -12
  294. package/dist/components/u-newsletter-root.js.map +1 -1
  295. package/dist/components/u-newsletter-toggle-subscription-button.js +1 -1
  296. package/dist/components/u-pagination-button.js +3 -4
  297. package/dist/components/u-pagination-button.js.map +1 -1
  298. package/dist/components/u-pagination-page.js +3 -4
  299. package/dist/components/u-pagination-page.js.map +1 -1
  300. package/dist/components/u-reset-password-button.js +4 -8
  301. package/dist/components/u-reset-password-button.js.map +1 -1
  302. package/dist/components/u-signed-in.js +3 -6
  303. package/dist/components/u-signed-in.js.map +1 -1
  304. package/dist/components/u-signin-root.js +3 -6
  305. package/dist/components/u-signin-root.js.map +1 -1
  306. package/dist/components/u-signin-step.js +10 -14
  307. package/dist/components/u-signin-step.js.map +1 -1
  308. package/dist/components/u-social-login-button.js +13 -14
  309. package/dist/components/u-social-login-button.js.map +1 -1
  310. package/dist/components/u-ticketable-export.d.ts +11 -0
  311. package/dist/components/u-ticketable-export.js +93 -0
  312. package/dist/components/u-ticketable-export.js.map +1 -0
  313. package/dist/components/u-ticketable-list.js +256 -2396
  314. package/dist/components/u-ticketable-list.js.map +1 -1
  315. package/dist/esm/_commonjsHelpers-B85MJLTf.js +8 -0
  316. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  317. package/dist/esm/app-globals-J743qnJf.js +8 -0
  318. package/dist/esm/app-globals-J743qnJf.js.map +1 -0
  319. package/dist/esm/{auth-store-DBlGNGhq.js → auth-store-CSpEdi46.js} +4 -4
  320. package/dist/esm/{auth-store-DBlGNGhq.js.map → auth-store-CSpEdi46.js.map} +1 -1
  321. package/dist/esm/component-qfegGRWr.js +32 -0
  322. package/dist/esm/component-qfegGRWr.js.map +1 -0
  323. package/dist/esm/component-utils-WEof9bTg.js +36 -0
  324. package/dist/esm/component-utils-WEof9bTg.js.map +1 -0
  325. package/dist/esm/de-C6AnCqsA.js +702 -0
  326. package/dist/esm/de-C6AnCqsA.js.map +1 -0
  327. package/dist/esm/en-GB-DO63WPxt.js +117 -0
  328. package/dist/esm/en-GB-DO63WPxt.js.map +1 -0
  329. package/dist/esm/{flash-store-Df2YkLTB.js → flash-store-Dn1Bava8.js} +3 -3
  330. package/dist/esm/{flash-store-Df2YkLTB.js.map → flash-store-Dn1Bava8.js.map} +1 -1
  331. package/dist/esm/fr-C0oU6-EJ.js +575 -0
  332. package/dist/esm/fr-C0oU6-EJ.js.map +1 -0
  333. package/dist/esm/has-slot-content-DSMkJu9G.js +35 -0
  334. package/dist/esm/has-slot-content-DSMkJu9G.js.map +1 -0
  335. package/dist/esm/{i18n-Da7S9Oqf.js → i18n-ioyZxWsT.js} +100 -4
  336. package/dist/esm/{i18n-Da7S9Oqf.js.map → i18n-ioyZxWsT.js.map} +1 -1
  337. package/dist/esm/{index-FTKB5a1d.js → index-BsJDptgj.js} +4 -40
  338. package/dist/esm/index-BsJDptgj.js.map +1 -0
  339. package/dist/esm/{index-BnAYOYR5.js → index-C8kmD3tu.js} +3 -3
  340. package/dist/esm/{index-BnAYOYR5.js.map → index-C8kmD3tu.js.map} +1 -1
  341. package/dist/esm/{index-BVlbCQEX.js → index-kgGjfc-n.js} +1163 -1088
  342. package/dist/esm/index-kgGjfc-n.js.map +1 -0
  343. package/dist/esm/index.js +18 -12
  344. package/dist/esm/index.js.map +1 -1
  345. package/dist/esm/loader.js +4 -4
  346. package/dist/esm/{newsletter-helpers-fCpxzovf.js → newsletter-helpers-DoKGN_Kq.js} +46 -9
  347. package/dist/esm/newsletter-helpers-DoKGN_Kq.js.map +1 -0
  348. package/dist/esm/{newsletter-store-BB618FgS.js → newsletter-store-DpR85vaC.js} +5 -3
  349. package/dist/esm/newsletter-store-DpR85vaC.js.map +1 -0
  350. package/dist/esm/nl-BE-C8uPYb_H.js +540 -0
  351. package/dist/esm/nl-BE-C8uPYb_H.js.map +1 -0
  352. package/dist/esm/{profile-helpers-CXK2X6Ts.js → profile-helpers-BMJy0ei_.js} +4 -4
  353. package/dist/esm/{profile-helpers-CXK2X6Ts.js.map → profile-helpers-BMJy0ei_.js.map} +1 -1
  354. package/dist/esm/{profile-store-CHlSKuTY.js → profile-store-7wBS3gBH.js} +4 -4
  355. package/dist/esm/{profile-store-CHlSKuTY.js.map → profile-store-7wBS3gBH.js.map} +1 -1
  356. package/dist/esm/redirect-with-token-StCLJlSp.js +35 -0
  357. package/dist/esm/redirect-with-token-StCLJlSp.js.map +1 -0
  358. package/dist/esm/ro-BlDHz7d-.js +576 -0
  359. package/dist/esm/ro-BlDHz7d-.js.map +1 -0
  360. package/dist/esm/sdk.js +4 -4
  361. package/dist/esm/sv-B_Gq29K0.js +595 -0
  362. package/dist/esm/sv-B_Gq29K0.js.map +1 -0
  363. package/dist/esm/u-conditional-render.entry.js +14 -14
  364. package/dist/esm/u-conditional-render.entry.js.map +1 -1
  365. package/dist/esm/u-config.entry.js +24 -11
  366. package/dist/esm/u-config.entry.js.map +1 -1
  367. package/dist/esm/u-email-field.entry.js +7 -7
  368. package/dist/esm/u-error-message.entry.js +49 -22
  369. package/dist/esm/u-error-message.entry.js.map +1 -1
  370. package/dist/esm/u-field.u-raw-field.entry.js.map +1 -1
  371. package/dist/esm/u-field_2.entry.js +124 -12
  372. package/dist/esm/u-flash-message.entry.js +3 -3
  373. package/dist/esm/u-full-profile.entry.js +6 -6
  374. package/dist/esm/u-jump-to-service.entry.js +23 -44
  375. package/dist/esm/u-jump-to-service.entry.js.map +1 -1
  376. package/dist/esm/u-jump-to-unidy.entry.js +22 -43
  377. package/dist/esm/u-jump-to-unidy.entry.js.map +1 -1
  378. package/dist/esm/u-logout-button.u-signed-in.entry.js.map +1 -1
  379. package/dist/esm/u-logout-button_2.entry.js +15 -22
  380. package/dist/esm/u-magic-code-field.entry.js +8 -9
  381. package/dist/esm/u-magic-code-field.entry.js.map +1 -1
  382. package/dist/esm/u-missing-field.entry.js +6 -5
  383. package/dist/esm/u-missing-field.entry.js.map +1 -1
  384. package/dist/esm/u-missing-fields-submit-button.entry.js +16 -14
  385. package/dist/esm/u-missing-fields-submit-button.entry.js.map +1 -1
  386. package/dist/esm/u-newsletter-checkbox.entry.js +11 -12
  387. package/dist/esm/u-newsletter-checkbox.entry.js.map +1 -1
  388. package/dist/esm/u-newsletter-consent-checkbox.entry.js +4 -4
  389. package/dist/esm/u-newsletter-logout-button.entry.js +15 -20
  390. package/dist/esm/u-newsletter-logout-button.entry.js.map +1 -1
  391. package/dist/esm/u-newsletter-preference-checkbox.entry.js +11 -12
  392. package/dist/esm/u-newsletter-preference-checkbox.entry.js.map +1 -1
  393. package/dist/esm/u-newsletter-resend-doi-button.entry.js +10 -11
  394. package/dist/esm/u-newsletter-resend-doi-button.entry.js.map +1 -1
  395. package/dist/esm/u-newsletter-root.entry.js +42 -19
  396. package/dist/esm/u-newsletter-root.entry.js.map +1 -1
  397. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js +11 -12
  398. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js.map +1 -1
  399. package/dist/esm/u-pagination-button.entry.js +4 -4
  400. package/dist/esm/u-pagination-button.entry.js.map +1 -1
  401. package/dist/esm/u-pagination-page.entry.js +4 -4
  402. package/dist/esm/u-pagination-page.entry.js.map +1 -1
  403. package/dist/esm/u-passkey.entry.js +8 -9
  404. package/dist/esm/u-passkey.entry.js.map +1 -1
  405. package/dist/esm/u-password-field.entry.js +5 -5
  406. package/dist/esm/u-profile.u-submit-button.entry.js.map +1 -1
  407. package/dist/esm/u-profile_2.entry.js +31 -33
  408. package/dist/esm/u-registration-button.entry.js +5 -5
  409. package/dist/esm/u-reset-password-button.entry.js +12 -15
  410. package/dist/esm/u-reset-password-button.entry.js.map +1 -1
  411. package/dist/esm/u-send-magic-code-button.entry.js +8 -9
  412. package/dist/esm/u-send-magic-code-button.entry.js.map +1 -1
  413. package/dist/esm/u-signin-root.entry.js +6 -8
  414. package/dist/esm/u-signin-root.entry.js.map +1 -1
  415. package/dist/esm/u-signin-step.entry.js +17 -21
  416. package/dist/esm/u-signin-step.entry.js.map +1 -1
  417. package/dist/esm/u-social-login-button.entry.js +16 -15
  418. package/dist/esm/u-social-login-button.entry.js.map +1 -1
  419. package/dist/esm/u-spinner.entry.js +3 -3
  420. package/dist/esm/u-spinner.entry.js.map +1 -1
  421. package/dist/esm/u-ticketable-export.entry.js +74 -0
  422. package/dist/esm/u-ticketable-export.entry.js.map +1 -0
  423. package/dist/esm/u-ticketable-list-D2p21JjR.js +3981 -0
  424. package/dist/esm/u-ticketable-list-D2p21JjR.js.map +1 -0
  425. package/dist/esm/u-ticketable-list.entry.js +10 -6121
  426. package/dist/esm/u-ticketable-list.entry.js.map +1 -1
  427. package/dist/esm/{unidy-store-Bg7IaIMd.js → unidy-store-B5Bf4Vit.js} +3 -3
  428. package/dist/esm/{unidy-store-Bg7IaIMd.js.map → unidy-store-B5Bf4Vit.js.map} +1 -1
  429. package/dist/sdk/index.esm.js +1 -1
  430. package/dist/sdk/index.esm.js.map +1 -1
  431. package/dist/sdk/locales/de.json +16 -0
  432. package/dist/sdk/locales/en.json +16 -0
  433. package/dist/sdk/locales/fr.json +16 -0
  434. package/dist/sdk/locales/it.json +16 -0
  435. package/dist/sdk/locales/nl_be.json +16 -0
  436. package/dist/sdk/locales/ro.json +16 -0
  437. package/dist/sdk/p-02dce5da.entry.js +2 -0
  438. package/dist/sdk/p-02dce5da.entry.js.map +1 -0
  439. package/dist/sdk/p-043c7643.entry.js +2 -0
  440. package/dist/sdk/p-043c7643.entry.js.map +1 -0
  441. package/dist/sdk/p-18c17747.entry.js +2 -0
  442. package/dist/sdk/p-18c17747.entry.js.map +1 -0
  443. package/dist/sdk/p-1a1c1af0.entry.js +2 -0
  444. package/dist/sdk/p-1a1c1af0.entry.js.map +1 -0
  445. package/dist/sdk/p-271781c7.entry.js +2 -0
  446. package/dist/sdk/{p-1a8973a6.entry.js.map → p-271781c7.entry.js.map} +1 -1
  447. package/dist/sdk/p-29473a55.entry.js +2 -0
  448. package/dist/sdk/p-29473a55.entry.js.map +1 -0
  449. package/dist/sdk/p-2a25d62e.entry.js +2 -0
  450. package/dist/sdk/p-2a25d62e.entry.js.map +1 -0
  451. package/dist/sdk/{p-C8lRzJEX.js → p-2bKltz_F.js} +2 -2
  452. package/dist/sdk/{p-C8lRzJEX.js.map → p-2bKltz_F.js.map} +1 -1
  453. package/dist/sdk/p-2cc3a00d.entry.js +2 -0
  454. package/dist/sdk/p-2cc3a00d.entry.js.map +1 -0
  455. package/dist/sdk/p-2f49e0cb.entry.js +2 -0
  456. package/dist/sdk/p-2f49e0cb.entry.js.map +1 -0
  457. package/dist/sdk/p-34f5d201.entry.js +2 -0
  458. package/dist/sdk/p-34f5d201.entry.js.map +1 -0
  459. package/dist/sdk/p-52c4bdd9.entry.js +2 -0
  460. package/dist/sdk/p-52c4bdd9.entry.js.map +1 -0
  461. package/dist/sdk/p-585a0efa.entry.js +2 -0
  462. package/dist/sdk/p-585a0efa.entry.js.map +1 -0
  463. package/dist/sdk/p-60675019.entry.js +2 -0
  464. package/dist/sdk/p-60675019.entry.js.map +1 -0
  465. package/dist/sdk/p-79ef9a70.entry.js +2 -0
  466. package/dist/sdk/p-79ef9a70.entry.js.map +1 -0
  467. package/dist/sdk/p-7d88e21c.entry.js +2 -0
  468. package/dist/sdk/p-7d88e21c.entry.js.map +1 -0
  469. package/dist/sdk/p-7eaf3468.entry.js +2 -0
  470. package/dist/sdk/p-7eaf3468.entry.js.map +1 -0
  471. package/dist/sdk/{p-88beb872.entry.js → p-8412762c.entry.js} +2 -2
  472. package/dist/sdk/p-8ea70c08.entry.js +2 -0
  473. package/dist/sdk/p-8ea70c08.entry.js.map +1 -0
  474. package/dist/sdk/p-946cdb0a.entry.js +2 -0
  475. package/dist/sdk/p-946cdb0a.entry.js.map +1 -0
  476. package/dist/sdk/p-94bb0217.entry.js +2 -0
  477. package/dist/sdk/p-94bb0217.entry.js.map +1 -0
  478. package/dist/sdk/{p-bcca06f1.entry.js → p-96860b09.entry.js} +2 -2
  479. package/dist/sdk/p-B1A6Nu24.js +2 -0
  480. package/dist/sdk/p-B1A6Nu24.js.map +1 -0
  481. package/dist/sdk/p-B85MJLTf.js +2 -0
  482. package/dist/sdk/p-B85MJLTf.js.map +1 -0
  483. package/dist/sdk/p-B8N6Bwsa.js +2 -0
  484. package/dist/sdk/{p-DCG3L43i.js.map → p-B8N6Bwsa.js.map} +1 -1
  485. package/dist/sdk/p-Ba5szISo.js +2 -0
  486. package/dist/sdk/p-Ba5szISo.js.map +1 -0
  487. package/dist/sdk/p-BsJDptgj.js +14 -0
  488. package/dist/sdk/p-BsJDptgj.js.map +1 -0
  489. package/dist/sdk/{p-bpXpOZY_.js → p-C0Mo15qt.js} +2 -2
  490. package/dist/sdk/{p-bpXpOZY_.js.map → p-C0Mo15qt.js.map} +1 -1
  491. package/dist/sdk/p-C10MAuCE.js +2 -0
  492. package/dist/sdk/p-C10MAuCE.js.map +1 -0
  493. package/dist/sdk/p-CTy6pQSg.js +2 -0
  494. package/dist/sdk/p-CTy6pQSg.js.map +1 -0
  495. package/dist/sdk/p-CW6kGAuQ.js +2 -0
  496. package/dist/sdk/p-CW6kGAuQ.js.map +1 -0
  497. package/dist/sdk/{p-DdMKVWx8.js → p-CbSP8My1.js} +2 -2
  498. package/dist/sdk/{p-DdMKVWx8.js.map → p-CbSP8My1.js.map} +1 -1
  499. package/dist/sdk/p-CbzzI4uW.js +2 -0
  500. package/dist/sdk/p-CbzzI4uW.js.map +1 -0
  501. package/dist/sdk/p-CgT6fZjb.js +2 -0
  502. package/dist/sdk/p-CgT6fZjb.js.map +1 -0
  503. package/dist/sdk/p-CuHZ3IkE.js +2 -0
  504. package/dist/sdk/p-CuHZ3IkE.js.map +1 -0
  505. package/dist/sdk/p-Cysk_vik.js +2 -0
  506. package/dist/sdk/p-Cysk_vik.js.map +1 -0
  507. package/dist/sdk/p-D0ut3waq.js +2 -0
  508. package/dist/sdk/p-D0ut3waq.js.map +1 -0
  509. package/dist/sdk/{p-BigbTrKk.js → p-D2Rf-QGm.js} +2 -2
  510. package/dist/sdk/{p-BigbTrKk.js.map → p-D2Rf-QGm.js.map} +1 -1
  511. package/dist/sdk/{p-6rqGeAfT.js → p-D9yFO_ID.js} +2 -2
  512. package/dist/sdk/{p-6rqGeAfT.js.map → p-D9yFO_ID.js.map} +1 -1
  513. package/dist/sdk/p-DD_5soRi.js +2 -0
  514. package/dist/sdk/p-DD_5soRi.js.map +1 -0
  515. package/dist/sdk/p-DHuvvagO.js +2 -0
  516. package/dist/sdk/p-DHuvvagO.js.map +1 -0
  517. package/dist/sdk/p-DSMkJu9G.js +2 -0
  518. package/dist/sdk/p-DSMkJu9G.js.map +1 -0
  519. package/dist/sdk/p-DcirMfca.js +2 -0
  520. package/dist/sdk/p-DcirMfca.js.map +1 -0
  521. package/dist/sdk/p-J0cv5IOA.js +2 -0
  522. package/dist/sdk/p-J0cv5IOA.js.map +1 -0
  523. package/dist/sdk/p-_5evboqW.js +2 -0
  524. package/dist/sdk/{p-DSktNM_k.js.map → p-_5evboqW.js.map} +1 -1
  525. package/dist/sdk/{p-7ee2f2ab.entry.js → p-ac3a6bbf.entry.js} +2 -2
  526. package/dist/sdk/p-b498bcdd.entry.js +2 -0
  527. package/dist/sdk/p-b498bcdd.entry.js.map +1 -0
  528. package/dist/sdk/p-b5dd5b4c.entry.js +2 -0
  529. package/dist/sdk/p-b5dd5b4c.entry.js.map +1 -0
  530. package/dist/sdk/{p-6b061b18.entry.js → p-b99588a8.entry.js} +2 -2
  531. package/dist/sdk/p-bf9c27a8.entry.js +2 -0
  532. package/dist/sdk/p-bf9c27a8.entry.js.map +1 -0
  533. package/dist/sdk/p-c10d9b8e.entry.js +2 -0
  534. package/dist/sdk/p-c10d9b8e.entry.js.map +1 -0
  535. package/dist/sdk/{p-10e20afd.entry.js → p-c2634439.entry.js} +2 -2
  536. package/dist/sdk/p-d6777395.entry.js +2 -0
  537. package/dist/sdk/p-d6777395.entry.js.map +1 -0
  538. package/dist/sdk/p-dbfe7b29.entry.js +2 -0
  539. package/dist/sdk/p-dbfe7b29.entry.js.map +1 -0
  540. package/dist/sdk/p-def4e874.entry.js +2 -0
  541. package/dist/sdk/p-def4e874.entry.js.map +1 -0
  542. package/dist/sdk/p-e872a012.entry.js +2 -0
  543. package/dist/sdk/p-e872a012.entry.js.map +1 -0
  544. package/dist/sdk/p-eaaf3989.entry.js +2 -0
  545. package/dist/sdk/p-eaaf3989.entry.js.map +1 -0
  546. package/dist/sdk/p-fd46b459.entry.js +2 -0
  547. package/dist/sdk/{p-830778eb.entry.js.map → p-fd46b459.entry.js.map} +1 -1
  548. package/dist/sdk/sdk.esm.js +1 -1
  549. package/dist/sdk/u-conditional-render.entry.esm.js.map +1 -1
  550. package/dist/sdk/u-config.entry.esm.js.map +1 -1
  551. package/dist/sdk/u-error-message.entry.esm.js.map +1 -1
  552. package/dist/sdk/u-field.u-raw-field.entry.esm.js.map +1 -1
  553. package/dist/sdk/u-jump-to-service.entry.esm.js.map +1 -1
  554. package/dist/sdk/u-jump-to-unidy.entry.esm.js.map +1 -1
  555. package/dist/sdk/u-logout-button.u-signed-in.entry.esm.js.map +1 -1
  556. package/dist/sdk/u-magic-code-field.entry.esm.js.map +1 -1
  557. package/dist/sdk/u-missing-field.entry.esm.js.map +1 -1
  558. package/dist/sdk/u-missing-fields-submit-button.entry.esm.js.map +1 -1
  559. package/dist/sdk/u-newsletter-checkbox.entry.esm.js.map +1 -1
  560. package/dist/sdk/u-newsletter-logout-button.entry.esm.js.map +1 -1
  561. package/dist/sdk/u-newsletter-preference-checkbox.entry.esm.js.map +1 -1
  562. package/dist/sdk/u-newsletter-resend-doi-button.entry.esm.js.map +1 -1
  563. package/dist/sdk/u-newsletter-root.entry.esm.js.map +1 -1
  564. package/dist/sdk/u-newsletter-toggle-subscription-button.entry.esm.js.map +1 -1
  565. package/dist/sdk/u-pagination-button.entry.esm.js.map +1 -1
  566. package/dist/sdk/u-pagination-page.entry.esm.js.map +1 -1
  567. package/dist/sdk/u-passkey.entry.esm.js.map +1 -1
  568. package/dist/sdk/u-profile.u-submit-button.entry.esm.js.map +1 -1
  569. package/dist/sdk/u-reset-password-button.entry.esm.js.map +1 -1
  570. package/dist/sdk/u-send-magic-code-button.entry.esm.js.map +1 -1
  571. package/dist/sdk/u-signin-root.entry.esm.js.map +1 -1
  572. package/dist/sdk/u-signin-step.entry.esm.js.map +1 -1
  573. package/dist/sdk/u-social-login-button.entry.esm.js.map +1 -1
  574. package/dist/sdk/u-spinner.entry.esm.js.map +1 -1
  575. package/dist/sdk/u-ticketable-export.entry.esm.js.map +1 -0
  576. package/dist/sdk/u-ticketable-list.entry.esm.js.map +1 -1
  577. package/dist/types/api/client.d.ts +1 -1
  578. package/dist/types/api/index.d.ts +4 -4
  579. package/dist/types/api/standalone.d.ts +9 -9
  580. package/dist/types/auth/api/auth.d.ts +2 -3
  581. package/dist/types/auth/api/schemas.d.ts +19 -19
  582. package/dist/types/auth/auth-helpers.d.ts +1 -0
  583. package/dist/types/auth/components/jump-to-service/jump-to-service.d.ts +13 -5
  584. package/dist/types/auth/components/jump-to-unidy/jump-to-unidy.d.ts +13 -9
  585. package/dist/types/auth/components/logout-button/logout-button.d.ts +13 -4
  586. package/dist/types/auth/components/missing-field/missing-field.d.ts +1 -0
  587. package/dist/types/auth/components/missing-fields-submit-button/missing-fields-submit-button.d.ts +14 -2
  588. package/dist/types/auth/components/reset-pass-button/reset-pass-button.d.ts +13 -4
  589. package/dist/types/auth/components/social-logins/social-login-button.d.ts +11 -7
  590. package/dist/types/components.d.ts +73 -0
  591. package/dist/types/logger.d.ts +0 -34
  592. package/dist/types/newsletter/components/logout-button/logout-button.d.ts +13 -4
  593. package/dist/types/newsletter/components/newsletter-root/newsletter-root.d.ts +16 -2
  594. package/dist/types/newsletter/newsletter-helpers.d.ts +8 -2
  595. package/dist/types/newsletter/store/newsletter-store.d.ts +8 -1
  596. package/dist/types/profile/api/profile.d.ts +2 -2
  597. package/dist/types/profile/api/schemas.d.ts +21 -21
  598. package/dist/types/profile/components/raw-field/raw-field.d.ts +14 -2
  599. package/dist/types/shared/base/component.d.ts +46 -0
  600. package/dist/types/shared/base/has-slot-content.d.ts +10 -0
  601. package/dist/types/shared/component-utils.d.ts +20 -12
  602. package/dist/types/shared/components/conditional-render/conditional-render.d.ts +7 -2
  603. package/dist/types/shared/components/config/config.d.ts +7 -2
  604. package/dist/types/shared/components/error-message/error-message.d.ts +14 -2
  605. package/dist/types/shared/components/submit-button/submit-button.d.ts +13 -4
  606. package/dist/types/shared/context-utils.d.ts +73 -0
  607. package/dist/types/shared/utils/redirect-with-token.d.ts +21 -0
  608. package/dist/types/shared/utils/url-utils.d.ts +16 -0
  609. package/dist/types/ticketable/api/schemas.d.ts +16 -2
  610. package/dist/types/ticketable/api/subscriptions.d.ts +8 -3
  611. package/dist/types/ticketable/api/tickets.d.ts +8 -3
  612. package/dist/types/ticketable/components/pagination/pagination-button.d.ts +8 -4
  613. package/dist/types/ticketable/components/pagination/pagination-page.d.ts +8 -4
  614. package/dist/types/ticketable/components/ticketable-export/ticketable-export.d.ts +24 -0
  615. package/dist/types/ticketable/components/ticketable-list/ticketable-list.d.ts +10 -4
  616. package/dist/types/ticketable/index.d.ts +1 -0
  617. package/package.json +6 -2
  618. package/readme.md +248 -27
  619. package/dist/cjs/app-globals-hdkLqF51.js +0 -10
  620. package/dist/cjs/app-globals-hdkLqF51.js.map +0 -1
  621. package/dist/cjs/component-utils-bu3SY4dE.js +0 -42
  622. package/dist/cjs/component-utils-bu3SY4dE.js.map +0 -1
  623. package/dist/cjs/index-B325yXfO.js.map +0 -1
  624. package/dist/cjs/index-BzPYBLYC.js.map +0 -1
  625. package/dist/cjs/newsletter-helpers-hdDC5X-V.js.map +0 -1
  626. package/dist/cjs/newsletter-store-CupsLgO9.js.map +0 -1
  627. package/dist/cjs/pagination-store-zo48QpTm.js +0 -16
  628. package/dist/cjs/pagination-store-zo48QpTm.js.map +0 -1
  629. package/dist/components/pagination-store.js +0 -14
  630. package/dist/components/pagination-store.js.map +0 -1
  631. package/dist/esm/app-globals-iHhGdwBB.js +0 -8
  632. package/dist/esm/app-globals-iHhGdwBB.js.map +0 -1
  633. package/dist/esm/component-utils-BGq0leDV.js +0 -39
  634. package/dist/esm/component-utils-BGq0leDV.js.map +0 -1
  635. package/dist/esm/index-BVlbCQEX.js.map +0 -1
  636. package/dist/esm/index-FTKB5a1d.js.map +0 -1
  637. package/dist/esm/newsletter-helpers-fCpxzovf.js.map +0 -1
  638. package/dist/esm/newsletter-store-BB618FgS.js.map +0 -1
  639. package/dist/esm/pagination-store-DxmcQH8R.js +0 -14
  640. package/dist/esm/pagination-store-DxmcQH8R.js.map +0 -1
  641. package/dist/sdk/p-1a8973a6.entry.js +0 -2
  642. package/dist/sdk/p-35ad60ab.entry.js +0 -2
  643. package/dist/sdk/p-35ad60ab.entry.js.map +0 -1
  644. package/dist/sdk/p-3f352f38.entry.js +0 -2
  645. package/dist/sdk/p-3f352f38.entry.js.map +0 -1
  646. package/dist/sdk/p-468aaf62.entry.js +0 -2
  647. package/dist/sdk/p-468aaf62.entry.js.map +0 -1
  648. package/dist/sdk/p-4e2e6a13.entry.js +0 -2
  649. package/dist/sdk/p-4e2e6a13.entry.js.map +0 -1
  650. package/dist/sdk/p-57c8dc68.entry.js +0 -2
  651. package/dist/sdk/p-57c8dc68.entry.js.map +0 -1
  652. package/dist/sdk/p-594aec0c.entry.js +0 -2
  653. package/dist/sdk/p-594aec0c.entry.js.map +0 -1
  654. package/dist/sdk/p-60c8be64.entry.js +0 -2
  655. package/dist/sdk/p-60c8be64.entry.js.map +0 -1
  656. package/dist/sdk/p-760718d3.entry.js +0 -2
  657. package/dist/sdk/p-760718d3.entry.js.map +0 -1
  658. package/dist/sdk/p-77f541f3.entry.js +0 -2
  659. package/dist/sdk/p-77f541f3.entry.js.map +0 -1
  660. package/dist/sdk/p-830778eb.entry.js +0 -2
  661. package/dist/sdk/p-8839648e.entry.js +0 -2
  662. package/dist/sdk/p-8839648e.entry.js.map +0 -1
  663. package/dist/sdk/p-B6MYe-dh.js +0 -2
  664. package/dist/sdk/p-B6MYe-dh.js.map +0 -1
  665. package/dist/sdk/p-BGq0leDV.js +0 -2
  666. package/dist/sdk/p-BGq0leDV.js.map +0 -1
  667. package/dist/sdk/p-C_UZBwdm.js +0 -2
  668. package/dist/sdk/p-C_UZBwdm.js.map +0 -1
  669. package/dist/sdk/p-CbazSxaZ.js +0 -2
  670. package/dist/sdk/p-CbazSxaZ.js.map +0 -1
  671. package/dist/sdk/p-DCG3L43i.js +0 -2
  672. package/dist/sdk/p-DEUPZOH-.js +0 -2
  673. package/dist/sdk/p-DEUPZOH-.js.map +0 -1
  674. package/dist/sdk/p-DSktNM_k.js +0 -2
  675. package/dist/sdk/p-FTKB5a1d.js +0 -14
  676. package/dist/sdk/p-FTKB5a1d.js.map +0 -1
  677. package/dist/sdk/p-a7ffcff9.entry.js +0 -2
  678. package/dist/sdk/p-a7ffcff9.entry.js.map +0 -1
  679. package/dist/sdk/p-acaba1d5.entry.js +0 -2
  680. package/dist/sdk/p-acaba1d5.entry.js.map +0 -1
  681. package/dist/sdk/p-ae47a7a3.entry.js +0 -2
  682. package/dist/sdk/p-ae47a7a3.entry.js.map +0 -1
  683. package/dist/sdk/p-aec580e4.entry.js +0 -2
  684. package/dist/sdk/p-aec580e4.entry.js.map +0 -1
  685. package/dist/sdk/p-b63438ff.entry.js +0 -2
  686. package/dist/sdk/p-b63438ff.entry.js.map +0 -1
  687. package/dist/sdk/p-baaaa7f5.entry.js +0 -2
  688. package/dist/sdk/p-baaaa7f5.entry.js.map +0 -1
  689. package/dist/sdk/p-bba2da84.entry.js +0 -2
  690. package/dist/sdk/p-bba2da84.entry.js.map +0 -1
  691. package/dist/sdk/p-bc47f42b.entry.js +0 -2
  692. package/dist/sdk/p-bc47f42b.entry.js.map +0 -1
  693. package/dist/sdk/p-bd51e26f.entry.js +0 -2
  694. package/dist/sdk/p-bd51e26f.entry.js.map +0 -1
  695. package/dist/sdk/p-c3552f75.entry.js +0 -2
  696. package/dist/sdk/p-c3552f75.entry.js.map +0 -1
  697. package/dist/sdk/p-d9900482.entry.js +0 -2
  698. package/dist/sdk/p-d9900482.entry.js.map +0 -1
  699. package/dist/sdk/p-e6796c38.entry.js +0 -2
  700. package/dist/sdk/p-e6796c38.entry.js.map +0 -1
  701. package/dist/sdk/p-f272eb38.entry.js +0 -2
  702. package/dist/sdk/p-f272eb38.entry.js.map +0 -1
  703. package/dist/sdk/p-f4a47ef8.entry.js +0 -2
  704. package/dist/sdk/p-f4a47ef8.entry.js.map +0 -1
  705. package/dist/sdk/p-f608e64a.entry.js +0 -2
  706. package/dist/sdk/p-f608e64a.entry.js.map +0 -1
  707. package/dist/sdk/p-f762ac70.entry.js +0 -2
  708. package/dist/sdk/p-f762ac70.entry.js.map +0 -1
  709. package/dist/sdk/p-l6NinBiD.js +0 -2
  710. package/dist/sdk/p-l6NinBiD.js.map +0 -1
  711. /package/dist/sdk/{p-88beb872.entry.js.map → p-8412762c.entry.js.map} +0 -0
  712. /package/dist/sdk/{p-bcca06f1.entry.js.map → p-96860b09.entry.js.map} +0 -0
  713. /package/dist/sdk/{p-7ee2f2ab.entry.js.map → p-ac3a6bbf.entry.js.map} +0 -0
  714. /package/dist/sdk/{p-6b061b18.entry.js.map → p-b99588a8.entry.js.map} +0 -0
  715. /package/dist/sdk/{p-10e20afd.entry.js.map → p-c2634439.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as s,g as e,h as r}from"./p-BsJDptgj.js";import{s as t,m as i}from"./p-2bKltz_F.js";import"./p-C0Mo15qt.js";import"./p-D9yFO_ID.js";const l=class{constructor(e){s(this,e)}get el(){return e(this)}componentClassName;render(){if(t.step!=="missing-fields")return null;const s=i();return r("div",{class:"missing-fields"},r("form",null,s.map((s=>r("u-field",{key:s,field:s,renderDefaultLabel:true,"class-name":this.componentClassName})))))}};export{l as u_missing_field};
2
+ //# sourceMappingURL=p-d6777395.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["registerInstance","getElement","h","state","missingFieldNames","MissingField","constructor","hostRef","this","el","componentClassName","render","step","fieldNames","class","map","fieldName","key","field","renderDefaultLabel"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAYC,MAAS,8BAC5CC,OAAYC,MAAyB,wBAC5C,wBACA,kBAEP,MAAMC,EAAe,MACjB,WAAAC,CAAYC,GACRP,EAAiBQ,KAAMD,EAC3B,CACA,MAAIE,GAAO,OAAOR,EAAWO,KAAO,CACpCE,mBACA,MAAAC,GACI,GAAIR,EAAMS,OAAS,iBACf,OAAO,KACX,MAAMC,EAAaT,IACnB,OAAQF,EAAE,MAAO,CAAEY,MAAO,kBAAoBZ,EAAE,OAAQ,KAAMW,EAAWE,KAAKC,GAAed,EAAE,UAAW,CAAEe,IAAKD,EAAWE,MAAOF,EAAWG,mBAAoB,KAAM,aAAcX,KAAKE,wBAC/L,UAGKL","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as s,h as t}from"./p-BsJDptgj.js";import{a as i,u as e}from"./p-DHuvvagO.js";import{s as h,n as r}from"./p-C10MAuCE.js";import"./p-Ba5szISo.js";import"./p-_5evboqW.js";import"./p-C0Mo15qt.js";import"./p-D9yFO_ID.js";import"./p-D2Rf-QGm.js";import"./p-2bKltz_F.js";import"./p-CbSP8My1.js";const a=class{constructor(t){s(this,t)}internalName;preferenceIdentifier;checked=false;componentClassName;loading=false;existingSubscriptions=[];checkedPreferences=[];storeUnsubscribe;componentWillLoad(){this.subscribeToStore();this.initializeCheckedState();if(this.checked){h(this.internalName,this.preferenceIdentifier)}}disconnectedCallback(){this.storeUnsubscribe?.()}subscribeToStore(){this.storeUnsubscribe=r.onChange("existingSubscriptions",(s=>{this.existingSubscriptions=s}));r.onChange("checkedNewsletters",(s=>{this.checkedPreferences=s[this.internalName]||[]}));this.existingSubscriptions=r.state.existingSubscriptions;this.checkedPreferences=r.state.checkedNewsletters[this.internalName]||[]}initializeCheckedState(){if(i(this.internalName)){return}if(this.checked){this.syncToStore(true)}}get subscription(){return this.existingSubscriptions.find((s=>s.newsletter_internal_name===this.internalName))}get isSubscribed(){return this.subscription!==undefined}get isConfirmed(){return this.subscription?.confirmed??false}get isDisabled(){return this.loading||this.isSubscribed&&!this.isConfirmed}get isChecked(){return this.checkedPreferences.includes(this.preferenceIdentifier)}syncToStore(s){const t=r.state.checkedNewsletters[this.internalName]||[];if(s){if(!t.includes(this.preferenceIdentifier)){r.set("checkedNewsletters",{...r.state.checkedNewsletters,[this.internalName]:[...t,this.preferenceIdentifier]})}}else{r.set("checkedNewsletters",{...r.state.checkedNewsletters,[this.internalName]:t.filter((s=>s!==this.preferenceIdentifier))})}}async persistIfSubscribed(){if(this.isSubscribed&&this.isConfirmed){this.loading=true;await e(this.internalName);this.loading=false}}handleChange=async()=>{if(this.isDisabled)return;this.syncToStore(!this.isChecked);await this.persistIfSubscribed()};async toggle(){await this.handleChange()}async setChecked(s){if(this.isDisabled)return;if(s!==this.isChecked){this.syncToStore(s);await this.persistIfSubscribed()}}render(){return t("input",{key:"7160b9aeb9d1b9e4c17dede29adf0b48bf4a1c06",type:"checkbox",checked:this.isChecked,disabled:this.isDisabled,onChange:this.handleChange,class:this.componentClassName,"aria-checked":this.isChecked,"aria-busy":this.loading,"aria-disabled":this.isDisabled,"data-internal-name":this.internalName,"data-preference-identifier":this.preferenceIdentifier})}};export{a as u_newsletter_preference_checkbox};
2
+ //# sourceMappingURL=p-dbfe7b29.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["registerInstance","h","isSubscribed","updateSubscriptionPreferences","storeDefaultPreference","newsletterStore","NewsletterPreferenceCheckbox","constructor","hostRef","this","internalName","preferenceIdentifier","checked","componentClassName","loading","existingSubscriptions","checkedPreferences","storeUnsubscribe","componentWillLoad","subscribeToStore","initializeCheckedState","disconnectedCallback","onChange","subscriptions","checkedNewsletters","state","syncToStore","subscription","find","sub","newsletter_internal_name","undefined","isConfirmed","confirmed","isDisabled","isChecked","includes","add","currentPreferences","set","filter","p","persistIfSubscribed","handleChange","async","toggle","setChecked","render","key","type","disabled","class"],"sources":["0"],"mappings":"YAAcA,OAAkBC,MAAS,8BAC3BC,OAAmBC,MAAqC,8BACxDC,OAA6BC,MAAuB,wBAC3D,wBACA,wBACA,wBACA,wBACA,wBACA,wBACA,kBAEP,MAAMC,EAA+B,MACjC,WAAAC,CAAYC,GACRR,EAAiBS,KAAMD,EAC3B,CACAE,aACAC,qBACAC,QAAU,MACVC,mBACAC,QAAU,MACVC,sBAAwB,GACxBC,mBAAqB,GACrBC,iBACA,iBAAAC,GACIT,KAAKU,mBACLV,KAAKW,yBACL,GAAIX,KAAKG,QAAS,CACdR,EAAuBK,KAAKC,aAAcD,KAAKE,qBACnD,CACJ,CACA,oBAAAU,GACIZ,KAAKQ,oBACT,CACA,gBAAAE,GACIV,KAAKQ,iBAAmBZ,EAAgBiB,SAAS,yBAA0BC,IACvEd,KAAKM,sBAAwBQ,CAAa,IAE9ClB,EAAgBiB,SAAS,sBAAuBE,IAC5Cf,KAAKO,mBAAqBQ,EAAmBf,KAAKC,eAAiB,EAAE,IAEzED,KAAKM,sBAAwBV,EAAgBoB,MAAMV,sBACnDN,KAAKO,mBAAqBX,EAAgBoB,MAAMD,mBAAmBf,KAAKC,eAAiB,E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d,SACXH,KAAKiC,qBACf,CACJ,CACA,MAAAK,GACI,OAAQ9C,EAAE,QAAS,CAAE+C,IAAK,2CAA4CC,KAAM,WAAYrC,QAASH,KAAK0B,UAAWe,SAAUzC,KAAKyB,WAAYZ,SAAUb,KAAKkC,aAAcQ,MAAO1C,KAAKI,mBAAoB,eAAgBJ,KAAK0B,UAAW,YAAa1B,KAAKK,QAAS,gBAAiBL,KAAKyB,WAAY,qBAAsBzB,KAAKC,aAAc,6BAA8BD,KAAKE,sBACtX,UAGKL","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as s,e as i}from"./p-BsJDptgj.js";import{U as n}from"./p-B1A6Nu24.js";const e=class extends(n()){constructor(s){super();t(this,s)}customClass;paginationMeta=null;store=null;unsubscribe=null;componentWillLoad(){this.store=this.element.closest("u-ticketable-list")?.store;if(!this.store){this.logger.warn("TicketableList component not found");return}this.paginationMeta=this.store.state.paginationMeta;this.unsubscribe=this.store.onChange("paginationMeta",(t=>{this.paginationMeta=t}))}disconnectedCallback(){this.unsubscribe?.()}render(){if(!this.store){this.logger.warn("TicketableList component not found");return null}if(!this.paginationMeta){return null}return s(i,null,s("span",{class:this.customClass},"Page ",this.paginationMeta.page," of ",this.paginationMeta.last))}};export{e as u_pagination_page};
2
+ //# sourceMappingURL=p-def4e874.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["registerInstance","h","Host","UnidyComponent","PaginationPage","constructor","hostRef","super","this","customClass","paginationMeta","store","unsubscribe","componentWillLoad","element","closest","logger","warn","state","onChange","value","disconnectedCallback","render","class","page","last"],"sources":["0"],"mappings":"YAAcA,OAAkBC,OAAQC,MAAY,8BACtCC,MAAsB,kBAEpC,MAAMC,EAAiB,cAAcD,KACjC,WAAAE,CAAYC,GACRC,QACAP,EAAiBQ,KAAMF,EAC3B,CACAG,YACAC,eAAiB,KACjBC,MAAQ,KACRC,YAAc,KACd,iBAAAC,GACIL,KAAKG,MAAQH,KAAKM,QAAQC,QAAQ,sBAAsBJ,MACxD,IAAKH,KAAKG,MAAO,CACbH,KAAKQ,OAAOC,KAAK,sCACjB,MACJ,CAEAT,KAAKE,eAAiBF,KAAKG,MAAMO,MAAMR,eAEvCF,KAAKI,YAAcJ,KAAKG,MAAMQ,SAAS,kBAAmBC,IACtDZ,KAAKE,eAAiBU,CAAK,GAEnC,CACA,oBAAAC,GACIb,KAAKI,eACT,CACA,MAAAU,GACI,IAAKd,KAAKG,MAAO,CACbH,KAAKQ,OAAOC,KAAK,sCACjB,OAAO,IACX,CACA,IAAKT,KAAKE,eAAgB,CACtB,OAAO,IACX,CACA,OAAQT,EAAEC,EAAM,KAAMD,EAAE,OAAQ,CAAEsB,MAAOf,KAAKC,aAAe,QAASD,KAAKE,eAAec,KAAM,OAAQhB,KAAKE,eAAee,MAChI,UAGKrB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e}from"./p-BsJDptgj.js";import{i}from"./p-Ba5szISo.js";import{s as o}from"./p-2bKltz_F.js";import"./p-_5evboqW.js";import"./p-C0Mo15qt.js";import"./p-D9yFO_ID.js";import"./p-D2Rf-QGm.js";import"./p-CbSP8My1.js";const n='/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ring-offset-width:0px;--tw-border-style:solid;--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:host,:root{--u-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--u-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--u-color-slate-200:oklch(92.9% .013 255.508);--u-spacing:.25rem;--u-text-lg:1.125rem;--u-text-lg--line-height:1.55556;--u-radius-lg:.5rem;--u-default-transition-duration:.15s;--u-default-transition-timing-function:cubic-bezier(.4,0,.2,1);--u-default-font-family:var(--u-font-sans);--u-default-mono-font-family:var(--u-font-mono);--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{font-family:var(--u-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--u-default-font-feature-settings,normal);font-variation-settings:var(--u-default-font-variation-settings,normal);-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--u-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--u-default-mono-font-feature-settings,normal);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--u-default-mono-font-variation-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:currentColor;color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.u\\:flex{display:flex}.u\\:h-\\[50px\\]{height:50px}.u\\:w-\\[50px\\]{width:50px}.u\\:w-full{width:100%}.u\\:justify-center{justify-content:center}.u\\:gap-0\\.5{gap:calc(var(--u-spacing)*.5)}.u\\:rounded-lg{border-radius:var(--u-radius-lg)}.u\\:border-2{border-style:var(--tw-border-style);border-width:2px}.u\\:border-solid{--tw-border-style:solid;border-style:solid}.u\\:border-slate-200{border-color:var(--u-color-slate-200)}.u\\:text-center{text-align:center}.u\\:text-lg{font-size:var(--u-text-lg);line-height:var(--tw-leading,var(--u-text-lg--line-height))}.u\\:transition-colors{transition-duration:var(--tw-duration,var(--u-default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--u-default-transition-timing-function))}.u\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.u\\:outline-none{--tw-outline-style:none;outline-style:none}.fixed{position:fixed}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}} /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}';const r=class{constructor(e){t(this,e)}componentClassName="";codeDigits=["","","",""];inputRefs=[];handleInput=(t,e)=>{const i=t.target;const o=i.value.replace(/[^0-9]/g,"");const n=o.slice(-1);i.value=n;const r=[...this.codeDigits];r[e]=n;this.codeDigits=r;const a=r.join("");if(o&&e<3){const t=this.inputRefs[e+1];if(t){t.focus()}}if(a.length===4){this.authenticateWithCode(a)}};handleKeyDown=(t,e)=>{if(t.key==="Backspace"&&!this.codeDigits[e]&&e>0){const t=this.inputRefs[e-1];if(t){t.focus()}}};handlePaste=t=>{t.preventDefault();const e=t.clipboardData?.getData("text")||"";const i=e.replace(/[^0-9]/g,"").slice(0,4).split("");while(i.length<4){i.push("")}this.codeDigits=i;const o=i.findIndex((t=>!t));const n=o!==-1?o:3;if(this.inputRefs[n]){this.inputRefs[n].focus()}const r=i.join("");if(r.length===4){this.authenticateWithCode(r)}};authenticateWithCode=async t=>{const e=await i.getInstance();await e.helpers.authenticateWithMagicCode(t)};render(){if(o.step!=="magic-code"){return null}return e("div",{class:`u:flex u:gap-0.5 u:w-full u:justify-center ${this.componentClassName}`},this.codeDigits.map(((t,i)=>e("input",{key:i,ref:t=>{if(t)this.inputRefs[i]=t},id:`digit-input-${i+1}`,type:"text",inputmode:"numeric",maxlength:"1",value:t,disabled:o.loading,onInput:t=>this.handleInput(t,i),onKeyDown:t=>this.handleKeyDown(t,i),onPaste:i===0?this.handlePaste:undefined,"aria-label":`Digit ${i+1} of ${this.codeDigits.length}`,class:"u:w-[50px] u:h-[50px] u:text-center u:text-lg u:border-2 u:border-solid u:border-slate-200 u:rounded-lg u:outline-none u:transition-colors u:duration-200",part:"digit-input"}))))}};r.style=n;export{r as u_magic_code_field};
2
+ //# sourceMappingURL=p-e872a012.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["registerInstance","h","Auth","state","magicCodeFieldCss","MagicCodeField","constructor","hostRef","this","componentClassName","codeDigits","inputRefs","handleInput","event","index","target","value","replace","sanitizedDigit","slice","newDigits","fullCode","join","nextInput","focus","length","authenticateWithCode","handleKeyDown","key","prevInput","handlePaste","preventDefault","pastedData","clipboardData","getData","digits","split","push","firstEmptyIndex","findIndex","digit","targetIndex","async","code","authInstance","getInstance","helpers","authenticateWithMagicCode","render","step","class","map","ref","el","id","type","inputmode","maxlength","disabled","loading","onInput","onKeyDown","onPaste","undefined","part","style"],"sources":["0"],"mappings":"YAAcA,OAAkBC,MAAS,yBAC3BC,MAAY,8BACZC,MAAa,wBACpB,wBACA,wBACA,wBACA,wBACA,kBAEP,MAAMC,EAAoB,86PAE1B,MAAMC,EAAiB,MACnB,WAAAC,CAAYC,GACRP,EAAiBQ,KAAMD,EAC3B,CACAE,mBAAqB,GACrBC,WAAa,CAAC,GAAI,GAAI,GAAI,IAC1BC,UAAY,GACZC,YAAc,CAACC,EAAOC,KAClB,MAAMC,EAASF,EAAME,OACrB,MAAMC,EAAQD,EAAOC,MAAMC,QAAQ,UAAW,IAC9C,MAAMC,EAAiBF,EAAMG,OAAO,GACpCJ,EAAOC,MAAQE,EACf,MAAME,EAAY,IAAIZ,KAAKE,YAC3BU,EAAUN,GAASI,EACnBV,KAAKE,WAAaU,EAClB,MAAMC,EAAWD,EAAUE,KAAK,IAChC,GAAIN,G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AAQ,IAAKyC,KAAM,OAAQC,UAAW,UAAWC,UAAW,IAAKzC,MAAOwB,EAAOkB,SAAUvD,EAAMwD,QAASC,QAAU/C,GAAUL,KAAKI,YAAYC,EAAOC,GAAQ+C,UAAYhD,GAAUL,KAAKmB,cAAcd,EAAOC,GAAQgD,QAAShD,IAAU,EAAIN,KAAKsB,YAAciC,UAAW,aAAc,SAASjD,EAAQ,QAAQN,KAAKE,WAAWe,SAAUyB,MAAO,4JAA6Jc,KAAM,kBAElhB,GAEJ3D,EAAe4D,MAAQ7D,SAEdC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,e as i}from"./p-BsJDptgj.js";import{s as o}from"./p-2bKltz_F.js";import{t as n}from"./p-D2Rf-QGm.js";import{n as r}from"./p-C10MAuCE.js";import{U as s}from"./p-B1A6Nu24.js";import{H as a}from"./p-DSMkJu9G.js";import{u as l}from"./p-D9yFO_ID.js";import"./p-C0Mo15qt.js";const d='/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer theme{:host,:root{--u-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--u-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--u-default-font-family:var(--u-font-sans);--u-default-mono-font-family:var(--u-font-mono);--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{font-family:var(--u-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--u-default-font-feature-settings,normal);font-variation-settings:var(--u-default-font-variation-settings,normal);-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--u-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--u-default-mono-font-feature-settings,normal);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--u-default-mono-font-variation-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:currentColor;color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.u\\:block{display:block}} /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ring-offset-width:0px;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer base{}@layer components;@layer utilities{.visible{visibility:visible}.hidden{display:none}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}';const f=class extends(s(a)){constructor(e){super();t(this,e)}componentClassName="";for;errorMessages;detectContext(){if(this.element.closest("u-signin-root")||this.element.closest("u-signin-step"))return"auth";if(this.element.closest("u-profile"))return"profile";if(this.element.closest("u-newsletter-root"))return"newsletter";if(this.for==="general"||this.for==="connection")return"other";throw new Error("No context found for error message. Make sure you are using the component within a u-signin-root, u-profile, or u-newsletter-root.")}get context(){return this.detectContext()}getAuthErrorMessage(t){if(this.errorMessages?.[t]){return this.errorMessages[t]}const e=n(`errors.${t}`);if(e!==`errors.${t}`){return e}return t||n("errors.unknown",{defaultValue:"An error occurred"})}getNewsletterErrorMessage(t){const e=`newsletter.errors.${t}`;const i=n(e);if(i!==e){return i}return n("errors.unknown",{defaultValue:"An unknown error occurred"})}getErrorMessage(t){if(this.context==="auth"){return this.getAuthErrorMessage(t)}const e=r.state.additionalFieldErrors[this.for];if(e){return this.translateValidationError(e)}return this.getNewsletterErrorMessage(t)}translateValidationError(t){const e=`errors.${this.for}.${t}`;const i=n(e);if(i!==e){return i}const o=`errors.validation.${t}`;const r=n(o);if(r!==o){return r}return n("errors.unknown",{defaultValue:"An unknown error occurred"})}getAuthErrorCode(){const t=this.for;if(t==="connection"){return l.backendConnected?null:"connection_failed"}if(t==="general"){return o.globalErrors.auth}return o.errors[t]}getNewsletterErrorCode(){const t=r.state.errors[this.for];if(t)return t;const e=r.state.additionalFieldErrors[this.for];return e??null}render(){const t=this.context==="newsletter"?this.getNewsletterErrorCode():this.getAuthErrorCode();let o=!!t;if(t==="connection_failed"&&this.for!=="general"&&this.for!=="connection"){o=false}const n=o?this.getErrorMessage(t):null;const r=n?.includes("\n")?e("div",{style:{whiteSpace:"pre-line"}},n):n;return e(i,{key:"3389f45bb7effe946394ec1b3e84ff867257d4bc",class:`u:block ${this.componentClassName}`,hidden:!o,style:{display:o?undefined:"none"},"aria-hidden":!o?"true":null,"aria-live":"polite"},this.hasSlot?e("slot",null):r)}};f.style=d;export{f as u_error_message};
2
+ //# sourceMappingURL=p-eaaf3989.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["registerInstance","h","Host","state","t","newsletterStore","UnidyComponent","HasSlotContent","unidyState","errorMessageCss","ErrorMessage","constructor","hostRef","super","this","componentClassName","for","errorMessages","detectContext","element","closest","Error","context","getAuthErrorMessage","errorCode","translatedError","defaultValue","getNewsletterErrorMessage","errorIdentifier","translationKey","translated","getErrorMessage","fieldError","additionalFieldErrors","translateValidationError","fieldSpecificKey","fieldSpecific","genericKey","generic","getAuthErrorCode","forValue","backendConnected","globalErrors","auth","errors","getNewsletterErrorCode","newsletterError","render","shouldShow","errorMessage","formattedMessage","includes","style","whiteSpace","key","class","hidden","display","undefined","hasSlot"],"sources":["0"],"mappings":"YAAcA,OAAkBC,OAAQC,MAAY,8BACtCC,MAAa,8BAClBC,MAAS,8BACJC,MAAuB,8BACvBC,MAAsB,8BACtBC,MAAsB,8BACtBC,MAAkB,wBACzB,kBAEP,MAAMC,EAAkB,ywNAExB,MAAMC,EAAe,cAAcJ,EAAeC,IAC9C,WAAAI,CAAYC,GACRC,QACAb,EAAiBc,KAAMF,EAC3B,CACAG,mBAAqB,GACrBC,IACAC,cACA,aAAAC,GACI,GAAIJ,KAAKK,QAAQC,QAAQ,kBAAoBN,KAAKK,QAAQC,QAAQ,iBAC9D,MAAO,OACX,GAAIN,KAAKK,QAAQC,QAAQ,aACrB,MAAO,UACX,GAAIN,KAAKK,QAAQC,QAAQ,qBACrB,MAAO,aACX,GAAIN,KAAKE,MAAQ,WAAaF,KAAKE,MAAQ,aACvC,MAAO,QACX,MAAM,IAAIK,MAAM,qIACpB,CACA,WAAIC,GACA,OAAOR,KAAKI,eAChB,CACA,mBAAAK,CAAoBC,GAChB,GAAIV,KAAKG,gBAAgBO,GAAY,CACjC,OAAOV,KAAKG,cAAcO,EAC9B,CACA,MAAMC,EAAkBrB,EAAE,UAAUoB,KACpC,GAAIC,IAAoB,UAAUD,IAAa,CAC3C,OAAOC,CACX,CACA,OAAOD,GAAapB,EAAE,iBAAkB,CAAEsB,aAAc,qBAC5D,CACA,yBAAAC,CAA0BC,GACtB,MAAMC,EAAiB,qBAAqBD,IAC5C,MAAME,EAAa1B,EAAEyB,GACrB,GAAIC,IAAeD,EAAgB,CAC/B,OAAOC,CACX,CACA,OAAO1B,EAAE,iBAAkB,CAAEsB,aAAc,6BAC/C,CACA,eAAAK,CAAgBP,GACZ,GAAIV,KAAKQ,UAAY,OAAQ,CACzB,OAAOR,KAAKS,oBAAoBC,EACpC,CACA,MAAMQ,EAAa3B,EAAgBF,MAAM8B,sBAAsBnB,KAAKE,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AO,CAAEK,QAAST,EAAaU,UAAY,QAAU,eAAgBV,EAAa,OAAS,KAAM,YAAa,UAAYlC,KAAK6C,QAAU1D,EAAE,OAAQ,MAAQiD,EACpS,GAEJxC,EAAa0C,MAAQ3C,SAEZC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,g as o,h as r,e}from"./p-BsJDptgj.js";import{t as n}from"./p-D2Rf-QGm.js";import{u as s}from"./p-D9yFO_ID.js";import{s as i,a}from"./p-2bKltz_F.js";import"./p-C0Mo15qt.js";const u=class{constructor(o){t(this,o)}get el(){return o(this)}for;componentClassName="";redirectUri=window.location.href;getButtonText(){return n("buttons.registration",{defaultValue:"Register New Account"})}shouldRender(){if(i.errors.email==="account_not_found"){a.setStep("registration");return this.for==="email"}return false}getAuthUrl(){const t=s.baseUrl;const o=this.redirectUri?encodeURIComponent(this.redirectUri):t;const r=encodeURIComponent(i.email);return`${t}/logins?email=${r}&sdk_redirect_uri=${o}`}handleClick=async t=>{t.preventDefault();if(i.errors.email==="account_not_found"&&i.step==="registration"){window.location.href=this.getAuthUrl()}};render(){if(!this.shouldRender()){return null}return r(e,null,r("slot",{name:"registration-content"}),r("button",{type:"submit",class:this.componentClassName,onClick:this.handleClick,"aria-live":"polite"},this.getButtonText()))}};export{u as u_registration_button};
2
+ //# sourceMappingURL=p-fd46b459.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["registerInstance","getElement","h","Host","t","unidyState","state","authStore","RegistrationButton","constructor","hostRef","this","el","for","componentClassName","redirectUri","window","location","href","getButtonText","defaultValue","shouldRender","errors","email","setStep","getAuthUrl","baseUrl","encodeURIComponent","encodedEmail","handleClick","async","event","preventDefault","step","render","name","type","class","onClick"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAYC,OAAQC,MAAY,8BAC5DC,MAAS,8BACJC,MAAkB,8BAClBC,EAAYC,MAAiB,wBACpC,kBAEP,MAAMC,EAAqB,MACvB,WAAAC,CAAYC,GACRV,EAAiBW,KAAMD,EAC3B,CACA,MAAIE,GAAO,OAAOX,EAAWU,KAAO,CACpCE,IACAC,mBAAqB,GACrBC,YAAcC,OAAOC,SAASC,KAC9B,aAAAC,GACI,OAAOf,EAAE,uBAAwB,CAAEgB,aAAc,wBACrD,CACA,YAAAC,GACI,GAAIf,EAAMgB,OAAOC,QAAU,oBAAqB,CAC5ChB,EAAUiB,QAAQ,gBAClB,OAAOb,KAAKE,MAAQ,OACxB,CACA,OAAO,KACX,CACA,UAAAY,GACI,MAAMC,EAAUrB,EAAWqB,QAC3B,MAAMX,EAAcJ,KAAKI,YAAcY,mBAAmBhB,KAAKI,aAAeW,EAC9E,MAAME,EAAeD,mBAAmBrB,EAAMiB,OAC9C,MAAO,GAAGG,kBAAwBE,sBAAiCb,GACvE,CACAc,YAAcC,MAAOC,IACjBA,EAAMC,iBACN,GAAI1B,EAAMgB,OAAOC,QAAU,qBAAuBjB,EAAM2B,OAAS,eAAgB,CAC7EjB,OAAOC,SAASC,KAAOP,KAAKc,YAChC,GAEJ,MAAAS,GACI,IAAKvB,KAAKU,eAAgB,CACtB,OAAO,IACX,CACA,OAAQnB,EAAEC,EAAM,KAAMD,EAAE,OAAQ,CAAEiC,KAAM,yBAA2BjC,EAAE,SAAU,CAAEkC,KAAM,SAAUC,MAAO1B,KAAKG,mBAAoBwB,QAAS3B,KAAKkB,YAAa,YAAa,UAAYlB,KAAKQ,iBAC9L,UAGKX","ignoreList":[]}
1
+ {"version":3,"names":["registerInstance","getElement","h","Host","t","unidyState","state","authStore","RegistrationButton","constructor","hostRef","this","el","for","componentClassName","redirectUri","window","location","href","getButtonText","defaultValue","shouldRender","errors","email","setStep","getAuthUrl","baseUrl","encodeURIComponent","encodedEmail","handleClick","async","event","preventDefault","step","render","name","type","class","onClick"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAYC,EAAQC,MAAY,8BAC5DC,MAAS,8BACJC,MAAkB,8BAClBC,EAAYC,MAAiB,wBACpC,kBAEP,MAAMC,EAAqB,MACvB,WAAAC,CAAYC,GACRV,EAAiBW,KAAMD,EAC3B,CACA,MAAIE,GAAO,OAAOX,EAAWU,KAAO,CACpCE,IACAC,mBAAqB,GACrBC,YAAcC,OAAOC,SAASC,KAC9B,aAAAC,GACI,OAAOf,EAAE,uBAAwB,CAAEgB,aAAc,wBACrD,CACA,YAAAC,GACI,GAAIf,EAAMgB,OAAOC,QAAU,oBAAqB,CAC5ChB,EAAUiB,QAAQ,gBAClB,OAAOb,KAAKE,MAAQ,OACxB,CACA,OAAO,KACX,CACA,UAAAY,GACI,MAAMC,EAAUrB,EAAWqB,QAC3B,MAAMX,EAAcJ,KAAKI,YAAcY,mBAAmBhB,KAAKI,aAAeW,EAC9E,MAAME,EAAeD,mBAAmBrB,EAAMiB,OAC9C,MAAO,GAAGG,kBAAwBE,sBAAiCb,GACvE,CACAc,YAAcC,MAAOC,IACjBA,EAAMC,iBACN,GAAI1B,EAAMgB,OAAOC,QAAU,qBAAuBjB,EAAM2B,OAAS,eAAgB,CAC7EjB,OAAOC,SAASC,KAAOP,KAAKc,YAChC,GAEJ,MAAAS,GACI,IAAKvB,KAAKU,eAAgB,CACtB,OAAO,IACX,CACA,OAAQnB,EAAEC,EAAM,KAAMD,EAAE,OAAQ,CAAEiC,KAAM,yBAA2BjC,EAAE,SAAU,CAAEkC,KAAM,SAAUC,MAAO1B,KAAKG,mBAAoBwB,QAAS3B,KAAKkB,YAAa,YAAa,UAAYlB,KAAKQ,iBAC9L,UAGKX","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as e,B as a,c as n,w as t,N as o,H as i,b as l}from"./p-FTKB5a1d.js";export{s as setNonce}from"./p-FTKB5a1d.js";import{g as c}from"./p-C_UZBwdm.js";var r=()=>{if(a.isDev&&!a.isTesting){n("Running in development mode.")}if(a.cloneNodeFix){p(i.prototype)}const s=a.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${o}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===o)):null;const l=import.meta.url;const c=a.scriptDataOpts?(s||{})["data-opts"]||{}:{};if(l!==""){c.resourcesUrl=new URL(".",l).href}return e(c)};var p=e=>{const a=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return a.call(this,e)}const s=a.call(this,false);const n=this.childNodes;if(e){for(let e=0;e<n.length;e++){if(n[e].nodeType!==2){s.appendChild(n[e].cloneNode(true))}}}return s}};r().then((async e=>{await c();return l([["p-6b061b18",[[768,"u-full-profile",{fields:[1],countryCodeDisplayOption:[1,"country-code-display-option"]}]]],["p-bd51e26f",[[256,"u-missing-field"]]],["p-bc47f42b",[[772,"u-jump-to-service",{serviceId:[1,"service-id"],newtab:[4],componentClassName:[1,"class-name"],redirectUri:[1,"redirect-uri"],scopes:[1],skipOauthAuthorization:[4,"skip-oauth-authorization"],loading:[32]}]]],["p-bba2da84",[[772,"u-jump-to-unidy",{path:[1],newtab:[4],noAuth:[4,"no-auth"],componentClassName:[1,"class-name"],loading:[32]}]]],["p-594aec0c",[[257,"u-missing-fields-submit-button"]]],["p-8839648e",[[768,"u-newsletter-resend-doi-button",{internalName:[1,"internal-name"],componentClassName:[1,"class-name"],isResending:[32]}]]],["p-acaba1d5",[[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]}]]],["p-77f541f3",[[772,"u-logout-button",{componentClassName:[1,"class-name"],reloadOnSuccess:[4,"reload-on-success"]}],[769,"u-signed-in",{componentClassName:[1,"class-name"],not:[4]}]]],["p-b63438ff",[[769,"u-conditional-render",{when:[1],is:[1],not:[4],conditionFunction:[16]}]]],["p-d9900482",[[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"]}]]],["p-10e20afd",[[772,"u-email-field",{componentClassName:[1,"class-name"],ariaLabel:[1,"aria-label"],disabled:[4],emailValue:[32]}]]],["p-a7ffcff9",[[769,"u-error-message",{componentClassName:[1,"class-name"],for:[1],errorMessages:[16]}]]],["p-88beb872",[[768,"u-flash-message",{componentClassName:[1,"class-name"],removeAfterSeconds:[2,"remove-after-seconds"]}]]],["p-3f352f38",[[768,"u-magic-code-field",{componentClassName:[1,"class-name"],codeDigits:[32]}]]],["p-4e2e6a13",[[768,"u-newsletter-checkbox",{internalName:[1,"internal-name"],checked:[4],componentClassName:[1,"class-name"],toggle:[64],setChecked:[64]}]]],["p-7ee2f2ab",[[768,"u-newsletter-consent-checkbox",{componentClassName:[1,"class-name"],toggle:[64],setChecked:[64]}]]],["p-c3552f75",[[772,"u-newsletter-logout-button",{componentClassName:[1,"class-name"]}]]],["p-760718d3",[[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]}]]],["p-57c8dc68",[[772,"u-newsletter-root",{componentClassName:[1,"class-name"],submit:[64]}]]],["p-60c8be64",[[772,"u-pagination-button",{direction:[1],customClass:[1,"custom-class"],paginationMeta:[32]}]]],["p-468aaf62",[[768,"u-pagination-page",{customClass:[1,"custom-class"],paginationMeta:[32]}]]],["p-e6796c38",[[768,"u-passkey",{disabled:[4],componentClassName:[1,"class-name"],ariaDescribedBy:[1,"aria-described-by"],isSupported:[32]}]]],["p-bcca06f1",[[768,"u-password-field",{for:[1],componentClassName:[1,"class-name"],ariaLabel:[1,"aria-label"]}]]],["p-830778eb",[[772,"u-registration-button",{for:[1],componentClassName:[1,"class-name"],redirectUri:[1,"redirect-uri"]}]]],["p-ae47a7a3",[[772,"u-reset-password-button",{componentClassName:[1,"class-name"]}]]],["p-35ad60ab",[[768,"u-send-magic-code-button",{disabled:[4],componentClassName:[1,"class-name"],countdown:[32]}]]],["p-f272eb38",[[769,"u-signin-root",{componentClassName:[1,"class-name"]}]]],["p-f4a47ef8",[[769,"u-signin-step",{name:[1],alwaysRender:[4,"always-render"],isActive:[64],submit:[64]}]]],["p-f608e64a",[[769,"u-social-login-button",{provider:[1],redirectUri:[1,"redirect-uri"],iconOnly:[4,"icon-only"],theme:[1]}]]],["p-aec580e4",[[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"]}]]],["p-1a8973a6",[[257,"u-spinner"]]],["p-f762ac70",[[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]}]]],["p-baaaa7f5",[[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]}]]]],e)}));
1
+ import{p as e,B as a,c as n,w as t,N as o,H as i,b as l}from"./p-BsJDptgj.js";export{s as setNonce}from"./p-BsJDptgj.js";import{g as c}from"./p-CgT6fZjb.js";var r=()=>{if(a.isDev&&!a.isTesting){n("Running in development mode.")}if(a.cloneNodeFix){p(i.prototype)}const s=a.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${o}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===o)):null;const l=import.meta.url;const c=a.scriptDataOpts?(s||{})["data-opts"]||{}:{};if(l!==""){c.resourcesUrl=new URL(".",l).href}return e(c)};var p=e=>{const a=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return a.call(this,e)}const s=a.call(this,false);const n=this.childNodes;if(e){for(let e=0;e<n.length;e++){if(n[e].nodeType!==2){s.appendChild(n[e].cloneNode(true))}}}return s}};r().then((async e=>{await c();return l([["p-b99588a8",[[768,"u-full-profile",{fields:[1],countryCodeDisplayOption:[1,"country-code-display-option"]}]]],["p-d6777395",[[768,"u-missing-field",{componentClassName:[1,"class-name"]}]]],["p-bf9c27a8",[[772,"u-jump-to-service",{serviceId:[1,"service-id"],newtab:[4],componentClassName:[1,"class-name"],redirectUri:[1,"redirect-uri"],scopes:[1],skipOauthAuthorization:[4,"skip-oauth-authorization"],loading:[32]}]]],["p-c10d9b8e",[[772,"u-jump-to-unidy",{path:[1],newtab:[4],noAuth:[4,"no-auth"],componentClassName:[1,"class-name"],loading:[32]}]]],["p-043c7643",[[772,"u-missing-fields-submit-button",{componentClassName:[1,"class-name"]}]]],["p-94bb0217",[[768,"u-newsletter-resend-doi-button",{internalName:[1,"internal-name"],componentClassName:[1,"class-name"],isResending:[32]}]]],["p-1a1c1af0",[[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]}]]],["p-02dce5da",[[772,"u-logout-button",{componentClassName:[1,"class-name"],reloadOnSuccess:[4,"reload-on-success"]}],[772,"u-signed-in",{componentClassName:[1,"class-name"],not:[4]}]]],["p-8ea70c08",[[772,"u-conditional-render",{when:[1],is:[1],not:[4],conditionFunction:[16]}]]],["p-34f5d201",[[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"]}]]],["p-c2634439",[[772,"u-email-field",{componentClassName:[1,"class-name"],ariaLabel:[1,"aria-label"],disabled:[4],emailValue:[32]}]]],["p-eaaf3989",[[772,"u-error-message",{componentClassName:[1,"class-name"],for:[1],errorMessages:[16]}]]],["p-8412762c",[[768,"u-flash-message",{componentClassName:[1,"class-name"],removeAfterSeconds:[2,"remove-after-seconds"]}]]],["p-e872a012",[[768,"u-magic-code-field",{componentClassName:[1,"class-name"],codeDigits:[32]}]]],["p-b5dd5b4c",[[768,"u-newsletter-checkbox",{internalName:[1,"internal-name"],checked:[4],componentClassName:[1,"class-name"],toggle:[64],setChecked:[64]}]]],["p-ac3a6bbf",[[768,"u-newsletter-consent-checkbox",{componentClassName:[1,"class-name"],toggle:[64],setChecked:[64]}]]],["p-18c17747",[[772,"u-newsletter-logout-button",{componentClassName:[1,"class-name"]}]]],["p-dbfe7b29",[[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]}]]],["p-946cdb0a",[[772,"u-newsletter-root",{componentClassName:[1,"class-name"],submit:[64]}]]],["p-585a0efa",[[772,"u-pagination-button",{direction:[1],customClass:[1,"custom-class"],paginationMeta:[32]}]]],["p-def4e874",[[768,"u-pagination-page",{customClass:[1,"custom-class"],paginationMeta:[32]}]]],["p-2f49e0cb",[[768,"u-passkey",{disabled:[4],componentClassName:[1,"class-name"],ariaDescribedBy:[1,"aria-described-by"],isSupported:[32]}]]],["p-96860b09",[[768,"u-password-field",{for:[1],componentClassName:[1,"class-name"],ariaLabel:[1,"aria-label"]}]]],["p-fd46b459",[[772,"u-registration-button",{for:[1],componentClassName:[1,"class-name"],redirectUri:[1,"redirect-uri"]}]]],["p-79ef9a70",[[772,"u-reset-password-button",{componentClassName:[1,"class-name"]}]]],["p-7d88e21c",[[768,"u-send-magic-code-button",{disabled:[4],componentClassName:[1,"class-name"],countdown:[32]}]]],["p-29473a55",[[772,"u-signin-root",{componentClassName:[1,"class-name"]}]]],["p-2cc3a00d",[[772,"u-signin-step",{name:[1],alwaysRender:[4,"always-render"],isActive:[64],submit:[64]}]]],["p-60675019",[[772,"u-social-login-button",{provider:[1],redirectUri:[1,"redirect-uri"],iconOnly:[4,"icon-only"],theme:[1]}]]],["p-7eaf3468",[[772,"u-ticketable-export",{format:[1],customClass:[1,"custom-class"],exportable:[516],loading:[32]}]]],["p-b498bcdd",[[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"]}]]],["p-271781c7",[[257,"u-spinner"]]],["p-2a25d62e",[[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]}]]],["p-52c4bdd9",[[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]}]]]],e)}));
2
2
  //# sourceMappingURL=sdk.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"u-conditional-render.entry.esm.js","sources":["src/shared/components/conditional-render/conditional-render.tsx"],"sourcesContent":["import { Component, Host, h, Prop } from \"@stencil/core\";\nimport { type AuthState, authState } from \"../../../auth/store/auth-store\";\nimport { UnidyComponent } from \"../../../logger\";\nimport * as NewsletterHelpers from \"../../../newsletter/newsletter-helpers\";\nimport { newsletterStore } from \"../../../newsletter/store/newsletter-store\";\nimport { profileStore } from \"../../../profile/store/profile-store\";\nimport { flashState } from \"../../store/flash-store\";\n\nconst PREDEFINED_CONDITIONS: Record<string, (...args: unknown[]) => unknown> = {\n \"auth.passkeyEnabled\": () => authState.availableLoginOptions?.passkey,\n \"auth.passwordEnabled\": () => authState.availableLoginOptions?.password,\n \"auth.magicCodeEnabled\": () => authState.availableLoginOptions?.magic_link,\n \"auth.socialLoginsEnabled\": () => (authState.availableLoginOptions?.social_logins?.length ?? 0) > 0,\n \"auth.hasSocialLogin\": (provider: string) => authState.availableLoginOptions?.social_logins?.includes(provider) ?? false,\n \"auth.loading\": () => authState.loading,\n \"auth.authenticated\": () => authState.authenticated,\n \"auth.magicCodeSent\": () => authState.magicCodeStep === \"sent\" || authState.magicCodeStep === \"requested\",\n \"auth.magicCodeRequested\": () => authState.magicCodeStep === \"requested\",\n \"auth.resetPasswordSent\": () => authState.resetPassword.step === \"sent\" || authState.resetPassword.step === \"requested\",\n \"auth.resetPasswordRequested\": () => authState.resetPassword.step === \"requested\",\n\n \"newsletter.hasCheckedNewsletters\": () => Object.keys(newsletterStore.state.checkedNewsletters).length > 0,\n \"newsletter.hasPreferenceToken\": () => !!newsletterStore.state.preferenceToken,\n \"newsletter.hasEmail\": () => !!newsletterStore.state.email,\n \"newsletter.subscribed\": (newsletterInternalName: string) => NewsletterHelpers.isSubscribed(newsletterInternalName),\n \"newsletter.confirmed\": (newsletterInternalName: string) => NewsletterHelpers.isConfirmed(newsletterInternalName),\n \"newsletter.loggedIn\": () => newsletterStore.state.isAuthenticated || newsletterStore.state.preferenceToken !== \"\",\n\n \"profile.loading\": () => profileStore.state.loading,\n \"profile.hasErrors\": () => Object.keys(profileStore.state.errors).some((key) => profileStore.state.errors[key] !== null),\n \"profile.hasFlashErrors\": () => flashState.messages.some((m) => m.variant === \"error\"),\n \"profile.phoneValid\": () => profileStore.state.phoneValid,\n \"profile.hasData\": () => Object.keys(profileStore.state.data).length > 0,\n};\n\nfunction isTruthy(value: unknown): boolean {\n return Boolean(value);\n}\n\n@Component({\n tag: \"u-conditional-render\",\n shadow: true,\n})\nexport class ConditionalRender extends UnidyComponent {\n @Prop() when?: string; // condition to check\n @Prop() is?: string; // optional value to compare against\n @Prop() not = false;\n @Prop() conditionFunction?: (state: AuthState) => boolean;\n\n private evaluateCondition(): unknown {\n const predefinedFunction = PREDEFINED_CONDITIONS[this.when];\n if (predefinedFunction) {\n return predefinedFunction(this.is);\n }\n\n return null;\n }\n\n private shouldRender(): boolean {\n if (!this.when && !this.conditionFunction) {\n this.logger.error(\"[u-conditional-render] Either 'when' or 'conditionFunction' prop is required\");\n }\n\n if (this.conditionFunction) {\n const result = this.conditionFunction(authState);\n return this.not ? !result : result;\n }\n\n const value = this.evaluateCondition();\n if (value === null) {\n return false;\n }\n\n const normalizedIs = this.is?.toString().toLowerCase();\n let result: boolean;\n\n if (typeof value === \"boolean\") {\n if (normalizedIs === \"false\" || normalizedIs === \"disabled\") {\n result = !value;\n } else {\n result = value;\n }\n } else if (this.is === undefined) {\n result = isTruthy(value);\n } else if (normalizedIs === \"enabled\" || normalizedIs === \"true\") {\n result = isTruthy(value);\n } else if (normalizedIs === \"disabled\" || normalizedIs === \"false\") {\n result = !isTruthy(value);\n } else {\n result = String(value) === String(this.is); // to compare exact value\n }\n\n return this.not ? !result : result;\n }\n\n render() {\n const visible = this.shouldRender();\n\n return (\n <Host\n hidden={!visible}\n style={{ display: visible ? \"contents\" : undefined }}\n aria-hidden={!visible ? \"true\" : null}\n aria-live=\"polite\"\n >\n <slot />\n </Host>\n );\n }\n}\n"],"names":["authState","NewsletterHelpers.isSubscribed","NewsletterHelpers.isConfirmed"],"mappings":";;;;;;;;;;;;AAQA,MAAM,qBAAqB,GAAoD;IAC7E,qBAAqB,EAAE,MAAMA,KAAS,CAAC,qBAAqB,EAAE,OAAO;IACrE,sBAAsB,EAAE,MAAMA,KAAS,CAAC,qBAAqB,EAAE,QAAQ;IACvE,uBAAuB,EAAE,MAAMA,KAAS,CAAC,qBAAqB,EAAE,UAAU;AAC1E,IAAA,0BAA0B,EAAE,MAAM,CAACA,KAAS,CAAC,qBAAqB,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC;AACnG,IAAA,qBAAqB,EAAE,CAAC,QAAgB,KAAKA,KAAS,CAAC,qBAAqB,EAAE,aAAa,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK;AACxH,IAAA,cAAc,EAAE,MAAMA,KAAS,CAAC,OAAO;AACvC,IAAA,oBAAoB,EAAE,MAAMA,KAAS,CAAC,aAAa;AACnD,IAAA,oBAAoB,EAAE,MAAMA,KAAS,CAAC,aAAa,KAAK,MAAM,IAAIA,KA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L,MAAM,GAAG,KAAK;;;AAEX,aAAA,IAAI,IAAI,CAAC,EAAE,KAAK,SAAS,EAAE;AAChC,YAAA,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC;;aACnB,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,MAAM,EAAE;AAChE,YAAA,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC;;aACnB,IAAI,YAAY,KAAK,UAAU,IAAI,YAAY,KAAK,OAAO,EAAE;AAClE,YAAA,MAAM,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC;;aACpB;AACL,YAAA,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;;AAG7C,QAAA,OAAO,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM;;IAGpC,MAAM,GAAA;AACJ,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,EAAE;AAEnC,QAAA,QACE,CAAC,CAAA,IAAI,EACH,EAAA,GAAA,EAAA,0CAAA,EAAA,MAAM,EAAE,CAAC,OAAO,EAChB,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,EAAE,EAAA,aAAA,EACvC,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI,eAC3B,QAAQ,EAAA,EAElB,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACH;;;;;;"}
1
+ {"version":3,"file":"u-conditional-render.entry.esm.js","sources":["src/shared/components/conditional-render/conditional-render.tsx"],"sourcesContent":["import { Component, Host, h, Prop } from \"@stencil/core\";\nimport { type AuthState, authState } from \"../../../auth/store/auth-store\";\nimport * as NewsletterHelpers from \"../../../newsletter/newsletter-helpers\";\nimport { newsletterStore } from \"../../../newsletter/store/newsletter-store\";\nimport { profileStore } from \"../../../profile/store/profile-store\";\nimport { UnidyComponent } from \"../../base/component\";\nimport { flashState } from \"../../store/flash-store\";\n\nconst PREDEFINED_CONDITIONS: Record<string, (...args: unknown[]) => unknown> = {\n \"auth.passkeyEnabled\": () => authState.availableLoginOptions?.passkey,\n \"auth.passwordEnabled\": () => authState.availableLoginOptions?.password,\n \"auth.magicCodeEnabled\": () => authState.availableLoginOptions?.magic_link,\n \"auth.socialLoginsEnabled\": () => (authState.availableLoginOptions?.social_logins?.length ?? 0) > 0,\n \"auth.hasSocialLogin\": (provider: string) => authState.availableLoginOptions?.social_logins?.includes(provider) ?? false,\n \"auth.loading\": () => authState.loading,\n \"auth.authenticated\": () => authState.authenticated,\n \"auth.magicCodeSent\": () => authState.magicCodeStep === \"sent\" || authState.magicCodeStep === \"requested\",\n \"auth.magicCodeRequested\": () => authState.magicCodeStep === \"requested\",\n \"auth.resetPasswordSent\": () => authState.resetPassword.step === \"sent\" || authState.resetPassword.step === \"requested\",\n \"auth.resetPasswordRequested\": () => authState.resetPassword.step === \"requested\",\n\n \"newsletter.hasCheckedNewsletters\": () => Object.keys(newsletterStore.state.checkedNewsletters).length > 0,\n \"newsletter.hasPreferenceToken\": () => !!newsletterStore.state.preferenceToken,\n \"newsletter.hasEmail\": () => !!newsletterStore.state.email,\n \"newsletter.subscribed\": (newsletterInternalName: string) => NewsletterHelpers.isSubscribed(newsletterInternalName),\n \"newsletter.confirmed\": (newsletterInternalName: string) => NewsletterHelpers.isConfirmed(newsletterInternalName),\n \"newsletter.loggedIn\": () => newsletterStore.state.isAuthenticated || newsletterStore.state.preferenceToken !== \"\",\n\n \"profile.loading\": () => profileStore.state.loading,\n \"profile.hasErrors\": () => Object.keys(profileStore.state.errors).some((key) => profileStore.state.errors[key] !== null),\n \"profile.hasFlashErrors\": () => flashState.messages.some((m) => m.variant === \"error\"),\n \"profile.phoneValid\": () => profileStore.state.phoneValid,\n \"profile.hasData\": () => Object.keys(profileStore.state.data).length > 0,\n};\n\nfunction isTruthy(value: unknown): boolean {\n return Boolean(value);\n}\n\n@Component({\n tag: \"u-conditional-render\",\n shadow: false,\n})\nexport class ConditionalRender extends UnidyComponent() {\n @Prop() when?: string; // condition to check\n @Prop() is?: string; // optional value to compare against\n @Prop() not = false;\n @Prop() conditionFunction?: (state: AuthState) => boolean;\n\n private evaluateCondition(): unknown {\n const predefinedFunction = PREDEFINED_CONDITIONS[this.when];\n if (predefinedFunction) {\n return predefinedFunction(this.is);\n }\n\n return null;\n }\n\n private shouldRender(): boolean {\n if (!this.when && !this.conditionFunction) {\n this.logger.error(\"[u-conditional-render] Either 'when' or 'conditionFunction' prop is required\");\n }\n\n if (this.conditionFunction) {\n const result = this.conditionFunction(authState);\n return this.not ? !result : result;\n }\n\n const value = this.evaluateCondition();\n if (value === null) {\n return false;\n }\n\n const normalizedIs = this.is?.toString().toLowerCase();\n let result: boolean;\n\n if (typeof value === \"boolean\") {\n if (normalizedIs === \"false\" || normalizedIs === \"disabled\") {\n result = !value;\n } else {\n result = value;\n }\n } else if (this.is === undefined) {\n result = isTruthy(value);\n } else if (normalizedIs === \"enabled\" || normalizedIs === \"true\") {\n result = isTruthy(value);\n } else if (normalizedIs === \"disabled\" || normalizedIs === \"false\") {\n result = !isTruthy(value);\n } else {\n result = String(value) === String(this.is); // to compare exact value\n }\n\n return this.not ? !result : result;\n }\n\n render() {\n const shouldShow = this.shouldRender();\n\n return (\n <Host\n hidden={!shouldShow}\n style={{ display: shouldShow ? \"contents\" : undefined }}\n aria-hidden={!shouldShow ? \"true\" : null}\n aria-live=\"polite\"\n >\n <slot />\n </Host>\n );\n }\n}\n"],"names":["authState","NewsletterHelpers.isSubscribed","NewsletterHelpers.isConfirmed"],"mappings":";;;;;;;;;;;;AAQA,MAAM,qBAAqB,GAAoD;IAC7E,qBAAqB,EAAE,MAAMA,KAAS,CAAC,qBAAqB,EAAE,OAAO;IACrE,sBAAsB,EAAE,MAAMA,KAAS,CAAC,qBAAqB,EAAE,QAAQ;IACvE,uBAAuB,EAAE,MAAMA,KAAS,CAAC,qBAAqB,EAAE,UAAU;AAC1E,IAA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QAAQ,EAAA,EAElB,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACH;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"u-config.entry.esm.js","sources":["src/shared/components/config/config.tsx"],"sourcesContent":["import * as Sentry from \"@sentry/browser\";\nimport { Component, Event, type EventEmitter, h, Prop, Watch } from \"@stencil/core\";\nimport { getUnidyClient } from \"../../../api/\";\nimport { Auth } from \"../../../auth\";\nimport i18n from \"../../../i18n\";\nimport { UnidyComponent } from \"../../../logger\";\nimport { unidyState } from \"../../store/unidy-store\";\n\nexport interface Config {\n apiKey: string;\n baseUrl: string;\n locale: string;\n mode: \"production\" | \"development\";\n}\n\nexport interface ConfigChange {\n key: string;\n value: string;\n previousValue: string;\n}\n\ntype TranslationTree = {\n [key: string]: string | TranslationTree;\n};\n\n@Component({\n tag: \"u-config\",\n shadow: false,\n})\nexport class UnidyConfig extends UnidyComponent {\n @Prop() mode: \"production\" | \"development\" = \"production\";\n @Prop() baseUrl = \"\";\n @Prop() apiKey = \"\";\n @Prop() customTranslations: string | Record<string, TranslationTree> = \"\";\n @Prop() fallbackLocale = \"en\";\n @Prop() locale = \"en\";\n @Prop() checkSignedIn = false;\n\n @Event() unidyInitialized!: EventEmitter<Config>;\n @Event() configChange!: EventEmitter<ConfigChange>;\n\n async componentWillLoad() {\n if (!this.baseUrl || !this.apiKey) {\n this.logger.error(\"baseUrl and apiKey are required\");\n return;\n }\n\n unidyState.apiKey = this.apiKey;\n unidyState.baseUrl = this.baseUrl;\n unidyState.locale = this.locale;\n unidyState.isConfigured = true;\n\n this.unidyInitialized.emit({\n apiKey: this.apiKey,\n baseUrl: this.baseUrl,\n locale: this.locale,\n mode: this.mode,\n });\n\n i18n.options.fallbackLng = this.fallbackLocale;\n\n this.loadCustomTranslations();\n unidyState.locale = this.locale;\n\n const auth = await Auth.initialize(getUnidyClient());\n\n if (this.checkSignedIn) {\n auth.helpers.checkSignedIn();\n }\n }\n\n // extend the list of properties that should be watched when new properties are added to the Config\n @Watch(\"mode\")\n @Watch(\"locale\")\n onPropChange(newValue: string, oldValue: string, propName: keyof Config) {\n if (oldValue === undefined) return;\n\n if (propName in unidyState) {\n (unidyState as Record<keyof Config, string>)[propName] = newValue;\n }\n\n this.configChange.emit({\n key: propName,\n value: newValue,\n previousValue: oldValue,\n });\n }\n\n render() {\n return <slot />;\n }\n\n private loadCustomTranslations() {\n if (this.customTranslations) {\n try {\n const translations = typeof this.customTranslations === \"string\" ? JSON.parse(this.customTranslations) : this.customTranslations;\n\n for (const lang in translations) {\n if (Object.hasOwn(translations, lang)) {\n i18n.addResourceBundle(lang, \"translation\", translations[lang], true, true);\n }\n }\n } catch (error) {\n Sentry.captureException(\"Failed to parse customTranslations\", error);\n }\n }\n }\n}\n"],"names":["i18n","Sentry.captureException"],"mappings":";;;;;;;;;;MA6Ba,WAAY,GAAA,cAAQ,cAAc,CAAA;;;;;;;IACrC,IAAI,GAAiC,YAAY;IACjD,OAAO,GAAG,EAAE;IACZ,MAAM,GAAG,EAAE;IACX,kBAAkB,GAA6C,EAAE;IACjE,cAAc,GAAG,IAAI;IACrB,MAAM,GAAG,IAAI;IACb,aAAa,GAAG,KAAK;AAEpB,IAAA,gBAAgB;AAChB,IAAA,YAAY;AAErB,IAAA,MAAM,iBAAiB,GAAA;QACrB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;AACjC,YAAA,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iCAAiC,CAAC;YACpD;;AAGF,QAAA,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;AAC/B,QAAA,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO;AACjC,QAAA,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;AAC/B,QAAA,UAAU,CAAC,YAAY,GAAG,IAAI;AAE9B,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAA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AE;AACrC,wBAAAA,QAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,aAAa,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;;;;YAG/E,OAAO,KAAK,EAAE;AACd,gBAAAC,gBAAuB,CAAC,oCAAoC,EAAE,KAAK,CAAC;;;;;;;;;;;;"}
1
+ {"version":3,"file":"u-config.entry.esm.js","sources":["src/shared/components/config/config.tsx"],"sourcesContent":["import * as Sentry from \"@sentry/browser\";\nimport { Component, Event, type EventEmitter, h, Prop, Watch } from \"@stencil/core\";\nimport { getUnidyClient } from \"../../../api/\";\nimport { Auth } from \"../../../auth\";\nimport i18n from \"../../../i18n\";\nimport { UnidyComponent } from \"../../base/component\";\nimport { unidyState } from \"../../store/unidy-store\";\n\nlet configInstance: UnidyConfig | null = null;\n\nexport interface Config {\n apiKey: string;\n baseUrl: string;\n locale: string;\n mode: \"production\" | \"development\";\n}\n\nexport interface ConfigChange {\n key: string;\n value: string;\n previousValue: string;\n}\n\ntype TranslationTree = {\n [key: string]: string | TranslationTree;\n};\n\n@Component({\n tag: \"u-config\",\n shadow: false,\n})\nexport class UnidyConfig extends UnidyComponent() {\n @Prop() mode: \"production\" | \"development\" = \"production\";\n @Prop() baseUrl = \"\";\n @Prop() apiKey = \"\";\n @Prop() customTranslations: string | Record<string, TranslationTree> = \"\";\n @Prop() fallbackLocale = \"en\";\n @Prop() locale = \"en\";\n @Prop() checkSignedIn = false;\n\n @Event() unidyInitialized!: EventEmitter<Config>;\n @Event() configChange!: EventEmitter<ConfigChange>;\n\n async componentWillLoad() {\n if (configInstance !== null) {\n this.logger.error(\"Only one <u-config> element is allowed per page.\");\n return;\n }\n configInstance = this;\n\n if (!this.baseUrl || !this.apiKey) {\n this.logger.error(\"baseUrl and apiKey are required\");\n return;\n }\n\n unidyState.apiKey = this.apiKey;\n unidyState.baseUrl = this.baseUrl;\n unidyState.locale = this.locale;\n unidyState.isConfigured = true;\n\n this.unidyInitialized.emit({\n apiKey: this.apiKey,\n baseUrl: this.baseUrl,\n locale: this.locale,\n mode: this.mode,\n });\n\n i18n.options.fallbackLng = this.fallbackLocale;\n\n this.loadCustomTranslations();\n unidyState.locale = this.locale;\n\n const auth = await Auth.initialize(getUnidyClient());\n\n if (this.checkSignedIn) {\n auth.helpers.checkSignedIn();\n }\n\n this.logger.debug(\"Unidy SDK initialized successfully\");\n }\n\n disconnectedCallback() {\n if (configInstance === this) {\n configInstance = null;\n unidyState.isConfigured = false;\n }\n }\n\n // extend the list of properties that should be watched when new properties are added to the Config\n @Watch(\"mode\")\n @Watch(\"locale\")\n onPropChange(newValue: string, oldValue: string, propName: keyof Config) {\n if (oldValue === undefined) return;\n\n if (propName in unidyState) {\n (unidyState as Record<keyof Config, string>)[propName] = newValue;\n }\n\n this.configChange.emit({\n key: propName,\n value: newValue,\n previousValue: oldValue,\n });\n }\n\n render() {\n return <slot />;\n }\n\n private loadCustomTranslations() {\n if (this.customTranslations) {\n try {\n const translations = typeof this.customTranslations === \"string\" ? JSON.parse(this.customTranslations) : this.customTranslations;\n\n for (const lang in translations) {\n if (Object.hasOwn(translations, lang)) {\n i18n.addResourceBundle(lang, \"translation\", translations[lang], true, true);\n }\n }\n } catch (error) {\n Sentry.captureException(\"Failed to parse customTranslations\", error);\n }\n }\n }\n}\n"],"names":["i18n","Sentry.captureException"],"mappings":";;;;;;;;;;AAQA,IAAI,cAAc,GAAuB,IAAI;MAuBhC,WAAY,GAAA,cAAQ,cAAc,EAAE,CAAA;;;;;;;IACvC,IAAI,GAAiC,YAAY;IACjD,OAAO,GAAG,EAAE;IACZ,MAAM,GAAG,EAAE;IACX,kBAAkB,GAA6C,EAAE;IACjE,cAAc,GAAG,IAAI;IACrB,MAAM,GAAG,IAAI;IACb,aAAa,GAAG,KAAK;AAEpB,IAAA,gBAAgB;AAChB,IAAA,YAAY;AAErB,IAAA,MAAM,iBAAiB,GAAA;AACrB,QAAA,IAAI,cAAc,KAAK,IAAI,EAAE;AA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AAA;QACrE,IAAI,QAAQ,KAAK,SAAS;YAAE;AAE5B,QAAA,IAAI,QAAQ,IAAI,UAAU,EAAE;AACzB,YAAA,UAA2C,CAAC,QAAQ,CAAC,GAAG,QAAQ;;AAGnE,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;AACrB,YAAA,GAAG,EAAE,QAAQ;AACb,YAAA,KAAK,EAAE,QAAQ;AACf,YAAA,aAAa,EAAE,QAAQ;AACxB,SAAA,CAAC;;IAGJ,MAAM,GAAA;QACJ,OAAO,8DAAQ;;IAGT,sBAAsB,GAAA;AAC5B,QAAA,IAAI,IAAI,CAAC,kBAAkB,EAAE;AAC3B,YAAA,IAAI;gBACF,MAAM,YAAY,GAAG,OAAO,IAAI,CAAC,kBAAkB,KAAK,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,kBAAkB;AAEhI,gBAAA,KAAK,MAAM,IAAI,IAAI,YAAY,EAAE;oBAC/B,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,EAAE;AACrC,wBAAAA,QAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,aAAa,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;;;;YAG/E,OAAO,KAAK,EAAE;AACd,gBAAAC,gBAAuB,CAAC,oCAAoC,EAAE,KAAK,CAAC;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"u-error-message.entry.esm.js","sources":["src/shared/components/error-message/error-message.css?tag=u-error-message&encapsulation=shadow","src/shared/components/error-message/error-message.tsx"],"sourcesContent":[":host {\n display: block;\n}","import { Component, Element, Host, h, Prop } from \"@stencil/core\";\nimport { authState } from \"../../../auth/store/auth-store\";\nimport { t } from \"../../../i18n\";\nimport { type NewsletterErrorIdentifier, newsletterStore } from \"../../../newsletter/store/newsletter-store\";\nimport { hasSlotContent } from \"../../component-utils\";\nimport { unidyState } from \"../../store/unidy-store\";\n\nexport type AuthErrorType = \"email\" | \"password\" | \"magicCode\" | \"resetPassword\" | \"general\" | \"connection\" | \"passkey\";\n\n@Component({\n tag: \"u-error-message\",\n shadow: true,\n styleUrl: \"error-message.css\",\n})\nexport class ErrorMessage {\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n @Prop() for!: string;\n\n @Prop() errorMessages?: Record<string, string>;\n @Element() el!: HTMLElement;\n private detectContext(): \"auth\" | \"newsletter\" | \"profile\" | \"other\" {\n if (this.el.closest(\"u-signin-root\") || this.el.closest(\"u-signin-step\")) return \"auth\";\n\n if (this.el.closest(\"u-profile\")) return \"profile\";\n\n if (this.el.closest(\"u-newsletter-root\")) return \"newsletter\";\n\n if (this.for === \"general\" || this.for === \"connection\") return \"other\";\n\n throw new Error(\n \"No context found for error message. Make sure you are using the component within a u-signin-root, u-profile, or u-newsletter-root.\",\n );\n }\n\n private get context(): \"auth\" | \"newsletter\" | \"profile\" | \"other\" {\n return this.detectContext();\n }\n\n private getAuthErrorMessage(errorCode: string): string {\n if (this.errorMessages?.[errorCode]) {\n return this.errorMessages[errorCode];\n }\n\n const translatedError = t(`errors.${errorCode}`);\n if (translatedError !== `errors.${errorCode}`) {\n return translatedError;\n }\n\n return errorCode || t(\"errors.unknown\", { defaultValue: \"An error occurred\" });\n }\n\n private getNewsletterErrorMessage(errorIdentifier: NewsletterErrorIdentifier): string {\n return t(`newsletter.errors.${errorIdentifier}`) || t(\"errors.unknown\", { defaultValue: \"An unknown error occurred\" });\n }\n\n private getErrorMessage(errorCode: string): string | null {\n if (this.context === \"auth\") {\n return this.getAuthErrorMessage(errorCode);\n }\n\n return this.getNewsletterErrorMessage(errorCode as NewsletterErrorIdentifier);\n }\n\n private getAuthErrorCode(): string | null {\n const forValue = this.for as AuthErrorType;\n\n if (forValue === \"connection\") {\n return unidyState.backendConnected ? null : \"connection_failed\";\n }\n\n if (forValue === \"general\") {\n return authState.globalErrors.auth;\n }\n\n return authState.errors[forValue];\n }\n\n private getNewsletterErrorCode(): string | null {\n const error = newsletterStore.state.errors[this.for];\n return error ?? null;\n }\n\n render() {\n const errorCode = this.context === \"newsletter\" ? this.getNewsletterErrorCode() : this.getAuthErrorCode();\n\n if (!errorCode) {\n return null;\n }\n\n // Only render connection_failed for \"general\" and \"connection\" types\n if (errorCode === \"connection_failed\" && this.for !== \"general\" && this.for !== \"connection\") {\n return null;\n }\n\n const errorMessage = this.getErrorMessage(errorCode);\n const formattedMessage = errorMessage?.includes(\"\\n\") ? <div style={{ whiteSpace: \"pre-line\" }}>{errorMessage}</div> : errorMessage;\n\n return <Host class={this.componentClassName}>{hasSlotContent(this.el) ? <slot /> : formattedMessage}</Host>;\n }\n}\n"],"names":["authState"],"mappings":";;;;;;;;AAAA,MAAM,eAAe,GAAG,8jNAA8jN;;MCczkN,YAAY,GAAA,MAAA;;;;IACY,kBAAkB,GAAG,EAAE;AAClD,IAAA,GAAG;AAEH,IAAA,aAAa;;IAEb,aAAa,GAAA;AACnB,QAAA,IAAI,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC;AAAE,YAAA,OAAO,MAAM;AAEvF,QAAA,IAAI,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC;AAAE,YAAA,OAAO,SAAS;AAElD,QAAA,IAAI,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC;AAAE,YAAA,OAAO,YAAY;QAE7D,IAAI,IAAI,CAAC,GAAG,KAAK,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,YAAY;AAAE,YAAA,OAAO,OAAO;AAEvE,QAAA,MAAM,IAAI,KAAK,CACb,oIAAoI,CACrI;;AAGH,IAAA,IAAY,OAAO,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,aAAa,EAAE;;AAGrB,IAAA,mBAAmB,CAAC,SAAiB,EAAA;QAC3C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,IAAI,IAAI;;IAGtB,MAAM,GAAA;QACJ,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,KAAK,YAAY,GAAG,IAAI,CAAC,sBAAsB,EAAE,GAAG,IAAI,CAAC,gBAAgB,EAAE;QAEzG,IAAI,CAAC,SAAS,EAAE;AACd,YAAA,OAAO,IAAI;;;AAIb,QAAA,IAAI,SAAS,KAAK,mBAAmB,IAAI,IAAI,CAAC,GAAG,KAAK,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,YAAY,EAAE;AAC5F,YAAA,OAAO,IAAI;;QAGb,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC;AACpD,QAAA,MAAM,gBAAgB,GAAG,YAAY,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAAA,EAAG,YAAY,CAAO,GAAG,YAAY;AAEnI,QAAA,OAAO,CAAA,CAAC,IAAI,EAAA,EAAC,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAG,EAAA,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,GAAG,gBAAgB,CAAQ;;;;;;;"}
1
+ {"version":3,"file":"u-error-message.entry.esm.js","sources":["src/shared/components/error-message/error-message.css?tag=u-error-message","src/shared/components/error-message/error-message.tsx"],"sourcesContent":["/* This file is required for stencil-tailwind-plugin to generate Tailwind CSS for this component */\n","import { Component, Host, h, Prop } from \"@stencil/core\";\nimport { authState } from \"../../../auth/store/auth-store\";\nimport { t } from \"../../../i18n\";\nimport { type NewsletterErrorIdentifier, newsletterStore } from \"../../../newsletter/store/newsletter-store\";\nimport { UnidyComponent } from \"../../base/component\";\nimport { HasSlotContent } from \"../../base/has-slot-content\";\nimport { unidyState } from \"../../store/unidy-store\";\n\nexport type AuthErrorType = \"email\" | \"password\" | \"magicCode\" | \"resetPassword\" | \"general\" | \"connection\" | \"passkey\";\n\n@Component({\n tag: \"u-error-message\",\n shadow: false,\n styleUrl: \"error-message.css\",\n})\nexport class ErrorMessage extends UnidyComponent(HasSlotContent) {\n @Prop({ attribute: \"class-name\" }) componentClassName = \"\";\n @Prop() for!: string;\n\n @Prop() errorMessages?: Record<string, string>;\n\n private detectContext(): \"auth\" | \"newsletter\" | \"profile\" | \"other\" {\n if (this.element.closest(\"u-signin-root\") || this.element.closest(\"u-signin-step\")) return \"auth\";\n\n if (this.element.closest(\"u-profile\")) return \"profile\";\n\n if (this.element.closest(\"u-newsletter-root\")) return \"newsletter\";\n\n if (this.for === \"general\" || this.for === \"connection\") return \"other\";\n\n throw new Error(\n \"No context found for error message. Make sure you are using the component within a u-signin-root, u-profile, or u-newsletter-root.\",\n );\n }\n\n private get context(): \"auth\" | \"newsletter\" | \"profile\" | \"other\" {\n return this.detectContext();\n }\n\n private getAuthErrorMessage(errorCode: string): string {\n if (this.errorMessages?.[errorCode]) {\n return this.errorMessages[errorCode];\n }\n\n const translatedError = t(`errors.${errorCode}`);\n if (translatedError !== `errors.${errorCode}`) {\n return translatedError;\n }\n\n return errorCode || t(\"errors.unknown\", { defaultValue: \"An error occurred\" });\n }\n\n private getNewsletterErrorMessage(errorIdentifier: NewsletterErrorIdentifier): string {\n const translationKey = `newsletter.errors.${errorIdentifier}`;\n const translated = t(translationKey);\n\n if (translated !== translationKey) {\n return translated;\n }\n return t(\"errors.unknown\", { defaultValue: \"An unknown error occurred\" });\n }\n\n private getErrorMessage(errorCode: string): string | null {\n if (this.context === \"auth\") {\n return this.getAuthErrorMessage(errorCode);\n }\n\n const fieldError = newsletterStore.state.additionalFieldErrors[this.for];\n if (fieldError) {\n return this.translateValidationError(fieldError);\n }\n\n return this.getNewsletterErrorMessage(errorCode as NewsletterErrorIdentifier);\n }\n\n private translateValidationError(errorIdentifier: string): string {\n const fieldSpecificKey = `errors.${this.for}.${errorIdentifier}`;\n const fieldSpecific = t(fieldSpecificKey);\n if (fieldSpecific !== fieldSpecificKey) {\n return fieldSpecific;\n }\n\n const genericKey = `errors.validation.${errorIdentifier}`;\n const generic = t(genericKey);\n if (generic !== genericKey) {\n return generic;\n }\n\n return t(\"errors.unknown\", { defaultValue: \"An unknown error occurred\" });\n }\n\n private getAuthErrorCode(): string | null {\n const forValue = this.for as AuthErrorType;\n\n if (forValue === \"connection\") {\n return unidyState.backendConnected ? null : \"connection_failed\";\n }\n\n if (forValue === \"general\") {\n return authState.globalErrors.auth;\n }\n\n return authState.errors[forValue];\n }\n\n private getNewsletterErrorCode(): string | null {\n const newsletterError = newsletterStore.state.errors[this.for];\n if (newsletterError) return newsletterError;\n\n const fieldError = newsletterStore.state.additionalFieldErrors[this.for];\n return fieldError ?? null;\n }\n\n render() {\n const errorCode = this.context === \"newsletter\" ? this.getNewsletterErrorCode() : this.getAuthErrorCode();\n\n // Check if we should show the error\n let shouldShow = !!errorCode;\n\n // Only render connection_failed for \"general\" and \"connection\" types\n if (errorCode === \"connection_failed\" && this.for !== \"general\" && this.for !== \"connection\") {\n shouldShow = false;\n }\n\n const errorMessage = shouldShow ? this.getErrorMessage(errorCode) : null;\n const formattedMessage = errorMessage?.includes(\"\\n\") ? <div style={{ whiteSpace: \"pre-line\" }}>{errorMessage}</div> : errorMessage;\n\n // For shadow: false components with slots, we must always render Host but use hidden/display\n // to control visibility, otherwise slotted content remains visible in the light DOM\n return (\n <Host\n class={`u:block ${this.componentClassName}`}\n hidden={!shouldShow}\n style={{ display: shouldShow ? undefined : \"none\" }}\n aria-hidden={!shouldShow ? \"true\" : null}\n aria-live=\"polite\"\n >\n {this.hasSlot ? <slot /> : formattedMessage}\n </Host>\n );\n }\n}\n"],"names":["authState"],"mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,o1NAAo1N;;ACe/1N,MAAA,YAAa,GAAA,cAAQ,cAAc,CAAC,cAAc,CAAC,CAAA;;;;;IAC3B,kBAAkB,GAAG,EAAE;AAClD,IAAA,GAAG;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AM,EAAE,EAAA,aAAA,EACtC,CAAC,UAAU,GAAG,MAAM,GAAG,IAAI,EAC9B,WAAA,EAAA,QAAQ,EAEjB,EAAA,IAAI,CAAC,OAAO,GAAG,CAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,GAAG,gBAAgB,CACtC;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"u-field.u-raw-field.entry.esm.js","sources":["src/profile/components/field/field.css?tag=u-field&encapsulation=shadow","src/profile/components/field/field.tsx","src/profile/components/raw-input-fields/Input.tsx","src/profile/components/raw-input-fields/MultiSelect.tsx","src/profile/components/raw-input-fields/RadioGroup.tsx","src/profile/components/raw-input-fields/Select.tsx","src/profile/components/raw-input-fields/Textarea.tsx","src/profile/components/raw-field/raw-field.tsx"],"sourcesContent":[":host {\n display: block;\n}\n.field-error:focus {\n border-color: red;\n outline-color: red;\n}\n\n.multi-select-readonly-container {\n list-style: none;\n}\n.multi-select-readonly-container li {\n display: inline-block;\n}\n\n[part=\"input\"]:disabled,\n[part=\"select\"]:disabled {\n cursor: not-allowed;\n}\n","import { Component, Element, h, Prop, State } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport { state as profileState } from \"../../store/profile-store\";\n/**\n * @part select_field - Styles the base <select> element.\n * @part select_field--example_field - Example of a field-specific selector.\n * Replace `example_field` with your field name.\n * e.g. `custom_attributes.favorite_nut` → `select_field--custom_attributes-favorite_nut`, `country_code` → `select_field--country-code`\n * @part radio-group-item_radio\n * @part radio-group_field\n * @part radio-group-item_label\n * @part radio_checked\n * @part multi-select-item_checkbox\n * @part multi-select-group_field\n * @part multi-select-item_label\n * @part textarea_field\n * @part input_field\n */\n\n@Component({\n tag: \"u-field\",\n styleUrl: \"field.css\",\n shadow: true,\n})\nexport class Field {\n @Prop() field!: string;\n @Prop() required = false;\n @Prop() readonlyPlaceholder = \"No information\";\n @Prop() countryCodeDisplayOption?: \"icon\" | \"label\" = \"label\";\n @Prop() invalidPhoneMessage = \"Please enter a valid phone number.\";\n @Prop({ attribute: \"class-name\" }) componentClassName?: string;\n @Prop() emptyOption = true;\n @Prop() placeholder?: string;\n @Prop() renderDefaultLabel = true;\n\n @Prop() pattern?: string;\n @Prop() patternErrorMessage?: string;\n @Prop() validationFunc?: (value: string | string[]) => { valid: boolean; message?: string };\n\n @Element() el!: HTMLElement;\n\n @State() selected?: string | string[];\n\n private getFieldData() {\n return this.field.startsWith(\"custom_attributes.\")\n ? profileState.data.custom_attributes?.[this.field.replace(\"custom_attributes.\", \"\")]\n : profileState.data[this.field];\n }\n\n componentDidRender() {\n const fieldErrors = profileState.errors;\n\n if (Object.keys(fieldErrors)[0] === this.field) {\n this.el.shadowRoot?.getElementById(this.field)?.scrollIntoView({ behavior: \"smooth\", block: \"center\" });\n this.el.shadowRoot\n ?.getElementById(this.field)\n ?.querySelector<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>(\"input, select, textarea\")\n ?.focus();\n }\n }\n\n private createSpecificPartKey(fieldName: string) {\n if (fieldName.startsWith(\"custom_attributes.\")) {\n return fieldName.replace(/[^\\w-]/g, \"-\");\n }\n return fieldName;\n }\n\n // biome-ignore lint/suspicious/noExplicitAny: needed for dynamic fieldData\n private multiSelectLabel = (fieldData: any): string[] => {\n const multiselectMatches: string[] = [];\n if (Array.isArray(fieldData.value)) {\n for (const val of fieldData.value) {\n // biome-ignore lint/suspicious/noExplicitAny: needed for dynamic option\n const match = fieldData.options?.find((opt: any) => opt.value === val);\n const optionTranslationKey = `fields.${this.field}.options.${val}`;\n const translatedOptionLabel = t(optionTranslationKey);\n const optionLabel = translatedOptionLabel !== optionTranslationKey ? translatedOptionLabel : match?.label;\n multiselectMatches.push(optionLabel ?? val);\n }\n }\n return multiselectMatches;\n };\n\n render() {\n const fieldData = this.getFieldData();\n if (!fieldData) {\n return null;\n }\n\n const labelTranslationKey = `fields.${this.field}.label`;\n const label = t(labelTranslationKey, { defaultValue: fieldData?.label });\n\n const placeholderTranslationKey = `fields.${this.field}.placeholder`;\n const placeholder = t(placeholderTranslationKey, { defaultValue: this.placeholder ? this.placeholder : \"\" });\n\n const readonlyPlaceholderTranslationKey = `fields.${this.field}.readonlyPlaceholder`;\n const readonlyPlaceholder = t(readonlyPlaceholderTranslationKey, {\n defaultValue: this.readonlyPlaceholder ? this.readonlyPlaceholder : \"\",\n });\n\n const translatedOptions = (fieldData.options || []).map((opt) => {\n const translationKey = `fields.${this.field}.options.${opt.value}`;\n const label = t(translationKey, { defaultValue: opt.label });\n return { ...opt, label };\n });\n\n const translatedRadioOptions = (fieldData.radio_options || []).map((opt) => {\n const translationKey = `fields.${this.field}.options.${opt.value}`;\n const label = t(translationKey, { defaultValue: opt.label });\n return { ...opt, label };\n });\n\n const errorPrefix = t(\"errors.prefix\", { defaultValue: \"ERROR: \" });\n\n const isLocked = !!fieldData?.locked;\n const lockedText = fieldData?.locked_text ? fieldData.locked_text : \"\";\n const isReadonly = fieldData?.readonly === true;\n const multiSelectReadonlyLabels = this.multiSelectLabel(fieldData);\n\n return (\n <div part={`field-container field-container--${this.createSpecificPartKey(this.field)}`}>\n <slot name=\"label\" />\n\n {this.renderDefaultLabel && (\n <label htmlFor={this.field} part={`field_label field_label--${this.createSpecificPartKey(this.field)}`}>\n {label}\n {fieldData?.required || this.required ? <span part=\"required-indicator\"> *</span> : null}\n </label>\n )}\n {isReadonly && fieldData?.type !== \"checkbox\" ? (\n <span id={this.field} part=\"readonly-indicator\">\n {fieldData?.value || readonlyPlaceholder}\n </span>\n ) : null}\n {isReadonly && fieldData?.type === \"checkbox\" && (\n <ul id={this.field} class=\"multi-select-readonly-container\" part=\"multi-select-readonly-container\">\n {multiSelectReadonlyLabels.map((label) => (\n <li key={label} part=\"multi-select-readonly-field\">\n {label}\n </li>\n ))}\n </ul>\n )}\n {!isReadonly && (\n <u-raw-field\n id={this.field}\n field={this.field}\n type={fieldData.type as string}\n value={fieldData.value}\n options={fieldData.type === \"select\" ? translatedOptions : undefined}\n radioOptions={fieldData.type === \"radio\" ? translatedRadioOptions : undefined}\n multiSelectOptions={fieldData.type === \"checkbox\" ? translatedOptions : undefined}\n required={fieldData.required || this.required}\n disabled={isLocked || profileState.loading}\n tooltip={isLocked ? lockedText : undefined}\n placeholder={placeholder}\n componentClassName={this.componentClassName}\n emptyOption={this.emptyOption}\n countryCodeDisplayOption={this.countryCodeDisplayOption}\n attrName={fieldData.attr_name}\n specificPartKey={this.createSpecificPartKey(this.field)}\n ariaDescribedBy={profileState.errors[this.field] ? `${this.field}-error` : undefined}\n pattern={this.pattern}\n patternErrorMessage={this.patternErrorMessage}\n validationFunc={this.validationFunc}\n />\n )}\n\n {profileState.errors[this.field] && (\n <span id={`${this.field}-error`} part=\"field-error-message\" aria-live=\"assertive\">\n {errorPrefix} {profileState.errors[this.field]}\n </span>\n )}\n </div>\n );\n }\n}\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\ntype InputProps = {\n id: string;\n type: string;\n value: string | undefined;\n componentClassName?: string;\n disabled?: boolean;\n required?: boolean;\n title?: string;\n placeholder?: string;\n specificPartKey?: string;\n onChange: (value: string) => void;\n onBlur?: (e: Event) => void;\n ariaDescribedBy?: string;\n};\n\nexport const Input: FunctionalComponent<InputProps> = (props) => (\n <input\n id={props.id}\n type={props.type}\n value={props.value}\n class={props.componentClassName}\n disabled={props.disabled}\n required={props.required}\n part={`input_field ${props.specificPartKey ? `input_field--${props.specificPartKey}` : \"\"}`}\n title={props.title}\n placeholder={props.placeholder}\n onChange={(e) => props.onChange((e.target as HTMLInputElement).value)}\n onBlur={(e) => props.onBlur?.(e)}\n aria-describedby={props.ariaDescribedBy || undefined}\n />\n);\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\nexport type MultiSelectOption = { value: string; label: string };\n\ntype MultiSelectProps =\n | {\n value: string[];\n options: MultiSelectOption[];\n disabled?: boolean;\n title?: string;\n type?: string;\n specificPartKey?: string;\n onToggle: (optValue: string, checked: boolean) => void;\n ariaDescribedBy?: string;\n }\n | {\n id?: string;\n name: string;\n value: string;\n checked: boolean;\n componentClassName?: string;\n disabled?: boolean;\n title?: string;\n type?: string;\n onToggle: (optValue: string, checked: boolean) => void;\n ariaDescribedBy?: string;\n };\n\nexport const MultiSelect: FunctionalComponent<MultiSelectProps> = (props) => {\n if (!(\"options\" in props)) {\n return (\n <input\n id={props.id}\n type={props.type}\n name={props.name}\n value={props.value}\n checked={props.checked}\n disabled={props.disabled}\n title={props.title}\n class={props.componentClassName}\n onChange={(e) => props.onToggle(props.value, (e.target as HTMLInputElement).checked)}\n aria-describedby={props.ariaDescribedBy || undefined}\n />\n );\n }\n\n return (\n <div\n part={`multi-select-group_field ${props.specificPartKey ? `multi-select-group_field--${props.specificPartKey}` : \"\"}`}\n title={props.title}\n aria-describedby={props.ariaDescribedBy || undefined}\n >\n {props.options.map((opt) => (\n <label\n key={opt.value}\n htmlFor={`${props.specificPartKey}-${opt.value}`}\n part={`multi-select-item_label ${props.specificPartKey ? `multi-select-item_label--${props.specificPartKey}` : \"\"}`}\n >\n <input\n id={`${props.specificPartKey}-${opt.value}`}\n type={props.type}\n checked={Array.isArray(props.value) && props.value.includes(opt.value)}\n disabled={props.disabled}\n title={props.title}\n onChange={(e) => props.onToggle(opt.value, (e.target as HTMLInputElement).checked)}\n part={`multi-select-item_checkbox ${props.specificPartKey ? `multi-select-item_checkbox--${props.specificPartKey}` : \"\"}`}\n />\n {opt.label}\n </label>\n ))}\n </div>\n );\n};\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\nexport type RadioOption = { value: string; label: string; checked: boolean };\n\ntype RadioGroupProps =\n | {\n options: RadioOption[];\n disabled?: boolean;\n type?: string;\n name?: string;\n title?: string;\n specificPartKey?: string;\n onChange: (value: string) => void;\n ariaDescribedBy?: string;\n required?: boolean;\n }\n | {\n value: string;\n checked: boolean;\n disabled?: boolean;\n type?: string;\n name: string;\n title?: string;\n componentClassName?: string;\n onChange: (value: string) => void;\n ariaDescribedBy?: string;\n required?: boolean;\n };\n\nexport const RadioGroup: FunctionalComponent<RadioGroupProps> = (props) => {\n if (!(\"options\" in props)) {\n return (\n <input\n type={props.type}\n name={props.name}\n required={props.required}\n value={String(props.value)}\n checked={props.checked}\n disabled={props.disabled}\n title={props.title}\n class={props.componentClassName}\n onChange={() => props.onChange(String(props.value))}\n aria-describedby={props.ariaDescribedBy || undefined}\n />\n );\n }\n\n return (\n <div\n part={`radio-group_field ${props.specificPartKey ? `radio-group_field--${props.specificPartKey}` : \"\"}`}\n title={props.title}\n aria-describedby={props.ariaDescribedBy || undefined}\n >\n {props.options.map((opt) => (\n <label\n htmlFor={`${props.name}-${opt.value}`}\n key={String(opt.value)}\n part={`radio-group-item_label ${props.specificPartKey ? `radio-group-item_label--${props.specificPartKey}` : \"\"} ${opt.checked ? \"radio_checked\" : \"\"}`}\n data-checked={opt.checked ? \"true\" : \"false\"}\n >\n <input\n id={`${props.name}-${opt.value}`}\n type={props.type}\n name={props.name}\n required={props.required}\n value={String(opt.value)}\n checked={opt.checked}\n disabled={props.disabled}\n onChange={() => props.onChange(String(opt.value))}\n part={`radio-group-item_radio ${props.specificPartKey ? `radio-group-item_radio--${props.specificPartKey}` : \"\"}`}\n />\n {opt.label}\n </label>\n ))}\n </div>\n );\n};\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\nexport type Option = { value: string; label: string; selected?: boolean };\n\ntype SelectProps = {\n id: string;\n name?: string;\n value: string | string[] | null | undefined;\n options: Option[];\n disabled?: boolean;\n title?: string;\n countryCodeDisplayOption?: string;\n attr_name?: string;\n componentClassName?: string;\n emptyOption: boolean;\n specificPartKey?: string;\n onChange: (value: string) => void;\n countryIcon?: (code: string) => string;\n ariaDescribedBy?: string;\n};\n\nexport const Select: FunctionalComponent<SelectProps> = (props) => {\n const renderOptionLabel = (opt: Option) => {\n if (props.attr_name === \"country_code\" && props.countryCodeDisplayOption === \"icon\" && props.countryIcon) {\n return props.countryIcon(opt.value);\n }\n return opt.label;\n };\n return (\n <select\n id={props.id}\n name={props.name}\n class={props.componentClassName}\n data-value={props.value as string | undefined}\n part={`select_field ${props.specificPartKey ? `select_field--${props.specificPartKey}` : \"\"}`}\n disabled={props.disabled}\n title={props.title}\n onChange={(e) => props.onChange((e.target as HTMLSelectElement).value)}\n aria-describedby={props.ariaDescribedBy || undefined}\n >\n {props.emptyOption ? <option value=\"\" selected={props.value === null || props.value === \"\"} /> : null}\n {props.options.map((opt) => (\n <option\n key={opt.value}\n value={opt.value}\n data-selected={opt.value === props.value ? \"true\" : \"false\"}\n selected={opt.value === props.value}\n disabled={opt.value === \"--\"}\n >\n {renderOptionLabel(opt)}\n </option>\n ))}\n </select>\n );\n};\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\ntype TextareaProps = {\n id: string;\n value: string | undefined;\n disabled?: boolean;\n required?: boolean;\n title?: string;\n name?: string;\n componentClassName?: string;\n placeholder?: string;\n specificPartKey?: string;\n onChange: (value: string) => void;\n onBlur?: (e: Event) => void;\n ariaDescribedBy?: string;\n};\n\nexport const Textarea: FunctionalComponent<TextareaProps> = (props) => (\n <textarea\n id={props.id}\n value={props.value}\n name={props.name}\n class={props.componentClassName}\n required={props.required}\n part={`textarea_field ${props.specificPartKey ? `textarea_field--${props.specificPartKey}` : \"\"}`}\n disabled={props.disabled}\n title={props.title}\n onChange={(e) => props.onChange((e.target as HTMLTextAreaElement).value)}\n onBlur={props.onBlur}\n aria-describedby={props.ariaDescribedBy || undefined}\n />\n);\n","import { Component, Element, h, Prop, State } from \"@stencil/core\";\nimport { UnidyComponent } from \"../../../logger\";\nimport { type ProfileNode, type ProfileRaw, state as profileState } from \"../../store/profile-store\";\nimport { Input } from \"../raw-input-fields/Input\";\nimport { MultiSelect, type MultiSelectOption } from \"../raw-input-fields/MultiSelect\";\nimport { RadioGroup, type RadioOption } from \"../raw-input-fields/RadioGroup\";\nimport { type Option, Select } from \"../raw-input-fields/Select\";\nimport { Textarea } from \"../raw-input-fields/Textarea\";\n\n@Component({\n tag: \"u-raw-field\",\n shadow: false,\n})\nexport class RawField extends UnidyComponent {\n @Prop() required = false;\n @Prop() readonlyPlaceholder = \"\";\n @Prop() countryCodeDisplayOption?: \"icon\" | \"label\" = \"label\";\n @Prop() invalidPhoneMessage = \"Please enter a valid phone number.\";\n @Prop({ attribute: \"class-name\" }) componentClassName?: string;\n\n @Prop() field!: string;\n @Prop() value?: string | string[];\n @Prop() checked?: boolean;\n @Prop() disabled?: boolean;\n @Prop() tooltip?: string;\n @Prop() type!: string;\n @Prop() placeholder?: string;\n @Prop() options?: string | Option[];\n @Prop() emptyOption = false;\n @Prop() attrName?: string;\n @Prop() radioOptions?: RadioOption[];\n @Prop() multiSelectOptions?: MultiSelectOption[];\n @Prop() specificPartKey?: string;\n @Prop() ariaDescribedBy = \"\";\n @Prop() pattern?: string;\n @Prop() patternErrorMessage?: string;\n @Prop() validationFunc?: (value: string | string[]) => { valid: boolean; message?: string };\n\n @Element() el!: HTMLElement;\n\n @State() selected?: string | string[];\n\n private readStore(fieldName: string): string | undefined | string[] {\n if (!fieldName) return;\n const data: ProfileRaw = profileState.data;\n\n if (!data) return;\n\n let field: ProfileNode | undefined;\n\n if (fieldName.startsWith(\"custom_attributes.\")) {\n const key = fieldName.replace(\"custom_attributes.\", \"\");\n field = data.custom_attributes?.[key];\n } else {\n field = data[fieldName];\n }\n\n if (!field) return;\n\n if (field.radio_options) {\n const checkedOption = field.radio_options.find((option: RadioOption) => option.checked);\n\n const checkedValue = checkedOption?.value ?? field.value ?? \"\";\n\n return String(checkedValue);\n }\n\n if (field.type === \"checkbox\") {\n return Array.isArray(field.value) ? field.value : [];\n }\n\n return field.value;\n }\n\n private writeStore(fieldName: string, value: string | string[]) {\n if (!fieldName) return;\n const data: ProfileRaw = profileState.data;\n if (!data) return;\n\n const isCustomAttribute = fieldName.startsWith(\"custom_attributes.\");\n const key = isCustomAttribute ? fieldName.replace(\"custom_attributes.\", \"\") : fieldName;\n\n if (isCustomAttribute) {\n const field = data.custom_attributes?.[key];\n profileState.data = {\n ...data,\n custom_attributes: {\n ...data.custom_attributes,\n [key]: { ...field, value },\n },\n };\n } else {\n const field = data[key];\n profileState.data = { ...data, [key]: { ...field, value } };\n }\n }\n\n private runExternalValidator(value: string | string[]) {\n if (this.validationFunc) {\n try {\n return this.validationFunc(value);\n } catch (e) {\n this.logger.error(\"External validator (validationFunc) threw an error:\", e);\n return null;\n }\n }\n }\n\n private validateValue(value: string | string[]): { valid: boolean; message: string } {\n // TODO: We should validate this when the component is loading.\n if (this.required) {\n const empty = value === undefined || value === null || value === \"\";\n if (empty) {\n return { valid: false, message: \"This field is required.\" };\n }\n }\n\n if (this.pattern && typeof value === \"string\") {\n const regex = new RegExp(this.pattern);\n if (!regex.test(value)) {\n return { valid: false, message: this.patternErrorMessage || \"Invalid format.\" };\n }\n }\n\n const externalResult = this.runExternalValidator(value);\n\n if (externalResult && !externalResult.valid) {\n return { valid: false, message: externalResult.message || \"Invalid input.\" };\n }\n\n if (this.type === \"tel\") {\n const phonePattern = /^(?=.{4,13}$)(\\+\\d+|\\d+)$/;\n if (typeof value === \"string\" && value !== \"\" && !phonePattern.test(value)) {\n return { valid: false, message: this.invalidPhoneMessage };\n }\n }\n\n return { valid: true, message: \"\" };\n }\n\n private getNormalizedOptions(): Option[] {\n if (Array.isArray(this.options)) return this.options;\n\n // unidy-raw-field select-options prop can be a JSON string\n if (typeof this.options === \"string\") return JSON.parse(this.options);\n\n return [];\n }\n\n private countryIcon(countryCode: string, placeholder = \"➖\"): string {\n if (!/^[A-Z]{2}$/.test(countryCode)) {\n return placeholder;\n }\n\n return Array.from(countryCode)\n .map((char) => String.fromCodePoint(0x1f1e6 + (char.charCodeAt(0) - \"A\".charCodeAt(0))))\n .join(\"\");\n }\n\n private onMultiToggle = (optValue: string, checked: boolean) => {\n const currentValues = Array.isArray(this.selected) ? this.selected : [];\n let updatedValues: string[];\n if (checked) {\n updatedValues = currentValues.includes(optValue) ? currentValues : [...currentValues, optValue];\n } else {\n updatedValues = currentValues.filter((v) => v !== optValue);\n }\n\n this.selected = updatedValues;\n // TODO: validate multiselect if needed\n this.writeStore(this.field, updatedValues);\n };\n\n private onBlurFieldValidation = (e: Event) => {\n const input = e.target as HTMLInputElement | HTMLTextAreaElement;\n const val = input.value;\n\n const result = this.validateValue(val);\n const newErrors = { ...profileState.errors };\n\n if (result.valid) {\n delete newErrors[this.field];\n } else {\n newErrors[this.field] = result.message;\n }\n\n profileState.errors = newErrors;\n };\n\n private onChangeFieldValidation = (newValue: string) => {\n this.selected = newValue;\n\n const result = this.validateValue(newValue);\n const newErrors = { ...profileState.errors };\n\n if (result.valid) {\n delete newErrors[this.field];\n this.writeStore(this.field, newValue);\n } else {\n newErrors[this.field] = result.message;\n }\n\n profileState.errors = newErrors;\n };\n\n componentWillLoad() {\n if (!this.field) throw new Error('u-raw-field: \"field\" is required.');\n if (!this.type) throw new Error('u-raw-field: \"type\" is required.');\n\n const allowed: Set<string> = new Set([\"text\", \"email\", \"tel\", \"password\", \"number\", \"date\", \"radio\", \"textarea\", \"select\", \"checkbox\"]);\n if (!allowed.has(this.type)) {\n this.type = \"text\";\n }\n\n const current = this.readStore(this.field);\n const isType =\n this.type === \"text\" ||\n this.type === \"email\" ||\n this.type === \"tel\" ||\n this.type === \"password\" ||\n this.type === \"number\" ||\n this.type === \"date\" ||\n this.type === \"textarea\" ||\n this.type === \"select\";\n\n if (isType && (current === undefined || current === null) && typeof this.value === \"string\") {\n this.writeStore(this.field, this.value);\n }\n\n this.selected = current;\n }\n\n componentDidRender() {\n const errs = profileState.errors;\n if (errs?.[this.field]) {\n this.el.querySelector<HTMLInputElement | HTMLTextAreaElement>(`#${CSS.escape(this.field)}`)?.focus();\n }\n }\n\n render() {\n if (this.type === \"radio\") {\n if (Array.isArray(this.radioOptions) && this.radioOptions.length) {\n const checkedOptions = this.radioOptions.map((opt) => ({\n ...opt,\n checked: String(opt.value) === this.selected,\n }));\n return (\n <RadioGroup\n name={this.field}\n disabled={this.disabled}\n title={this.tooltip}\n type=\"radio\"\n onChange={this.onChangeFieldValidation}\n options={checkedOptions}\n specificPartKey={this.specificPartKey}\n aria-describedby={this.ariaDescribedBy}\n required={this.required}\n />\n );\n }\n\n if (typeof this.value === \"string\") {\n const currentValue = this.readStore(this.field);\n const isChecked = currentValue != null && String(currentValue) === this.value;\n return (\n <RadioGroup\n name={this.field}\n value={this.value}\n checked={isChecked}\n disabled={this.disabled}\n title={this.tooltip}\n componentClassName={this.componentClassName}\n type=\"radio\"\n specificPartKey={this.specificPartKey}\n onChange={this.onChangeFieldValidation}\n aria-describedby={this.ariaDescribedBy}\n required={this.required}\n />\n );\n }\n }\n\n if (this.type === \"checkbox\") {\n if (Array.isArray(this.multiSelectOptions) && this.multiSelectOptions.length) {\n const selected = Array.isArray(this.selected) ? this.selected : [];\n return (\n <MultiSelect\n value={selected}\n options={this.multiSelectOptions}\n disabled={this.disabled}\n title={this.tooltip}\n type=\"checkbox\"\n specificPartKey={this.specificPartKey}\n onToggle={this.onMultiToggle}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n\n if (this.value) {\n const currentValue = (this.readStore(this.field) as string[]) ?? [];\n const isChecked = currentValue?.includes(this.value as string);\n return (\n <MultiSelect\n id={`${this.field}-${this.value}`}\n name={this.field}\n value={this.value as string}\n checked={isChecked}\n disabled={this.disabled}\n title={this.tooltip}\n componentClassName={this.componentClassName}\n type=\"checkbox\"\n onToggle={(val, checked) => {\n const current = this.readStore(this.field) as string[];\n const updated = checked ? [...current, val] : current.filter((v) => v !== val);\n this.writeStore(this.field, updated);\n }}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n }\n\n if (this.type === \"select\") {\n const currentValue = (this.readStore(this.field) as string) ?? \"\";\n const option = this.getNormalizedOptions();\n return (\n <Select\n id={this.field}\n name={this.field}\n value={currentValue}\n options={option}\n disabled={this.disabled}\n title={this.tooltip}\n emptyOption={this.emptyOption}\n onChange={this.onChangeFieldValidation}\n componentClassName={this.componentClassName}\n countryCodeDisplayOption={this.countryCodeDisplayOption}\n countryIcon={this.countryIcon}\n attr_name={this.attrName}\n specificPartKey={this.specificPartKey}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n\n if (this.type === \"textarea\") {\n const currentValue = (this.readStore(this.field) as string) || \"\";\n return (\n <Textarea\n id={this.field}\n value={currentValue}\n required={this.required}\n disabled={this.disabled}\n title={this.tooltip}\n componentClassName={this.componentClassName}\n specificPartKey={this.specificPartKey}\n onChange={this.onChangeFieldValidation}\n onBlur={this.onBlurFieldValidation}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n\n const currentValue = (this.readStore(this.field) as string) || \"\";\n return (\n <Input\n id={this.field}\n value={currentValue}\n required={this.required}\n disabled={this.disabled}\n title={this.tooltip}\n type={this.type}\n componentClassName={this.componentClassName}\n placeholder={this.placeholder}\n specificPartKey={this.specificPartKey}\n onChange={this.onChangeFieldValidation}\n onBlur={this.onBlurFieldValidation}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n}\n"],"names":["profileState"],"mappings":";;;;;;AAAA,MAAM,QAAQ,GAAG,4tPAA4tP;;MCwBhuP,KAAK,GAAA,MAAA;;;;AACR,IAAA,KAAK;IACL,QAAQ,GAAG,KAAK;IAChB,mBAAmB,GAAG,gBAAgB;IACtC,wBAAwB,GAAsB,OAAO;IACrD,mBAAmB,GAAG,oCAAoC;AAC/B,IAAA,kBAAkB;IAC7C,WAAW,GAAG,IAAI;AAClB,IAAA,WAAW;IACX,kBAAkB,GAAG,IAAI;AAEzB,IAAA,OAAO;AACP,IAAA,mBAAmB;AACnB,IAAA,cAAc;;AAIb,IAAA,QAAQ;IAET,YAAY,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,oBAAoB;AAC/C,cAAEA,KAAY,CAAC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC;cAClFA,KAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;;IA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,eAAe,EAAA,CACtC;;;;;;"}
1
+ {"version":3,"file":"u-field.u-raw-field.entry.esm.js","sources":["src/profile/components/field/field.css?tag=u-field&encapsulation=shadow","src/profile/components/field/field.tsx","src/shared/context-utils.ts","src/profile/components/raw-input-fields/Input.tsx","src/profile/components/raw-input-fields/MultiSelect.tsx","src/profile/components/raw-input-fields/RadioGroup.tsx","src/profile/components/raw-input-fields/Select.tsx","src/profile/components/raw-input-fields/Textarea.tsx","src/profile/components/raw-field/raw-field.tsx"],"sourcesContent":[":host {\n display: block;\n}\n.field-error:focus {\n border-color: red;\n outline-color: red;\n}\n\n.multi-select-readonly-container {\n list-style: none;\n}\n.multi-select-readonly-container li {\n display: inline-block;\n}\n\n[part=\"input\"]:disabled,\n[part=\"select\"]:disabled {\n cursor: not-allowed;\n}\n","import { Component, Element, h, Prop, State } from \"@stencil/core\";\nimport { t } from \"../../../i18n\";\nimport { state as profileState } from \"../../store/profile-store\";\n/**\n * @part select_field - Styles the base <select> element.\n * @part select_field--example_field - Example of a field-specific selector.\n * Replace `example_field` with your field name.\n * e.g. `custom_attributes.favorite_nut` → `select_field--custom_attributes-favorite_nut`, `country_code` → `select_field--country-code`\n * @part radio-group-item_radio\n * @part radio-group_field\n * @part radio-group-item_label\n * @part radio_checked\n * @part multi-select-item_checkbox\n * @part multi-select-group_field\n * @part multi-select-item_label\n * @part textarea_field\n * @part input_field\n */\n\n@Component({\n tag: \"u-field\",\n styleUrl: \"field.css\",\n shadow: true,\n})\nexport class Field {\n @Prop() field!: string;\n @Prop() required = false;\n @Prop() readonlyPlaceholder = \"No information\";\n @Prop() countryCodeDisplayOption?: \"icon\" | \"label\" = \"label\";\n @Prop() invalidPhoneMessage = \"Please enter a valid phone number.\";\n @Prop({ attribute: \"class-name\" }) componentClassName?: string;\n @Prop() emptyOption = true;\n @Prop() placeholder?: string;\n @Prop() renderDefaultLabel = true;\n\n @Prop() pattern?: string;\n @Prop() patternErrorMessage?: string;\n @Prop() validationFunc?: (value: string | string[]) => { valid: boolean; message?: string };\n\n @Element() el!: HTMLElement;\n\n @State() selected?: string | string[];\n\n private getFieldData() {\n return this.field.startsWith(\"custom_attributes.\")\n ? profileState.data.custom_attributes?.[this.field.replace(\"custom_attributes.\", \"\")]\n : profileState.data[this.field];\n }\n\n componentDidRender() {\n const fieldErrors = profileState.errors;\n\n if (Object.keys(fieldErrors)[0] === this.field) {\n this.el.shadowRoot?.getElementById(this.field)?.scrollIntoView({ behavior: \"smooth\", block: \"center\" });\n this.el.shadowRoot\n ?.getElementById(this.field)\n ?.querySelector<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>(\"input, select, textarea\")\n ?.focus();\n }\n }\n\n private createSpecificPartKey(fieldName: string) {\n if (fieldName.startsWith(\"custom_attributes.\")) {\n return fieldName.replace(/[^\\w-]/g, \"-\");\n }\n return fieldName;\n }\n\n // biome-ignore lint/suspicious/noExplicitAny: needed for dynamic fieldData\n private multiSelectLabel = (fieldData: any): string[] => {\n const multiselectMatches: string[] = [];\n if (Array.isArray(fieldData.value)) {\n for (const val of fieldData.value) {\n // biome-ignore lint/suspicious/noExplicitAny: needed for dynamic option\n const match = fieldData.options?.find((opt: any) => opt.value === val);\n const optionTranslationKey = `fields.${this.field}.options.${val}`;\n const translatedOptionLabel = t(optionTranslationKey);\n const optionLabel = translatedOptionLabel !== optionTranslationKey ? translatedOptionLabel : match?.label;\n multiselectMatches.push(optionLabel ?? val);\n }\n }\n return multiselectMatches;\n };\n\n render() {\n const fieldData = this.getFieldData();\n if (!fieldData) {\n return null;\n }\n\n const labelTranslationKey = `fields.${this.field}.label`;\n const label = t(labelTranslationKey, { defaultValue: fieldData?.label });\n\n const placeholderTranslationKey = `fields.${this.field}.placeholder`;\n const placeholder = t(placeholderTranslationKey, { defaultValue: this.placeholder ? this.placeholder : \"\" });\n\n const readonlyPlaceholderTranslationKey = `fields.${this.field}.readonlyPlaceholder`;\n const readonlyPlaceholder = t(readonlyPlaceholderTranslationKey, {\n defaultValue: this.readonlyPlaceholder ? this.readonlyPlaceholder : \"\",\n });\n\n const translatedOptions = (fieldData.options || []).map((opt) => {\n const translationKey = `fields.${this.field}.options.${opt.value}`;\n const label = t(translationKey, { defaultValue: opt.label });\n return { ...opt, label };\n });\n\n const translatedRadioOptions = (fieldData.radio_options || []).map((opt) => {\n const translationKey = `fields.${this.field}.options.${opt.value}`;\n const label = t(translationKey, { defaultValue: opt.label });\n return { ...opt, label };\n });\n\n const errorPrefix = t(\"errors.prefix\", { defaultValue: \"ERROR: \" });\n\n const isLocked = !!fieldData?.locked;\n const lockedText = fieldData?.locked_text ? fieldData.locked_text : \"\";\n const isReadonly = fieldData?.readonly === true;\n const multiSelectReadonlyLabels = this.multiSelectLabel(fieldData);\n\n return (\n <div part={`field-container field-container--${this.createSpecificPartKey(this.field)}`}>\n <slot name=\"label\" />\n\n {this.renderDefaultLabel && (\n <label htmlFor={this.field} part={`field_label field_label--${this.createSpecificPartKey(this.field)}`}>\n {label}\n {fieldData?.required || this.required ? <span part=\"required-indicator\"> *</span> : null}\n </label>\n )}\n {isReadonly && fieldData?.type !== \"checkbox\" ? (\n <span id={this.field} part=\"readonly-indicator\">\n {fieldData?.value || readonlyPlaceholder}\n </span>\n ) : null}\n {isReadonly && fieldData?.type === \"checkbox\" && (\n <ul id={this.field} class=\"multi-select-readonly-container\" part=\"multi-select-readonly-container\">\n {multiSelectReadonlyLabels.map((label) => (\n <li key={label} part=\"multi-select-readonly-field\">\n {label}\n </li>\n ))}\n </ul>\n )}\n {!isReadonly && (\n <u-raw-field\n id={this.field}\n field={this.field}\n type={fieldData.type as string}\n value={fieldData.value}\n options={fieldData.type === \"select\" ? translatedOptions : undefined}\n radioOptions={fieldData.type === \"radio\" ? translatedRadioOptions : undefined}\n multiSelectOptions={fieldData.type === \"checkbox\" ? translatedOptions : undefined}\n required={fieldData.required || this.required}\n // disable editing of email field\n disabled={isLocked || profileState.loading || this.field === \"email\"}\n tooltip={isLocked ? lockedText : undefined}\n placeholder={placeholder}\n componentClassName={this.componentClassName}\n emptyOption={this.emptyOption}\n countryCodeDisplayOption={this.countryCodeDisplayOption}\n attrName={fieldData.attr_name}\n specificPartKey={this.createSpecificPartKey(this.field)}\n ariaDescribedBy={profileState.errors[this.field] ? `${this.field}-error` : undefined}\n pattern={this.pattern}\n patternErrorMessage={this.patternErrorMessage}\n validationFunc={this.validationFunc}\n />\n )}\n\n {profileState.errors[this.field] && (\n <span id={`${this.field}-error`} part=\"field-error-message\" aria-live=\"assertive\">\n {errorPrefix} {profileState.errors[this.field]}\n </span>\n )}\n </div>\n );\n }\n}\n","/**\n * Type map for parent component lookups.\n * Maps custom element tag names to their corresponding TypeScript types.\n */\ntype ParentComponentMap = {\n \"u-profile\": HTMLUProfileElement;\n \"u-signin-root\": HTMLUSigninRootElement;\n \"u-signin-step\": HTMLUSigninStepElement;\n \"u-newsletter-root\": HTMLUNewsletterRootElement;\n \"u-ticketable-list\": HTMLUTicketableListElement;\n};\n\n/**\n * Component context types used throughout the SDK.\n */\nexport type ComponentContext = \"auth\" | \"profile\" | \"newsletter\" | \"ticketable\";\n\n// ============================================================================\n// Parent Component Lookup Utilities\n// ============================================================================\n\n/**\n * Generic helper to find a parent component by tag name with proper typing.\n *\n * @param element - The element to start searching from\n * @param tagName - The tag name of the parent component to find\n * @returns The parent component element or null if not found\n *\n * @example\n * const profile = findParent(this.el, \"u-profile\");\n * profile?.submitProfile();\n */\nexport function findParent<T extends keyof ParentComponentMap>(element: HTMLElement, tagName: T): ParentComponentMap[T] | null {\n return element.closest(tagName) as ParentComponentMap[T] | null;\n}\n\n/**\n * Find the parent u-profile component.\n */\nexport function findParentProfile(element: HTMLElement): HTMLUProfileElement | null {\n return findParent(element, \"u-profile\");\n}\n\n/**\n * Find the parent u-signin-root component.\n */\nexport function findParentSigninRoot(element: HTMLElement): HTMLUSigninRootElement | null {\n return findParent(element, \"u-signin-root\");\n}\n\n/**\n * Find the parent u-signin-step component.\n */\nexport function findParentSigninStep(element: HTMLElement): HTMLUSigninStepElement | null {\n return findParent(element, \"u-signin-step\");\n}\n\n/**\n * Find the parent u-newsletter-root component.\n */\nexport function findParentNewsletterRoot(element: HTMLElement): HTMLUNewsletterRootElement | null {\n return findParent(element, \"u-newsletter-root\");\n}\n\n/**\n * Find the parent u-ticketable-list component.\n */\nexport function findParentTicketableList(element: HTMLElement): HTMLUTicketableListElement | null {\n return findParent(element, \"u-ticketable-list\");\n}\n\n// ============================================================================\n// Context Detection Utilities\n// ============================================================================\n\n/**\n * Detects which component context an element is within.\n * Returns null if not within any known context.\n *\n * @param element - The element to detect context for\n * @returns The detected context or null\n *\n * @example\n * const context = detectContext(this.el);\n * if (context === \"auth\") { ... }\n */\nexport function detectContext(element: HTMLElement): ComponentContext | null {\n if (findParentSigninRoot(element) || findParentSigninStep(element)) {\n return \"auth\";\n }\n\n if (findParentProfile(element)) {\n return \"profile\";\n }\n\n if (findParentNewsletterRoot(element)) {\n return \"newsletter\";\n }\n\n if (findParentTicketableList(element)) {\n return \"ticketable\";\n }\n\n return null;\n}\n\n/**\n * Detects component context, throwing an error if not found.\n * Use this when the component requires being within a specific context.\n *\n * @param element - The element to detect context for\n * @param componentName - Name of the component for error message\n * @returns The detected context\n * @throws Error if no context is found\n *\n * @example\n * const context = detectContextOrThrow(this.el, \"submit button\");\n */\nexport function detectContextOrThrow(element: HTMLElement, componentName: string): ComponentContext {\n const context = detectContext(element);\n\n if (!context) {\n throw new Error(\n `No context found for ${componentName}. Make sure you are using the component within a u-signin-root, u-profile, u-newsletter-root, or u-ticketable-list.`,\n );\n }\n\n return context;\n}\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\ntype InputProps = {\n id: string;\n type: string;\n value: string | undefined;\n componentClassName?: string;\n disabled?: boolean;\n required?: boolean;\n title?: string;\n placeholder?: string;\n specificPartKey?: string;\n onChange: (value: string) => void;\n onBlur?: (e: Event) => void;\n ariaDescribedBy?: string;\n};\n\nexport const Input: FunctionalComponent<InputProps> = (props) => (\n <input\n id={props.id}\n type={props.type}\n value={props.value}\n class={props.componentClassName}\n disabled={props.disabled}\n required={props.required}\n part={`input_field ${props.specificPartKey ? `input_field--${props.specificPartKey}` : \"\"}`}\n title={props.title}\n placeholder={props.placeholder}\n onChange={(e) => props.onChange((e.target as HTMLInputElement).value)}\n onBlur={(e) => props.onBlur?.(e)}\n aria-describedby={props.ariaDescribedBy || undefined}\n />\n);\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\nexport type MultiSelectOption = { value: string; label: string };\n\ntype MultiSelectProps =\n | {\n value: string[];\n options: MultiSelectOption[];\n disabled?: boolean;\n title?: string;\n type?: string;\n specificPartKey?: string;\n onToggle: (optValue: string, checked: boolean) => void;\n ariaDescribedBy?: string;\n }\n | {\n id?: string;\n name: string;\n value: string;\n checked: boolean;\n componentClassName?: string;\n disabled?: boolean;\n title?: string;\n type?: string;\n onToggle: (optValue: string, checked: boolean) => void;\n ariaDescribedBy?: string;\n };\n\nexport const MultiSelect: FunctionalComponent<MultiSelectProps> = (props) => {\n if (!(\"options\" in props)) {\n return (\n <input\n id={props.id}\n type={props.type}\n name={props.name}\n value={props.value}\n checked={props.checked}\n disabled={props.disabled}\n title={props.title}\n class={props.componentClassName}\n onChange={(e) => props.onToggle(props.value, (e.target as HTMLInputElement).checked)}\n aria-describedby={props.ariaDescribedBy || undefined}\n />\n );\n }\n\n return (\n <div\n part={`multi-select-group_field ${props.specificPartKey ? `multi-select-group_field--${props.specificPartKey}` : \"\"}`}\n title={props.title}\n aria-describedby={props.ariaDescribedBy || undefined}\n >\n {props.options.map((opt) => (\n <label\n key={opt.value}\n htmlFor={`${props.specificPartKey}-${opt.value}`}\n part={`multi-select-item_label ${props.specificPartKey ? `multi-select-item_label--${props.specificPartKey}` : \"\"}`}\n >\n <input\n id={`${props.specificPartKey}-${opt.value}`}\n type={props.type}\n checked={Array.isArray(props.value) && props.value.includes(opt.value)}\n disabled={props.disabled}\n title={props.title}\n onChange={(e) => props.onToggle(opt.value, (e.target as HTMLInputElement).checked)}\n part={`multi-select-item_checkbox ${props.specificPartKey ? `multi-select-item_checkbox--${props.specificPartKey}` : \"\"}`}\n />\n {opt.label}\n </label>\n ))}\n </div>\n );\n};\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\nexport type RadioOption = { value: string; label: string; checked: boolean };\n\ntype RadioGroupProps =\n | {\n options: RadioOption[];\n disabled?: boolean;\n type?: string;\n name?: string;\n title?: string;\n specificPartKey?: string;\n onChange: (value: string) => void;\n ariaDescribedBy?: string;\n required?: boolean;\n }\n | {\n value: string;\n checked: boolean;\n disabled?: boolean;\n type?: string;\n name: string;\n title?: string;\n componentClassName?: string;\n onChange: (value: string) => void;\n ariaDescribedBy?: string;\n required?: boolean;\n };\n\nexport const RadioGroup: FunctionalComponent<RadioGroupProps> = (props) => {\n if (!(\"options\" in props)) {\n return (\n <input\n type={props.type}\n name={props.name}\n required={props.required}\n value={String(props.value)}\n checked={props.checked}\n disabled={props.disabled}\n title={props.title}\n class={props.componentClassName}\n onChange={() => props.onChange(String(props.value))}\n aria-describedby={props.ariaDescribedBy || undefined}\n />\n );\n }\n\n return (\n <div\n part={`radio-group_field ${props.specificPartKey ? `radio-group_field--${props.specificPartKey}` : \"\"}`}\n title={props.title}\n aria-describedby={props.ariaDescribedBy || undefined}\n >\n {props.options.map((opt) => (\n <label\n htmlFor={`${props.name}-${opt.value}`}\n key={String(opt.value)}\n part={`radio-group-item_label ${props.specificPartKey ? `radio-group-item_label--${props.specificPartKey}` : \"\"} ${opt.checked ? \"radio_checked\" : \"\"}`}\n data-checked={opt.checked ? \"true\" : \"false\"}\n >\n <input\n id={`${props.name}-${opt.value}`}\n type={props.type}\n name={props.name}\n required={props.required}\n value={String(opt.value)}\n checked={opt.checked}\n disabled={props.disabled}\n onChange={() => props.onChange(String(opt.value))}\n part={`radio-group-item_radio ${props.specificPartKey ? `radio-group-item_radio--${props.specificPartKey}` : \"\"}`}\n />\n {opt.label}\n </label>\n ))}\n </div>\n );\n};\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\nexport type Option = { value: string; label: string; selected?: boolean };\n\ntype SelectProps = {\n id: string;\n name?: string;\n value: string | string[] | null | undefined;\n options: Option[];\n disabled?: boolean;\n title?: string;\n countryCodeDisplayOption?: string;\n attr_name?: string;\n componentClassName?: string;\n emptyOption: boolean;\n specificPartKey?: string;\n onChange: (value: string) => void;\n countryIcon?: (code: string) => string;\n ariaDescribedBy?: string;\n};\n\nexport const Select: FunctionalComponent<SelectProps> = (props) => {\n const renderOptionLabel = (opt: Option) => {\n if (props.attr_name === \"country_code\" && props.countryCodeDisplayOption === \"icon\" && props.countryIcon) {\n return props.countryIcon(opt.value);\n }\n return opt.label;\n };\n return (\n <select\n id={props.id}\n name={props.name}\n class={props.componentClassName}\n data-value={props.value as string | undefined}\n part={`select_field ${props.specificPartKey ? `select_field--${props.specificPartKey}` : \"\"}`}\n disabled={props.disabled}\n title={props.title}\n onChange={(e) => props.onChange((e.target as HTMLSelectElement).value)}\n aria-describedby={props.ariaDescribedBy || undefined}\n >\n {props.emptyOption ? <option value=\"\" selected={props.value === null || props.value === \"\"} /> : null}\n {props.options.map((opt) => (\n <option\n key={opt.value}\n value={opt.value}\n data-selected={opt.value === props.value ? \"true\" : \"false\"}\n selected={opt.value === props.value}\n disabled={opt.value === \"--\"}\n >\n {renderOptionLabel(opt)}\n </option>\n ))}\n </select>\n );\n};\n","import { type FunctionalComponent, h } from \"@stencil/core\";\n\ntype TextareaProps = {\n id: string;\n value: string | undefined;\n disabled?: boolean;\n required?: boolean;\n title?: string;\n name?: string;\n componentClassName?: string;\n placeholder?: string;\n specificPartKey?: string;\n onChange: (value: string) => void;\n onBlur?: (e: Event) => void;\n ariaDescribedBy?: string;\n};\n\nexport const Textarea: FunctionalComponent<TextareaProps> = (props) => (\n <textarea\n id={props.id}\n value={props.value}\n name={props.name}\n class={props.componentClassName}\n required={props.required}\n part={`textarea_field ${props.specificPartKey ? `textarea_field--${props.specificPartKey}` : \"\"}`}\n disabled={props.disabled}\n title={props.title}\n onChange={(e) => props.onChange((e.target as HTMLTextAreaElement).value)}\n onBlur={props.onBlur}\n aria-describedby={props.ariaDescribedBy || undefined}\n />\n);\n","import { Component, Element, h, Prop, State } from \"@stencil/core\";\nimport { newsletterStore } from \"../../../newsletter/store/newsletter-store\";\nimport { UnidyComponent } from \"../../../shared/base/component\";\nimport { type ComponentContext, detectContext } from \"../../../shared/context-utils\";\nimport { type ProfileNode, type ProfileRaw, state as profileState } from \"../../store/profile-store\";\nimport { Input } from \"../raw-input-fields/Input\";\nimport { MultiSelect, type MultiSelectOption } from \"../raw-input-fields/MultiSelect\";\nimport { RadioGroup, type RadioOption } from \"../raw-input-fields/RadioGroup\";\nimport { type Option, Select } from \"../raw-input-fields/Select\";\nimport { Textarea } from \"../raw-input-fields/Textarea\";\n\n@Component({\n tag: \"u-raw-field\",\n shadow: false,\n})\nexport class RawField extends UnidyComponent() {\n @Prop() required = false;\n @Prop() readonlyPlaceholder = \"\";\n @Prop() countryCodeDisplayOption?: \"icon\" | \"label\" = \"label\";\n @Prop() invalidPhoneMessage = \"Please enter a valid phone number.\";\n @Prop({ attribute: \"class-name\" }) componentClassName?: string;\n\n @Prop() field!: string;\n @Prop() value?: string | string[];\n @Prop() checked?: boolean;\n @Prop() disabled?: boolean;\n @Prop() tooltip?: string;\n @Prop() type!: string;\n @Prop() placeholder?: string;\n @Prop() options?: string | Option[];\n @Prop() emptyOption = false;\n @Prop() attrName?: string;\n @Prop() radioOptions?: RadioOption[];\n @Prop() multiSelectOptions?: MultiSelectOption[];\n @Prop() specificPartKey?: string;\n @Prop() ariaDescribedBy = \"\";\n @Prop() pattern?: string;\n @Prop() patternErrorMessage?: string;\n @Prop() validationFunc?: (value: string | string[]) => { valid: boolean; message?: string };\n\n @Element() el!: HTMLElement;\n\n @State() selected?: string | string[];\n\n private get context(): ComponentContext | null {\n return detectContext(this.el);\n }\n\n private readStore(fieldName: string): string | undefined | string[] {\n if (!fieldName) return;\n return this.context === \"newsletter\" ? this.readNewsletterStore(fieldName) : this.readProfileStore(fieldName);\n }\n\n private readProfileStore(fieldName: string): string | undefined | string[] {\n const data: ProfileRaw = profileState.data;\n\n if (!data) return;\n\n let field: ProfileNode | undefined;\n\n if (fieldName.startsWith(\"custom_attributes.\")) {\n const key = fieldName.replace(\"custom_attributes.\", \"\");\n field = data.custom_attributes?.[key];\n } else {\n field = data[fieldName];\n }\n\n if (!field) return;\n\n if (field.radio_options) {\n const checkedOption = field.radio_options.find((option: RadioOption) => option.checked);\n\n const checkedValue = checkedOption?.value ?? field.value ?? \"\";\n\n return String(checkedValue);\n }\n\n if (field.type === \"checkbox\") {\n return Array.isArray(field.value) ? field.value : [];\n }\n\n return field.value;\n }\n\n private readNewsletterStore(fieldName: string): string | undefined | string[] {\n const field = newsletterStore.state.additionalFields[fieldName];\n return field?.value;\n }\n\n private writeStore(fieldName: string, value: string | string[]) {\n if (!fieldName) return;\n this.context === \"newsletter\" ? this.writeNewsletterStore(fieldName, value) : this.writeProfileStore(fieldName, value);\n }\n\n private writeProfileStore(fieldName: string, value: string | string[]) {\n const data: ProfileRaw = profileState.data;\n if (!data) return;\n\n const isCustomAttribute = fieldName.startsWith(\"custom_attributes.\");\n const key = isCustomAttribute ? fieldName.replace(\"custom_attributes.\", \"\") : fieldName;\n\n if (isCustomAttribute) {\n const field = data.custom_attributes?.[key];\n profileState.data = {\n ...data,\n custom_attributes: {\n ...data.custom_attributes,\n [key]: { ...field, value },\n },\n };\n } else {\n const field = data[key];\n profileState.data = { ...data, [key]: { ...field, value } };\n }\n }\n\n private writeNewsletterStore(fieldName: string, value: string | string[]) {\n const data = newsletterStore.state.additionalFields;\n newsletterStore.state.additionalFields = {\n ...data,\n [fieldName]: { ...data[fieldName], value },\n };\n }\n\n private getErrors(): Record<string, string> {\n return this.context === \"newsletter\" ? newsletterStore.state.additionalFieldErrors : profileState.errors;\n }\n\n private setErrors(errors: Record<string, string>) {\n if (this.context === \"newsletter\") {\n newsletterStore.state.additionalFieldErrors = errors;\n } else {\n profileState.errors = errors;\n }\n }\n\n private runExternalValidator(value: string | string[]) {\n if (this.validationFunc) {\n try {\n return this.validationFunc(value);\n } catch (e) {\n this.logger.error(\"External validator (validationFunc) threw an error:\", e);\n return null;\n }\n }\n }\n\n private validateValue(value: string | string[]): { valid: boolean; message: string } {\n // TODO: We should validate this when the component is loading.\n if (this.required) {\n const empty = value === undefined || value === null || value === \"\";\n if (empty) {\n return { valid: false, message: \"This field is required.\" };\n }\n }\n\n if (this.pattern && typeof value === \"string\") {\n const regex = new RegExp(this.pattern);\n if (!regex.test(value)) {\n return { valid: false, message: this.patternErrorMessage || \"Invalid format.\" };\n }\n }\n\n const externalResult = this.runExternalValidator(value);\n\n if (externalResult && !externalResult.valid) {\n return { valid: false, message: externalResult.message || \"Invalid input.\" };\n }\n\n if (this.type === \"tel\") {\n const phonePattern = /^(?=.{4,13}$)(\\+\\d+|\\d+)$/;\n if (typeof value === \"string\" && value !== \"\" && !phonePattern.test(value)) {\n return { valid: false, message: this.invalidPhoneMessage };\n }\n }\n\n return { valid: true, message: \"\" };\n }\n\n private getNormalizedOptions(): Option[] {\n if (Array.isArray(this.options)) return this.options;\n\n // unidy-raw-field select-options prop can be a JSON string\n if (typeof this.options === \"string\") return JSON.parse(this.options);\n\n return [];\n }\n\n private countryIcon(countryCode: string, placeholder = \"➖\"): string {\n if (!/^[A-Z]{2}$/.test(countryCode)) {\n return placeholder;\n }\n\n return Array.from(countryCode)\n .map((char) => String.fromCodePoint(0x1f1e6 + (char.charCodeAt(0) - \"A\".charCodeAt(0))))\n .join(\"\");\n }\n\n private onMultiToggle = (optValue: string, checked: boolean) => {\n const currentValues = Array.isArray(this.selected) ? this.selected : [];\n let updatedValues: string[];\n if (checked) {\n updatedValues = currentValues.includes(optValue) ? currentValues : [...currentValues, optValue];\n } else {\n updatedValues = currentValues.filter((v) => v !== optValue);\n }\n\n this.selected = updatedValues;\n // TODO: validate multiselect if needed\n this.writeStore(this.field, updatedValues);\n };\n\n private onBlurFieldValidation = (e: Event) => {\n const input = e.target as HTMLInputElement | HTMLTextAreaElement;\n const val = input.value;\n\n const result = this.validateValue(val);\n const newErrors = { ...this.getErrors() };\n\n if (result.valid) {\n delete newErrors[this.field];\n } else {\n newErrors[this.field] = result.message;\n }\n\n this.setErrors(newErrors);\n };\n\n private onChangeFieldValidation = (newValue: string) => {\n this.selected = newValue;\n\n const result = this.validateValue(newValue);\n const newErrors = { ...this.getErrors() };\n\n if (result.valid) {\n delete newErrors[this.field];\n this.writeStore(this.field, newValue);\n } else {\n newErrors[this.field] = result.message;\n }\n\n this.setErrors(newErrors);\n };\n\n componentWillLoad() {\n if (!this.field) throw new Error('u-raw-field: \"field\" is required.');\n if (!this.type) throw new Error('u-raw-field: \"type\" is required.');\n\n const allowed: Set<string> = new Set([\"text\", \"email\", \"tel\", \"password\", \"number\", \"date\", \"radio\", \"textarea\", \"select\", \"checkbox\"]);\n if (!allowed.has(this.type)) {\n this.type = \"text\";\n }\n\n const current = this.readStore(this.field);\n const isType =\n this.type === \"text\" ||\n this.type === \"email\" ||\n this.type === \"tel\" ||\n this.type === \"password\" ||\n this.type === \"number\" ||\n this.type === \"date\" ||\n this.type === \"textarea\" ||\n this.type === \"select\";\n\n if (isType && (current === undefined || current === null) && typeof this.value === \"string\") {\n this.writeStore(this.field, this.value);\n }\n\n this.selected = current;\n }\n\n componentDidRender() {\n const errs = this.getErrors();\n if (errs?.[this.field]) {\n this.el.querySelector<HTMLInputElement | HTMLTextAreaElement>(`#${CSS.escape(this.field)}`)?.focus();\n }\n }\n\n render() {\n if (this.type === \"radio\") {\n if (Array.isArray(this.radioOptions) && this.radioOptions.length) {\n const checkedOptions = this.radioOptions.map((opt) => ({\n ...opt,\n checked: String(opt.value) === this.selected,\n }));\n return (\n <RadioGroup\n name={this.field}\n disabled={this.disabled}\n title={this.tooltip}\n type=\"radio\"\n onChange={this.onChangeFieldValidation}\n options={checkedOptions}\n specificPartKey={this.specificPartKey}\n aria-describedby={this.ariaDescribedBy}\n required={this.required}\n />\n );\n }\n\n if (typeof this.value === \"string\") {\n const currentValue = this.readStore(this.field);\n const isChecked = currentValue != null && String(currentValue) === this.value;\n return (\n <RadioGroup\n name={this.field}\n value={this.value}\n checked={isChecked}\n disabled={this.disabled}\n title={this.tooltip}\n componentClassName={this.componentClassName}\n type=\"radio\"\n specificPartKey={this.specificPartKey}\n onChange={this.onChangeFieldValidation}\n aria-describedby={this.ariaDescribedBy}\n required={this.required}\n />\n );\n }\n }\n\n if (this.type === \"checkbox\") {\n if (Array.isArray(this.multiSelectOptions) && this.multiSelectOptions.length) {\n const selected = Array.isArray(this.selected) ? this.selected : [];\n return (\n <MultiSelect\n value={selected}\n options={this.multiSelectOptions}\n disabled={this.disabled}\n title={this.tooltip}\n type=\"checkbox\"\n specificPartKey={this.specificPartKey}\n onToggle={this.onMultiToggle}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n\n if (this.value) {\n const currentValue = (this.readStore(this.field) as string[]) ?? [];\n const isChecked = currentValue?.includes(this.value as string);\n return (\n <MultiSelect\n id={`${this.field}-${this.value}`}\n name={this.field}\n value={this.value as string}\n checked={isChecked}\n disabled={this.disabled}\n title={this.tooltip}\n componentClassName={this.componentClassName}\n type=\"checkbox\"\n onToggle={(val, checked) => {\n const current = this.readStore(this.field) as string[];\n const updated = checked ? [...current, val] : current.filter((v) => v !== val);\n this.writeStore(this.field, updated);\n }}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n }\n\n if (this.type === \"select\") {\n const currentValue = (this.readStore(this.field) as string) ?? \"\";\n const option = this.getNormalizedOptions();\n return (\n <Select\n id={this.field}\n name={this.field}\n value={currentValue}\n options={option}\n disabled={this.disabled}\n title={this.tooltip}\n emptyOption={this.emptyOption}\n onChange={this.onChangeFieldValidation}\n componentClassName={this.componentClassName}\n countryCodeDisplayOption={this.countryCodeDisplayOption}\n countryIcon={this.countryIcon}\n attr_name={this.attrName}\n specificPartKey={this.specificPartKey}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n\n if (this.type === \"textarea\") {\n const currentValue = (this.readStore(this.field) as string) || \"\";\n return (\n <Textarea\n id={this.field}\n value={currentValue}\n required={this.required}\n disabled={this.disabled}\n title={this.tooltip}\n componentClassName={this.componentClassName}\n specificPartKey={this.specificPartKey}\n onChange={this.onChangeFieldValidation}\n onBlur={this.onBlurFieldValidation}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n\n const currentValue = (this.readStore(this.field) as string) || \"\";\n return (\n <Input\n id={this.field}\n value={currentValue}\n required={this.required}\n disabled={this.disabled}\n title={this.tooltip}\n type={this.type}\n componentClassName={this.componentClassName}\n placeholder={this.placeholder}\n specificPartKey={this.specificPartKey}\n onChange={this.onChangeFieldValidation}\n onBlur={this.onBlurFieldValidation}\n aria-describedby={this.ariaDescribedBy}\n />\n );\n }\n}\n"],"names":["profileState"],"mappings":";;;;;;;;AAAA,MAAM,QAAQ,GAAG,4tPAA4tP;;MCwBhuP,KAAK,GAAA,MAAA;;;;AACR,IAAA,KAAK;IACL,QAAQ,GAAG,KAAK;IAChB,mBAAmB,GAAG,gBAAgB;IACtC,wBAAwB,GAAsB,OAAO;IACrD,mBAAmB,GAAG,oCAAoC;AAC/B,IAAA,kBAAkB;IAC7C,WAAW,GAAG,IAAI;AAClB,IAAA,WAAW;IACX,kBAAkB,GAAG,IAAI;AAEzB,IAAA,OAAO;AACP,IAAA,mBAAmB;AACnB,IAAA,cAAc;;AAIb,IAAA,QAAQ;IAET,YAAY,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,oBAAoB;AAC/C,cAAEA,KAAY,CAAC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC;cAClFA,KAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;;IAGnC,kBAAkB,GAAA;AAChB,QAAA,MAAM,WAAW,GA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