@saasquatch/mint-components 1.5.2 → 1.5.3-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -1
- package/dist/cjs/{GenericTableView-c2a781ea.js → GenericTableView-f98bcef7.js} +1 -1
- package/dist/cjs/{JSS-a75f3a9a.js → JSS-c73206b7.js} +35 -19
- package/dist/cjs/{ShadowViewAddon-9b256c28.js → ShadowViewAddon-0becaef1.js} +95 -54
- package/dist/cjs/{global-dd180d3b.js → global-7eb8c483.js} +161 -10
- package/dist/cjs/index-4933129a.js +2227 -0
- package/dist/cjs/{index.module-fb61a163.js → index.module-c9cec1f7.js} +58 -540
- package/dist/cjs/loader.cjs.js +5 -6
- package/dist/cjs/{luxon-59ca7d19.js → luxon-6b09461e.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -6
- package/dist/cjs/{re-render-f41e352c.js → re-render-12cb778f.js} +2 -2
- package/dist/cjs/{sqm-asset-card-view-07420209.js → sqm-asset-card-view-7e16757a.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-big-stat_34.cjs.entry.js → sqm-big-stat_35.cjs.entry.js} +196 -116
- package/dist/cjs/sqm-empty_5.cjs.entry.js +7 -8
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-hero-view-d5d46a36.js → sqm-hero-view-cc468ea3.js} +3 -3
- package/dist/cjs/sqm-hero.cjs.entry.js +5 -6
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-navigation-sidebar-item-view-bd8b4dfd.js → sqm-navigation-sidebar-item-view-1513be2d.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-navigation-sidebar-view-0ee28f65.js → sqm-navigation-sidebar-view-3feda5f1.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +4 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +5 -6
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-portal-container-view-2d11ed71.js → sqm-portal-container-view-4a8432e9.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-423191eb.js → sqm-portal-email-verification-view-3d511906.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -9
- package/dist/cjs/{sqm-portal-footer-view-8442fd90.js → sqm-portal-footer-view-6be4691b.js} +2 -2
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +7 -8
- package/dist/cjs/{sqm-portal-forgot-password-view-97932f7a.js → sqm-portal-forgot-password-view-aaa8dd17.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +8 -9
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-portal-profile-view-b77382f6.js → sqm-portal-profile-view-09e80437.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-portal-reset-password-view-042073ca.js → sqm-portal-reset-password-view-035245e6.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +8 -9
- package/dist/cjs/{sqm-portal-section-view-765aae4d.js → sqm-portal-section-view-71a57cd9.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-cb3c9c2f.js → sqm-portal-verify-email-view-7014ca89.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +7 -8
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +20 -20
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -5
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -6
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +61 -61
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +277 -70
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -6
- package/dist/cjs/{sqm-text-span-view-ab4ad6ef.js → sqm-text-span-view-b0c90c27.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +4 -5
- package/dist/cjs/{stencil-hooks.module-87a1f4f7.js → stencil-hooks.module-ffd2b47a.js} +1 -3
- package/dist/cjs/{use-callback-e754042f.js → use-callback-5cddca5b.js} +1 -1
- package/dist/cjs/{useChildElements-097c3dc9.js → useChildElements-bf0a8e9a.js} +2 -2
- package/dist/cjs/{useReferralTable-a7fc07c6.js → useReferralTable-3ae21428.js} +11 -10
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +8 -1
- package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +12 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +5 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +21 -8
- package/dist/collection/components/sqm-dropdown-field/UseDropdownField.stories.js +8 -0
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +6 -2
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +22 -8
- package/dist/collection/components/sqm-hero/Hero.stories.js +1 -1
- package/dist/collection/components/sqm-input-field/InputField.stories.js +81 -0
- package/dist/collection/components/sqm-input-field/UseInputField.stories.js +77 -0
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +37 -0
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +204 -0
- package/dist/collection/components/sqm-input-field/useInputField.js +10 -0
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +3 -0
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +1 -1
- package/dist/collection/components/sqm-program-menu/ProgramMenu.stories.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +2 -3
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +2 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +5 -1
- package/dist/collection/utils/RequiredPropsError.js +21 -13
- package/dist/esm/{GenericTableView-8dc8ae86.js → GenericTableView-786af302.js} +1 -1
- package/dist/esm/{JSS-418cab16.js → JSS-506b9295.js} +17 -1
- package/dist/esm/{ShadowViewAddon-b98faaf1.js → ShadowViewAddon-89f22fc6.js} +78 -38
- package/dist/esm/{global-15cdf41a.js → global-e42fe7b7.js} +161 -10
- package/dist/esm/index-bd34bcae.js +2225 -0
- package/dist/esm/{index.module-f5e17a4e.js → index.module-baacf60e.js} +58 -537
- package/dist/esm/loader.js +5 -6
- package/dist/esm/{luxon-f44215d9.js → luxon-12da328f.js} +1 -1
- package/dist/esm/mint-components.js +5 -6
- package/dist/esm/{re-render-8f0a7ab1.js → re-render-a9b7d08b.js} +2 -2
- package/dist/esm/{sqm-asset-card-view-68f80b85.js → sqm-asset-card-view-de0f3463.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +5 -6
- package/dist/esm/{sqm-big-stat_34.entry.js → sqm-big-stat_35.entry.js} +154 -75
- package/dist/esm/sqm-empty_5.entry.js +4 -5
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -4
- package/dist/esm/{sqm-hero-view-99b40ec1.js → sqm-hero-view-4af49f88.js} +3 -3
- package/dist/esm/sqm-hero.entry.js +4 -5
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-item-view-73f753fa.js → sqm-navigation-sidebar-item-view-96cb4b73.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -6
- package/dist/esm/{sqm-navigation-sidebar-view-9cb9a5f4.js → sqm-navigation-sidebar-view-e2347888.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -4
- package/dist/esm/sqm-password-field.entry.js +4 -5
- package/dist/esm/sqm-popup-container.entry.js +3 -4
- package/dist/esm/{sqm-portal-container-view-34f26e2a.js → sqm-portal-container-view-8f1bcc77.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-cc73f8f4.js → sqm-portal-email-verification-view-65ec0fc7.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -8
- package/dist/esm/{sqm-portal-footer-view-d06c4b78.js → sqm-portal-footer-view-31fbf426.js} +2 -2
- package/dist/esm/sqm-portal-footer.entry.js +6 -7
- package/dist/esm/{sqm-portal-forgot-password-view-f7239087.js → sqm-portal-forgot-password-view-38910bc9.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +7 -8
- package/dist/esm/sqm-portal-logout.entry.js +3 -4
- package/dist/esm/{sqm-portal-profile-view-28c39970.js → sqm-portal-profile-view-d53e37e1.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +9 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +3 -4
- package/dist/esm/{sqm-portal-reset-password-view-e0436989.js → sqm-portal-reset-password-view-55411ca5.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -8
- package/dist/esm/{sqm-portal-section-view-c8d1c727.js → sqm-portal-section-view-d64cd5de.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c489166b.js → sqm-portal-verify-email-view-7ba350f9.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -7
- package/dist/esm/sqm-referral-table_11.entry.js +12 -12
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -4
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +11 -11
- package/dist/esm/sqm-stencilbook.entry.js +275 -68
- package/dist/esm/sqm-tabs.entry.js +4 -5
- package/dist/esm/{sqm-text-span-view-020db63f.js → sqm-text-span-view-20c0f018.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -4
- package/dist/esm/{stencil-hooks.module-acc8a613.js → stencil-hooks.module-59bf962a.js} +1 -1
- package/dist/esm/{use-callback-7e0bfd3b.js → use-callback-144b9a67.js} +1 -1
- package/dist/esm/{useChildElements-3ffd7077.js → useChildElements-aaca692e.js} +2 -2
- package/dist/esm/{useReferralTable-d8a7e3be.js → useReferralTable-52da5c20.js} +5 -4
- package/dist/esm-es5/{GenericTableView-8dc8ae86.js → GenericTableView-786af302.js} +1 -1
- package/dist/esm-es5/{JSS-418cab16.js → JSS-506b9295.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-89f22fc6.js +1 -0
- package/dist/esm-es5/global-e42fe7b7.js +285 -0
- package/dist/esm-es5/index-bd34bcae.js +1 -0
- package/dist/esm-es5/index.module-baacf60e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-f44215d9.js → luxon-12da328f.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-8f0a7ab1.js → re-render-a9b7d08b.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-68f80b85.js → sqm-asset-card-view-de0f3463.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 -0
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-99b40ec1.js → sqm-hero-view-4af49f88.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-73f753fa.js → sqm-navigation-sidebar-item-view-96cb4b73.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-9cb9a5f4.js → sqm-navigation-sidebar-view-e2347888.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-34f26e2a.js → sqm-portal-container-view-8f1bcc77.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-cc73f8f4.js → sqm-portal-email-verification-view-65ec0fc7.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-d06c4b78.js → sqm-portal-footer-view-31fbf426.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-f7239087.js → sqm-portal-forgot-password-view-38910bc9.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-28c39970.js → sqm-portal-profile-view-d53e37e1.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-reset-password-view-e0436989.js → sqm-portal-reset-password-view-55411ca5.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-section-view-d64cd5de.js +1 -0
- package/dist/esm-es5/{sqm-portal-verify-email-view-c489166b.js → sqm-portal-verify-email-view-7ba350f9.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-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-020db63f.js → sqm-text-span-view-20c0f018.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-acc8a613.js → stencil-hooks.module-59bf962a.js} +1 -1
- package/dist/esm-es5/use-callback-144b9a67.js +1 -0
- package/dist/esm-es5/{useChildElements-3ffd7077.js → useChildElements-aaca692e.js} +1 -1
- package/dist/esm-es5/useReferralTable-52da5c20.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-03f9d2d7.system.entry.js +1 -0
- package/dist/mint-components/p-06c6c9c8.system.entry.js +1 -0
- package/dist/mint-components/p-07e75fd0.system.js +1 -0
- package/dist/mint-components/{p-b968f779.js → p-07ee010b.js} +1 -1
- package/dist/mint-components/p-0cd07cea.entry.js +1 -0
- package/dist/mint-components/p-0d4d1169.system.js +1 -0
- package/dist/mint-components/p-14119252.system.entry.js +1 -0
- package/dist/mint-components/{p-baebc359.system.js → p-198b17ed.system.js} +1 -1
- package/dist/mint-components/{p-a1b9ca51.system.js → p-1cc7a8e6.system.js} +1 -1
- package/dist/mint-components/{p-ab2cbd56.js → p-1fbf8d0b.js} +1 -1
- package/dist/mint-components/p-21e882c2.system.entry.js +1 -0
- package/dist/mint-components/p-256a8daa.system.js +1 -0
- package/dist/mint-components/p-269fdb27.entry.js +1 -0
- package/dist/mint-components/p-26f81084.entry.js +1 -0
- package/dist/mint-components/p-28a5e360.entry.js +1 -0
- package/dist/mint-components/p-29a8adea.system.entry.js +1 -0
- package/dist/mint-components/p-29ba3da1.system.entry.js +1 -0
- package/dist/mint-components/{p-dcec5845.js → p-301d2d09.js} +1 -1
- package/dist/mint-components/p-3064bb3d.js +268 -0
- package/dist/mint-components/{p-cf9cfac0.entry.js → p-31847ef1.entry.js} +1 -1
- package/dist/mint-components/{p-5fca1bb9.system.js → p-330680dd.system.js} +1 -1
- package/dist/mint-components/{p-50019ebe.system.entry.js → p-377d5399.system.entry.js} +1 -1
- package/dist/mint-components/p-3bb4fd18.system.js +8 -0
- package/dist/mint-components/p-3bd4706b.system.entry.js +1 -0
- package/dist/mint-components/{p-85771eab.system.entry.js → p-3cea0d56.system.entry.js} +1 -1
- package/dist/mint-components/p-3f4789b5.entry.js +9 -0
- package/dist/mint-components/p-40b50dfa.entry.js +1 -0
- package/dist/mint-components/{p-774d205c.system.js → p-43b04cea.system.js} +22 -22
- package/dist/mint-components/{p-f214b557.js → p-450537d7.js} +3 -3
- package/dist/mint-components/p-45e9d3af.system.entry.js +1 -0
- package/dist/mint-components/{p-c4c73067.system.js → p-4708ece8.system.js} +1 -1
- package/dist/mint-components/p-48d0acd2.entry.js +1 -0
- package/dist/mint-components/p-4ed9b5a8.entry.js +1 -0
- package/dist/mint-components/p-510b5f3e.system.entry.js +1 -0
- package/dist/mint-components/p-51f65e88.system.entry.js +1 -0
- package/dist/mint-components/{p-894cf728.system.js → p-51fc3d02.system.js} +1 -1
- package/dist/mint-components/{p-48ec6605.system.js → p-57c3d6e3.system.js} +2 -2
- package/dist/mint-components/p-59b9b6cd.entry.js +1 -0
- package/dist/mint-components/{p-e8f5f4e0.js → p-5a1ed9bb.js} +1 -1
- package/dist/mint-components/{p-36c073ce.entry.js → p-5dc150ef.entry.js} +2 -2
- package/dist/mint-components/p-5f271b67.entry.js +13 -0
- package/dist/mint-components/{p-937bf427.system.js → p-621a2912.system.js} +1 -1
- package/dist/mint-components/p-65e7595f.entry.js +1 -0
- package/dist/mint-components/p-65f4f656.system.js +1 -0
- package/dist/mint-components/{p-c6e6162c.js → p-66072e0a.js} +1 -1
- package/dist/mint-components/p-72c8c85b.entry.js +1 -0
- package/dist/mint-components/{p-9c2fd3e4.system.js → p-760e06dc.system.js} +1 -1
- package/dist/mint-components/{p-72b3562a.system.js → p-774c9bb9.system.js} +1 -1
- package/dist/mint-components/p-7e014c96.js +1 -0
- package/dist/mint-components/p-81b6da22.system.entry.js +1 -0
- package/dist/mint-components/p-81bf0483.entry.js +1 -0
- package/dist/mint-components/p-8295d389.js +1 -0
- package/dist/mint-components/p-85e934c8.js +1 -0
- package/dist/mint-components/{p-46416f3e.js → p-864be7c2.js} +1 -1
- package/dist/mint-components/p-88074d22.entry.js +1 -0
- package/dist/mint-components/{p-36c2267d.js → p-896a1f38.js} +1 -1
- package/dist/mint-components/{p-27455c4c.js → p-8b4c8f6c.js} +1 -1
- package/dist/mint-components/p-8c06a2fc.system.entry.js +1 -0
- package/dist/mint-components/{p-ce474d92.system.js → p-91c3ddbf.system.js} +1 -1
- package/dist/mint-components/{p-7794c289.js → p-93f308ff.js} +1 -1
- package/dist/mint-components/{p-52ca31c9.entry.js → p-94941e98.entry.js} +12 -12
- package/dist/mint-components/{p-311a0e60.system.js → p-94b7c515.system.js} +1 -1
- package/dist/mint-components/p-954ffe64.system.entry.js +1 -0
- package/dist/mint-components/p-982fb67b.js +1 -0
- package/dist/mint-components/{p-5bbead79.system.entry.js → p-99cf69e3.system.entry.js} +1 -1
- package/dist/mint-components/{p-227ccb7c.js → p-9fd08e41.js} +1 -1
- package/dist/mint-components/p-9fff69ad.js +1 -0
- package/dist/mint-components/{p-c5573b7c.js → p-a0b933b5.js} +1 -1
- package/dist/mint-components/{p-8894c616.entry.js → p-a2ca69c1.entry.js} +1 -1
- package/dist/mint-components/p-a42b2f73.system.entry.js +1 -0
- package/dist/mint-components/p-a455e4b0.system.js +1 -0
- package/dist/mint-components/{p-06a4d499.system.js → p-a672dec4.system.js} +1 -1
- package/dist/mint-components/p-a6c936c4.system.entry.js +1 -0
- package/dist/mint-components/p-aa93012c.system.entry.js +1 -0
- package/dist/mint-components/{p-c5f46105.entry.js → p-b52ffaa6.entry.js} +3 -3
- package/dist/mint-components/{p-58442d48.system.entry.js → p-b9bd9853.system.entry.js} +1 -1
- package/dist/mint-components/p-b9e6ae04.system.entry.js +1 -0
- package/dist/mint-components/p-bb8a7842.entry.js +1 -0
- package/dist/mint-components/p-bc31cd46.system.entry.js +1 -0
- package/dist/mint-components/{p-13f034ac.system.js → p-c304cdde.system.js} +1 -1
- package/dist/mint-components/p-c3ecd0de.entry.js +1 -0
- package/dist/mint-components/{p-a6d4cffd.system.entry.js → p-c952a123.system.entry.js} +1 -1
- package/dist/mint-components/p-cf4c2f8e.system.js +1 -0
- package/dist/mint-components/{p-190d0446.system.js → p-d1242e79.system.js} +1 -1
- package/dist/mint-components/{p-99c57fce.js → p-d1dac237.js} +1 -1
- package/dist/mint-components/{p-bbf96ff3.system.js → p-d34a5072.system.js} +1 -1
- package/dist/mint-components/p-d624972c.entry.js +1 -0
- package/dist/mint-components/p-d926cf38.system.entry.js +1 -0
- package/dist/mint-components/p-dd1729db.entry.js +1 -0
- package/dist/mint-components/{p-8fc1aef1.js → p-e312a5ed.js} +1 -1
- package/dist/mint-components/{p-f0b9e163.js → p-e367460b.js} +153 -153
- package/dist/mint-components/p-e577f5dd.system.js +1 -0
- package/dist/mint-components/{p-274a87bd.js → p-ebd3a98b.js} +1 -1
- package/dist/mint-components/{p-3768d478.system.js → p-ec104c1d.system.js} +1 -1
- package/dist/mint-components/p-edeceedd.system.entry.js +1 -0
- package/dist/mint-components/p-ee49e509.entry.js +1 -0
- package/dist/mint-components/{p-9f08dc58.js → p-f30000d4.js} +1 -1
- package/dist/mint-components/p-f32d2074.entry.js +1 -0
- package/dist/mint-components/p-f3a65df7.js +1 -0
- package/dist/mint-components/{p-fa6a579e.system.js → p-f6c2e436.system.js} +1 -1
- package/dist/mint-components/p-fd6ba06e.system.entry.js +1 -0
- package/dist/mint-components/{p-380b25a3.js → p-ff39746d.js} +1 -1
- package/dist/mint-components/p-ffe8edba.entry.js +1 -0
- package/dist/types/components/sqm-checkbox-field/CheckboxField.stories.d.ts +3 -0
- package/dist/types/components/sqm-checkbox-field/UseCheckboxField.stories.d.ts +9 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +6 -3
- package/dist/types/components/sqm-dropdown-field/UseDropdownField.stories.d.ts +6 -0
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field-view.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +6 -3
- package/dist/types/components/sqm-input-field/InputField.stories.d.ts +15 -0
- package/dist/types/components/sqm-input-field/UseInputField.stories.d.ts +49 -0
- package/dist/types/components/sqm-input-field/sqm-input-field-view.d.ts +14 -0
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +41 -0
- package/dist/types/components/sqm-input-field/useInputField.d.ts +5 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +4 -1
- package/dist/types/components.d.ts +92 -14
- package/dist/types/utils/RequiredPropsError.d.ts +4 -1
- package/docs/docs.docx +0 -0
- package/docs/grapesjs.js +54 -0
- package/docs/raisins.json +1 -0
- package/docs/stats.json +39222 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +8 -3
- package/shoelace/assets/icons/123.svg +3 -0
- package/shoelace/assets/icons/activity.svg +3 -0
- package/shoelace/assets/icons/apple.svg +4 -0
- package/shoelace/assets/icons/bandaid-fill.svg +3 -0
- package/shoelace/assets/icons/bandaid.svg +4 -0
- package/shoelace/assets/icons/bank.svg +3 -0
- package/shoelace/assets/icons/bank2.svg +3 -0
- package/shoelace/assets/icons/behance.svg +3 -0
- package/shoelace/assets/icons/bell-slash-fill.svg +3 -0
- package/shoelace/assets/icons/bell-slash.svg +3 -0
- package/shoelace/assets/icons/bluetooth.svg +3 -0
- package/shoelace/assets/icons/body-text.svg +3 -0
- package/shoelace/assets/icons/boombox-fill.svg +4 -0
- package/shoelace/assets/icons/boombox.svg +6 -0
- package/shoelace/assets/icons/boxes.svg +3 -0
- package/shoelace/assets/icons/cash-coin.svg +6 -0
- package/shoelace/assets/icons/check-lg.svg +3 -0
- package/shoelace/assets/icons/cloud-haze2.svg +3 -0
- package/shoelace/assets/icons/coin.svg +5 -0
- package/shoelace/assets/icons/currency-bitcoin.svg +3 -0
- package/shoelace/assets/icons/currency-dollar.svg +3 -0
- package/shoelace/assets/icons/currency-euro.svg +3 -0
- package/shoelace/assets/icons/currency-exchange.svg +3 -0
- package/shoelace/assets/icons/currency-pound.svg +3 -0
- package/shoelace/assets/icons/currency-yen.svg +3 -0
- package/shoelace/assets/icons/dash-lg.svg +3 -0
- package/shoelace/assets/icons/device-hdd-fill.svg +4 -0
- package/shoelace/assets/icons/device-hdd.svg +5 -0
- package/shoelace/assets/icons/device-ssd-fill.svg +4 -0
- package/shoelace/assets/icons/device-ssd.svg +4 -0
- package/shoelace/assets/icons/displayport-fill.svg +3 -0
- package/shoelace/assets/icons/displayport.svg +4 -0
- package/shoelace/assets/icons/dpad-fill.svg +3 -0
- package/shoelace/assets/icons/dpad.svg +4 -0
- package/shoelace/assets/icons/dribbble.svg +3 -0
- package/shoelace/assets/icons/ear-fill.svg +3 -0
- package/shoelace/assets/icons/ear.svg +3 -0
- package/shoelace/assets/icons/easel2-fill.svg +4 -0
- package/shoelace/assets/icons/easel2.svg +3 -0
- package/shoelace/assets/icons/easel3-fill.svg +3 -0
- package/shoelace/assets/icons/easel3.svg +3 -0
- package/shoelace/assets/icons/envelope-check-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-check.svg +4 -0
- package/shoelace/assets/icons/envelope-dash-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-dash.svg +4 -0
- package/shoelace/assets/icons/envelope-exclamation-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-exclamation.svg +4 -0
- package/shoelace/assets/icons/envelope-plus-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-plus.svg +4 -0
- package/shoelace/assets/icons/envelope-slash-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-slash.svg +4 -0
- package/shoelace/assets/icons/envelope-x-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-x.svg +4 -0
- package/shoelace/assets/icons/ethernet.svg +4 -0
- package/shoelace/assets/icons/exclamation-lg.svg +3 -0
- package/shoelace/assets/icons/explicit-fill.svg +3 -0
- package/shoelace/assets/icons/explicit.svg +4 -0
- package/shoelace/assets/icons/fan.svg +4 -0
- package/shoelace/assets/icons/file-earmark-pdf-fill.svg +4 -0
- package/shoelace/assets/icons/file-earmark-pdf.svg +4 -0
- package/shoelace/assets/icons/file-pdf-fill.svg +4 -0
- package/shoelace/assets/icons/file-pdf.svg +4 -0
- package/shoelace/assets/icons/fingerprint.svg +7 -0
- package/shoelace/assets/icons/gender-ambiguous.svg +3 -0
- package/shoelace/assets/icons/gender-female.svg +3 -0
- package/shoelace/assets/icons/gender-male.svg +3 -0
- package/shoelace/assets/icons/gender-trans.svg +3 -0
- package/shoelace/assets/icons/git.svg +3 -0
- package/shoelace/assets/icons/gpu-card.svg +5 -0
- package/shoelace/assets/icons/graph-down-arrow.svg +3 -0
- package/shoelace/assets/icons/graph-up-arrow.svg +3 -0
- package/shoelace/assets/icons/hdmi-fill.svg +3 -0
- package/shoelace/assets/icons/hdmi.svg +4 -0
- package/shoelace/assets/icons/headset-vr.svg +4 -0
- package/shoelace/assets/icons/hypnotize.svg +4 -0
- package/shoelace/assets/icons/infinity.svg +3 -0
- package/shoelace/assets/icons/info-lg.svg +3 -0
- package/shoelace/assets/icons/line.svg +3 -0
- package/shoelace/assets/icons/list-columns-reverse.svg +3 -0
- package/shoelace/assets/icons/list-columns.svg +3 -0
- package/shoelace/assets/icons/magic.svg +3 -0
- package/shoelace/assets/icons/mastodon.svg +3 -0
- package/shoelace/assets/icons/medium.svg +3 -0
- package/shoelace/assets/icons/memory.svg +3 -0
- package/shoelace/assets/icons/messenger.svg +3 -0
- package/shoelace/assets/icons/meta.svg +3 -0
- package/shoelace/assets/icons/microsoft.svg +3 -0
- package/shoelace/assets/icons/modem-fill.svg +3 -0
- package/shoelace/assets/icons/modem.svg +4 -0
- package/shoelace/assets/icons/mortarboard-fill.svg +4 -0
- package/shoelace/assets/icons/mortarboard.svg +4 -0
- package/shoelace/assets/icons/motherboard-fill.svg +4 -0
- package/shoelace/assets/icons/motherboard.svg +4 -0
- package/shoelace/assets/icons/nintendo-switch.svg +4 -0
- package/shoelace/assets/icons/optical-audio-fill.svg +4 -0
- package/shoelace/assets/icons/optical-audio.svg +5 -0
- package/shoelace/assets/icons/paypal.svg +3 -0
- package/shoelace/assets/icons/pc-display-horizontal.svg +3 -0
- package/shoelace/assets/icons/pc-display.svg +3 -0
- package/shoelace/assets/icons/pc-horizontal.svg +3 -0
- package/shoelace/assets/icons/pc.svg +3 -0
- package/shoelace/assets/icons/pci-card.svg +4 -0
- package/shoelace/assets/icons/person-rolodex.svg +4 -0
- package/shoelace/assets/icons/person-video.svg +4 -0
- package/shoelace/assets/icons/person-video2.svg +4 -0
- package/shoelace/assets/icons/person-video3.svg +4 -0
- package/shoelace/assets/icons/person-workspace.svg +4 -0
- package/shoelace/assets/icons/piggy-bank-fill.svg +3 -0
- package/shoelace/assets/icons/piggy-bank.svg +4 -0
- package/shoelace/assets/icons/pin-map-fill.svg +4 -0
- package/shoelace/assets/icons/pin-map.svg +4 -0
- package/shoelace/assets/icons/pinterest.svg +3 -0
- package/shoelace/assets/icons/playstation.svg +3 -0
- package/shoelace/assets/icons/plus-lg.svg +3 -0
- package/shoelace/assets/icons/plus-slash-minus.svg +3 -0
- package/shoelace/assets/icons/projector-fill.svg +3 -0
- package/shoelace/assets/icons/projector.svg +4 -0
- package/shoelace/assets/icons/qr-code-scan.svg +7 -0
- package/shoelace/assets/icons/qr-code.svg +7 -0
- package/shoelace/assets/icons/question-lg.svg +3 -0
- package/shoelace/assets/icons/quora.svg +3 -0
- package/shoelace/assets/icons/quote.svg +3 -0
- package/shoelace/assets/icons/radioactive.svg +4 -0
- package/shoelace/assets/icons/recycle.svg +3 -0
- package/shoelace/assets/icons/reddit.svg +4 -0
- package/shoelace/assets/icons/robot.svg +4 -0
- package/shoelace/assets/icons/router-fill.svg +6 -0
- package/shoelace/assets/icons/router.svg +6 -0
- package/shoelace/assets/icons/safe-fill.svg +4 -0
- package/shoelace/assets/icons/safe.svg +4 -0
- package/shoelace/assets/icons/safe2-fill.svg +4 -0
- package/shoelace/assets/icons/safe2.svg +4 -0
- package/shoelace/assets/icons/sd-card-fill.svg +3 -0
- package/shoelace/assets/icons/sd-card.svg +4 -0
- package/shoelace/assets/icons/send-check-fill.svg +4 -0
- package/shoelace/assets/icons/send-check.svg +4 -0
- package/shoelace/assets/icons/send-dash-fill.svg +4 -0
- package/shoelace/assets/icons/send-dash.svg +4 -0
- package/shoelace/assets/icons/send-exclamation-fill.svg +4 -0
- package/shoelace/assets/icons/send-exclamation.svg +4 -0
- package/shoelace/assets/icons/send-fill.svg +3 -0
- package/shoelace/assets/icons/send-plus-fill.svg +4 -0
- package/shoelace/assets/icons/send-plus.svg +4 -0
- package/shoelace/assets/icons/send-slash-fill.svg +4 -0
- package/shoelace/assets/icons/send-slash.svg +4 -0
- package/shoelace/assets/icons/send-x-fill.svg +4 -0
- package/shoelace/assets/icons/send-x.svg +4 -0
- package/shoelace/assets/icons/send.svg +3 -0
- package/shoelace/assets/icons/signal.svg +3 -0
- package/shoelace/assets/icons/skype.svg +3 -0
- package/shoelace/assets/icons/slash-lg.svg +3 -0
- package/shoelace/assets/icons/snapchat.svg +3 -0
- package/shoelace/assets/icons/spotify.svg +3 -0
- package/shoelace/assets/icons/stack-overflow.svg +4 -0
- package/shoelace/assets/icons/steam.svg +4 -0
- package/shoelace/assets/icons/strava.svg +3 -0
- package/shoelace/assets/icons/terminal-dash.svg +4 -0
- package/shoelace/assets/icons/terminal-plus.svg +4 -0
- package/shoelace/assets/icons/terminal-split.svg +4 -0
- package/shoelace/assets/icons/terminal-x.svg +4 -0
- package/shoelace/assets/icons/thunderbolt-fill.svg +3 -0
- package/shoelace/assets/icons/thunderbolt.svg +4 -0
- package/shoelace/assets/icons/ticket-detailed-fill.svg +3 -0
- package/shoelace/assets/icons/ticket-detailed.svg +4 -0
- package/shoelace/assets/icons/ticket-fill.svg +3 -0
- package/shoelace/assets/icons/ticket-perforated-fill.svg +3 -0
- package/shoelace/assets/icons/ticket-perforated.svg +4 -0
- package/shoelace/assets/icons/ticket.svg +3 -0
- package/shoelace/assets/icons/tiktok.svg +3 -0
- package/shoelace/assets/icons/translate.svg +4 -0
- package/shoelace/assets/icons/usb-c-fill.svg +3 -0
- package/shoelace/assets/icons/usb-c.svg +4 -0
- package/shoelace/assets/icons/usb-drive-fill.svg +3 -0
- package/shoelace/assets/icons/usb-drive.svg +3 -0
- package/shoelace/assets/icons/usb-fill.svg +3 -0
- package/shoelace/assets/icons/usb-micro-fill.svg +3 -0
- package/shoelace/assets/icons/usb-micro.svg +4 -0
- package/shoelace/assets/icons/usb-mini-fill.svg +3 -0
- package/shoelace/assets/icons/usb-mini.svg +4 -0
- package/shoelace/assets/icons/usb-plug-fill.svg +3 -0
- package/shoelace/assets/icons/usb-plug.svg +3 -0
- package/shoelace/assets/icons/usb-symbol.svg +3 -0
- package/shoelace/assets/icons/usb.svg +4 -0
- package/shoelace/assets/icons/vimeo.svg +3 -0
- package/shoelace/assets/icons/webcam-fill.svg +4 -0
- package/shoelace/assets/icons/webcam.svg +4 -0
- package/shoelace/assets/icons/window-dash.svg +5 -0
- package/shoelace/assets/icons/window-desktop.svg +4 -0
- package/shoelace/assets/icons/window-fullscreen.svg +4 -0
- package/shoelace/assets/icons/window-plus.svg +5 -0
- package/shoelace/assets/icons/window-split.svg +4 -0
- package/shoelace/assets/icons/window-stack.svg +4 -0
- package/shoelace/assets/icons/window-x.svg +5 -0
- package/shoelace/assets/icons/windows.svg +3 -0
- package/shoelace/assets/icons/wordpress.svg +5 -0
- package/shoelace/assets/icons/x-lg.svg +4 -0
- package/shoelace/assets/icons/xbox.svg +3 -0
- package/shoelace/assets/icons/yin-yang.svg +4 -0
- package/shoelace/themes/themes/dark.styles.d.ts +2 -0
- package/shoelace/themes/themes/dark.styles.js +531 -0
- package/shoelace/themes/themes/light.css +439 -0
- package/shoelace/themes/themes/light.styles.d.ts +2 -0
- package/shoelace/themes/themes/light.styles.js +531 -0
- package/dist/cjs/extends-08099afd.js +0 -21
- package/dist/esm/extends-c31f1eff.js +0 -19
- package/dist/esm-es5/ShadowViewAddon-b98faaf1.js +0 -1
- package/dist/esm-es5/extends-c31f1eff.js +0 -1
- package/dist/esm-es5/global-15cdf41a.js +0 -285
- package/dist/esm-es5/index.module-f5e17a4e.js +0 -1
- package/dist/esm-es5/sqm-big-stat_34.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-section-view-c8d1c727.js +0 -1
- package/dist/esm-es5/use-callback-7e0bfd3b.js +0 -1
- package/dist/esm-es5/useReferralTable-d8a7e3be.js +0 -1
- package/dist/mint-components/p-003042cf.entry.js +0 -1
- package/dist/mint-components/p-02838fc9.system.entry.js +0 -1
- package/dist/mint-components/p-16b6aea4.js +0 -1
- package/dist/mint-components/p-1a10ffc0.entry.js +0 -13
- package/dist/mint-components/p-1a9cd574.entry.js +0 -1
- package/dist/mint-components/p-1c17892a.system.js +0 -1
- package/dist/mint-components/p-1c9004f0.system.entry.js +0 -1
- package/dist/mint-components/p-21b7949e.entry.js +0 -1
- package/dist/mint-components/p-2800ad44.system.js +0 -8
- package/dist/mint-components/p-2821a373.entry.js +0 -1
- package/dist/mint-components/p-31f0eaa9.system.entry.js +0 -1
- package/dist/mint-components/p-33707867.system.entry.js +0 -1
- package/dist/mint-components/p-342bfc16.entry.js +0 -1
- package/dist/mint-components/p-35a26fcd.entry.js +0 -1
- package/dist/mint-components/p-436da6b8.system.js +0 -1
- package/dist/mint-components/p-4a1f24ef.entry.js +0 -1
- package/dist/mint-components/p-4a2782fd.system.entry.js +0 -1
- package/dist/mint-components/p-596902cd.system.entry.js +0 -1
- package/dist/mint-components/p-67958347.system.entry.js +0 -1
- package/dist/mint-components/p-71ecbb3b.system.js +0 -1
- package/dist/mint-components/p-81f34787.js +0 -1
- package/dist/mint-components/p-842aa194.system.js +0 -1
- package/dist/mint-components/p-883f9baa.entry.js +0 -1
- package/dist/mint-components/p-8a1a1fb4.system.entry.js +0 -1
- package/dist/mint-components/p-95398ce2.js +0 -1
- package/dist/mint-components/p-95bbe8a7.entry.js +0 -1
- package/dist/mint-components/p-982ad256.js +0 -1
- package/dist/mint-components/p-9d162fc5.system.entry.js +0 -1
- package/dist/mint-components/p-a2b19c36.entry.js +0 -1
- package/dist/mint-components/p-a624b8d7.system.entry.js +0 -1
- package/dist/mint-components/p-a994df5c.system.entry.js +0 -1
- package/dist/mint-components/p-ab8f86d3.js +0 -1
- package/dist/mint-components/p-b1766f84.entry.js +0 -1
- package/dist/mint-components/p-b176c55c.entry.js +0 -9
- package/dist/mint-components/p-bb40479d.system.js +0 -1
- package/dist/mint-components/p-bc58ebb5.system.js +0 -1
- package/dist/mint-components/p-c2949a5b.entry.js +0 -1
- package/dist/mint-components/p-c2b561a0.system.entry.js +0 -1
- package/dist/mint-components/p-c712f1ca.system.entry.js +0 -1
- package/dist/mint-components/p-d3e114bb.system.entry.js +0 -1
- package/dist/mint-components/p-d4cc87d9.entry.js +0 -1
- package/dist/mint-components/p-d5bc4139.entry.js +0 -1
- package/dist/mint-components/p-dbe21db8.system.entry.js +0 -1
- package/dist/mint-components/p-e17c7323.system.entry.js +0 -1
- package/dist/mint-components/p-e3a7bab7.system.entry.js +0 -1
- package/dist/mint-components/p-e60132f2.system.entry.js +0 -1
- package/dist/mint-components/p-e7561cbf.entry.js +0 -1
- package/dist/mint-components/p-ebb79099.system.entry.js +0 -1
- package/dist/mint-components/p-ec7dd6f7.js +0 -1
- package/dist/mint-components/p-f209785c.entry.js +0 -1
- package/dist/mint-components/p-f221d418.entry.js +0 -1
- package/dist/mint-components/p-f298a1bc.system.entry.js +0 -1
- package/dist/mint-components/p-f69ecdf7.system.entry.js +0 -1
- package/dist/mint-components/p-f702ffef.js +0 -268
- package/dist/mint-components/p-fd4d90b9.system.js +0 -1
- package/dist/mint-components/p-fe887951.entry.js +0 -1
- package/dist/mint-components/p-ff932bfa.entry.js +0 -1
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
4
|
-
const useCallback = require('./use-callback-
|
|
5
|
-
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-ffd2b47a.js');
|
|
4
|
+
const useCallback = require('./use-callback-5cddca5b.js');
|
|
5
|
+
|
|
6
|
+
function t(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}function n(n,e,i){return e&&t(n.prototype,e),i&&t(n,i),n}var s=function(){function t(t){var n=this,e=this;this._status="Initial",this.onChange=function(t){e.options.onChange&&e.options.onChange(t);},this.onConnect=function(t){try{return n.status="Connected",n.options.onChange&&n.options.onChange(t),Promise.resolve(new Promise(function(t){n.resolvePromise=t;}))}catch(t){return Promise.reject(t)}},this.onDisconnect=function(){e.status="Connecting",e.start();},this.options=t;}var e=t.prototype;return e.start=function(){var t=this,n=0;this.status="Connecting";var e=function(){return t.status},i=a(this.options.attempts)||10,o=function(){if("Connected"!==e()){var o=new CustomEvent(t.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:t.onConnect,onChange:t.onChange,onDisconnect:t.onDisconnect}});a(t.options.element).dispatchEvent(o),"Connected"!==e()?++n>=i&&(t._interval&&clearInterval(t._interval),t.status="Timeout"):"Connected"===e()&&t._interval&&clearInterval(t._interval);}};return (a(this.options.pollingMs)||100)>0&&i>1&&(this._interval=setInterval(o,a(this.options.pollingMs)||100)),o(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t);},get:function(){return this._status}}]),t}(),c=function(){function t(t){var n=this;this.__listeners=[],this.connectListener=function(t){try{t.stopPropagation(),n.__listeners=[].concat(n.__listeners,[t.detail]);var e=function(e,i){try{var o=Promise.resolve(t.detail.onConnect(n.__current)).then(function(){});}catch(t){return i(!0,t)}return o&&o.then?o.then(i.bind(null,!1),i.bind(null,!0)):i(!1,o)}(0,function(e,i){var o,r;if(n.__listeners=(r=(o=n.__listeners).indexOf(t.detail),o.slice(0,r).concat(o.slice(r+1,o.length))),e)throw i;return i});return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},this.options=t,this.__current=a(t.initialState);}var e=t.prototype;return e.start=function(){return a(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return a(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map(function(t){t.onDisconnect();}),this.__listeners=[],this},n(t,[{key:"context",set:function(t){this.__current=t,this.__listeners.forEach(function(n){return n.onChange(t)});},get:function(){return a(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),t}();function a(t){return "function"==typeof typeof t?t():t}
|
|
7
|
+
|
|
8
|
+
function c$1(){return (c$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var u=1e3,C=60*u,l=60*C,d=24*l,f=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\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(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*C;case"seconds":case"second":case"secs":case"sec":case"s":return n*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=d?g(e,t,d,"day"):t>=l?g(e,t,l,"hour"):t>=C?g(e,t,C,"minute"):t>=u?g(e,t,u,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=d?Math.round(e/d)+"d":t>=l?Math.round(e/l)+"h":t>=C?Math.round(e/C)+"m":t>=u?Math.round(e/u)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function g(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}var p,m=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r));}),t.splice(o,0,n);},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug");}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.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+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.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`."));}})(),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=function(e){function t(e){let r,o=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date);n.diff=o-(r||o),n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return "%";a++;const s=t.formatters[o];return "function"==typeof s&&(r=s.call(n,e[a]),e.splice(a,1),a--),r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e);}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e;}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));},t.enabled=function(e){if("*"===e[e.length-1])return !0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return !1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return !0;return !1},t.humanize=f,t.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(n=>{t[n]=e[n];}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(p={exports:{}},p.exports),p.exports)("useDomContext");function h(e,n,i){void 0===i&&(i={});var u=stencilHooks_module.useRef(void 0),C=stencilHooks_module.useState(void 0),l=C[0],d=C[1],f=stencilHooks_module.useMemo(function(){var r=new s(c$1({contextName:n,element:e,onChange:function(e){u.current=e,d(e);}},i));return r.start(),m("Listener initialized",r),{listener:r}},[n,u]).listener;return stencilHooks_module.useEffect(function(){return m("Listener starting (or restarting)",f),f.start(),function(){m("Listener stopping (or restopping)",f),f.stop();}},[f,e.isConnected]),l||u.current}
|
|
6
9
|
|
|
7
10
|
var browserPonyfill = stencilHooks_module.createCommonjsModule(function (module, exports) {
|
|
8
|
-
var
|
|
9
|
-
var __self__ = (function () {
|
|
11
|
+
var __self__ = (function (root) {
|
|
10
12
|
function F() {
|
|
11
13
|
this.fetch = false;
|
|
12
|
-
this.DOMException =
|
|
14
|
+
this.DOMException = root.DOMException;
|
|
13
15
|
}
|
|
14
|
-
F.prototype =
|
|
16
|
+
F.prototype = root;
|
|
15
17
|
return new F();
|
|
16
|
-
})();
|
|
18
|
+
})(typeof self !== 'undefined' ? self : stencilHooks_module.commonjsGlobal);
|
|
17
19
|
(function(self) {
|
|
18
20
|
|
|
19
21
|
var irrelevant = (function (exports) {
|
|
@@ -540,24 +542,17 @@ var irrelevant = (function (exports) {
|
|
|
540
542
|
exports.Response = Response;
|
|
541
543
|
exports.fetch = fetch;
|
|
542
544
|
|
|
543
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
544
|
-
|
|
545
545
|
return exports;
|
|
546
546
|
|
|
547
547
|
}({}));
|
|
548
548
|
})(__self__);
|
|
549
|
-
__self__.fetch.ponyfill = true;
|
|
550
|
-
// Remove "polyfill" property added by whatwg-fetch
|
|
551
549
|
delete __self__.fetch.polyfill;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
exports =
|
|
556
|
-
exports.
|
|
557
|
-
exports.
|
|
558
|
-
exports.Headers = ctx.Headers;
|
|
559
|
-
exports.Request = ctx.Request;
|
|
560
|
-
exports.Response = ctx.Response;
|
|
550
|
+
exports = __self__.fetch; // To enable: import fetch from 'cross-fetch'
|
|
551
|
+
exports.default = __self__.fetch; // For TypeScript consumers without esModuleInterop.
|
|
552
|
+
exports.fetch = __self__.fetch; // To enable: import {fetch} from 'cross-fetch'
|
|
553
|
+
exports.Headers = __self__.Headers;
|
|
554
|
+
exports.Request = __self__.Request;
|
|
555
|
+
exports.Response = __self__.Response;
|
|
561
556
|
module.exports = exports;
|
|
562
557
|
});
|
|
563
558
|
|
|
@@ -2226,11 +2221,11 @@ function HeadersInstanceToPlainObject(headers) {
|
|
|
2226
2221
|
|
|
2227
2222
|
});
|
|
2228
2223
|
|
|
2229
|
-
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";
|
|
2224
|
+
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$1(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$1(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n$1("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t$1(e.split(".")[o]))}catch(e){throw new n$1("Invalid token specified: "+e.message)}}n$1.prototype=new Error,n$1.prototype.name="InvalidTokenError";
|
|
2230
2225
|
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2226
|
+
const { toString, hasOwnProperty } = Object.prototype;
|
|
2227
|
+
const fnToStr = Function.prototype.toString;
|
|
2228
|
+
const previousComparisons = new Map();
|
|
2234
2229
|
/**
|
|
2235
2230
|
* Performs a deep equality check on two JavaScript values, tolerating cycles.
|
|
2236
2231
|
*/
|
|
@@ -2249,8 +2244,8 @@ function check(a, b) {
|
|
|
2249
2244
|
}
|
|
2250
2245
|
// Object.prototype.toString returns a representation of the runtime type of
|
|
2251
2246
|
// the given value that is considerably more precise than typeof.
|
|
2252
|
-
|
|
2253
|
-
|
|
2247
|
+
const aTag = toString.call(a);
|
|
2248
|
+
const bTag = toString.call(b);
|
|
2254
2249
|
// If the runtime types of a and b are different, they could maybe be equal
|
|
2255
2250
|
// under some interpretation of equality, but for simplicity and performance
|
|
2256
2251
|
// we just return false instead.
|
|
@@ -2267,22 +2262,22 @@ function check(a, b) {
|
|
|
2267
2262
|
case '[object Object]': {
|
|
2268
2263
|
if (previouslyCompared(a, b))
|
|
2269
2264
|
return true;
|
|
2270
|
-
|
|
2271
|
-
|
|
2265
|
+
const aKeys = definedKeys(a);
|
|
2266
|
+
const bKeys = definedKeys(b);
|
|
2272
2267
|
// If `a` and `b` have a different number of enumerable keys, they
|
|
2273
2268
|
// must be different.
|
|
2274
|
-
|
|
2269
|
+
const keyCount = aKeys.length;
|
|
2275
2270
|
if (keyCount !== bKeys.length)
|
|
2276
2271
|
return false;
|
|
2277
2272
|
// Now make sure they have the same keys.
|
|
2278
|
-
for (
|
|
2273
|
+
for (let k = 0; k < keyCount; ++k) {
|
|
2279
2274
|
if (!hasOwnProperty.call(b, aKeys[k])) {
|
|
2280
2275
|
return false;
|
|
2281
2276
|
}
|
|
2282
2277
|
}
|
|
2283
2278
|
// Finally, check deep equality of all child properties.
|
|
2284
|
-
for (
|
|
2285
|
-
|
|
2279
|
+
for (let k = 0; k < keyCount; ++k) {
|
|
2280
|
+
const key = aKeys[k];
|
|
2286
2281
|
if (!check(a[key], b[key])) {
|
|
2287
2282
|
return false;
|
|
2288
2283
|
}
|
|
@@ -2301,21 +2296,21 @@ function check(a, b) {
|
|
|
2301
2296
|
return +a === +b;
|
|
2302
2297
|
case '[object RegExp]':
|
|
2303
2298
|
case '[object String]':
|
|
2304
|
-
return a ==
|
|
2299
|
+
return a == `${b}`;
|
|
2305
2300
|
case '[object Map]':
|
|
2306
2301
|
case '[object Set]': {
|
|
2307
2302
|
if (a.size !== b.size)
|
|
2308
2303
|
return false;
|
|
2309
2304
|
if (previouslyCompared(a, b))
|
|
2310
2305
|
return true;
|
|
2311
|
-
|
|
2312
|
-
|
|
2306
|
+
const aIterator = a.entries();
|
|
2307
|
+
const isMap = aTag === '[object Map]';
|
|
2313
2308
|
while (true) {
|
|
2314
|
-
|
|
2309
|
+
const info = aIterator.next();
|
|
2315
2310
|
if (info.done)
|
|
2316
2311
|
break;
|
|
2317
2312
|
// If a instanceof Set, aValue === aKey.
|
|
2318
|
-
|
|
2313
|
+
const [aKey, aValue] = info.value;
|
|
2319
2314
|
// So this works the same way for both Set and Map.
|
|
2320
2315
|
if (!b.has(aKey)) {
|
|
2321
2316
|
return false;
|
|
@@ -2332,7 +2327,7 @@ function check(a, b) {
|
|
|
2332
2327
|
case '[object GeneratorFunction]':
|
|
2333
2328
|
case '[object AsyncGeneratorFunction]':
|
|
2334
2329
|
case '[object Function]': {
|
|
2335
|
-
|
|
2330
|
+
const aCode = fnToStr.call(a);
|
|
2336
2331
|
if (aCode !== fnToStr.call(b)) {
|
|
2337
2332
|
return false;
|
|
2338
2333
|
}
|
|
@@ -2373,9 +2368,9 @@ function definedKeys(obj) {
|
|
|
2373
2368
|
function isDefinedKey(key) {
|
|
2374
2369
|
return this[key] !== void 0;
|
|
2375
2370
|
}
|
|
2376
|
-
|
|
2371
|
+
const nativeCodeSuffix = "{ [native code] }";
|
|
2377
2372
|
function endsWith(full, suffix) {
|
|
2378
|
-
|
|
2373
|
+
const fromIndex = full.length - suffix.length;
|
|
2379
2374
|
return fromIndex >= 0 &&
|
|
2380
2375
|
full.indexOf(suffix, fromIndex) === fromIndex;
|
|
2381
2376
|
}
|
|
@@ -2388,7 +2383,7 @@ function previouslyCompared(a, b) {
|
|
|
2388
2383
|
// graph to every object in the other graph, which is extremely unlikely),
|
|
2389
2384
|
// while still allowing weird isomorphic structures (like rings with different
|
|
2390
2385
|
// lengths) a chance to pass the equality test.
|
|
2391
|
-
|
|
2386
|
+
let bSet = previousComparisons.get(a);
|
|
2392
2387
|
if (bSet) {
|
|
2393
2388
|
// Return true here because we can be sure false will be returned somewhere
|
|
2394
2389
|
// else if the objects are not equivalent.
|
|
@@ -3154,7 +3149,6 @@ function devAssert(condition, message) {
|
|
|
3154
3149
|
* A replacement for instanceof which includes an error warning when multi-realm
|
|
3155
3150
|
* constructors are detected.
|
|
3156
3151
|
*/
|
|
3157
|
-
|
|
3158
3152
|
// See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
|
|
3159
3153
|
// See: https://webpack.js.org/guides/production/
|
|
3160
3154
|
const instanceOf = // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
|
|
@@ -6329,11 +6323,6 @@ var strategies = {
|
|
|
6329
6323
|
};
|
|
6330
6324
|
src.strategies = strategies;
|
|
6331
6325
|
|
|
6332
|
-
const memoize$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), src, {
|
|
6333
|
-
'default': src,
|
|
6334
|
-
strategies: strategies
|
|
6335
|
-
}));
|
|
6336
|
-
|
|
6337
6326
|
function isFunction(x) {
|
|
6338
6327
|
return typeof x === 'function';
|
|
6339
6328
|
}
|
|
@@ -7640,508 +7629,40 @@ exports.default = combinedQuery;
|
|
|
7640
7629
|
|
|
7641
7630
|
const w = /*@__PURE__*/stencilHooks_module.getDefaultExportFromCjs(dist$1);
|
|
7642
7631
|
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
*/
|
|
7648
|
-
var Action$1;
|
|
7649
|
-
|
|
7650
|
-
(function (Action) {
|
|
7651
|
-
/**
|
|
7652
|
-
* A POP indicates a change to an arbitrary index in the history stack, such
|
|
7653
|
-
* as a back or forward navigation. It does not describe the direction of the
|
|
7654
|
-
* navigation, only that the current index changed.
|
|
7655
|
-
*
|
|
7656
|
-
* Note: This is the default action for newly created history objects.
|
|
7657
|
-
*/
|
|
7658
|
-
Action["Pop"] = "POP";
|
|
7659
|
-
/**
|
|
7660
|
-
* A PUSH indicates a new entry being added to the history stack, such as when
|
|
7661
|
-
* a link is clicked and a new page loads. When this happens, all subsequent
|
|
7662
|
-
* entries in the stack are lost.
|
|
7663
|
-
*/
|
|
7664
|
-
|
|
7665
|
-
Action["Push"] = "PUSH";
|
|
7666
|
-
/**
|
|
7667
|
-
* A REPLACE indicates the entry at the current index in the history stack
|
|
7668
|
-
* being replaced by a new one.
|
|
7669
|
-
*/
|
|
7670
|
-
|
|
7671
|
-
Action["Replace"] = "REPLACE";
|
|
7672
|
-
})(Action$1 || (Action$1 = {}));
|
|
7673
|
-
|
|
7674
|
-
var readOnly = function (obj) {
|
|
7675
|
-
return obj;
|
|
7676
|
-
};
|
|
7632
|
+
function _extends() {
|
|
7633
|
+
_extends = Object.assign || function (target) {
|
|
7634
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
7635
|
+
var source = arguments[i];
|
|
7677
7636
|
|
|
7678
|
-
var
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
* Browser history stores the location in regular URLs. This is the standard for
|
|
7682
|
-
* most web apps, but it requires some configuration on the server to ensure you
|
|
7683
|
-
* serve the same app at multiple URLs.
|
|
7684
|
-
*
|
|
7685
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory
|
|
7686
|
-
*/
|
|
7687
|
-
|
|
7688
|
-
function createBrowserHistory(options) {
|
|
7689
|
-
if (options === void 0) {
|
|
7690
|
-
options = {};
|
|
7691
|
-
}
|
|
7692
|
-
|
|
7693
|
-
var _options = options,
|
|
7694
|
-
_options$window = _options.window,
|
|
7695
|
-
window = _options$window === void 0 ? document.defaultView : _options$window;
|
|
7696
|
-
var globalHistory = window.history;
|
|
7697
|
-
|
|
7698
|
-
function getIndexAndLocation() {
|
|
7699
|
-
var _window$location = window.location,
|
|
7700
|
-
pathname = _window$location.pathname,
|
|
7701
|
-
search = _window$location.search,
|
|
7702
|
-
hash = _window$location.hash;
|
|
7703
|
-
var state = globalHistory.state || {};
|
|
7704
|
-
return [state.idx, readOnly({
|
|
7705
|
-
pathname: pathname,
|
|
7706
|
-
search: search,
|
|
7707
|
-
hash: hash,
|
|
7708
|
-
state: state.usr || null,
|
|
7709
|
-
key: state.key || 'default'
|
|
7710
|
-
})];
|
|
7711
|
-
}
|
|
7712
|
-
|
|
7713
|
-
var blockedPopTx = null;
|
|
7714
|
-
|
|
7715
|
-
function handlePop() {
|
|
7716
|
-
if (blockedPopTx) {
|
|
7717
|
-
blockers.call(blockedPopTx);
|
|
7718
|
-
blockedPopTx = null;
|
|
7719
|
-
} else {
|
|
7720
|
-
var nextAction = Action$1.Pop;
|
|
7721
|
-
|
|
7722
|
-
var _getIndexAndLocation = getIndexAndLocation(),
|
|
7723
|
-
nextIndex = _getIndexAndLocation[0],
|
|
7724
|
-
nextLocation = _getIndexAndLocation[1];
|
|
7725
|
-
|
|
7726
|
-
if (blockers.length) {
|
|
7727
|
-
if (nextIndex != null) {
|
|
7728
|
-
var delta = index - nextIndex;
|
|
7729
|
-
|
|
7730
|
-
if (delta) {
|
|
7731
|
-
// Revert the POP
|
|
7732
|
-
blockedPopTx = {
|
|
7733
|
-
action: nextAction,
|
|
7734
|
-
location: nextLocation,
|
|
7735
|
-
retry: function retry() {
|
|
7736
|
-
go(delta * -1);
|
|
7737
|
-
}
|
|
7738
|
-
};
|
|
7739
|
-
go(delta);
|
|
7740
|
-
}
|
|
7637
|
+
for (var key in source) {
|
|
7638
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7639
|
+
target[key] = source[key];
|
|
7741
7640
|
}
|
|
7742
|
-
} else {
|
|
7743
|
-
applyTx(nextAction);
|
|
7744
7641
|
}
|
|
7745
7642
|
}
|
|
7746
|
-
}
|
|
7747
|
-
|
|
7748
|
-
window.addEventListener(PopStateEventType, handlePop);
|
|
7749
|
-
var action = Action$1.Pop;
|
|
7750
|
-
|
|
7751
|
-
var _getIndexAndLocation2 = getIndexAndLocation(),
|
|
7752
|
-
index = _getIndexAndLocation2[0],
|
|
7753
|
-
location = _getIndexAndLocation2[1];
|
|
7754
|
-
|
|
7755
|
-
var listeners = createEvents();
|
|
7756
|
-
var blockers = createEvents();
|
|
7757
|
-
|
|
7758
|
-
if (index == null) {
|
|
7759
|
-
index = 0;
|
|
7760
|
-
globalHistory.replaceState(_extends._extends({}, globalHistory.state, {
|
|
7761
|
-
idx: index
|
|
7762
|
-
}), '');
|
|
7763
|
-
}
|
|
7764
|
-
|
|
7765
|
-
function createHref(to) {
|
|
7766
|
-
return typeof to === 'string' ? to : createPath(to);
|
|
7767
|
-
} // state defaults to `null` because `window.history.state` does
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
function getNextLocation(to, state) {
|
|
7771
|
-
if (state === void 0) {
|
|
7772
|
-
state = null;
|
|
7773
|
-
}
|
|
7774
|
-
|
|
7775
|
-
return readOnly(_extends._extends({
|
|
7776
|
-
pathname: location.pathname,
|
|
7777
|
-
hash: '',
|
|
7778
|
-
search: ''
|
|
7779
|
-
}, typeof to === 'string' ? parsePath(to) : to, {
|
|
7780
|
-
state: state,
|
|
7781
|
-
key: createKey()
|
|
7782
|
-
}));
|
|
7783
|
-
}
|
|
7784
|
-
|
|
7785
|
-
function getHistoryStateAndUrl(nextLocation, index) {
|
|
7786
|
-
return [{
|
|
7787
|
-
usr: nextLocation.state,
|
|
7788
|
-
key: nextLocation.key,
|
|
7789
|
-
idx: index
|
|
7790
|
-
}, createHref(nextLocation)];
|
|
7791
|
-
}
|
|
7792
|
-
|
|
7793
|
-
function allowTx(action, location, retry) {
|
|
7794
|
-
return !blockers.length || (blockers.call({
|
|
7795
|
-
action: action,
|
|
7796
|
-
location: location,
|
|
7797
|
-
retry: retry
|
|
7798
|
-
}), false);
|
|
7799
|
-
}
|
|
7800
|
-
|
|
7801
|
-
function applyTx(nextAction) {
|
|
7802
|
-
action = nextAction;
|
|
7803
|
-
|
|
7804
|
-
var _getIndexAndLocation3 = getIndexAndLocation();
|
|
7805
|
-
|
|
7806
|
-
index = _getIndexAndLocation3[0];
|
|
7807
|
-
location = _getIndexAndLocation3[1];
|
|
7808
|
-
listeners.call({
|
|
7809
|
-
action: action,
|
|
7810
|
-
location: location
|
|
7811
|
-
});
|
|
7812
|
-
}
|
|
7813
|
-
|
|
7814
|
-
function push(to, state) {
|
|
7815
|
-
var nextAction = Action$1.Push;
|
|
7816
|
-
var nextLocation = getNextLocation(to, state);
|
|
7817
|
-
|
|
7818
|
-
function retry() {
|
|
7819
|
-
push(to, state);
|
|
7820
|
-
}
|
|
7821
|
-
|
|
7822
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
7823
|
-
var _getHistoryStateAndUr = getHistoryStateAndUrl(nextLocation, index + 1),
|
|
7824
|
-
historyState = _getHistoryStateAndUr[0],
|
|
7825
|
-
url = _getHistoryStateAndUr[1]; // TODO: Support forced reloading
|
|
7826
|
-
// try...catch because iOS limits us to 100 pushState calls :/
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
try {
|
|
7830
|
-
globalHistory.pushState(historyState, '', url);
|
|
7831
|
-
} catch (error) {
|
|
7832
|
-
// They are going to lose state here, but there is no real
|
|
7833
|
-
// way to warn them about it since the page will refresh...
|
|
7834
|
-
window.location.assign(url);
|
|
7835
|
-
}
|
|
7836
|
-
|
|
7837
|
-
applyTx(nextAction);
|
|
7838
|
-
}
|
|
7839
|
-
}
|
|
7840
|
-
|
|
7841
|
-
function replace(to, state) {
|
|
7842
|
-
var nextAction = Action$1.Replace;
|
|
7843
|
-
var nextLocation = getNextLocation(to, state);
|
|
7844
|
-
|
|
7845
|
-
function retry() {
|
|
7846
|
-
replace(to, state);
|
|
7847
|
-
}
|
|
7848
|
-
|
|
7849
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
7850
|
-
var _getHistoryStateAndUr2 = getHistoryStateAndUrl(nextLocation, index),
|
|
7851
|
-
historyState = _getHistoryStateAndUr2[0],
|
|
7852
|
-
url = _getHistoryStateAndUr2[1]; // TODO: Support forced reloading
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
globalHistory.replaceState(historyState, '', url);
|
|
7856
|
-
applyTx(nextAction);
|
|
7857
|
-
}
|
|
7858
|
-
}
|
|
7859
|
-
|
|
7860
|
-
function go(delta) {
|
|
7861
|
-
globalHistory.go(delta);
|
|
7862
|
-
}
|
|
7863
|
-
|
|
7864
|
-
var history = {
|
|
7865
|
-
get action() {
|
|
7866
|
-
return action;
|
|
7867
|
-
},
|
|
7868
|
-
|
|
7869
|
-
get location() {
|
|
7870
|
-
return location;
|
|
7871
|
-
},
|
|
7872
|
-
|
|
7873
|
-
createHref: createHref,
|
|
7874
|
-
push: push,
|
|
7875
|
-
replace: replace,
|
|
7876
|
-
go: go,
|
|
7877
|
-
back: function back() {
|
|
7878
|
-
go(-1);
|
|
7879
|
-
},
|
|
7880
|
-
forward: function forward() {
|
|
7881
|
-
go(1);
|
|
7882
|
-
},
|
|
7883
|
-
listen: function listen(listener) {
|
|
7884
|
-
return listeners.push(listener);
|
|
7885
|
-
},
|
|
7886
|
-
block: function block(blocker) {
|
|
7887
|
-
var unblock = blockers.push(blocker);
|
|
7888
|
-
|
|
7889
|
-
if (blockers.length === 1) {
|
|
7890
|
-
window.addEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
7891
|
-
}
|
|
7892
|
-
|
|
7893
|
-
return function () {
|
|
7894
|
-
unblock(); // Remove the beforeunload listener so the document may
|
|
7895
|
-
// still be salvageable in the pagehide event.
|
|
7896
|
-
// See https://html.spec.whatwg.org/#unloading-documents
|
|
7897
|
-
|
|
7898
|
-
if (!blockers.length) {
|
|
7899
|
-
window.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
7900
|
-
}
|
|
7901
|
-
};
|
|
7902
|
-
}
|
|
7903
|
-
};
|
|
7904
|
-
return history;
|
|
7905
|
-
}
|
|
7906
|
-
/**
|
|
7907
|
-
* Memory history stores the current location in memory. It is designed for use
|
|
7908
|
-
* in stateful non-browser environments like tests and React Native.
|
|
7909
|
-
*
|
|
7910
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#creatememoryhistory
|
|
7911
|
-
*/
|
|
7912
|
-
|
|
7913
|
-
function createMemoryHistory(options) {
|
|
7914
|
-
if (options === void 0) {
|
|
7915
|
-
options = {};
|
|
7916
|
-
}
|
|
7917
|
-
|
|
7918
|
-
var _options3 = options,
|
|
7919
|
-
_options3$initialEntr = _options3.initialEntries,
|
|
7920
|
-
initialEntries = _options3$initialEntr === void 0 ? ['/'] : _options3$initialEntr,
|
|
7921
|
-
initialIndex = _options3.initialIndex;
|
|
7922
|
-
var entries = initialEntries.map(function (entry) {
|
|
7923
|
-
var location = readOnly(_extends._extends({
|
|
7924
|
-
pathname: '/',
|
|
7925
|
-
search: '',
|
|
7926
|
-
hash: '',
|
|
7927
|
-
state: null,
|
|
7928
|
-
key: createKey()
|
|
7929
|
-
}, typeof entry === 'string' ? parsePath(entry) : entry));
|
|
7930
|
-
return location;
|
|
7931
|
-
});
|
|
7932
|
-
var index = clamp(initialIndex == null ? entries.length - 1 : initialIndex, 0, entries.length - 1);
|
|
7933
|
-
var action = Action$1.Pop;
|
|
7934
|
-
var location = entries[index];
|
|
7935
|
-
var listeners = createEvents();
|
|
7936
|
-
var blockers = createEvents();
|
|
7937
|
-
|
|
7938
|
-
function createHref(to) {
|
|
7939
|
-
return typeof to === 'string' ? to : createPath(to);
|
|
7940
|
-
}
|
|
7941
|
-
|
|
7942
|
-
function getNextLocation(to, state) {
|
|
7943
|
-
if (state === void 0) {
|
|
7944
|
-
state = null;
|
|
7945
|
-
}
|
|
7946
|
-
|
|
7947
|
-
return readOnly(_extends._extends({
|
|
7948
|
-
pathname: location.pathname,
|
|
7949
|
-
search: '',
|
|
7950
|
-
hash: ''
|
|
7951
|
-
}, typeof to === 'string' ? parsePath(to) : to, {
|
|
7952
|
-
state: state,
|
|
7953
|
-
key: createKey()
|
|
7954
|
-
}));
|
|
7955
|
-
}
|
|
7956
|
-
|
|
7957
|
-
function allowTx(action, location, retry) {
|
|
7958
|
-
return !blockers.length || (blockers.call({
|
|
7959
|
-
action: action,
|
|
7960
|
-
location: location,
|
|
7961
|
-
retry: retry
|
|
7962
|
-
}), false);
|
|
7963
|
-
}
|
|
7964
|
-
|
|
7965
|
-
function applyTx(nextAction, nextLocation) {
|
|
7966
|
-
action = nextAction;
|
|
7967
|
-
location = nextLocation;
|
|
7968
|
-
listeners.call({
|
|
7969
|
-
action: action,
|
|
7970
|
-
location: location
|
|
7971
|
-
});
|
|
7972
|
-
}
|
|
7973
|
-
|
|
7974
|
-
function push(to, state) {
|
|
7975
|
-
var nextAction = Action$1.Push;
|
|
7976
|
-
var nextLocation = getNextLocation(to, state);
|
|
7977
|
-
|
|
7978
|
-
function retry() {
|
|
7979
|
-
push(to, state);
|
|
7980
|
-
}
|
|
7981
7643
|
|
|
7982
|
-
|
|
7983
|
-
index += 1;
|
|
7984
|
-
entries.splice(index, entries.length, nextLocation);
|
|
7985
|
-
applyTx(nextAction, nextLocation);
|
|
7986
|
-
}
|
|
7987
|
-
}
|
|
7988
|
-
|
|
7989
|
-
function replace(to, state) {
|
|
7990
|
-
var nextAction = Action$1.Replace;
|
|
7991
|
-
var nextLocation = getNextLocation(to, state);
|
|
7992
|
-
|
|
7993
|
-
function retry() {
|
|
7994
|
-
replace(to, state);
|
|
7995
|
-
}
|
|
7996
|
-
|
|
7997
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
7998
|
-
entries[index] = nextLocation;
|
|
7999
|
-
applyTx(nextAction, nextLocation);
|
|
8000
|
-
}
|
|
8001
|
-
}
|
|
8002
|
-
|
|
8003
|
-
function go(delta) {
|
|
8004
|
-
var nextIndex = clamp(index + delta, 0, entries.length - 1);
|
|
8005
|
-
var nextAction = Action$1.Pop;
|
|
8006
|
-
var nextLocation = entries[nextIndex];
|
|
8007
|
-
|
|
8008
|
-
function retry() {
|
|
8009
|
-
go(delta);
|
|
8010
|
-
}
|
|
8011
|
-
|
|
8012
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
8013
|
-
index = nextIndex;
|
|
8014
|
-
applyTx(nextAction, nextLocation);
|
|
8015
|
-
}
|
|
8016
|
-
}
|
|
8017
|
-
|
|
8018
|
-
var history = {
|
|
8019
|
-
get index() {
|
|
8020
|
-
return index;
|
|
8021
|
-
},
|
|
8022
|
-
|
|
8023
|
-
get action() {
|
|
8024
|
-
return action;
|
|
8025
|
-
},
|
|
8026
|
-
|
|
8027
|
-
get location() {
|
|
8028
|
-
return location;
|
|
8029
|
-
},
|
|
8030
|
-
|
|
8031
|
-
createHref: createHref,
|
|
8032
|
-
push: push,
|
|
8033
|
-
replace: replace,
|
|
8034
|
-
go: go,
|
|
8035
|
-
back: function back() {
|
|
8036
|
-
go(-1);
|
|
8037
|
-
},
|
|
8038
|
-
forward: function forward() {
|
|
8039
|
-
go(1);
|
|
8040
|
-
},
|
|
8041
|
-
listen: function listen(listener) {
|
|
8042
|
-
return listeners.push(listener);
|
|
8043
|
-
},
|
|
8044
|
-
block: function block(blocker) {
|
|
8045
|
-
return blockers.push(blocker);
|
|
8046
|
-
}
|
|
7644
|
+
return target;
|
|
8047
7645
|
};
|
|
8048
|
-
return history;
|
|
8049
|
-
} ////////////////////////////////////////////////////////////////////////////////
|
|
8050
|
-
// UTILS
|
|
8051
|
-
////////////////////////////////////////////////////////////////////////////////
|
|
8052
|
-
|
|
8053
|
-
function clamp(n, lowerBound, upperBound) {
|
|
8054
|
-
return Math.min(Math.max(n, lowerBound), upperBound);
|
|
8055
|
-
}
|
|
8056
|
-
|
|
8057
|
-
function promptBeforeUnload(event) {
|
|
8058
|
-
// Cancel the event.
|
|
8059
|
-
event.preventDefault(); // Chrome (and legacy IE) requires returnValue to be set.
|
|
8060
|
-
|
|
8061
|
-
event.returnValue = '';
|
|
8062
|
-
}
|
|
8063
7646
|
|
|
8064
|
-
|
|
8065
|
-
var handlers = [];
|
|
8066
|
-
return {
|
|
8067
|
-
get length() {
|
|
8068
|
-
return handlers.length;
|
|
8069
|
-
},
|
|
8070
|
-
|
|
8071
|
-
push: function push(fn) {
|
|
8072
|
-
handlers.push(fn);
|
|
8073
|
-
return function () {
|
|
8074
|
-
handlers = handlers.filter(function (handler) {
|
|
8075
|
-
return handler !== fn;
|
|
8076
|
-
});
|
|
8077
|
-
};
|
|
8078
|
-
},
|
|
8079
|
-
call: function call(arg) {
|
|
8080
|
-
handlers.forEach(function (fn) {
|
|
8081
|
-
return fn && fn(arg);
|
|
8082
|
-
});
|
|
8083
|
-
}
|
|
8084
|
-
};
|
|
7647
|
+
return _extends.apply(this, arguments);
|
|
8085
7648
|
}
|
|
8086
7649
|
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
}
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
*
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
function createPath(_ref) {
|
|
8098
|
-
var _ref$pathname = _ref.pathname,
|
|
8099
|
-
pathname = _ref$pathname === void 0 ? '/' : _ref$pathname,
|
|
8100
|
-
_ref$search = _ref.search,
|
|
8101
|
-
search = _ref$search === void 0 ? '' : _ref$search,
|
|
8102
|
-
_ref$hash = _ref.hash,
|
|
8103
|
-
hash = _ref$hash === void 0 ? '' : _ref$hash;
|
|
8104
|
-
if (search && search !== '?') pathname += search.charAt(0) === '?' ? search : '?' + search;
|
|
8105
|
-
if (hash && hash !== '#') pathname += hash.charAt(0) === '#' ? hash : '#' + hash;
|
|
8106
|
-
return pathname;
|
|
8107
|
-
}
|
|
8108
|
-
/**
|
|
8109
|
-
* Parses a string URL path into its separate pathname, search, and hash components.
|
|
8110
|
-
*
|
|
8111
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath
|
|
8112
|
-
*/
|
|
8113
|
-
|
|
8114
|
-
function parsePath(path) {
|
|
8115
|
-
var parsedPath = {};
|
|
8116
|
-
|
|
8117
|
-
if (path) {
|
|
8118
|
-
var hashIndex = path.indexOf('#');
|
|
8119
|
-
|
|
8120
|
-
if (hashIndex >= 0) {
|
|
8121
|
-
parsedPath.hash = path.substr(hashIndex);
|
|
8122
|
-
path = path.substr(0, hashIndex);
|
|
8123
|
-
}
|
|
8124
|
-
|
|
8125
|
-
var searchIndex = path.indexOf('?');
|
|
8126
|
-
|
|
8127
|
-
if (searchIndex >= 0) {
|
|
8128
|
-
parsedPath.search = path.substr(searchIndex);
|
|
8129
|
-
path = path.substr(0, searchIndex);
|
|
8130
|
-
}
|
|
8131
|
-
|
|
8132
|
-
if (path) {
|
|
8133
|
-
parsedPath.pathname = path;
|
|
8134
|
-
}
|
|
8135
|
-
}
|
|
8136
|
-
|
|
8137
|
-
return parsedPath;
|
|
8138
|
-
}
|
|
7650
|
+
var m$1,x=m$1||(m$1={});x.Pop="POP";x.Push="PUSH";x.Replace="REPLACE";var y=function(a){return a};function A(a){a.preventDefault();a.returnValue="";}
|
|
7651
|
+
function B(){var a=[];return {get length(){return a.length},push:function(b){a.push(b);return function(){a=a.filter(function(a){return a!==b});}},call:function(b){a.forEach(function(a){return a&&a(b)});}}}function D(){return Math.random().toString(36).substr(2,8)}function E(a){var b=a.pathname,g=a.search;a=a.hash;return (void 0===b?"/":b)+(void 0===g?"":g)+(void 0===a?"":a)}
|
|
7652
|
+
function F(a){var b={};if(a){var g=a.indexOf("#");0<=g&&(b.hash=a.substr(g),a=a.substr(0,g));g=a.indexOf("?");0<=g&&(b.search=a.substr(g),a=a.substr(0,g));a&&(b.pathname=a);}return b}
|
|
7653
|
+
function createBrowserHistory(a){function b(){var a=h.location,d=f.state||{};return [d.idx,y({pathname:a.pathname,search:a.search,hash:a.hash,state:d.usr||null,key:d.key||"default"})]}function g(a){return "string"===typeof a?a:E(a)}function t(a,d){void 0===d&&(d=null);return y(_extends({},l,{},"string"===typeof a?F(a):a,{state:d,key:D()}))}function v(a){n=a;a=b();q=a[0];l=a[1];c.call({action:n,location:l});}function w(a,d){function c(){w(a,d);}var k=m$1.Push,C=t(a,d);if(!e.length||(e.call({action:k,
|
|
7654
|
+
location:C,retry:c}),!1)){var b=[{usr:C.state,key:C.key,idx:q+1},g(C)];C=b[0];b=b[1];try{f.pushState(C,"",b);}catch(G){h.location.assign(b);}v(k);}}function u(a,d){function c(){u(a,d);}var b=m$1.Replace,k=t(a,d);e.length&&(e.call({action:b,location:k,retry:c}),1)||(k=[{usr:k.state,key:k.key,idx:q},g(k)],f.replaceState(k[0],"",k[1]),v(b));}function r(a){f.go(a);}void 0===a&&(a={});a=a.window;var h=void 0===a?document.defaultView:a,f=h.history,p=null;h.addEventListener("popstate",function(){if(p)e.call(p),
|
|
7655
|
+
p=null;else {var a=m$1.Pop,d=b(),c=d[0];d=d[1];if(e.length)if(null!=c){var f=q-c;f&&(p={action:a,location:d,retry:function(){r(-1*f);}},r(f));}else;else v(a);}});var n=
|
|
7656
|
+
m$1.Pop;a=b();var q=a[0],l=a[1],c=B(),e=B();null==q&&(q=0,f.replaceState(_extends({},f.state,{idx:q}),""));return {get action(){return n},get location(){return l},createHref:g,push:w,replace:u,go:r,back:function(){r(-1);},forward:function(){r(1);},listen:function(a){return c.push(a)},block:function(a){var d=e.push(a);1===e.length&&h.addEventListener("beforeunload",A);return function(){d();e.length||h.removeEventListener("beforeunload",A);}}}}function createMemoryHistory(a){function b(a,b){void 0===b&&(b=null);return y(_extends({},n,{},"string"===typeof a?F(a):a,{state:b,key:D()}))}function g(a,b,f){return !l.length||(l.call({action:a,location:b,retry:f}),!1)}function t(a,b){p=a;n=b;q.call({action:p,location:n});}function v(a,e){var c=m$1.Push,d=b(a,e);g(c,d,function(){v(a,e);})&&
|
|
7657
|
+
(f+=1,h.splice(f,h.length,d),t(c,d));}function w(a,e){var c=m$1.Replace,d=b(a,e);g(c,d,function(){w(a,e);})&&(h[f]=d,t(c,d));}function u(a){var b=Math.min(Math.max(f+a,0),h.length-1),c=m$1.Pop,d=h[b];g(c,d,function(){u(a);})&&(f=b,t(c,d));}void 0===a&&(a={});var r=a;a=r.initialEntries;r=r.initialIndex;var h=(void 0===a?["/"]:a).map(function(a){var b=
|
|
7658
|
+
y(_extends({pathname:"/",search:"",hash:"",state:null,key:D()},"string"===typeof a?F(a):a));return b}),f=Math.min(Math.max(null==r?h.length-1:r,0),h.length-1),p=m$1.Pop,n=h[f],q=B(),l=B();return {get index(){return f},get action(){return p},get location(){return n},createHref:function(a){return "string"===typeof a?
|
|
7659
|
+
a:E(a)},push:v,replace:w,go:u,back:function(){u(-1);},forward:function(){u(1);},listen:function(a){return q.push(a)},block:function(a){return l.push(a)}}}
|
|
8139
7660
|
|
|
8140
|
-
var q={current:void 0};function P(){if(void 0===q.current)throw new Error("no implementation of useHost provided");return q.current()}function S(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");q.current=e;}function E(){var e;window.squatchProgramId||(window.squatchProgramId=new stencilHooks_module.c({element:document.documentElement,initialState:(null==(e=window.widgetIdent)?void 0:e.programId)||void 0,contextName:"sq:program-id"}).start());}function M(){E();var n=P();return stencilHooks_module.h(n,"sq:program-id")}function A(e){E(),window.squatchProgramId.context=e;}function D(){return (D=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function k(e,n){return (k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function j(e,n){return n||(n=e.slice(0)),e.raw=n,e}function $(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function x(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return $(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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 (t=e[Symbol.iterator]()).next.bind(t)}var R=function(){return (R=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},V=new Map,O=new Map,N=!0,H=!1;function L(e){return e.replace(/[\s,]+/g," ").trim()}function W(e){var n,t,r,a=L(e);if(!V.has(a)){var o=parse(e,{experimentalFragmentVariables:H});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");V.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=L((i=e.loc).source.body.substring(i.start,i.end)),o=O.get(n);o&&!o.has(a)?N&&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||O.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),R(R({},n),{definitions:r}))));}return V.get(a)}function U(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),W(r)}var J,_=U;(J=U||(U={})).gql=_,J.resetCaches=function(){V.clear(),O.clear();},J.disableFragmentWarnings=function(){N=!1;},J.enableExperimentalFragmentVariables=function(){H=!0;},J.disableExperimentalFragmentVariables=function(){H=!1;},U.default=U;var Q=U,T=1e3,z=60*T,G=60*z,B=24*G,K=function(e,n){n=n||{};var t=typeof e;if("string"===t&&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 t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*B;case"hours":case"hour":case"hrs":case"hr":case"h":return t*G;case"minutes":case"minute":case"mins":case"min":case"m":return t*z;case"seconds":case"second":case"secs":case"sec":case"s":return t*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=B?Z(e,n,B,"day"):n>=G?Z(e,n,G,"hour"):n>=z?Z(e,n,z,"minute"):n>=T?Z(e,n,T,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=B?Math.round(e/B)+"d":n>=G?Math.round(e/G)+"h":n>=z?Math.round(e/z)+"m":n>=T?Math.round(e/T)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Z(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var X,Y=(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 t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},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 r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=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,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,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 t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(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(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].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 t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=K,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(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(X={exports:{}},X.exports),X.exports),ee=Y("sq:user-identity");function ne(){window.squatchUserIdentity||(window.squatchUserIdentity=new stencilHooks_module.c({element:document.documentElement,initialState:re(),contextName:"sq:user-identity"}).start());}function te(e){if(e)try{var n,t,r=o(e),a=r.exp;if(function(e){return e.sub&&/.*:.*@.*:users/.test(e.sub)}(r)){var o$1=r.sub.match(/(.*):(.*)@(.*):users/);t=atob(o$1[1]),n=atob(o$1[2]);}else (function(e){return e.user&&e.user.id&&e.user.accountId})(r)&&(t=r.user.accountId,n=r.user.id);if(!n||!t)return;if(a&&Date.now()>=1e3*a)return;return {id:n,accountId:t,jwt:e}}catch(e){return}}function re(){var e=kn();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return {id:e.widgetIdent.userId,accountId:e.widgetIdent.accountId,jwt:e.widgetIdent.token};case"SquatchPortal":var n=new URLSearchParams(document.location.search);if(n.has("jwt"))return te(n.get("jwt"));var t=localStorage.getItem("sq:user-identity");if(!t)return;try{var r=JSON.parse(t),a=te(r.jwt);return a?D({},r,a):void 0}catch(e){return}case"SquatchAdmin":case"None":return}}function ae(e){ne();var n=window.squatchUserIdentity;equal(n.context,e)||(Dn(void 0),n.context=e),e&&"SquatchPortal"===kn().type?localStorage.setItem("sq:user-identity",JSON.stringify(e)):e||(ee("Deleting user from localStorage"),localStorage.removeItem("sq:user-identity"));}function oe(){var e;return null==(e=ie())?void 0:e.jwt}function ie(){ne();var n=P(),t=stencilHooks_module.h(n,"sq:user-identity"),r=te(null==t?void 0:t.jwt);return t&&!r?(ae(void 0),void Dn(void 0)):t}function se(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var ue=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=fe(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=x(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(se(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){ge(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:he(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=le(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=me(e.response.data,t);s[a]=de(s[a],u);var l=t.query,f=t.variables,v=D({},e.response,{errors:[n],data:d,path:s}),g=new types.ClientError(v,{query:"string"!=typeof l?print(l):l,variables:f});return pe(t,g),!0}return !1});},c=x(r);!(a=c()).done;)u();ge(t,i);}();if("object"==typeof n)return n.v}else he(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=se(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){ve(n,e);})},function(n){pe(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,k(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n){var t=this;return new Promise(function(r,a){var o={query:e,variables:n,id:ce(),resolve:r,reject:a};t.subject.next(o);})},r}(dist.GraphQLClient),ce=function(){return nanoid().replace(/[-_]/g,"")},de=function(e,n){return e.replace("_"+n,"")},le=function(e){var n=e.split("_");return n[n.length-1]},fe=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.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),d=/@/.test(c);if(u||d)return t.push(r),e;var l=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(s,[o],l,l),n.push(r),e}catch(n){return t.push(r),e}},w("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},me=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=D({},n,((a={})[de(t,r)]=e[t],a))),n},{})},ve=function(e,n){(0, n.resolve)(e);},ge=function(e,n){for(var t,r=x(n);!(t=r()).done;){var a=t.value,o=me(e,a);a.resolve(o);}},pe=function(e,n){(0, e.reject)(n);},he=function(e,n){for(var t,r=x(e);!(t=r()).done;)(0, t.value.reject)(n);},ye="sq:graphql-client",we=src(function(e,n,t){return new ue(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function be(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 Ce(n,a){var o,i,s,u,c,d,l=(o=oe(),i=xn(),s=$n(),u=we(i,s,o),c=P(),null!=(d=stencilHooks_module.h(c,"sq:graphql-client",{attempts:0}))?d:u),f=stencilHooks_module.useReducer(be,a),m=f[1];return [f[0],useCallback.useCallback(function(e,t){void 0===t&&(t=!1);try{if(!l)return m({type:"errors",payload:new Error("No GraphQL client found")}),Promise.resolve();var r=function(r,a){try{var o=(t||m({type:"loading"}),Promise.resolve(l.request(n,e)).then(function(e){m({type:"data",payload:e});}));}catch(e){return a(e)}return o&&o.then?o.then(void 0,a):o}(0,function(e){m({type:"errors",payload:e});});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},[l,n,m])]}var Ie,Fe={loading:!1,data:void 0,errors:void 0};function qe(e){var n=Ce(e,Fe);return [n[1],n[0]]}var Pe,Se=Q(Ie||(Ie=j(["\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 Ee(){var e=qe(Se),n=e[0],t=e[1],r=t.loading,o$1=t.data,i=t.errors;return stencilHooks_module.useEffect(function(){if(null!=o$1&&o$1.authenticateManagedIdentityWithEmailAndPassword){var e=o$1.authenticateManagedIdentityWithEmailAndPassword,n=e.token,t=o(n).user;ae({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}});}},[null==o$1?void 0:o$1.authenticateManagedIdentityWithEmailAndPassword]),[n,{loading:r,data:o$1,errors:i}]}var Me,Ae=Q(Pe||(Pe=j(["\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 De(){var e=qe(Ae),n=e[0],t=e[1],r=t.loading,o$1=t.data,i=t.errors;return stencilHooks_module.useEffect(function(){if(null!=o$1&&o$1.registerManagedIdentityWithEmailAndPassword){var e=o$1.registerManagedIdentityWithEmailAndPassword,n=e.token,t=o(n).user;ae({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}});}},[null==o$1?void 0:o$1.registerManagedIdentityWithEmailAndPassword]),[n,{loading:r,data:o$1,errors:i}]}var ke,je=Q(Me||(Me=j(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function $e(){var e=qe(je),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var xe,Re=Q(ke||(ke=j(["\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 Ve(){var e=qe(Re),n=e[0],t=e[1],r=t.loading,o$1=t.data,i=t.errors;return stencilHooks_module.useEffect(function(){if(null!=o$1&&o$1.resetManagedIdentityPassword){var e=o$1.resetManagedIdentityPassword,n=e.token,t=o(n).user;ae({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}});}},[null==o$1?void 0:o$1.resetManagedIdentityPassword]),[n,{loading:r,data:o$1,errors:i}]}var Oe=Q(xe||(xe=j(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Ne(){return qe(Oe)}function He(){var e=P();return {refresh:useCallback.useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function Le(e){var n=e.skip,t=void 0!==n&&n,r=e.update,s=e.variables;stencilHooks_module.useEffect(function(){var e=function(e){!t&&r(s,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=stencilHooks_module.useRef(e),t=stencilHooks_module.useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),stencilHooks_module.useMemo(function(){return n.current},[t.current])}([s,r,t]));}var We,Ue={loading:!1,data:void 0,errors:void 0},Je=Symbol();function _e(e){var n=Ce(e,Ue),t=n[0],r=n[1],a=stencilHooks_module.useRef(Je);return Le({skip:a.current===Je,update:r,variables:a.current}),[r,D({},t,{refetch:function(e){a.current=e,r(e);}})]}var Qe,Te=Q(We||(We=j(["\n query ManagedIdentity {\n managedIdentity {\n email\n emailVerified\n sessionData\n }\n }\n"])));function ze(){var e=ie(),n=_e(Te),t=n[0],o=n[1],i=o.loading,s=o.data,u=o.errors,c=o.refetch;return stencilHooks_module.useEffect(function(){null!=s&&s.managedIdentity&&ae(D({},e,{managedIdentity:s.managedIdentity}));},[null==s?void 0:s.managedIdentity]),[useCallback.useCallback(function(){return t({})},[t]),{loading:i,data:s,errors:u,refetch:c}]}var Ge,Be=Q(Qe||(Qe=j(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Ke(){var e,n=ze()[0],t=qe(Be),r=t[0],o=t[1],i=o.loading,s=o.data,u=o.errors;return stencilHooks_module.useEffect(function(){var e;null!=s&&null!=(e=s.verifyManagedIdentityEmail)&&e.success&&n();},[null==s||null==(e=s.verifyManagedIdentityEmail)?void 0:e.success]),[r,{loading:i,data:s,errors:u}]}var Ze,Xe=Q(Ge||(Ge=j(["\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 Ye(){return qe(Xe)}var en=Q(Ze||(Ze=j(["\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 nn(){return qe(en)}function tn(e,n){var t=stencilHooks_module.useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function rn(){return stencilHooks_module.useReducer(function(e){return e+1},0)}function an(e){for(var n,t=x(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&an(r);}return Object.freeze(e)}var on={loading:!0,data:void 0,errors:void 0};function sn(e,n,t){var r=Ce(e,on),a=r[0],o=r[1],i=rn(),s=i[1];return tn(function(){!t&&o(n);},[e,n,o,i[0],t]),Le({skip:t,update:o,variables:n}),an(D({},a,{refetch:s}))}function un(){return window.squatchHistory=window.squatchHistory||function(){switch(kn().type){case"SquatchPortal":return createBrowserHistory();default:return createMemoryHistory()}}(),window.squatchHistory}var cn,dn={createHref:function(){var e;return (e=un()).createHref.apply(e,[].slice.call(arguments))},push:function(){var e;return (e=un()).push.apply(e,[].slice.call(arguments))},replace:function(){var e;return (e=un()).replace.apply(e,[].slice.call(arguments))},go:function(){var e;return (e=un()).go.apply(e,[].slice.call(arguments))},back:function(){return un().back()},forward:function(){var e;return (e=un()).forward.apply(e,[].slice.call(arguments))}};function ln(){var e=rn()[1];return stencilHooks_module.useEffect(function(){return un().listen(function(){e();})},[]),un().location}function fn(e){var n=stencilHooks_module.useState({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},u=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=u(a,e),o=i(e,n);r(D({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return D({},e,{offset:n})});},calculatePagination:function(e,n){var t=u(a,o),r=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:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function mn(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=fn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=sn(e,D({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=d((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 hn,yn,wn,bn=dist.gql(cn||(cn=j(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var In,Fn=Y("sq:useForm"),qn=dist.gql(hn||(hn=j(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Pn=dist.gql(yn||(yn=j(["\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"]))),Sn=dist.gql(wn||(wn=j(["\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"])));var Mn=dist.gql(In||(In=j(["\n query {\n viewer {\n ... on User {\n locale\n }\n }\n }\n"])));function An(){!function(){var e,t=window.squatchLocale,r=ie();stencilHooks_module.useEffect(function(){if(!r&&t)return t.context=void 0;s({});},[r]);var o,i=_e(Mn),s=i[0],u=i[1].data,c=null==u||null==(e=u.viewer)?void 0:e.locale;t?c!==t.context&&(t.context=c):window.squatchLocale=new stencilHooks_module.c({element:document.documentElement,initialState:c||(null==(o=window.widgetIdent)?void 0:o.locale)||void 0,contextName:"sq:locale"}).start();}();var t=P();return stencilHooks_module.h(t,"sq:locale")}function Dn(e){var n=window.squatchLocale;n&&(n.context=e);}function kn(){var e,n;return window.SquatchAndroid?{type:"SquatchAndroid",android:window.SquatchAndroid,widgetIdent:window.widgetIdent}:window.SquatchPortal?{type:"SquatchPortal",env:window.SquatchPortal}:window.SquatchAdmin?{type:"SquatchAdmin",adminSDK:window.SquatchAdmin}:window.widgetIdent&&"demo"!==(null==(e=window.widgetIdent)?void 0:e.env)?{type:"SquatchJS2",api:null==(n=window.frameElement)?void 0:n.squatchJsApi,widgetIdent:window.widgetIdent}:{type:"None"}}function jn(){var e=kn();return "None"===e.type||"SquatchAdmin"===e.type}function $n(){var e=kn();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return e.widgetIdent.tenantAlias;case"SquatchAdmin":case"None":return "demo";case"SquatchPortal":return e.env.tenantAlias}}function xn(){var e,n=kn();switch(n.type){case"SquatchAndroid":case"SquatchJS2":return n.widgetIdent.appDomain;case"SquatchPortal":return (null==(e=n.env)?void 0:e.appDomain)||"https://app.referralsaasquatch.com";case"SquatchAdmin":case"None":return "https://app.referralsaasquatch.com"}}function Rn(){var e=kn();switch(e.type){case"SquatchJS2":return e.widgetIdent.engagementMedium||"EMBED";case"SquatchAndroid":case"SquatchPortal":case"SquatchAdmin":case"None":return "EMBED"}}
|
|
7661
|
+
var q={current:void 0};function P(){if(void 0===q.current)throw new Error("no implementation of useHost provided");return q.current()}function S(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");q.current=e;}function E$1(){var e;window.squatchProgramId||(window.squatchProgramId=new c({element:document.documentElement,initialState:(null==(e=window.widgetIdent)?void 0:e.programId)||void 0,contextName:"sq:program-id"}).start());}function M(){E$1();var n=P();return h(n,"sq:program-id")}function A$1(e){E$1(),window.squatchProgramId.context=e;}function D$1(){return (D$1=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function k(e,n){return (k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function j(e,n){return n||(n=e.slice(0)),e.raw=n,e}function $(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function x$1(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return $(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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 (t=e[Symbol.iterator]()).next.bind(t)}var R=function(){return (R=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},V=new Map,O=new Map,N=!0,H=!1;function L(e){return e.replace(/[\s,]+/g," ").trim()}function W(e){var n,t,r,a=L(e);if(!V.has(a)){var o=parse(e,{experimentalFragmentVariables:H});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");V.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=L((i=e.loc).source.body.substring(i.start,i.end)),o=O.get(n);o&&!o.has(a)?N&&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||O.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),R(R({},n),{definitions:r}))));}return V.get(a)}function U(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),W(r)}var J,_=U;(J=U||(U={})).gql=_,J.resetCaches=function(){V.clear(),O.clear();},J.disableFragmentWarnings=function(){N=!1;},J.enableExperimentalFragmentVariables=function(){H=!0;},J.disableExperimentalFragmentVariables=function(){H=!1;},U.default=U;var Q=U,T=1e3,z=60*T,G=60*z,B$1=24*G,K=function(e,n){n=n||{};var t=typeof e;if("string"===t&&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 t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*B$1;case"hours":case"hour":case"hrs":case"hr":case"h":return t*G;case"minutes":case"minute":case"mins":case"min":case"m":return t*z;case"seconds":case"second":case"secs":case"sec":case"s":return t*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=B$1?Z(e,n,B$1,"day"):n>=G?Z(e,n,G,"hour"):n>=z?Z(e,n,z,"minute"):n>=T?Z(e,n,T,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=B$1?Math.round(e/B$1)+"d":n>=G?Math.round(e/G)+"h":n>=z?Math.round(e/z)+"m":n>=T?Math.round(e/T)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Z(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var X,Y=(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 t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},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 r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=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,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,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 t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(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(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].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 t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=K,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(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(X={exports:{}},X.exports),X.exports),ee=Y("sq:user-identity");function ne(){window.squatchUserIdentity||(window.squatchUserIdentity=new c({element:document.documentElement,initialState:re(),contextName:"sq:user-identity"}).start());}function te(e){if(e)try{var n,t,r=o(e),a=r.exp;if(function(e){return e.sub&&/.*:.*@.*:users/.test(e.sub)}(r)){var o$1=r.sub.match(/(.*):(.*)@(.*):users/);t=atob(o$1[1]),n=atob(o$1[2]);}else (function(e){return e.user&&e.user.id&&e.user.accountId})(r)&&(t=r.user.accountId,n=r.user.id);if(!n||!t)return;if(a&&Date.now()>=1e3*a)return;return {id:n,accountId:t,jwt:e}}catch(e){return}}function re(){var e=kn();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return {id:e.widgetIdent.userId,accountId:e.widgetIdent.accountId,jwt:e.widgetIdent.token};case"SquatchPortal":var n=new URLSearchParams(document.location.search);if(n.has("jwt"))return te(n.get("jwt"));var t=localStorage.getItem("sq:user-identity");if(!t)return;try{var r=JSON.parse(t),a=te(r.jwt);return a?D$1({},r,a):void 0}catch(e){return}case"SquatchAdmin":case"None":return}}function ae(e){ne();var n=window.squatchUserIdentity;equal(n.context,e)||(console.log("look here!",{userContext:n.context,newIdentity:e}),Dn(void 0),n.context=e),e&&"SquatchPortal"===kn().type?localStorage.setItem("sq:user-identity",JSON.stringify(e)):e||(ee("Deleting user from localStorage"),localStorage.removeItem("sq:user-identity"));}function oe(){var e;return null==(e=ie())?void 0:e.jwt}function ie(){ne();var n=P(),t=h(n,"sq:user-identity"),r=te(null==t?void 0:t.jwt);return t&&!r?(console.log("look here as well!",{validIdentity:r,newIdentity:t}),ae(void 0),void Dn(void 0)):t}function se(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var ue=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=fe(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=x$1(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(se(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){ge(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(console.log("top of catch",e.response),!t)return {v:he(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;console.log("when it errors",n),n.path.find(function(r,a,s){if(o.includes(r)){var u=le(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=me(e.response.data,t);s[a]=de(s[a],u);var l=t.query,f=t.variables,v=D$1({},e.response,{errors:[n],data:d,path:s}),g=new types.ClientError(v,{query:"string"!=typeof l?print(l):l,variables:f});return pe(t,g),!0}return !1});},c=x$1(r);!(a=c()).done;)u();ge(t,i);}();if("object"==typeof n)return n.v}else he(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=se(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){ve(n,e);})},function(n){pe(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,k(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n){var t=this;return new Promise(function(r,a){var o={query:e,variables:n,id:ce(),resolve:r,reject:a};t.subject.next(o);})},r}(dist.GraphQLClient),ce=function(){return nanoid().replace(/[-_]/g,"")},de=function(e,n){return e.replace("_"+n,"")},le=function(e){var n=e.split("_");return n[n.length-1]},fe=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.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),d=/@/.test(c);if(u||d)return t.push(r),e;var l=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(s,[o],l,l),n.push(r),e}catch(n){return t.push(r),e}},w("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},me=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=D$1({},n,((a={})[de(t,r)]=e[t],a))),n},{})},ve=function(e,n){(0, n.resolve)(e);},ge=function(e,n){for(var t,r=x$1(n);!(t=r()).done;){var a=t.value,o=me(e,a);a.resolve(o);}},pe=function(e,n){(0, e.reject)(n);},he=function(e,n){for(var t,r=x$1(e);!(t=r()).done;)(0, t.value.reject)(n);},ye="sq:graphql-client",we=src(function(e,n,t){return new ue(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function be(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 Ce(n,a){var o,i,s,u,c,d,l=(o=oe(),i=xn(),s=$n(),u=we(i,s,o),c=P(),null!=(d=h(c,"sq:graphql-client",{attempts:0}))?d:u),f=stencilHooks_module.useReducer(be,a),m=f[1];return [f[0],useCallback.useCallback(function(e,t){void 0===t&&(t=!1);try{if(!l)return m({type:"errors",payload:new Error("No GraphQL client found")}),Promise.resolve();var r=function(r,a){try{var o=(t||m({type:"loading"}),Promise.resolve(l.request(n,e)).then(function(e){console.log("sam's response",{res:e}),m({type:"data",payload:e});}));}catch(e){return a(e)}return o&&o.then?o.then(void 0,a):o}(0,function(e){console.log("sam's error",{error:e}),m({type:"errors",payload:e});});return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},[l,n,m])]}var Ie,Fe={loading:!1,data:void 0,errors:void 0};function qe(e){var n=Ce(e,Fe);return [n[1],n[0]]}var Pe,Se=Q(Ie||(Ie=j(["\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 Ee(){var e=qe(Se),n=e[0],t=e[1],r=t.loading,o$1=t.data,i=t.errors;return stencilHooks_module.useEffect(function(){if(null!=o$1&&o$1.authenticateManagedIdentityWithEmailAndPassword){var e=o$1.authenticateManagedIdentityWithEmailAndPassword,n=e.token,t=o(n).user;ae({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}});}},[null==o$1?void 0:o$1.authenticateManagedIdentityWithEmailAndPassword]),[n,{loading:r,data:o$1,errors:i}]}var Me,Ae=Q(Pe||(Pe=j(["\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 De(){var e=qe(Ae),n=e[0],t=e[1],r=t.loading,o$1=t.data,i=t.errors;return stencilHooks_module.useEffect(function(){if(null!=o$1&&o$1.registerManagedIdentityWithEmailAndPassword){var e=o$1.registerManagedIdentityWithEmailAndPassword,n=e.token,t=o(n).user;ae({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}});}},[null==o$1?void 0:o$1.registerManagedIdentityWithEmailAndPassword]),[n,{loading:r,data:o$1,errors:i}]}var ke,je=Q(Me||(Me=j(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function $e(){var e=qe(je),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var xe,Re=Q(ke||(ke=j(["\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 Ve(){var e=qe(Re),n=e[0],t=e[1],r=t.loading,o$1=t.data,i=t.errors;return stencilHooks_module.useEffect(function(){if(null!=o$1&&o$1.resetManagedIdentityPassword){var e=o$1.resetManagedIdentityPassword,n=e.token,t=o(n).user;ae({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}});}},[null==o$1?void 0:o$1.resetManagedIdentityPassword]),[n,{loading:r,data:o$1,errors:i}]}var Oe=Q(xe||(xe=j(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Ne(){return qe(Oe)}function He(){var e=P();return {refresh:useCallback.useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function Le(e){var n=e.skip,t=void 0!==n&&n,r=e.update,s=e.variables;stencilHooks_module.useEffect(function(){var e=function(e){!t&&r(s,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=stencilHooks_module.useRef(e),t=stencilHooks_module.useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),stencilHooks_module.useMemo(function(){return n.current},[t.current])}([s,r,t]));}var We,Ue={loading:!1,data:void 0,errors:void 0},Je=Symbol();function _e(e){var n=Ce(e,Ue),t=n[0],r=n[1],a=stencilHooks_module.useRef(Je);return Le({skip:a.current===Je,update:r,variables:a.current}),[r,D$1({},t,{refetch:function(e){a.current=e,r(e);}})]}var Qe,Te=Q(We||(We=j(["\n query ManagedIdentity {\n managedIdentity {\n email\n emailVerified\n sessionData\n }\n }\n"])));function ze(){var e=ie(),n=_e(Te),t=n[0],o=n[1],i=o.loading,s=o.data,u=o.errors,c=o.refetch;return stencilHooks_module.useEffect(function(){null!=s&&s.managedIdentity&&ae(D$1({},e,{managedIdentity:s.managedIdentity}));},[null==s?void 0:s.managedIdentity]),[useCallback.useCallback(function(){return t({})},[t]),{loading:i,data:s,errors:u,refetch:c}]}var Ge,Be=Q(Qe||(Qe=j(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Ke(){var e,n=ze()[0],t=qe(Be),r=t[0],o=t[1],i=o.loading,s=o.data,u=o.errors;return stencilHooks_module.useEffect(function(){var e;null!=s&&null!=(e=s.verifyManagedIdentityEmail)&&e.success&&n();},[null==s||null==(e=s.verifyManagedIdentityEmail)?void 0:e.success]),[r,{loading:i,data:s,errors:u}]}var Ze,Xe=Q(Ge||(Ge=j(["\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 Ye(){return qe(Xe)}var en=Q(Ze||(Ze=j(["\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 nn(){return qe(en)}function tn(e,n){var t=stencilHooks_module.useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function rn(){return stencilHooks_module.useReducer(function(e){return e+1},0)}function an(e){for(var n,t=x$1(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&an(r);}return Object.freeze(e)}var on={loading:!0,data:void 0,errors:void 0};function sn(e,n,t){var r=Ce(e,on),a=r[0],o=r[1],i=rn(),s=i[1];return tn(function(){!t&&o(n);},[e,n,o,i[0],t]),Le({skip:t,update:o,variables:n}),an(D$1({},a,{refetch:s}))}function un(){return window.squatchHistory=window.squatchHistory||function(){switch(kn().type){case"SquatchPortal":return createBrowserHistory();default:return createMemoryHistory()}}(),window.squatchHistory}var cn,dn={createHref:function(){var e;return (e=un()).createHref.apply(e,[].slice.call(arguments))},push:function(){var e;return (e=un()).push.apply(e,[].slice.call(arguments))},replace:function(){var e;return (e=un()).replace.apply(e,[].slice.call(arguments))},go:function(){var e;return (e=un()).go.apply(e,[].slice.call(arguments))},back:function(){return un().back()},forward:function(){var e;return (e=un()).forward.apply(e,[].slice.call(arguments))}};function ln(){var e=rn()[1];return stencilHooks_module.useEffect(function(){return un().listen(function(){e();})},[]),un().location}function fn(e){var n=stencilHooks_module.useState({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},u=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=u(a,e),o=i(e,n);r(D$1({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return D$1({},e,{offset:n})});},calculatePagination:function(e,n){var t=u(a,o),r=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:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function mn(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=fn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=sn(e,D$1({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=d((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 hn,yn,wn,bn=dist.gql(cn||(cn=j(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var In,Fn=Y("sq:useForm"),qn=dist.gql(hn||(hn=j(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Pn=dist.gql(yn||(yn=j(["\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"]))),Sn=dist.gql(wn||(wn=j(["\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"])));var Mn=dist.gql(In||(In=j(["\n query {\n viewer {\n ... on User {\n locale\n }\n }\n }\n"])));function An(){!function(){var e,t=window.squatchLocale,r=ie();stencilHooks_module.useEffect(function(){if(console.log("refetch locale",r),!r&&t)return t.context=void 0;s({});},[]);var o,i=_e(Mn),s=i[0],u=i[1].data,c$1=null==u||null==(e=u.viewer)?void 0:e.locale;t?c$1!==t.context&&(console.log("new locale",c$1,"context",t.context),t.context=c$1):window.squatchLocale=new c({element:document.documentElement,initialState:c$1||(null==(o=window.widgetIdent)?void 0:o.locale)||void 0,contextName:"sq:locale"}).start();}();var t=P();return console.log("here's your locale!",h(t,"sq:locale")),h(t,"sq:locale")}function Dn(e){var n=window.squatchLocale;console.log("set locale!",n,"new locale:",e),n&&(n.context=e);}function kn(){var e,n;return window.SquatchAndroid?{type:"SquatchAndroid",android:window.SquatchAndroid,widgetIdent:window.widgetIdent}:window.SquatchPortal?{type:"SquatchPortal",env:window.SquatchPortal}:window.SquatchAdmin?{type:"SquatchAdmin",adminSDK:window.SquatchAdmin}:window.widgetIdent&&"demo"!==(null==(e=window.widgetIdent)?void 0:e.env)?{type:"SquatchJS2",api:null==(n=window.frameElement)?void 0:n.squatchJsApi,widgetIdent:window.widgetIdent}:{type:"None"}}function jn(){var e=kn();return "None"===e.type||"SquatchAdmin"===e.type}function $n(){var e=kn();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return e.widgetIdent.tenantAlias;case"SquatchAdmin":case"None":return "demo";case"SquatchPortal":return e.env.tenantAlias}}function xn(){var e,n=kn();switch(n.type){case"SquatchAndroid":case"SquatchJS2":return n.widgetIdent.appDomain;case"SquatchPortal":return (null==(e=n.env)?void 0:e.appDomain)||"https://app.referralsaasquatch.com";case"SquatchAdmin":case"None":return "https://app.referralsaasquatch.com"}}function Rn(){var e=kn();switch(e.type){case"SquatchJS2":return e.widgetIdent.engagementMedium||"EMBED";case"SquatchAndroid":case"SquatchPortal":case"SquatchAdmin":case"None":return "EMBED"}}
|
|
8141
7662
|
|
|
8142
7663
|
exports.$e = $e;
|
|
8143
7664
|
exports.$n = $n;
|
|
8144
|
-
exports.A = A;
|
|
7665
|
+
exports.A = A$1;
|
|
8145
7666
|
exports.An = An;
|
|
8146
7667
|
exports.De = De;
|
|
8147
7668
|
exports.Ee = Ee;
|
|
@@ -8156,19 +7677,16 @@ exports.Ve = Ve;
|
|
|
8156
7677
|
exports.Ye = Ye;
|
|
8157
7678
|
exports._e = _e;
|
|
8158
7679
|
exports.ae = ae;
|
|
8159
|
-
exports.dist = dist;
|
|
8160
7680
|
exports.dn = dn;
|
|
8161
7681
|
exports.ie = ie;
|
|
8162
7682
|
exports.jn = jn;
|
|
8163
7683
|
exports.kn = kn;
|
|
8164
7684
|
exports.ln = ln;
|
|
8165
|
-
exports.memoize = memoize$1;
|
|
8166
7685
|
exports.mn = mn;
|
|
8167
7686
|
exports.nn = nn;
|
|
8168
7687
|
exports.oe = oe;
|
|
8169
7688
|
exports.qe = qe;
|
|
8170
7689
|
exports.rn = rn;
|
|
8171
7690
|
exports.sn = sn;
|
|
8172
|
-
exports.src = src;
|
|
8173
7691
|
exports.we = we;
|
|
8174
7692
|
exports.ye = ye;
|