@unidy.io/sdk 1.0.1 → 1.1.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.
- package/dist/cjs/app-globals-DSKjcXX_.js +10 -0
- package/dist/cjs/app-globals-DSKjcXX_.js.map +1 -0
- package/dist/cjs/{auth-COn3PdbX.js → auth-BVKZHhXz.js} +11 -14
- package/dist/cjs/{auth-COn3PdbX.js.map → auth-BVKZHhXz.js.map} +1 -1
- package/dist/cjs/{auth-store-BT2pDmTN.js → auth-store-DC9EVec8.js} +4 -4
- package/dist/cjs/{auth-store-BT2pDmTN.js.map → auth-store-DC9EVec8.js.map} +1 -1
- package/dist/cjs/{flash-store-Bz-eFpp2.js → flash-store-BuIBuQDx.js} +3 -3
- package/dist/cjs/{flash-store-Bz-eFpp2.js.map → flash-store-BuIBuQDx.js.map} +1 -1
- package/dist/cjs/{i18n-DNuyTvmJ.js → i18n-Xy1So-ba.js} +580 -26
- package/dist/cjs/i18n-Xy1So-ba.js.map +1 -0
- package/dist/cjs/index-B_N5xKgH.js +12025 -0
- package/dist/cjs/index-B_N5xKgH.js.map +1 -0
- package/dist/cjs/{index-JpRzPaSm.js → index-DLz3FT7T.js} +3 -3
- package/dist/cjs/{index-JpRzPaSm.js.map → index-DLz3FT7T.js.map} +1 -1
- package/dist/cjs/{index-CtJ5meJ7.js → index-DiUlebpf.js} +18 -17
- package/dist/cjs/index-DiUlebpf.js.map +1 -0
- package/dist/cjs/index.cjs.js +10 -11
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{newsletter-helpers-BINJr8bg.js → newsletter-helpers-DtXuIac8.js} +9 -8
- package/dist/cjs/{newsletter-helpers-BINJr8bg.js.map → newsletter-helpers-DtXuIac8.js.map} +1 -1
- package/dist/cjs/{newsletter-store-D_RRzlpH.js → newsletter-store-dhtu8ywO.js} +3 -3
- package/dist/cjs/{newsletter-store-D_RRzlpH.js.map → newsletter-store-dhtu8ywO.js.map} +1 -1
- package/dist/cjs/{pagination-store-TtGIma9Z.js → pagination-store-BEiW3MQd.js} +3 -3
- package/dist/cjs/{pagination-store-TtGIma9Z.js.map → pagination-store-BEiW3MQd.js.map} +1 -1
- package/dist/cjs/{submit-button-logic-rhAjEO33.js → profile-helpers-DrcTgN5n.js} +4 -4
- package/dist/cjs/profile-helpers-DrcTgN5n.js.map +1 -0
- package/dist/cjs/{profile-store-JiqaDLcK.js → profile-store-P_BcYkef.js} +3 -3
- package/dist/cjs/{profile-store-JiqaDLcK.js.map → profile-store-P_BcYkef.js.map} +1 -1
- package/dist/cjs/sdk.cjs.js +3 -4
- package/dist/cjs/sdk.cjs.js.map +1 -1
- package/dist/cjs/u-conditional-render.cjs.entry.js +11 -12
- package/dist/cjs/u-conditional-render.entry.cjs.js.map +1 -1
- package/dist/cjs/u-config.cjs.entry.js +11 -12
- package/dist/cjs/u-config.entry.cjs.js.map +1 -1
- package/dist/cjs/u-email-field.cjs.entry.js +9 -8
- package/dist/cjs/u-email-field.entry.cjs.js.map +1 -1
- package/dist/cjs/u-error-message.cjs.entry.js +6 -6
- package/dist/cjs/u-field.u-raw-field.entry.cjs.js.map +1 -1
- package/dist/cjs/u-field_2.cjs.entry.js +13 -11
- package/dist/cjs/u-flash-message.cjs.entry.js +3 -3
- package/dist/cjs/u-full-profile.cjs.entry.js +6 -6
- package/dist/cjs/u-full-profile.entry.cjs.js.map +1 -1
- package/dist/cjs/u-logout-button.cjs.entry.js +9 -10
- package/dist/cjs/u-logout-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-magic-code-field.cjs.entry.js +11 -12
- package/dist/cjs/u-magic-code-field.entry.cjs.js.map +1 -1
- package/dist/cjs/u-missing-field.cjs.entry.js +4 -4
- package/dist/cjs/u-missing-fields-submit-button.cjs.entry.js +10 -11
- package/dist/cjs/u-missing-fields-submit-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-newsletter-checkbox.cjs.entry.js +11 -12
- package/dist/cjs/u-newsletter-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/u-newsletter-logout-button.cjs.entry.js +11 -12
- package/dist/cjs/u-newsletter-logout-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-newsletter-preference-checkbox.cjs.entry.js +11 -12
- package/dist/cjs/u-newsletter-preference-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/u-newsletter-resend-doi-button.cjs.entry.js +11 -12
- package/dist/cjs/u-newsletter-resend-doi-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-newsletter-root.cjs.entry.js +20 -14
- package/dist/cjs/u-newsletter-root.entry.cjs.js.map +1 -1
- package/dist/cjs/u-newsletter-toggle-subscription-button.cjs.entry.js +11 -12
- package/dist/cjs/u-newsletter-toggle-subscription-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-pagination-button.cjs.entry.js +1 -1
- package/dist/cjs/u-pagination-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-pagination-page.cjs.entry.js +1 -1
- package/dist/cjs/u-passkey.cjs.entry.js +9 -10
- package/dist/cjs/u-passkey.entry.cjs.js.map +1 -1
- package/dist/cjs/u-password-field.cjs.entry.js +5 -5
- package/dist/cjs/u-profile.u-submit-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-profile_2.cjs.entry.js +39 -59
- package/dist/cjs/u-registration-button.cjs.entry.js +5 -5
- package/dist/cjs/u-reset-password-button.cjs.entry.js +9 -10
- package/dist/cjs/u-reset-password-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-send-magic-code-button.cjs.entry.js +9 -10
- package/dist/cjs/u-send-magic-code-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-signed-in.cjs.entry.js +4 -4
- package/dist/cjs/u-signin-root.cjs.entry.js +4 -4
- package/dist/cjs/u-signin-root.entry.cjs.js.map +1 -1
- package/dist/cjs/u-signin-step.cjs.entry.js +9 -10
- package/dist/cjs/u-signin-step.entry.cjs.js.map +1 -1
- package/dist/cjs/u-signin-strategy.cjs.entry.js +4 -4
- package/dist/cjs/u-social-login-button.cjs.entry.js +8 -9
- package/dist/cjs/u-social-login-button.entry.cjs.js.map +1 -1
- package/dist/cjs/u-spinner.cjs.entry.js +3 -3
- package/dist/cjs/u-spinner.entry.cjs.js.map +1 -1
- package/dist/cjs/u-ticketable-list.cjs.entry.js +9 -10
- package/dist/cjs/u-ticketable-list.entry.cjs.js.map +1 -1
- package/dist/cjs/{unidy-store-C1O0g41c.js → unidy-store-7AbWnZ6g.js} +3 -3
- package/dist/cjs/{unidy-store-C1O0g41c.js.map → unidy-store-7AbWnZ6g.js.map} +1 -1
- package/dist/collection/api/client.js +4 -2
- package/dist/collection/api/client.js.map +1 -1
- package/dist/collection/auth/api/auth.js +1 -1
- package/dist/collection/auth/api/auth.js.map +1 -1
- package/dist/collection/auth/components/magic-code-field/magic-code-field.css +1 -1
- package/dist/collection/auth/components/magic-code-field/magic-code-field.js +1 -1
- package/dist/collection/auth/components/magic-code-field/magic-code-field.js.map +1 -1
- package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js +1 -1
- package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js.map +1 -1
- package/dist/collection/auth/components/signin-root/signin-root.js.map +1 -1
- package/dist/collection/auth/components/social-logins/social-login-button.js +1 -1
- package/dist/collection/auth/components/social-logins/social-login-button.js.map +1 -1
- package/dist/collection/auth/components/submit-button/auth-submit-button.js +2 -5
- package/dist/collection/auth/components/submit-button/auth-submit-button.js.map +1 -1
- package/dist/collection/auth/passkey-auth.js +1 -3
- package/dist/collection/auth/passkey-auth.js.map +1 -1
- package/dist/collection/globalScript.js +1 -0
- package/dist/collection/globalScript.js.map +1 -1
- package/dist/collection/i18n.js +10 -4
- package/dist/collection/i18n.js.map +1 -1
- package/dist/collection/locales/fr.json +131 -0
- package/dist/collection/locales/it.json +131 -0
- package/dist/collection/locales/nl_be.json +131 -0
- package/dist/collection/locales/ro.json +131 -0
- package/dist/collection/logger.js +25 -55
- package/dist/collection/logger.js.map +1 -1
- package/dist/collection/newsletter/api/newsletters.js +1 -1
- package/dist/collection/newsletter/api/newsletters.js.map +1 -1
- package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js +25 -9
- package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js.map +1 -1
- package/dist/collection/newsletter/components/submit-button/newsletter-submit-button.js +6 -6
- package/dist/collection/newsletter/components/submit-button/newsletter-submit-button.js.map +1 -1
- package/dist/collection/profile/components/field/field.css +1 -1
- package/dist/collection/profile/components/field/field.js +7 -5
- package/dist/collection/profile/components/field/field.js.map +1 -1
- package/dist/collection/profile/components/full-profile/full-profile.css +1 -1
- package/dist/collection/profile/components/profile/profile.js +1 -1
- package/dist/collection/profile/components/profile/profile.js.map +1 -1
- package/dist/collection/profile/components/raw-input-fields/MultiSelect.js.map +1 -1
- package/dist/collection/profile/components/submit-button/profile-submit-button.js +2 -7
- package/dist/collection/profile/components/submit-button/profile-submit-button.js.map +1 -1
- package/dist/collection/{shared/components/u-fields-submit-button-logic/submit-button-logic.js → profile/profile-helpers.js} +3 -3
- package/dist/collection/profile/profile-helpers.js.map +1 -0
- package/dist/collection/sdk.css +2 -2
- package/dist/collection/shared/components/config/config.js +1 -1
- package/dist/collection/shared/components/config/config.js.map +1 -1
- package/dist/collection/shared/components/email-field/email-field.js +31 -5
- package/dist/collection/shared/components/email-field/email-field.js.map +1 -1
- package/dist/collection/shared/components/spinner/spinner.css +1 -1
- package/dist/collection/shared/components/spinner/spinner.js +1 -1
- package/dist/collection/shared/components/spinner/spinner.js.map +1 -1
- package/dist/collection/shared/components/submit-button/context.js +2 -3
- package/dist/collection/shared/components/submit-button/context.js.map +1 -1
- package/dist/collection/shared/components/submit-button/submit-button.js +14 -19
- package/dist/collection/shared/components/submit-button/submit-button.js.map +1 -1
- package/dist/collection/ticketable/components/pagination/pagination-button.js.map +1 -1
- package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js +2 -2
- package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js.map +1 -1
- package/dist/components/auth.js +0 -2
- package/dist/components/auth.js.map +1 -1
- package/dist/components/field.js +8 -6
- package/dist/components/field.js.map +1 -1
- package/dist/components/i18n.js +576 -22
- package/dist/components/i18n.js.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js +6 -4
- package/dist/components/index2.js.map +1 -1
- package/dist/components/logger.js +25 -55
- package/dist/components/logger.js.map +1 -1
- package/dist/components/newsletter-helpers.js +1 -1
- package/dist/components/{submit-button-logic.js → profile-helpers.js} +2 -2
- package/dist/components/profile-helpers.js.map +1 -0
- package/dist/components/profile.js +1 -1
- package/dist/components/profile.js.map +1 -1
- package/dist/components/raw-field.js.map +1 -1
- package/dist/components/spinner.js +2 -2
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/submit-button.js +26 -45
- package/dist/components/submit-button.js.map +1 -1
- package/dist/components/u-config.js +1 -1
- package/dist/components/u-config.js.map +1 -1
- package/dist/components/u-email-field.js +7 -5
- package/dist/components/u-email-field.js.map +1 -1
- package/dist/components/u-full-profile.js +1 -1
- package/dist/components/u-full-profile.js.map +1 -1
- package/dist/components/u-magic-code-field.js +2 -2
- package/dist/components/u-magic-code-field.js.map +1 -1
- package/dist/components/u-missing-fields-submit-button.js +1 -1
- package/dist/components/u-missing-fields-submit-button.js.map +1 -1
- package/dist/components/u-newsletter-root.js +14 -7
- package/dist/components/u-newsletter-root.js.map +1 -1
- package/dist/components/u-newsletter-toggle-subscription-button.js +1 -1
- package/dist/components/u-pagination-button.js.map +1 -1
- package/dist/components/u-signin-root.js.map +1 -1
- package/dist/components/u-social-login-button.js +1 -1
- package/dist/components/u-social-login-button.js.map +1 -1
- package/dist/components/u-ticketable-list.js +2 -2
- package/dist/components/u-ticketable-list.js.map +1 -1
- package/dist/esm/app-globals-CPU9ZcqZ.js +8 -0
- package/dist/esm/app-globals-CPU9ZcqZ.js.map +1 -0
- package/dist/esm/{auth-C6B1Fl8C.js → auth-DLKPv5Zm.js} +9 -12
- package/dist/esm/{auth-C6B1Fl8C.js.map → auth-DLKPv5Zm.js.map} +1 -1
- package/dist/esm/{auth-store-BXzAv0RK.js → auth-store-BMqUdTpC.js} +4 -4
- package/dist/esm/{auth-store-BXzAv0RK.js.map → auth-store-BMqUdTpC.js.map} +1 -1
- package/dist/esm/{flash-store-CF5vw4w-.js → flash-store-CEvWSG0c.js} +3 -3
- package/dist/esm/{flash-store-CF5vw4w-.js.map → flash-store-CEvWSG0c.js.map} +1 -1
- package/dist/esm/{i18n-CPEM4Hc_.js → i18n-BR-AGAnn.js} +580 -26
- package/dist/esm/i18n-BR-AGAnn.js.map +1 -0
- package/dist/esm/{index-CJnDmBjL.js → index-Bjp1XO-f.js} +3 -3
- package/dist/esm/{index-CJnDmBjL.js.map → index-Bjp1XO-f.js.map} +1 -1
- package/dist/esm/index-Ci3aTmzp.js +12007 -0
- package/dist/esm/index-Ci3aTmzp.js.map +1 -0
- package/dist/esm/{index-CmoCWXkx.js → index-DKaIwo59.js} +12 -11
- package/dist/esm/index-DKaIwo59.js.map +1 -0
- package/dist/esm/index.js +10 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -5
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/{newsletter-helpers-D9OpR1Yd.js → newsletter-helpers-VixG_zoB.js} +9 -9
- package/dist/esm/{newsletter-helpers-D9OpR1Yd.js.map → newsletter-helpers-VixG_zoB.js.map} +1 -1
- package/dist/esm/{newsletter-store-Bx1ysKBb.js → newsletter-store-BYmuLQg8.js} +3 -3
- package/dist/esm/{newsletter-store-Bx1ysKBb.js.map → newsletter-store-BYmuLQg8.js.map} +1 -1
- package/dist/esm/{pagination-store-B-ivWcjb.js → pagination-store-DzdJOp-n.js} +3 -3
- package/dist/esm/{pagination-store-B-ivWcjb.js.map → pagination-store-DzdJOp-n.js.map} +1 -1
- package/dist/esm/{submit-button-logic-CtMezaoG.js → profile-helpers-7onubaoR.js} +4 -4
- package/dist/esm/profile-helpers-7onubaoR.js.map +1 -0
- package/dist/esm/{profile-store-By-nqzr9.js → profile-store-RmZB2PTc.js} +3 -3
- package/dist/esm/{profile-store-By-nqzr9.js.map → profile-store-RmZB2PTc.js.map} +1 -1
- package/dist/esm/sdk.js +4 -5
- package/dist/esm/sdk.js.map +1 -1
- package/dist/esm/u-conditional-render.entry.js +11 -12
- package/dist/esm/u-conditional-render.entry.js.map +1 -1
- package/dist/esm/u-config.entry.js +10 -11
- package/dist/esm/u-config.entry.js.map +1 -1
- package/dist/esm/u-email-field.entry.js +9 -8
- package/dist/esm/u-email-field.entry.js.map +1 -1
- package/dist/esm/u-error-message.entry.js +6 -6
- package/dist/esm/u-field.u-raw-field.entry.js.map +1 -1
- package/dist/esm/u-field_2.entry.js +13 -11
- package/dist/esm/u-flash-message.entry.js +3 -3
- package/dist/esm/u-full-profile.entry.js +6 -6
- package/dist/esm/u-full-profile.entry.js.map +1 -1
- package/dist/esm/u-logout-button.entry.js +9 -10
- package/dist/esm/u-logout-button.entry.js.map +1 -1
- package/dist/esm/u-magic-code-field.entry.js +11 -12
- package/dist/esm/u-magic-code-field.entry.js.map +1 -1
- package/dist/esm/u-missing-field.entry.js +4 -4
- package/dist/esm/u-missing-fields-submit-button.entry.js +8 -9
- package/dist/esm/u-missing-fields-submit-button.entry.js.map +1 -1
- package/dist/esm/u-newsletter-checkbox.entry.js +11 -12
- package/dist/esm/u-newsletter-checkbox.entry.js.map +1 -1
- package/dist/esm/u-newsletter-logout-button.entry.js +11 -12
- package/dist/esm/u-newsletter-logout-button.entry.js.map +1 -1
- package/dist/esm/u-newsletter-preference-checkbox.entry.js +11 -12
- package/dist/esm/u-newsletter-preference-checkbox.entry.js.map +1 -1
- package/dist/esm/u-newsletter-resend-doi-button.entry.js +11 -12
- package/dist/esm/u-newsletter-resend-doi-button.entry.js.map +1 -1
- package/dist/esm/u-newsletter-root.entry.js +20 -14
- package/dist/esm/u-newsletter-root.entry.js.map +1 -1
- package/dist/esm/u-newsletter-toggle-subscription-button.entry.js +11 -12
- package/dist/esm/u-newsletter-toggle-subscription-button.entry.js.map +1 -1
- package/dist/esm/u-pagination-button.entry.js +1 -1
- package/dist/esm/u-pagination-button.entry.js.map +1 -1
- package/dist/esm/u-pagination-page.entry.js +1 -1
- package/dist/esm/u-passkey.entry.js +9 -10
- package/dist/esm/u-passkey.entry.js.map +1 -1
- package/dist/esm/u-password-field.entry.js +5 -5
- package/dist/esm/u-profile.u-submit-button.entry.js.map +1 -1
- package/dist/esm/u-profile_2.entry.js +36 -56
- package/dist/esm/u-registration-button.entry.js +5 -5
- package/dist/esm/u-reset-password-button.entry.js +9 -10
- package/dist/esm/u-reset-password-button.entry.js.map +1 -1
- package/dist/esm/u-send-magic-code-button.entry.js +9 -10
- package/dist/esm/u-send-magic-code-button.entry.js.map +1 -1
- package/dist/esm/u-signed-in.entry.js +4 -4
- package/dist/esm/u-signin-root.entry.js +4 -4
- package/dist/esm/u-signin-root.entry.js.map +1 -1
- package/dist/esm/u-signin-step.entry.js +9 -10
- package/dist/esm/u-signin-step.entry.js.map +1 -1
- package/dist/esm/u-signin-strategy.entry.js +4 -4
- package/dist/esm/u-social-login-button.entry.js +7 -8
- package/dist/esm/u-social-login-button.entry.js.map +1 -1
- package/dist/esm/u-spinner.entry.js +3 -3
- package/dist/esm/u-spinner.entry.js.map +1 -1
- package/dist/esm/u-ticketable-list.entry.js +9 -10
- package/dist/esm/u-ticketable-list.entry.js.map +1 -1
- package/dist/esm/{unidy-store-C2nKKukb.js → unidy-store-BldTAtO0.js} +3 -3
- package/dist/esm/{unidy-store-C2nKKukb.js.map → unidy-store-BldTAtO0.js.map} +1 -1
- package/dist/sdk/index.esm.js +1 -1
- package/dist/sdk/index.esm.js.map +1 -1
- package/dist/sdk/loader.esm.js.map +1 -1
- package/dist/sdk/locales/fr.json +131 -0
- package/dist/sdk/locales/it.json +131 -0
- package/dist/sdk/locales/nl_be.json +131 -0
- package/dist/sdk/locales/ro.json +131 -0
- package/dist/sdk/p-0b47e1be.entry.js +2 -0
- package/dist/sdk/p-0b47e1be.entry.js.map +1 -0
- package/dist/sdk/p-20240b02.entry.js +2 -0
- package/dist/sdk/p-20240b02.entry.js.map +1 -0
- package/dist/sdk/{p-8a472938.entry.js → p-2da4497a.entry.js} +2 -2
- package/dist/sdk/{p-b0307804.entry.js → p-36433853.entry.js} +2 -2
- package/dist/sdk/p-36433853.entry.js.map +1 -0
- package/dist/sdk/p-431ec460.entry.js +2 -0
- package/dist/sdk/p-431ec460.entry.js.map +1 -0
- package/dist/sdk/{p-08ddbde8.entry.js → p-5da49d00.entry.js} +2 -2
- package/dist/sdk/p-67096601.entry.js +2 -0
- package/dist/sdk/p-67096601.entry.js.map +1 -0
- package/dist/sdk/{p-63ff8516.entry.js → p-6893d167.entry.js} +2 -2
- package/dist/sdk/p-7068661a.entry.js +2 -0
- package/dist/sdk/p-7068661a.entry.js.map +1 -0
- package/dist/sdk/p-72dc8aa9.entry.js +2 -0
- package/dist/sdk/p-72dc8aa9.entry.js.map +1 -0
- package/dist/sdk/{p-c2098f5e.entry.js → p-73c2ec89.entry.js} +2 -2
- package/dist/sdk/p-745742f1.entry.js +2 -0
- package/dist/sdk/p-7a7c0db2.entry.js +2 -0
- package/dist/sdk/p-7a7c0db2.entry.js.map +1 -0
- package/dist/sdk/{p-2ed0b79c.entry.js → p-7d6dc110.entry.js} +2 -2
- package/dist/sdk/{p-2ed0b79c.entry.js.map → p-7d6dc110.entry.js.map} +1 -1
- package/dist/sdk/{p-5d859a51.entry.js → p-8d787494.entry.js} +2 -2
- package/dist/sdk/p-94dde7e5.entry.js +2 -0
- package/dist/sdk/p-94dde7e5.entry.js.map +1 -0
- package/dist/sdk/p-97d8ae02.entry.js +2 -0
- package/dist/sdk/p-97d8ae02.entry.js.map +1 -0
- package/dist/sdk/p-9c396daf.entry.js +2 -0
- package/dist/sdk/p-9c396daf.entry.js.map +1 -0
- package/dist/sdk/p-9da4dd6d.entry.js +2 -0
- package/dist/sdk/p-9da4dd6d.entry.js.map +1 -0
- package/dist/sdk/{p-ClhmT9TC.js → p-BZ1kW_eK.js} +2 -2
- package/dist/sdk/{p-ClhmT9TC.js.map → p-BZ1kW_eK.js.map} +1 -1
- package/dist/sdk/p-BlOjABPD.js +2 -0
- package/dist/sdk/{p-DBjPNcZQ.js.map → p-BlOjABPD.js.map} +1 -1
- package/dist/sdk/{p-BvjIpzI-.js → p-C0feI0p8.js} +2 -2
- package/dist/sdk/{p-BvjIpzI-.js.map → p-C0feI0p8.js.map} +1 -1
- package/dist/sdk/{p-BGi6Sl8y.js → p-CDtLILSR.js} +2 -2
- package/dist/sdk/{p-BGi6Sl8y.js.map → p-CDtLILSR.js.map} +1 -1
- package/dist/sdk/p-CFiZLMAA.js +2 -0
- package/dist/sdk/p-CFiZLMAA.js.map +1 -0
- package/dist/sdk/p-CR1oWC4S.js +2 -0
- package/dist/sdk/p-CR1oWC4S.js.map +1 -0
- package/dist/sdk/p-Ce8zGAi1.js +2 -0
- package/dist/sdk/{p-BeGO8MZ-.js.map → p-Ce8zGAi1.js.map} +1 -1
- package/dist/sdk/p-Ci3aTmzp.js +3 -0
- package/dist/sdk/p-Ci3aTmzp.js.map +1 -0
- package/dist/sdk/p-D4B6Zkq_.js +2 -0
- package/dist/sdk/p-D4B6Zkq_.js.map +1 -0
- package/dist/sdk/p-D8RGdjD3.js +2 -0
- package/dist/sdk/{p-CPMAxeLD.js.map → p-D8RGdjD3.js.map} +1 -1
- package/dist/sdk/p-DGqadgLO.js +2 -0
- package/dist/sdk/{p-D6-66bay.js.map → p-DGqadgLO.js.map} +1 -1
- package/dist/sdk/{p-DNP3fccV.js → p-DSwwVdp1.js} +2 -2
- package/dist/sdk/{p-DNP3fccV.js.map → p-DSwwVdp1.js.map} +1 -1
- package/dist/sdk/{p-BLUKsznD.js → p-DYtgart8.js} +2 -2
- package/dist/sdk/{p-BLUKsznD.js.map → p-DYtgart8.js.map} +1 -1
- package/dist/sdk/p-add92871.entry.js +2 -0
- package/dist/sdk/p-add92871.entry.js.map +1 -0
- package/dist/sdk/{p-2ddce950.entry.js → p-bb5ae222.entry.js} +2 -2
- package/dist/sdk/{p-73dc1a32.entry.js → p-bbbec3d4.entry.js} +2 -2
- package/dist/sdk/p-c2b6c674.entry.js +2 -0
- package/dist/sdk/p-c2b6c674.entry.js.map +1 -0
- package/dist/sdk/p-c2fba7c8.entry.js +2 -0
- package/dist/sdk/{p-C-vcnxdk.js → p-cOfRiRUO.js} +2 -2
- package/dist/sdk/{p-C-vcnxdk.js.map → p-cOfRiRUO.js.map} +1 -1
- package/dist/sdk/p-cba5d81e.entry.js +2 -0
- package/dist/sdk/p-cba5d81e.entry.js.map +1 -0
- package/dist/sdk/p-cd516902.entry.js +2 -0
- package/dist/sdk/p-cd516902.entry.js.map +1 -0
- package/dist/sdk/p-d2c6179a.entry.js +2 -0
- package/dist/sdk/p-d2c6179a.entry.js.map +1 -0
- package/dist/sdk/{p-2f8f53ed.entry.js → p-dcd4e8f0.entry.js} +2 -2
- package/dist/sdk/p-de931f46.entry.js +2 -0
- package/dist/sdk/p-de931f46.entry.js.map +1 -0
- package/dist/sdk/p-e0ba330c.entry.js +2 -0
- package/dist/sdk/p-e0ba330c.entry.js.map +1 -0
- package/dist/sdk/p-e363a33c.entry.js +2 -0
- package/dist/sdk/p-e363a33c.entry.js.map +1 -0
- package/dist/sdk/p-fc51c88d.entry.js +2 -0
- package/dist/sdk/p-fc51c88d.entry.js.map +1 -0
- package/dist/sdk/sdk.css +2 -2
- package/dist/sdk/sdk.esm.js +1 -1
- package/dist/sdk/sdk.esm.js.map +1 -1
- package/dist/sdk/u-conditional-render.entry.esm.js.map +1 -1
- package/dist/sdk/u-config.entry.esm.js.map +1 -1
- package/dist/sdk/u-email-field.entry.esm.js.map +1 -1
- package/dist/sdk/u-field.u-raw-field.entry.esm.js.map +1 -1
- package/dist/sdk/u-full-profile.entry.esm.js.map +1 -1
- package/dist/sdk/u-logout-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-magic-code-field.entry.esm.js.map +1 -1
- package/dist/sdk/u-missing-fields-submit-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-newsletter-checkbox.entry.esm.js.map +1 -1
- package/dist/sdk/u-newsletter-logout-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-newsletter-preference-checkbox.entry.esm.js.map +1 -1
- package/dist/sdk/u-newsletter-resend-doi-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-newsletter-root.entry.esm.js.map +1 -1
- package/dist/sdk/u-newsletter-toggle-subscription-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-pagination-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-passkey.entry.esm.js.map +1 -1
- package/dist/sdk/u-profile.u-submit-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-reset-password-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-send-magic-code-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-signin-root.entry.esm.js.map +1 -1
- package/dist/sdk/u-signin-step.entry.esm.js.map +1 -1
- package/dist/sdk/u-social-login-button.entry.esm.js.map +1 -1
- package/dist/sdk/u-spinner.entry.esm.js.map +1 -1
- package/dist/sdk/u-ticketable-list.entry.esm.js.map +1 -1
- package/dist/types/auth/components/submit-button/auth-submit-button.d.ts +1 -6
- package/dist/types/components.d.ts +7 -3
- package/dist/types/newsletter/components/newsletter-root/newsletter-root.d.ts +3 -2
- package/dist/types/newsletter/components/submit-button/newsletter-submit-button.d.ts +2 -6
- package/dist/types/profile/components/submit-button/profile-submit-button.d.ts +0 -3
- package/dist/types/{shared/components/u-fields-submit-button-logic/submit-button-logic.d.ts → profile/profile-helpers.d.ts} +1 -1
- package/dist/types/shared/components/email-field/email-field.d.ts +2 -0
- package/dist/types/shared/components/submit-button/context.d.ts +5 -6
- package/dist/types/shared/components/submit-button/submit-button.d.ts +2 -1
- package/package.json +9 -5
- package/readme.md +2 -1
- package/dist/cjs/app-globals-CBeI09cT.js +0 -5867
- package/dist/cjs/app-globals-CBeI09cT.js.map +0 -1
- package/dist/cjs/exports-BTNx1-cN.js +0 -4174
- package/dist/cjs/exports-BTNx1-cN.js.map +0 -1
- package/dist/cjs/i18n-DNuyTvmJ.js.map +0 -1
- package/dist/cjs/index-BSf3Eyrg.js +0 -2094
- package/dist/cjs/index-BSf3Eyrg.js.map +0 -1
- package/dist/cjs/index-CtJ5meJ7.js.map +0 -1
- package/dist/cjs/submit-button-logic-rhAjEO33.js.map +0 -1
- package/dist/collection/shared/components/u-fields-submit-button-logic/submit-button-logic.js.map +0 -1
- package/dist/components/submit-button-logic.js.map +0 -1
- package/dist/esm/app-globals-DAqFb8zM.js +0 -5865
- package/dist/esm/app-globals-DAqFb8zM.js.map +0 -1
- package/dist/esm/exports-D7pzDSGS.js +0 -4106
- package/dist/esm/exports-D7pzDSGS.js.map +0 -1
- package/dist/esm/i18n-CPEM4Hc_.js.map +0 -1
- package/dist/esm/index-BF13Y4es.js +0 -2078
- package/dist/esm/index-BF13Y4es.js.map +0 -1
- package/dist/esm/index-CmoCWXkx.js.map +0 -1
- package/dist/esm/submit-button-logic-CtMezaoG.js.map +0 -1
- package/dist/sdk/p-0ac36431.entry.js +0 -2
- package/dist/sdk/p-0bb59d95.entry.js +0 -2
- package/dist/sdk/p-1888fa34.entry.js +0 -2
- package/dist/sdk/p-1888fa34.entry.js.map +0 -1
- package/dist/sdk/p-206eaf1a.entry.js +0 -2
- package/dist/sdk/p-206eaf1a.entry.js.map +0 -1
- package/dist/sdk/p-219c8df7.entry.js +0 -2
- package/dist/sdk/p-219c8df7.entry.js.map +0 -1
- package/dist/sdk/p-266ceb9b.entry.js +0 -2
- package/dist/sdk/p-266ceb9b.entry.js.map +0 -1
- package/dist/sdk/p-2c01382e.entry.js +0 -2
- package/dist/sdk/p-2c01382e.entry.js.map +0 -1
- package/dist/sdk/p-3ec7dfe3.entry.js +0 -2
- package/dist/sdk/p-3ec7dfe3.entry.js.map +0 -1
- package/dist/sdk/p-40d9f876.entry.js +0 -2
- package/dist/sdk/p-40d9f876.entry.js.map +0 -1
- package/dist/sdk/p-4dbb57c3.entry.js +0 -2
- package/dist/sdk/p-4dbb57c3.entry.js.map +0 -1
- package/dist/sdk/p-4df06d55.entry.js +0 -2
- package/dist/sdk/p-4df06d55.entry.js.map +0 -1
- package/dist/sdk/p-65ab8315.entry.js +0 -2
- package/dist/sdk/p-65ab8315.entry.js.map +0 -1
- package/dist/sdk/p-88d2b9d6.entry.js +0 -2
- package/dist/sdk/p-88d2b9d6.entry.js.map +0 -1
- package/dist/sdk/p-8969d1ab.entry.js +0 -2
- package/dist/sdk/p-8969d1ab.entry.js.map +0 -1
- package/dist/sdk/p-8970a077.entry.js +0 -2
- package/dist/sdk/p-8970a077.entry.js.map +0 -1
- package/dist/sdk/p-9a5530ad.entry.js +0 -2
- package/dist/sdk/p-9a5530ad.entry.js.map +0 -1
- package/dist/sdk/p-BF13Y4es.js +0 -3
- package/dist/sdk/p-BF13Y4es.js.map +0 -1
- package/dist/sdk/p-BeGO8MZ-.js +0 -2
- package/dist/sdk/p-BsVyUZ6I.js +0 -2
- package/dist/sdk/p-BsVyUZ6I.js.map +0 -1
- package/dist/sdk/p-CPMAxeLD.js +0 -2
- package/dist/sdk/p-D6-66bay.js +0 -2
- package/dist/sdk/p-D7pzDSGS.js +0 -2
- package/dist/sdk/p-D7pzDSGS.js.map +0 -1
- package/dist/sdk/p-DBjPNcZQ.js +0 -2
- package/dist/sdk/p-KnO0pPVa.js +0 -2
- package/dist/sdk/p-KnO0pPVa.js.map +0 -1
- package/dist/sdk/p-PfzIdrPb.js +0 -2
- package/dist/sdk/p-PfzIdrPb.js.map +0 -1
- package/dist/sdk/p-b0307804.entry.js.map +0 -1
- package/dist/sdk/p-b5012f17.entry.js +0 -2
- package/dist/sdk/p-b5012f17.entry.js.map +0 -1
- package/dist/sdk/p-b733cd98.entry.js +0 -2
- package/dist/sdk/p-b733cd98.entry.js.map +0 -1
- package/dist/sdk/p-c723d85a.entry.js +0 -2
- package/dist/sdk/p-c723d85a.entry.js.map +0 -1
- package/dist/sdk/p-cabead0d.entry.js +0 -2
- package/dist/sdk/p-cabead0d.entry.js.map +0 -1
- package/dist/sdk/p-dab61f77.entry.js +0 -2
- package/dist/sdk/p-dab61f77.entry.js.map +0 -1
- package/dist/sdk/p-f38f9c60.entry.js +0 -2
- package/dist/sdk/p-f38f9c60.entry.js.map +0 -1
- /package/dist/sdk/{p-8a472938.entry.js.map → p-2da4497a.entry.js.map} +0 -0
- /package/dist/sdk/{p-08ddbde8.entry.js.map → p-5da49d00.entry.js.map} +0 -0
- /package/dist/sdk/{p-63ff8516.entry.js.map → p-6893d167.entry.js.map} +0 -0
- /package/dist/sdk/{p-c2098f5e.entry.js.map → p-73c2ec89.entry.js.map} +0 -0
- /package/dist/sdk/{p-0bb59d95.entry.js.map → p-745742f1.entry.js.map} +0 -0
- /package/dist/sdk/{p-5d859a51.entry.js.map → p-8d787494.entry.js.map} +0 -0
- /package/dist/sdk/{p-2ddce950.entry.js.map → p-bb5ae222.entry.js.map} +0 -0
- /package/dist/sdk/{p-73dc1a32.entry.js.map → p-bbbec3d4.entry.js.map} +0 -0
- /package/dist/sdk/{p-0ac36431.entry.js.map → p-c2fba7c8.entry.js.map} +0 -0
- /package/dist/sdk/{p-2f8f53ed.entry.js.map → p-dcd4e8f0.entry.js.map} +0 -0
package/dist/sdk/p-CPMAxeLD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as t}from"./p-BvjIpzI-.js";import{t as r}from"./p-PfzIdrPb.js";function e(e){for(const o of Object.keys(e)){if(o==="custom_attributes")continue;const s=e[o];if(s.required===true&&(s.value===""||s.value===null)){t.errors={[o]:r("errors.required_field",{field:o})};return false}}for(const o of Object.keys(e.custom_attributes??{})){const s=e.custom_attributes?.[o];const u=`custom_attributes.${o}`;if(s?.required===true&&(s.value===""||s.value===null)){t.errors={[u]:r("errors.required_field",{field:u})};return false}}return true}function o(t){return{...Object.fromEntries(Object.entries(t).filter((([t])=>t!=="custom_attributes")).map((([t,r])=>[t,r.value]))),custom_attributes:Object.fromEntries(Object.entries(t.custom_attributes??{}).map((([t,r])=>[t,r.value])))}}export{o as b,e as v};
|
|
2
|
-
//# sourceMappingURL=p-CPMAxeLD.js.map
|
package/dist/sdk/p-D6-66bay.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,s as r}from"./p-DNP3fccV.js";import{s as t}from"./p-BvjIpzI-.js";import{F as s}from"./p-BLUKsznD.js";import{c as i}from"./p-D1lzXl_Z.js";import{t as n}from"./p-PfzIdrPb.js";import{c as a}from"./p-BF13Y4es.js";import{w as o}from"./p-DBjPNcZQ.js";import{g as c}from"./p-BsVyUZ6I.js";import{Y as u}from"./p-D7pzDSGS.js";class d extends Error{}d.prototype.name="InvalidTokenError";function f(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,r)=>{let t=r.charCodeAt(0).toString(16).toUpperCase();if(t.length<2){t="0"+t}return"%"+t})))}function l(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return f(r)}catch(e){return atob(r)}}function w(e,r){if(typeof e!=="string"){throw new d("Invalid token specified: must be a string")}r||(r={});const t=r.header===true?0:1;const s=e.split(".")[t];if(typeof s!=="string"){throw new d(`Invalid token specified: missing part #${t+1}`)}let i;try{i=l(s)}catch(e){throw new d(`Invalid token specified: invalid base64 for part #${t+1} (${e.message})`)}try{return JSON.parse(i)}catch(e){throw new d(`Invalid token specified: invalid json for part #${t+1} (${e.message})`)}}const _=a("PasskeyAuth");const h={NotSupportedError:"passkey_not_supported",NotAllowedError:"passkey_cancelled",SecurityError:"passkey_security_error",InvalidStateError:"passkey_invalid_state"};function p(e){const r=e.replace(/-/g,"+").replace(/_/g,"/");const t=r+"=".repeat((4-r.length%4)%4);return Uint8Array.from(atob(t),(e=>e.charCodeAt(0)))}function g(e){return{challenge:Uint8Array.from(atob(e.challenge),(e=>e.charCodeAt(0))),timeout:e.timeout||6e4,rpId:e.rpId,userVerification:e.userVerification||"required",allowCredentials:e.allowCredentials?.map((e=>({...e,id:p(e.id)})))}}function y(e){const r=e.response;return{id:e.id,rawId:btoa(String.fromCharCode(...new Uint8Array(e.rawId))),response:{authenticatorData:btoa(String.fromCharCode(...new Uint8Array(r.authenticatorData))),clientDataJSON:btoa(String.fromCharCode(...new Uint8Array(r.clientDataJSON))),signature:btoa(String.fromCharCode(...new Uint8Array(r.signature)))},type:e.type}}function m(r){if(r.sid){e.setSignInId(r.sid);return}try{const t=w(r.jwt);if(t.sid){e.setSignInId(t.sid)}}catch{}}function E(r){_.error("Passkey error:",r);let t="passkey_error";if(r instanceof DOMException){t=h[r.name]||"passkey_error"}e.setGlobalError("auth",t);e.setLoading(false)}async function I(t,s){e.setLoading(true);e.clearErrors();if(!window.PublicKeyCredential){e.setGlobalError("auth","passkey_not_supported");e.setLoading(false);return}try{const[i,n]=await t.auth.getPasskeyOptions(r.sid||undefined);if(i||!n){e.setGlobalError("auth",i||"bad_request");e.setLoading(false);return}const a=g(n);const o=await navigator.credentials.get({publicKey:a});if(!o){e.setGlobalError("auth","passkey_cancelled");e.setLoading(false);return}const c=y(o);const[u,d]=await t.auth.authenticateWithPasskey(c);const f=d;if(u||!f){e.setGlobalError("auth",u||"authentication_failed");e.setLoading(false);return}e.setToken(f.jwt);m(f);s(f)}catch(e){E(e)}}class k{client;logger=a("AuthHelpers");constructor(e){this.client=e}async createSignIn(r,t,s){if(!r){throw new Error(n("errors.required_field",{field:"Email"}))}e.setLoading(true);e.clearErrors();const[i,a]=await this.client.auth.createSignIn(r,t,s);if(i){this.handleAuthError(i,a);return}if(t){const r=w(a.jwt);e.setSignInId(r.sid);e.setToken(a.jwt);e.setLoading(false);e.getRootComponentRef()?.onAuth(a);return}if(s){e.setSignInId(a.sid);e.setMagicCodeStep("sent");e.setStep("magic-code");e.setLoading(false);return[i,a]}const o=a;e.setStep("verification");e.setEmail(r);e.setSignInId(o.sid);e.setLoginOptions(o.login_options);e.setLoading(false)}async authenticateWithPassword(t){if(!r.sid){throw new Error(n("errors.no_sign_in_id"))}if(!t){throw new Error(n("errors.required_field",{field:"Password"}))}e.setLoading(true);e.clearErrors();const[s,i]=await this.client.auth.authenticateWithPassword(r.sid,t);if(s){this.handleAuthError(s,i)}else{e.setLoading(false);this.handleAuthSuccess(i);return}}handleAuthError(r,s){if(r==="account_not_found"){e.setFieldError("email",r);e.setLoading(false);return}if(r==="missing_required_fields"){e.setMissingFields(s.fields);t.data=s.fields;if(s.sid){e.setSignInId(s.sid)}e.setStep("missing-fields");e.setLoading(false);return}if(r==="account_locked"){e.setGlobalError("auth",r)}else{e.setFieldError("password",r)}e.setLoading(false)}async logout(){const[t,s]=await this.client.auth.signOut(r.sid);if(t){e.setGlobalError("auth",t)}return[t,s]}async refreshToken(){if(r.step==="missing-fields"){return}this.extractSignInIdFromQuery();if(!r.sid){this.logger.warn("No sign-in ID in the session");return}const[t,s]=await this.client.auth.refreshToken(r.sid);if(t){e.reset();e.setGlobalError("auth",t)}else{e.setToken(s.jwt)}}handleSocialAuthRedirect(){const r=new URL(window.location.href);const s=r.searchParams;const i=s.get("error");if(i!=="missing_required_fields"){return}const n=s.get("fields");if(!n){return}const a=s.get("sid");if(a){e.setSignInId(a)}else{return}try{const i=JSON.parse(n);e.setMissingFields(i);t.data=i;e.setStep("missing-fields");s.delete("error");s.delete("fields");const a=`${r.origin}${r.pathname}${r.hash}`;window.history.replaceState(null,"",a)}catch(r){this.logger.error("Failed to parse missing fields payload:",r);e.setGlobalError("auth","invalid_required_fields_payload")}}async sendMagicCode(){if(!r.sid&&r.step!=="single-login"){throw new Error(n("errors.no_sign_in_id"))}e.setMagicCodeStep("requested");e.setLoading(true);e.clearErrors();if(r.step==="single-login"){const[t,s]=await this.createSignIn(r.email,undefined,true);e.setLoading(false);return[t,s]}const[t,s]=await this.client.auth.sendMagicCode(r.sid);e.setLoading(false);e.setStep("magic-code");if(!t){e.setMagicCodeStep("sent");return[null,s]}e.setFieldError("magicCode",t);if(t==="magic_code_recently_created"){e.setMagicCodeStep("sent")}return[t,s]}async authenticateWithMagicCode(t){if(!r.sid){throw new Error(n("errors.no_sign_in_id"))}if(!t){throw new Error(n("errors.magic_code_is_missing"))}e.setLoading(true);e.clearErrors();const[s,i]=await this.client.auth.authenticateWithMagicCode(r.sid,t);if(!s){this.handleAuthSuccess(i);return}if(s==="missing_required_fields"){this.handleMissingFields(i);return}e.setLoading(false);e.setFieldError("magicCode",s)}async sendResetPasswordEmail(){if(!r.sid){throw new Error(n("errors.no_sign_in_id"))}e.setLoading(true);e.setResetPasswordStep("requested");const[t,s]=await this.client.auth.sendResetPasswordEmail(r.sid,window.location.href);if(t){e.setFieldError("resetPassword",t)}else{e.setResetPasswordStep("sent");e.clearErrors()}e.setLoading(false)}async handleResetPasswordRedirect(){const t=new URL(window.location.href);const s=t.searchParams;const i=s.get("reset_password_token");if(!i){return false}if(r.sid){e.setLoading(true);const[t]=await this.client.auth.validateResetPasswordToken(r.sid,i);if(t){e.setFieldError("resetPassword",t);e.setStep("reset-password");e.setLoading(false);return false}}e.setResetToken(i);e.setStep("reset-password");e.setLoading(false);return true}async resetPassword(){if(!r.resetPassword.token){throw new Error("No reset token available")}if(!r.resetPassword.newPassword){e.setFieldError("resetPassword","password_required");return}if(r.resetPassword.passwordConfirmation&&r.resetPassword.newPassword!==r.resetPassword.passwordConfirmation){e.setFieldError("resetPassword","passwords_do_not_match");return}e.setLoading(true);e.clearErrors();const[t,a]=await this.client.auth.resetPassword(r.sid,r.resetPassword.token,r.resetPassword.newPassword,r.resetPassword.passwordConfirmation);if(t){e.setFieldError("resetPassword",t);if(t==="invalid_password"){e.setFieldError("password",a.error_details?.password.map((e=>n(`errors.password_requirements.${e}`))).join("\n"))}}else{e.setStep("email");e.updateResetPassword({step:"completed",token:null,newPassword:"",passwordConfirmation:""});i("reset_password_token");s.success.addMessage("Password reset successfully")}e.setLoading(false)}authenticateWithPasskey(){return I(this.client,(e=>this.handleAuthSuccess(e)))}extractSignInIdFromQuery(){const r=i("sid");if(r){e.setSignInId(r)}}handleMissingFields(r){e.setMissingFields(r.fields);t.data=r.fields;e.setStep("missing-fields");e.setLoading(false)}handleAuthSuccess(r){e.setToken(r.jwt);e.setLoading(false);e.getRootComponentRef()?.onAuth(r)}}class S{static instance;helpers;constructor(e){this.helpers=new k(e);this.helpers.handleSocialAuthRedirect();this.helpers.handleResetPasswordRedirect()}static Errors={email:{NOT_FOUND:"account_not_found"},magicCode:{RECENTLY_CREATED:"magic_code_recently_created",NOT_VALID:"magic_code_not_valid",EXPIRED:"magic_code_expired",USED:"magic_code_used"},password:{INVALID:"invalid_password",NOT_SET:"password_not_set",RESET_PASSWORD_ALREADY_SENT:"reset_password_already_sent"},general:{ACCOUNT_LOCKED:"account_locked",SIGN_IN_EXPIRED:"sign_in_expired"}};static async getInstance(){if(!S.isInitialized()){await o();return S.initialize(c())}return S.instance}static initialize(t){S.instance=new S(t);if(S.instance.isTokenValid(r.token)){e.setAuthenticated(true)}return S.instance}static isInitialized(){return!!S.instance}isTokenValid(e){try{let r;if(typeof e==="string"){r=w(e)}else{r=e}if(!r)return false;const t=Date.now()/1e3;return r.exp>t}catch(e){u(e);return false}}async isAuthenticated(){const e=await this.getToken();return typeof e==="string"}async getToken(){const e=r.token;if(e&&this.isTokenValid(e)){return e}await this.helpers.refreshToken();if(r.globalErrors.auth||!r.token){return this.createAuthError(n("errors.refresh_failed"),"REFRESH_FAILED",true)}return r.token}async userData(){const e=await this.getToken();if(typeof e!=="string"){return null}if(!e){return null}try{return w(e)}catch(e){u(e);return null}}async logout(){const[r,t]=await this.helpers.logout();if(r){return this.createAuthError(n("errors.sign_out_failed",{reason:r}),"SIGN_OUT_FAILED",false)}e.reset();return true}getEmail(){return r.email}createAuthError(e,r,t=false){const s=new Error(e);s.code=r;s.requiresReauth=t;return s}}export{S as A};
|
|
2
|
-
//# sourceMappingURL=p-D6-66bay.js.map
|
package/dist/sdk/p-D7pzDSGS.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const t=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const n=globalThis;const e="10.26.0";function r(){i(n);return n}function i(t){const n=t.__SENTRY__=t.__SENTRY__||{};n.version=n.version||e;return n[e]=n[e]||{}}function s(t,r,i=n){const s=i.__SENTRY__=i.__SENTRY__||{};const o=s[e]=s[e]||{};return o[t]||(o[t]=r())}const o=["debug","info","warn","error","log","assert","trace"];const c="Sentry Logger ";const u={};function f(t){if(!("console"in n)){return t()}const e=n.console;const r={};const i=Object.keys(u);i.forEach((t=>{const n=u[t];r[t]=e[t];e[t]=n}));try{return t()}finally{i.forEach((t=>{e[t]=r[t]}))}}function a(){m().enabled=true}function l(){m().enabled=false}function h(){return m().enabled}function d(...t){b("log",...t)}function p(...t){b("warn",...t)}function y(...t){b("error",...t)}function b(e,...r){if(!t){return}if(h()){f((()=>{n.console[e](`${c}[${e}]:`,...r)}))}}function m(){if(!t){return{enabled:false}}return s("loggerSettings",(()=>({enabled:false})))}const g={enable:a,disable:l,isEnabled:h,log:d,warn:p,error:y};const _=50;const S="?";const w=/\(error: (.*)\)/;const E=/captureMessage|captureException/;function v(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0,r=0)=>{const i=[];const s=t.split("\n");for(let t=e;t<s.length;t++){let e=s[t];if(e.length>1024){e=e.slice(0,1024)}const o=w.test(e)?e.replace(w,"$1"):e;if(o.match(/\S*Error: /)){continue}for(const t of n){const n=t(o);if(n){i.push(n);break}}if(i.length>=_+r){break}}return j(i.slice(r))}}function x(t){if(Array.isArray(t)){return v(...t)}return t}function j(t){if(!t.length){return[]}const n=Array.from(t);if(/sentryWrapped/.test($(n).function||"")){n.pop()}n.reverse();if(E.test($(n).function||"")){n.pop();if(E.test($(n).function||"")){n.pop()}}return n.slice(0,_).map((t=>({...t,filename:t.filename||$(n).filename,function:t.function||S})))}function $(t){return t[t.length-1]||{}}const I="<anonymous>";function O(t){try{if(!t||typeof t!=="function"){return I}return t.name||I}catch{return I}}function D(t){const n=t.exception;if(n){const t=[];try{n.values.forEach((n=>{if(n.stacktrace.frames){t.push(...n.stacktrace.frames)}}));return t}catch{return undefined}}return undefined}function k(t){const n="__v_isVNode"in t&&t.__v_isVNode;return n?"[VueVNode]":"[VueViewModel]"}const C=Object.prototype.toString;function N(t){switch(C.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return true;default:return H(t,Error)}}function M(t,n){return C.call(t)===`[object ${n}]`}function R(t){return M(t,"ErrorEvent")}function T(t){return M(t,"DOMError")}function A(t){return M(t,"DOMException")}function L(t){return M(t,"String")}function P(t){return typeof t==="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function B(t){return t===null||P(t)||typeof t!=="object"&&typeof t!=="function"}function F(t){return M(t,"Object")}function z(t){return typeof Event!=="undefined"&&H(t,Event)}function K(t){return typeof Element!=="undefined"&&H(t,Element)}function U(t){return M(t,"RegExp")}function V(t){return Boolean(t?.then&&typeof t.then==="function")}function G(t){return F(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function H(t,n){try{return t instanceof n}catch{return false}}function W(t){return!!(typeof t==="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function Y(t){return typeof Request!=="undefined"&&H(t,Request)}const q=n;const J=80;function Q(t,n={}){if(!t){return"<unknown>"}try{let e=t;const r=5;const i=[];let s=0;let o=0;const c=" > ";const u=c.length;let f;const a=Array.isArray(n)?n:n.keyAttrs;const l=!Array.isArray(n)&&n.maxStringLength||J;while(e&&s++<r){f=X(e,a);if(f==="html"||s>1&&o+i.length*u+f.length>=l){break}i.push(f);o+=f.length;e=e.parentNode}return i.reverse().join(c)}catch{return"<unknown>"}}function X(t,n){const e=t;const r=[];if(!e?.tagName){return""}if(q.HTMLElement){if(e instanceof HTMLElement&&e.dataset){if(e.dataset["sentryComponent"]){return e.dataset["sentryComponent"]}if(e.dataset["sentryElement"]){return e.dataset["sentryElement"]}}}r.push(e.tagName.toLowerCase());const i=n?.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(i?.length){i.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}))}else{if(e.id){r.push(`#${e.id}`)}const t=e.className;if(t&&L(t)){const n=t.split(/\s+/);for(const t of n){r.push(`.${t}`)}}}const s=["aria-label","type","name","title","alt"];for(const t of s){const n=e.getAttribute(t);if(n){r.push(`[${t}="${n}"]`)}}return r.join("")}function Z(){try{return q.document.location.href}catch{return""}}function tt(t){if(!q.HTMLElement){return null}let n=t;const e=5;for(let t=0;t<e;t++){if(!n){return null}if(n instanceof HTMLElement){if(n.dataset["sentryComponent"]){return n.dataset["sentryComponent"]}if(n.dataset["sentryElement"]){return n.dataset["sentryElement"]}}n=n.parentNode}return null}function nt(n,e,r){if(!(e in n)){return}const i=n[e];if(typeof i!=="function"){return}const s=r(i);if(typeof s==="function"){rt(s,i)}try{n[e]=s}catch{t&&g.log(`Failed to replace method "${e}" in object`,n)}}function et(n,e,r){try{Object.defineProperty(n,e,{value:r,writable:true,configurable:true})}catch{t&&g.log(`Failed to add non-enumerable property "${e}" to object`,n)}}function rt(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e;et(t,"__sentry_original__",n)}catch{}}function it(t){return t.__sentry_original__}function st(t){if(N(t)){return{message:t.message,name:t.name,stack:t.stack,...ct(t)}}else if(z(t)){const n={type:t.type,target:ot(t.target),currentTarget:ot(t.currentTarget),...ct(t)};if(typeof CustomEvent!=="undefined"&&H(t,CustomEvent)){n.detail=t.detail}return n}else{return t}}function ot(t){try{return K(t)?Q(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function ct(t){if(typeof t==="object"&&t!==null){const n={};for(const e in t){if(Object.prototype.hasOwnProperty.call(t,e)){n[e]=t[e]}}return n}else{return{}}}function ut(t){const n=Object.keys(st(t));n.sort();return!n[0]?"[object has no keys]":n.join(", ")}function ft(t,n=0){if(typeof t!=="string"||n===0){return t}return t.length<=n?t:`${t.slice(0,n)}...`}function at(t,n){if(!Array.isArray(t)){return""}const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{if(W(r)){e.push(k(r))}else{e.push(String(r))}}catch{e.push("[value cannot be serialized]")}}return e.join(n)}function lt(t,n,e=false){if(!L(t)){return false}if(U(n)){return n.test(t)}if(L(n)){return e?t===n:t.includes(n)}return false}function ht(t,n=[],e=false){return n.some((n=>lt(t,n,e)))}function dt(){const t=n;return t.crypto||t.msCrypto}let pt;function yt(){return Math.random()*16}function bt(t=dt()){try{if(t?.randomUUID){return t.randomUUID().replace(/-/g,"")}}catch{}if(!pt){pt=[1e7]+1e3+4e3+8e3+1e11}return pt.replace(/[018]/g,(t=>(t^(yt()&15)>>t/4).toString(16)))}function mt(t){return t.exception?.values?.[0]}function gt(t){const{message:n,event_id:e}=t;if(n){return n}const r=mt(t);if(r){if(r.type&&r.value){return`${r.type}: ${r.value}`}return r.type||r.value||e||"<unknown>"}return e||"<unknown>"}function _t(t,n,e){const r=t.exception=t.exception||{};const i=r.values=r.values||[];const s=i[0]=i[0]||{};if(!s.value){s.value=n||""}if(!s.type){s.type="Error"}}function St(t,n){const e=mt(t);if(!e){return}const r={type:"generic",handled:true};const i=e.mechanism;e.mechanism={...r,...i,...n};if(n&&"data"in n){const t={...i?.data,...n.data};e.mechanism.data=t}}function wt(t){if(Et(t)){return true}try{et(t,"__sentry_captured__",true)}catch{}return false}function Et(t){try{return t.__sentry_captured__}catch{}}const vt=1e3;function xt(){return Date.now()/vt}function jt(){const{performance:t}=n;if(!t?.now||!t.timeOrigin){return xt}const e=t.timeOrigin;return()=>(e+t.now())/vt}let $t;function It(){const t=$t??($t=jt());return t()}function Ot(t){const n=It();const e={sid:bt(),init:true,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:false,toJSON:()=>Ct(e)};if(t){Dt(e,t)}return e}function Dt(t,n={}){if(n.user){if(!t.ipAddress&&n.user.ip_address){t.ipAddress=n.user.ip_address}if(!t.did&&!n.did){t.did=n.user.id||n.user.email||n.user.username}}t.timestamp=n.timestamp||It();if(n.abnormal_mechanism){t.abnormal_mechanism=n.abnormal_mechanism}if(n.ignoreDuration){t.ignoreDuration=n.ignoreDuration}if(n.sid){t.sid=n.sid.length===32?n.sid:bt()}if(n.init!==undefined){t.init=n.init}if(!t.did&&n.did){t.did=`${n.did}`}if(typeof n.started==="number"){t.started=n.started}if(t.ignoreDuration){t.duration=undefined}else if(typeof n.duration==="number"){t.duration=n.duration}else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}if(n.release){t.release=n.release}if(n.environment){t.environment=n.environment}if(!t.ipAddress&&n.ipAddress){t.ipAddress=n.ipAddress}if(!t.userAgent&&n.userAgent){t.userAgent=n.userAgent}if(typeof n.errors==="number"){t.errors=n.errors}if(n.status){t.status=n.status}}function kt(t,n){let e={};if(t.status==="ok"){e={status:"exited"}}Dt(t,e)}function Ct(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did==="number"||typeof t.did==="string"?`${t.did}`:undefined,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function Nt(t,n,e=2){if(!n||typeof n!=="object"||e<=0){return n}if(t&&Object.keys(n).length===0){return t}const r={...t};for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){r[t]=Nt(r[t],n[t],e-1)}}return r}function Mt(){return bt()}function Rt(){return bt().substring(16)}const Tt="_sentrySpan";function At(t,n){if(n){et(t,Tt,n)}else{delete t[Tt]}}function Lt(t){return t[Tt]}const Pt=100;class Bt{constructor(){this._notifyingListeners=false;this._scopeListeners=[];this._eventProcessors=[];this._breadcrumbs=[];this._attachments=[];this._user={};this._tags={};this._extra={};this._contexts={};this._sdkProcessingMetadata={};this._propagationContext={traceId:Mt(),sampleRand:Math.random()}}clone(){const t=new Bt;t._breadcrumbs=[...this._breadcrumbs];t._tags={...this._tags};t._extra={...this._extra};t._contexts={...this._contexts};if(this._contexts.flags){t._contexts.flags={values:[...this._contexts.flags.values]}}t._user=this._user;t._level=this._level;t._session=this._session;t._transactionName=this._transactionName;t._fingerprint=this._fingerprint;t._eventProcessors=[...this._eventProcessors];t._attachments=[...this._attachments];t._sdkProcessingMetadata={...this._sdkProcessingMetadata};t._propagationContext={...this._propagationContext};t._client=this._client;t._lastEventId=this._lastEventId;At(t,Lt(this));return t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){this._eventProcessors.push(t);return this}setUser(t){this._user=t||{email:undefined,id:undefined,ip_address:undefined,username:undefined};if(this._session){Dt(this._session,{user:t})}this._notifyScopeListeners();return this}getUser(){return this._user}setTags(t){this._tags={...this._tags,...t};this._notifyScopeListeners();return this}setTag(t,n){return this.setTags({[t]:n})}setExtras(t){this._extra={...this._extra,...t};this._notifyScopeListeners();return this}setExtra(t,n){this._extra={...this._extra,[t]:n};this._notifyScopeListeners();return this}setFingerprint(t){this._fingerprint=t;this._notifyScopeListeners();return this}setLevel(t){this._level=t;this._notifyScopeListeners();return this}setTransactionName(t){this._transactionName=t;this._notifyScopeListeners();return this}setContext(t,n){if(n===null){delete this._contexts[t]}else{this._contexts[t]=n}this._notifyScopeListeners();return this}setSession(t){if(!t){delete this._session}else{this._session=t}this._notifyScopeListeners();return this}getSession(){return this._session}update(t){if(!t){return this}const n=typeof t==="function"?t(this):t;const e=n instanceof Bt?n.getScopeData():F(n)?t:undefined;const{tags:r,extra:i,user:s,contexts:o,level:c,fingerprint:u=[],propagationContext:f}=e||{};this._tags={...this._tags,...r};this._extra={...this._extra,...i};this._contexts={...this._contexts,...o};if(s&&Object.keys(s).length){this._user=s}if(c){this._level=c}if(u.length){this._fingerprint=u}if(f){this._propagationContext=f}return this}clear(){this._breadcrumbs=[];this._tags={};this._extra={};this._user={};this._contexts={};this._level=undefined;this._transactionName=undefined;this._fingerprint=undefined;this._session=undefined;At(this,undefined);this._attachments=[];this.setPropagationContext({traceId:Mt(),sampleRand:Math.random()});this._notifyScopeListeners();return this}addBreadcrumb(t,n){const e=typeof n==="number"?n:Pt;if(e<=0){return this}const r={timestamp:xt(),...t,message:t.message?ft(t.message,2048):t.message};this._breadcrumbs.push(r);if(this._breadcrumbs.length>e){this._breadcrumbs=this._breadcrumbs.slice(-e);this._client?.recordDroppedEvent("buffer_overflow","log_item")}this._notifyScopeListeners();return this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){this._breadcrumbs=[];this._notifyScopeListeners();return this}addAttachment(t){this._attachments.push(t);return this}clearAttachments(){this._attachments=[];return this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Lt(this)}}setSDKProcessingMetadata(t){this._sdkProcessingMetadata=Nt(this._sdkProcessingMetadata,t,2);return this}setPropagationContext(t){this._propagationContext=t;return this}getPropagationContext(){return this._propagationContext}captureException(n,e){const r=e?.event_id||bt();if(!this._client){t&&g.warn("No client configured on scope - will not capture exception!");return r}const i=new Error("Sentry syntheticException");this._client.captureException(n,{originalException:n,syntheticException:i,...e,event_id:r},this);return r}captureMessage(n,e,r){const i=r?.event_id||bt();if(!this._client){t&&g.warn("No client configured on scope - will not capture message!");return i}const s=r?.syntheticException??new Error(n);this._client.captureMessage(n,e,{originalException:n,syntheticException:s,...r,event_id:i},this);return i}captureEvent(n,e){const r=e?.event_id||bt();if(!this._client){t&&g.warn("No client configured on scope - will not capture event!");return r}this._client.captureEvent(n,{...e,event_id:r},this);return r}_notifyScopeListeners(){if(!this._notifyingListeners){this._notifyingListeners=true;this._scopeListeners.forEach((t=>{t(this)}));this._notifyingListeners=false}}}function Ft(){return s("defaultCurrentScope",(()=>new Bt))}function zt(){return s("defaultIsolationScope",(()=>new Bt))}class Kt{constructor(t,n){let e;if(!t){e=new Bt}else{e=t}let r;if(!n){r=new Bt}else{r=n}this._stack=[{scope:e}];this._isolationScope=r}withScope(t){const n=this._pushScope();let e;try{e=t(n)}catch(t){this._popScope();throw t}if(V(e)){return e.then((t=>{this._popScope();return t}),(t=>{this._popScope();throw t}))}this._popScope();return e}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();this._stack.push({client:this.getClient(),scope:t});return t}_popScope(){if(this._stack.length<=1)return false;return!!this._stack.pop()}}function Ut(){const t=r();const n=i(t);return n.stack=n.stack||new Kt(Ft(),zt())}function Vt(t){return Ut().withScope(t)}function Gt(t,n){const e=Ut();return e.withScope((()=>{e.getStackTop().scope=t;return n(t)}))}function Ht(t){return Ut().withScope((()=>t(Ut().getIsolationScope())))}function Wt(){return{withIsolationScope:Ht,withScope:Vt,withSetScope:Gt,withSetIsolationScope:(t,n)=>Ht(n),getCurrentScope:()=>Ut().getScope(),getIsolationScope:()=>Ut().getIsolationScope()}}function Yt(t){const n=i(t);if(n.acs){return n.acs}return Wt()}function qt(){const t=r();const n=Yt(t);return n.getCurrentScope()}function Jt(){const t=r();const n=Yt(t);return n.getIsolationScope()}function Qt(){return s("globalScope",(()=>new Bt))}function Xt(...t){const n=r();const e=Yt(n);if(t.length===2){const[n,r]=t;if(!n){return e.withScope(r)}return e.withSetScope(n,r)}return e.withScope(t[0])}function Zt(){return qt().getClient()}function tn(t){const n=t.getPropagationContext();const{traceId:e,parentSpanId:r,propagationSpanId:i}=n;const s={trace_id:e,span_id:i||Rt()};if(r){s.parent_span_id=r}return s}const nn="sentry.source";const en="sentry.sample_rate";const rn="sentry.previous_trace_sample_rate";const sn="sentry.op";const on="sentry.origin";const cn="sentry.profile_id";const un="sentry.exclusive_time";const fn=0;const an=1;const ln="_sentryScope";const hn="_sentryIsolationScope";function dn(t){if(!t){return undefined}if(typeof t==="object"&&"deref"in t&&typeof t.deref==="function"){try{return t.deref()}catch{return undefined}}return t}function pn(t){const n=t;return{scope:n[ln],isolationScope:dn(n[hn])}}const yn="sentry-";const bn=/^sentry-/;function mn(t){const n=gn(t);if(!n){return undefined}const e=Object.entries(n).reduce(((t,[n,e])=>{if(n.match(bn)){const r=n.slice(yn.length);t[r]=e}return t}),{});if(Object.keys(e).length>0){return e}else{return undefined}}function gn(t){if(!t||!L(t)&&!Array.isArray(t)){return undefined}if(Array.isArray(t)){return t.reduce(((t,n)=>{const e=_n(n);Object.entries(e).forEach((([n,e])=>{t[n]=e}));return t}),{})}return _n(t)}function _n(t){return t.split(",").map((t=>{const n=t.indexOf("=");if(n===-1){return[]}const e=t.slice(0,n);const r=t.slice(n+1);return[e,r].map((t=>{try{return decodeURIComponent(t.trim())}catch{return}}))})).reduce(((t,[n,e])=>{if(n&&e){t[n]=e}return t}),{})}const Sn=/^o(\d+)\./;const wn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function En(t){return t==="http"||t==="https"}function vn(t,n=false){const{host:e,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&i?`:${i}`:""}`+`@${e}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function xn(t){const n=wn.exec(t);if(!n){f((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));return undefined}const[e,r,i="",s="",o="",c=""]=n.slice(1);let u="";let a=c;const l=a.split("/");if(l.length>1){u=l.slice(0,-1).join("/");a=l.pop()}if(a){const t=a.match(/^\d+/);if(t){a=t[0]}}return jn({host:s,pass:i,path:u,projectId:a,port:o,protocol:e,publicKey:r})}function jn(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function $n(n){if(!t){return true}const{port:e,projectId:r,protocol:i}=n;const s=["protocol","publicKey","host","projectId"];const o=s.find((t=>{if(!n[t]){g.error(`Invalid Sentry Dsn: ${t} missing`);return true}return false}));if(o){return false}if(!r.match(/^\d+$/)){g.error(`Invalid Sentry Dsn: Invalid projectId ${r}`);return false}if(!En(i)){g.error(`Invalid Sentry Dsn: Invalid protocol ${i}`);return false}if(e&&isNaN(parseInt(e,10))){g.error(`Invalid Sentry Dsn: Invalid port ${e}`);return false}return true}function In(t){const n=t.match(Sn);return n?.[1]}function On(t){const n=t.getOptions();const{host:e}=t.getDsn()||{};let r;if(n.orgId){r=String(n.orgId)}else if(e){r=In(e)}return r}function Dn(t){const n=typeof t==="string"?xn(t):jn(t);if(!n||!$n(n)){return undefined}return n}const kn=1;let Cn=false;function Nn(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext();const i=r?n:An(t).parent_span_id;const s=pn(t).scope;const o=r?s?.getPropagationContext().propagationSpanId||Rt():n;return{parent_span_id:i,span_id:o,trace_id:e}}function Mn(t){if(t&&t.length>0){return t.map((({context:{spanId:t,traceId:n,traceFlags:e,...r},attributes:i})=>({span_id:t,trace_id:n,sampled:e===kn,attributes:i,...r})))}else{return undefined}}function Rn(t){if(typeof t==="number"){return Tn(t)}if(Array.isArray(t)){return t[0]+t[1]/1e9}if(t instanceof Date){return Tn(t.getTime())}return It()}function Tn(t){const n=t>9999999999;return n?t/1e3:t}function An(t){if(Pn(t)){return t.getSpanJSON()}const{spanId:n,traceId:e}=t.spanContext();if(Ln(t)){const{attributes:r,startTime:i,name:s,endTime:o,status:c,links:u}=t;const f="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:undefined;return{span_id:n,trace_id:e,data:r,description:s,parent_span_id:f,start_timestamp:Rn(i),timestamp:Rn(o)||undefined,status:Fn(c),op:r[sn],origin:r[on],links:Mn(u)}}return{span_id:n,trace_id:e,start_timestamp:0,data:{}}}function Ln(t){const n=t;return!!n.attributes&&!!n.startTime&&!!n.name&&!!n.endTime&&!!n.status}function Pn(t){return typeof t.getSpanJSON==="function"}function Bn(t){const{traceFlags:n}=t.spanContext();return n===kn}function Fn(t){if(!t||t.code===fn){return undefined}if(t.code===an){return"ok"}return t.message||"internal_error"}const zn="_sentryRootSpan";function Kn(t){return t[zn]||t}function Un(){if(!Cn){f((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}));Cn=true}}function Vn(t){if(typeof __SENTRY_TRACING__==="boolean"&&!__SENTRY_TRACING__){return false}const n=Zt()?.getOptions();return!!n&&(n.tracesSampleRate!=null||!!n.tracesSampler)}const Gn="production";const Hn="_frozenDsc";function Wn(t,n){const e=n.getOptions();const{publicKey:r}=n.getDsn()||{};const i={environment:e.environment||Gn,release:e.release,public_key:r,trace_id:t,org_id:On(n)};n.emit("createDsc",i);return i}function Yn(t,n){const e=n.getPropagationContext();return e.dsc||Wn(e.traceId,t)}function qn(t){const n=Zt();if(!n){return{}}const e=Kn(t);const r=An(e);const i=r.data;const s=e.spanContext().traceState;const o=s?.get("sentry.sample_rate")??i[en]??i[rn];function c(t){if(typeof o==="number"||typeof o==="string"){t.sample_rate=`${o}`}return t}const u=e[Hn];if(u){return c(u)}const f=s?.get("sentry.dsc");const a=f&&mn(f);if(a){return c(a)}const l=Wn(t.spanContext().traceId,n);const h=i[nn];const d=r.description;if(h!=="url"&&d){l.transaction=d}if(Vn()){l.sampled=String(Bn(e));l.sample_rand=s?.get("sentry.sample_rand")??pn(e).scope?.getPropagationContext().sampleRand.toString()}c(l);n.emit("createDsc",l,e);return l}function Jn(t,n=100,e=+Infinity){try{return Xn("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Qn(t,n=3,e=100*1024){const r=Jn(t,n);if(ee(r)>e){return Qn(t,n-1,e)}return r}function Xn(t,n,e=+Infinity,r=+Infinity,i=re()){const[s,o]=i;if(n==null||["boolean","string"].includes(typeof n)||typeof n==="number"&&Number.isFinite(n)){return n}const c=Zn(t,n);if(!c.startsWith("[object ")){return c}if(n["__sentry_skip_normalization__"]){return n}const u=typeof n["__sentry_override_normalization_depth__"]==="number"?n["__sentry_override_normalization_depth__"]:e;if(u===0){return c.replace("object ","")}if(s(n)){return"[Circular ~]"}const f=n;if(f&&typeof f.toJSON==="function"){try{const t=f.toJSON();return Xn("",t,u-1,r,i)}catch{}}const a=Array.isArray(n)?[]:{};let l=0;const h=st(n);for(const t in h){if(!Object.prototype.hasOwnProperty.call(h,t)){continue}if(l>=r){a[t]="[MaxProperties ~]";break}const n=h[t];a[t]=Xn(t,n,u-1,r,i);l++}o(n);return a}function Zn(t,n){try{if(t==="domain"&&n&&typeof n==="object"&&n._events){return"[Domain]"}if(t==="domainEmitter"){return"[DomainEmitter]"}if(typeof global!=="undefined"&&n===global){return"[Global]"}if(typeof window!=="undefined"&&n===window){return"[Window]"}if(typeof document!=="undefined"&&n===document){return"[Document]"}if(W(n)){return k(n)}if(G(n)){return"[SyntheticEvent]"}if(typeof n==="number"&&!Number.isFinite(n)){return`[${n}]`}if(typeof n==="function"){return`[Function: ${O(n)}]`}if(typeof n==="symbol"){return`[${String(n)}]`}if(typeof n==="bigint"){return`[BigInt: ${String(n)}]`}const e=te(n);if(/^HTML(\w*)Element$/.test(e)){return`[HTMLElement: ${e}]`}return`[object ${e}]`}catch(t){return`**non-serializable** (${t})`}}function te(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}function ne(t){return~-encodeURI(t).split(/%..|./).length}function ee(t){return ne(JSON.stringify(t))}function re(){const t=new WeakSet;function n(n){if(t.has(n)){return true}t.add(n);return false}function e(n){t.delete(n)}return[n,e]}const ie=0;const se=1;const oe=2;function ce(t){return new fe((n=>{n(t)}))}function ue(t){return new fe(((n,e)=>{e(t)}))}class fe{constructor(t){this._state=ie;this._handlers=[];this._runExecutor(t)}then(t,n){return new fe(((e,r)=>{this._handlers.push([false,n=>{if(!t){e(n)}else{try{e(t(n))}catch(t){r(t)}}},t=>{if(!n){r(t)}else{try{e(n(t))}catch(t){r(t)}}}]);this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new fe(((n,e)=>{let r;let i;return this.then((n=>{i=false;r=n;if(t){t()}}),(n=>{i=true;r=n;if(t){t()}})).then((()=>{if(i){e(r);return}n(r)}))}))}_executeHandlers(){if(this._state===ie){return}const t=this._handlers.slice();this._handlers=[];t.forEach((t=>{if(t[0]){return}if(this._state===se){t[1](this._value)}if(this._state===oe){t[2](this._value)}t[0]=true}))}_runExecutor(t){const n=(t,n)=>{if(this._state!==ie){return}if(V(n)){void n.then(e,r);return}this._state=t;this._value=n;this._executeHandlers()};const e=t=>{n(se,t)};const r=t=>{n(oe,t)};try{t(e,r)}catch(t){r(t)}}}function ae(t,n,e,r=0){try{const i=le(n,e,t,r);return V(i)?i:ce(i)}catch(t){return ue(t)}}function le(n,e,r,i){const s=r[i];if(!n||!s){return n}const o=s({...n},e);t&&o===null&&g.log(`Event processor "${s.id||"?"}" dropped event`);if(V(o)){return o.then((t=>le(t,e,r,i+1)))}return le(o,e,r,i+1)}function he(t,n){const{fingerprint:e,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=n;ye(t,n);if(r){ge(t,r)}_e(t,e);be(t,i);me(t,s)}function de(t,n){const{extra:e,tags:r,user:i,contexts:s,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:f,eventProcessors:a,attachments:l,propagationContext:h,transactionName:d,span:p}=n;pe(t,"extra",e);pe(t,"tags",r);pe(t,"user",i);pe(t,"contexts",s);t.sdkProcessingMetadata=Nt(t.sdkProcessingMetadata,c,2);if(o){t.level=o}if(d){t.transactionName=d}if(p){t.span=p}if(u.length){t.breadcrumbs=[...t.breadcrumbs,...u]}if(f.length){t.fingerprint=[...t.fingerprint,...f]}if(a.length){t.eventProcessors=[...t.eventProcessors,...a]}if(l.length){t.attachments=[...t.attachments,...l]}t.propagationContext={...t.propagationContext,...h}}function pe(t,n,e){t[n]=Nt(t[n],e,1)}function ye(t,n){const{extra:e,tags:r,user:i,contexts:s,level:o,transactionName:c}=n;if(Object.keys(e).length){t.extra={...e,...t.extra}}if(Object.keys(r).length){t.tags={...r,...t.tags}}if(Object.keys(i).length){t.user={...i,...t.user}}if(Object.keys(s).length){t.contexts={...s,...t.contexts}}if(o){t.level=o}if(c&&t.type!=="transaction"){t.transaction=c}}function be(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:undefined}function me(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}function ge(t,n){t.contexts={trace:Nn(n),...t.contexts};t.sdkProcessingMetadata={dynamicSamplingContext:qn(n),...t.sdkProcessingMetadata};const e=Kn(n);const r=An(e).description;if(r&&!t.transaction&&t.type==="transaction"){t.transaction=r}}function _e(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[];if(n){t.fingerprint=t.fingerprint.concat(n)}if(!t.fingerprint.length){delete t.fingerprint}}let Se;let we;let Ee;let ve;function xe(t){const e=n._sentryDebugIds;const r=n._debugIds;if(!e&&!r){return{}}const i=e?Object.keys(e):[];const s=r?Object.keys(r):[];if(ve&&i.length===we&&s.length===Ee){return ve}we=i.length;Ee=s.length;ve={};if(!Se){Se={}}const o=(n,e)=>{for(const r of n){const n=e[r];const i=Se?.[r];if(i&&ve&&n){ve[i[0]]=n;if(Se){Se[r]=[i[0],n]}}else if(n){const e=t(r);for(let t=e.length-1;t>=0;t--){const i=e[t];const s=i?.filename;if(s&&ve&&Se){ve[s]=n;Se[r]=[s,n];break}}}}};if(e){o(i,e)}if(r){o(s,r)}return ve}function je(t,n,e,r,i,s){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t;const u={...n,event_id:n.event_id||e.event_id||bt(),timestamp:n.timestamp||xt()};const f=e.integrations||t.integrations.map((t=>t.name));$e(u,t);De(u,f);if(i){i.emit("applyFrameMetadata",n)}if(n.type===undefined){Ie(u,t.stackParser)}const a=Ce(r,e.captureContext);if(e.mechanism){St(u,e.mechanism)}const l=i?i.getEventProcessors():[];const h=Qt().getScopeData();if(s){const t=s.getScopeData();de(h,t)}if(a){const t=a.getScopeData();de(h,t)}const d=[...e.attachments||[],...h.attachments];if(d.length){e.attachments=d}he(u,h);const p=[...l,...h.eventProcessors];const y=ae(p,u,e);return y.then((t=>{if(t){Oe(t)}if(typeof o==="number"&&o>0){return ke(t,o,c)}return t}))}function $e(t,n){const{environment:e,release:r,dist:i,maxValueLength:s}=n;t.environment=t.environment||e||Gn;if(!t.release&&r){t.release=r}if(!t.dist&&i){t.dist=i}const o=t.request;if(o?.url){o.url=s?ft(o.url,s):o.url}}function Ie(t,n){const e=xe(n);t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{if(t.filename){t.debug_id=e[t.filename]}}))}))}function Oe(t){const n={};t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{if(t.debug_id){if(t.abs_path){n[t.abs_path]=t.debug_id}else if(t.filename){n[t.filename]=t.debug_id}delete t.debug_id}}))}));if(Object.keys(n).length===0){return}t.debug_meta=t.debug_meta||{};t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.entries(n).forEach((([t,n])=>{e.push({type:"sourcemap",code_file:t,debug_id:n})}))}function De(t,n){if(n.length>0){t.sdk=t.sdk||{};t.sdk.integrations=[...t.sdk.integrations||[],...n]}}function ke(t,n,e){if(!t){return null}const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Jn(t.data,n,e)}})))},...t.user&&{user:Jn(t.user,n,e)},...t.contexts&&{contexts:Jn(t.contexts,n,e)},...t.extra&&{extra:Jn(t.extra,n,e)}};if(t.contexts?.trace&&r.contexts){r.contexts.trace=t.contexts.trace;if(t.contexts.trace.data){r.contexts.trace.data=Jn(t.contexts.trace.data,n,e)}}if(t.spans){r.spans=t.spans.map((t=>({...t,...t.data&&{data:Jn(t.data,n,e)}})))}if(t.contexts?.flags&&r.contexts){r.contexts.flags=Jn(t.contexts.flags,3,e)}return r}function Ce(t,n){if(!n){return t}const e=t?t.clone():new Bt;e.update(n);return e}function Ne(t){if(!t){return undefined}if(Me(t)){return{captureContext:t}}if(Te(t)){return{captureContext:t}}return t}function Me(t){return t instanceof Bt||typeof t==="function"}const Re=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Te(t){return Object.keys(t).some((t=>Re.includes(t)))}function Ae(t,n){return qt().captureException(t,Ne(n))}function Le(t,n){return qt().captureEvent(t,n)}function Pe(t){const e=Jt();const r=qt();const{userAgent:i}=n.navigator||{};const s=Ot({user:r.getUser()||e.getUser(),...i&&{userAgent:i},...t});const o=e.getSession();if(o?.status==="ok"){Dt(o,{status:"exited"})}Be();e.setSession(s);return s}function Be(){const t=Jt();const n=qt();const e=n.getSession()||t.getSession();if(e){kt(e)}Fe();t.setSession()}function Fe(){const t=Jt();const n=Zt();const e=t.getSession();if(e&&n){n.captureSession(e)}}function ze(t=false){if(t){Be();return}Fe()}export{A as $,f as A,ce as B,e as C,t as D,Zt as E,it as F,n as G,gt as H,ht as I,H as J,o as K,nt as L,u as M,D as N,It as O,N as P,et as Q,Y as R,un as S,Z as T,rt as U,Xt as V,_t as W,St as X,Ae as Y,R as Z,T as _,vn as a,z as a0,Qn as a1,ut as a2,L as a3,v as a4,S as a5,Q as a6,at as a7,tt as a8,Pe as a9,ze as aa,Le as ab,x as ac,i as b,s as c,g as d,xt as e,cn as f,O as g,wt as h,lt as i,B as j,Dt as k,Gn as l,Dn as m,Jn as n,tn as o,je as p,Yn as q,qt as r,Jt as s,ue as t,bt as u,P as v,Un as w,Nt as x,V as y,F as z};
|
|
2
|
-
//# sourceMappingURL=p-D7pzDSGS.js.map
|