@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
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-6fe43579.js');
|
|
4
4
|
const useCallback = require('./use-callback-5d15897d.js');
|
|
5
|
-
const _extends = require('./extends-08099afd.js');
|
|
6
5
|
|
|
7
6
|
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";
|
|
8
7
|
|
|
@@ -202,6 +201,8 @@ function previouslyCompared(a, b) {
|
|
|
202
201
|
}
|
|
203
202
|
|
|
204
203
|
var __defProp = Object.defineProperty;
|
|
204
|
+
var __defProps = Object.defineProperties;
|
|
205
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
205
206
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
206
207
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
207
208
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -217,12 +218,18 @@ var __spreadValues = (a, b) => {
|
|
|
217
218
|
}
|
|
218
219
|
return a;
|
|
219
220
|
};
|
|
221
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
220
222
|
|
|
221
223
|
// src/types.ts
|
|
222
224
|
var USER_CONTEXT_NAME = "sq:user-identity";
|
|
223
225
|
var LOCALE_CONTEXT_NAME = "sq:locale";
|
|
224
226
|
var PROGRAM_CONTEXT_NAME = "sq:program-id";
|
|
225
227
|
var DEFAULT_MEDIUM = "EMBED";
|
|
228
|
+
|
|
229
|
+
// src/environment.ts
|
|
230
|
+
function getEnvironment() {
|
|
231
|
+
return getEnvironmentSDK().type;
|
|
232
|
+
}
|
|
226
233
|
function getEnvironmentSDK() {
|
|
227
234
|
var _a, _b;
|
|
228
235
|
if (window["SquatchAndroid"]) {
|
|
@@ -302,20 +309,202 @@ function getEngagementMedium() {
|
|
|
302
309
|
}
|
|
303
310
|
|
|
304
311
|
// src/debug.ts
|
|
305
|
-
var debugEnabled =
|
|
312
|
+
var debugEnabled = (() => {
|
|
313
|
+
var _a;
|
|
314
|
+
try {
|
|
315
|
+
return (_a = window == null ? void 0 : window.localStorage) == null ? void 0 : _a.getItem("debug");
|
|
316
|
+
} catch (e) {
|
|
317
|
+
return false;
|
|
318
|
+
}
|
|
319
|
+
})();
|
|
306
320
|
function debug(ns, ...args) {
|
|
307
321
|
if (debugEnabled) {
|
|
308
322
|
console.debug(`sq:environment:${ns}`, ...args);
|
|
309
323
|
}
|
|
310
324
|
}
|
|
311
325
|
|
|
312
|
-
// src/
|
|
313
|
-
var debug2 = (...args) => debug(
|
|
326
|
+
// src/history.ts
|
|
327
|
+
var debug2 = (...args) => debug("history", ...args);
|
|
328
|
+
function normalizeTo(to) {
|
|
329
|
+
if (typeof to === "string")
|
|
330
|
+
return to;
|
|
331
|
+
const url = new URL(to.pathname, window.origin);
|
|
332
|
+
if (to.search)
|
|
333
|
+
url.search = to.search;
|
|
334
|
+
if (to.hash)
|
|
335
|
+
url.hash = to.hash;
|
|
336
|
+
return url;
|
|
337
|
+
}
|
|
338
|
+
var BrowserHistory = class {
|
|
339
|
+
constructor() {
|
|
340
|
+
this.listeners = /* @__PURE__ */ new Set();
|
|
341
|
+
window.addEventListener("popstate", this.notify.bind(this));
|
|
342
|
+
window.addEventListener("pushState", this.notify.bind(this));
|
|
343
|
+
window.addEventListener("replaceState", this.notify.bind(this));
|
|
344
|
+
}
|
|
345
|
+
listen(fn) {
|
|
346
|
+
this.listeners.add(fn);
|
|
347
|
+
return () => {
|
|
348
|
+
this.listeners.delete(fn);
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
notify() {
|
|
352
|
+
debug2("notifying listeners of route change", this.location);
|
|
353
|
+
if (this.listeners) {
|
|
354
|
+
this.listeners.forEach((listener) => listener());
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
get location() {
|
|
358
|
+
return {
|
|
359
|
+
pathname: window.location.pathname,
|
|
360
|
+
search: window.location.search,
|
|
361
|
+
hash: window.location.hash,
|
|
362
|
+
state: window.history.state
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
back() {
|
|
366
|
+
this.go(-1);
|
|
367
|
+
}
|
|
368
|
+
forward() {
|
|
369
|
+
this.go(1);
|
|
370
|
+
}
|
|
371
|
+
go(delta) {
|
|
372
|
+
window.history.go(delta);
|
|
373
|
+
}
|
|
374
|
+
push(to, state) {
|
|
375
|
+
const url = normalizeTo(to);
|
|
376
|
+
window.history.pushState(state, "", url);
|
|
377
|
+
}
|
|
378
|
+
replace(to, state) {
|
|
379
|
+
const url = normalizeTo(to);
|
|
380
|
+
window.history.replaceState(state, "", url);
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
var MemoryHistory = class {
|
|
384
|
+
constructor() {
|
|
385
|
+
this.history = [{ pathname: "/", search: "", hash: "" }];
|
|
386
|
+
this.index = 0;
|
|
387
|
+
this.listeners = /* @__PURE__ */ new Set();
|
|
388
|
+
}
|
|
389
|
+
listen(fn) {
|
|
390
|
+
this.listeners.add(fn);
|
|
391
|
+
return () => {
|
|
392
|
+
this.listeners.delete(fn);
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
current() {
|
|
396
|
+
return this.history[this.index];
|
|
397
|
+
}
|
|
398
|
+
get state() {
|
|
399
|
+
return this.current().state;
|
|
400
|
+
}
|
|
401
|
+
notify() {
|
|
402
|
+
debug2("notifying listeners of route change", this.location);
|
|
403
|
+
this.listeners.forEach((listener) => listener());
|
|
404
|
+
}
|
|
405
|
+
get location() {
|
|
406
|
+
return this.history[this.index];
|
|
407
|
+
}
|
|
408
|
+
back() {
|
|
409
|
+
this.go(-1);
|
|
410
|
+
}
|
|
411
|
+
forward() {
|
|
412
|
+
this.go(1);
|
|
413
|
+
}
|
|
414
|
+
go(delta) {
|
|
415
|
+
this.index += delta;
|
|
416
|
+
if (this.index < 0)
|
|
417
|
+
this.index = 0;
|
|
418
|
+
if (this.index >= this.history.length)
|
|
419
|
+
this.index = this.history.length - 1;
|
|
420
|
+
this.notify();
|
|
421
|
+
}
|
|
422
|
+
push(to, state) {
|
|
423
|
+
let entry;
|
|
424
|
+
if (typeof to === "string") {
|
|
425
|
+
entry = {
|
|
426
|
+
pathname: to,
|
|
427
|
+
search: this.history[this.index].search,
|
|
428
|
+
hash: this.history[this.index].hash,
|
|
429
|
+
state
|
|
430
|
+
};
|
|
431
|
+
} else {
|
|
432
|
+
entry = __spreadProps(__spreadValues({}, to), {
|
|
433
|
+
state
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
this.index++;
|
|
437
|
+
this.history.splice(this.index, this.history.length, entry);
|
|
438
|
+
this.notify();
|
|
439
|
+
}
|
|
440
|
+
replace(to, state) {
|
|
441
|
+
if (typeof to === "string") {
|
|
442
|
+
this.history[this.index] = {
|
|
443
|
+
pathname: to,
|
|
444
|
+
search: this.history[this.index].search,
|
|
445
|
+
hash: this.history[this.index].hash,
|
|
446
|
+
state
|
|
447
|
+
};
|
|
448
|
+
} else {
|
|
449
|
+
this.history[this.index] = __spreadProps(__spreadValues({}, to), {
|
|
450
|
+
state
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
this.notify();
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
function createHistory() {
|
|
457
|
+
if (getEnvironment() === "SquatchPortal") {
|
|
458
|
+
let wrapHistoryFunction2 = function(functionName) {
|
|
459
|
+
const orig = window.history[functionName];
|
|
460
|
+
return function(...args) {
|
|
461
|
+
const returnValue = orig.apply(window.history, args);
|
|
462
|
+
const event = new Event(functionName);
|
|
463
|
+
window.dispatchEvent(event);
|
|
464
|
+
return returnValue;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
window.history.pushState = wrapHistoryFunction2("pushState");
|
|
468
|
+
window.history.replaceState = wrapHistoryFunction2("replaceState");
|
|
469
|
+
return new BrowserHistory();
|
|
470
|
+
} else {
|
|
471
|
+
return new MemoryHistory();
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
function lazyHistory() {
|
|
475
|
+
window.squatchHistory = window.squatchHistory || createHistory();
|
|
476
|
+
return window.squatchHistory;
|
|
477
|
+
}
|
|
478
|
+
var LazyHistory = class {
|
|
479
|
+
get location() {
|
|
480
|
+
return lazyHistory().location;
|
|
481
|
+
}
|
|
482
|
+
listen(fn) {
|
|
483
|
+
return lazyHistory().listen(fn);
|
|
484
|
+
}
|
|
485
|
+
back() {
|
|
486
|
+
lazyHistory().back();
|
|
487
|
+
}
|
|
488
|
+
forward() {
|
|
489
|
+
lazyHistory().forward();
|
|
490
|
+
}
|
|
491
|
+
go(delta) {
|
|
492
|
+
lazyHistory().go(delta);
|
|
493
|
+
}
|
|
494
|
+
push(to, state) {
|
|
495
|
+
lazyHistory().push(to, state);
|
|
496
|
+
}
|
|
497
|
+
replace(to, state) {
|
|
498
|
+
lazyHistory().replace(to, state);
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
var history_default = new LazyHistory();
|
|
502
|
+
var debug3 = (...args) => debug(LOCALE_CONTEXT_NAME, ...args);
|
|
314
503
|
function lazilyStartLocaleContext() {
|
|
315
504
|
var _a;
|
|
316
505
|
let globalProvider = window.squatchLocale;
|
|
317
506
|
if (!globalProvider) {
|
|
318
|
-
|
|
507
|
+
debug3("Creating locale context provider");
|
|
319
508
|
globalProvider = new stencilHooks_module.c({
|
|
320
509
|
element: document.documentElement,
|
|
321
510
|
initialState: ((_a = window.widgetIdent) == null ? void 0 : _a.locale) || navigator.language.replace("-", "_"),
|
|
@@ -327,7 +516,7 @@ function lazilyStartLocaleContext() {
|
|
|
327
516
|
}
|
|
328
517
|
|
|
329
518
|
// src/fetchLocale.ts
|
|
330
|
-
var
|
|
519
|
+
var debug4 = (...args) => debug(LOCALE_CONTEXT_NAME, ...args);
|
|
331
520
|
var GET_LOCALE = `
|
|
332
521
|
query {
|
|
333
522
|
viewer {
|
|
@@ -339,7 +528,7 @@ var GET_LOCALE = `
|
|
|
339
528
|
`;
|
|
340
529
|
async function fetchLocale() {
|
|
341
530
|
var _a;
|
|
342
|
-
|
|
531
|
+
debug4("Fetching locale from GraphQL for current user");
|
|
343
532
|
try {
|
|
344
533
|
const result = await fetch(`${getAppDomain()}/api/v1/${getTenantAlias()}/graphql`, {
|
|
345
534
|
method: "POST",
|
|
@@ -360,13 +549,13 @@ async function fetchLocale() {
|
|
|
360
549
|
}
|
|
361
550
|
return json.data.viewer.locale || void 0;
|
|
362
551
|
} catch (e) {
|
|
363
|
-
|
|
552
|
+
debug4(`Failed to fetch locale for current user`, e.message);
|
|
364
553
|
return void 0;
|
|
365
554
|
}
|
|
366
555
|
}
|
|
367
556
|
|
|
368
557
|
// src/listeners.ts
|
|
369
|
-
var
|
|
558
|
+
var debug5 = (...args) => debug(LOCALE_CONTEXT_NAME, ...args);
|
|
370
559
|
var userContextListenerDiv = (() => {
|
|
371
560
|
const id = "__environment_context_listener";
|
|
372
561
|
let div = document.getElementById(id);
|
|
@@ -386,30 +575,30 @@ var userContextListenerForLocale = new stencilHooks_module.s({
|
|
|
386
575
|
const defaultLocale = ((_a = window.widgetIdent) == null ? void 0 : _a.locale) || navigator.language.replace("-", "_");
|
|
387
576
|
let newLocale;
|
|
388
577
|
if (next) {
|
|
389
|
-
|
|
578
|
+
debug5("User context changed, refetching locale");
|
|
390
579
|
const locale = await fetchLocale();
|
|
391
580
|
if (localeProvider.context !== locale) {
|
|
392
|
-
|
|
581
|
+
debug5(`New value fetched from GraphQL [${locale}]`);
|
|
393
582
|
newLocale = locale || defaultLocale;
|
|
394
583
|
}
|
|
395
584
|
} else {
|
|
396
585
|
newLocale = defaultLocale;
|
|
397
586
|
}
|
|
398
|
-
|
|
587
|
+
debug5(`Setting locale context to [${newLocale}]`);
|
|
399
588
|
localeProvider.context = newLocale;
|
|
400
589
|
}
|
|
401
590
|
});
|
|
402
591
|
function startUserContextListenerForLocale() {
|
|
403
|
-
|
|
592
|
+
debug5("Starting user context listener for locale updates");
|
|
404
593
|
userContextListenerForLocale.start();
|
|
405
594
|
}
|
|
406
595
|
|
|
407
596
|
// src/contexts/UserIdentityContext.ts
|
|
408
|
-
var
|
|
597
|
+
var debug6 = (...args) => debug(USER_CONTEXT_NAME, ...args);
|
|
409
598
|
function lazilyStartUserContext() {
|
|
410
599
|
let globalProvider = window.squatchUserIdentity;
|
|
411
600
|
if (!globalProvider) {
|
|
412
|
-
|
|
601
|
+
debug6("Creating user context provider");
|
|
413
602
|
globalProvider = new stencilHooks_module.c({
|
|
414
603
|
element: document.documentElement,
|
|
415
604
|
initialState: _getInitialValue(),
|
|
@@ -495,7 +684,7 @@ function _getInitialValue() {
|
|
|
495
684
|
function setUserIdentity(identity) {
|
|
496
685
|
const globalProvider = lazilyStartUserContext();
|
|
497
686
|
if (!equal(globalProvider.context, identity)) {
|
|
498
|
-
|
|
687
|
+
debug6(`Setting user context value [${JSON.stringify(identity)}]`);
|
|
499
688
|
globalProvider.context = identity;
|
|
500
689
|
}
|
|
501
690
|
if (identity && getEnvironmentSDK().type === "SquatchPortal") {
|
|
@@ -508,12 +697,12 @@ function getUserIdentity() {
|
|
|
508
697
|
var _a;
|
|
509
698
|
return (_a = window.squatchUserIdentity) == null ? void 0 : _a.context;
|
|
510
699
|
}
|
|
511
|
-
var
|
|
700
|
+
var debug7 = (...args) => debug(PROGRAM_CONTEXT_NAME, ...args);
|
|
512
701
|
function lazilyStartProgramContext() {
|
|
513
702
|
var _a;
|
|
514
703
|
let globalProvider = window.squatchProgramId;
|
|
515
704
|
if (!globalProvider) {
|
|
516
|
-
|
|
705
|
+
debug7("Creating program context provider");
|
|
517
706
|
globalProvider = new stencilHooks_module.c({
|
|
518
707
|
element: document.documentElement,
|
|
519
708
|
initialState: ((_a = window.widgetIdent) == null ? void 0 : _a.programId) || void 0,
|
|
@@ -526,7 +715,7 @@ function lazilyStartProgramContext() {
|
|
|
526
715
|
function setProgramId(programId) {
|
|
527
716
|
const globalProvider = lazilyStartProgramContext();
|
|
528
717
|
if (globalProvider.context !== programId) {
|
|
529
|
-
|
|
718
|
+
debug7(`Setting program context value [${programId}]`);
|
|
530
719
|
globalProvider.context = programId;
|
|
531
720
|
}
|
|
532
721
|
}
|
|
@@ -7989,538 +8178,41 @@ exports.default = combinedQuery;
|
|
|
7989
8178
|
|
|
7990
8179
|
});
|
|
7991
8180
|
|
|
7992
|
-
const
|
|
7993
|
-
|
|
7994
|
-
/**
|
|
7995
|
-
* Actions represent the type of change to a location value.
|
|
7996
|
-
*
|
|
7997
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action
|
|
7998
|
-
*/
|
|
7999
|
-
var Action$1;
|
|
8000
|
-
|
|
8001
|
-
(function (Action) {
|
|
8002
|
-
/**
|
|
8003
|
-
* A POP indicates a change to an arbitrary index in the history stack, such
|
|
8004
|
-
* as a back or forward navigation. It does not describe the direction of the
|
|
8005
|
-
* navigation, only that the current index changed.
|
|
8006
|
-
*
|
|
8007
|
-
* Note: This is the default action for newly created history objects.
|
|
8008
|
-
*/
|
|
8009
|
-
Action["Pop"] = "POP";
|
|
8010
|
-
/**
|
|
8011
|
-
* A PUSH indicates a new entry being added to the history stack, such as when
|
|
8012
|
-
* a link is clicked and a new page loads. When this happens, all subsequent
|
|
8013
|
-
* entries in the stack are lost.
|
|
8014
|
-
*/
|
|
8015
|
-
|
|
8016
|
-
Action["Push"] = "PUSH";
|
|
8017
|
-
/**
|
|
8018
|
-
* A REPLACE indicates the entry at the current index in the history stack
|
|
8019
|
-
* being replaced by a new one.
|
|
8020
|
-
*/
|
|
8021
|
-
|
|
8022
|
-
Action["Replace"] = "REPLACE";
|
|
8023
|
-
})(Action$1 || (Action$1 = {}));
|
|
8024
|
-
|
|
8025
|
-
var readOnly = function (obj) {
|
|
8026
|
-
return obj;
|
|
8027
|
-
};
|
|
8028
|
-
|
|
8029
|
-
var BeforeUnloadEventType = 'beforeunload';
|
|
8030
|
-
var PopStateEventType = 'popstate';
|
|
8031
|
-
/**
|
|
8032
|
-
* Browser history stores the location in regular URLs. This is the standard for
|
|
8033
|
-
* most web apps, but it requires some configuration on the server to ensure you
|
|
8034
|
-
* serve the same app at multiple URLs.
|
|
8035
|
-
*
|
|
8036
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory
|
|
8037
|
-
*/
|
|
8038
|
-
|
|
8039
|
-
function createBrowserHistory(options) {
|
|
8040
|
-
if (options === void 0) {
|
|
8041
|
-
options = {};
|
|
8042
|
-
}
|
|
8043
|
-
|
|
8044
|
-
var _options = options,
|
|
8045
|
-
_options$window = _options.window,
|
|
8046
|
-
window = _options$window === void 0 ? document.defaultView : _options$window;
|
|
8047
|
-
var globalHistory = window.history;
|
|
8048
|
-
|
|
8049
|
-
function getIndexAndLocation() {
|
|
8050
|
-
var _window$location = window.location,
|
|
8051
|
-
pathname = _window$location.pathname,
|
|
8052
|
-
search = _window$location.search,
|
|
8053
|
-
hash = _window$location.hash;
|
|
8054
|
-
var state = globalHistory.state || {};
|
|
8055
|
-
return [state.idx, readOnly({
|
|
8056
|
-
pathname: pathname,
|
|
8057
|
-
search: search,
|
|
8058
|
-
hash: hash,
|
|
8059
|
-
state: state.usr || null,
|
|
8060
|
-
key: state.key || 'default'
|
|
8061
|
-
})];
|
|
8062
|
-
}
|
|
8063
|
-
|
|
8064
|
-
var blockedPopTx = null;
|
|
8065
|
-
|
|
8066
|
-
function handlePop() {
|
|
8067
|
-
if (blockedPopTx) {
|
|
8068
|
-
blockers.call(blockedPopTx);
|
|
8069
|
-
blockedPopTx = null;
|
|
8070
|
-
} else {
|
|
8071
|
-
var nextAction = Action$1.Pop;
|
|
8072
|
-
|
|
8073
|
-
var _getIndexAndLocation = getIndexAndLocation(),
|
|
8074
|
-
nextIndex = _getIndexAndLocation[0],
|
|
8075
|
-
nextLocation = _getIndexAndLocation[1];
|
|
8076
|
-
|
|
8077
|
-
if (blockers.length) {
|
|
8078
|
-
if (nextIndex != null) {
|
|
8079
|
-
var delta = index - nextIndex;
|
|
8080
|
-
|
|
8081
|
-
if (delta) {
|
|
8082
|
-
// Revert the POP
|
|
8083
|
-
blockedPopTx = {
|
|
8084
|
-
action: nextAction,
|
|
8085
|
-
location: nextLocation,
|
|
8086
|
-
retry: function retry() {
|
|
8087
|
-
go(delta * -1);
|
|
8088
|
-
}
|
|
8089
|
-
};
|
|
8090
|
-
go(delta);
|
|
8091
|
-
}
|
|
8092
|
-
}
|
|
8093
|
-
} else {
|
|
8094
|
-
applyTx(nextAction);
|
|
8095
|
-
}
|
|
8096
|
-
}
|
|
8097
|
-
}
|
|
8098
|
-
|
|
8099
|
-
window.addEventListener(PopStateEventType, handlePop);
|
|
8100
|
-
var action = Action$1.Pop;
|
|
8101
|
-
|
|
8102
|
-
var _getIndexAndLocation2 = getIndexAndLocation(),
|
|
8103
|
-
index = _getIndexAndLocation2[0],
|
|
8104
|
-
location = _getIndexAndLocation2[1];
|
|
8105
|
-
|
|
8106
|
-
var listeners = createEvents();
|
|
8107
|
-
var blockers = createEvents();
|
|
8108
|
-
|
|
8109
|
-
if (index == null) {
|
|
8110
|
-
index = 0;
|
|
8111
|
-
globalHistory.replaceState(_extends._extends({}, globalHistory.state, {
|
|
8112
|
-
idx: index
|
|
8113
|
-
}), '');
|
|
8114
|
-
}
|
|
8115
|
-
|
|
8116
|
-
function createHref(to) {
|
|
8117
|
-
return typeof to === 'string' ? to : createPath(to);
|
|
8118
|
-
} // state defaults to `null` because `window.history.state` does
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
function getNextLocation(to, state) {
|
|
8122
|
-
if (state === void 0) {
|
|
8123
|
-
state = null;
|
|
8124
|
-
}
|
|
8125
|
-
|
|
8126
|
-
return readOnly(_extends._extends({
|
|
8127
|
-
pathname: location.pathname,
|
|
8128
|
-
hash: '',
|
|
8129
|
-
search: ''
|
|
8130
|
-
}, typeof to === 'string' ? parsePath(to) : to, {
|
|
8131
|
-
state: state,
|
|
8132
|
-
key: createKey()
|
|
8133
|
-
}));
|
|
8134
|
-
}
|
|
8135
|
-
|
|
8136
|
-
function getHistoryStateAndUrl(nextLocation, index) {
|
|
8137
|
-
return [{
|
|
8138
|
-
usr: nextLocation.state,
|
|
8139
|
-
key: nextLocation.key,
|
|
8140
|
-
idx: index
|
|
8141
|
-
}, createHref(nextLocation)];
|
|
8142
|
-
}
|
|
8143
|
-
|
|
8144
|
-
function allowTx(action, location, retry) {
|
|
8145
|
-
return !blockers.length || (blockers.call({
|
|
8146
|
-
action: action,
|
|
8147
|
-
location: location,
|
|
8148
|
-
retry: retry
|
|
8149
|
-
}), false);
|
|
8150
|
-
}
|
|
8151
|
-
|
|
8152
|
-
function applyTx(nextAction) {
|
|
8153
|
-
action = nextAction;
|
|
8154
|
-
|
|
8155
|
-
var _getIndexAndLocation3 = getIndexAndLocation();
|
|
8156
|
-
|
|
8157
|
-
index = _getIndexAndLocation3[0];
|
|
8158
|
-
location = _getIndexAndLocation3[1];
|
|
8159
|
-
listeners.call({
|
|
8160
|
-
action: action,
|
|
8161
|
-
location: location
|
|
8162
|
-
});
|
|
8163
|
-
}
|
|
8164
|
-
|
|
8165
|
-
function push(to, state) {
|
|
8166
|
-
var nextAction = Action$1.Push;
|
|
8167
|
-
var nextLocation = getNextLocation(to, state);
|
|
8168
|
-
|
|
8169
|
-
function retry() {
|
|
8170
|
-
push(to, state);
|
|
8171
|
-
}
|
|
8172
|
-
|
|
8173
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8174
|
-
var _getHistoryStateAndUr = getHistoryStateAndUrl(nextLocation, index + 1),
|
|
8175
|
-
historyState = _getHistoryStateAndUr[0],
|
|
8176
|
-
url = _getHistoryStateAndUr[1]; // TODO: Support forced reloading
|
|
8177
|
-
// try...catch because iOS limits us to 100 pushState calls :/
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
try {
|
|
8181
|
-
globalHistory.pushState(historyState, '', url);
|
|
8182
|
-
} catch (error) {
|
|
8183
|
-
// They are going to lose state here, but there is no real
|
|
8184
|
-
// way to warn them about it since the page will refresh...
|
|
8185
|
-
window.location.assign(url);
|
|
8186
|
-
}
|
|
8187
|
-
|
|
8188
|
-
applyTx(nextAction);
|
|
8189
|
-
}
|
|
8190
|
-
}
|
|
8191
|
-
|
|
8192
|
-
function replace(to, state) {
|
|
8193
|
-
var nextAction = Action$1.Replace;
|
|
8194
|
-
var nextLocation = getNextLocation(to, state);
|
|
8195
|
-
|
|
8196
|
-
function retry() {
|
|
8197
|
-
replace(to, state);
|
|
8198
|
-
}
|
|
8199
|
-
|
|
8200
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8201
|
-
var _getHistoryStateAndUr2 = getHistoryStateAndUrl(nextLocation, index),
|
|
8202
|
-
historyState = _getHistoryStateAndUr2[0],
|
|
8203
|
-
url = _getHistoryStateAndUr2[1]; // TODO: Support forced reloading
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
globalHistory.replaceState(historyState, '', url);
|
|
8207
|
-
applyTx(nextAction);
|
|
8208
|
-
}
|
|
8209
|
-
}
|
|
8210
|
-
|
|
8211
|
-
function go(delta) {
|
|
8212
|
-
globalHistory.go(delta);
|
|
8213
|
-
}
|
|
8214
|
-
|
|
8215
|
-
var history = {
|
|
8216
|
-
get action() {
|
|
8217
|
-
return action;
|
|
8218
|
-
},
|
|
8219
|
-
|
|
8220
|
-
get location() {
|
|
8221
|
-
return location;
|
|
8222
|
-
},
|
|
8223
|
-
|
|
8224
|
-
createHref: createHref,
|
|
8225
|
-
push: push,
|
|
8226
|
-
replace: replace,
|
|
8227
|
-
go: go,
|
|
8228
|
-
back: function back() {
|
|
8229
|
-
go(-1);
|
|
8230
|
-
},
|
|
8231
|
-
forward: function forward() {
|
|
8232
|
-
go(1);
|
|
8233
|
-
},
|
|
8234
|
-
listen: function listen(listener) {
|
|
8235
|
-
return listeners.push(listener);
|
|
8236
|
-
},
|
|
8237
|
-
block: function block(blocker) {
|
|
8238
|
-
var unblock = blockers.push(blocker);
|
|
8239
|
-
|
|
8240
|
-
if (blockers.length === 1) {
|
|
8241
|
-
window.addEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
8242
|
-
}
|
|
8243
|
-
|
|
8244
|
-
return function () {
|
|
8245
|
-
unblock(); // Remove the beforeunload listener so the document may
|
|
8246
|
-
// still be salvageable in the pagehide event.
|
|
8247
|
-
// See https://html.spec.whatwg.org/#unloading-documents
|
|
8248
|
-
|
|
8249
|
-
if (!blockers.length) {
|
|
8250
|
-
window.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
8251
|
-
}
|
|
8252
|
-
};
|
|
8253
|
-
}
|
|
8254
|
-
};
|
|
8255
|
-
return history;
|
|
8256
|
-
}
|
|
8257
|
-
/**
|
|
8258
|
-
* Memory history stores the current location in memory. It is designed for use
|
|
8259
|
-
* in stateful non-browser environments like tests and React Native.
|
|
8260
|
-
*
|
|
8261
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#creatememoryhistory
|
|
8262
|
-
*/
|
|
8263
|
-
|
|
8264
|
-
function createMemoryHistory(options) {
|
|
8265
|
-
if (options === void 0) {
|
|
8266
|
-
options = {};
|
|
8267
|
-
}
|
|
8268
|
-
|
|
8269
|
-
var _options3 = options,
|
|
8270
|
-
_options3$initialEntr = _options3.initialEntries,
|
|
8271
|
-
initialEntries = _options3$initialEntr === void 0 ? ['/'] : _options3$initialEntr,
|
|
8272
|
-
initialIndex = _options3.initialIndex;
|
|
8273
|
-
var entries = initialEntries.map(function (entry) {
|
|
8274
|
-
var location = readOnly(_extends._extends({
|
|
8275
|
-
pathname: '/',
|
|
8276
|
-
search: '',
|
|
8277
|
-
hash: '',
|
|
8278
|
-
state: null,
|
|
8279
|
-
key: createKey()
|
|
8280
|
-
}, typeof entry === 'string' ? parsePath(entry) : entry));
|
|
8281
|
-
return location;
|
|
8282
|
-
});
|
|
8283
|
-
var index = clamp(initialIndex == null ? entries.length - 1 : initialIndex, 0, entries.length - 1);
|
|
8284
|
-
var action = Action$1.Pop;
|
|
8285
|
-
var location = entries[index];
|
|
8286
|
-
var listeners = createEvents();
|
|
8287
|
-
var blockers = createEvents();
|
|
8288
|
-
|
|
8289
|
-
function createHref(to) {
|
|
8290
|
-
return typeof to === 'string' ? to : createPath(to);
|
|
8291
|
-
}
|
|
8292
|
-
|
|
8293
|
-
function getNextLocation(to, state) {
|
|
8294
|
-
if (state === void 0) {
|
|
8295
|
-
state = null;
|
|
8296
|
-
}
|
|
8297
|
-
|
|
8298
|
-
return readOnly(_extends._extends({
|
|
8299
|
-
pathname: location.pathname,
|
|
8300
|
-
search: '',
|
|
8301
|
-
hash: ''
|
|
8302
|
-
}, typeof to === 'string' ? parsePath(to) : to, {
|
|
8303
|
-
state: state,
|
|
8304
|
-
key: createKey()
|
|
8305
|
-
}));
|
|
8306
|
-
}
|
|
8307
|
-
|
|
8308
|
-
function allowTx(action, location, retry) {
|
|
8309
|
-
return !blockers.length || (blockers.call({
|
|
8310
|
-
action: action,
|
|
8311
|
-
location: location,
|
|
8312
|
-
retry: retry
|
|
8313
|
-
}), false);
|
|
8314
|
-
}
|
|
8315
|
-
|
|
8316
|
-
function applyTx(nextAction, nextLocation) {
|
|
8317
|
-
action = nextAction;
|
|
8318
|
-
location = nextLocation;
|
|
8319
|
-
listeners.call({
|
|
8320
|
-
action: action,
|
|
8321
|
-
location: location
|
|
8322
|
-
});
|
|
8323
|
-
}
|
|
8324
|
-
|
|
8325
|
-
function push(to, state) {
|
|
8326
|
-
var nextAction = Action$1.Push;
|
|
8327
|
-
var nextLocation = getNextLocation(to, state);
|
|
8328
|
-
|
|
8329
|
-
function retry() {
|
|
8330
|
-
push(to, state);
|
|
8331
|
-
}
|
|
8332
|
-
|
|
8333
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8334
|
-
index += 1;
|
|
8335
|
-
entries.splice(index, entries.length, nextLocation);
|
|
8336
|
-
applyTx(nextAction, nextLocation);
|
|
8337
|
-
}
|
|
8338
|
-
}
|
|
8339
|
-
|
|
8340
|
-
function replace(to, state) {
|
|
8341
|
-
var nextAction = Action$1.Replace;
|
|
8342
|
-
var nextLocation = getNextLocation(to, state);
|
|
8343
|
-
|
|
8344
|
-
function retry() {
|
|
8345
|
-
replace(to, state);
|
|
8346
|
-
}
|
|
8347
|
-
|
|
8348
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8349
|
-
entries[index] = nextLocation;
|
|
8350
|
-
applyTx(nextAction, nextLocation);
|
|
8351
|
-
}
|
|
8352
|
-
}
|
|
8353
|
-
|
|
8354
|
-
function go(delta) {
|
|
8355
|
-
var nextIndex = clamp(index + delta, 0, entries.length - 1);
|
|
8356
|
-
var nextAction = Action$1.Pop;
|
|
8357
|
-
var nextLocation = entries[nextIndex];
|
|
8358
|
-
|
|
8359
|
-
function retry() {
|
|
8360
|
-
go(delta);
|
|
8361
|
-
}
|
|
8362
|
-
|
|
8363
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8364
|
-
index = nextIndex;
|
|
8365
|
-
applyTx(nextAction, nextLocation);
|
|
8366
|
-
}
|
|
8367
|
-
}
|
|
8368
|
-
|
|
8369
|
-
var history = {
|
|
8370
|
-
get index() {
|
|
8371
|
-
return index;
|
|
8372
|
-
},
|
|
8373
|
-
|
|
8374
|
-
get action() {
|
|
8375
|
-
return action;
|
|
8376
|
-
},
|
|
8377
|
-
|
|
8378
|
-
get location() {
|
|
8379
|
-
return location;
|
|
8380
|
-
},
|
|
8381
|
-
|
|
8382
|
-
createHref: createHref,
|
|
8383
|
-
push: push,
|
|
8384
|
-
replace: replace,
|
|
8385
|
-
go: go,
|
|
8386
|
-
back: function back() {
|
|
8387
|
-
go(-1);
|
|
8388
|
-
},
|
|
8389
|
-
forward: function forward() {
|
|
8390
|
-
go(1);
|
|
8391
|
-
},
|
|
8392
|
-
listen: function listen(listener) {
|
|
8393
|
-
return listeners.push(listener);
|
|
8394
|
-
},
|
|
8395
|
-
block: function block(blocker) {
|
|
8396
|
-
return blockers.push(blocker);
|
|
8397
|
-
}
|
|
8398
|
-
};
|
|
8399
|
-
return history;
|
|
8400
|
-
} ////////////////////////////////////////////////////////////////////////////////
|
|
8401
|
-
// UTILS
|
|
8402
|
-
////////////////////////////////////////////////////////////////////////////////
|
|
8403
|
-
|
|
8404
|
-
function clamp(n, lowerBound, upperBound) {
|
|
8405
|
-
return Math.min(Math.max(n, lowerBound), upperBound);
|
|
8406
|
-
}
|
|
8407
|
-
|
|
8408
|
-
function promptBeforeUnload(event) {
|
|
8409
|
-
// Cancel the event.
|
|
8410
|
-
event.preventDefault(); // Chrome (and legacy IE) requires returnValue to be set.
|
|
8411
|
-
|
|
8412
|
-
event.returnValue = '';
|
|
8413
|
-
}
|
|
8414
|
-
|
|
8415
|
-
function createEvents() {
|
|
8416
|
-
var handlers = [];
|
|
8417
|
-
return {
|
|
8418
|
-
get length() {
|
|
8419
|
-
return handlers.length;
|
|
8420
|
-
},
|
|
8421
|
-
|
|
8422
|
-
push: function push(fn) {
|
|
8423
|
-
handlers.push(fn);
|
|
8424
|
-
return function () {
|
|
8425
|
-
handlers = handlers.filter(function (handler) {
|
|
8426
|
-
return handler !== fn;
|
|
8427
|
-
});
|
|
8428
|
-
};
|
|
8429
|
-
},
|
|
8430
|
-
call: function call(arg) {
|
|
8431
|
-
handlers.forEach(function (fn) {
|
|
8432
|
-
return fn && fn(arg);
|
|
8433
|
-
});
|
|
8434
|
-
}
|
|
8435
|
-
};
|
|
8436
|
-
}
|
|
8437
|
-
|
|
8438
|
-
function createKey() {
|
|
8439
|
-
return Math.random().toString(36).substr(2, 8);
|
|
8440
|
-
}
|
|
8441
|
-
/**
|
|
8442
|
-
* Creates a string URL path from the given pathname, search, and hash components.
|
|
8443
|
-
*
|
|
8444
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createpath
|
|
8445
|
-
*/
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
function createPath(_ref) {
|
|
8449
|
-
var _ref$pathname = _ref.pathname,
|
|
8450
|
-
pathname = _ref$pathname === void 0 ? '/' : _ref$pathname,
|
|
8451
|
-
_ref$search = _ref.search,
|
|
8452
|
-
search = _ref$search === void 0 ? '' : _ref$search,
|
|
8453
|
-
_ref$hash = _ref.hash,
|
|
8454
|
-
hash = _ref$hash === void 0 ? '' : _ref$hash;
|
|
8455
|
-
if (search && search !== '?') pathname += search.charAt(0) === '?' ? search : '?' + search;
|
|
8456
|
-
if (hash && hash !== '#') pathname += hash.charAt(0) === '#' ? hash : '#' + hash;
|
|
8457
|
-
return pathname;
|
|
8458
|
-
}
|
|
8459
|
-
/**
|
|
8460
|
-
* Parses a string URL path into its separate pathname, search, and hash components.
|
|
8461
|
-
*
|
|
8462
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath
|
|
8463
|
-
*/
|
|
8464
|
-
|
|
8465
|
-
function parsePath(path) {
|
|
8466
|
-
var parsedPath = {};
|
|
8467
|
-
|
|
8468
|
-
if (path) {
|
|
8469
|
-
var hashIndex = path.indexOf('#');
|
|
8470
|
-
|
|
8471
|
-
if (hashIndex >= 0) {
|
|
8472
|
-
parsedPath.hash = path.substr(hashIndex);
|
|
8473
|
-
path = path.substr(0, hashIndex);
|
|
8474
|
-
}
|
|
8475
|
-
|
|
8476
|
-
var searchIndex = path.indexOf('?');
|
|
8477
|
-
|
|
8478
|
-
if (searchIndex >= 0) {
|
|
8479
|
-
parsedPath.search = path.substr(searchIndex);
|
|
8480
|
-
path = path.substr(0, searchIndex);
|
|
8481
|
-
}
|
|
8482
|
-
|
|
8483
|
-
if (path) {
|
|
8484
|
-
parsedPath.pathname = path;
|
|
8485
|
-
}
|
|
8486
|
-
}
|
|
8487
|
-
|
|
8488
|
-
return parsedPath;
|
|
8489
|
-
}
|
|
8181
|
+
const j = /*@__PURE__*/stencilHooks_module.getDefaultExportFromCjs(dist$1);
|
|
8490
8182
|
|
|
8491
|
-
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 stencilHooks_module.h(r,LOCALE_CONTEXT_NAME)}function W(){lazilyStartProgramContext();var e=x();return stencilHooks_module.h(e,PROGRAM_CONTEXT_NAME)}function L(){var e;return null==(e=_())?void 0:e.jwt}function _(){lazilyStartUserContext();var e=x(),n=stencilHooks_module.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=stencilHooks_module.h(i,"sq:graphql-client",{attempts:0}))?s:o),c=stencilHooks_module.useReducer(we,n),l=c[1];return [c[0],useCallback.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=stencilHooks_module.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.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;stencilHooks_module.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=stencilHooks_module.useRef(e),r=stencilHooks_module.useRef(0);return equal(e,n.current)||(n.current=e,r.current+=1),stencilHooks_module.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=stencilHooks_module.useRef(Je);Te({skip:a.current===Je,update:t,variables:a.current});var o=useCallback.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=stencilHooks_module.useRef();return r.current&&equal(n,r.current.key)||(r.current={key:n,value:e()}),r.current.value}function un(){return stencilHooks_module.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 stencilHooks_module.useEffect(function(){return fn().listen(function(){e();})},[]),fn().location}function pn(e){var n=stencilHooks_module.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"])));
|
|
8183
|
+
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 stencilHooks_module.h(r,LOCALE_CONTEXT_NAME)}function O(){lazilyStartProgramContext();var e=R();return stencilHooks_module.h(e,PROGRAM_CONTEXT_NAME)}function H(){var e;return null==(e=N())?void 0:e.jwt}function N(){lazilyStartUserContext();var e=R(),n=stencilHooks_module.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=stencilHooks_module.h(i,"sq:graphql-client",{attempts:0}))?s:o),d=stencilHooks_module.useReducer(Ce,n),c=d[1];return [d[0],useCallback.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=stencilHooks_module.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.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;stencilHooks_module.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=stencilHooks_module.useRef(e),r=stencilHooks_module.useRef(0);return equal(e,n.current)||(n.current=e,r.current+=1),stencilHooks_module.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=stencilHooks_module.useRef(Qe);_e({skip:a.current===Qe,update:t,variables:a.current});var o=useCallback.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=stencilHooks_module.useRef();return r.current&&equal(n,r.current.key)||(r.current={key:n,value:e()}),r.current.value}function on(){return stencilHooks_module.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 stencilHooks_module.useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var ln,fn=history_default;function mn(e){var n=stencilHooks_module.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"])));
|
|
8492
8184
|
|
|
8493
|
-
exports.$e = $e;
|
|
8494
|
-
exports.Ce = Ce;
|
|
8495
|
-
exports.Ge = Ge;
|
|
8496
8185
|
exports.H = H;
|
|
8497
|
-
exports.Ie = Ie;
|
|
8498
8186
|
exports.L = L;
|
|
8187
|
+
exports.Le = Le;
|
|
8188
|
+
exports.Me = Me;
|
|
8189
|
+
exports.N = N;
|
|
8499
8190
|
exports.Ne = Ne;
|
|
8500
8191
|
exports.O = O;
|
|
8501
|
-
exports.
|
|
8502
|
-
exports.
|
|
8503
|
-
exports.Re = Re;
|
|
8504
|
-
exports.Se = Se;
|
|
8192
|
+
exports.Pe = Pe;
|
|
8193
|
+
exports.R = R;
|
|
8505
8194
|
exports.U = U;
|
|
8506
|
-
exports.
|
|
8507
|
-
exports.
|
|
8508
|
-
exports.
|
|
8509
|
-
exports.
|
|
8510
|
-
exports.
|
|
8195
|
+
exports.V = V;
|
|
8196
|
+
exports.Ve = Ve;
|
|
8197
|
+
exports.We = We;
|
|
8198
|
+
exports.Xe = Xe;
|
|
8199
|
+
exports.cn = cn;
|
|
8511
8200
|
exports.dist = dist;
|
|
8512
8201
|
exports.dn = dn;
|
|
8513
|
-
exports.
|
|
8202
|
+
exports.fn = fn;
|
|
8514
8203
|
exports.getEnvironmentSDK = getEnvironmentSDK;
|
|
8515
|
-
exports.
|
|
8516
|
-
exports.hn = hn;
|
|
8204
|
+
exports.he = he;
|
|
8517
8205
|
exports.isDemo = isDemo;
|
|
8206
|
+
exports.je = je;
|
|
8518
8207
|
exports.memoize = memoize$1;
|
|
8208
|
+
exports.nn = nn;
|
|
8519
8209
|
exports.on = on;
|
|
8210
|
+
exports.qe = qe;
|
|
8520
8211
|
exports.setProgramId = setProgramId;
|
|
8521
8212
|
exports.setUserIdentity = setUserIdentity;
|
|
8522
8213
|
exports.src = src;
|
|
8523
8214
|
exports.tn = tn;
|
|
8524
|
-
exports.un = un;
|
|
8525
8215
|
exports.vn = vn;
|
|
8526
8216
|
exports.x = x;
|
|
8217
|
+
exports.ye = ye;
|
|
8218
|
+
exports.ze = ze;
|