@saasquatch/mint-components 2.0.0-8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{IndirectTaxDetailsView-e5f70b8b.js → IndirectTaxDetailsView-3e88d710.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-016bebfd.js → ShadowViewAddon-646dec73.js} +13 -9
- package/dist/cjs/{copy-text-view-51c8ee5d.js → copy-text-view-322436c2.js} +2 -8
- package/dist/cjs/{usePayoutStatus-fe32dd1a.js → data-16106637.js} +142 -0
- package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
- package/dist/cjs/{global-8bba5b3a.js → global-39cb0afc.js} +745 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +82 -46
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-69a4b615.js} +10 -4
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_47.cjs.entry.js} +1334 -51
- package/dist/cjs/sqm-code-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-form-message.cjs.entry.js +9 -5
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-lead-checkbox-field-view-340acad0.js → sqm-lead-checkbox-field-view-f1c46d4b.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-lead-input-field-view-06ed3632.js → sqm-lead-input-field-view-6d388092.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-container-view-ca86b9e5.js → sqm-portal-container-view-07e4343f.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-5518eb0d.js → sqm-portal-email-verification-view-6b17e545.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +27 -19
- package/dist/cjs/{sqm-portal-profile-view-615e6975.js → sqm-portal-profile-view-845367bb.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +3 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +49 -29
- package/dist/cjs/sqm-tabs.cjs.entry.js +1 -4
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +3 -2
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -4
- package/dist/cjs/{useLeadFormState-fd0445f9.js → useLeadFormState-b355759b.js} +1 -1
- package/dist/cjs/{usePortalLogin-353f776a.js → usePortalLogin-1c022d8d.js} +1 -1
- package/dist/cjs/{utils-0d3ac0fb.js → utils-6847bc06.js} +0 -4
- package/dist/cjs/{utils-83d125fa.js → utils-ac82f977.js} +1 -1
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +10 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +0 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +7 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +14 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +7 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +26 -4
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
- package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +10 -7
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +23 -13
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -2
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -34
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +2 -3
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +0 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +0 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +10 -4
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +10 -13
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +48 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +67 -26
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -4
- package/dist/collection/components/views/copy-text-view.js +2 -8
- package/dist/collection/global/global.js +14 -3
- package/dist/collection/global/styles.v1.js +733 -0
- package/dist/collection/global/styles.v1.ts +735 -0
- package/dist/collection/utils/utils.js +0 -1
- package/dist/esm/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-e5d8767d.js} +2 -2
- package/dist/esm/{ShadowViewAddon-4cde160a.js → ShadowViewAddon-5928ca9d.js} +13 -9
- package/dist/esm/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +2 -8
- package/dist/esm/{usePayoutStatus-42cc6a2c.js → data-acdb790f.js} +128 -1
- package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
- package/dist/esm/{global-1099f20d.js → global-943536b9.js} +745 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_10.entry.js +75 -39
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-9e97d8b4.js} +10 -4
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +1333 -51
- package/dist/esm/sqm-code-verification.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +9 -5
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm/{sqm-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-adcc49c0.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-c0b5aed5.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +1 -1
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-container-view-16309b22.js → sqm-portal-container-view-176e92e3.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-8ceb6302.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/sqm-portal-google-login.entry.js +2 -2
- package/dist/esm/sqm-portal-google-registration-form.entry.js +27 -19
- package/dist/esm/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-2ec60449.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +3 -4
- package/dist/esm/sqm-stencilbook.entry.js +49 -29
- package/dist/esm/sqm-tabs.entry.js +1 -4
- package/dist/esm/sqm-widget-verification-controller.entry.js +3 -2
- package/dist/esm/sqm-widget-verification.entry.js +2 -3
- package/dist/esm/{useLeadFormState-c379e5d7.js → useLeadFormState-9a652a42.js} +1 -1
- package/dist/esm/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
- package/dist/esm/{utils-84b4b092.js → utils-334c1e34.js} +0 -4
- package/dist/esm/{utils-6122971b.js → utils-f27e62dc.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-e5d8767d.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-4cde160a.js → ShadowViewAddon-5928ca9d.js} +1 -1
- package/dist/esm-es5/data-acdb790f.js +6 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/{global-1099f20d.js → global-943536b9.js} +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-9e97d8b4.js +1 -0
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -0
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-adcc49c0.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-c0b5aed5.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.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-16309b22.js → sqm-portal-container-view-176e92e3.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-8ceb6302.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-2ec60449.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.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-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{useLeadFormState-c379e5d7.js → useLeadFormState-9a652a42.js} +1 -1
- package/dist/esm-es5/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
- package/dist/esm-es5/utils-334c1e34.js +1 -0
- package/dist/esm-es5/{utils-6122971b.js → utils-f27e62dc.js} +1 -1
- package/dist/mint-components/global/styles.v1.ts +735 -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-06b4fa6a.entry.js +273 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-aa08457e.system.js → p-08b373b9.system.js} +1 -1
- package/dist/mint-components/{p-6b0f79d1.system.entry.js → p-0ac84da5.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ea4d6a1.system.entry.js → p-0b9b1b36.system.entry.js} +1 -1
- package/dist/mint-components/{p-7bae9bb7.system.entry.js → p-0cb51ea1.system.entry.js} +1 -1
- package/dist/mint-components/p-11927355.system.entry.js +1 -0
- package/dist/mint-components/{p-61157c6a.entry.js → p-124af9d6.entry.js} +1 -1
- package/dist/mint-components/{p-d4edce6c.system.entry.js → p-19de8749.system.entry.js} +1 -1
- package/dist/mint-components/{p-7b8cd420.system.entry.js → p-1e406d04.system.entry.js} +1 -1
- package/dist/mint-components/{p-c6fa4cc5.system.js → p-20c40fdf.system.js} +1 -1
- package/dist/mint-components/p-20f8e7ca.entry.js +99 -0
- package/dist/mint-components/{p-6d5bd95a.js → p-252465eb.js} +1 -1
- package/dist/mint-components/{p-eba70d67.system.entry.js → p-2700136f.system.entry.js} +1 -1
- package/dist/mint-components/{p-3bf5cd51.entry.js → p-2fd2f22b.entry.js} +1 -1
- package/dist/mint-components/{p-67aa0b2d.entry.js → p-30278955.entry.js} +1 -1
- package/dist/mint-components/p-37ef2ce1.entry.js +1 -0
- package/dist/mint-components/{p-aa8c6332.js → p-38c4653d.js} +1 -1
- package/dist/mint-components/{p-2ff72acc.entry.js → p-3b46fae5.entry.js} +2 -2
- package/dist/mint-components/{p-511c87ce.system.entry.js → p-3fa99fea.system.entry.js} +1 -1
- package/dist/mint-components/{p-e711d0e9.js → p-44fc6029.js} +1 -1
- package/dist/mint-components/p-469a6450.system.js +6 -0
- package/dist/mint-components/p-478ad7c8.system.entry.js +1 -0
- package/dist/mint-components/p-51a6a779.js +1 -0
- package/dist/mint-components/p-53b49d27.system.js +1 -0
- package/dist/mint-components/{p-2623b232.system.entry.js → p-54c250de.system.entry.js} +1 -1
- package/dist/mint-components/{p-4ffc5bce.js → p-58b668a0.js} +4 -4
- package/dist/mint-components/{p-f370bddc.entry.js → p-58f4bf7a.entry.js} +1 -1
- package/dist/mint-components/{p-4c811d12.entry.js → p-5a3e2966.entry.js} +1 -1
- package/dist/mint-components/{p-c86f64ad.system.entry.js → p-5b7a896e.system.entry.js} +1 -1
- package/dist/mint-components/{p-06f13966.system.entry.js → p-5bb24669.system.entry.js} +1 -1
- package/dist/mint-components/p-6333265f.system.js +1 -0
- package/dist/mint-components/{p-a9ad7fb2.system.entry.js → p-674d9089.system.entry.js} +1 -1
- package/dist/mint-components/{p-29f0c87d.entry.js → p-6a0ddee0.entry.js} +1 -1
- package/dist/mint-components/{p-c85f204b.system.js → p-6b55555b.system.js} +1 -1
- package/dist/mint-components/{p-f0eae4e6.system.js → p-6dd86003.system.js} +1 -1
- package/dist/mint-components/{p-b55002dc.system.entry.js → p-72b914b9.system.entry.js} +1 -1
- package/dist/mint-components/{p-f5c49a83.entry.js → p-735c9185.entry.js} +2 -2
- package/dist/mint-components/{p-433e7458.entry.js → p-7e323f2c.entry.js} +1 -1
- package/dist/mint-components/p-80569911.system.js +1 -0
- package/dist/mint-components/{p-c531cc75.entry.js → p-85029918.entry.js} +1 -1
- package/dist/mint-components/{p-0caad0db.entry.js → p-8677688c.entry.js} +1 -1
- package/dist/mint-components/{p-ab018deb.entry.js → p-8931d05e.entry.js} +2 -2
- package/dist/mint-components/{p-b487cb00.system.entry.js → p-8afb47c5.system.entry.js} +1 -1
- package/dist/mint-components/{p-4250b06d.entry.js → p-8e913ce5.entry.js} +1 -1
- package/dist/mint-components/p-8ea16fb6.js +1233 -0
- package/dist/mint-components/{p-ed16b35a.js → p-946f8a2c.js} +1 -1
- package/dist/mint-components/{p-0d21194c.entry.js → p-94ae86fc.entry.js} +1 -1
- package/dist/mint-components/{p-1fa9ef02.js → p-9580aac3.js} +1 -1
- package/dist/mint-components/p-95b6e903.entry.js +1 -0
- package/dist/mint-components/p-9ba07029.system.entry.js +1 -0
- package/dist/mint-components/{p-6dc742bc.js → p-9ec99ced.js} +1 -1
- package/dist/mint-components/{p-cb845a3a.system.entry.js → p-9f57e731.system.entry.js} +1 -1
- package/dist/mint-components/{p-00bc7211.js → p-a1b3f61a.js} +1 -1
- package/dist/mint-components/{p-74f43a08.system.js → p-a275725a.system.js} +1 -1
- package/dist/mint-components/{p-22a9114f.system.entry.js → p-a30d7069.system.entry.js} +1 -1
- package/dist/mint-components/{p-4c9d80e4.entry.js → p-a32afaaa.entry.js} +1 -1
- package/dist/mint-components/p-a6f4fb03.system.js +1 -0
- package/dist/mint-components/{p-1c6ef258.system.entry.js → p-ac86903a.system.entry.js} +1 -1
- package/dist/mint-components/p-ac9138fd.entry.js +1 -0
- package/dist/mint-components/{p-bfd77a07.entry.js → p-b00e8365.entry.js} +1 -1
- package/dist/mint-components/{p-66cf70f7.system.entry.js → p-b3510ca0.system.entry.js} +1 -1
- package/dist/mint-components/{p-c994512c.system.js → p-b5fd4fb6.system.js} +1 -1
- package/dist/mint-components/{p-47c83656.entry.js → p-bef123be.entry.js} +1 -1
- package/dist/mint-components/{p-79a3344f.js → p-c44b3725.js} +1 -1
- package/dist/mint-components/p-c4f275db.system.entry.js +1 -0
- package/dist/mint-components/p-c5f92183.system.entry.js +1 -0
- package/dist/mint-components/{p-9fed62f8.system.entry.js → p-c67ffd25.system.entry.js} +1 -1
- package/dist/mint-components/{p-60465a2d.system.js → p-c90fcb02.system.js} +1 -1
- package/dist/mint-components/{p-f7c0877d.entry.js → p-c95a437e.entry.js} +1 -1
- package/dist/mint-components/{p-7a268047.js → p-d181b17c.js} +1 -1
- package/dist/mint-components/p-d69c0a32.system.entry.js +1 -0
- package/dist/mint-components/{p-cf4e1709.entry.js → p-d9780ae9.entry.js} +1 -1
- package/dist/mint-components/p-db64c957.entry.js +33 -0
- package/dist/mint-components/{p-4fed8672.js → p-dbb79392.js} +1 -1
- package/dist/mint-components/{p-978d06ab.entry.js → p-e1422b78.entry.js} +1 -1
- package/dist/mint-components/p-e1e7d01c.js +157 -0
- package/dist/mint-components/{p-84d1041d.system.entry.js → p-e3b4e06a.system.entry.js} +1 -1
- package/dist/mint-components/{p-b1eafaae.entry.js → p-e4017ba5.entry.js} +1 -1
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-ad4348c3.system.js → p-ee290b30.system.js} +1 -1
- package/dist/mint-components/{p-c62b277d.system.js → p-ee3d2ae4.system.js} +1 -1
- package/dist/mint-components/{p-dd30354a.system.entry.js → p-f3613921.system.entry.js} +1 -1
- package/dist/mint-components/{p-55eaba8e.system.entry.js → p-f3c2074b.system.entry.js} +1 -1
- package/dist/mint-components/{p-e0a724dd.system.js → p-f3ccba80.system.js} +19 -19
- package/dist/mint-components/{p-c065057d.entry.js → p-f7e49c12.entry.js} +2 -2
- package/dist/mint-components/{p-b703c89f.system.entry.js → p-fc86ba65.system.entry.js} +1 -1
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +3 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +4 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +4 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -0
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +1 -2
- package/dist/types/components.d.ts +48 -12
- package/dist/types/global/styles.v1.d.ts +2 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/data-88adb95b.js +0 -146
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1313
- package/dist/esm/data-807686c2.js +0 -130
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1309
- package/dist/esm-es5/data-807686c2.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-base-registration-form-view-193f1721.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/usePayoutStatus-42cc6a2c.js +0 -6
- package/dist/esm-es5/utils-84b4b092.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13e66b37.system.entry.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-3c09c632.system.entry.js +0 -1
- package/dist/mint-components/p-402984b3.system.entry.js +0 -1
- package/dist/mint-components/p-4306a11d.entry.js +0 -33
- package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
- package/dist/mint-components/p-46b88149.entry.js +0 -273
- package/dist/mint-components/p-4b9976cc.system.js +0 -1
- package/dist/mint-components/p-5853132a.system.entry.js +0 -1
- package/dist/mint-components/p-60f1cca2.system.js +0 -1
- package/dist/mint-components/p-7837f69e.js +0 -46
- package/dist/mint-components/p-7b8232f8.system.js +0 -6
- package/dist/mint-components/p-8c3c4e92.js +0 -112
- package/dist/mint-components/p-916a2045.system.entry.js +0 -1
- package/dist/mint-components/p-92bed2ad.system.js +0 -1
- package/dist/mint-components/p-967a9040.system.js +0 -1
- package/dist/mint-components/p-a0730259.entry.js +0 -99
- package/dist/mint-components/p-a44a912b.entry.js +0 -1
- package/dist/mint-components/p-a597b136.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-be88596c.system.js +0 -1
- package/dist/mint-components/p-cf22cf56.entry.js +0 -1
- package/dist/mint-components/p-db1a0db1.js +0 -1233
- package/dist/mint-components/p-ddf3c05e.js +0 -1
- package/dist/mint-components/p-ea063d99.entry.js +0 -1
- package/dist/mint-components/p-ecc84140.system.entry.js +0 -1
- /package/dist/collection/global/{styles.js → styles.v2.js} +0 -0
- /package/dist/collection/global/{styles.ts → styles.v2.ts} +0 -0
- /package/dist/esm-es5/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +0 -0
- /package/dist/mint-components/global/{styles.ts → styles.v2.ts} +0 -0
- /package/dist/mint-components/{p-45c3ff6d.js → p-4a0a76a5.js} +0 -0
- /package/dist/mint-components/{p-c210374a.system.js → p-ce81839d.system.js} +0 -0
- /package/dist/types/global/{styles.d.ts → styles.v2.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h,c as Host,r as registerInstance}from"./index-b3a06de8.js";import{u as useMemo,f as useEffect,n as h$1}from"./dom-context-hooks.module-63370afd.js";import{_}from"./index.module-c9811a48.js";import{g as getProps}from"./utils-
|
|
1
|
+
import{h,c as Host,r as registerInstance}from"./index-b3a06de8.js";import{u as useMemo,f as useEffect,n as h$1}from"./dom-context-hooks.module-63370afd.js";import{_}from"./index.module-c9811a48.js";import{g as getProps}from"./utils-334c1e34.js";import{u as useRerenderListener}from"./re-render-7e22fb0d.js";import{u as useChildElements}from"./useChildElements-3d872cef.js";var TabsView=function(t){var e=t.content,r=t.placement,n=t.textColor,a=n===void 0?"var(--sqm-text)":n;var s=!r||r==="top"||r==="bottom"?"var(--sl-spacing-x-large) 0;":"0 var(--sl-spacing-xx-large);";var o="\n sl-tab-panel::part(base) {\n padding: "+s+";\n }\n\n sl-tab::part(base) {\n color: "+a+";\n font-family: var(--sqm-primary-font);\n }\n\n\n\n sl-tab-group::part(tabs) {\n border-bottom: 2px solid var(--sqm-border-color);\n font-family: var(--sqm-primary-font);\n }\n ";return h(Host,null,h("style",{type:"text/css"},o),h("sl-tab-group",{placement:r},e.tabs.map((function(t){var e=t.getAttribute("slot");if(t.tagName==="RAISINS-PLOP-TARGET"){return h("sl-tab",{slot:"nav"},h("div",{style:{marginTop:"10px"}},h("slot",{name:e})))}return[h("sl-tab",{slot:"nav",panel:e,part:"tab",id:t.getAttribute("id")||e},t.getAttribute("header")),h("sl-tab-panel",{name:e},h("slot",{name:e}))]}))),h("div",{style:{display:"none"}},h("slot",null)))};var REVEAL_EVENT="sq:reveal";function useTabs(){var t=useChildElements();var e=_();var r=useRerenderListener();var n=useMemo((function(){return t.filter((function(t){return t.tagName==="SQM-TAB"||t.tagName==="RAISINS-PLOP-TARGET"})).map((function(t,e){if(t.tagName==="RAISINS-PLOP-TARGET"){var r=t;r.style.position="absolute";r.style.left="6px";var n=t.firstElementChild.childNodes[1];n.innerHTML="+";n.style.lineHeight="20px"}t.setAttribute("slot","tab-"+e);t.setAttribute("id","tab-"+e);return t}))}),[t,r]);useEffect((function(){var t=function(t){var r;var n=t.target;t.stopPropagation();if(!n)return;var a=n.closest("sqm-tabs");if(!e.contains(n)||!a)return;var s=n.closest("sqm-tab");var o=a.shadowRoot.querySelector("sl-tab-group");(r=o)===null||r===void 0?void 0:r.show(s.id)};e.addEventListener(REVEAL_EVENT,t);return function(){e.removeEventListener(REVEAL_EVENT,t)}}),[]);return{content:{tabs:n}}}var Tabs=function(){function t(t){registerInstance(this,t);h$1(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=useTabs().content;var e=getProps(this),r=e.placement,n=e.textColor;return h(TabsView,{placement:r,content:t,textColor:n},h("slot",null))};return t}();export{Tabs as sqm_tabs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,i){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{c(i.next(e))}catch(e){a(e)}}function s(e){try{c(i["throw"](e))}catch(e){a(e)}}function c(e){e.done?r(e.value):n(e.value).then(o,s)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;n=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];n=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-b3a06de8.js";import{k as useState,f as useEffect,n as h}from"./dom-context-hooks.module-63370afd.js";import{d as dist,J,I as In,p as En,X as Xe,i as isDemo}from"./index.module-c9811a48.js";import{c as cjs}from"./cjs-bdfb4486.js";import{g as getProps}from"./utils-
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,i){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{c(i.next(e))}catch(e){a(e)}}function s(e){try{c(i["throw"](e))}catch(e){a(e)}}function c(e){e.done?r(e.value):n(e.value).then(o,s)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;n=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];n=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-b3a06de8.js";import{k as useState,f as useEffect,n as h}from"./dom-context-hooks.module-63370afd.js";import{d as dist,J,I as In,p as En,X as Xe,i as isDemo}from"./index.module-c9811a48.js";import{c as cjs}from"./cjs-bdfb4486.js";import{g as getProps}from"./utils-334c1e34.js";import{e as extractProps,p as parseStates}from"./extractProps-54064fb0.js";import{S as SHOW_CODE_NAMESPACE,V as VERIFICATION_EMAIL_NAMESPACE,a as VERIFICATION_PARENT_NAMESPACE}from"./keys-406491dc.js";var USER_LOOKUP=dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query checkUserVerification {\n viewer {\n ... on User {\n id\n accountId\n email\n emailVerified\n managedIdentity {\n email\n emailVerified\n }\n }\n }\n }\n"],["\n query checkUserVerification {\n viewer {\n ... on User {\n id\n accountId\n email\n emailVerified\n managedIdentity {\n email\n emailVerified\n }\n }\n }\n }\n"])));function useWidgetVerification(){var e=this;var t=J();var r=In({namespace:SHOW_CODE_NAMESPACE,initialValue:false}),i=r[0],n=r[1];var a=In({namespace:VERIFICATION_EMAIL_NAMESPACE,initialValue:t===null||t===void 0?void 0:t.email}),o=a[0],s=a[1];var c=En(VERIFICATION_PARENT_NAMESPACE);var l=useState(true),u=l[0],d=l[1];var f=Xe(USER_LOOKUP)[0];useEffect((function(){var t=function(){return __awaiter(e,void 0,void 0,(function(){var e,t,r,i,n;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,2,3,4]);return[4,f({})];case 1:i=a.sent();if(!i||i instanceof Error)throw new Error;if((e=i===null||i===void 0?void 0:i.viewer)===null||e===void 0?void 0:e.emailVerified)c(true);else if((r=(t=i===null||i===void 0?void 0:i.viewer)===null||t===void 0?void 0:t.managedIdentity)===null||r===void 0?void 0:r.emailVerified)c(true);return[3,4];case 2:n=a.sent();console.error("Could not fetch user information:",n);return[3,4];case 3:d(false);return[7];case 4:return[2]}}))}))};t()}),[]);var p=function(){c(true)};return{showCode:i,onVerification:p,loading:u}}var WidgetVerification=function(){function e(e){registerInstance(this,e);this.general_verifyEmailHeader="Verify your email";this.general_verifyEmailDescription="To get your cash paid out directly to your bank account, please complete your account setup";this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";this.emailStep_sendCodeErrorHeader="There was an error sending your code.";this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.";this.emailStep_emailLabel="Email";this.emailStep_sendCodeText="Send code";this.emailStep_emailValidationErrorText="Please enter a valid email";this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}";this.codeStep_resendCodeLabel="Resend code";this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}";this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.";this.codeStep_verifyText="Verify";this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";this.stateController="{}";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getStepTextProps=function(e){var t=getProps(this);return extractProps(t,e)};e.prototype.render=function(){var e=isDemo()?useDemoWidgetVerificationInternal(this):useWidgetVerification();if(e.loading)return h$1("sl-spinner",null);var t=this.getStepTextProps("general_");return h$1("div",null,h$1("h3",{style:{fontSize:"24px",margin:"0"}},t.verifyEmailHeader),h$1("p",{style:{color:"var(--sl-color-neutral-500)",fontSize:"var(--sl-font-size-medium)",margin:"0"}},t.verifyEmailDescription),e.showCode?h$1("sqm-code-verification",Object.assign({onVerification:e.onVerification},this.getStepTextProps("codeStep_"),extractProps(e,"sqm-code-verification_"))):h$1("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_"),extractProps(e,"sqm-email-verification_"))))};return e}();function useDemoWidgetVerificationInternal(e){var t=In({namespace:SHOW_CODE_NAMESPACE,initialValue:false}),r=t[0],i=t[1];var n=In({namespace:VERIFICATION_EMAIL_NAMESPACE,initialValue:undefined}),a=n[0],o=n[1];var s=En(VERIFICATION_PARENT_NAMESPACE);var c=parseStates(e.stateController);var l=Object.keys(c).reduce((function(e,t){var r;return t==="sqm-widget-verification"?__assign(__assign({},e),c[t]):__assign(__assign({},e),(r={},r[t+"_stateController"]=c[t],r))}),{});var u=function(){s(true)};return cjs({showCode:r,onVerification:u,loading:false},l||{},{arrayMerge:function(e,t){return t}})}export{WidgetVerification as sqm_widget_verification};var templateObject_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-
|
|
1
|
+
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-943536b9.js";import{k as useState,y}from"./dom-context-hooks.module-63370afd.js";import{_}from"./index.module-c9811a48.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";var style={IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"28px"},Details:{marginLeft:"28px"},Heading:{display:"inline-block"},Children:{display:"none"}};var sheet=createStyleSheet(style);var styleString=sheet.toString();function RequiredPropsError(e,t){var s=e.missingProps,a=e.heading,r=a===void 0?"There was a problem loading this section":a,i=e.subheading,l=i===void 0?"There was a technical problem that prevented this section from loading. Please contact us with the link to this page.":i,o=e.description,n=o===void 0?"Error occured while loading <{tagName}>. Values for the following attributes are missing:":o;if(!s)return false;var d=_();var c=useState(false),m=c[0],u=c[1];return h("sl-alert",{type:"danger",open:true},h("style",{type:"text/css"},styleString),h("div",{slot:"icon",class:sheet.classes.IconStyle},h("sl-icon",{name:"exclamation-octagon"})),h("div",{class:sheet.classes.DivStyle},h("h2",{class:sheet.classes.Heading},intl.formatMessage({id:"error-heading",defaultMessage:r})),h("p",null,intl.formatMessage({id:"error-subheading",defaultMessage:l}))),h("details",{class:sheet.classes.Details},h("summary",{onClick:function(){return u(!m)}},m?"Less":"More"," details"),h("p",null,intl.formatMessage({id:"error-description",defaultMessage:n},{tagName:d.tagName.toLowerCase()})),h("ul",null,s.map((function(e){return h("li",null,h("strong",null,e.attribute))})))),h("div",{class:sheet.classes.Children},t))}var LEAD_FORM_STATE_CONTEXT="sq:lead-form-state";var LEAD_FORM_STATE_CONTEXT_INTERNAL="sq:lead-form-state-internal";function useLeadFormState(e){var t=_();var s=y(t,LEAD_FORM_STATE_CONTEXT,e),a=s[0],r=s[1];y(t,LEAD_FORM_STATE_CONTEXT_INTERNAL,[a,r]);return{leadFormState:a,setLeadFormState:r}}export{LEAD_FORM_STATE_CONTEXT as L,RequiredPropsError as R,useLeadFormState as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,o,r,n){function i(e){return e instanceof r?e:new r((function(o){o(e)}))}return new(r||(r=Promise))((function(r,t){function a(e){try{s(n.next(e))}catch(e){t(e)}}function l(e){try{s(n["throw"](e))}catch(e){t(e)}}function s(e){e.done?r(e.value):i(e.value).then(a,l)}s((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var r={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},n,i,t,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(o){return s([e,o])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(t=a[0]&2?i["return"]:a[0]?i["throw"]||((t=i["return"])&&t.call(i),0):i.next)&&!(t=t.call(i,a[1])).done)return t;if(i=0,t)a=[a[0]&2,t.value];switch(a[0]){case 0:case 1:t=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(t=r.trys,t=t.length>0&&t[t.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!t||a[1]>t[0]&&a[1]<t[3])){r.label=a[1];break}if(a[0]===6&&r.label<t[1]){r.label=t[1];t=a;break}if(t&&r.label<t[2]){r.label=t[2];r.ops.push(a);break}if(t[2])r.ops.pop();r.trys.pop();continue}a=o.call(e,r)}catch(e){a=[6,e];i=0}finally{n=t=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{k as useState}from"./dom-context-hooks.module-63370afd.js";import{c as je,h as hn,j as jn}from"./index.module-c9811a48.js";import{j as jsonpointer}from"./jsonpointer-388a7082.js";import{s as sanitizeUrlPath}from"./utils-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,o,r,n){function i(e){return e instanceof r?e:new r((function(o){o(e)}))}return new(r||(r=Promise))((function(r,t){function a(e){try{s(n.next(e))}catch(e){t(e)}}function l(e){try{s(n["throw"](e))}catch(e){t(e)}}function s(e){e.done?r(e.value):i(e.value).then(a,l)}s((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var r={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},n,i,t,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(o){return s([e,o])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(t=a[0]&2?i["return"]:a[0]?i["throw"]||((t=i["return"])&&t.call(i),0):i.next)&&!(t=t.call(i,a[1])).done)return t;if(i=0,t)a=[a[0]&2,t.value];switch(a[0]){case 0:case 1:t=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(t=r.trys,t=t.length>0&&t[t.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!t||a[1]>t[0]&&a[1]<t[3])){r.label=a[1];break}if(a[0]===6&&r.label<t[1]){r.label=t[1];t=a;break}if(t&&r.label<t[2]){r.label=t[2];r.ops.push(a);break}if(t[2])r.ops.pop();r.trys.pop();continue}a=o.call(e,r)}catch(e){a=[6,e];i=0}finally{n=t=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{k as useState}from"./dom-context-hooks.module-63370afd.js";import{c as je,h as hn,j as jn}from"./index.module-c9811a48.js";import{j as jsonpointer}from"./jsonpointer-388a7082.js";import{s as sanitizeUrlPath}from"./utils-334c1e34.js";function usePortalLogin(e){var o=this;var r,n,i,t,a,l,s,u,d,v,c,f,h,g;var p=je(),m=p[0],w=p[1],b=w.loading,P=w.errors,x=w.data;var y=hn(),_=y[0],j=y[1],k=j.loading,E=j.errors;var S=useState(""),U=S[0],M=S[1];var z=new URLSearchParams(jn.location.search);var I=z.get("nextPage");var L=function(r){return __awaiter(o,void 0,void 0,(function(){var o,n,i,t,a,l;return __generator(this,(function(s){switch(s.label){case 0:if(!((o=r.detail)===null||o===void 0?void 0:o.credential))return[2];return[4,_({idToken:r.detail.credential})];case 1:a=s.sent();if(a instanceof Error){if((a===null||a===void 0?void 0:a.message)||((n=a===null||a===void 0?void 0:a["response"])===null||n===void 0?void 0:n["error"]))if((i=a===null||a===void 0?void 0:a["response"])===null||i===void 0?void 0:i["errors"].some((function(e){var o;return((o=e===null||e===void 0?void 0:e["extensions"])===null||o===void 0?void 0:o["message"])==="Invalid Credentials."}))){M(e.googleUserNotRegisteredError)}else{M(e.networkErrorMessage)}return[2]}if((t=a.authenticateManagedIdentityWithGoogle)===null||t===void 0?void 0:t.token){z.delete("nextPage");l=sanitizeUrlPath(I||e.nextPage);jn.push(l.href)}return[2]}}))}))};var G=function(r){return __awaiter(o,void 0,void 0,(function(){var o,n,i,t,a,l;return __generator(this,(function(s){switch(s.label){case 0:M("");i=r.detail.formData;i===null||i===void 0?void 0:i.forEach((function(e,o){jsonpointer.set(i,o,e)}));t={email:i.email,password:i.password};return[4,m(t)];case 1:a=s.sent();if(a instanceof Error){if((a===null||a===void 0?void 0:a.message)||((o=a===null||a===void 0?void 0:a["response"])===null||o===void 0?void 0:o["error"]))M(e.networkErrorMessage);return[2]}if((n=a.authenticateManagedIdentityWithEmailAndPassword)===null||n===void 0?void 0:n.token){z.delete("nextPage");l=sanitizeUrlPath(I||e.nextPage);jn.push(l.href)}return[2]}}))}))};var R=((t=(i=(n=(r=P===null||P===void 0?void 0:P.response)===null||r===void 0?void 0:r.errors)===null||n===void 0?void 0:n[0])===null||i===void 0?void 0:i.extensions)===null||t===void 0?void 0:t.message)||((s=(l=(a=P===null||P===void 0?void 0:P.response)===null||a===void 0?void 0:a.errors)===null||l===void 0?void 0:l[0])===null||s===void 0?void 0:s.message)||U;var T=((c=(v=(d=(u=E===null||E===void 0?void 0:E.response)===null||u===void 0?void 0:u.errors)===null||d===void 0?void 0:d[0])===null||v===void 0?void 0:v.extensions)===null||c===void 0?void 0:c.message)||((g=(h=(f=E===null||E===void 0?void 0:E.response)===null||f===void 0?void 0:f.errors)===null||h===void 0?void 0:h[0])===null||g===void 0?void 0:g.message)||U;return{states:{loading:b||k,error:R||T,registerPath:e.registerPath,forgotPasswordPath:e.forgotPasswordPath},callbacks:{googleSubmit:L,submit:G}}}export{usePortalLogin as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function readGetters(r){var t=[];Object.keys(r).forEach((function(e){var n=Object.getOwnPropertyDescriptor(r,e);if(typeof n.get==="function"){t.push(e)}}));return t}function getProps(r){var t={};for(var e=0,n=readGetters(Object.getPrototypeOf(r));e<n.length;e++){var a=n[e];t[a]=r[a]}return t}function getMissingProps(r){var t=r.filter((function(r){return!r.value}));return t.length?t:false}function luxonLocale(r){var t=r===null||r===void 0?void 0:r.split("_");if(!t||t.length===1)return r;var e=t[0];var n=t[1];return e+"-"+n.toUpperCase()}function sanitizeUrlPath(r){var t=new URL(r,window.location.origin);var e=new URL(window.location.origin);e.pathname=t.pathname;e.search=t.search;e.hash=t.hash;return e}export{getMissingProps as a,getProps as g,luxonLocale as l,sanitizeUrlPath as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-
|
|
1
|
+
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-943536b9.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";var style={Container:{display:"flex",flexDirection:"column",gap:"24px"},HeaderContainer:{display:"flex",flexDirection:"column",gap:"10px"},TitleSkeleton:{width:"45%",height:"40px !important"},StepSkeleton:{width:"15%"},HeaderSkeleton:{width:"25%",height:"30px !important"},InputSkeleton:{width:"75%"},ButtonSkeleton:{width:"80px",height:"30px !important"}};var sheet=createStyleSheet(style);var styleString=sheet.toString();var LoadingView=function(){return h("div",{class:sheet.classes.Container},h("style",{type:"text/css"},styleString),h("sl-skeleton",{class:sheet.classes.TitleSkeleton}),h("div",{class:sheet.classes.HeaderContainer},h("sl-skeleton",{class:sheet.classes.StepSkeleton}),h("sl-skeleton",{class:sheet.classes.HeaderSkeleton})),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.InputSkeleton}),h("sl-skeleton",{class:sheet.classes.StepSkeleton}),h("sl-skeleton",{class:sheet.classes.ButtonSkeleton}))};function validTaxDocument(e){var t=["W9","W8BENE","W8BEN"];if(t.includes(e))return true;return false}var objectIsFull=function(e){return!Object.keys(e).find((function(t){return e[t]==undefined}))};var taxTypeToName=function(e){switch(e){case"W9":return"W-9";case"W8BEN":case"W8BENE":return"W-8";default:return""}};function validateBillingField(e,t){var s=t.trim();var l=s.search(e);return l>-1}var formatErrorMessage=function(e,t){return intl.formatMessage({id:e,defaultMessage:t},{fieldName:e})};function getCountryObj(e){var t=e.countryCode,s=e.locale;var l=new Intl.DisplayNames([s],{type:"region"}).of(t);return{countryCode:t,displayName:l}}export{LoadingView as L,validateBillingField as a,formatErrorMessage as f,getCountryObj as g,objectIsFull as o,taxTypeToName as t,validTaxDocument as v};
|