@saasquatch/mint-components 1.6.2-10 → 1.6.2-13
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/{GenericTableView-47869553.js → GenericTableView-9271483b.js} +1 -1
- package/dist/cjs/{JSS-97fd087e.js → JSS-8503a151.js} +35 -19
- package/dist/cjs/{ShadowViewAddon-0ce4871c.js → ShadowViewAddon-58ede93c.js} +17 -21
- package/dist/cjs/{global-4e52f274.js → global-b645d18a.js} +2 -2
- package/dist/cjs/{index.module-7972acac.js → index.module-93c78ac7.js} +227 -535
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/mint-components.cjs.js +2 -3
- package/dist/cjs/{re-render-99b2655c.js → re-render-afeabe91.js} +4 -4
- package/dist/cjs/{sqm-asset-card-view-3da8cac1.js → sqm-asset-card-view-59c39ed2.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -4
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +87 -93
- package/dist/cjs/sqm-empty_5.cjs.entry.js +3 -4
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -6
- package/dist/cjs/{sqm-hero-view-bc763ed2.js → sqm-hero-view-ba78dcaf.js} +1 -1
- package/dist/cjs/sqm-hero.cjs.entry.js +2 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-navigation-sidebar-item-view-b3ca14b4.js → sqm-navigation-sidebar-item-view-2eda59bf.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-navigation-sidebar-view-969adcdc.js → sqm-navigation-sidebar-view-2ffde416.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +3 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-portal-container-view-840db620.js → sqm-portal-container-view-2ddcaa12.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-f2a35e7c.js → sqm-portal-email-verification-view-b280d0b0.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +19 -23
- package/dist/cjs/{sqm-portal-footer-view-8eadb31d.js → sqm-portal-footer-view-5d6451ad.js} +2 -2
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-portal-forgot-password-view-fed1f563.js → sqm-portal-forgot-password-view-ccaf2bd4.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +18 -21
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -3
- package/dist/cjs/{sqm-portal-profile-view-730252e8.js → sqm-portal-profile-view-e615e2b2.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +8 -9
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -6
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +28 -28
- package/dist/cjs/{sqm-portal-reset-password-view-f8dc0b79.js → sqm-portal-reset-password-view-4d23de69.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +31 -38
- package/dist/cjs/{sqm-portal-section-view-854a3e9c.js → sqm-portal-section-view-1e5bbcb1.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-cc59877c.js → sqm-portal-verify-email-view-96adafc0.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -11
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -9
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +11 -12
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +55 -56
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -3
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-text-span-view-2c7d94b5.js → sqm-text-span-view-b318af73.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -3
- package/dist/cjs/{useChildElements-42a97f2a.js → useChildElements-c0cc8f5d.js} +2 -2
- package/dist/cjs/{useReferralTable-a985ce58.js → useReferralTable-db1b33db.js} +7 -7
- package/dist/cjs/{useRegistrationFormState-b7598d69.js → useRegistrationFormState-d0e43ca9.js} +3 -3
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +7 -10
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +14 -17
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +14 -16
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +0 -4
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +13 -16
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +21 -20
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +22 -21
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +23 -29
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +1 -2
- package/dist/esm/{GenericTableView-10cac7d6.js → GenericTableView-ce26115f.js} +1 -1
- package/dist/esm/{JSS-f00f9536.js → JSS-67b5cff8.js} +17 -1
- package/dist/esm/{ShadowViewAddon-846aecda.js → ShadowViewAddon-6b6e9c10.js} +17 -21
- package/dist/esm/{global-44835899.js → global-c2d5e2fa.js} +2 -2
- package/dist/esm/{index.module-132e274f.js → index.module-25496635.js} +211 -519
- package/dist/esm/loader.js +2 -3
- package/dist/esm/mint-components.js +2 -3
- package/dist/esm/{re-render-81cd3caa.js → re-render-8ece93cd.js} +4 -4
- package/dist/esm/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +3 -4
- package/dist/esm/sqm-big-stat_35.entry.js +87 -93
- package/dist/esm/sqm-empty_5.entry.js +3 -4
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -6
- package/dist/esm/{sqm-hero-view-9fb2be89.js → sqm-hero-view-b8ce1900.js} +1 -1
- package/dist/esm/sqm-hero.entry.js +2 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +4 -5
- package/dist/esm/{sqm-navigation-sidebar-item-view-364af025.js → sqm-navigation-sidebar-item-view-24d5f092.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -5
- package/dist/esm/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -3
- package/dist/esm/sqm-password-field.entry.js +3 -4
- package/dist/esm/sqm-popup-container.entry.js +4 -5
- package/dist/esm/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-5ac21bb4.js → sqm-portal-email-verification-view-4fa01d0a.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +20 -24
- package/dist/esm/{sqm-portal-footer-view-f3a6eaed.js → sqm-portal-footer-view-c4059af8.js} +2 -2
- package/dist/esm/sqm-portal-footer.entry.js +4 -5
- package/dist/esm/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +19 -22
- package/dist/esm/sqm-portal-logout.entry.js +2 -3
- package/dist/esm/{sqm-portal-profile-view-630f05c8.js → sqm-portal-profile-view-ec58906b.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +8 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -6
- package/dist/esm/sqm-portal-registration-form.entry.js +28 -28
- package/dist/esm/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +31 -38
- package/dist/esm/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +9 -11
- package/dist/esm/sqm-referral-table_11.entry.js +8 -9
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +2 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +11 -12
- package/dist/esm/sqm-stencilbook.entry.js +55 -56
- package/dist/esm/sqm-tab.entry.js +2 -3
- package/dist/esm/sqm-tabs.entry.js +4 -5
- package/dist/esm/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +2 -3
- package/dist/esm/{useChildElements-9431f3e2.js → useChildElements-d86f03c6.js} +2 -2
- package/dist/esm/{useReferralTable-0516b6d5.js → useReferralTable-7aeb954d.js} +7 -7
- package/dist/esm/{useRegistrationFormState-ebb08075.js → useRegistrationFormState-e94eec81.js} +3 -3
- package/dist/esm-es5/{GenericTableView-10cac7d6.js → GenericTableView-ce26115f.js} +1 -1
- package/dist/esm-es5/{JSS-f00f9536.js → JSS-67b5cff8.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-6b6e9c10.js +1 -0
- package/dist/esm-es5/{global-44835899.js → global-c2d5e2fa.js} +2 -2
- package/dist/esm-es5/index.module-25496635.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-81cd3caa.js → re-render-8ece93cd.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-9fb2be89.js → sqm-hero-view-b8ce1900.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-24d5f092.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-5ac21bb4.js → sqm-portal-email-verification-view-4fa01d0a.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-f3a6eaed.js → sqm-portal-footer-view-c4059af8.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-630f05c8.js → sqm-portal-profile-view-ec58906b.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-9431f3e2.js → useChildElements-d86f03c6.js} +1 -1
- package/dist/esm-es5/{useReferralTable-0516b6d5.js → useReferralTable-7aeb954d.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-ebb08075.js → useRegistrationFormState-e94eec81.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-01016d01.entry.js +1 -0
- package/dist/mint-components/p-02cc2ae0.entry.js +1 -0
- package/dist/mint-components/{p-c627c865.js → p-0425104d.js} +2 -2
- package/dist/mint-components/{p-ec689579.js → p-043501b1.js} +1 -1
- package/dist/mint-components/p-0c98df9a.system.entry.js +1 -0
- package/dist/mint-components/{p-3abbc5b3.system.js → p-0e6f1340.system.js} +1 -1
- package/dist/mint-components/{p-242bd74b.entry.js → p-0ec88b18.entry.js} +1 -1
- package/dist/mint-components/{p-b7e6ce3c.system.js → p-0f20108e.system.js} +1 -1
- package/dist/mint-components/p-0f3c6e11.entry.js +1 -0
- package/dist/mint-components/{p-703f4552.entry.js → p-0f44ced1.entry.js} +4 -4
- package/dist/mint-components/p-11a4a003.system.js +1 -0
- package/dist/mint-components/{p-52a2beaf.js → p-13cfd4bd.js} +1 -1
- package/dist/mint-components/{p-d64a0bc1.js → p-16671c5a.js} +1 -1
- package/dist/mint-components/p-175ef60c.js +1 -0
- package/dist/mint-components/{p-0e441a14.system.js → p-177f1699.system.js} +1 -1
- package/dist/mint-components/{p-7dea8d9a.js → p-19deed13.js} +1 -1
- package/dist/mint-components/p-19f572c9.entry.js +1 -0
- package/dist/mint-components/p-1a673057.system.js +8 -0
- package/dist/mint-components/p-1cb7125b.entry.js +1 -0
- package/dist/mint-components/{p-4935076f.system.js → p-20268b64.system.js} +1 -1
- package/dist/mint-components/{p-0d482ad4.js → p-233e784a.js} +1 -1
- package/dist/mint-components/p-23ce9541.system.entry.js +1 -0
- package/dist/mint-components/{p-210cd41b.js → p-24d6c3fd.js} +1 -1
- package/dist/mint-components/{p-1c40d459.js → p-27d8b5e4.js} +1 -1
- package/dist/mint-components/{p-b0668789.system.js → p-27da3d2f.system.js} +1 -1
- package/dist/mint-components/{p-4778fb68.js → p-2895613d.js} +1 -1
- package/dist/mint-components/p-28b0cd34.entry.js +1 -0
- package/dist/mint-components/p-29c42c90.system.entry.js +1 -0
- package/dist/mint-components/{p-0f4c1e0e.entry.js → p-29d7ffd1.entry.js} +3 -3
- package/dist/mint-components/{p-0d49d56d.js → p-33fe169e.js} +1 -1
- package/dist/mint-components/p-3582d202.system.entry.js +1 -0
- package/dist/mint-components/p-369d00f3.system.entry.js +1 -0
- package/dist/mint-components/p-3aa067f0.entry.js +13 -0
- package/dist/mint-components/p-3c2febd2.system.entry.js +1 -0
- package/dist/mint-components/p-3cd4d8bb.system.entry.js +1 -0
- package/dist/mint-components/p-3f15986b.entry.js +1 -0
- package/dist/mint-components/p-40a8ea40.entry.js +1 -0
- package/dist/mint-components/{p-1c21b5d1.js → p-41962e08.js} +1 -1
- package/dist/mint-components/p-4352909d.js +1 -0
- package/dist/mint-components/p-4560faa8.entry.js +1 -0
- package/dist/mint-components/{p-2cac212f.system.js → p-486f5810.system.js} +1 -1
- package/dist/mint-components/p-49c7d8f5.system.entry.js +1 -0
- package/dist/mint-components/{p-83d4885d.entry.js → p-4a5d61fe.entry.js} +2 -2
- package/dist/mint-components/p-4b83d7ea.js +1 -0
- package/dist/mint-components/p-4cc59fed.system.entry.js +1 -0
- package/dist/mint-components/{p-1f6fdeda.system.entry.js → p-4d4e5ac4.system.entry.js} +1 -1
- package/dist/mint-components/p-528ce342.system.entry.js +1 -0
- package/dist/mint-components/p-5352b716.system.entry.js +1 -0
- package/dist/mint-components/p-54db9721.js +1 -0
- package/dist/mint-components/p-58c173ff.entry.js +1 -0
- package/dist/mint-components/{p-a53d815e.system.js → p-5d4d81bf.system.js} +1 -1
- package/dist/mint-components/p-5effdc5e.system.entry.js +1 -0
- package/dist/mint-components/p-61b954e7.entry.js +1 -0
- package/dist/mint-components/p-674c9b4b.system.entry.js +1 -0
- package/dist/mint-components/p-6a529e0e.entry.js +1 -0
- package/dist/mint-components/{p-986f10d2.system.js → p-6b8b7dc0.system.js} +1 -1
- package/dist/mint-components/{p-0148c516.js → p-6dd27a5e.js} +1 -1
- package/dist/mint-components/p-76f151b2.entry.js +1 -0
- package/dist/mint-components/{p-89fc4544.system.js → p-7850a5e5.system.js} +1 -1
- package/dist/mint-components/{p-1c24a18c.js → p-78dcf8ff.js} +1 -1
- package/dist/mint-components/p-79aa6d79.system.entry.js +1 -0
- package/dist/mint-components/p-7aa067b0.system.entry.js +1 -0
- package/dist/mint-components/p-7ab63827.entry.js +1 -0
- package/dist/mint-components/p-7fcb4118.system.entry.js +1 -0
- package/dist/mint-components/{p-afcf252c.js → p-914511f3.js} +1 -1
- package/dist/mint-components/{p-292857fd.system.js → p-94578d79.system.js} +1 -1
- package/dist/mint-components/p-986e52e2.system.entry.js +1 -0
- package/dist/mint-components/p-9a87d5ae.system.entry.js +1 -0
- package/dist/mint-components/p-9db0c9fc.system.entry.js +1 -0
- package/dist/mint-components/p-9fa6c616.entry.js +1 -0
- package/dist/mint-components/{p-275cf42f.js → p-a4505a80.js} +1 -1
- package/dist/mint-components/{p-3c8becd3.js → p-a46c0d32.js} +1 -1
- package/dist/mint-components/p-a951d772.system.entry.js +1 -0
- package/dist/mint-components/p-aefc2633.system.entry.js +1 -0
- package/dist/mint-components/{p-574ba520.system.js → p-b01e28dd.system.js} +1 -1
- package/dist/mint-components/{p-6b5fbbdb.js → p-b21814ac.js} +1 -1
- package/dist/mint-components/p-b33e0421.system.js +1 -0
- package/dist/mint-components/p-b7b4772a.entry.js +1 -0
- package/dist/mint-components/p-bd3c2e67.system.js +1 -0
- package/dist/mint-components/{p-446a0805.system.js → p-bef0a1f4.system.js} +1 -1
- package/dist/mint-components/p-bf17dc65.system.js +1 -0
- package/dist/mint-components/p-c869970e.system.entry.js +1 -0
- package/dist/mint-components/p-cdec6312.system.entry.js +1 -0
- package/dist/mint-components/p-cef45012.js +1 -0
- package/dist/mint-components/{p-519dc03b.system.js → p-d20361b8.system.js} +1 -1
- package/dist/mint-components/p-dd5f7670.entry.js +1 -0
- package/dist/mint-components/p-de2cd263.entry.js +1 -0
- package/dist/mint-components/p-de745531.system.entry.js +1 -0
- package/dist/mint-components/p-e0de4ac3.entry.js +1 -0
- package/dist/mint-components/p-e48269b2.system.js +1 -0
- package/dist/mint-components/p-e502bbcc.entry.js +13 -0
- package/dist/mint-components/p-e5380001.system.entry.js +1 -0
- package/dist/mint-components/{p-192617e7.system.js → p-e58c257b.system.js} +1 -1
- package/dist/mint-components/p-e58df0ff.system.entry.js +1 -0
- package/dist/mint-components/p-e67fc6a5.entry.js +1 -0
- package/dist/mint-components/p-eaa9a926.entry.js +1 -0
- package/dist/mint-components/{p-5d292177.system.js → p-ee5a4598.system.js} +1 -1
- package/dist/mint-components/{p-19b0e2b5.system.js → p-ef18a3bd.system.js} +1 -1
- package/dist/mint-components/{p-53aef3ba.system.js → p-fdcd2b8f.system.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +2 -2
- package/dist/cjs/extends-08099afd.js +0 -21
- package/dist/esm/extends-c31f1eff.js +0 -19
- package/dist/esm-es5/ShadowViewAddon-846aecda.js +0 -1
- package/dist/esm-es5/extends-c31f1eff.js +0 -1
- package/dist/esm-es5/index.module-132e274f.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-364af025.js +0 -1
- package/dist/mint-components/p-00d4636f.system.entry.js +0 -1
- package/dist/mint-components/p-06f56536.js +0 -1
- package/dist/mint-components/p-07d424a2.system.entry.js +0 -1
- package/dist/mint-components/p-088d3b4a.system.entry.js +0 -1
- package/dist/mint-components/p-0b1d703d.entry.js +0 -1
- package/dist/mint-components/p-136325c0.system.js +0 -1
- package/dist/mint-components/p-162fca19.js +0 -1
- package/dist/mint-components/p-1c17892a.system.js +0 -1
- package/dist/mint-components/p-1cc3dfe5.system.js +0 -1
- package/dist/mint-components/p-222e5418.entry.js +0 -1
- package/dist/mint-components/p-2383eadd.system.entry.js +0 -1
- package/dist/mint-components/p-2dce26fa.system.entry.js +0 -1
- package/dist/mint-components/p-3d0dc005.system.entry.js +0 -1
- package/dist/mint-components/p-3f43b39c.entry.js +0 -1
- package/dist/mint-components/p-436779be.js +0 -1
- package/dist/mint-components/p-4ce8e325.system.entry.js +0 -1
- package/dist/mint-components/p-50553269.system.entry.js +0 -1
- package/dist/mint-components/p-50afa774.entry.js +0 -1
- package/dist/mint-components/p-51102b8f.entry.js +0 -13
- package/dist/mint-components/p-5928afc0.js +0 -1
- package/dist/mint-components/p-63101d0c.entry.js +0 -1
- package/dist/mint-components/p-73681688.system.entry.js +0 -1
- package/dist/mint-components/p-7c3e3cb4.entry.js +0 -1
- package/dist/mint-components/p-7f4b0ba0.system.entry.js +0 -1
- package/dist/mint-components/p-81f34787.js +0 -1
- package/dist/mint-components/p-8b7a19d3.system.entry.js +0 -1
- package/dist/mint-components/p-8c4bcbc6.entry.js +0 -1
- package/dist/mint-components/p-8d6a2a61.system.entry.js +0 -1
- package/dist/mint-components/p-90dfce36.entry.js +0 -1
- package/dist/mint-components/p-9f596d8d.system.entry.js +0 -1
- package/dist/mint-components/p-a1acdbb4.entry.js +0 -1
- package/dist/mint-components/p-a395bae0.entry.js +0 -1
- package/dist/mint-components/p-a4335cb5.system.entry.js +0 -1
- package/dist/mint-components/p-af3b56d3.system.entry.js +0 -1
- package/dist/mint-components/p-b2e7ca31.system.entry.js +0 -1
- package/dist/mint-components/p-b3d7d353.entry.js +0 -1
- package/dist/mint-components/p-b52109dd.entry.js +0 -1
- package/dist/mint-components/p-b593a42e.system.entry.js +0 -1
- package/dist/mint-components/p-bb9dadd3.system.entry.js +0 -1
- package/dist/mint-components/p-bc2cf095.entry.js +0 -1
- package/dist/mint-components/p-bed78bee.system.entry.js +0 -1
- package/dist/mint-components/p-c01e754d.system.entry.js +0 -1
- package/dist/mint-components/p-c4e22786.system.js +0 -1
- package/dist/mint-components/p-ca08cf71.entry.js +0 -1
- package/dist/mint-components/p-cac0e237.entry.js +0 -1
- package/dist/mint-components/p-ce6f7e0e.entry.js +0 -1
- package/dist/mint-components/p-ceeeb344.entry.js +0 -1
- package/dist/mint-components/p-ceefa54a.system.entry.js +0 -1
- package/dist/mint-components/p-d08b59df.entry.js +0 -13
- package/dist/mint-components/p-d21ccfa1.entry.js +0 -1
- package/dist/mint-components/p-d307abaa.entry.js +0 -1
- package/dist/mint-components/p-d5c94703.entry.js +0 -1
- package/dist/mint-components/p-d5d32d0d.system.js +0 -8
- package/dist/mint-components/p-d8876d3f.js +0 -1
- package/dist/mint-components/p-dc37fe51.system.js +0 -1
- package/dist/mint-components/p-df2b4e11.system.entry.js +0 -1
- package/dist/mint-components/p-e0fa9595.system.js +0 -1
- package/dist/mint-components/p-e8d07dfa.system.entry.js +0 -1
- package/dist/mint-components/p-f3eaabf8.system.entry.js +0 -1
- package/dist/mint-components/p-f54b436e.entry.js +0 -1
- package/dist/mint-components/p-f5e601b0.system.entry.js +0 -1
- package/dist/mint-components/p-f8863064.system.entry.js +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { d as c, s, c as createCommonjsModule, a as commonjsGlobal, e as getDefaultExportFromCjs, u as useReducer, h, f as useEffect, i as useState, j as useRef, k as useMemo } from './stencil-hooks.module-eefa3570.js';
|
|
2
2
|
import { u as useCallback } from './use-callback-684c8bb7.js';
|
|
3
|
-
import { _ as _extends } from './extends-c31f1eff.js';
|
|
4
3
|
|
|
5
4
|
function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
|
|
6
5
|
|
|
@@ -200,6 +199,8 @@ function previouslyCompared(a, b) {
|
|
|
200
199
|
}
|
|
201
200
|
|
|
202
201
|
var __defProp = Object.defineProperty;
|
|
202
|
+
var __defProps = Object.defineProperties;
|
|
203
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
203
204
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
204
205
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
205
206
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -215,12 +216,18 @@ var __spreadValues = (a, b) => {
|
|
|
215
216
|
}
|
|
216
217
|
return a;
|
|
217
218
|
};
|
|
219
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
218
220
|
|
|
219
221
|
// src/types.ts
|
|
220
222
|
var USER_CONTEXT_NAME = "sq:user-identity";
|
|
221
223
|
var LOCALE_CONTEXT_NAME = "sq:locale";
|
|
222
224
|
var PROGRAM_CONTEXT_NAME = "sq:program-id";
|
|
223
225
|
var DEFAULT_MEDIUM = "EMBED";
|
|
226
|
+
|
|
227
|
+
// src/environment.ts
|
|
228
|
+
function getEnvironment() {
|
|
229
|
+
return getEnvironmentSDK().type;
|
|
230
|
+
}
|
|
224
231
|
function getEnvironmentSDK() {
|
|
225
232
|
var _a, _b;
|
|
226
233
|
if (window["SquatchAndroid"]) {
|
|
@@ -300,20 +307,202 @@ function getEngagementMedium() {
|
|
|
300
307
|
}
|
|
301
308
|
|
|
302
309
|
// src/debug.ts
|
|
303
|
-
var debugEnabled =
|
|
310
|
+
var debugEnabled = (() => {
|
|
311
|
+
var _a;
|
|
312
|
+
try {
|
|
313
|
+
return (_a = window == null ? void 0 : window.localStorage) == null ? void 0 : _a.getItem("debug");
|
|
314
|
+
} catch (e) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
})();
|
|
304
318
|
function debug(ns, ...args) {
|
|
305
319
|
if (debugEnabled) {
|
|
306
320
|
console.debug(`sq:environment:${ns}`, ...args);
|
|
307
321
|
}
|
|
308
322
|
}
|
|
309
323
|
|
|
310
|
-
// src/
|
|
311
|
-
var debug2 = (...args) => debug(
|
|
324
|
+
// src/history.ts
|
|
325
|
+
var debug2 = (...args) => debug("history", ...args);
|
|
326
|
+
function normalizeTo(to) {
|
|
327
|
+
if (typeof to === "string")
|
|
328
|
+
return to;
|
|
329
|
+
const url = new URL(to.pathname, window.origin);
|
|
330
|
+
if (to.search)
|
|
331
|
+
url.search = to.search;
|
|
332
|
+
if (to.hash)
|
|
333
|
+
url.hash = to.hash;
|
|
334
|
+
return url;
|
|
335
|
+
}
|
|
336
|
+
var BrowserHistory = class {
|
|
337
|
+
constructor() {
|
|
338
|
+
this.listeners = /* @__PURE__ */ new Set();
|
|
339
|
+
window.addEventListener("popstate", this.notify.bind(this));
|
|
340
|
+
window.addEventListener("pushState", this.notify.bind(this));
|
|
341
|
+
window.addEventListener("replaceState", this.notify.bind(this));
|
|
342
|
+
}
|
|
343
|
+
listen(fn) {
|
|
344
|
+
this.listeners.add(fn);
|
|
345
|
+
return () => {
|
|
346
|
+
this.listeners.delete(fn);
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
notify() {
|
|
350
|
+
debug2("notifying listeners of route change", this.location);
|
|
351
|
+
if (this.listeners) {
|
|
352
|
+
this.listeners.forEach((listener) => listener());
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
get location() {
|
|
356
|
+
return {
|
|
357
|
+
pathname: window.location.pathname,
|
|
358
|
+
search: window.location.search,
|
|
359
|
+
hash: window.location.hash,
|
|
360
|
+
state: window.history.state
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
back() {
|
|
364
|
+
this.go(-1);
|
|
365
|
+
}
|
|
366
|
+
forward() {
|
|
367
|
+
this.go(1);
|
|
368
|
+
}
|
|
369
|
+
go(delta) {
|
|
370
|
+
window.history.go(delta);
|
|
371
|
+
}
|
|
372
|
+
push(to, state) {
|
|
373
|
+
const url = normalizeTo(to);
|
|
374
|
+
window.history.pushState(state, "", url);
|
|
375
|
+
}
|
|
376
|
+
replace(to, state) {
|
|
377
|
+
const url = normalizeTo(to);
|
|
378
|
+
window.history.replaceState(state, "", url);
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
var MemoryHistory = class {
|
|
382
|
+
constructor() {
|
|
383
|
+
this.history = [{ pathname: "/", search: "", hash: "" }];
|
|
384
|
+
this.index = 0;
|
|
385
|
+
this.listeners = /* @__PURE__ */ new Set();
|
|
386
|
+
}
|
|
387
|
+
listen(fn) {
|
|
388
|
+
this.listeners.add(fn);
|
|
389
|
+
return () => {
|
|
390
|
+
this.listeners.delete(fn);
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
current() {
|
|
394
|
+
return this.history[this.index];
|
|
395
|
+
}
|
|
396
|
+
get state() {
|
|
397
|
+
return this.current().state;
|
|
398
|
+
}
|
|
399
|
+
notify() {
|
|
400
|
+
debug2("notifying listeners of route change", this.location);
|
|
401
|
+
this.listeners.forEach((listener) => listener());
|
|
402
|
+
}
|
|
403
|
+
get location() {
|
|
404
|
+
return this.history[this.index];
|
|
405
|
+
}
|
|
406
|
+
back() {
|
|
407
|
+
this.go(-1);
|
|
408
|
+
}
|
|
409
|
+
forward() {
|
|
410
|
+
this.go(1);
|
|
411
|
+
}
|
|
412
|
+
go(delta) {
|
|
413
|
+
this.index += delta;
|
|
414
|
+
if (this.index < 0)
|
|
415
|
+
this.index = 0;
|
|
416
|
+
if (this.index >= this.history.length)
|
|
417
|
+
this.index = this.history.length - 1;
|
|
418
|
+
this.notify();
|
|
419
|
+
}
|
|
420
|
+
push(to, state) {
|
|
421
|
+
let entry;
|
|
422
|
+
if (typeof to === "string") {
|
|
423
|
+
entry = {
|
|
424
|
+
pathname: to,
|
|
425
|
+
search: this.history[this.index].search,
|
|
426
|
+
hash: this.history[this.index].hash,
|
|
427
|
+
state
|
|
428
|
+
};
|
|
429
|
+
} else {
|
|
430
|
+
entry = __spreadProps(__spreadValues({}, to), {
|
|
431
|
+
state
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
this.index++;
|
|
435
|
+
this.history.splice(this.index, this.history.length, entry);
|
|
436
|
+
this.notify();
|
|
437
|
+
}
|
|
438
|
+
replace(to, state) {
|
|
439
|
+
if (typeof to === "string") {
|
|
440
|
+
this.history[this.index] = {
|
|
441
|
+
pathname: to,
|
|
442
|
+
search: this.history[this.index].search,
|
|
443
|
+
hash: this.history[this.index].hash,
|
|
444
|
+
state
|
|
445
|
+
};
|
|
446
|
+
} else {
|
|
447
|
+
this.history[this.index] = __spreadProps(__spreadValues({}, to), {
|
|
448
|
+
state
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
this.notify();
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
function createHistory() {
|
|
455
|
+
if (getEnvironment() === "SquatchPortal") {
|
|
456
|
+
let wrapHistoryFunction2 = function(functionName) {
|
|
457
|
+
const orig = window.history[functionName];
|
|
458
|
+
return function(...args) {
|
|
459
|
+
const returnValue = orig.apply(window.history, args);
|
|
460
|
+
const event = new Event(functionName);
|
|
461
|
+
window.dispatchEvent(event);
|
|
462
|
+
return returnValue;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
window.history.pushState = wrapHistoryFunction2("pushState");
|
|
466
|
+
window.history.replaceState = wrapHistoryFunction2("replaceState");
|
|
467
|
+
return new BrowserHistory();
|
|
468
|
+
} else {
|
|
469
|
+
return new MemoryHistory();
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
function lazyHistory() {
|
|
473
|
+
window.squatchHistory = window.squatchHistory || createHistory();
|
|
474
|
+
return window.squatchHistory;
|
|
475
|
+
}
|
|
476
|
+
var LazyHistory = class {
|
|
477
|
+
get location() {
|
|
478
|
+
return lazyHistory().location;
|
|
479
|
+
}
|
|
480
|
+
listen(fn) {
|
|
481
|
+
return lazyHistory().listen(fn);
|
|
482
|
+
}
|
|
483
|
+
back() {
|
|
484
|
+
lazyHistory().back();
|
|
485
|
+
}
|
|
486
|
+
forward() {
|
|
487
|
+
lazyHistory().forward();
|
|
488
|
+
}
|
|
489
|
+
go(delta) {
|
|
490
|
+
lazyHistory().go(delta);
|
|
491
|
+
}
|
|
492
|
+
push(to, state) {
|
|
493
|
+
lazyHistory().push(to, state);
|
|
494
|
+
}
|
|
495
|
+
replace(to, state) {
|
|
496
|
+
lazyHistory().replace(to, state);
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
var history_default = new LazyHistory();
|
|
500
|
+
var debug3 = (...args) => debug(LOCALE_CONTEXT_NAME, ...args);
|
|
312
501
|
function lazilyStartLocaleContext() {
|
|
313
502
|
var _a;
|
|
314
503
|
let globalProvider = window.squatchLocale;
|
|
315
504
|
if (!globalProvider) {
|
|
316
|
-
|
|
505
|
+
debug3("Creating locale context provider");
|
|
317
506
|
globalProvider = new c({
|
|
318
507
|
element: document.documentElement,
|
|
319
508
|
initialState: ((_a = window.widgetIdent) == null ? void 0 : _a.locale) || navigator.language.replace("-", "_"),
|
|
@@ -325,7 +514,7 @@ function lazilyStartLocaleContext() {
|
|
|
325
514
|
}
|
|
326
515
|
|
|
327
516
|
// src/fetchLocale.ts
|
|
328
|
-
var
|
|
517
|
+
var debug4 = (...args) => debug(LOCALE_CONTEXT_NAME, ...args);
|
|
329
518
|
var GET_LOCALE = `
|
|
330
519
|
query {
|
|
331
520
|
viewer {
|
|
@@ -337,7 +526,7 @@ var GET_LOCALE = `
|
|
|
337
526
|
`;
|
|
338
527
|
async function fetchLocale() {
|
|
339
528
|
var _a;
|
|
340
|
-
|
|
529
|
+
debug4("Fetching locale from GraphQL for current user");
|
|
341
530
|
try {
|
|
342
531
|
const result = await fetch(`${getAppDomain()}/api/v1/${getTenantAlias()}/graphql`, {
|
|
343
532
|
method: "POST",
|
|
@@ -358,13 +547,13 @@ async function fetchLocale() {
|
|
|
358
547
|
}
|
|
359
548
|
return json.data.viewer.locale || void 0;
|
|
360
549
|
} catch (e) {
|
|
361
|
-
|
|
550
|
+
debug4(`Failed to fetch locale for current user`, e.message);
|
|
362
551
|
return void 0;
|
|
363
552
|
}
|
|
364
553
|
}
|
|
365
554
|
|
|
366
555
|
// src/listeners.ts
|
|
367
|
-
var
|
|
556
|
+
var debug5 = (...args) => debug(LOCALE_CONTEXT_NAME, ...args);
|
|
368
557
|
var userContextListenerDiv = (() => {
|
|
369
558
|
const id = "__environment_context_listener";
|
|
370
559
|
let div = document.getElementById(id);
|
|
@@ -384,30 +573,30 @@ var userContextListenerForLocale = new s({
|
|
|
384
573
|
const defaultLocale = ((_a = window.widgetIdent) == null ? void 0 : _a.locale) || navigator.language.replace("-", "_");
|
|
385
574
|
let newLocale;
|
|
386
575
|
if (next) {
|
|
387
|
-
|
|
576
|
+
debug5("User context changed, refetching locale");
|
|
388
577
|
const locale = await fetchLocale();
|
|
389
578
|
if (localeProvider.context !== locale) {
|
|
390
|
-
|
|
579
|
+
debug5(`New value fetched from GraphQL [${locale}]`);
|
|
391
580
|
newLocale = locale || defaultLocale;
|
|
392
581
|
}
|
|
393
582
|
} else {
|
|
394
583
|
newLocale = defaultLocale;
|
|
395
584
|
}
|
|
396
|
-
|
|
585
|
+
debug5(`Setting locale context to [${newLocale}]`);
|
|
397
586
|
localeProvider.context = newLocale;
|
|
398
587
|
}
|
|
399
588
|
});
|
|
400
589
|
function startUserContextListenerForLocale() {
|
|
401
|
-
|
|
590
|
+
debug5("Starting user context listener for locale updates");
|
|
402
591
|
userContextListenerForLocale.start();
|
|
403
592
|
}
|
|
404
593
|
|
|
405
594
|
// src/contexts/UserIdentityContext.ts
|
|
406
|
-
var
|
|
595
|
+
var debug6 = (...args) => debug(USER_CONTEXT_NAME, ...args);
|
|
407
596
|
function lazilyStartUserContext() {
|
|
408
597
|
let globalProvider = window.squatchUserIdentity;
|
|
409
598
|
if (!globalProvider) {
|
|
410
|
-
|
|
599
|
+
debug6("Creating user context provider");
|
|
411
600
|
globalProvider = new c({
|
|
412
601
|
element: document.documentElement,
|
|
413
602
|
initialState: _getInitialValue(),
|
|
@@ -493,7 +682,7 @@ function _getInitialValue() {
|
|
|
493
682
|
function setUserIdentity(identity) {
|
|
494
683
|
const globalProvider = lazilyStartUserContext();
|
|
495
684
|
if (!equal(globalProvider.context, identity)) {
|
|
496
|
-
|
|
685
|
+
debug6(`Setting user context value [${JSON.stringify(identity)}]`);
|
|
497
686
|
globalProvider.context = identity;
|
|
498
687
|
}
|
|
499
688
|
if (identity && getEnvironmentSDK().type === "SquatchPortal") {
|
|
@@ -506,12 +695,12 @@ function getUserIdentity() {
|
|
|
506
695
|
var _a;
|
|
507
696
|
return (_a = window.squatchUserIdentity) == null ? void 0 : _a.context;
|
|
508
697
|
}
|
|
509
|
-
var
|
|
698
|
+
var debug7 = (...args) => debug(PROGRAM_CONTEXT_NAME, ...args);
|
|
510
699
|
function lazilyStartProgramContext() {
|
|
511
700
|
var _a;
|
|
512
701
|
let globalProvider = window.squatchProgramId;
|
|
513
702
|
if (!globalProvider) {
|
|
514
|
-
|
|
703
|
+
debug7("Creating program context provider");
|
|
515
704
|
globalProvider = new c({
|
|
516
705
|
element: document.documentElement,
|
|
517
706
|
initialState: ((_a = window.widgetIdent) == null ? void 0 : _a.programId) || void 0,
|
|
@@ -524,7 +713,7 @@ function lazilyStartProgramContext() {
|
|
|
524
713
|
function setProgramId(programId) {
|
|
525
714
|
const globalProvider = lazilyStartProgramContext();
|
|
526
715
|
if (globalProvider.context !== programId) {
|
|
527
|
-
|
|
716
|
+
debug7(`Setting program context value [${programId}]`);
|
|
528
717
|
globalProvider.context = programId;
|
|
529
718
|
}
|
|
530
719
|
}
|
|
@@ -7987,505 +8176,8 @@ exports.default = combinedQuery;
|
|
|
7987
8176
|
|
|
7988
8177
|
});
|
|
7989
8178
|
|
|
7990
|
-
const
|
|
7991
|
-
|
|
7992
|
-
/**
|
|
7993
|
-
* Actions represent the type of change to a location value.
|
|
7994
|
-
*
|
|
7995
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action
|
|
7996
|
-
*/
|
|
7997
|
-
var Action$1;
|
|
7998
|
-
|
|
7999
|
-
(function (Action) {
|
|
8000
|
-
/**
|
|
8001
|
-
* A POP indicates a change to an arbitrary index in the history stack, such
|
|
8002
|
-
* as a back or forward navigation. It does not describe the direction of the
|
|
8003
|
-
* navigation, only that the current index changed.
|
|
8004
|
-
*
|
|
8005
|
-
* Note: This is the default action for newly created history objects.
|
|
8006
|
-
*/
|
|
8007
|
-
Action["Pop"] = "POP";
|
|
8008
|
-
/**
|
|
8009
|
-
* A PUSH indicates a new entry being added to the history stack, such as when
|
|
8010
|
-
* a link is clicked and a new page loads. When this happens, all subsequent
|
|
8011
|
-
* entries in the stack are lost.
|
|
8012
|
-
*/
|
|
8013
|
-
|
|
8014
|
-
Action["Push"] = "PUSH";
|
|
8015
|
-
/**
|
|
8016
|
-
* A REPLACE indicates the entry at the current index in the history stack
|
|
8017
|
-
* being replaced by a new one.
|
|
8018
|
-
*/
|
|
8019
|
-
|
|
8020
|
-
Action["Replace"] = "REPLACE";
|
|
8021
|
-
})(Action$1 || (Action$1 = {}));
|
|
8022
|
-
|
|
8023
|
-
var readOnly = function (obj) {
|
|
8024
|
-
return obj;
|
|
8025
|
-
};
|
|
8026
|
-
|
|
8027
|
-
var BeforeUnloadEventType = 'beforeunload';
|
|
8028
|
-
var PopStateEventType = 'popstate';
|
|
8029
|
-
/**
|
|
8030
|
-
* Browser history stores the location in regular URLs. This is the standard for
|
|
8031
|
-
* most web apps, but it requires some configuration on the server to ensure you
|
|
8032
|
-
* serve the same app at multiple URLs.
|
|
8033
|
-
*
|
|
8034
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory
|
|
8035
|
-
*/
|
|
8036
|
-
|
|
8037
|
-
function createBrowserHistory(options) {
|
|
8038
|
-
if (options === void 0) {
|
|
8039
|
-
options = {};
|
|
8040
|
-
}
|
|
8041
|
-
|
|
8042
|
-
var _options = options,
|
|
8043
|
-
_options$window = _options.window,
|
|
8044
|
-
window = _options$window === void 0 ? document.defaultView : _options$window;
|
|
8045
|
-
var globalHistory = window.history;
|
|
8046
|
-
|
|
8047
|
-
function getIndexAndLocation() {
|
|
8048
|
-
var _window$location = window.location,
|
|
8049
|
-
pathname = _window$location.pathname,
|
|
8050
|
-
search = _window$location.search,
|
|
8051
|
-
hash = _window$location.hash;
|
|
8052
|
-
var state = globalHistory.state || {};
|
|
8053
|
-
return [state.idx, readOnly({
|
|
8054
|
-
pathname: pathname,
|
|
8055
|
-
search: search,
|
|
8056
|
-
hash: hash,
|
|
8057
|
-
state: state.usr || null,
|
|
8058
|
-
key: state.key || 'default'
|
|
8059
|
-
})];
|
|
8060
|
-
}
|
|
8061
|
-
|
|
8062
|
-
var blockedPopTx = null;
|
|
8063
|
-
|
|
8064
|
-
function handlePop() {
|
|
8065
|
-
if (blockedPopTx) {
|
|
8066
|
-
blockers.call(blockedPopTx);
|
|
8067
|
-
blockedPopTx = null;
|
|
8068
|
-
} else {
|
|
8069
|
-
var nextAction = Action$1.Pop;
|
|
8070
|
-
|
|
8071
|
-
var _getIndexAndLocation = getIndexAndLocation(),
|
|
8072
|
-
nextIndex = _getIndexAndLocation[0],
|
|
8073
|
-
nextLocation = _getIndexAndLocation[1];
|
|
8074
|
-
|
|
8075
|
-
if (blockers.length) {
|
|
8076
|
-
if (nextIndex != null) {
|
|
8077
|
-
var delta = index - nextIndex;
|
|
8078
|
-
|
|
8079
|
-
if (delta) {
|
|
8080
|
-
// Revert the POP
|
|
8081
|
-
blockedPopTx = {
|
|
8082
|
-
action: nextAction,
|
|
8083
|
-
location: nextLocation,
|
|
8084
|
-
retry: function retry() {
|
|
8085
|
-
go(delta * -1);
|
|
8086
|
-
}
|
|
8087
|
-
};
|
|
8088
|
-
go(delta);
|
|
8089
|
-
}
|
|
8090
|
-
}
|
|
8091
|
-
} else {
|
|
8092
|
-
applyTx(nextAction);
|
|
8093
|
-
}
|
|
8094
|
-
}
|
|
8095
|
-
}
|
|
8096
|
-
|
|
8097
|
-
window.addEventListener(PopStateEventType, handlePop);
|
|
8098
|
-
var action = Action$1.Pop;
|
|
8099
|
-
|
|
8100
|
-
var _getIndexAndLocation2 = getIndexAndLocation(),
|
|
8101
|
-
index = _getIndexAndLocation2[0],
|
|
8102
|
-
location = _getIndexAndLocation2[1];
|
|
8103
|
-
|
|
8104
|
-
var listeners = createEvents();
|
|
8105
|
-
var blockers = createEvents();
|
|
8106
|
-
|
|
8107
|
-
if (index == null) {
|
|
8108
|
-
index = 0;
|
|
8109
|
-
globalHistory.replaceState(_extends({}, globalHistory.state, {
|
|
8110
|
-
idx: index
|
|
8111
|
-
}), '');
|
|
8112
|
-
}
|
|
8113
|
-
|
|
8114
|
-
function createHref(to) {
|
|
8115
|
-
return typeof to === 'string' ? to : createPath(to);
|
|
8116
|
-
} // state defaults to `null` because `window.history.state` does
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
function getNextLocation(to, state) {
|
|
8120
|
-
if (state === void 0) {
|
|
8121
|
-
state = null;
|
|
8122
|
-
}
|
|
8123
|
-
|
|
8124
|
-
return readOnly(_extends({
|
|
8125
|
-
pathname: location.pathname,
|
|
8126
|
-
hash: '',
|
|
8127
|
-
search: ''
|
|
8128
|
-
}, typeof to === 'string' ? parsePath(to) : to, {
|
|
8129
|
-
state: state,
|
|
8130
|
-
key: createKey()
|
|
8131
|
-
}));
|
|
8132
|
-
}
|
|
8133
|
-
|
|
8134
|
-
function getHistoryStateAndUrl(nextLocation, index) {
|
|
8135
|
-
return [{
|
|
8136
|
-
usr: nextLocation.state,
|
|
8137
|
-
key: nextLocation.key,
|
|
8138
|
-
idx: index
|
|
8139
|
-
}, createHref(nextLocation)];
|
|
8140
|
-
}
|
|
8141
|
-
|
|
8142
|
-
function allowTx(action, location, retry) {
|
|
8143
|
-
return !blockers.length || (blockers.call({
|
|
8144
|
-
action: action,
|
|
8145
|
-
location: location,
|
|
8146
|
-
retry: retry
|
|
8147
|
-
}), false);
|
|
8148
|
-
}
|
|
8149
|
-
|
|
8150
|
-
function applyTx(nextAction) {
|
|
8151
|
-
action = nextAction;
|
|
8152
|
-
|
|
8153
|
-
var _getIndexAndLocation3 = getIndexAndLocation();
|
|
8154
|
-
|
|
8155
|
-
index = _getIndexAndLocation3[0];
|
|
8156
|
-
location = _getIndexAndLocation3[1];
|
|
8157
|
-
listeners.call({
|
|
8158
|
-
action: action,
|
|
8159
|
-
location: location
|
|
8160
|
-
});
|
|
8161
|
-
}
|
|
8162
|
-
|
|
8163
|
-
function push(to, state) {
|
|
8164
|
-
var nextAction = Action$1.Push;
|
|
8165
|
-
var nextLocation = getNextLocation(to, state);
|
|
8166
|
-
|
|
8167
|
-
function retry() {
|
|
8168
|
-
push(to, state);
|
|
8169
|
-
}
|
|
8170
|
-
|
|
8171
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8172
|
-
var _getHistoryStateAndUr = getHistoryStateAndUrl(nextLocation, index + 1),
|
|
8173
|
-
historyState = _getHistoryStateAndUr[0],
|
|
8174
|
-
url = _getHistoryStateAndUr[1]; // TODO: Support forced reloading
|
|
8175
|
-
// try...catch because iOS limits us to 100 pushState calls :/
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
try {
|
|
8179
|
-
globalHistory.pushState(historyState, '', url);
|
|
8180
|
-
} catch (error) {
|
|
8181
|
-
// They are going to lose state here, but there is no real
|
|
8182
|
-
// way to warn them about it since the page will refresh...
|
|
8183
|
-
window.location.assign(url);
|
|
8184
|
-
}
|
|
8185
|
-
|
|
8186
|
-
applyTx(nextAction);
|
|
8187
|
-
}
|
|
8188
|
-
}
|
|
8189
|
-
|
|
8190
|
-
function replace(to, state) {
|
|
8191
|
-
var nextAction = Action$1.Replace;
|
|
8192
|
-
var nextLocation = getNextLocation(to, state);
|
|
8193
|
-
|
|
8194
|
-
function retry() {
|
|
8195
|
-
replace(to, state);
|
|
8196
|
-
}
|
|
8197
|
-
|
|
8198
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8199
|
-
var _getHistoryStateAndUr2 = getHistoryStateAndUrl(nextLocation, index),
|
|
8200
|
-
historyState = _getHistoryStateAndUr2[0],
|
|
8201
|
-
url = _getHistoryStateAndUr2[1]; // TODO: Support forced reloading
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
globalHistory.replaceState(historyState, '', url);
|
|
8205
|
-
applyTx(nextAction);
|
|
8206
|
-
}
|
|
8207
|
-
}
|
|
8208
|
-
|
|
8209
|
-
function go(delta) {
|
|
8210
|
-
globalHistory.go(delta);
|
|
8211
|
-
}
|
|
8212
|
-
|
|
8213
|
-
var history = {
|
|
8214
|
-
get action() {
|
|
8215
|
-
return action;
|
|
8216
|
-
},
|
|
8217
|
-
|
|
8218
|
-
get location() {
|
|
8219
|
-
return location;
|
|
8220
|
-
},
|
|
8221
|
-
|
|
8222
|
-
createHref: createHref,
|
|
8223
|
-
push: push,
|
|
8224
|
-
replace: replace,
|
|
8225
|
-
go: go,
|
|
8226
|
-
back: function back() {
|
|
8227
|
-
go(-1);
|
|
8228
|
-
},
|
|
8229
|
-
forward: function forward() {
|
|
8230
|
-
go(1);
|
|
8231
|
-
},
|
|
8232
|
-
listen: function listen(listener) {
|
|
8233
|
-
return listeners.push(listener);
|
|
8234
|
-
},
|
|
8235
|
-
block: function block(blocker) {
|
|
8236
|
-
var unblock = blockers.push(blocker);
|
|
8237
|
-
|
|
8238
|
-
if (blockers.length === 1) {
|
|
8239
|
-
window.addEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
8240
|
-
}
|
|
8241
|
-
|
|
8242
|
-
return function () {
|
|
8243
|
-
unblock(); // Remove the beforeunload listener so the document may
|
|
8244
|
-
// still be salvageable in the pagehide event.
|
|
8245
|
-
// See https://html.spec.whatwg.org/#unloading-documents
|
|
8246
|
-
|
|
8247
|
-
if (!blockers.length) {
|
|
8248
|
-
window.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
8249
|
-
}
|
|
8250
|
-
};
|
|
8251
|
-
}
|
|
8252
|
-
};
|
|
8253
|
-
return history;
|
|
8254
|
-
}
|
|
8255
|
-
/**
|
|
8256
|
-
* Memory history stores the current location in memory. It is designed for use
|
|
8257
|
-
* in stateful non-browser environments like tests and React Native.
|
|
8258
|
-
*
|
|
8259
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#creatememoryhistory
|
|
8260
|
-
*/
|
|
8261
|
-
|
|
8262
|
-
function createMemoryHistory(options) {
|
|
8263
|
-
if (options === void 0) {
|
|
8264
|
-
options = {};
|
|
8265
|
-
}
|
|
8266
|
-
|
|
8267
|
-
var _options3 = options,
|
|
8268
|
-
_options3$initialEntr = _options3.initialEntries,
|
|
8269
|
-
initialEntries = _options3$initialEntr === void 0 ? ['/'] : _options3$initialEntr,
|
|
8270
|
-
initialIndex = _options3.initialIndex;
|
|
8271
|
-
var entries = initialEntries.map(function (entry) {
|
|
8272
|
-
var location = readOnly(_extends({
|
|
8273
|
-
pathname: '/',
|
|
8274
|
-
search: '',
|
|
8275
|
-
hash: '',
|
|
8276
|
-
state: null,
|
|
8277
|
-
key: createKey()
|
|
8278
|
-
}, typeof entry === 'string' ? parsePath(entry) : entry));
|
|
8279
|
-
return location;
|
|
8280
|
-
});
|
|
8281
|
-
var index = clamp(initialIndex == null ? entries.length - 1 : initialIndex, 0, entries.length - 1);
|
|
8282
|
-
var action = Action$1.Pop;
|
|
8283
|
-
var location = entries[index];
|
|
8284
|
-
var listeners = createEvents();
|
|
8285
|
-
var blockers = createEvents();
|
|
8286
|
-
|
|
8287
|
-
function createHref(to) {
|
|
8288
|
-
return typeof to === 'string' ? to : createPath(to);
|
|
8289
|
-
}
|
|
8290
|
-
|
|
8291
|
-
function getNextLocation(to, state) {
|
|
8292
|
-
if (state === void 0) {
|
|
8293
|
-
state = null;
|
|
8294
|
-
}
|
|
8295
|
-
|
|
8296
|
-
return readOnly(_extends({
|
|
8297
|
-
pathname: location.pathname,
|
|
8298
|
-
search: '',
|
|
8299
|
-
hash: ''
|
|
8300
|
-
}, typeof to === 'string' ? parsePath(to) : to, {
|
|
8301
|
-
state: state,
|
|
8302
|
-
key: createKey()
|
|
8303
|
-
}));
|
|
8304
|
-
}
|
|
8305
|
-
|
|
8306
|
-
function allowTx(action, location, retry) {
|
|
8307
|
-
return !blockers.length || (blockers.call({
|
|
8308
|
-
action: action,
|
|
8309
|
-
location: location,
|
|
8310
|
-
retry: retry
|
|
8311
|
-
}), false);
|
|
8312
|
-
}
|
|
8313
|
-
|
|
8314
|
-
function applyTx(nextAction, nextLocation) {
|
|
8315
|
-
action = nextAction;
|
|
8316
|
-
location = nextLocation;
|
|
8317
|
-
listeners.call({
|
|
8318
|
-
action: action,
|
|
8319
|
-
location: location
|
|
8320
|
-
});
|
|
8321
|
-
}
|
|
8322
|
-
|
|
8323
|
-
function push(to, state) {
|
|
8324
|
-
var nextAction = Action$1.Push;
|
|
8325
|
-
var nextLocation = getNextLocation(to, state);
|
|
8326
|
-
|
|
8327
|
-
function retry() {
|
|
8328
|
-
push(to, state);
|
|
8329
|
-
}
|
|
8330
|
-
|
|
8331
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8332
|
-
index += 1;
|
|
8333
|
-
entries.splice(index, entries.length, nextLocation);
|
|
8334
|
-
applyTx(nextAction, nextLocation);
|
|
8335
|
-
}
|
|
8336
|
-
}
|
|
8337
|
-
|
|
8338
|
-
function replace(to, state) {
|
|
8339
|
-
var nextAction = Action$1.Replace;
|
|
8340
|
-
var nextLocation = getNextLocation(to, state);
|
|
8341
|
-
|
|
8342
|
-
function retry() {
|
|
8343
|
-
replace(to, state);
|
|
8344
|
-
}
|
|
8345
|
-
|
|
8346
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8347
|
-
entries[index] = nextLocation;
|
|
8348
|
-
applyTx(nextAction, nextLocation);
|
|
8349
|
-
}
|
|
8350
|
-
}
|
|
8351
|
-
|
|
8352
|
-
function go(delta) {
|
|
8353
|
-
var nextIndex = clamp(index + delta, 0, entries.length - 1);
|
|
8354
|
-
var nextAction = Action$1.Pop;
|
|
8355
|
-
var nextLocation = entries[nextIndex];
|
|
8356
|
-
|
|
8357
|
-
function retry() {
|
|
8358
|
-
go(delta);
|
|
8359
|
-
}
|
|
8360
|
-
|
|
8361
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8362
|
-
index = nextIndex;
|
|
8363
|
-
applyTx(nextAction, nextLocation);
|
|
8364
|
-
}
|
|
8365
|
-
}
|
|
8366
|
-
|
|
8367
|
-
var history = {
|
|
8368
|
-
get index() {
|
|
8369
|
-
return index;
|
|
8370
|
-
},
|
|
8371
|
-
|
|
8372
|
-
get action() {
|
|
8373
|
-
return action;
|
|
8374
|
-
},
|
|
8375
|
-
|
|
8376
|
-
get location() {
|
|
8377
|
-
return location;
|
|
8378
|
-
},
|
|
8379
|
-
|
|
8380
|
-
createHref: createHref,
|
|
8381
|
-
push: push,
|
|
8382
|
-
replace: replace,
|
|
8383
|
-
go: go,
|
|
8384
|
-
back: function back() {
|
|
8385
|
-
go(-1);
|
|
8386
|
-
},
|
|
8387
|
-
forward: function forward() {
|
|
8388
|
-
go(1);
|
|
8389
|
-
},
|
|
8390
|
-
listen: function listen(listener) {
|
|
8391
|
-
return listeners.push(listener);
|
|
8392
|
-
},
|
|
8393
|
-
block: function block(blocker) {
|
|
8394
|
-
return blockers.push(blocker);
|
|
8395
|
-
}
|
|
8396
|
-
};
|
|
8397
|
-
return history;
|
|
8398
|
-
} ////////////////////////////////////////////////////////////////////////////////
|
|
8399
|
-
// UTILS
|
|
8400
|
-
////////////////////////////////////////////////////////////////////////////////
|
|
8401
|
-
|
|
8402
|
-
function clamp(n, lowerBound, upperBound) {
|
|
8403
|
-
return Math.min(Math.max(n, lowerBound), upperBound);
|
|
8404
|
-
}
|
|
8405
|
-
|
|
8406
|
-
function promptBeforeUnload(event) {
|
|
8407
|
-
// Cancel the event.
|
|
8408
|
-
event.preventDefault(); // Chrome (and legacy IE) requires returnValue to be set.
|
|
8409
|
-
|
|
8410
|
-
event.returnValue = '';
|
|
8411
|
-
}
|
|
8412
|
-
|
|
8413
|
-
function createEvents() {
|
|
8414
|
-
var handlers = [];
|
|
8415
|
-
return {
|
|
8416
|
-
get length() {
|
|
8417
|
-
return handlers.length;
|
|
8418
|
-
},
|
|
8419
|
-
|
|
8420
|
-
push: function push(fn) {
|
|
8421
|
-
handlers.push(fn);
|
|
8422
|
-
return function () {
|
|
8423
|
-
handlers = handlers.filter(function (handler) {
|
|
8424
|
-
return handler !== fn;
|
|
8425
|
-
});
|
|
8426
|
-
};
|
|
8427
|
-
},
|
|
8428
|
-
call: function call(arg) {
|
|
8429
|
-
handlers.forEach(function (fn) {
|
|
8430
|
-
return fn && fn(arg);
|
|
8431
|
-
});
|
|
8432
|
-
}
|
|
8433
|
-
};
|
|
8434
|
-
}
|
|
8435
|
-
|
|
8436
|
-
function createKey() {
|
|
8437
|
-
return Math.random().toString(36).substr(2, 8);
|
|
8438
|
-
}
|
|
8439
|
-
/**
|
|
8440
|
-
* Creates a string URL path from the given pathname, search, and hash components.
|
|
8441
|
-
*
|
|
8442
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createpath
|
|
8443
|
-
*/
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
function createPath(_ref) {
|
|
8447
|
-
var _ref$pathname = _ref.pathname,
|
|
8448
|
-
pathname = _ref$pathname === void 0 ? '/' : _ref$pathname,
|
|
8449
|
-
_ref$search = _ref.search,
|
|
8450
|
-
search = _ref$search === void 0 ? '' : _ref$search,
|
|
8451
|
-
_ref$hash = _ref.hash,
|
|
8452
|
-
hash = _ref$hash === void 0 ? '' : _ref$hash;
|
|
8453
|
-
if (search && search !== '?') pathname += search.charAt(0) === '?' ? search : '?' + search;
|
|
8454
|
-
if (hash && hash !== '#') pathname += hash.charAt(0) === '#' ? hash : '#' + hash;
|
|
8455
|
-
return pathname;
|
|
8456
|
-
}
|
|
8457
|
-
/**
|
|
8458
|
-
* Parses a string URL path into its separate pathname, search, and hash components.
|
|
8459
|
-
*
|
|
8460
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath
|
|
8461
|
-
*/
|
|
8462
|
-
|
|
8463
|
-
function parsePath(path) {
|
|
8464
|
-
var parsedPath = {};
|
|
8465
|
-
|
|
8466
|
-
if (path) {
|
|
8467
|
-
var hashIndex = path.indexOf('#');
|
|
8468
|
-
|
|
8469
|
-
if (hashIndex >= 0) {
|
|
8470
|
-
parsedPath.hash = path.substr(hashIndex);
|
|
8471
|
-
path = path.substr(0, hashIndex);
|
|
8472
|
-
}
|
|
8473
|
-
|
|
8474
|
-
var searchIndex = path.indexOf('?');
|
|
8475
|
-
|
|
8476
|
-
if (searchIndex >= 0) {
|
|
8477
|
-
parsedPath.search = path.substr(searchIndex);
|
|
8478
|
-
path = path.substr(0, searchIndex);
|
|
8479
|
-
}
|
|
8480
|
-
|
|
8481
|
-
if (path) {
|
|
8482
|
-
parsedPath.pathname = path;
|
|
8483
|
-
}
|
|
8484
|
-
}
|
|
8485
|
-
|
|
8486
|
-
return parsedPath;
|
|
8487
|
-
}
|
|
8179
|
+
const j = /*@__PURE__*/getDefaultExportFromCjs(dist$1);
|
|
8488
8180
|
|
|
8489
|
-
var V={current:void 0};function x(){if(void 0===V.current)throw new Error("no implementation of useHost provided");return V.current()}function O(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");V.current=e;}function H(){lazilyStartLocaleContext();var r=x();return h(r,LOCALE_CONTEXT_NAME)}function W(){lazilyStartProgramContext();var e=x();return h(e,PROGRAM_CONTEXT_NAME)}function L(){var e;return null==(e=_())?void 0:e.jwt}function _(){lazilyStartUserContext();var e=x(),n=h(e,USER_CONTEXT_NAME),r=userIdentityFromJwt(null==n?void 0:n.jwt);if(!n||r)return n;setUserIdentity(void 0);}var U=getTenantAlias,T=getAppDomain,Q=getEngagementMedium;function z(){return (z=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);}return e}).apply(this,arguments)}function J(e,n){return (J=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function G(e,n){return n||(n=e.slice(0)),e.raw=n,e}function B(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function K(e,n){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return B(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return "Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?B(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (r=e[Symbol.iterator]()).next.bind(r)}var Z=function(){return (Z=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},X=new Map,Y=new Map,ee=!0,ne=!1;function re(e){return e.replace(/[\s,]+/g," ").trim()}function te(e){var n,r,t,a=re(e);if(!X.has(a)){var o=parse(e,{experimentalFragmentVariables:ne});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");X.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var t=e[r];t&&"object"==typeof t&&n.add(t);});});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}((n=o,r=new Set,t=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=re((i=e.loc).source.body.substring(i.start,i.end)),o=Y.get(n);o&&!o.has(a)?ee&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Y.set(n,o=new Set),o.add(a),r.has(a)||(r.add(a),t.push(e));}else t.push(e);var i;}),Z(Z({},n),{definitions:t}))));}return X.get(a)}function ae(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var t=e[0];return n.forEach(function(n,r){t+=n&&"Document"===n.kind?n.loc.source.body:n,t+=e[r+1];}),te(t)}var oe,ie=ae;(oe=ae||(ae={})).gql=ie,oe.resetCaches=function(){X.clear(),Y.clear();},oe.disableFragmentWarnings=function(){ee=!1;},oe.enableExperimentalFragmentVariables=function(){ne=!0;},oe.disableExperimentalFragmentVariables=function(){ne=!1;},ae.default=ae;var se=ae;function ue(e,n){try{var r=e();}catch(e){return n(e)}return r&&r.then?r.then(void 0,n):r}var ce=function(e){var n,r;function t(n,r){var t;(t=e.call(this,n,r)||this).subject=new Subject;var a=new Subject;return t.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,r=me(e),o=r.mergedQuery,i=r.mergedVariables,s=r.mergedQueryAddedEvents,u=K(r.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(ue(function(){return Promise.resolve(t.superRequest(o,i)).then(function(e){pe(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,r=n.data,t=n.errors;if(!r)return {v:ye(s,e)};for(var a,o=Object.keys(r),i=[].concat(s),u=function(){var n=a.value,r=void 0;n.path.find(function(t,a,s){if(o.includes(t)){var u=fe(t),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),r=i.splice(c,1)[0];var l=ve(e.response.data,r);s[a]=de(s[a],u);var d=r.query,f=r.variables,m=z({},e.response,{errors:[n],data:l,path:s}),g=new types.ClientError(m,{query:"string"!=typeof d?print(d):d,variables:f});return he(r,g),!0}return !1});},c=K(t);!(a=c()).done;)u();pe(r,i);}();if("object"==typeof n)return n.v}else ye(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=ue(function(){return Promise.resolve(t.superRequest(e.query,e.variables)).then(function(n){ge(n,e);})},function(n){he(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),t}r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,J(n,r);var a=t.prototype;return a.superRequest=function(n,r){return e.prototype.request.call(this,n,r)},a.request=function(e,n){var r=this;return new Promise(function(t,a){var o={query:e,variables:n,id:le(),resolve:t,reject:a};r.subject.next(o);})},t}(dist.GraphQLClient),le=function(){return nanoid().replace(/[-_]/g,"")},de=function(e,n){return e.replace("_"+n,"")},fe=function(e){var n=e.split("_");return n[n.length-1]},me=function(e){var n=[],r=[],t=e.reduce(function(e,t){var a=t.query,o=t.variables,i=t.id;try{var s="string"==typeof a?parse(a):a,u=s.definitions.find(function(e){return "FragmentDefinition"===e.kind}),c="string"==typeof a?a:print(a),l=/@/.test(c);if(u||l)return r.push(t),e;var d=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(s,[o],d,d),n.push(t),e}catch(n){return r.push(t),e}},k("BatchedQuery")),a=t.document,o=t.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:r}},ve=function(e,n){if(!e)return e;var r=Object.keys(e),t=n.id;return r.reduce(function(n,r){var a;return r.endsWith(t)&&(n=z({},n,((a={})[de(r,t)]=e[r],a))),n},{})},ge=function(e,n){(0, n.resolve)(e);},pe=function(e,n){for(var r,t=K(n);!(r=t()).done;){var a=r.value,o=ve(e,a);a.resolve(o);}},he=function(e,n){(0, e.reject)(n);},ye=function(e,n){for(var r,t=K(e);!(r=t()).done;)(0, r.value.reject)(n);},be="sq:graphql-client",Ce=src(function(e,n,r){return new ce(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(r||"")}})});function we(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function Fe(e,n){var r,t,a,o,i,s,u=(r=L(),t=T(),a=U(),o=Ce(t,a,r),i=x(),null!=(s=h(i,"sq:graphql-client",{attempts:0}))?s:o),c=useReducer(we,n),l=c[1];return [c[0],useCallback(function(n,r){void 0===r&&(r=!1);try{if(!u){var t=new Error("No GraphQL client found");return l({type:"errors",payload:t}),Promise.resolve(t)}return Promise.resolve(function(t,a){try{var o=(r||l({type:"loading"}),Promise.resolve(u.request(e,n)).then(function(e){return l({type:"data",payload:e}),e}));}catch(e){return a(e)}return o&&o.then?o.then(void 0,a):o}(0,function(e){return l({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[u,e,l])]}var Pe,Ee={loading:!1,data:void 0,errors:void 0};function Ie(e){var n=Fe(e,Ee);return [n[1],n[0]]}var Me,De=se(Pe||(Pe=G(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Se(){var e=Ie(De),n=e[0],r=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,r=o(n).user;setUserIdentity({jwt:n,id:r.id,accountId:r.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors}]}var ke,je=se(Me||(Me=G(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function $e(){var e=Ie(je),n=e[0],r=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,r=o(n).user;setUserIdentity({jwt:n,id:r.id,accountId:r.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors}]}var qe,Ae=se(ke||(ke=G(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Re(){var e=Ie(Ae),n=e[0],r=e[1],t=r.loading,a=r.data,o$1=r.errors,i=useState(null),u=i[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(e instanceof Error)return e;var n=e.submitForm.results.find(function(e){return "identity"===e.formHandler.namespace});if(n&&n.result.results.length){var r=n.result.results[0];if(r.success){u(null);var t=r.data.token,a=o(t).user;setUserIdentity({jwt:t,id:a.id,accountId:a.accountId,managedIdentity:{email:r.data.email,emailVerified:r.data.emailVerified,sessionData:r.data.sessionData}});}else u(r.message);}return e})}catch(e){return Promise.reject(e)}},{loading:t,data:a,errors:o$1,formError:i[0]}]}var Ve,xe=se(qe||(qe=G(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Oe(){var e=Ie(xe),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var He,We=se(Ve||(Ve=G(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ne(){var e=Ie(We),n=e[0],r=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,r=o(n).user;setUserIdentity({jwt:n,id:r.id,accountId:r.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors}]}var Le=se(He||(He=G(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function _e(){return Ie(Le)}function Ue(){var e=x();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function Te(e){var n=e.skip,r=void 0!==n&&n,t=e.update,a=e.variables;useEffect(function(){var e=function(e){!r&&t(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=useRef(e),r=useRef(0);return equal(e,n.current)||(n.current=e,r.current+=1),useMemo(function(){return n.current},[r.current])}([a,t,r]));}var Qe,ze={loading:!1,data:void 0,errors:void 0},Je=Symbol();function Ge(e){var n=Fe(e,ze),r=n[0],t=n[1],a=useRef(Je);Te({skip:a.current===Je,update:t,variables:a.current});var o=useCallback(function(e){return a.current=e,t(e)},[t]);return [t,z({},r,{refetch:o})]}var Be,Ke=se(Qe||(Qe=G(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ze(){var e=_(),n=Ge(Ke),r=n[0],t=n[1],a=t.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(z({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(r({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var Xe,Ye=se(Be||(Be=G(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function en(){var e=Ze()[0],n=Ie(Ye),r=n[0],t=n[1];return [function(n){try{return Promise.resolve(r(n)).then(function(n){var r=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return r&&r.then?r.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:t.loading,data:t.data,errors:t.errors}]}var nn,rn=se(Xe||(Xe=G(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function tn(){return Ie(rn)}var an=se(nn||(nn=G(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function on(){return Ie(an)}function sn(e,n){var r=useRef();return r.current&&equal(n,r.current.key)||(r.current={key:n,value:e()}),r.current.value}function un(){return useReducer(function(e){return e+1},0)}function cn(e){for(var n,r=K(Object.getOwnPropertyNames(e));!(n=r()).done;){var t=e[n.value];t&&"object"==typeof t&&cn(t);}return Object.freeze(e)}var ln={loading:!0,data:void 0,errors:void 0};function dn(e,n,r){var t=Fe(e,ln),a=t[0],o=t[1],i=un(),s=i[1];return sn(function(){!r&&o(n);},[e,n,o,i[0],r]),Te({skip:r,update:o,variables:n}),cn(z({},a,{refetch:s}))}function fn(){return window.squatchHistory=window.squatchHistory||function(){switch(getEnvironmentSDK().type){case"SquatchPortal":return createBrowserHistory();default:return createMemoryHistory()}}(),window.squatchHistory}var mn,vn={createHref:function(){var e;return (e=fn()).createHref.apply(e,[].slice.call(arguments))},push:function(){var e;return (e=fn()).push.apply(e,[].slice.call(arguments))},replace:function(){var e;return (e=fn()).replace.apply(e,[].slice.call(arguments))},go:function(){var e;return (e=fn()).go.apply(e,[].slice.call(arguments))},back:function(){return fn().back()},forward:function(){var e;return (e=fn()).forward.apply(e,[].slice.call(arguments))}};function gn(){var e=un()[1];return useEffect(function(){return fn().listen(function(){e();})},[]),fn().location}function pn(e){var n=useState({limit:e.limit,offset:e.offset}),r=n[0],t=n[1],a=r.offset,o=r.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);t(z({},r,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);t(function(e){return z({},e,{offset:n})});},calculatePagination:function(e,n){var r=s(a,o),t=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:r,pageCount:t,rangeOnPage:i,pageProgress:i+" of "+n}}}}function hn(e,n,r,t,a){var o;void 0===t&&(t={}),void 0===a&&(a=!1);var i=pn(r),s=i.limit,u=i.setLimit,c=i.setCurrentPage,l=i.calculatePagination,d=dn(e,z({limit:s,offset:i.offset},t),a),f=d.loading,m=d.errors,v=d.refetch,g=n(d.data),p=l((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:p.currentPage,pageCount:p.pageCount,pageProgress:p.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var wn=dist.gql(mn||(mn=G(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Pn=1e3,En=60*Pn,In=60*En,Mn=24*In,Dn=function(e,n){n=n||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return r*Mn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*In;case"minutes":case"minute":case"mins":case"min":case"m":return r*En;case"seconds":case"second":case"secs":case"sec":case"s":return r*Pn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=Mn?Sn(e,n,Mn,"day"):n>=In?Sn(e,n,In,"hour"):n>=En?Sn(e,n,En,"minute"):n>=Pn?Sn(e,n,Pn,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Mn?Math.round(e/Mn)+"d":n>=In?Math.round(e/In)+"h":n>=En?Math.round(e/En)+"m":n>=Pn?Math.round(e/Pn)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Sn(e,n,r,t){var a=n>=1.5*r;return Math.round(e/r)+" "+t+(a?"s":"")}var kn,jn,$n,qn,An=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;n.splice(1,0,r,"color: inherit");let t=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(t++,"%c"===e&&(a=t));}),n.splice(a,0,r);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let t,a=null;function o(...e){if(!o.enabled)return;const r=o,a=Number(new Date);r.diff=a-(t||a),r.prev=t,r.curr=a,t=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,a)=>{if("%%"===t)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(t=o.call(r,e[i]),e.splice(i,1),i--),t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=r,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function r(e,r){const t=n(this.namespace+(void 0===r?":":r)+e);return t.log=this.log,t}function t(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(t),...n.skips.map(t).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let r;n.save(e),n.names=[],n.skips=[];const t=("string"==typeof e?e:"").split(/[\s,]+/),a=t.length;for(r=0;r<a;r++)t[r]&&("-"===(e=t[r].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let r,t;for(r=0,t=n.skips.length;r<t;r++)if(n.skips[r].test(e))return !1;for(r=0,t=n.names.length;r<t;r++)if(n.names[r].test(e))return !0;return !1},n.humanize=Dn,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(r=>{n[r]=e[r];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let r=0;for(let n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n),r|=0;return n.colors[Math.abs(r)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(kn={exports:{}},kn.exports),kn.exports)("sq:useForm"),Rn=dist.gql(jn||(jn=G(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Vn=dist.gql($n||($n=G(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),xn=dist.gql(qn||(qn=G(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
|
|
8181
|
+
var A={current:void 0};function R(){if(void 0===A.current)throw new Error("no implementation of useHost provided");return A.current()}function V(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");A.current=e;}function x(){lazilyStartLocaleContext();var r=R();return h(r,LOCALE_CONTEXT_NAME)}function O(){lazilyStartProgramContext();var e=R();return h(e,PROGRAM_CONTEXT_NAME)}function H(){var e;return null==(e=N())?void 0:e.jwt}function N(){lazilyStartUserContext();var e=R(),n=h(e,USER_CONTEXT_NAME),r=userIdentityFromJwt(null==n?void 0:n.jwt);if(!n||r)return n;setUserIdentity(void 0);}var L=getTenantAlias,_=getAppDomain,U=getEngagementMedium;function T(){return (T=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);}return e}).apply(this,arguments)}function Q(e,n){return (Q=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function z(e,n){return n||(n=e.slice(0)),e.raw=n,e}function J(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function G(e,n){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return J(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return "Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (r=e[Symbol.iterator]()).next.bind(r)}var B=function(){return (B=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},K=new Map,Z=new Map,X=!0,Y=!1;function ee(e){return e.replace(/[\s,]+/g," ").trim()}function ne(e){var n,r,t,a=ee(e);if(!K.has(a)){var o=parse(e,{experimentalFragmentVariables:Y});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");K.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var t=e[r];t&&"object"==typeof t&&n.add(t);});});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}((n=o,r=new Set,t=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=ee((i=e.loc).source.body.substring(i.start,i.end)),o=Z.get(n);o&&!o.has(a)?X&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Z.set(n,o=new Set),o.add(a),r.has(a)||(r.add(a),t.push(e));}else t.push(e);var i;}),B(B({},n),{definitions:t}))));}return K.get(a)}function re(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var t=e[0];return n.forEach(function(n,r){t+=n&&"Document"===n.kind?n.loc.source.body:n,t+=e[r+1];}),ne(t)}var te,ae=re;(te=re||(re={})).gql=ae,te.resetCaches=function(){K.clear(),Z.clear();},te.disableFragmentWarnings=function(){X=!1;},te.enableExperimentalFragmentVariables=function(){Y=!0;},te.disableExperimentalFragmentVariables=function(){Y=!1;},re.default=re;var oe=re;function ie(e,n){try{var r=e();}catch(e){return n(e)}return r&&r.then?r.then(void 0,n):r}var se=function(e){var n,r;function t(n,r){var t;(t=e.call(this,n,r)||this).subject=new Subject;var a=new Subject;return t.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,r=le(e),o=r.mergedQuery,i=r.mergedVariables,s=r.mergedQueryAddedEvents,u=G(r.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(ie(function(){return Promise.resolve(t.superRequest(o,i)).then(function(e){ve(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,r=n.data,t=n.errors;if(!r)return {v:pe(s,e)};for(var a,o=Object.keys(r),i=[].concat(s),u=function(){var n=a.value,r=void 0;n.path.find(function(t,a,s){if(o.includes(t)){var u=ce(t),d=i.findIndex(function(e){return e.id===u});if(-1===d)return !1;o.splice(a,1),r=i.splice(d,1)[0];var c=fe(e.response.data,r);s[a]=de(s[a],u);var l=r.query,f=r.variables,m=T({},e.response,{errors:[n],data:c,path:s}),g=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return ge(r,g),!0}return !1});},d=G(t);!(a=d()).done;)u();ve(r,i);}();if("object"==typeof n)return n.v}else pe(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=ie(function(){return Promise.resolve(t.superRequest(e.query,e.variables)).then(function(n){me(n,e);})},function(n){ge(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),t}r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,Q(n,r);var a=t.prototype;return a.superRequest=function(n,r){return e.prototype.request.call(this,n,r)},a.request=function(e,n){var r=this;return new Promise(function(t,a){var o={query:e,variables:n,id:ue(),resolve:t,reject:a};r.subject.next(o);})},t}(dist.GraphQLClient),ue=function(){return nanoid().replace(/[-_]/g,"")},de=function(e,n){return e.replace("_"+n,"")},ce=function(e){var n=e.split("_");return n[n.length-1]},le=function(e){var n=[],r=[],t=e.reduce(function(e,t){var a=t.query,o=t.variables,i=t.id;try{var s="string"==typeof a?parse(a):a,u=s.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),c=/@/.test(d);if(u||c)return r.push(t),e;var l=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(s,[o],l,l),n.push(t),e}catch(n){return r.push(t),e}},j("BatchedQuery")),a=t.document,o=t.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:r}},fe=function(e,n){if(!e)return e;var r=Object.keys(e),t=n.id;return r.reduce(function(n,r){var a;return r.endsWith(t)&&(n=T({},n,((a={})[de(r,t)]=e[r],a))),n},{})},me=function(e,n){(0, n.resolve)(e);},ve=function(e,n){for(var r,t=G(n);!(r=t()).done;){var a=r.value,o=fe(e,a);a.resolve(o);}},ge=function(e,n){(0, e.reject)(n);},pe=function(e,n){for(var r,t=G(e);!(r=t()).done;)(0, r.value.reject)(n);},he="sq:graphql-client",ye=src(function(e,n,r){return new se(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(r||"")}})});function Ce(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function be(e,n){var r,t,a,o,i,s,u=(r=H(),t=_(),a=L(),o=ye(t,a,r),i=R(),null!=(s=h(i,"sq:graphql-client",{attempts:0}))?s:o),d=useReducer(Ce,n),c=d[1];return [d[0],useCallback(function(n,r){void 0===r&&(r=!1);try{if(!u){var t=new Error("No GraphQL client found");return c({type:"errors",payload:t}),Promise.resolve(t)}return Promise.resolve(function(t,a){try{var o=(r||c({type:"loading"}),Promise.resolve(u.request(e,n)).then(function(e){return c({type:"data",payload:e}),e}));}catch(e){return a(e)}return o&&o.then?o.then(void 0,a):o}(0,function(e){return c({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[u,e,c])]}var we,Fe={loading:!1,data:void 0,errors:void 0};function Pe(e){var n=be(e,Fe);return [n[1],n[0]]}var Ee,Ie=oe(we||(we=z(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Me(){var e=Pe(Ie),n=e[0],r=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,r=o(n).user;setUserIdentity({jwt:n,id:r.id,accountId:r.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors}]}var De,Se=oe(Ee||(Ee=z(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function je(){var e=Pe(Se),n=e[0],r=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,r=o(n).user;setUserIdentity({jwt:n,id:r.id,accountId:r.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors}]}var ke,$e=oe(De||(De=z(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function qe(){var e=Pe($e),n=e[0],r=e[1],t=r.loading,a=r.data,o$1=r.errors,i=useState(null),u=i[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(e instanceof Error)return e;var n=e.submitForm.results.find(function(e){return "identity"===e.formHandler.namespace});if(n&&n.result.results.length){var r=n.result.results[0];if(r.success){u(null);var t=r.data.token,a=o(t).user;setUserIdentity({jwt:t,id:a.id,accountId:a.accountId,managedIdentity:{email:r.data.email,emailVerified:r.data.emailVerified,sessionData:r.data.sessionData}});}else u(r.message);}return e})}catch(e){return Promise.reject(e)}},{loading:t,data:a,errors:o$1,formError:i[0]}]}var Ae,Re=oe(ke||(ke=z(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Ve(){var e=Pe(Re),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var xe,Oe=oe(Ae||(Ae=z(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function We(){var e=Pe(Oe),n=e[0],r=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,r=o(n).user;setUserIdentity({jwt:n,id:r.id,accountId:r.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors}]}var He=oe(xe||(xe=z(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Ne(){return Pe(He)}function Le(){var e=R();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function _e(e){var n=e.skip,r=void 0!==n&&n,t=e.update,a=e.variables;useEffect(function(){var e=function(e){!r&&t(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=useRef(e),r=useRef(0);return equal(e,n.current)||(n.current=e,r.current+=1),useMemo(function(){return n.current},[r.current])}([a,t,r]));}var Ue,Te={loading:!1,data:void 0,errors:void 0},Qe=Symbol();function ze(e){var n=be(e,Te),r=n[0],t=n[1],a=useRef(Qe);_e({skip:a.current===Qe,update:t,variables:a.current});var o=useCallback(function(e){return a.current=e,t(e)},[t]);return [t,T({},r,{refetch:o})]}var Je,Ge=oe(Ue||(Ue=z(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function Be(){var e=N(),n=ze(Ge),r=n[0],t=n[1],a=t.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(T({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(r({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var Ke,Ze=oe(Je||(Je=z(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Xe(){var e=Be()[0],n=Pe(Ze),r=n[0],t=n[1];return [function(n){try{return Promise.resolve(r(n)).then(function(n){var r=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return r&&r.then?r.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ye,en=oe(Ke||(Ke=z(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function nn(){return Pe(en)}var rn=oe(Ye||(Ye=z(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function tn(){return Pe(rn)}function an(e,n){var r=useRef();return r.current&&equal(n,r.current.key)||(r.current={key:n,value:e()}),r.current.value}function on(){return useReducer(function(e){return e+1},0)}function sn(e){for(var n,r=G(Object.getOwnPropertyNames(e));!(n=r()).done;){var t=e[n.value];t&&"object"==typeof t&&sn(t);}return Object.freeze(e)}var un={loading:!0,data:void 0,errors:void 0};function dn(e,n,r){var t=be(e,un),a=t[0],o=t[1],i=on(),s=i[1];return an(function(){!r&&o(n);},[e,n,o,i[0],r]),_e({skip:r,update:o,variables:n}),sn(T({},a,{refetch:s}))}function cn(){var e=on()[1];return useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var ln,fn=history_default;function mn(e){var n=useState({limit:e.limit,offset:e.offset}),r=n[0],t=n[1],a=r.offset,o=r.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);t(T({},r,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);t(function(e){return T({},e,{offset:n})});},calculatePagination:function(e,n){var r=s(a,o),t=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:r,pageCount:t,rangeOnPage:i,pageProgress:i+" of "+n}}}}function vn(e,n,r,t,a){var o;void 0===t&&(t={}),void 0===a&&(a=!1);var i=mn(r),s=i.limit,u=i.setLimit,d=i.setCurrentPage,c=i.calculatePagination,l=dn(e,T({limit:s,offset:i.offset},t),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=c((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:p.currentPage,pageCount:p.pageCount,pageProgress:p.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:d}}}var yn=dist.gql(ln||(ln=z(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var bn=1e3,wn=60*bn,Fn=60*wn,Pn=24*Fn,En=function(e,n){n=n||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return r*Pn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Fn;case"minutes":case"minute":case"mins":case"min":case"m":return r*wn;case"seconds":case"second":case"secs":case"sec":case"s":return r*bn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=Pn?In(e,n,Pn,"day"):n>=Fn?In(e,n,Fn,"hour"):n>=wn?In(e,n,wn,"minute"):n>=bn?In(e,n,bn,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Pn?Math.round(e/Pn)+"d":n>=Fn?Math.round(e/Fn)+"h":n>=wn?Math.round(e/wn)+"m":n>=bn?Math.round(e/bn)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function In(e,n,r,t){var a=n>=1.5*r;return Math.round(e/r)+" "+t+(a?"s":"")}var Mn,Dn,Sn,jn,kn=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;n.splice(1,0,r,"color: inherit");let t=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(t++,"%c"===e&&(a=t));}),n.splice(a,0,r);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let t,a=null;function o(...e){if(!o.enabled)return;const r=o,a=Number(new Date);r.diff=a-(t||a),r.prev=t,r.curr=a,t=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,a)=>{if("%%"===t)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(t=o.call(r,e[i]),e.splice(i,1),i--),t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=r,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function r(e,r){const t=n(this.namespace+(void 0===r?":":r)+e);return t.log=this.log,t}function t(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(t),...n.skips.map(t).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let r;n.save(e),n.names=[],n.skips=[];const t=("string"==typeof e?e:"").split(/[\s,]+/),a=t.length;for(r=0;r<a;r++)t[r]&&("-"===(e=t[r].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let r,t;for(r=0,t=n.skips.length;r<t;r++)if(n.skips[r].test(e))return !1;for(r=0,t=n.names.length;r<t;r++)if(n.names[r].test(e))return !0;return !1},n.humanize=En,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(r=>{n[r]=e[r];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let r=0;for(let n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n),r|=0;return n.colors[Math.abs(r)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Mn={exports:{}},Mn.exports),Mn.exports)("sq:useForm"),$n=dist.gql(Dn||(Dn=z(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),qn=dist.gql(Sn||(Sn=z(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),An=dist.gql(jn||(jn=z(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
|
|
8490
8182
|
|
|
8491
|
-
export {
|
|
8183
|
+
export { H, L, Me as M, N, O, Pe as P, R, U, V, We as W, Xe as X, dn as a, setUserIdentity as b, cn as c, dist as d, Ne as e, fn as f, setProgramId as g, he as h, isDemo as i, getEnvironmentSDK as j, Ve as k, je as l, memoize$1 as m, nn as n, on as o, Le as p, qe as q, src as s, tn as t, vn as v, x, ye as y, ze as z };
|