@saasquatch/mint-components 2.1.9-1 → 2.1.9-11
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-big-stat_45.cjs.entry.js → sqm-big-stat_46.cjs.entry.js} +369 -5
- package/dist/cjs/sqm-code-verification.cjs.entry.js +3 -4
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +25 -5
- package/dist/cjs/{sqm-partner-info-modal-view-e3faede9.js → sqm-partner-info-modal-view-98e2975d.js} +24 -18
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +28 -2
- package/dist/cjs/{sqm-user-info-form-view-efa08934.js → sqm-user-info-form-view-923ff8d9.js} +3 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +160 -22
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +23 -18
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +77 -6
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +5 -2
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +16 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +3 -4
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +474 -13
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +14 -4
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +3 -11
- package/dist/esm/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-657d18f0.js} +5 -5
- package/dist/esm/{data-a6752028.js → data-2b0feb3f.js} +2 -2
- package/dist/esm/{global-b2ee3a12.js → global-39f55ec2.js} +1 -1
- package/dist/esm/{index.module-e266b4d7.js → index.module-cede12c6.js} +1 -1
- package/dist/esm/{keys-406491dc.js → keys-db1897ae.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/{re-render-4f4bd4da.js → re-render-7a0c7976.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +9 -9
- package/dist/esm/{sqm-big-stat_45.entry.js → sqm-big-stat_46.entry.js} +378 -15
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +7 -8
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +29 -9
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-lead-checkbox-field-view-00d76ba1.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-d8f76a9d.js → sqm-lead-input-field-view-11a4f9a9.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-7f966119.js → sqm-navigation-sidebar-item-view-48e7e0d3.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/{sqm-partner-info-modal-view-77c231af.js → sqm-partner-info-modal-view-74328f70.js} +24 -19
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-13e25037.js → sqm-portal-email-verification-view-80736644.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-a172bdcc.js → sqm-portal-profile-view-a6be8558.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-92297506.js} +1 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +41 -15
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-user-info-form-view-b2dd8aa1.js → sqm-user-info-form-view-f9026468.js} +5 -13
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/sqm-widget-verification.entry.js +160 -22
- package/dist/esm/{useChildElements-31ba3daf.js → useChildElements-c26d7347.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-1388dace.js → useInstantAccessRegistration-e2392f42.js} +2 -2
- package/dist/esm/{useLeadFormState-cec544ea.js → useLeadFormState-9099c8d4.js} +2 -2
- package/dist/esm/{usePayoutStatus-24145412.js → usePayoutStatus-fa504d49.js} +1 -1
- package/dist/esm/{usePortalRegistrationForm-6d562bf8.js → usePortalRegistrationForm-5844032a.js} +2 -2
- package/dist/esm/{useReferralCodes-1ca1fda0.js → useReferralCodes-3cde72d4.js} +1 -1
- package/dist/esm/{useReferralTable-456931fd.js → useReferralTable-35e6d4c1.js} +3 -3
- package/dist/esm/{useRegistrationFormState-0cee2d21.js → useRegistrationFormState-1813bdef.js} +1 -1
- package/dist/esm/{useVerificationEmail-5c6cd733.js → useVerificationEmail-cb3d51e3.js} +1 -1
- package/dist/esm/{utilities-f05633da.js → utilities-c9e730ed.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-657d18f0.js} +1 -1
- package/dist/esm-es5/{data-a6752028.js → data-2b0feb3f.js} +1 -1
- package/dist/esm-es5/{global-b2ee3a12.js → global-39f55ec2.js} +1 -1
- package/dist/esm-es5/{index.module-e266b4d7.js → index.module-cede12c6.js} +1 -1
- package/dist/esm-es5/{keys-406491dc.js → keys-db1897ae.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/{re-render-4f4bd4da.js → re-render-7a0c7976.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- 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_2.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-00d76ba1.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d8f76a9d.js → sqm-lead-input-field-view-11a4f9a9.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-view-7f966119.js → sqm-navigation-sidebar-item-view-48e7e0d3.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-74328f70.js +1 -0
- 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-email-verification-view-13e25037.js → sqm-portal-email-verification-view-80736644.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-a172bdcc.js → sqm-portal-profile-view-a6be8558.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.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-92297506.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-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-b2dd8aa1.js → sqm-user-info-form-view-f9026468.js} +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-31ba3daf.js → useChildElements-c26d7347.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-1388dace.js → useInstantAccessRegistration-e2392f42.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-cec544ea.js → useLeadFormState-9099c8d4.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-24145412.js → usePayoutStatus-fa504d49.js} +1 -1
- package/dist/esm-es5/{usePortalRegistrationForm-6d562bf8.js → usePortalRegistrationForm-5844032a.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-1ca1fda0.js → useReferralCodes-3cde72d4.js} +1 -1
- package/dist/esm-es5/{useReferralTable-456931fd.js → useReferralTable-35e6d4c1.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-0cee2d21.js → useRegistrationFormState-1813bdef.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-5c6cd733.js → useVerificationEmail-cb3d51e3.js} +1 -1
- package/dist/esm-es5/{utilities-f05633da.js → utilities-c9e730ed.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-9f21ea69.js → p-014977d7.js} +1 -1
- package/dist/mint-components/{p-30967f75.js → p-092db51a.js} +1 -1
- package/dist/mint-components/{p-bd804f4c.js → p-095b7128.js} +1 -1
- package/dist/mint-components/{p-bae7d6b5.system.entry.js → p-098d134a.system.entry.js} +1 -1
- package/dist/mint-components/{p-6596f0de.entry.js → p-0a1669f8.entry.js} +2 -2
- package/dist/mint-components/{p-2085bb01.system.entry.js → p-0a60980a.system.entry.js} +1 -1
- package/dist/mint-components/{p-504ed1f2.entry.js → p-0c43b6ff.entry.js} +1 -1
- package/dist/mint-components/{p-ab678644.js → p-0d75a207.js} +1 -1
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/{p-473562fc.system.js → p-140e6a15.system.js} +1 -1
- package/dist/mint-components/{p-fa32d8eb.system.entry.js → p-15a703c7.system.entry.js} +1 -1
- package/dist/mint-components/{p-b9652150.entry.js → p-160828b4.entry.js} +1 -1
- package/dist/mint-components/{p-878bb2cf.system.entry.js → p-16deb1a9.system.entry.js} +1 -1
- package/dist/mint-components/{p-1435edd4.entry.js → p-1b0cbbae.entry.js} +1 -1
- package/dist/mint-components/{p-aa0b0cd6.entry.js → p-1b2fcd7f.entry.js} +1 -1
- package/dist/mint-components/p-1c413a06.system.js +1 -0
- package/dist/mint-components/{p-2774c704.system.entry.js → p-21e7079a.system.entry.js} +1 -1
- package/dist/mint-components/p-278897bd.system.entry.js +1 -0
- package/dist/mint-components/{p-695ec086.system.js → p-28e0062c.system.js} +1 -1
- package/dist/mint-components/{p-c8060ef5.system.entry.js → p-2f4d8ab8.system.entry.js} +1 -1
- package/dist/mint-components/{p-dfb50245.entry.js → p-3181e54a.entry.js} +1 -1
- package/dist/mint-components/{p-5d79c8a0.system.js → p-31dde9fc.system.js} +1 -1
- package/dist/mint-components/{p-d863acaa.js → p-32d078a3.js} +1 -1
- package/dist/mint-components/{p-7528770e.entry.js → p-3461a8cb.entry.js} +1 -1
- package/dist/mint-components/{p-6e816a17.system.entry.js → p-357040e6.system.entry.js} +1 -1
- package/dist/mint-components/{p-452f644f.system.js → p-36395228.system.js} +1 -1
- package/dist/mint-components/{p-5245e4ce.system.entry.js → p-3756d0d1.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f6d617a.entry.js → p-37658fec.entry.js} +1 -1
- package/dist/mint-components/p-39840341.js +1 -0
- package/dist/mint-components/{p-5126508b.js → p-3c333076.js} +1 -1
- package/dist/mint-components/{p-6684e9ad.js → p-3c555674.js} +1 -1
- package/dist/mint-components/{p-21851092.js → p-3c88d2ed.js} +2 -2
- package/dist/mint-components/{p-e7a9ce16.js → p-438f6702.js} +1 -1
- package/dist/mint-components/{p-fe0eceba.system.entry.js → p-45475cf9.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7948b16.system.entry.js → p-52748a87.system.entry.js} +1 -1
- package/dist/mint-components/p-53f22cc0.system.entry.js +1 -0
- package/dist/mint-components/{p-614630a8.system.js → p-54bf015a.system.js} +1 -1
- package/dist/mint-components/{p-96cbca52.system.entry.js → p-5c9d030a.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b7b65ef.entry.js → p-5dc9e95b.entry.js} +2 -2
- package/dist/mint-components/{p-82be3d10.system.entry.js → p-60085f20.system.entry.js} +1 -1
- package/dist/mint-components/{p-cc0fe4a3.entry.js → p-608da224.entry.js} +1 -1
- package/dist/mint-components/{p-5825aee6.system.entry.js → p-6194855b.system.entry.js} +1 -1
- package/dist/mint-components/{p-b8766db9.entry.js → p-62212b9a.entry.js} +1 -1
- package/dist/mint-components/{p-f3ddbe2f.system.entry.js → p-62e1c8b2.system.entry.js} +1 -1
- package/dist/mint-components/p-63c299f1.system.js +1 -0
- package/dist/mint-components/{p-9be145c6.system.entry.js → p-64b56141.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b9705fd.system.js → p-64f56cc9.system.js} +1 -1
- package/dist/mint-components/{p-f95952a0.system.entry.js → p-66c0100c.system.entry.js} +1 -1
- package/dist/mint-components/{p-2ad9470d.system.entry.js → p-6a4496b3.system.entry.js} +1 -1
- package/dist/mint-components/{p-1775cb0c.system.js → p-70e34ae1.system.js} +2 -2
- package/dist/mint-components/{p-20280398.system.entry.js → p-71545bfd.system.entry.js} +1 -1
- package/dist/mint-components/{p-6d444f3f.system.js → p-74aac245.system.js} +1 -1
- package/dist/mint-components/{p-59644ef8.system.js → p-7547180f.system.js} +1 -1
- package/dist/mint-components/{p-f84605ec.system.js → p-77117f6c.system.js} +1 -1
- package/dist/mint-components/{p-a03189bd.js → p-7e36a1ff.js} +1 -1
- package/dist/mint-components/{p-5450693e.entry.js → p-8139fdec.entry.js} +1 -1
- package/dist/mint-components/{p-320b306b.js → p-8474aa63.js} +1 -1
- package/dist/mint-components/{p-33a6ab09.js → p-857a2d77.js} +1 -1
- package/dist/mint-components/{p-b179621d.system.js → p-86381dc7.system.js} +1 -1
- package/dist/mint-components/{p-e502fd80.entry.js → p-86a70151.entry.js} +1 -1
- package/dist/mint-components/{p-a30f0ffd.entry.js → p-886fb141.entry.js} +1 -1
- package/dist/mint-components/{p-b6fc53c9.entry.js → p-88c9cc1b.entry.js} +1 -1
- package/dist/mint-components/{p-97b8c481.js → p-896390f9.js} +1 -1
- package/dist/mint-components/p-8d5db0d5.entry.js +105 -0
- package/dist/mint-components/{p-fca34d77.js → p-8f9c1387.js} +1 -1
- package/dist/mint-components/{p-44afc747.entry.js → p-93c5c8ec.entry.js} +1 -1
- package/dist/mint-components/{p-9c381424.system.entry.js → p-95aaf35a.system.entry.js} +1 -1
- package/dist/mint-components/{p-f6fc7569.entry.js → p-96e4e6a4.entry.js} +1 -1
- package/dist/mint-components/{p-ed17e1b8.entry.js → p-991f60fc.entry.js} +1 -1
- package/dist/mint-components/{p-353ab6db.entry.js → p-996eb820.entry.js} +1 -1
- package/dist/mint-components/{p-b8288385.system.entry.js → p-998c989a.system.entry.js} +1 -1
- package/dist/mint-components/p-99b17bca.system.js +1 -0
- package/dist/mint-components/{p-82905fda.system.js → p-9b33e2a7.system.js} +1 -1
- package/dist/mint-components/{p-7767314d.system.entry.js → p-9bd53e4d.system.entry.js} +1 -1
- package/dist/mint-components/{p-89f8ab67.entry.js → p-9c1b0c8b.entry.js} +1 -1
- package/dist/mint-components/{p-07f3b868.entry.js → p-9e43f1eb.entry.js} +1 -1
- package/dist/mint-components/{p-9fa6606e.js → p-a5912b2f.js} +1 -1
- package/dist/mint-components/{p-7a7ebf08.js → p-a7ee6531.js} +1 -1
- package/dist/mint-components/{p-83277c69.system.js → p-a86ce218.system.js} +1 -1
- package/dist/mint-components/{p-d6c1e876.system.js → p-a8ecdc44.system.js} +1 -1
- package/dist/mint-components/{p-f3b21df2.system.js → p-b1b8e629.system.js} +1 -1
- package/dist/mint-components/{p-93cb9438.system.entry.js → p-b297016f.system.entry.js} +1 -1
- package/dist/mint-components/p-b2a99637.system.js +1 -0
- package/dist/mint-components/p-b2bde2f5.entry.js +1 -0
- package/dist/mint-components/{p-d2448c85.system.entry.js → p-b451970a.system.entry.js} +1 -1
- package/dist/mint-components/{p-4da8028d.system.entry.js → p-b5c0bad5.system.entry.js} +1 -1
- package/dist/mint-components/{p-ad017a39.js → p-b5f57914.js} +1 -1
- package/dist/mint-components/{p-80174c14.entry.js → p-b5fed7c6.entry.js} +1 -1
- package/dist/mint-components/{p-c2c01ab5.entry.js → p-ba953c21.entry.js} +1 -1
- package/dist/mint-components/{p-47f594c3.entry.js → p-bba694e4.entry.js} +1 -1
- package/dist/mint-components/{p-d5375baf.js → p-bcadd021.js} +1 -1
- package/dist/mint-components/{p-79854479.system.js → p-be63f29b.system.js} +1 -1
- package/dist/mint-components/p-bfbfde38.entry.js +33 -0
- package/dist/mint-components/p-c68c2331.js +1 -0
- package/dist/mint-components/{p-07da0ddd.system.entry.js → p-c7535e70.system.entry.js} +1 -1
- package/dist/mint-components/{p-d42aba0e.system.js → p-c84a2512.system.js} +1 -1
- package/dist/mint-components/{p-55b1be64.system.entry.js → p-c8e45671.system.entry.js} +1 -1
- package/dist/mint-components/{p-e5e8e13e.js → p-ce11858c.js} +1 -1
- package/dist/mint-components/{p-1d450b85.js → p-d20188db.js} +1 -1
- package/dist/mint-components/{p-e4d3b7a9.system.js → p-d355336b.system.js} +1 -1
- package/dist/mint-components/{p-5822a43f.system.entry.js → p-d5a1c979.system.entry.js} +1 -1
- package/dist/mint-components/p-d6714617.entry.js +1 -0
- package/dist/mint-components/{p-5e106c95.system.js → p-d798004f.system.js} +1 -1
- package/dist/mint-components/p-dac1f2cb.system.entry.js +1 -0
- package/dist/mint-components/{p-7333d103.system.entry.js → p-dbdb2a46.system.entry.js} +1 -1
- package/dist/mint-components/{p-c756bc32.system.js → p-e4dbca9a.system.js} +1 -1
- package/dist/mint-components/{p-7c0255ad.entry.js → p-e5ee6cf5.entry.js} +2 -2
- package/dist/mint-components/{p-8f5b316e.js → p-e95402dc.js} +1 -1
- package/dist/mint-components/{p-0a900fb1.system.entry.js → p-e9e05970.system.entry.js} +1 -1
- package/dist/mint-components/{p-3dc1e209.system.js → p-eaf5d0af.system.js} +1 -1
- package/dist/mint-components/{p-84866680.entry.js → p-f11d29fd.entry.js} +1 -1
- package/dist/mint-components/{p-dece706f.js → p-f18a6658.js} +1 -1
- package/dist/mint-components/{p-06ca4346.entry.js → p-f4a57aed.entry.js} +1 -1
- package/dist/mint-components/{p-2e2c5ec4.entry.js → p-f972e5c9.entry.js} +1 -1
- package/dist/mint-components/p-fa3d7e53.entry.js +291 -0
- package/dist/mint-components/{p-91c4b8d5.system.entry.js → p-fb4ab5ba.system.entry.js} +1 -1
- package/dist/mint-components/sqm-widget-verification.entry.js +356 -0
- package/dist/mint-components/sqm-widget-verification.system.entry.js +1 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +1 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +15 -2
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +73 -0
- package/dist/types/components.d.ts +173 -3
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/extractProps-e9c55ba8.js +0 -35
- package/dist/esm/extractProps-54064fb0.js +0 -32
- package/dist/esm-es5/extractProps-54064fb0.js +0 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-77c231af.js +0 -1
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-1b0d7020.js +0 -1
- package/dist/mint-components/p-2c0bb139.entry.js +0 -33
- package/dist/mint-components/p-35724e1c.entry.js +0 -1
- package/dist/mint-components/p-38c7775a.js +0 -1
- package/dist/mint-components/p-470f7c0f.system.entry.js +0 -1
- package/dist/mint-components/p-4afbeea5.entry.js +0 -16
- package/dist/mint-components/p-4b365f1f.system.js +0 -1
- package/dist/mint-components/p-57dd28bd.system.js +0 -1
- package/dist/mint-components/p-66c070e2.entry.js +0 -105
- package/dist/mint-components/p-6e6f19ea.system.entry.js +0 -1
- package/dist/mint-components/p-71c585b7.entry.js +0 -1
- package/dist/mint-components/p-78909fc0.system.js +0 -1
- package/dist/mint-components/p-a9855b29.system.entry.js +0 -1
- package/dist/mint-components/p-e44c816e.system.js +0 -1
- package/dist/mint-components/p-e55aafe9.system.js +0 -1
- package/dist/mint-components/p-e6924adb.entry.js +0 -273
- package/dist/mint-components/p-e9a596d6.system.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):o(e.value).then(i,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(a=i[0]&2?o["return"]:i[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;if(o=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;o=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1];a=i;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(i);break}if(a[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];o=0}finally{r=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};System.register(["./p-b6504987.system.js","./p-d6c1e876.system.js"],(function(e){"use strict";var t,n,r,o,a,i,s,l,c;return{setters:[function(e){t=e.g;n=e.c;r=e.a;o=e.b;a=e.l},function(e){i=e.s;s=e.m;l=e.U;c=e.g}],execute:function(){var u=this;e("b",j_);if(Intl.RelativeTimeFormat&&typeof Intl.RelativeTimeFormat.__addLocaleData==="function"){Intl.RelativeTimeFormat.__addLocaleData({data:{"en-001":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-150":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-AU":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"in {0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}}},"en-CA":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}}},"en-SG":{"quarter-short":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr"},"quarter-narrow":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr"},"month-short":{0:"this mth",1:"next mth",future:{one:"in {0} mth",other:"in {0} mth"},past:{one:"{0} mth ago",other:"{0} mth ago"},"-1":"last mth"}},en:{nu:["latn"],year:{0:"this year",1:"next year",future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"},"-1":"last year"},"year-short":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},"year-narrow":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},quarter:{0:"this quarter",1:"next quarter",future:{one:"in {0} quarter",other:"in {0} quarters"},past:{one:"{0} quarter ago",other:"{0} quarters ago"},"-1":"last quarter"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},month:{0:"this month",1:"next month",future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"},"-1":"last month"},"month-short":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},"month-narrow":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},week:{0:"this week",1:"next week",future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"},"-1":"last week"},"week-short":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},"week-narrow":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},day:{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-short":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-narrow":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},hour:{0:"this hour",future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},minute:{0:"this minute",future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},second:{0:"now",future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}},availableLocales:["en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-US-POSIX","en-US","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","en"],aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"}})}var f=undefined&&undefined.__assign||function(){f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return f.apply(this,arguments)};var p=1e3;var d=60;var h=d*60;var v=h*24;var m=v*7;function g(e,t,n){if(t===void 0){t=Date.now()}if(n===void 0){n={}}var r=f(f({},b),n||{});var o=(+e-+t)/p;if(Math.abs(o)<r.second){return{value:Math.round(o),unit:"second"}}var a=o/d;if(Math.abs(a)<r.minute){return{value:Math.round(a),unit:"minute"}}var i=o/h;if(Math.abs(i)<r.hour){return{value:Math.round(i),unit:"hour"}}var s=o/v;if(Math.abs(s)<r.day){return{value:Math.round(s),unit:"day"}}var l=new Date(e);var c=new Date(t);var u=l.getFullYear()-c.getFullYear();if(Math.round(Math.abs(u))>0){return{value:Math.round(u),unit:"year"}}var g=u*12+l.getMonth()-c.getMonth();if(Math.round(Math.abs(g))>0){return{value:Math.round(g),unit:"month"}}var y=o/m;return{value:Math.round(y),unit:"week"}}var b={second:45,minute:45,hour:22,day:5};var y={"aa-SAAHO":"ssy",aam:"aas",aar:"aa",abk:"ab",adp:"dz",afr:"af",aju:"jrb",aka:"ak",alb:"sq",als:"sq",amh:"am",ara:"ar",arb:"ar",arg:"an",arm:"hy","art-lojban":"jbo",asd:"snz",asm:"as",aue:"ktz",ava:"av",ave:"ae",aym:"ay",ayr:"ay",ayx:"nun","az-AZ":"az-Latn-AZ",aze:"az",azj:"az",bak:"ba",bam:"bm",baq:"eu",bcc:"bal",bcl:"bik",bel:"be",ben:"bn",bgm:"bcg",bh:"bho",bih:"bho",bis:"bi",bjd:"drl",bod:"bo",bos:"bs",bre:"br","bs-BA":"bs-Latn-BA",bul:"bg",bur:"my",bxk:"luy",bxr:"bua",cat:"ca",ccq:"rki","cel-gaulish":"xtg-x-cel-gaulish",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cjr:"mom",cka:"cmr",cld:"syr",cmk:"xch",cmn:"zh",cnr:"sr-ME",cor:"kw",cos:"co",coy:"pij",cqu:"quh",cre:"cr",cwd:"cr",cym:"cy",cze:"cs",dan:"da",deu:"de",dgo:"doi",dhd:"mwr",dik:"din",diq:"zza",dit:"dif",div:"dv",drh:"mn",drw:"fa-af",dut:"nl",dzo:"dz",ekk:"et",ell:"el",emk:"man",eng:"en",epo:"eo",esk:"ik",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fat:"ak",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",fuc:"ff",ful:"ff",gav:"dev",gaz:"om",gbo:"grb",geo:"ka",ger:"de",gfx:"vaj",ggn:"gvr",gla:"gd",gle:"ga",glg:"gl",glv:"gv",gno:"gon",gre:"el",grn:"gn",gti:"nyc",gug:"gn",guj:"gu",guv:"duz",gya:"gba","ha-Latn-GH":"ha-GH","ha-Latn-NE":"ha-NE","ha-Latn-NG":"ha-NG",hat:"ht",hau:"ha",hbs:"sr-Latn",hdn:"hai",hea:"hmn",heb:"he",her:"hz",him:"srx",hin:"hi",hmo:"ho",hrr:"jal",hrv:"hr",hun:"hu",hye:"hy","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","i-default":"en-x-i-default","i-enochian":"und-x-i-enochian","i-mingo":"see-x-i-mingo",ibi:"opa",ibo:"ig",ice:"is",ido:"io",iii:"ii",ike:"iu",iku:"iu",ile:"ie",ilw:"gal",in:"id",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",iw:"he",jav:"jv",jeg:"oyb",ji:"yi",jpn:"ja",jw:"jv",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",kgc:"tdf",kgh:"kml",khk:"mn",khm:"km",kik:"ki",kin:"rw",kir:"ky","kk-Cyrl-KZ":"kk-KZ",kmr:"ku",knc:"kr",kng:"kg",knn:"kok",koj:"kwv",kom:"kv",kon:"kg",kor:"ko",kpv:"kv",krm:"bmf","ks-Arab-IN":"ks-IN",ktr:"dtp",kua:"kj",kur:"ku",kvs:"gdj",kwq:"yam",kxe:"tvd","ky-Cyrl-KG":"ky-KG",kzj:"dtp",kzt:"dtp",lao:"lo",lat:"la",lav:"lv",lbk:"bnc",lii:"raq",lim:"li",lin:"ln",lit:"lt",llo:"ngt",lmm:"rmx",ltz:"lb",lub:"lu",lug:"lg",lvs:"lv",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",meg:"cir",mhr:"chm",mkd:"mk",mlg:"mg",mlt:"mt","mn-Cyrl-MN":"mn-MN",mnk:"man",mo:"ro",mol:"ro",mon:"mn",mri:"mi","ms-Latn-BN":"ms-BN","ms-Latn-MY":"ms-MY","ms-Latn-SG":"ms-SG",msa:"ms",mst:"mry",mup:"raj",mwj:"vaj",mya:"my",myd:"aog",myt:"mry",nad:"xny",nau:"na",nav:"nv",nbl:"nr",ncp:"kdz",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",nno:"nn",nns:"nbr",nnx:"ngv",no:"nb","no-bok":"nb","no-BOKMAL":"nb","no-nyn":"nn","no-NYNORSK":"nn",nob:"nb",nor:"nb",npi:"ne",nts:"pij",nya:"ny",oci:"oc",ojg:"oj",oji:"oj",ori:"or",orm:"om",ory:"or",oss:"os",oun:"vaj","pa-IN":"pa-Guru-IN","pa-PK":"pa-Arab-PK",pan:"pa",pbu:"ps",pcr:"adx",per:"fa",pes:"fa",pli:"pi",plt:"mg",pmc:"huw",pmu:"phr",pnb:"lah",pol:"pl",por:"pt",ppa:"bfy",ppr:"lcq",prs:"fa-AF",pry:"prt",pus:"ps",puz:"pub",que:"qu",quz:"qu",rmy:"rom",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sca:"hle",scc:"sr",scr:"hr","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg",sh:"sr-Latn","shi-MA":"shi-Tfng-MA",sin:"si",skk:"oyb",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",spy:"kln",sqi:"sq","sr-BA":"sr-Cyrl-BA","sr-ME":"sr-Latn-ME","sr-RS":"sr-Cyrl-RS","sr-XK":"sr-Cyrl-XK",src:"sc",srd:"sc",srp:"sr",ssw:"ss",sun:"su",swa:"sw",swc:"sw-CD",swe:"sv",swh:"sw",tah:"ty",tam:"ta",tat:"tt",tdu:"dtp",tel:"te",tgk:"tg",tgl:"fil",tha:"th",thc:"tpo",thx:"oyb",tib:"bo",tie:"ras",tir:"ti",tkk:"twm",tl:"fil",tlw:"weo",tmp:"tyj",tne:"kak",tnf:"fa-af",ton:"to",tsf:"taj",tsn:"tn",tso:"ts",ttq:"tmh",tuk:"tk",tur:"tr",tw:"ak",twi:"ak","tzm-Latn-MA":"tzm-MA","ug-Arab-CN":"ug-CN",uig:"ug",ukr:"uk",umu:"del",uok:"ema",urd:"ur","uz-AF":"uz-Arab-AF","uz-UZ":"uz-Latn-UZ",uzb:"uz",uzn:"uz","vai-LR":"vai-Vaii-LR",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wln:"wa",wol:"wo",xba:"cax",xho:"xh",xia:"acn",xkh:"waw",xpe:"kpe",xsj:"suj",xsl:"den",ybd:"rki",ydd:"yi",yid:"yi",yma:"lrr",ymt:"mtm",yor:"yo",yos:"zom","yue-CN":"yue-Hans-CN","yue-HK":"yue-Hant-HK",yuu:"yug",zai:"zap","zh-CN":"zh-Hans-CN","zh-guoyu":"zh","zh-hakka":"hak","zh-HK":"zh-Hant-HK","zh-min-nan":"nan","zh-MO":"zh-Hant-MO","zh-SG":"zh-Hans-SG","zh-TW":"zh-Hant-TW","zh-xiang":"hsn","zh-min":"nan-x-zh-min",zha:"za",zho:"zh",zsm:"ms",zul:"zu",zyb:"za"};var w={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","zh-Hant-MO":"zh-Hant-HK"};function _(e,t,n){if(n===void 0){n=Error}if(!e){throw new n(t)}}function x(e){if(e==null){throw new TypeError("undefined/null cannot be converted to object")}return Object(e)}function k(e){if(typeof e==="symbol"){throw TypeError("Cannot convert a Symbol value to a string")}return String(e)}function S(e,t,n,r,o){var a=e[t];if(a!==undefined){if(n!=="boolean"&&n!=="string"){throw new TypeError("invalid type")}if(n==="boolean"){a=Boolean(a)}if(n==="string"){a=k(a)}if(r!==undefined&&!r.filter((function(e){return e==a})).length){throw new RangeError(a+" is not within "+r.join(", "))}return a}return o}function T(e,t,n,r){if(e!==undefined){e=Number(e);if(isNaN(e)||e<t||e>n){throw new RangeError(e+" is outside of range ["+t+", "+n+"]")}return Math.floor(e)}return r}function O(e,t,n,r,o){var a=e[t];return T(a,n,r,o)}function C(e){return Object.keys(y).reduce((function(t,n){if(n.split("-")[0]===e){t[n]=y[n]}return t}),{})}function A(e){return Object.keys(w).reduce((function(t,n){if(n.split("-")[0]===e){t[n]=w[n]}return t}),{})}function E(e,t,n,r){if(!e.get(t)){e.set(t,Object.create(null))}var o=e.get(t);o[n]=r}function z(e,t,n){for(var r=0,o=Object.keys(n);r<o.length;r++){var a=o[r];E(e,t,a,n[a])}}function I(e,t,n){return M(e,t,n)[n]}function M(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var o=e.get(t);if(!o){throw new TypeError(t+" InternalSlot has not been initialized")}return n.reduce((function(e,t){e[t]=o[t];return e}),Object.create(null))}function F(e){return e.type==="literal"}function L(e){var t=[];var n=e.indexOf("{");var r=0;var o=0;var a=e.length;while(n<e.length&&n>-1){r=e.indexOf("}",n);_(r>n,"Invalid pattern "+e);if(n>o){t.push({type:"literal",value:e.substring(o,n)})}t.push({type:e.substring(n+1,r),value:undefined});o=r+1;n=e.indexOf("{",o)}if(o<a){t.push({type:"literal",value:e.substring(o,a)})}return t}function P(e,t,n,r,o){var a=O(n,"minimumIntegerDigits",1,21,1);var i=n.minimumFractionDigits;var s=n.maximumFractionDigits;var l=n.minimumSignificantDigits;var c=n.maximumSignificantDigits;E(e,t,"minimumIntegerDigits",a);if(l!==undefined||c!==undefined){E(e,t,"roundingType","significantDigits");l=T(l,1,21,1);c=T(c,l,21,21);E(e,t,"minimumSignificantDigits",l);E(e,t,"maximumSignificantDigits",c)}else if(i!==undefined||s!==undefined){E(e,t,"roundingType","fractionDigits");i=T(i,0,20,r);var u=Math.max(i,o);s=T(s,i,20,u);E(e,t,"minimumFractionDigits",i);E(e,t,"maximumFractionDigits",s)}else if(I(e,t,"notation")==="compact"){E(e,t,"roundingType","compactRounding")}else{E(e,t,"roundingType","fractionDigits");E(e,t,"minimumFractionDigits",r);E(e,t,"maximumFractionDigits",o)}}function N(e,t){if(Object.is){return Object.is(e,t)}if(e===t){return e!==0||1/e===1/t}return e!==e&&t!==t}var D=/[^A-Z]/;function j(e){return e.replace(/([a-z])/g,(function(e,t){return t.toUpperCase()}))}function R(e){e=j(e);if(e.length!==3){return false}if(D.test(e)){return false}return true}function q(e){var t=Intl.getCanonicalLocales;if(typeof t==="function"){return t(e)}return Intl.DateTimeFormat.supportedLocalesOf(e)}var B=undefined&&undefined.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var V=undefined&&undefined.__assign||function(){V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return V.apply(this,arguments)};function U(e){var t=K(e);var n=Y(e);return function e(r,o,a,i,s){var l=a.localeMatcher;var c;if(l==="lookup"){c=t(r,o)}else{c=n(r,o)}var u=c.locale;var f={locale:"",dataLocale:u};var p="-u";for(var d=0,h=i;d<h.length;d++){var v=h[d];var m=s[u];_(typeof m==="object"&&m!==null,"locale data "+v+" must be an object");var g=m[v];_(Array.isArray(g),"keyLocaleData for "+v+" must be an array");var b=g[0];_(typeof b==="string"||b===null,"value must be string or null");var y="";if(c.extension){var w=H(c.extension,v);if(w!==undefined){if(w!==""){if(~g.indexOf(w)){b=w;y="-"+v+"-"+b}}else if(~w.indexOf("true")){b="true";y="-"+v}}}if(v in a){var x=a[v];_(typeof x==="string"||typeof x==="undefined"||x===null,"optionsValue must be String, Undefined or Null");if(~g.indexOf(x)){if(x!==b){b=x;y=""}}}f[v]=b;p+=y}if(p.length>2){var k=u.indexOf("-x-");if(k===-1){u=u+p}else{var S=u.slice(0,k);var T=u.slice(k,u.length);u=S+p+T}u=q(u)[0]}f.locale=u;return f}}function H(e,t){_(t.length===2,"key must have 2 elements");var n=e.length;var r="-"+t+"-";var o=e.indexOf(r);if(o!==-1){var a=o+4;var i=a;var s=a;var l=false;while(!l){var c=e.indexOf("-",s);var u=void 0;if(c===-1){u=n-s}else{u=c-s}if(u===2){l=true}else if(c===-1){i=n;l=true}else{i=c;s=c+1}}return e.slice(a,i)}r="-"+t;o=e.indexOf(r);if(o!==-1&&o+3===n){return""}return undefined}var G=/-u(?:-[0-9a-z]{2,8})+/gi;function W(e,t){var n=t;while(true){if(~e.indexOf(n)){return n}var r=n.lastIndexOf("-");if(!~r){return undefined}if(r>=2&&n[r-2]==="-"){r-=2}n=n.slice(0,r)}}function K(e){return function t(n,r){var o={locale:""};for(var a=0,i=r;a<i.length;a++){var s=i[a];var l=s.replace(G,"");var c=W(n,l);if(c){o.locale=c;if(s!==l){o.extension=s.slice(l.length+1,s.length)}return o}}o.locale=e();return o}}function Y(e){return function t(n,r){var o={locale:""};for(var a=0,i=r;a<i.length;a++){var s=i[a];var l=s.replace(G,"");var c=W(n,l);if(c){o.locale=c;if(s!==l){o.extension=s.slice(l.length+1,s.length)}return o}}o.locale=e();return o}}function X(e,t,n){var r=[e];if(t[e]){e=t[e];r.push(e)}var o=n[e];if(o){r.push(o)}var a=e.split("-");for(var i=a.length;i>1;i--){r.push(a.slice(0,i-1).join("-"))}return r}function Z(e,t){var n=[];for(var r=0,o=t;r<o.length;r++){var a=o[r];var i=a.replace(G,"");var s=W(e,i);if(s){n.push(s)}}return n}function J(e,t,n){var r="best fit";if(n!==undefined){n=x(n);r=S(n,"localeMatcher","string",["lookup","best fit"],"best fit")}if(r==="best fit"){return Z(e,t)}return Z(e,t)}var $=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.type="MISSING_LOCALE_DATA";return t}return t}(Error);function Q(e){return e.type==="MISSING_LOCALE_DATA"}function ee(e,t,n){if(n===void 0){n=function(e,t){return V(V({},e),t)}}var r=X(e,t.aliases,t.parentLocales);var o=r.map((function(e){return t.data[e]})).filter(Boolean);if(!o.length){throw new $('Missing locale data for "'+e+'", lookup hierarchy: '+r.join(", "))}o.reverse();return o.reduce(n,{})}var te=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function ne(e){return e.replace(/^(.*?)-/,"")}var re;(function(e){e["compactName"]="compactName";e["compactSymbol"]="compactSymbol";e["currencyCode"]="currencyCode";e["currencyName"]="currencyName";e["currencyNarrowSymbol"]="currencyNarrowSymbol";e["currencySymbol"]="currencySymbol";e["minusSign"]="minusSign";e["number"]="number";e["percentSign"]="percentSign";e["plusSign"]="plusSign";e["scientificExponent"]="scientificExponent";e["scientificSeparator"]="scientificSeparator";e["unitName"]="unitName";e["unitNarrowSymbol"]="unitNarrowSymbol";e["unitSymbol"]="unitSymbol"})(re||(re={}));var oe=Object.freeze({__proto__:null,selectUnit:g,defaultNumberOption:T,getAliasesByLang:C,getInternalSlot:I,getMultiInternalSlots:M,getNumberOption:O,getOption:S,getParentLocalesByLang:A,isLiteralPart:F,partitionPattern:L,setInternalSlot:E,setMultiInternalSlots:z,setNumberFormatDigitOptions:P,toObject:x,objectIs:N,isWellFormedCurrencyCode:R,toString:k,createResolveLocale:U,getLocaleHierarchy:X,supportedLocales:J,unpackData:ee,isMissingLocaleDataError:Q,getCanonicalLocales:q,invariant:_,SANCTIONED_UNITS:te,removeUnitNamespace:ne,get InternalSlotToken(){return re}});var ae=t(oe);var ie=n((function(e,t){var n=r&&r.__assign||function(){n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return n.apply(this,arguments)};var o=r&&r.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var a=r&&r.__read||function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{while((t===void 0||t-- >0)&&!(o=r.next()).done)a.push(o.value)}catch(e){i={error:e}}finally{try{if(o&&!o.done&&(n=r["return"]))n.call(r)}finally{if(i)throw i.error}}return a};var i=r&&r.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:true});function s(e,t){var r=ae.getLocaleHierarchy(e,t.aliases,t.parentLocales);var o=r.map((function(e){return t.data[e]})).filter(Boolean);if(!o.length){throw new Error('Missing locale data for "'+e+'", lookup hierarchy: '+r.join(", "))}o.reverse();return o.reduce((function(e,t){return n(n({},e),t)}),{nu:[]})}function l(e){ae.invariant(typeof e==="string","unit must be a string, instead got "+typeof e,TypeError);if(e==="seconds")return"second";if(e==="minutes")return"minute";if(e==="hours")return"hour";if(e==="days")return"day";if(e==="weeks")return"week";if(e==="months")return"month";if(e==="quarters")return"quarter";if(e==="years")return"year";if(e!=="second"&&e!=="minute"&&e!=="hour"&&e!=="day"&&e!=="week"&&e!=="month"&&e!=="quarter"&&e!=="year"){throw new RangeError("Invalid unit "+e)}return e}var c=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function u(e,t,n){var r,a,i,s;var l=ae.partitionPattern(e);var c=[];try{for(var u=o(l),f=u.next();!f.done;f=u.next()){var p=f.value;if(ae.isLiteralPart(p)){c.push({type:"literal",value:p.value})}else{ae.invariant(p.type==="0","Malformed pattern "+e);try{for(var d=(i=void 0,o(n)),h=d.next();!h.done;h=d.next()){var v=h.value;c.push({type:v.type,value:v.value,unit:t})}}catch(e){i={error:e}}finally{try{if(h&&!h.done&&(s=d.return))s.call(d)}finally{if(i)throw i.error}}}}}catch(e){r={error:e}}finally{try{if(f&&!f.done&&(a=u.return))a.call(u)}finally{if(r)throw r.error}}return c}function f(e,t){if(Object.is){return Object.is(e,t)}if(e===t){return e!==0||1/e===1/t}return e!==e&&t!==t}function p(e){return e+""}function d(e,t,n,r){ae.invariant(typeof n==="number","value must be number, instead got "+typeof n,TypeError);ae.invariant(typeof r==="string","unit must be number, instead got "+typeof n,TypeError);if(isNaN(n)||n===Infinity||n===-Infinity){throw new RangeError("Invalid value "+n)}var o=l(r);var a=ae.getInternalSlot(e,t,"fields");var i=ae.getInternalSlot(e,t,"style");var s=o;if(i==="short"){s=r+"-short"}else if(i==="narrow"){s=r+"-narrow"}if(!(s in a)){s=r}var c=a[s];var d=ae.getInternalSlot(e,t,"numeric");if(d==="auto"){if(p(n)in c){return[{type:"literal",value:c[p(n)]}]}}var h="future";if(f(n,-0)||n<0){h="past"}var v=c[h];var m=ae.getInternalSlot(e,t,"pluralRules");var g=ae.getInternalSlot(e,t,"numberFormat");var b=typeof g.formatToParts==="function"?g.formatToParts(Math.abs(n)):[{type:"literal",value:g.format(Math.abs(n)),unit:r}];var y=m.select(n);var w=v[y];return u(w,o,b)}var h=function(){function e(t,n){var r=this&&this instanceof e?this.constructor:void 0;if(!r){throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'")}ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat",true);var o=ae.getCanonicalLocales(t);var a=Object.create(null);var i=n===undefined?Object.create(null):ae.toObject(n);var s=ae.getOption(i,"localeMatcher","string",["best fit","lookup"],"best fit");a.localeMatcher=s;var l=ae.getOption(i,"numberingSystem","string",undefined,undefined);if(l!==undefined){if(!c.test(l)){throw new RangeError("Invalid numbering system "+l)}}a.nu=l;var u=ae.createResolveLocale(e.getDefaultLocale)(e.availableLocales,o,a,e.relevantExtensionKeys,e.localeData);var f=u.locale,p=u.nu;ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",f);ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style",ae.getOption(i,"style","string",["long","narrow","short"],"long"));ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric",ae.getOption(i,"numeric","string",["always","auto"],"always"));ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"fields",e.localeData[f]);ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberFormat",new Intl.NumberFormat(t));ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"pluralRules",new Intl.PluralRules(t));ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem",p)}e.prototype.format=function(t,n){if(typeof this!=="object"){throw new TypeError("format was called on a non-object")}if(!ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat")){throw new TypeError("format was called on a invalid context")}return d(e.__INTERNAL_SLOT_MAP__,this,Number(t),p(n)).map((function(e){return e.value})).join("")};e.prototype.formatToParts=function(t,n){if(typeof this!=="object"){throw new TypeError("formatToParts was called on a non-object")}if(!ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat")){throw new TypeError("formatToParts was called on a invalid context")}return d(e.__INTERNAL_SLOT_MAP__,this,Number(t),p(n))};e.prototype.resolvedOptions=function(){if(typeof this!=="object"){throw new TypeError("resolvedOptions was called on a non-object")}if(!ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat")){throw new TypeError("resolvedOptions was called on a invalid context")}return{locale:ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),style:ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style"),numeric:ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric"),numberingSystem:ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem")}};e.supportedLocalesOf=function(t,n){return ae.supportedLocales(e.availableLocales,ae.getCanonicalLocales(t),n)};e.__addLocaleData=function(){var t,n;var r=[];for(var a=0;a<arguments.length;a++){r[a]=arguments[a]}var l=function(t){var n=Object.keys(i(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce((function(e,t){e[t]=true;return e}),{}));n.forEach((function(n){try{e.localeData[n]=s(n,t)}catch(e){}}))};try{for(var c=o(r),u=c.next();!u.done;u=c.next()){var f=u.value;l(f)}}catch(e){t={error:e}}finally{try{if(u&&!u.done&&(n=c.return))n.call(c)}finally{if(t)throw t.error}}e.availableLocales=Object.keys(e.localeData);if(!e.__defaultLocale){e.__defaultLocale=e.availableLocales[0]}};e.getDefaultLocale=function(){return e.__defaultLocale};e.localeData={};e.availableLocales=[];e.__defaultLocale="en";e.relevantExtensionKeys=["nu"];e.polyfilled=true;e.__INTERNAL_SLOT_MAP__=new WeakMap;return e}();t.default=h;try{if(typeof Symbol!=="undefined"){Object.defineProperty(h.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:false,enumerable:false,configurable:true})}Object.defineProperty(h.prototype.constructor,"length",{value:0,writable:false,enumerable:false,configurable:true});Object.defineProperty(h.supportedLocalesOf,"length",{value:1,writable:false,enumerable:false,configurable:true})}catch(e){}}));var se=n((function(e,t){Object.defineProperty(t,"__esModule",{value:true});if(!("RelativeTimeFormat"in Intl)){Object.defineProperty(Intl,"RelativeTimeFormat",{value:ie.default,writable:true,enumerable:false,configurable:true})}}));
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):o(e.value).then(i,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(a=i[0]&2?o["return"]:i[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;if(o=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;o=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1];a=i;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(i);break}if(a[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];o=0}finally{r=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};System.register(["./p-b6504987.system.js","./p-a8ecdc44.system.js"],(function(e){"use strict";var t,n,r,o,a,i,s,l,c;return{setters:[function(e){t=e.g;n=e.c;r=e.a;o=e.b;a=e.l},function(e){i=e.s;s=e.m;l=e.U;c=e.g}],execute:function(){var u=this;e("b",j_);if(Intl.RelativeTimeFormat&&typeof Intl.RelativeTimeFormat.__addLocaleData==="function"){Intl.RelativeTimeFormat.__addLocaleData({data:{"en-001":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-150":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-AU":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"in {0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}}},"en-CA":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}}},"en-SG":{"quarter-short":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr"},"quarter-narrow":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr"},"month-short":{0:"this mth",1:"next mth",future:{one:"in {0} mth",other:"in {0} mth"},past:{one:"{0} mth ago",other:"{0} mth ago"},"-1":"last mth"}},en:{nu:["latn"],year:{0:"this year",1:"next year",future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"},"-1":"last year"},"year-short":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},"year-narrow":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},quarter:{0:"this quarter",1:"next quarter",future:{one:"in {0} quarter",other:"in {0} quarters"},past:{one:"{0} quarter ago",other:"{0} quarters ago"},"-1":"last quarter"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},month:{0:"this month",1:"next month",future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"},"-1":"last month"},"month-short":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},"month-narrow":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},week:{0:"this week",1:"next week",future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"},"-1":"last week"},"week-short":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},"week-narrow":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},day:{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-short":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-narrow":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},hour:{0:"this hour",future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},minute:{0:"this minute",future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},second:{0:"now",future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}},availableLocales:["en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-US-POSIX","en-US","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","en"],aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"}})}var f=undefined&&undefined.__assign||function(){f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return f.apply(this,arguments)};var p=1e3;var d=60;var h=d*60;var v=h*24;var m=v*7;function g(e,t,n){if(t===void 0){t=Date.now()}if(n===void 0){n={}}var r=f(f({},b),n||{});var o=(+e-+t)/p;if(Math.abs(o)<r.second){return{value:Math.round(o),unit:"second"}}var a=o/d;if(Math.abs(a)<r.minute){return{value:Math.round(a),unit:"minute"}}var i=o/h;if(Math.abs(i)<r.hour){return{value:Math.round(i),unit:"hour"}}var s=o/v;if(Math.abs(s)<r.day){return{value:Math.round(s),unit:"day"}}var l=new Date(e);var c=new Date(t);var u=l.getFullYear()-c.getFullYear();if(Math.round(Math.abs(u))>0){return{value:Math.round(u),unit:"year"}}var g=u*12+l.getMonth()-c.getMonth();if(Math.round(Math.abs(g))>0){return{value:Math.round(g),unit:"month"}}var y=o/m;return{value:Math.round(y),unit:"week"}}var b={second:45,minute:45,hour:22,day:5};var y={"aa-SAAHO":"ssy",aam:"aas",aar:"aa",abk:"ab",adp:"dz",afr:"af",aju:"jrb",aka:"ak",alb:"sq",als:"sq",amh:"am",ara:"ar",arb:"ar",arg:"an",arm:"hy","art-lojban":"jbo",asd:"snz",asm:"as",aue:"ktz",ava:"av",ave:"ae",aym:"ay",ayr:"ay",ayx:"nun","az-AZ":"az-Latn-AZ",aze:"az",azj:"az",bak:"ba",bam:"bm",baq:"eu",bcc:"bal",bcl:"bik",bel:"be",ben:"bn",bgm:"bcg",bh:"bho",bih:"bho",bis:"bi",bjd:"drl",bod:"bo",bos:"bs",bre:"br","bs-BA":"bs-Latn-BA",bul:"bg",bur:"my",bxk:"luy",bxr:"bua",cat:"ca",ccq:"rki","cel-gaulish":"xtg-x-cel-gaulish",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cjr:"mom",cka:"cmr",cld:"syr",cmk:"xch",cmn:"zh",cnr:"sr-ME",cor:"kw",cos:"co",coy:"pij",cqu:"quh",cre:"cr",cwd:"cr",cym:"cy",cze:"cs",dan:"da",deu:"de",dgo:"doi",dhd:"mwr",dik:"din",diq:"zza",dit:"dif",div:"dv",drh:"mn",drw:"fa-af",dut:"nl",dzo:"dz",ekk:"et",ell:"el",emk:"man",eng:"en",epo:"eo",esk:"ik",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fat:"ak",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",fuc:"ff",ful:"ff",gav:"dev",gaz:"om",gbo:"grb",geo:"ka",ger:"de",gfx:"vaj",ggn:"gvr",gla:"gd",gle:"ga",glg:"gl",glv:"gv",gno:"gon",gre:"el",grn:"gn",gti:"nyc",gug:"gn",guj:"gu",guv:"duz",gya:"gba","ha-Latn-GH":"ha-GH","ha-Latn-NE":"ha-NE","ha-Latn-NG":"ha-NG",hat:"ht",hau:"ha",hbs:"sr-Latn",hdn:"hai",hea:"hmn",heb:"he",her:"hz",him:"srx",hin:"hi",hmo:"ho",hrr:"jal",hrv:"hr",hun:"hu",hye:"hy","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","i-default":"en-x-i-default","i-enochian":"und-x-i-enochian","i-mingo":"see-x-i-mingo",ibi:"opa",ibo:"ig",ice:"is",ido:"io",iii:"ii",ike:"iu",iku:"iu",ile:"ie",ilw:"gal",in:"id",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",iw:"he",jav:"jv",jeg:"oyb",ji:"yi",jpn:"ja",jw:"jv",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",kgc:"tdf",kgh:"kml",khk:"mn",khm:"km",kik:"ki",kin:"rw",kir:"ky","kk-Cyrl-KZ":"kk-KZ",kmr:"ku",knc:"kr",kng:"kg",knn:"kok",koj:"kwv",kom:"kv",kon:"kg",kor:"ko",kpv:"kv",krm:"bmf","ks-Arab-IN":"ks-IN",ktr:"dtp",kua:"kj",kur:"ku",kvs:"gdj",kwq:"yam",kxe:"tvd","ky-Cyrl-KG":"ky-KG",kzj:"dtp",kzt:"dtp",lao:"lo",lat:"la",lav:"lv",lbk:"bnc",lii:"raq",lim:"li",lin:"ln",lit:"lt",llo:"ngt",lmm:"rmx",ltz:"lb",lub:"lu",lug:"lg",lvs:"lv",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",meg:"cir",mhr:"chm",mkd:"mk",mlg:"mg",mlt:"mt","mn-Cyrl-MN":"mn-MN",mnk:"man",mo:"ro",mol:"ro",mon:"mn",mri:"mi","ms-Latn-BN":"ms-BN","ms-Latn-MY":"ms-MY","ms-Latn-SG":"ms-SG",msa:"ms",mst:"mry",mup:"raj",mwj:"vaj",mya:"my",myd:"aog",myt:"mry",nad:"xny",nau:"na",nav:"nv",nbl:"nr",ncp:"kdz",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",nno:"nn",nns:"nbr",nnx:"ngv",no:"nb","no-bok":"nb","no-BOKMAL":"nb","no-nyn":"nn","no-NYNORSK":"nn",nob:"nb",nor:"nb",npi:"ne",nts:"pij",nya:"ny",oci:"oc",ojg:"oj",oji:"oj",ori:"or",orm:"om",ory:"or",oss:"os",oun:"vaj","pa-IN":"pa-Guru-IN","pa-PK":"pa-Arab-PK",pan:"pa",pbu:"ps",pcr:"adx",per:"fa",pes:"fa",pli:"pi",plt:"mg",pmc:"huw",pmu:"phr",pnb:"lah",pol:"pl",por:"pt",ppa:"bfy",ppr:"lcq",prs:"fa-AF",pry:"prt",pus:"ps",puz:"pub",que:"qu",quz:"qu",rmy:"rom",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sca:"hle",scc:"sr",scr:"hr","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg",sh:"sr-Latn","shi-MA":"shi-Tfng-MA",sin:"si",skk:"oyb",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",spy:"kln",sqi:"sq","sr-BA":"sr-Cyrl-BA","sr-ME":"sr-Latn-ME","sr-RS":"sr-Cyrl-RS","sr-XK":"sr-Cyrl-XK",src:"sc",srd:"sc",srp:"sr",ssw:"ss",sun:"su",swa:"sw",swc:"sw-CD",swe:"sv",swh:"sw",tah:"ty",tam:"ta",tat:"tt",tdu:"dtp",tel:"te",tgk:"tg",tgl:"fil",tha:"th",thc:"tpo",thx:"oyb",tib:"bo",tie:"ras",tir:"ti",tkk:"twm",tl:"fil",tlw:"weo",tmp:"tyj",tne:"kak",tnf:"fa-af",ton:"to",tsf:"taj",tsn:"tn",tso:"ts",ttq:"tmh",tuk:"tk",tur:"tr",tw:"ak",twi:"ak","tzm-Latn-MA":"tzm-MA","ug-Arab-CN":"ug-CN",uig:"ug",ukr:"uk",umu:"del",uok:"ema",urd:"ur","uz-AF":"uz-Arab-AF","uz-UZ":"uz-Latn-UZ",uzb:"uz",uzn:"uz","vai-LR":"vai-Vaii-LR",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wln:"wa",wol:"wo",xba:"cax",xho:"xh",xia:"acn",xkh:"waw",xpe:"kpe",xsj:"suj",xsl:"den",ybd:"rki",ydd:"yi",yid:"yi",yma:"lrr",ymt:"mtm",yor:"yo",yos:"zom","yue-CN":"yue-Hans-CN","yue-HK":"yue-Hant-HK",yuu:"yug",zai:"zap","zh-CN":"zh-Hans-CN","zh-guoyu":"zh","zh-hakka":"hak","zh-HK":"zh-Hant-HK","zh-min-nan":"nan","zh-MO":"zh-Hant-MO","zh-SG":"zh-Hans-SG","zh-TW":"zh-Hant-TW","zh-xiang":"hsn","zh-min":"nan-x-zh-min",zha:"za",zho:"zh",zsm:"ms",zul:"zu",zyb:"za"};var w={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","zh-Hant-MO":"zh-Hant-HK"};function _(e,t,n){if(n===void 0){n=Error}if(!e){throw new n(t)}}function x(e){if(e==null){throw new TypeError("undefined/null cannot be converted to object")}return Object(e)}function k(e){if(typeof e==="symbol"){throw TypeError("Cannot convert a Symbol value to a string")}return String(e)}function S(e,t,n,r,o){var a=e[t];if(a!==undefined){if(n!=="boolean"&&n!=="string"){throw new TypeError("invalid type")}if(n==="boolean"){a=Boolean(a)}if(n==="string"){a=k(a)}if(r!==undefined&&!r.filter((function(e){return e==a})).length){throw new RangeError(a+" is not within "+r.join(", "))}return a}return o}function T(e,t,n,r){if(e!==undefined){e=Number(e);if(isNaN(e)||e<t||e>n){throw new RangeError(e+" is outside of range ["+t+", "+n+"]")}return Math.floor(e)}return r}function O(e,t,n,r,o){var a=e[t];return T(a,n,r,o)}function C(e){return Object.keys(y).reduce((function(t,n){if(n.split("-")[0]===e){t[n]=y[n]}return t}),{})}function A(e){return Object.keys(w).reduce((function(t,n){if(n.split("-")[0]===e){t[n]=w[n]}return t}),{})}function E(e,t,n,r){if(!e.get(t)){e.set(t,Object.create(null))}var o=e.get(t);o[n]=r}function z(e,t,n){for(var r=0,o=Object.keys(n);r<o.length;r++){var a=o[r];E(e,t,a,n[a])}}function I(e,t,n){return M(e,t,n)[n]}function M(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var o=e.get(t);if(!o){throw new TypeError(t+" InternalSlot has not been initialized")}return n.reduce((function(e,t){e[t]=o[t];return e}),Object.create(null))}function F(e){return e.type==="literal"}function L(e){var t=[];var n=e.indexOf("{");var r=0;var o=0;var a=e.length;while(n<e.length&&n>-1){r=e.indexOf("}",n);_(r>n,"Invalid pattern "+e);if(n>o){t.push({type:"literal",value:e.substring(o,n)})}t.push({type:e.substring(n+1,r),value:undefined});o=r+1;n=e.indexOf("{",o)}if(o<a){t.push({type:"literal",value:e.substring(o,a)})}return t}function P(e,t,n,r,o){var a=O(n,"minimumIntegerDigits",1,21,1);var i=n.minimumFractionDigits;var s=n.maximumFractionDigits;var l=n.minimumSignificantDigits;var c=n.maximumSignificantDigits;E(e,t,"minimumIntegerDigits",a);if(l!==undefined||c!==undefined){E(e,t,"roundingType","significantDigits");l=T(l,1,21,1);c=T(c,l,21,21);E(e,t,"minimumSignificantDigits",l);E(e,t,"maximumSignificantDigits",c)}else if(i!==undefined||s!==undefined){E(e,t,"roundingType","fractionDigits");i=T(i,0,20,r);var u=Math.max(i,o);s=T(s,i,20,u);E(e,t,"minimumFractionDigits",i);E(e,t,"maximumFractionDigits",s)}else if(I(e,t,"notation")==="compact"){E(e,t,"roundingType","compactRounding")}else{E(e,t,"roundingType","fractionDigits");E(e,t,"minimumFractionDigits",r);E(e,t,"maximumFractionDigits",o)}}function N(e,t){if(Object.is){return Object.is(e,t)}if(e===t){return e!==0||1/e===1/t}return e!==e&&t!==t}var D=/[^A-Z]/;function j(e){return e.replace(/([a-z])/g,(function(e,t){return t.toUpperCase()}))}function R(e){e=j(e);if(e.length!==3){return false}if(D.test(e)){return false}return true}function q(e){var t=Intl.getCanonicalLocales;if(typeof t==="function"){return t(e)}return Intl.DateTimeFormat.supportedLocalesOf(e)}var B=undefined&&undefined.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var V=undefined&&undefined.__assign||function(){V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return V.apply(this,arguments)};function U(e){var t=K(e);var n=Y(e);return function e(r,o,a,i,s){var l=a.localeMatcher;var c;if(l==="lookup"){c=t(r,o)}else{c=n(r,o)}var u=c.locale;var f={locale:"",dataLocale:u};var p="-u";for(var d=0,h=i;d<h.length;d++){var v=h[d];var m=s[u];_(typeof m==="object"&&m!==null,"locale data "+v+" must be an object");var g=m[v];_(Array.isArray(g),"keyLocaleData for "+v+" must be an array");var b=g[0];_(typeof b==="string"||b===null,"value must be string or null");var y="";if(c.extension){var w=H(c.extension,v);if(w!==undefined){if(w!==""){if(~g.indexOf(w)){b=w;y="-"+v+"-"+b}}else if(~w.indexOf("true")){b="true";y="-"+v}}}if(v in a){var x=a[v];_(typeof x==="string"||typeof x==="undefined"||x===null,"optionsValue must be String, Undefined or Null");if(~g.indexOf(x)){if(x!==b){b=x;y=""}}}f[v]=b;p+=y}if(p.length>2){var k=u.indexOf("-x-");if(k===-1){u=u+p}else{var S=u.slice(0,k);var T=u.slice(k,u.length);u=S+p+T}u=q(u)[0]}f.locale=u;return f}}function H(e,t){_(t.length===2,"key must have 2 elements");var n=e.length;var r="-"+t+"-";var o=e.indexOf(r);if(o!==-1){var a=o+4;var i=a;var s=a;var l=false;while(!l){var c=e.indexOf("-",s);var u=void 0;if(c===-1){u=n-s}else{u=c-s}if(u===2){l=true}else if(c===-1){i=n;l=true}else{i=c;s=c+1}}return e.slice(a,i)}r="-"+t;o=e.indexOf(r);if(o!==-1&&o+3===n){return""}return undefined}var G=/-u(?:-[0-9a-z]{2,8})+/gi;function W(e,t){var n=t;while(true){if(~e.indexOf(n)){return n}var r=n.lastIndexOf("-");if(!~r){return undefined}if(r>=2&&n[r-2]==="-"){r-=2}n=n.slice(0,r)}}function K(e){return function t(n,r){var o={locale:""};for(var a=0,i=r;a<i.length;a++){var s=i[a];var l=s.replace(G,"");var c=W(n,l);if(c){o.locale=c;if(s!==l){o.extension=s.slice(l.length+1,s.length)}return o}}o.locale=e();return o}}function Y(e){return function t(n,r){var o={locale:""};for(var a=0,i=r;a<i.length;a++){var s=i[a];var l=s.replace(G,"");var c=W(n,l);if(c){o.locale=c;if(s!==l){o.extension=s.slice(l.length+1,s.length)}return o}}o.locale=e();return o}}function X(e,t,n){var r=[e];if(t[e]){e=t[e];r.push(e)}var o=n[e];if(o){r.push(o)}var a=e.split("-");for(var i=a.length;i>1;i--){r.push(a.slice(0,i-1).join("-"))}return r}function Z(e,t){var n=[];for(var r=0,o=t;r<o.length;r++){var a=o[r];var i=a.replace(G,"");var s=W(e,i);if(s){n.push(s)}}return n}function J(e,t,n){var r="best fit";if(n!==undefined){n=x(n);r=S(n,"localeMatcher","string",["lookup","best fit"],"best fit")}if(r==="best fit"){return Z(e,t)}return Z(e,t)}var $=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.type="MISSING_LOCALE_DATA";return t}return t}(Error);function Q(e){return e.type==="MISSING_LOCALE_DATA"}function ee(e,t,n){if(n===void 0){n=function(e,t){return V(V({},e),t)}}var r=X(e,t.aliases,t.parentLocales);var o=r.map((function(e){return t.data[e]})).filter(Boolean);if(!o.length){throw new $('Missing locale data for "'+e+'", lookup hierarchy: '+r.join(", "))}o.reverse();return o.reduce(n,{})}var te=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function ne(e){return e.replace(/^(.*?)-/,"")}var re;(function(e){e["compactName"]="compactName";e["compactSymbol"]="compactSymbol";e["currencyCode"]="currencyCode";e["currencyName"]="currencyName";e["currencyNarrowSymbol"]="currencyNarrowSymbol";e["currencySymbol"]="currencySymbol";e["minusSign"]="minusSign";e["number"]="number";e["percentSign"]="percentSign";e["plusSign"]="plusSign";e["scientificExponent"]="scientificExponent";e["scientificSeparator"]="scientificSeparator";e["unitName"]="unitName";e["unitNarrowSymbol"]="unitNarrowSymbol";e["unitSymbol"]="unitSymbol"})(re||(re={}));var oe=Object.freeze({__proto__:null,selectUnit:g,defaultNumberOption:T,getAliasesByLang:C,getInternalSlot:I,getMultiInternalSlots:M,getNumberOption:O,getOption:S,getParentLocalesByLang:A,isLiteralPart:F,partitionPattern:L,setInternalSlot:E,setMultiInternalSlots:z,setNumberFormatDigitOptions:P,toObject:x,objectIs:N,isWellFormedCurrencyCode:R,toString:k,createResolveLocale:U,getLocaleHierarchy:X,supportedLocales:J,unpackData:ee,isMissingLocaleDataError:Q,getCanonicalLocales:q,invariant:_,SANCTIONED_UNITS:te,removeUnitNamespace:ne,get InternalSlotToken(){return re}});var ae=t(oe);var ie=n((function(e,t){var n=r&&r.__assign||function(){n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return n.apply(this,arguments)};var o=r&&r.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var a=r&&r.__read||function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{while((t===void 0||t-- >0)&&!(o=r.next()).done)a.push(o.value)}catch(e){i={error:e}}finally{try{if(o&&!o.done&&(n=r["return"]))n.call(r)}finally{if(i)throw i.error}}return a};var i=r&&r.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:true});function s(e,t){var r=ae.getLocaleHierarchy(e,t.aliases,t.parentLocales);var o=r.map((function(e){return t.data[e]})).filter(Boolean);if(!o.length){throw new Error('Missing locale data for "'+e+'", lookup hierarchy: '+r.join(", "))}o.reverse();return o.reduce((function(e,t){return n(n({},e),t)}),{nu:[]})}function l(e){ae.invariant(typeof e==="string","unit must be a string, instead got "+typeof e,TypeError);if(e==="seconds")return"second";if(e==="minutes")return"minute";if(e==="hours")return"hour";if(e==="days")return"day";if(e==="weeks")return"week";if(e==="months")return"month";if(e==="quarters")return"quarter";if(e==="years")return"year";if(e!=="second"&&e!=="minute"&&e!=="hour"&&e!=="day"&&e!=="week"&&e!=="month"&&e!=="quarter"&&e!=="year"){throw new RangeError("Invalid unit "+e)}return e}var c=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function u(e,t,n){var r,a,i,s;var l=ae.partitionPattern(e);var c=[];try{for(var u=o(l),f=u.next();!f.done;f=u.next()){var p=f.value;if(ae.isLiteralPart(p)){c.push({type:"literal",value:p.value})}else{ae.invariant(p.type==="0","Malformed pattern "+e);try{for(var d=(i=void 0,o(n)),h=d.next();!h.done;h=d.next()){var v=h.value;c.push({type:v.type,value:v.value,unit:t})}}catch(e){i={error:e}}finally{try{if(h&&!h.done&&(s=d.return))s.call(d)}finally{if(i)throw i.error}}}}}catch(e){r={error:e}}finally{try{if(f&&!f.done&&(a=u.return))a.call(u)}finally{if(r)throw r.error}}return c}function f(e,t){if(Object.is){return Object.is(e,t)}if(e===t){return e!==0||1/e===1/t}return e!==e&&t!==t}function p(e){return e+""}function d(e,t,n,r){ae.invariant(typeof n==="number","value must be number, instead got "+typeof n,TypeError);ae.invariant(typeof r==="string","unit must be number, instead got "+typeof n,TypeError);if(isNaN(n)||n===Infinity||n===-Infinity){throw new RangeError("Invalid value "+n)}var o=l(r);var a=ae.getInternalSlot(e,t,"fields");var i=ae.getInternalSlot(e,t,"style");var s=o;if(i==="short"){s=r+"-short"}else if(i==="narrow"){s=r+"-narrow"}if(!(s in a)){s=r}var c=a[s];var d=ae.getInternalSlot(e,t,"numeric");if(d==="auto"){if(p(n)in c){return[{type:"literal",value:c[p(n)]}]}}var h="future";if(f(n,-0)||n<0){h="past"}var v=c[h];var m=ae.getInternalSlot(e,t,"pluralRules");var g=ae.getInternalSlot(e,t,"numberFormat");var b=typeof g.formatToParts==="function"?g.formatToParts(Math.abs(n)):[{type:"literal",value:g.format(Math.abs(n)),unit:r}];var y=m.select(n);var w=v[y];return u(w,o,b)}var h=function(){function e(t,n){var r=this&&this instanceof e?this.constructor:void 0;if(!r){throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'")}ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat",true);var o=ae.getCanonicalLocales(t);var a=Object.create(null);var i=n===undefined?Object.create(null):ae.toObject(n);var s=ae.getOption(i,"localeMatcher","string",["best fit","lookup"],"best fit");a.localeMatcher=s;var l=ae.getOption(i,"numberingSystem","string",undefined,undefined);if(l!==undefined){if(!c.test(l)){throw new RangeError("Invalid numbering system "+l)}}a.nu=l;var u=ae.createResolveLocale(e.getDefaultLocale)(e.availableLocales,o,a,e.relevantExtensionKeys,e.localeData);var f=u.locale,p=u.nu;ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",f);ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style",ae.getOption(i,"style","string",["long","narrow","short"],"long"));ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric",ae.getOption(i,"numeric","string",["always","auto"],"always"));ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"fields",e.localeData[f]);ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberFormat",new Intl.NumberFormat(t));ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"pluralRules",new Intl.PluralRules(t));ae.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem",p)}e.prototype.format=function(t,n){if(typeof this!=="object"){throw new TypeError("format was called on a non-object")}if(!ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat")){throw new TypeError("format was called on a invalid context")}return d(e.__INTERNAL_SLOT_MAP__,this,Number(t),p(n)).map((function(e){return e.value})).join("")};e.prototype.formatToParts=function(t,n){if(typeof this!=="object"){throw new TypeError("formatToParts was called on a non-object")}if(!ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat")){throw new TypeError("formatToParts was called on a invalid context")}return d(e.__INTERNAL_SLOT_MAP__,this,Number(t),p(n))};e.prototype.resolvedOptions=function(){if(typeof this!=="object"){throw new TypeError("resolvedOptions was called on a non-object")}if(!ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat")){throw new TypeError("resolvedOptions was called on a invalid context")}return{locale:ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),style:ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style"),numeric:ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric"),numberingSystem:ae.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem")}};e.supportedLocalesOf=function(t,n){return ae.supportedLocales(e.availableLocales,ae.getCanonicalLocales(t),n)};e.__addLocaleData=function(){var t,n;var r=[];for(var a=0;a<arguments.length;a++){r[a]=arguments[a]}var l=function(t){var n=Object.keys(i(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce((function(e,t){e[t]=true;return e}),{}));n.forEach((function(n){try{e.localeData[n]=s(n,t)}catch(e){}}))};try{for(var c=o(r),u=c.next();!u.done;u=c.next()){var f=u.value;l(f)}}catch(e){t={error:e}}finally{try{if(u&&!u.done&&(n=c.return))n.call(c)}finally{if(t)throw t.error}}e.availableLocales=Object.keys(e.localeData);if(!e.__defaultLocale){e.__defaultLocale=e.availableLocales[0]}};e.getDefaultLocale=function(){return e.__defaultLocale};e.localeData={};e.availableLocales=[];e.__defaultLocale="en";e.relevantExtensionKeys=["nu"];e.polyfilled=true;e.__INTERNAL_SLOT_MAP__=new WeakMap;return e}();t.default=h;try{if(typeof Symbol!=="undefined"){Object.defineProperty(h.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:false,enumerable:false,configurable:true})}Object.defineProperty(h.prototype.constructor,"length",{value:0,writable:false,enumerable:false,configurable:true});Object.defineProperty(h.supportedLocalesOf,"length",{value:1,writable:false,enumerable:false,configurable:true})}catch(e){}}));var se=n((function(e,t){Object.defineProperty(t,"__esModule",{value:true});if(!("RelativeTimeFormat"in Intl)){Object.defineProperty(Intl,"RelativeTimeFormat",{value:ie.default,writable:true,enumerable:false,configurable:true})}}));
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-641f968d.system.js","./p-1b9705fd.system.js","./p-b6504987.system.js","./p-d6c1e876.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-7b909aa5.system.js","./p-d5eb601d.system.js","./p-f3b21df2.system.js","./p-e44c816e.system.js","./p-8452837a.system.js","./p-45be99ae.system.js","./p-83277c69.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,d,u,c,f,v,p,h,E,m,_,g,T,N,D;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.i},function(e){s=e.n;l=e.j;o=e.u;d=e.f},function(e){u=e.i},function(e){c=e.c},function(e){f=e.l},function(e){v=e.c},function(){},function(e){p=e.T},function(e){h=e.G},function(e){E=e.a;m=e.u},function(e){_=e.u},function(e){g=e.l},function(e){T=e.g},function(e){N=e.u;D=e.t}],execute:function(){var P=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return I()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var y=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var x=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var A=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var I=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:x[Math.floor(Math.random()*x.length)],lastName:A[Math.floor(Math.random()*A.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?g.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:g.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:y[Math.floor(Math.random()*y.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},T()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:y[Math.floor(Math.random()*y.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:y[Math.floor(Math.random()*y.length)],type:"CREDIT",value:1},depth:1}]}}};var b=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(R,null);var t=r(w,null);var n=u()?C(this,e,t):N(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;E([this.showReferrer,this.perPage]);return r(h,{states:a,data:i,callbacks:s,elements:l})};return e}());function R(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function w(){return r("slot",{name:"loading"},r(S,null),r(S,null),r(S,null),r(S,null))}function S(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sqm-skeleton",null)))}function C(e,t,r){var n=l((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var s=m();var u=o((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||P(e.perPage)}),[e.perPage]);var f=_();function v(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,d,c,f,v,p,h,E,m;var _=this;return __generator(this,(function(g){switch(g.label){case 0:a=u===null||u===void 0?void 0:u.referredByReferral;s=e.showReferrer&&!!((r=u===null||u===void 0?void 0:u.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=u.data.slice(0,e.perPage-1)}else{n=u.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(_,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,D(e,(function(){return e.renderLabel(t)}))]}return[2,D(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(_,void 0,void 0,(function(){return __generator(this,(function(t){return[2,D(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:d=g.sent();g.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(_,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,D(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));p=f;if(!p)return[3,4];h=[[d]];return[4,Promise.all(f)];case 3:p=__spreadArrays.apply(void 0,h.concat([g.sent()])).filter((function(e){return e}));g.label=4;case 4:v=p;i({rows:v});m=o;if(!m)return[3,6];return[4,Promise.all(o)];case 5:m=g.sent();g.label=6;case 6:E=m;i({columns:E,loading:false,page:0});return[2]}}))}))}d((function(){i({loading:true});(u===null||u===void 0?void 0:u.data)&&v(f)}),[u===null||u===void 0?void 0:u.data,f,s]);var p=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return p}var L=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var O=e("sqm_referral_table_column",function(){function e(e){t(this,e);s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){E([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var M=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=g.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(f(this.locale)).toLocaleString(g.DateTime.DATE_MED);return t};return e}());var G=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t===null||t===void 0?void 0:t.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){E([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var U=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";this.pendingForText="{status} for {date}";this.locale="en"}e.prototype.render=function(){var e=this;var t;i.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{border:"var(--sqm-border-thickness) solid var(--sqm-border-color)",opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},WarningBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-warning-color-icon)",color:"var(--sl-color-white)"}},SuccessBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}}};var a=v(n);var s=a.toString();var l=function(e){switch(e){case"primary":return a.classes.RedeemBadge;case"danger":return a.classes.DangerBadge;case"success":return a.classes.SuccessBadge;case"warning":case"info":return a.classes.WarningBadge;default:return a.classes.WarningBadge}};var o=function(e,t){var r,n,a,i,s,l,o,d,u,c,f,v;var p=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION","PROCESSING"];if(((n=(r=e.referral)===null||r===void 0?void 0:r.fraudData)===null||n===void 0?void 0:n.moderationStatus)!=="APPROVED"){if(((i=(a=e.referral)===null||a===void 0?void 0:a.fraudData)===null||i===void 0?void 0:i.moderationStatus)==="PENDING")return"PENDING_REVIEW";if(((l=(s=e.referral)===null||s===void 0?void 0:s.fraudData)===null||l===void 0?void 0:l.moderationStatus)==="DENIED")return"DENIED"}var h=(o=e.partnerFundsTransfer)===null||o===void 0?void 0:o.status;if(e.partnerFundsTransfer){if(h==="REVERSED")return"PAYOUT_CANCELLED";if(h==="OVERDUE")return"PAYOUT_FAILED";if(e.partnerFundsTransfer.dateScheduled&&e.partnerFundsTransfer.dateScheduled>Date.now()){return"PROCESSING"}if(h==="TRANSFERRED"||h==="NOT_YET_DUE"||e.partnerFundsTransfer.dateScheduled&&e.partnerFundsTransfer.dateScheduled<Date.now()&&h!=="OVERDUE"&&h!=="REVERSED")return"PAYOUT_APPROVED"}if((d=e===null||e===void 0?void 0:e.pendingReasons)===null||d===void 0?void 0:d.includes("US_TAX")){if(!(t===null||t===void 0?void 0:t.taxHandlingEnabled))return"PENDING";if(!(t===null||t===void 0?void 0:t.connected))return"PENDING_PARTNER_CREATION";if((u=t===null||t===void 0?void 0:t.publisher)===null||u===void 0?void 0:u.requiredTaxDocumentType){if(!((c=t===null||t===void 0?void 0:t.publisher)===null||c===void 0?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";var E=t.publisher.currentTaxDocument.status;if(E==="INACTIVE"||E==="INVALID_W9_ELECTRONIC_DOCUMENT"||E==="INVALID_W9_ELECTRONIC_DOCUMENT_CHECK_INTERNAL")return"PENDING_NEW_TAX_FORM";if(E==="NOT_VERIFIED")return"PENDING_TAX_REVIEW"}if(!((f=t===null||t===void 0?void 0:t.publisher)===null||f===void 0?void 0:f.withdrawalSettings))return"PENDING_PARTNER_CREATION"}if((v=e===null||e===void 0?void 0:e.pendingReasons)===null||v===void 0?void 0:v.includes("MISSING_PAYOUT_CONFIGURATION")){return"PENDING_PARTNER_CREATION"}if(e.statuses.length===1)return e.statuses[0];return p.find((function(t){return e.statuses.includes(t)&&t}))};var d=function(e){switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":case"PROCESSING":return"warning";case"AVAILABLE":return"success"}};var u=function(t){return g.DateTime.fromMillis(t).setLocale(f(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n,c,v,h;var E=o(t,e.taxConnection);var m=d(E);var _=i.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:E});var T=i.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:E,scheduledPayoutDate:((n=t.partnerFundsTransfer)===null||n===void 0?void 0:n.dateScheduled)?(c=g.DateTime.fromMillis(t.partnerFundsTransfer.dateScheduled))===null||c===void 0?void 0:c.setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED):null});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},s),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(p,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},E==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:l(m),type:m,pill:true},i.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:_,date:u(t.dateScheduledFor)})):r("sl-badge",{class:l(m),type:m,pill:true},_),t.dateExpires&&E==="AVAILABLE"&&r("sl-badge",{class:l(m),type:"info",pill:true},e.expiringText," "+u(t.dateExpires)))),r("div",null,E==="PENDING_REVIEW"&&((v=t.referral)===null||v===void 0?void 0:v.dateModerated)&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.referral.dateModerated).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),E==="PAYOUT_APPROVED"&&r("div",null,r(p,{type:"p"},T)),E==="PROCESSING"&&r("div",null,r(p,{type:"p"},T)),E==="PAYOUT_FAILED"&&r("div",null,r(p,{type:"p"},T)),E==="PAYOUT_CANCELLED"&&r("div",null,r(p,{type:"p"},T)),E==="PENDING_TAX_REVIEW"&&r("div",null,r(p,{type:"p"},T)),E==="PENDING_NEW_TAX_FORM"&&r("div",null,r(p,{type:"p"},T)),E==="PENDING_TAX_SUBMISSION"&&r("div",null,r(p,{type:"p"},T)),E==="PENDING_PARTNER_CREATION"&&r("div",null,r(p,{type:"p"},T)),E==="DENIED"&&((h=t.referral)===null||h===void 0?void 0:h.dateModerated)&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.referral.dateModerated).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)),".",e.deniedHelpText?" "+e.deniedHelpText:"")),t.dateGiven&&r("div",null,r(p,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateGiven).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),E==="EXPIRED"&&t.dateExpires&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateExpires).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),E==="CANCELLED"&&t.dateCancelled&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateCancelled).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),E==="PENDING"&&t.dateScheduledFor&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateScheduledFor).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED))))," ",E==="AVAILABLE"&&t.dateExpires&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateExpires).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var B=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.deniedHelpText="Contact support if you think this is a mistake.";this.hideDetails=false;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:t===null||t===void 0?void 0:t.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:t===null||t===void 0?void 0:t.locale,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){E([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var k={SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)",margin:"0"},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},WarningBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-warning-color-icon)",color:"var(--sl-color-white)"}},SuccessBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}}};var q=v(k);var V=q.toString();var F=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;var t=v(k);var n=t.toString();var a=function(t){if(t==="PENDING")return"warning";if(t==="DENIED")return"danger";if(e.converted)return"success";return"warning"};var i=function(e){switch(e){case"primary":return t.classes.RedeemBadge;case"danger":return t.classes.DangerBadge;case"success":return t.classes.SuccessBadge;case"warning":case"info":return t.classes.WarningBadge;default:return t.classes.WarningBadge}};return r("div",null,r("style",{type:"text/css"},n),r("sl-badge",{pill:true,type:a(this.fraudStatus),class:i(a(this.fraudStatus))},this.statusText),this.statusSubText?r("p",{class:t.classes.SubText},this.statusSubText):null)};return e}());var W=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";this.pendingReviewStatusText="Pending";this.deniedStatusText="Denied";this.pendingReviewStatusSubText="Awaiting review";this.deniedStatusSubText="Detected self-referral";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i;return __generator(this,(function(s){i=(t=e===null||e===void 0?void 0:e.fraudData)===null||t===void 0?void 0:t.moderationStatus;if(i==="DENIED"){n=this.deniedStatusText;a=this.deniedStatusSubText}else if(i==="PENDING"){n=this.pendingReviewStatusText;a=this.pendingReviewStatusSubText}else{n=e.dateConverted?this.convertedStatusText:this.inProgressStatusText}return[2,r("sqm-referral-table-status-cell",{"status-text":n,"status-sub-text":a,"fraud-status":i,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){E([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var X=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var Y=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Your Friend";this.deletedUser="Deleted User";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,d,u;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){u=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){u=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){u=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{u=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((d=e===null||e===void 0?void 0:e.referredUser)===null||d===void 0?void 0:d.lastName)}return[2,r("sqm-referral-table-user-cell",{name:u})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){E([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-641f968d.system.js","./p-64f56cc9.system.js","./p-b6504987.system.js","./p-a8ecdc44.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-7b909aa5.system.js","./p-d5eb601d.system.js","./p-b1b8e629.system.js","./p-63c299f1.system.js","./p-8452837a.system.js","./p-45be99ae.system.js","./p-a86ce218.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,d,u,c,f,v,p,h,E,m,_,g,T,N,D;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.i},function(e){s=e.n;l=e.j;o=e.u;d=e.f},function(e){u=e.i},function(e){c=e.c},function(e){f=e.l},function(e){v=e.c},function(){},function(e){p=e.T},function(e){h=e.G},function(e){E=e.a;m=e.u},function(e){_=e.u},function(e){g=e.l},function(e){T=e.g},function(e){N=e.u;D=e.t}],execute:function(){var P=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return I()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var y=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var x=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var A=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var I=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:x[Math.floor(Math.random()*x.length)],lastName:A[Math.floor(Math.random()*A.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?g.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:g.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:y[Math.floor(Math.random()*y.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},T()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:y[Math.floor(Math.random()*y.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:y[Math.floor(Math.random()*y.length)],type:"CREDIT",value:1},depth:1}]}}};var b=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(R,null);var t=r(w,null);var n=u()?C(this,e,t):N(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;E([this.showReferrer,this.perPage]);return r(h,{states:a,data:i,callbacks:s,elements:l})};return e}());function R(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function w(){return r("slot",{name:"loading"},r(S,null),r(S,null),r(S,null),r(S,null))}function S(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sqm-skeleton",null)))}function C(e,t,r){var n=l((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var s=m();var u=o((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||P(e.perPage)}),[e.perPage]);var f=_();function v(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,d,c,f,v,p,h,E,m;var _=this;return __generator(this,(function(g){switch(g.label){case 0:a=u===null||u===void 0?void 0:u.referredByReferral;s=e.showReferrer&&!!((r=u===null||u===void 0?void 0:u.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=u.data.slice(0,e.perPage-1)}else{n=u.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(_,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,D(e,(function(){return e.renderLabel(t)}))]}return[2,D(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(_,void 0,void 0,(function(){return __generator(this,(function(t){return[2,D(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:d=g.sent();g.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(_,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,D(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));p=f;if(!p)return[3,4];h=[[d]];return[4,Promise.all(f)];case 3:p=__spreadArrays.apply(void 0,h.concat([g.sent()])).filter((function(e){return e}));g.label=4;case 4:v=p;i({rows:v});m=o;if(!m)return[3,6];return[4,Promise.all(o)];case 5:m=g.sent();g.label=6;case 6:E=m;i({columns:E,loading:false,page:0});return[2]}}))}))}d((function(){i({loading:true});(u===null||u===void 0?void 0:u.data)&&v(f)}),[u===null||u===void 0?void 0:u.data,f,s]);var p=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return p}var L=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var O=e("sqm_referral_table_column",function(){function e(e){t(this,e);s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){E([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var M=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=g.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(f(this.locale)).toLocaleString(g.DateTime.DATE_MED);return t};return e}());var G=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t===null||t===void 0?void 0:t.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){E([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var U=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";this.pendingForText="{status} for {date}";this.locale="en"}e.prototype.render=function(){var e=this;var t;i.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{border:"var(--sqm-border-thickness) solid var(--sqm-border-color)",opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},WarningBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-warning-color-icon)",color:"var(--sl-color-white)"}},SuccessBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}}};var a=v(n);var s=a.toString();var l=function(e){switch(e){case"primary":return a.classes.RedeemBadge;case"danger":return a.classes.DangerBadge;case"success":return a.classes.SuccessBadge;case"warning":case"info":return a.classes.WarningBadge;default:return a.classes.WarningBadge}};var o=function(e,t){var r,n,a,i,s,l,o,d,u,c,f,v;var p=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION","PROCESSING"];if(((n=(r=e.referral)===null||r===void 0?void 0:r.fraudData)===null||n===void 0?void 0:n.moderationStatus)!=="APPROVED"){if(((i=(a=e.referral)===null||a===void 0?void 0:a.fraudData)===null||i===void 0?void 0:i.moderationStatus)==="PENDING")return"PENDING_REVIEW";if(((l=(s=e.referral)===null||s===void 0?void 0:s.fraudData)===null||l===void 0?void 0:l.moderationStatus)==="DENIED")return"DENIED"}var h=(o=e.partnerFundsTransfer)===null||o===void 0?void 0:o.status;if(e.partnerFundsTransfer){if(h==="REVERSED")return"PAYOUT_CANCELLED";if(h==="OVERDUE")return"PAYOUT_FAILED";if(e.partnerFundsTransfer.dateScheduled&&e.partnerFundsTransfer.dateScheduled>Date.now()){return"PROCESSING"}if(h==="TRANSFERRED"||h==="NOT_YET_DUE"||e.partnerFundsTransfer.dateScheduled&&e.partnerFundsTransfer.dateScheduled<Date.now()&&h!=="OVERDUE"&&h!=="REVERSED")return"PAYOUT_APPROVED"}if((d=e===null||e===void 0?void 0:e.pendingReasons)===null||d===void 0?void 0:d.includes("US_TAX")){if(!(t===null||t===void 0?void 0:t.taxHandlingEnabled))return"PENDING";if(!(t===null||t===void 0?void 0:t.connected))return"PENDING_PARTNER_CREATION";if((u=t===null||t===void 0?void 0:t.publisher)===null||u===void 0?void 0:u.requiredTaxDocumentType){if(!((c=t===null||t===void 0?void 0:t.publisher)===null||c===void 0?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";var E=t.publisher.currentTaxDocument.status;if(E==="INACTIVE"||E==="INVALID_W9_ELECTRONIC_DOCUMENT"||E==="INVALID_W9_ELECTRONIC_DOCUMENT_CHECK_INTERNAL")return"PENDING_NEW_TAX_FORM";if(E==="NOT_VERIFIED")return"PENDING_TAX_REVIEW"}if(!((f=t===null||t===void 0?void 0:t.publisher)===null||f===void 0?void 0:f.withdrawalSettings))return"PENDING_PARTNER_CREATION"}if((v=e===null||e===void 0?void 0:e.pendingReasons)===null||v===void 0?void 0:v.includes("MISSING_PAYOUT_CONFIGURATION")){return"PENDING_PARTNER_CREATION"}if(e.statuses.length===1)return e.statuses[0];return p.find((function(t){return e.statuses.includes(t)&&t}))};var d=function(e){switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":case"PROCESSING":return"warning";case"AVAILABLE":return"success"}};var u=function(t){return g.DateTime.fromMillis(t).setLocale(f(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n,c,v,h;var E=o(t,e.taxConnection);var m=d(E);var _=i.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:E});var T=i.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:E,scheduledPayoutDate:((n=t.partnerFundsTransfer)===null||n===void 0?void 0:n.dateScheduled)?(c=g.DateTime.fromMillis(t.partnerFundsTransfer.dateScheduled))===null||c===void 0?void 0:c.setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED):null});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},s),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(p,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},E==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:l(m),type:m,pill:true},i.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:_,date:u(t.dateScheduledFor)})):r("sl-badge",{class:l(m),type:m,pill:true},_),t.dateExpires&&E==="AVAILABLE"&&r("sl-badge",{class:l(m),type:"info",pill:true},e.expiringText," "+u(t.dateExpires)))),r("div",null,E==="PENDING_REVIEW"&&((v=t.referral)===null||v===void 0?void 0:v.dateModerated)&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.referral.dateModerated).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),E==="PAYOUT_APPROVED"&&r("div",null,r(p,{type:"p"},T)),E==="PROCESSING"&&r("div",null,r(p,{type:"p"},T)),E==="PAYOUT_FAILED"&&r("div",null,r(p,{type:"p"},T)),E==="PAYOUT_CANCELLED"&&r("div",null,r(p,{type:"p"},T)),E==="PENDING_TAX_REVIEW"&&r("div",null,r(p,{type:"p"},T)),E==="PENDING_NEW_TAX_FORM"&&r("div",null,r(p,{type:"p"},T)),E==="PENDING_TAX_SUBMISSION"&&r("div",null,r(p,{type:"p"},T)),E==="PENDING_PARTNER_CREATION"&&r("div",null,r(p,{type:"p"},T)),E==="DENIED"&&((h=t.referral)===null||h===void 0?void 0:h.dateModerated)&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.referral.dateModerated).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)),".",e.deniedHelpText?" "+e.deniedHelpText:"")),t.dateGiven&&r("div",null,r(p,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateGiven).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),E==="EXPIRED"&&t.dateExpires&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateExpires).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),E==="CANCELLED"&&t.dateCancelled&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateCancelled).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),E==="PENDING"&&t.dateScheduledFor&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateScheduledFor).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED))))," ",E==="AVAILABLE"&&t.dateExpires&&r("div",null,r(p,{type:"p"},T," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateExpires).setLocale(f(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var B=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.deniedHelpText="Contact support if you think this is a mistake.";this.hideDetails=false;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:t===null||t===void 0?void 0:t.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:t===null||t===void 0?void 0:t.locale,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){E([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var k={SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)",margin:"0"},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},WarningBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-warning-color-icon)",color:"var(--sl-color-white)"}},SuccessBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}}};var q=v(k);var V=q.toString();var F=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;var t=v(k);var n=t.toString();var a=function(t){if(t==="PENDING")return"warning";if(t==="DENIED")return"danger";if(e.converted)return"success";return"warning"};var i=function(e){switch(e){case"primary":return t.classes.RedeemBadge;case"danger":return t.classes.DangerBadge;case"success":return t.classes.SuccessBadge;case"warning":case"info":return t.classes.WarningBadge;default:return t.classes.WarningBadge}};return r("div",null,r("style",{type:"text/css"},n),r("sl-badge",{pill:true,type:a(this.fraudStatus),class:i(a(this.fraudStatus))},this.statusText),this.statusSubText?r("p",{class:t.classes.SubText},this.statusSubText):null)};return e}());var W=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";this.pendingReviewStatusText="Pending";this.deniedStatusText="Denied";this.pendingReviewStatusSubText="Awaiting review";this.deniedStatusSubText="Detected self-referral";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i;return __generator(this,(function(s){i=(t=e===null||e===void 0?void 0:e.fraudData)===null||t===void 0?void 0:t.moderationStatus;if(i==="DENIED"){n=this.deniedStatusText;a=this.deniedStatusSubText}else if(i==="PENDING"){n=this.pendingReviewStatusText;a=this.pendingReviewStatusSubText}else{n=e.dateConverted?this.convertedStatusText:this.inProgressStatusText}return[2,r("sqm-referral-table-status-cell",{"status-text":n,"status-sub-text":a,"fraud-status":i,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){E([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var X=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var Y=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Your Friend";this.deletedUser="Deleted User";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,d,u;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){u=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){u=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){u=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{u=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((d=e===null||e===void 0?void 0:e.referredUser)===null||d===void 0?void 0:d.lastName)}return[2,r("sqm-referral-table-user-cell",{name:u})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){E([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,e=1,n=arguments.length;e<n;e++){s=arguments[e];for(var
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,e=1,n=arguments.length;e<n;e++){s=arguments[e];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a))t[a]=s[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-a8ecdc44.system.js","./p-6333265f.system.js"],(function(t){"use strict";var s,e,n,a,o,r;return{setters:[function(t){s=t.h;e=t.c;n=t.r},function(t){a=t.n},function(t){o=t.B},function(t){r=t.g}],execute:function(){var c=function(t){var n=t.states,a=t.callbacks;var o=n.styles;return s(e,{class:"squatch-container"},s("div",{style:{padding:t.states.styles.padding},part:"sqm-base"},o.closeButton&&s("span",{part:"sqm-close-button",class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:function(){return a.closePopup()}},o.closeButtonText),s("slot",null),o.poweredBy?s("a",{class:"sqh-attribution",href:"https://impact.com/advocate/",target:"_blank"},o.poweredByText):""))};function i(t){var s=o();function e(){var t;if(o()==="POPUP"){(t=window.frameElement["squatchJsApi"])===null||t===void 0?void 0:t.close()}}var n=t.popupPadding?t.popupPadding==="none"?"0":"var(--sl-spacing-"+t.popupPadding+")":"var(--sl-spacing-medium)";var a=t.embedPadding?t.embedPadding==="none"?"0":"var(--sl-spacing-"+t.embedPadding+")":"0";var r=o()==="POPUP"?n:a;return{states:{showCloseButton:t.closeButton&&s==="POPUP",styles:__assign(__assign({},t),{padding:r,closeButtonText:t.closeButtonText?t.closeButtonText:"X",poweredByText:t.poweredByText})},data:{},callbacks:{closePopup:e}}}var p=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";var u=t("sqm_popup_container",function(){function t(t){n(this,t);this.poweredByText="Powered By";a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r(this);return s(c,Object.assign({},i(t)))};return t}());u.style=p}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(n,e){if(Object.defineProperty){Object.defineProperty(n,"raw",{value:e})}else{n.raw=e}return n};var __awaiter=this&&this.__awaiter||function(n,e,t,r){function i(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,o){function a(n){try{
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(n,e){if(Object.defineProperty){Object.defineProperty(n,"raw",{value:e})}else{n.raw=e}return n};var __awaiter=this&&this.__awaiter||function(n,e,t,r){function i(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,o){function a(n){try{c(r.next(n))}catch(n){o(n)}}function u(n){try{c(r["throw"](n))}catch(n){o(n)}}function c(n){n.done?t(n.value):i(n.value).then(a,u)}c((r=r.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(n){return function(e){return c([n,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(t)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;i=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1];o=a;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(a);break}if(o[2])t.ops.pop();t.trys.pop();continue}a=e.call(n,t)}catch(n){a=[6,n];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-b6504987.system.js","./p-a8ecdc44.system.js","./p-6f8dde97.system.js"],(function(n){"use strict";var e,t,r,i,o,a,u,c;return{setters:[function(n){e=n.k;t=n.f},function(n){r=n.d;i=n.J;o=n.$;a=n.g;u=n.w},function(n){c=n.T}],execute:function(){n({a:$n,g:zn,u:Jn});var s=function n(e){var t=Array(e.length);for(var r=0;r<e.length;++r){t[r]=e[r]}return t};var d=function n(e,t){return e.filter((function(n){return n===t}))[0]};var f=function n(e){return Array.isArray(e)?e:[e]};var l=function n(e,t){var r=e.tabIndex-t.tabIndex;var i=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||i};var v=function n(e,t,r){return s(e).map((function(n,e){return{node:n,index:e,tabIndex:r&&n.tabIndex===-1?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}})).filter((function(n){return!t||n.tabIndex>=0})).sort(l)};var E=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"];var h="data-focus-lock";var p="data-focus-lock-disabled";var m="data-no-focus-lock";var I="data-autofocus-inside";var y=E.join(",");var _=y+", [data-focus-guard]";var g=function n(e,t){return e.reduce((function(n,e){return n.concat(s(e.querySelectorAll(t?_:y)),e.parentNode?s(e.parentNode.querySelectorAll(E.join(","))).filter((function(n){return n===e})):[])}),[])};var R=function n(e){var t=e.querySelectorAll("["+I+"]");return s(t).map((function(n){return g([n])})).reduce((function(n,e){return n.concat(e)}),[])};var T=function n(e){if(!e||!e.getPropertyValue){return false}return e.getPropertyValue("display")==="none"||e.getPropertyValue("visibility")==="hidden"};var b=function n(e){return!e||e===document||e.nodeType===Node.DOCUMENT_NODE||!T(window.getComputedStyle(e,null))&&n(e.parentNode)};var w=function n(e){return!((e.tagName==="INPUT"||e.tagName==="BUTTON")&&(e.type==="hidden"||e.disabled))};var A=function n(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];t.push(e);if(e.parentNode){n(e.parentNode,t)}return t};var N=function n(e,t){var r=A(e);var i=A(t);for(var o=0;o<r.length;o+=1){var a=r[o];if(i.indexOf(a)>=0){return a}}return false};var S=function n(e){return s(e).filter((function(n){return b(n)})).filter((function(n){return w(n)}))};var F=function n(e,t){return v(S(g(e,t)),true,t)};var D=function n(e){return v(S(g(e)),false)};var O=function n(e){return S(R(e))};var C=function n(e){return e.tagName==="INPUT"&&e.type==="radio"};var V=function n(e,t){return t.filter(C).filter((function(n){return n.name===e.name})).filter((function(n){return n.checked}))[0]||e};var x=function n(e){if(e[0]&&e.length>1){if(C(e[0])&&e[0].name){return V(e[0],e)}}return e[0]};var L=function n(e,t){if(e.length>1){if(C(e[t])&&e[t].name){return e.indexOf(V(e[t],e))}}return t};var U=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol==="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};var M=function n(e){var t=e.length;for(var r=0;r<t;r+=1){var i=function t(i){if(r!==i){if(e[r].contains(e[i])){return{v:n(e.filter((function(n){return n!==e[i]})))}}}};for(var o=0;o<t;o+=1){var a=i(o);if((typeof a==="undefined"?"undefined":U(a))==="object")return a.v}}return e};var H=function n(e){return e.parentNode?n(e.parentNode):e};var P=function n(e){var t=f(e);return t.filter(Boolean).reduce((function(n,e){var t=e.getAttribute(h);n.push.apply(n,t?M(s(H(e).querySelectorAll("["+h+'="'+t+'"]:not(['+p+'="disabled"])'))):[e]);return n}),[])};var k=function n(e){return function(n){return!!n.autofocus||n.dataset&&!!n.dataset.autofocus||e.indexOf(n)>=0}};var B=function n(e){return e&&e.dataset&&e.dataset.focusGuard};var W=function n(e){return!B(e)};var j=function n(e,t,r,i,o){var a=e.length;var u=e[0];var c=e[a-1];var s=B(r);if(e.indexOf(r)>=0){return undefined}var d=t.indexOf(r);var f=t.indexOf(i||d);var l=e.indexOf(i);var v=d-f;var E=t.indexOf(u);var h=t.indexOf(c);var p=L(e,0);var m=L(e,a-1);if(d===-1||l===-1){return e.indexOf(o&&o.length?x(o):x(e))}if(!v&&l>=0){return l}if(d<=E&&s&&Math.abs(v)>1){return m}if(d>=E&&s&&Math.abs(v)>1){return p}if(v&&Math.abs(v)>1){return l}if(d<=E){return m}if(d>h){return p}if(v){if(Math.abs(v)>1){return l}return(a+l+v)%a}return undefined};var q=function n(e,t,r){var i=f(e);var o=f(t);var a=i[0];var u=null;o.filter(Boolean).forEach((function(n){u=N(u||n,n)||u;r.filter(Boolean).forEach((function(n){var e=N(a,n);if(e){if(!u||e.contains(u)){u=e}else{u=N(e,u)}}}))}));return u};var Y=function n(e){return e.reduce((function(n,e){return n.concat(O(e))}),[])};var K=function n(e,t){var r=new Map;t.forEach((function(n){return r.set(n.node,n)}));return e.map((function(n){return r.get(n)})).filter(Boolean)};var Q=function n(e,t){var r=document&&document.activeElement;var i=P(e).filter(W);var o=q(r||e,e,i);var a=F(i).filter((function(n){var e=n.node;return W(e)}));if(!a[0]){a=D(i).filter((function(n){var e=n.node;return W(e)}));if(!a[0]){return undefined}}var u=F([o]).map((function(n){var e=n.node;return e}));var c=K(u,a);var s=c.map((function(n){var e=n.node;return e}));var d=j(s,u,r,t,s.filter(k(Y(i))));if(d===undefined){return d}return c[d]};var $=function n(e){return e===document.activeElement};var G=function n(e){return!!d(s(e.querySelectorAll("iframe")),$)};var X=function n(e){var t=document&&document.activeElement;if(!t||t.dataset&&t.dataset.focusGuard){return false}return P(e).reduce((function(n,e){return n||e.contains(t)||G(e)}),false)};var z=function n(){return document&&s(document.querySelectorAll("["+m+"]")).some((function(n){return n.contains(document.activeElement)}))};var J=function n(e){e.focus();if(e.contentWindow){e.contentWindow.focus()}};var Z=0;var nn=false;var en=function(n,e){var t=Q(n,e);if(nn){return}if(t){if(Z>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. "+"See https://github.com/theKashey/focus-lock/#focus-fighting");nn=true;setTimeout((function(){nn=false}),1);return}Z++;J(t.node);Z--}};var tn=0;var rn=null;var on=function n(){return document&&document.activeElement===document.body};var an=function n(){return on()||z()};var un=function n(){var e=false;if(tn){var t=tn;if(!an()){if(t&&!X(t)){e=en(t,rn)}rn=document.activeElement}}return e};var cn=function n(e){return e.filter((function(n){return n})).slice(-1)[0]};var sn=function n(e){tn=e;if(e){un()}};var dn=[];var fn=function n(e){if(sn(cn(dn))){e&&e.preventDefault();return true}return false};var ln=function n(){document.addEventListener("focusin",fn)};var vn=function n(){document.removeEventListener("focusin",fn)};var En={on:function n(e){if(dn.length===0){ln()}if(dn.indexOf(e)<0){dn.push(e);fn()}},off:function n(e){dn=dn.filter((function(n){return n!==e}));fn();if(dn.length===0){vn()}}};
|
|
2
2
|
/**
|
|
3
3
|
* tua-body-scroll-lock v1.2.1
|
|
4
4
|
* (c) 2021 Evinma, BuptStEve
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/var hn=function n(){return typeof window==="undefined"};var pn=function n(e){e=e||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(e);var r=!t&&/(iPhone\sOS)\s([\d_]+)/.test(e);var i=/(Android);?[\s/]+([\d.]+)?/.test(e);var o=r||t;return{ios:o,android:i}};function mn(n){if(hn())return false;if(!n){throw new Error("options must be provided")}var e=false;var t={get passive(){e=true;return}};var r=function n(){};var i="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(i,r,t);window.removeEventListener(i,r,t);var o=n.capture;return e?n:typeof o!=="undefined"?o:false}var In=0;var yn=0;var _n=0;var gn=null;var Rn=false;var Tn=[];var bn=mn({passive:false});var wn=!hn()&&"scrollBehavior"in document.documentElement.style;var An=function n(){var e=document.body;var t=Object.assign({},e.style);var r=window.innerWidth-e.clientWidth;e.style.overflow="hidden";e.style.boxSizing="border-box";e.style.paddingRight="".concat(r,"px");return function(){["overflow","boxSizing","paddingRight"].forEach((function(n){e.style[n]=t[n]||""}))}};var Nn=function n(){var e=document.documentElement;var t=document.body;var r=e.scrollTop||t.scrollTop;var i=Object.assign({},e.style);var o=Object.assign({},t.style);e.style.height="100%";e.style.overflow="hidden";t.style.top="-".concat(r,"px");t.style.width="100%";t.style.height="auto";t.style.position="fixed";t.style.overflow="hidden";return function(){e.style.height=i.height||"";e.style.overflow=i.overflow||"";["top","width","height","overflow","position"].forEach((function(n){t.style[n]=o[n]||""}));wn?window.scrollTo({top:r,behavior:"instant"}):window.scrollTo(0,r)}};var Sn=function n(e){if(!e.cancelable)return;e.preventDefault()};var Fn=function n(e,t){if(t){var r=t.scrollTop,i=t.scrollLeft,o=t.scrollWidth,a=t.scrollHeight,u=t.clientWidth,s=t.clientHeight;var c=e.targetTouches[0].clientX-_n;var d=e.targetTouches[0].clientY-yn;var f=Math.abs(d)>Math.abs(c);var l=d>0&&r===0;var v=c>0&&i===0;var E=c<0&&i+u+1>=o;var h=d<0&&r+s+1>=a;if(f&&(l||h)||!f&&(v||E)){return Sn(e)}}e.stopPropagation();return true};var Dn=function n(e){if(hn())return;if(pn().ios){if(e){var t=Array.isArray(e)?e:[e];t.forEach((function(n){if(n&&Tn.indexOf(n)===-1){n.ontouchstart=function(n){yn=n.targetTouches[0].clientY;_n=n.targetTouches[0].clientX};n.ontouchmove=function(e){if(e.targetTouches.length!==1)return;Fn(e,n)};Tn.push(n)}}))}if(!Rn){document.addEventListener("touchmove",Sn,bn);Rn=true}}else if(In<=0){gn=pn().android?Nn():An()}In+=1};var On=function n(e){if(hn())return;In-=1;if(In>0)return;if(!pn().ios&&typeof gn==="function"){gn();return}if(e){var t=Array.isArray(e)?e:[e];t.forEach((function(n){var e=Tn.indexOf(n);if(e!==-1){n.ontouchmove=null;n.ontouchstart=null;Tn.splice(e,1)}}))}if(Rn){document.removeEventListener("touchmove",Sn,bn);Rn=false}};var Cn="\n position: fixed !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n z-index: 9999999;\n display: block !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n background: rgba(0, 0, 0, 0.6);\n";var Vn="\n position: absolute !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n background: none;\n border: none\n";var xn="\n position: static;\n width: 100%;\n height: 100%;\n";var Ln=function(n){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;var r=e.rootElementID;if(t){n.style.cssText=Vn;var i=document.createElement("div");i.style.cssText=Cn;i.appendChild(n);document.body.appendChild(i);En.on(n);Dn(n)}else{if(!r){throw new Error("rootElementID must be specified in embedded mode")}if(!document.getElementById(r)){throw new Error("rootElementID must point to an existing DOM element")}n.style.cssText=xn;document.getElementById(r).appendChild(n)}};var Un=function(n){n["VERIFF_HANDSHAKE"]="VERIFF_HANDSHAKE";n["VERIFF_RENDER"]="VERIFF_RENDER";n["VERIFF_STARTED"]="VERIFF_STARTED";n["VERIFF_SUBMITTED"]="VERIFF_SUBMITTED";n["VERIFF_FINISHED"]="VERIFF_FINISHED";n["VERIFF_CANCELED"]="VERIFF_CANCELED";n["VERIFF_FORCE_RELOAD"]="VERIFF_FORCE_RELOAD";n["VERIFF_RELOAD_REQUEST"]="VERIFF_RELOAD_REQUEST";return n}({});var Mn=function(n){n["STARTED"]="STARTED";n["SUBMITTED"]="SUBMITTED";n["FINISHED"]="FINISHED";n["CANCELED"]="CANCELED";n["RELOAD_REQUEST"]="RELOAD";return n}({});var Hn="veriffFrame";function Pn(n,e){var t;(t=n.contentWindow)===null||t===void 0?void 0:t.postMessage({name:Un.VERIFF_RENDER,payload:e},"*")}function kn(n){if(n){try{var e=matchMedia("(max-width: 767px), (hover: none)");return e.matches}catch(n){console.error("Error while checking if iframe is mobile",n);return false}}return false}function Bn(n,e,t){if(t){var r=new URL(n);var i=r.searchParams;i.set(e,t);r.search=i.toString();return r.toString()}return n}function Wn(){var n=document.createElement("div");n.style.cssText=Cn;return n}function jn(n,e,t,r){var i=document.createElement("iframe");i.src=n;i.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;";i.id=Hn;if(e){Ln(i,t,r)}else{i.style.cssText=Vn;var o=Wn();o.appendChild(i);document.body.appendChild(o);En.on(i);Dn(i)}return i}function qn(n){var e=n.url,t=n.lang,r=n.onEvent,i=r===void 0?function(){return}:r,o=n.embedded,a=o===void 0?false:o,u=n.embeddedOptions,s=n.onReload;if(!e){throw new Error("URL is not provided. Please provide a valid Veriff session url.")}var c=kn(a);function d(){var n=document.getElementById(Hn);if(n&&n.parentNode){En.off(n);On(n);var e=n.parentNode.parentNode;var t=n.parentNode;if(a&&!c){e=n.parentNode;t=n}if(e)e.removeChild(t)}else{On()}window.removeEventListener("message",f)}function f(n){var e=document.getElementById(Hn);var t="2.3.1";if(n.data===Un.VERIFF_HANDSHAKE){Pn(e,{version:t,isReloadHandled:typeof s==="function",isVeriffIframeMobile:c,embeddedConfigured:a,embedded:c?false:a})}if(n.data===Un.VERIFF_STARTED){i(Mn.STARTED)}if(n.data===Un.VERIFF_CANCELED){d();i(Mn.CANCELED)}if(n.data===Un.VERIFF_SUBMITTED){i(Mn.SUBMITTED)}if(n.data===Un.VERIFF_FINISHED){d();i(Mn.FINISHED)}if(n.data===Un.VERIFF_FORCE_RELOAD){window.location.reload()}if(n.data===Un.VERIFF_RELOAD_REQUEST){if(typeof s==="function"){s()}i(Mn.RELOAD_REQUEST)}}var l=t&&t.length>0?Bn(e,"lang",t):e;jn(l,a,u,c);window.addEventListener("message",f);return{close:d}}var Yn=r.gql(__makeTemplateObject(["\n mutation createImpactVerificationSession($user: UserIdInput!) {\n createImpactPublisherIdentityVerificationSession(user: $user) {\n sessionUrl\n }\n }\n"],["\n mutation createImpactVerificationSession($user: UserIdInput!) {\n createImpactPublisherIdentityVerificationSession(user: $user) {\n sessionUrl\n }\n }\n"]));var Kn=r.gql(__makeTemplateObject(["\n mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {\n refreshImpactPublisherFinanceStatus(user: $user) {\n id\n }\n }\n"],["\n mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {\n refreshImpactPublisherFinanceStatus(user: $user) {\n id\n }\n }\n"]));var Qn=n("V","sqm:veriff-updated");function $n(){var n=this;var e=i(),t=e.id,r=e.accountId;var a=o(Yn),u=a[0],s=a[1],c=s.loading,d=s.errors;var f=o(Kn),l=f[0],v=f[1],E=v.loading,h=v.errors;var p=function(){return __awaiter(n,void 0,void 0,(function(){var n,e;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);return[4,l({user:{id:t,accountId:r}})];case 1:n=i.sent();if(!n||n.message)throw new Error;window.dispatchEvent(new Event(Qn));return[3,3];case 2:e=i.sent();console.error("Failed to initialise Veriff:",e);return[3,3];case 3:return[2]}}))}))};var m=function(){return __awaiter(n,void 0,void 0,(function(){var n,e,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,u({user:{id:t,accountId:r}})];case 1:n=o.sent();if(!n||n.message)throw new Error;e=n.createImpactPublisherIdentityVerificationSession.sessionUrl;qn({url:e,onEvent:function(n){switch(n){case Mn.FINISHED:case Mn.CANCELED:p()}}});return[3,3];case 2:i=o.sent();console.error("Failed to initialise Veriff:",i);return[3,3];case 3:return[2]}}))}))};return{render:m,loading:c||E,errors:d||h}}var Gn=r.gql(__makeTemplateObject(["\n query getUserStatus {\n user: viewer {\n ... on User {\n id\n impactConnection {\n connected\n publisher {\n id\n payoutsAccount {\n hold\n holdReasons\n }\n }\n }\n rewards(limit: 1000) {\n data {\n statuses\n partnerFundsTransfer {\n id\n status\n dateScheduled\n dateCreated\n dateTransferred\n }\n }\n }\n }\n }\n }\n"],["\n query getUserStatus {\n user: viewer {\n ... on User {\n id\n impactConnection {\n connected\n publisher {\n id\n payoutsAccount {\n hold\n holdReasons\n }\n }\n }\n rewards(limit: 1000) {\n data {\n statuses\n partnerFundsTransfer {\n id\n status\n dateScheduled\n dateCreated\n dateTransferred\n }\n }\n }\n }\n }\n }\n"]));var Xn=r.gql(__makeTemplateObject(["\n query getTenantSettings {\n tenantSettings {\n enforceUsTaxCompliance\n }\n }\n"],["\n query getTenantSettings {\n tenantSettings {\n enforceUsTaxCompliance\n }\n }\n"]));function zn(n){var e,t,r,i,o,a,u,s,c,d,f,l,v,E,h,p,m,I,y,_,g,R;var T=(t=(e=n.user.impactConnection)===null||e===void 0?void 0:e.publisher)===null||t===void 0?void 0:t.payoutsAccount;var b=(o=(i=(r=n===null||n===void 0?void 0:n.user)===null||r===void 0?void 0:r.rewards)===null||i===void 0?void 0:i.data)===null||o===void 0?void 0:o.find((function(n){var e;return n.statuses.includes("REDEEMED")&&((e=n.partnerFundsTransfer)===null||e===void 0?void 0:e.status)==="TRANSFERRED"}));if(!((u=(a=n.user)===null||a===void 0?void 0:a.impactConnection)===null||u===void 0?void 0:u.connected)||!T)return"INFORMATION_REQUIRED";var w=(c=(s=n.user.impactConnection)===null||s===void 0?void 0:s.publisher)===null||c===void 0?void 0:c.currentTaxDocument;if(((d=T.holdReasons)===null||d===void 0?void 0:d.includes("NO_W9_DOCUMENT"))&&!w)return"OVER_W9_THRESHOLD";if((f=T.holdReasons)===null||f===void 0?void 0:f.includes("IDV_CHECK_REQUIRED"))return"VERIFICATION:REQUIRED";if((l=T.holdReasons)===null||l===void 0?void 0:l.includes("IDV_CHECK_REQUIRED_INTERNAL"))return"VERIFICATION:INTERNAL";if((v=T.holdReasons)===null||v===void 0?void 0:v.includes("IDV_CHECK_REVIEW_INTERNAL"))return"VERIFICATION:REVIEW";if((E=T.holdReasons)===null||E===void 0?void 0:E.includes("IDV_CHECK_FAILED_INTERNAL"))return"VERIFICATION:FAILED";if(((h=T.holdReasons)===null||h===void 0?void 0:h.includes("NEW_PAYEE_REVIEW"))&&b)return"NEW_PAYEE_REVIEW";if((p=T.holdReasons)===null||p===void 0?void 0:p.includes("NEW_PAYEE_REVIEW"))return"DONE";if((m=T.holdReasons)===null||m===void 0?void 0:m.includes("PAYMENT_HOLD_ON_CHANGE"))return"PAYMENT_HOLD_ON_CHANGE";if((I=T.holdReasons)===null||I===void 0?void 0:I.includes("BENEFICIARY_NAME_INVALID"))return"BENEFICIARY_NAME_INVALID";if((y=T.holdReasons)===null||y===void 0?void 0:y.includes("BENEFICIARY_NAME_MISMATCH"))return"BENEFICIARY_NAME_MISMATCH";if((_=T.holdReasons)===null||_===void 0?void 0:_.includes("BANK_TAX_NAME_MISMATCH"))return"BANK_TAX_NAME_MISMATCH";if((g=T.holdReasons)===null||g===void 0?void 0:g.includes("WITHDRAWAL_SETTINGS_INVALID"))return"WITHDRAWAL_SETTINGS_INVALID";if((R=T.holdReasons)===null||R===void 0?void 0:R.includes("PAYMENT_RETURNED"))return"PAYMENT_RETURNED";if(T.hold)return"HOLD";return"DONE"}function Jn(n){var r;var i=a().type;var o=u(Gn,{}),c=o.loading,d=o.data,f=o.errors,l=o.refetch;var v=u(Xn,{}).data;var E=$n(),h=E.render,p=E.loading,m=E.errors;var I=e(undefined),y=I[0],_=I[1];var g=(r=v===null||v===void 0?void 0:v.tenantSettings)===null||r===void 0?void 0:r.enforceUsTaxCompliance;t((function(){if(!d)return;var n=zn(d);_(n)}),[d]);t((function(){var n=function(){return l()};window.addEventListener(s,n);window.addEventListener(Qn,n);return function(){window.removeEventListener(s,n);window.removeEventListener(Qn,n)}}),[]);var R=function(){var e=n.cashPayoutsPageUrl;if(e.includes("#"))e=e.split("#")[0];if(y==="INFORMATION_REQUIRED")e+="#1";else if(y==="OVER_W9_THRESHOLD"&&g==="CASH_ONLY_DEFER_W9")e+="#3";window.history.pushState(null,"",e)};var T=function(){var e=n.cashPayoutsPageUrl;e+="#4";window.history.pushState(null,"",e)};var b=function(){var e=n.cashPayoutsPageUrl;e+="#3";window.history.pushState(null,"",e)};return{states:{loading:c,veriffLoading:p,status:y,error:!!f,enforceUsTaxComplianceOption:g},data:{type:i},text:n.getTextProps(),callbacks:{onTermsClick:R,onClick:h,onPaymentInfoClick:T,onNewFormClick:b}}}}}}));
|
|
6
|
+
*/var hn=function n(){return typeof window==="undefined"};var pn=function n(e){e=e||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(e);var r=!t&&/(iPhone\sOS)\s([\d_]+)/.test(e);var i=/(Android);?[\s/]+([\d.]+)?/.test(e);var o=r||t;return{ios:o,android:i}};function mn(n){if(hn())return false;if(!n){throw new Error("options must be provided")}var e=false;var t={get passive(){e=true;return}};var r=function n(){};var i="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(i,r,t);window.removeEventListener(i,r,t);var o=n.capture;return e?n:typeof o!=="undefined"?o:false}var In=0;var yn=0;var _n=0;var gn=null;var Rn=false;var Tn=[];var bn=mn({passive:false});var wn=!hn()&&"scrollBehavior"in document.documentElement.style;var An=function n(){var e=document.body;var t=Object.assign({},e.style);var r=window.innerWidth-e.clientWidth;e.style.overflow="hidden";e.style.boxSizing="border-box";e.style.paddingRight="".concat(r,"px");return function(){["overflow","boxSizing","paddingRight"].forEach((function(n){e.style[n]=t[n]||""}))}};var Nn=function n(){var e=document.documentElement;var t=document.body;var r=e.scrollTop||t.scrollTop;var i=Object.assign({},e.style);var o=Object.assign({},t.style);e.style.height="100%";e.style.overflow="hidden";t.style.top="-".concat(r,"px");t.style.width="100%";t.style.height="auto";t.style.position="fixed";t.style.overflow="hidden";return function(){e.style.height=i.height||"";e.style.overflow=i.overflow||"";["top","width","height","overflow","position"].forEach((function(n){t.style[n]=o[n]||""}));wn?window.scrollTo({top:r,behavior:"instant"}):window.scrollTo(0,r)}};var Sn=function n(e){if(!e.cancelable)return;e.preventDefault()};var Fn=function n(e,t){if(t){var r=t.scrollTop,i=t.scrollLeft,o=t.scrollWidth,a=t.scrollHeight,u=t.clientWidth,c=t.clientHeight;var s=e.targetTouches[0].clientX-_n;var d=e.targetTouches[0].clientY-yn;var f=Math.abs(d)>Math.abs(s);var l=d>0&&r===0;var v=s>0&&i===0;var E=s<0&&i+u+1>=o;var h=d<0&&r+c+1>=a;if(f&&(l||h)||!f&&(v||E)){return Sn(e)}}e.stopPropagation();return true};var Dn=function n(e){if(hn())return;if(pn().ios){if(e){var t=Array.isArray(e)?e:[e];t.forEach((function(n){if(n&&Tn.indexOf(n)===-1){n.ontouchstart=function(n){yn=n.targetTouches[0].clientY;_n=n.targetTouches[0].clientX};n.ontouchmove=function(e){if(e.targetTouches.length!==1)return;Fn(e,n)};Tn.push(n)}}))}if(!Rn){document.addEventListener("touchmove",Sn,bn);Rn=true}}else if(In<=0){gn=pn().android?Nn():An()}In+=1};var On=function n(e){if(hn())return;In-=1;if(In>0)return;if(!pn().ios&&typeof gn==="function"){gn();return}if(e){var t=Array.isArray(e)?e:[e];t.forEach((function(n){var e=Tn.indexOf(n);if(e!==-1){n.ontouchmove=null;n.ontouchstart=null;Tn.splice(e,1)}}))}if(Rn){document.removeEventListener("touchmove",Sn,bn);Rn=false}};var Cn="\n position: fixed !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n z-index: 9999999;\n display: block !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n background: rgba(0, 0, 0, 0.6);\n";var Vn="\n position: absolute !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n background: none;\n border: none\n";var xn="\n position: static;\n width: 100%;\n height: 100%;\n";var Ln=function(n){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;var r=e.rootElementID;if(t){n.style.cssText=Vn;var i=document.createElement("div");i.style.cssText=Cn;i.appendChild(n);document.body.appendChild(i);En.on(n);Dn(n)}else{if(!r){throw new Error("rootElementID must be specified in embedded mode")}if(!document.getElementById(r)){throw new Error("rootElementID must point to an existing DOM element")}n.style.cssText=xn;document.getElementById(r).appendChild(n)}};var Un=function(n){n["VERIFF_HANDSHAKE"]="VERIFF_HANDSHAKE";n["VERIFF_RENDER"]="VERIFF_RENDER";n["VERIFF_STARTED"]="VERIFF_STARTED";n["VERIFF_SUBMITTED"]="VERIFF_SUBMITTED";n["VERIFF_FINISHED"]="VERIFF_FINISHED";n["VERIFF_CANCELED"]="VERIFF_CANCELED";n["VERIFF_FORCE_RELOAD"]="VERIFF_FORCE_RELOAD";n["VERIFF_RELOAD_REQUEST"]="VERIFF_RELOAD_REQUEST";return n}({});var Mn=function(n){n["STARTED"]="STARTED";n["SUBMITTED"]="SUBMITTED";n["FINISHED"]="FINISHED";n["CANCELED"]="CANCELED";n["RELOAD_REQUEST"]="RELOAD";return n}({});var Hn="veriffFrame";function Pn(n,e){var t;(t=n.contentWindow)===null||t===void 0?void 0:t.postMessage({name:Un.VERIFF_RENDER,payload:e},"*")}function kn(n){if(n){try{var e=matchMedia("(max-width: 767px), (hover: none)");return e.matches}catch(n){console.error("Error while checking if iframe is mobile",n);return false}}return false}function Bn(n,e,t){if(t){var r=new URL(n);var i=r.searchParams;i.set(e,t);r.search=i.toString();return r.toString()}return n}function Wn(){var n=document.createElement("div");n.style.cssText=Cn;return n}function jn(n,e,t,r){var i=document.createElement("iframe");i.src=n;i.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;";i.id=Hn;if(e){Ln(i,t,r)}else{i.style.cssText=Vn;var o=Wn();o.appendChild(i);document.body.appendChild(o);En.on(i);Dn(i)}return i}function qn(n){var e=n.url,t=n.lang,r=n.onEvent,i=r===void 0?function(){return}:r,o=n.embedded,a=o===void 0?false:o,u=n.embeddedOptions,c=n.onReload;if(!e){throw new Error("URL is not provided. Please provide a valid Veriff session url.")}var s=kn(a);function d(){var n=document.getElementById(Hn);if(n&&n.parentNode){En.off(n);On(n);var e=n.parentNode.parentNode;var t=n.parentNode;if(a&&!s){e=n.parentNode;t=n}if(e)e.removeChild(t)}else{On()}window.removeEventListener("message",f)}function f(n){var e=document.getElementById(Hn);var t="2.3.1";if(n.data===Un.VERIFF_HANDSHAKE){Pn(e,{version:t,isReloadHandled:typeof c==="function",isVeriffIframeMobile:s,embeddedConfigured:a,embedded:s?false:a})}if(n.data===Un.VERIFF_STARTED){i(Mn.STARTED)}if(n.data===Un.VERIFF_CANCELED){d();i(Mn.CANCELED)}if(n.data===Un.VERIFF_SUBMITTED){i(Mn.SUBMITTED)}if(n.data===Un.VERIFF_FINISHED){d();i(Mn.FINISHED)}if(n.data===Un.VERIFF_FORCE_RELOAD){window.location.reload()}if(n.data===Un.VERIFF_RELOAD_REQUEST){if(typeof c==="function"){c()}i(Mn.RELOAD_REQUEST)}}var l=t&&t.length>0?Bn(e,"lang",t):e;jn(l,a,u,s);window.addEventListener("message",f);return{close:d}}var Yn=r.gql(__makeTemplateObject(["\n mutation createImpactVerificationSession($user: UserIdInput!) {\n createImpactPublisherIdentityVerificationSession(user: $user) {\n sessionUrl\n }\n }\n"],["\n mutation createImpactVerificationSession($user: UserIdInput!) {\n createImpactPublisherIdentityVerificationSession(user: $user) {\n sessionUrl\n }\n }\n"]));var Kn=r.gql(__makeTemplateObject(["\n mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {\n refreshImpactPublisherFinanceStatus(user: $user) {\n id\n }\n }\n"],["\n mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {\n refreshImpactPublisherFinanceStatus(user: $user) {\n id\n }\n }\n"]));var Qn=n("V","sqm:veriff-updated");function $n(){var n=this;var e=i(),t=e.id,r=e.accountId;var a=o(Yn),u=a[0],c=a[1],s=c.loading,d=c.errors;var f=o(Kn),l=f[0],v=f[1],E=v.loading,h=v.errors;var p=function(){return __awaiter(n,void 0,void 0,(function(){var n,e;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);return[4,l({user:{id:t,accountId:r}})];case 1:n=i.sent();if(!n||n.message)throw new Error;window.dispatchEvent(new Event(Qn));return[3,3];case 2:e=i.sent();console.error("Failed to initialise Veriff:",e);return[3,3];case 3:return[2]}}))}))};var m=function(){return __awaiter(n,void 0,void 0,(function(){var n,e,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,u({user:{id:t,accountId:r}})];case 1:n=o.sent();if(!n||n.message)throw new Error;e=n.createImpactPublisherIdentityVerificationSession.sessionUrl;qn({url:e,onEvent:function(n){switch(n){case Mn.FINISHED:case Mn.CANCELED:p()}}});return[3,3];case 2:i=o.sent();console.error("Failed to initialise Veriff:",i);return[3,3];case 3:return[2]}}))}))};return{render:m,loading:s||E,errors:d||h}}var Gn=r.gql(__makeTemplateObject(["\n query getUserStatus {\n user: viewer {\n ... on User {\n id\n impactConnection {\n connected\n publisher {\n id\n payoutsAccount {\n hold\n holdReasons\n }\n }\n }\n rewards(limit: 1000) {\n data {\n statuses\n partnerFundsTransfer {\n id\n status\n dateScheduled\n dateCreated\n dateTransferred\n }\n }\n }\n }\n }\n }\n"],["\n query getUserStatus {\n user: viewer {\n ... on User {\n id\n impactConnection {\n connected\n publisher {\n id\n payoutsAccount {\n hold\n holdReasons\n }\n }\n }\n rewards(limit: 1000) {\n data {\n statuses\n partnerFundsTransfer {\n id\n status\n dateScheduled\n dateCreated\n dateTransferred\n }\n }\n }\n }\n }\n }\n"]));var Xn=r.gql(__makeTemplateObject(["\n query getTenantSettings {\n tenantSettings {\n enforceUsTaxCompliance\n }\n }\n"],["\n query getTenantSettings {\n tenantSettings {\n enforceUsTaxCompliance\n }\n }\n"]));function zn(n){var e,t,r,i,o,a,u,c,s,d,f,l,v,E,h,p,m,I,y,_,g,R;var T=(t=(e=n.user.impactConnection)===null||e===void 0?void 0:e.publisher)===null||t===void 0?void 0:t.payoutsAccount;var b=(o=(i=(r=n===null||n===void 0?void 0:n.user)===null||r===void 0?void 0:r.rewards)===null||i===void 0?void 0:i.data)===null||o===void 0?void 0:o.find((function(n){var e;return n.statuses.includes("REDEEMED")&&((e=n.partnerFundsTransfer)===null||e===void 0?void 0:e.status)==="TRANSFERRED"}));if(!((u=(a=n.user)===null||a===void 0?void 0:a.impactConnection)===null||u===void 0?void 0:u.connected)||!T)return"INFORMATION_REQUIRED";var w=(s=(c=n.user.impactConnection)===null||c===void 0?void 0:c.publisher)===null||s===void 0?void 0:s.currentTaxDocument;if(((d=T.holdReasons)===null||d===void 0?void 0:d.includes("NO_W9_DOCUMENT"))&&!w)return"OVER_W9_THRESHOLD";if((f=T.holdReasons)===null||f===void 0?void 0:f.includes("IDV_CHECK_REQUIRED"))return"VERIFICATION:REQUIRED";if((l=T.holdReasons)===null||l===void 0?void 0:l.includes("IDV_CHECK_REQUIRED_INTERNAL"))return"VERIFICATION:INTERNAL";if((v=T.holdReasons)===null||v===void 0?void 0:v.includes("IDV_CHECK_REVIEW_INTERNAL"))return"VERIFICATION:REVIEW";if((E=T.holdReasons)===null||E===void 0?void 0:E.includes("IDV_CHECK_FAILED_INTERNAL"))return"VERIFICATION:FAILED";if(((h=T.holdReasons)===null||h===void 0?void 0:h.includes("NEW_PAYEE_REVIEW"))&&b)return"NEW_PAYEE_REVIEW";if((p=T.holdReasons)===null||p===void 0?void 0:p.includes("NEW_PAYEE_REVIEW"))return"DONE";if((m=T.holdReasons)===null||m===void 0?void 0:m.includes("PAYMENT_HOLD_ON_CHANGE"))return"PAYMENT_HOLD_ON_CHANGE";if((I=T.holdReasons)===null||I===void 0?void 0:I.includes("BENEFICIARY_NAME_INVALID"))return"BENEFICIARY_NAME_INVALID";if((y=T.holdReasons)===null||y===void 0?void 0:y.includes("BENEFICIARY_NAME_MISMATCH"))return"BENEFICIARY_NAME_MISMATCH";if((_=T.holdReasons)===null||_===void 0?void 0:_.includes("BANK_TAX_NAME_MISMATCH"))return"BANK_TAX_NAME_MISMATCH";if((g=T.holdReasons)===null||g===void 0?void 0:g.includes("WITHDRAWAL_SETTINGS_INVALID"))return"WITHDRAWAL_SETTINGS_INVALID";if((R=T.holdReasons)===null||R===void 0?void 0:R.includes("PAYMENT_RETURNED"))return"PAYMENT_RETURNED";if(T.hold)return"HOLD";return"DONE"}function Jn(n){var r;var i=a().type;var o=u(Gn,{}),s=o.loading,d=o.data,f=o.errors,l=o.refetch;var v=u(Xn,{}).data;var E=$n(),h=E.render,p=E.loading,m=E.errors;var I=e(undefined),y=I[0],_=I[1];var g=(r=v===null||v===void 0?void 0:v.tenantSettings)===null||r===void 0?void 0:r.enforceUsTaxCompliance;t((function(){if(!d)return;var n=zn(d);_(n)}),[d]);t((function(){var n=function(){return l()};window.addEventListener(c,n);window.addEventListener(Qn,n);return function(){window.removeEventListener(c,n);window.removeEventListener(Qn,n)}}),[]);var R=function(){var e=n.cashPayoutsPageUrl;if(e.includes("#"))e=e.split("#")[0];if(y==="INFORMATION_REQUIRED")e+="#1";else if(y==="OVER_W9_THRESHOLD"&&g==="CASH_ONLY_DEFER_W9")e+="#3";window.history.pushState(null,"",e)};var T=function(){var e=n.cashPayoutsPageUrl;e+="#4";window.history.pushState(null,"",e)};var b=function(){var e=n.cashPayoutsPageUrl;e+="#3";window.history.pushState(null,"",e)};return{states:{loading:s,veriffLoading:p,status:y,error:!!f,enforceUsTaxComplianceOption:g},data:{type:i},text:n.getTextProps(),callbacks:{onTermsClick:R,onClick:h,onPaymentInfoClick:T,onNewFormClick:b}}}}}}));
|