@saasquatch/mint-components 1.7.1-0 → 1.7.2-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-b997bca7.js → ShadowViewAddon-d0a52d38.js} +17 -12
- package/dist/cjs/{global-de2bf4f7.js → global-6785de71.js} +1 -1
- package/dist/cjs/{index.module-ccd9cbad.js → index.module-02576958.js} +8 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{re-render-378abee0.js → re-render-c484d9ab.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +37 -37
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +4 -4
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-navigation-sidebar-item-view-7e751389.js → sqm-navigation-sidebar-item-view-21dcca39.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-6f0aea50.js → sqm-portal-email-verification-view-d6e14e8d.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-0abcf3b8.js → sqm-portal-profile-view-13a1229f.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +8 -8
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +48 -48
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{useChildElements-4cfa421a.js → useChildElements-74eb05b6.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-45026b1f.js → useInstantAccessRegistration-11ff69f8.js} +2 -2
- package/dist/cjs/{useReferralTable-f1f85db9.js → useReferralTable-6ca43436.js} +6 -6
- package/dist/cjs/{useRegistrationFormState-7e9641c4.js → useRegistrationFormState-01d63bda.js} +1 -1
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +7 -7
- package/dist/collection/components/sqm-share-link/useShareLink.js +6 -1
- package/dist/esm/{ShadowViewAddon-5508ac9d.js → ShadowViewAddon-2c82b555.js} +17 -12
- package/dist/esm/{global-3cb5aea4.js → global-91edfca0.js} +1 -1
- package/dist/esm/{index.module-c549b2c8.js → index.module-99d8522e.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{re-render-3211b893.js → re-render-096db0eb.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat_39.entry.js +39 -39
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +4 -4
- package/dist/esm/sqm-logout-current-user.entry.js +2 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-e9296d4b.js → sqm-navigation-sidebar-item-view-eb765b9c.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- 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-87413403.js → sqm-portal-email-verification-view-408af676.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-977710a3.js → sqm-portal-profile-view-efa44888.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +5 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +4 -4
- package/dist/esm/sqm-portal-registration-form.entry.js +4 -4
- package/dist/esm/sqm-portal-reset-password.entry.js +5 -5
- package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +8 -8
- package/dist/esm/sqm-stencilbook.entry.js +48 -48
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{useChildElements-a97f3864.js → useChildElements-b945a965.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-47501f2c.js → useInstantAccessRegistration-7f9f4360.js} +2 -2
- package/dist/esm/{useReferralTable-d5398ef2.js → useReferralTable-e425f29d.js} +6 -6
- package/dist/esm/{useRegistrationFormState-b1f730bd.js → useRegistrationFormState-c9d54ef3.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-2c82b555.js +1 -0
- package/dist/esm-es5/{global-3cb5aea4.js → global-91edfca0.js} +1 -1
- package/dist/esm-es5/{index.module-c549b2c8.js → index.module-99d8522e.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-3211b893.js → re-render-096db0eb.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.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-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-e9296d4b.js → sqm-navigation-sidebar-item-view-eb765b9c.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-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-87413403.js → sqm-portal-email-verification-view-408af676.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-977710a3.js → sqm-portal-profile-view-efa44888.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.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/{useChildElements-a97f3864.js → useChildElements-b945a965.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-47501f2c.js → useInstantAccessRegistration-7f9f4360.js} +1 -1
- package/dist/esm-es5/{useReferralTable-d5398ef2.js → useReferralTable-e425f29d.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-c9d54ef3.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-626dc2ce.entry.js → p-00196b47.entry.js} +5 -5
- package/dist/mint-components/{p-b16930c5.entry.js → p-05f069ce.entry.js} +2 -2
- package/dist/mint-components/{p-086bc650.system.js → p-0943b547.system.js} +1 -1
- package/dist/mint-components/p-09cdd442.system.entry.js +1 -0
- package/dist/mint-components/{p-b0008fd2.system.entry.js → p-0a892e0f.system.entry.js} +1 -1
- package/dist/mint-components/p-0ad6459e.entry.js +1 -0
- package/dist/mint-components/{p-e5883a5f.entry.js → p-0b8f38a8.entry.js} +1 -1
- package/dist/mint-components/p-0de80de6.js +1 -0
- package/dist/mint-components/{p-c5fe9915.system.entry.js → p-13570402.system.entry.js} +1 -1
- package/dist/mint-components/{p-35604900.system.entry.js → p-1e884e97.system.entry.js} +1 -1
- package/dist/mint-components/p-1fa097d3.entry.js +1 -0
- package/dist/mint-components/p-22d1e92e.system.js +1 -0
- package/dist/mint-components/{p-fc7d9d19.system.entry.js → p-25ad41bd.system.entry.js} +1 -1
- package/dist/mint-components/{p-f60232ab.entry.js → p-2adb5310.entry.js} +1 -1
- package/dist/mint-components/{p-b4f1239f.system.entry.js → p-2bba85ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-eaf2b723.js → p-2e9a5714.js} +1 -1
- package/dist/mint-components/{p-bb7f5f8b.entry.js → p-3e0bb7f9.entry.js} +1 -1
- package/dist/mint-components/{p-a3e28532.system.js → p-41c62fef.system.js} +1 -1
- package/dist/mint-components/{p-4f09f749.js → p-42844992.js} +1 -1
- package/dist/mint-components/{p-66a30837.system.entry.js → p-53f4f635.system.entry.js} +1 -1
- package/dist/mint-components/{p-239f4be8.entry.js → p-57a89487.entry.js} +1 -1
- package/dist/mint-components/p-59318941.system.js +1 -0
- package/dist/mint-components/{p-6fc0c1a8.system.entry.js → p-66e3cb0c.system.entry.js} +1 -1
- package/dist/mint-components/{p-600b792e.system.entry.js → p-6d1a2821.system.entry.js} +1 -1
- package/dist/mint-components/p-6e793d76.system.entry.js +1 -0
- package/dist/mint-components/p-6fed24de.entry.js +1 -0
- package/dist/mint-components/{p-10b03137.system.entry.js → p-7d5ee633.system.entry.js} +1 -1
- package/dist/mint-components/{p-f2ec822a.js → p-831d1332.js} +1 -1
- package/dist/mint-components/{p-34c90e51.system.entry.js → p-84ee5462.system.entry.js} +1 -1
- package/dist/mint-components/p-878daf52.js +1 -0
- package/dist/mint-components/p-89e86134.entry.js +1 -0
- package/dist/mint-components/{p-cdddccfe.js → p-8b28c511.js} +1 -1
- package/dist/mint-components/{p-1d78d8ba.system.js → p-8b2b5d37.system.js} +1 -1
- package/dist/mint-components/{p-18ecc54e.system.entry.js → p-8f1974f8.system.entry.js} +1 -1
- package/dist/mint-components/{p-2d6f3bbc.entry.js → p-9a74f167.entry.js} +1 -1
- package/dist/mint-components/{p-6cb2eff2.system.entry.js → p-9b2e0735.system.entry.js} +1 -1
- package/dist/mint-components/{p-46f41615.system.js → p-9f3a0252.system.js} +1 -1
- package/dist/mint-components/{p-c9210918.entry.js → p-a23a2a86.entry.js} +1 -1
- package/dist/mint-components/{p-cf5b20fc.system.js → p-a372d9cf.system.js} +1 -1
- package/dist/mint-components/{p-f6ee8a24.system.entry.js → p-a65e2e14.system.entry.js} +1 -1
- package/dist/mint-components/{p-7195cdd7.system.entry.js → p-a6c026bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-1f4828ad.system.js → p-a79208b8.system.js} +1 -1
- package/dist/mint-components/{p-8b02bfc7.system.entry.js → p-abfb3897.system.entry.js} +1 -1
- package/dist/mint-components/{p-4069a5ac.entry.js → p-b0ef4f17.entry.js} +1 -1
- package/dist/mint-components/{p-6a578070.entry.js → p-b0f3c6c5.entry.js} +2 -2
- package/dist/mint-components/{p-1527ce05.entry.js → p-b4fddf49.entry.js} +1 -1
- package/dist/mint-components/{p-125c8c60.system.entry.js → p-b5b9aaba.system.entry.js} +1 -1
- package/dist/mint-components/{p-5ef6521c.system.js → p-b6dafb9b.system.js} +1 -1
- package/dist/mint-components/p-b9bf7576.system.js +1 -0
- package/dist/mint-components/{p-36182652.entry.js → p-b9c7b7ef.entry.js} +1 -1
- package/dist/mint-components/{p-8f13044b.system.entry.js → p-ba295930.system.entry.js} +1 -1
- package/dist/mint-components/{p-ac453316.system.entry.js → p-be8f19ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-d41556bd.entry.js → p-c24d34d8.entry.js} +1 -1
- package/dist/mint-components/{p-b43ea640.entry.js → p-c2bd46e2.entry.js} +1 -1
- package/dist/mint-components/{p-428256ab.js → p-ce5b03c8.js} +8 -3
- package/dist/mint-components/p-ce748fab.js +1 -0
- package/dist/mint-components/{p-2ff85968.entry.js → p-d5e83056.entry.js} +1 -1
- package/dist/mint-components/{p-bb5ec5c2.js → p-d65bf9dc.js} +1 -1
- package/dist/mint-components/{p-706a112f.entry.js → p-d846f34f.entry.js} +2 -2
- package/dist/mint-components/p-db9652e7.system.entry.js +1 -0
- package/dist/mint-components/{p-b4deff58.entry.js → p-e058ba88.entry.js} +1 -1
- package/dist/mint-components/{p-c1962b42.entry.js → p-e3de804b.entry.js} +1 -1
- package/dist/mint-components/{p-d9e05949.system.entry.js → p-e49392c3.system.entry.js} +1 -1
- package/dist/mint-components/p-e9197aac.entry.js +1 -0
- package/dist/mint-components/{p-6ff1de8a.js → p-eab33344.js} +1 -1
- package/dist/mint-components/{p-01d691c5.system.entry.js → p-ed9374ef.system.entry.js} +1 -1
- package/dist/mint-components/{p-e0604038.system.js → p-ee7bc1c7.system.js} +1 -1
- package/dist/mint-components/{p-bb9a9cf3.entry.js → p-ef6a3ff3.entry.js} +2 -2
- package/dist/mint-components/{p-25fd6ee0.system.entry.js → p-f04ce58d.system.entry.js} +1 -1
- package/dist/mint-components/p-f064bf28.entry.js +1 -0
- package/dist/mint-components/p-f21aa0bd.entry.js +1 -0
- package/dist/mint-components/{p-01be40a8.system.entry.js → p-f60d9f3e.system.entry.js} +1 -1
- package/dist/mint-components/{p-9df46d84.system.js → p-f63961b4.system.js} +1 -1
- package/dist/mint-components/{p-b953ae7f.js → p-f71cfd64.js} +1 -1
- package/dist/mint-components/{p-e3fc9e65.system.entry.js → p-f7b5c0ac.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-5508ac9d.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-b1f730bd.js +0 -1
- package/dist/mint-components/p-2108937d.js +0 -1
- package/dist/mint-components/p-37678b57.entry.js +0 -1
- package/dist/mint-components/p-3c02b80b.entry.js +0 -1
- package/dist/mint-components/p-5da880d1.js +0 -1
- package/dist/mint-components/p-6a15c0c5.system.entry.js +0 -1
- package/dist/mint-components/p-79787bf3.system.js +0 -1
- package/dist/mint-components/p-844b9513.entry.js +0 -1
- package/dist/mint-components/p-87a6bfa4.entry.js +0 -1
- package/dist/mint-components/p-99ec46fe.js +0 -1
- package/dist/mint-components/p-a984852e.entry.js +0 -1
- package/dist/mint-components/p-ad1fb768.entry.js +0 -1
- package/dist/mint-components/p-b2f447a6.entry.js +0 -1
- package/dist/mint-components/p-c0e7d16e.system.js +0 -1
- package/dist/mint-components/p-c32a8733.system.js +0 -1
- package/dist/mint-components/p-e61bedb4.system.entry.js +0 -1
- package/dist/mint-components/p-fd8addea.system.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-41c62fef.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-c5577dd7.system.js"],(function(t){"use strict";var n,e,s,o,i;return{setters:[function(t){n=t.r;e=t.h},function(t){s=t.m},function(t){o=t.g},function(){},function(){},function(t){i=t.C}],execute:function(){var c=t("sqm_close_button",function(){function t(t){n(this,t);this.color="#000000";s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t;var n=o();var s=n.type==="SquatchJS2"&&((t=n.widgetIdent)===null||t===void 0?void 0:t.engagementMedium)==="POPUP";if(!s)return e("div",{style:{display:"none"}});var c=function(){var t,e;if(n.type==="SquatchJS2"){(e=(t=n.api).close)===null||e===void 0?void 0:e.call(t)}};return e(i,{onClick:c,color:this.color})};return t}())}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s,c as e}from"./p-64c3217a.js";import{f as r,m as a}from"./p-901f5b80.js";import{H as i,v as o,h as n,i as c}from"./p-8b28c511.js";const l=class{constructor(s){t(this,s),this.ignored=!0,this.redirectTo="/",this.requireEmailVerification=!1,this.redirectToUnverified="/emailVerification",a(this)}disconnectedCallback(){}render(){const t=!!c()||function({requireEmailVerification:t,redirectTo:s,redirectToUnverified:e}){var a;const c=i(),l=!!(null==c?void 0:c.jwt),h=null===(a=null==c?void 0:c.managedIdentity)||void 0===a?void 0:a.emailVerified,{pathname:m,search:d}=o(),p=new URLSearchParams;return p.append("nextPage",`${m}${d}`),r((()=>l?t&&!h?n.push({pathname:e||s,search:"?"+p.toString()}):void 0:n.push({pathname:s,search:"?"+p.toString()})),[]),!!c}(this);return s(e,{style:{display:t?"contents":"none"}},s("slot",null))}};export{l as sqm_portal_protected_route}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s}from"./p-64c3217a.js";import{m as t}from"./p-901f5b80.js";import{e as o,
|
|
1
|
+
import{r as s}from"./p-64c3217a.js";import{m as t}from"./p-901f5b80.js";import{e as o,h as a,i as r}from"./p-8b28c511.js";const i=class{constructor(o){s(this,o),this.ignored=!0,this.nextPage="/",t(this)}disconnectedCallback(){}render(){r()||function({nextPage:s}){o(void 0),a.push({pathname:s,search:""})}(this)}};export{i as sqm_portal_logout}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as r}from"./p-901f5b80.js";import{u as o}from"./p-8b28c511.js";import{j as a}from"./p-e7e129ac.js";import{u as t}from"./p-878daf52.js";function i(i){const n=new URLSearchParams(window.location.search),s=null==n?void 0:n.get("_saasquatch"),{registrationFormState:l,setRegistrationFormState:e}=t(),[d,{loading:c}]=o(),[u,m]=r("");return{states:{loading:c,error:null==l?void 0:l.error,registrationFormState:l},callbacks:{submit:async r=>{var o;m("");let t=r.target.getFormControls(),n=r.detail.formData,c={};null==t||t.map((r=>{if(!r.name)return;const o=r.name,t=r.value;if(a.set(n,o,t),r.required&&!t&&a.set(c,o,i.requiredFieldErrorMessage),"function"==typeof r.validationError){const i=(0,r.validationError)({control:r,key:o,value:t});i&&a.set(c,o,i)}}));const u={firstName:n.firstName,lastName:n.lastName,email:n.email,...(null==i?void 0:i.includeCookies)&&s?{cookies:s}:{}};try{const r=await d(u);if(r instanceof Error)throw r;e({...l,loading:!1,error:"",validationErrors:{}})}catch(r){(null===(o=null==r?void 0:r.message)||void 0===o?void 0:o.includes("is not valid"))?e({...l,loading:!1,error:"",validationErrors:{email:i.invalidEmailErrorMessage}}):e("fraud_error"===(null==r?void 0:r.name)?{...l,loading:!1,error:"FRAUD"}:{...l,loading:!1,error:i.networkErrorMessage,validationErrors:{}})}}}}}export{i as u}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,r,o){function s(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function a(e){try{d(o.next(e))}catch(e){n(e)}}function i(e){try{d(o["throw"](e))}catch(e){n(e)}}function d(e){e.done?r(e.value):s(e.value).then(a,i)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,s,n,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(e){return function(t){return d([e,t])}}function d(a){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,s&&(n=a[0]&2?s["return"]:a[0]?s["throw"]||((n=s["return"])&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;if(s=0,n)a=[a[0]&2,n.value];switch(a[0]){case 0:case 1:n=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;s=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1];n=a;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(a);break}if(n[2])r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];s=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,o){function s(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function a(e){try{d(o.next(e))}catch(e){n(e)}}function i(e){try{d(o["throw"](e))}catch(e){n(e)}}function d(e){e.done?r(e.value):s(e.value).then(a,i)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,s,n,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(e){return function(t){return d([e,t])}}function d(a){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,s&&(n=a[0]&2?s["return"]:a[0]?s["throw"]||((n=s["return"])&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;if(s=0,n)a=[a[0]&2,n.value];switch(a[0]){case 0:case 1:n=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;s=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1];n=a;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(a);break}if(n[2])r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];s=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-41c62fef.system.js","./p-b2295bc5.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-4f775e84.system.js","./p-56525896.system.js"],(function(e){"use strict";var t,r,o,s,n,a,i,d,u,c,l,f,w;return{setters:[function(e){t=e.r;r=e.h},function(e){o=e.j;s=e.f;n=e.m},function(e){a=e.j;i=e.N;d=e.h;u=e.i},function(e){c=e.j},function(e){l=e.c},function(){},function(){},function(e){f=e.s},function(){},function(e){w=e.P}],execute:function(){function v(e){var t=this;var r,n,u,l,w,v,h,p,b,m;var P=o(false),g=P[0],y=P[1];var x=o(""),_=x[0],j=x[1];var C=a(),T=C[0],k=C[1];var L=i(),B=L[0],F=L[1];var H=new URLSearchParams(d.location.search);var R=H.get("oobCode");H.delete("oobCode");var N=H.get("nextPage");var S=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,T({oobCode:R})];case 1:e=t.sent();if(e instanceof Error){j("Network request failed.")}return[2]}}))}))};s((function(){S()}),[]);var E=function(e){return __awaiter(t,void 0,void 0,(function(){var t,r,o;return __generator(this,(function(s){switch(s.label){case 0:j("");t=e.detail.formData;t===null||t===void 0?void 0:t.forEach((function(e,r){c.set(t,r,e)}));r={oobCode:R,password:t.password};if(t.password!==t.confirmPassword){j("Passwords do not match.");return[2]}return[4,B(r)];case 1:o=s.sent();if(o instanceof Error){return[2,j("Network request failed.")]}if(o.resetManagedIdentityPassword){y(true);setTimeout((function(){V()}),5e3)}return[2]}}))}))};var V=function(){H.delete("nextPage");var t=f(N||e.nextPage);d.push(t.href)};var q=function(){d.push({pathname:e.failedPage,search:H.toString()&&"?"+H.toString()})};return{states:{loading:F.loading,reset:g,confirmPassword:e.confirmPassword,error:((w=(l=(u=(n=(r=F.errors)===null||r===void 0?void 0:r.response)===null||n===void 0?void 0:n.errors)===null||u===void 0?void 0:u[0])===null||l===void 0?void 0:l.extensions)===null||w===void 0?void 0:w.message)||((b=(p=(h=(v=F.errors)===null||v===void 0?void 0:v.response)===null||h===void 0?void 0:h.errors)===null||p===void 0?void 0:p[0])===null||b===void 0?void 0:b.message)||_,oobCodeValidating:k.loading,oobCodeValid:(m=k.data)===null||m===void 0?void 0:m.verifyManagedIdentityPasswordResetCode.success,content:{passwordResetHeader:e.passwordResetHeader,resetPasswordHeader:e.resetPasswordHeader,continueButtonText:e.continueButtonText,resetPasswordButtonText:e.resetPasswordButtonText,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,passwordFieldLabel:e.passwordFieldLabel}},callbacks:{submit:E,failed:q,gotoNextPage:V}}}var h=e("sqm_portal_reset_password",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";this.confirmPassword=false;this.resetPasswordHeader="Reset your password";this.passwordResetHeader="Password reset";this.resetPasswordButtonText="Reset Password";this.continueButtonText="Continue";this.confirmPasswordFieldLabel="Confirm Password";this.passwordFieldLabel="New Password";n(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=u()?p(this):v(this),t=e.states,o=e.callbacks;return r(w,{states:t,callbacks:o})};return e}());function p(e){var t=this;return l({states:{error:"",loading:false,reset:false,confirmPassword:e.confirmPassword,oobCodeValidating:false,oobCodeValid:true,content:{passwordResetHeader:e.passwordResetHeader,resetPasswordHeader:e.resetPasswordHeader,continueButtonText:e.continueButtonText,resetPasswordButtonText:e.resetPasswordButtonText,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,passwordFieldLabel:e.passwordFieldLabel}},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))},failed:function(){},gotoNextPage:function(){}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-41c62fef.system.js"],(function(e){"use strict";var t,r,i,n,a,o,s,c,u;return{setters:[function(e){t=e.r;r=e.h;i=e.c},function(e){n=e.f;a=e.m},function(e){o=e.H;s=e.v;c=e.h;u=e.i}],execute:function(){function f(e){var t=e.requireEmailVerification,r=e.redirectTo,i=e.redirectToUnverified;var a;var u=o();var f=!!(u===null||u===void 0?void 0:u.jwt);var d=(a=u===null||u===void 0?void 0:u.managedIdentity)===null||a===void 0?void 0:a.emailVerified;var l=s(),v=l.pathname,h=l.search;var p=new URLSearchParams;p.append("nextPage",""+v+h);n((function(){if(!f){return c.push({pathname:r,search:"?"+p.toString()})}if(t&&!d){return c.push({pathname:i||r,search:"?"+p.toString()})}}),[]);return!!u}var d=e("sqm_portal_protected_route",function(){function e(e){t(this,e);this.ignored=true;this.redirectTo="/";this.requireEmailVerification=false;this.redirectToUnverified="/emailVerification";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=u()?l():f(this);return r(i,{style:{display:e?"contents":"none"}},r("slot",null))};return e}());function l(e){return true}}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t}from"./p-64c3217a.js";import{j as e,m as o}from"./p-901f5b80.js";import{r as a,h as r,i}from"./p-8b28c511.js";import{j as l}from"./p-e7e129ac.js";import{c as n}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import"./p-5d0c9424.js";import{P as c}from"./p-a217deee.js";const d=class{constructor(t){s(this,t),this.ignored=!0,this.redirectPath="/resetPassword",this.emailLabel="Email",this.submitLabel="Request Password Reset",this.loginPath="/login",this.headerText="Enter your email below to receive a password reset link.",this.loginText="Sign In",o(this)}disconnectedCallback(){}render(){const{states:s,callbacks:o}=i()?n({states:{error:"",loading:!1,success:!1},callbacks:{submit:async()=>{}}},this.demoData||{},{arrayMerge:(s,t)=>t}):function(s){var t,o,i,n,c,d,m;const[u,p]=e(!1),[v,h]=e(""),[b,{loading:g,errors:f}]=a(),j=new URLSearchParams(r.location.search).get("nextPage");return{states:{loading:g,error:(null===(n=null===(i=null===(o=null===(t=null==f?void 0:f.response)||void 0===t?void 0:t.errors)||void 0===o?void 0:o[0])||void 0===i?void 0:i.extensions)||void 0===n?void 0:n.message)||(null===(m=null===(d=null===(c=null==f?void 0:f.response)||void 0===c?void 0:c.errors)||void 0===d?void 0:d[0])||void 0===m?void 0:m.message)||v,success:u,loginPath:s.loginPath,headerText:s.headerText,loginText:s.loginText},callbacks:{submit:async t=>{var e;h(""),p(!1);let o=t.detail.formData;null==o||o.forEach(((s,t)=>{l.set(o,t,s)}));const a={email:o.email,urlParams:j?{nextPage:j}:null,redirectPath:s.redirectPath},r=await b(a);r instanceof Error?r.message&&h("Network request failed."):(null===(e=r.requestManagedIdentityPasswordResetEmail)||void 0===e?void 0:e.success)&&p(!0)}}}}(this),d={secondaryButton:t("slot",{name:"secondaryButton"},t("sl-button",{type:"text",disabled:s.loading,onClick:()=>r.push(s.loginPath)},"Sign In")),messageSlot:t("slot",{name:"messageSlot"},"Enter your email below to receive a password reset link."),emailLabel:this.emailLabel,submitLabel:this.submitLabel};return t(c,{states:s,callbacks:o,content:d})}};export{d as sqm_portal_forgot_password}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-3cc28285.system.js","./p-41c62fef.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.f},function(e){n=e.V;r=e.a}],execute:function(){e({a:s,u:c});var u="sqm:request-rerender";function s(e){var r=n();t((function(){r.dispatchEvent(new CustomEvent(u,{detail:true,bubbles:true,composed:true}))}),e)}function c(){var e=n();var s=r(),c=s[0],i=s[1];t((function(){var t=function(e){e.stopPropagation();i()};e.addEventListener(u,t);return function(){e.removeEventListener(u,t)}}),[]);return c}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(e){a(e)}}function s(e){try{u(i["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):r(e.value).then(o,s)}u((i=i.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:[]},i,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];r=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(e){a(e)}}function s(e){try{u(i["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):r(e.value).then(o,s)}u((i=i.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:[]},i,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];r=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-9f3a0252.system.js","./p-41c62fef.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-4f775e84.system.js","./p-a372d9cf.system.js"],(function(e){"use strict";var t,n,i,r,a,o,s,u,c,l,f,v,d,m;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.j;r=e.k;a=e.f;o=e.m},function(){},function(e){s=e.o;u=e.K;c=e.H;l=e.h;f=e.f;v=e.i},function(e){d=e.c},function(){},function(){},function(){},function(e){m=e.P}],execute:function(){function h(e){var t=this;var n,o,v,d,m,h,g,y,p;var b=s(),w=b[0],_=b[1],M=_.loading,x=_.data,S=_.errors;var k=u(),E=k[0],I=k[1],P=I.data,V=I.loading;var j=c();var L=(n=j===null||j===void 0?void 0:j.managedIdentity)===null||n===void 0?void 0:n.email;var H=new URLSearchParams(l.location.search);var T=H.get("nextPage");var B=i(false),q=B[0],C=B[1];var R=i(""),A=R[0],D=R[1];var G=i(10),K=G[0],N=G[1];var U=r(undefined);var z=r(undefined);var F=function(){return __awaiter(t,void 0,void 0,(function(){var t,n,i,r,a;return __generator(this,(function(o){switch(o.label){case 0:if(!L)return[2];D("");C(false);n=T?{nextPage:T}:null;i=e.redirectPath;r={email:L,urlParams:n,redirectPath:i};return[4,w(r)];case 1:a=o.sent();if(a instanceof Error){if(a.message)D("Network request failed.");return[2]}if((t=a.requestManagedIdentityVerificationEmail)===null||t===void 0?void 0:t.success)C(true);return[2]}}))}))};function J(){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){switch(i.label){case 0:return[4,E()];case 1:n=i.sent();if((t=n===null||n===void 0?void 0:n.managedIdentitySession)===null||t===void 0?void 0:t.emailVerified){clearInterval(U.current);return[2,l.push({pathname:e.redirectPath,search:H.toString()&&"?"+H.toString()})]}W(10);return[2]}}))}))}var O=function(e){if(e===void 0){e=1e4}return setInterval(J,e)};var Q=function(e){return setInterval((function(){return N(e)}),1e3)};function W(e){clearInterval(z.current);clearInterval(U.current);if(document.visibilityState==="hidden")return;if(e)N(e);var t=K||10;z.current=Q(e-1||t-1);U.current=O(e*1e3||t*1e3)}var X=f((function(){return W()}),[K]);a((function(){if(!U.current){J();U.current=O()}return function(){clearInterval(U.current)}}),[]);a((function(){if(K>0){clearInterval(z.current);z.current=Q(K-1)}document.addEventListener("visibilitychange",X);return function(){clearInterval(z.current);document.removeEventListener("visibilitychange",X)}}),[K]);return{states:{loading:M,error:((m=(d=(v=(o=S===null||S===void 0?void 0:S.response)===null||o===void 0?void 0:o.errors)===null||v===void 0?void 0:v[0])===null||d===void 0?void 0:d.extensions)===null||m===void 0?void 0:m.message)||((y=(g=(h=S===null||S===void 0?void 0:S.response)===null||h===void 0?void 0:h.errors)===null||g===void 0?void 0:g[0])===null||y===void 0?void 0:y.message)||A,success:q,loadingVerification:V,isVerified:!!((p=P===null||P===void 0?void 0:P.managedIdentitySession)===null||p===void 0?void 0:p.emailVerified),countdown:K},callbacks:{submit:F},content:{email:L,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage}}}var g=e("sqm_portal_email_verification",function(){function e(e){t(this,e);this.ignored=true;this.redirectPath="/verifyEmail";this.emailVerificationHeader="Verify your email";this.resendEmailButtonText="Re-send Email";this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.";this.verificationStatusMessage="Checking verification status in {countdown}";this.verificationLoadingMessage="Checking verification status";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=v()?y(this):h(this),t=e.states,i=e.callbacks,r=e.content;return n(m,{states:t,callbacks:i,content:r})};return e}());function y(e){var t=this;return d({states:{error:"",loading:false,success:false,countdown:10},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}},content:{email:"test@example.com",verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-64c3217a.js";import{m as r}from"./p-901f5b80.js";import{
|
|
1
|
+
import{r as t,h as i}from"./p-64c3217a.js";import{m as r}from"./p-901f5b80.js";import{H as s,e as o,i as e}from"./p-8b28c511.js";import{c}from"./p-c1086930.js";import"./p-cef45012.js";import{g as n}from"./p-9ec99ced.js";import{L as a}from"./p-9907bc8a.js";const m=class{constructor(i){t(this,i),this.userIdentificationText="{email}",this.switchUserText="not you?",r(this)}disconnectedCallback(){}render(){const t=e()?function(t){return c({onSwitchClick:()=>o(void 0),filledInEmailText:"john@example.com",switchUserText:t.switchUserText},t.demoData||{},{arrayMerge:(t,i)=>i})}(this):function(t){var i;const r=s();return{onSwitchClick:()=>{o(void 0)},filledInEmailText:null===(i=t.userIdentificationText)||void 0===i?void 0:i.replace("{email}",(null==r?void 0:r.id)||"Error fetching email"),...t}}(n(this));return i(a,Object.assign({},t,{userIdentificationText:this.userIdentificationText,switchUserText:this.switchUserText}))}};export{m as sqm_logout_current_user}
|
|
@@ -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 a in s)if(Object.prototype.hasOwnProperty.call(s,a))t[a]=s[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-
|
|
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-ff17b3a4.system.js","./p-3cc28285.system.js","./p-41c62fef.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.m},function(t){o=t.T},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://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget",target:"_blank"},"Powered By"):""))};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"})},data:{},callbacks:{closePopup:e}}}var u=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";var l=t("sqm_popup_container",function(){function t(t){n(this,t);a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r(this);return s(c,Object.assign({},i(t)))};return t}());l.style=u}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as e}from"./p-64c3217a.js";import{b as a,i as t,f as r}from"./p-901f5b80.js";import{d,
|
|
1
|
+
import{h as e}from"./p-64c3217a.js";import{b as a,i as t,f as r}from"./p-901f5b80.js";import{d,H as l,W as o,O as n,b as s,y as i}from"./p-8b28c511.js";import{u}from"./p-831d1332.js";import{u as m}from"./p-ce748fab.js";import{l as c}from"./p-d576140e.js";const f=(e=4)=>({data:[...Array(e)].map((()=>h()))}),p=["POINT","TICKET","GIFT"],R=["Points","Tickets","Gifts"],E=["AVAILABLE","PENDING","CANCELLED","EXPIRED","REDEEMED"],y=["US_TAX","SCHEDULED","UNHANDLED_ERROR"],g=["PENDING","IN_PROGRESS","FAILED","UNCLAIMED","ONHOLD","REFUNDED","RETURNED","REVERSED","BLOCKED","DENIED"],v=()=>{var e,a;const t=Math.floor(10*Math.random())>=5?null===(e=c.DateTime.now())||void 0===e?void 0:e.minus({day:1}):null,r=Math.floor(10*Math.random())>=5?null===(a=c.DateTime.now())||void 0===a?void 0:a.minus({day:1}):null,d=function(e){if(e)return"SUCCESS";const a=Math.floor(10*Math.random());return g[a]}(t);return{status:"DENIED"===d?"WARN":t?"SUCCESS":Math.floor(10*Math.random())>=8?"ERROR":"SUCCESS",customMeta:{datePaidOut:t,dateLastAttempted:r,dateFirstAttempted:r,rawPayPalInfo:{transaction_status:d}}}},h=()=>{let e,a,t,r,d=!1,l=0;const o=c.DateTime.now(),n=Math.floor(3*Math.random()),s=E[Math.floor(5*Math.random())],i=p[n],u=R[n],m=Math.floor(100*Math.random())+2;if("AVAILABLE"===s)l=Math.floor(Math.random()*m),r=Math.floor(10*Math.random())<3?o.plus({days:7}).toMillis():null;else if("EXPIRED"===s)d=!0,l=Math.floor(Math.random()*m),r=o.minus({days:1}).toMillis();else if("PENDING"===s){const t=y[Math.floor(3*Math.random())];e=[t],"SCHEDULED"===t&&(a=o.plus({days:6}).toMillis())}else"REDEEMED"===s?d=!0:(d=!0,t=o.minus({days:2}).toMillis());const f=Math.floor(3*Math.random());return{id:"61f7878e096c9265de88b46f",type:"CREDIT",value:m,unit:i,name:null,dateGiven:o.minus({days:3}).toMillis(),dateExpires:r,dateCancelled:t,dateRedeemed:"REDEEMED"===s?o.plus({days:2}).toMillis():null,dateScheduledFor:a,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:`${m} ${u}`,prettyValueNumber:`${m}`,prettyAvailableNumber:d?"0":""+(m-l),prettyRedeemedNumber:d&&!l?"0":`${l}`,programId:1===f?"program-id":null,program:{name:"My Program"},meta:{...v()},statuses:[s],pendingReasons:e,globalRewardKey:null,programRewardKey:null,rewardSource:1===f?"AUTOMATED":"MANUAL",prettyRedeemedCredit:`${l} ${u}`,prettyAssignedCredit:`${m} ${u}`,prettyAvailableValue:d?`0 ${u}`:`${m-l} ${u}`,exchangedRewardRedemptionTransaction:2===f?{id:"61f7878e096c9265de88b414",creditRedeemed:50,prettyRedeemedCredit:"50 Tokens",unit:"TOKEN",dateRedeemed:1643612046258}:null,referral:null,rewardRedemptionTransactions:{data:[]}}},M=a("sq:useReferralTable"),w=d.gql`
|
|
2
2
|
query getReferrals(
|
|
3
3
|
$programId: ID
|
|
4
4
|
$rewardFilter: RewardFilterInput
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,c as t,r as a}from"./p-64c3217a.js";import{m as o}from"./p-901f5b80.js";import{T as c}from"./p-
|
|
1
|
+
import{h as s,c as t,r as a}from"./p-64c3217a.js";import{m as o}from"./p-901f5b80.js";import{T as c}from"./p-8b28c511.js";import{g as e}from"./p-9ec99ced.js";const r=a=>{const{states:o,callbacks:c}=a,{styles:e}=o;return s(t,{class:"squatch-container"},s("div",{style:{padding:a.states.styles.padding},part:"sqm-base"},e.closeButton&&s("span",{part:"sqm-close-button",class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:()=>c.closePopup()},e.closeButtonText),s("slot",null),e.poweredBy?s("a",{class:"sqh-attribution",href:"https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget",target:"_blank"},"Powered By"):""))},n=class{constructor(s){a(this,s),o(this)}disconnectedCallback(){}render(){const t=e(this);return s(r,Object.assign({},function(s){const t=c(),a=s.popupPadding?"none"===s.popupPadding?"0":`var(--sl-spacing-${s.popupPadding})`:"var(--sl-spacing-medium)",o=s.embedPadding?"none"===s.embedPadding?"0":`var(--sl-spacing-${s.embedPadding})`:"0",e="POPUP"===c()?a:o;return{states:{showCloseButton:s.closeButton&&"POPUP"===t,styles:{...s,padding:e,closeButtonText:s.closeButtonText?s.closeButtonText:"X"}},data:{},callbacks:{closePopup:function(){var s;"POPUP"===c()&&(null===(s=window.frameElement.squatchJsApi)||void 0===s||s.close())}}}}(t)))}};n.style=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";export{n as sqm_popup_container}
|