@saasquatch/mint-components 1.10.0-1 → 1.10.1-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.
Files changed (39) hide show
  1. package/dist/cjs/{email-registration-view-5170d9f1.js → email-registration-view-248652bb.js} +1 -1
  2. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +1 -1
  3. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +8 -9
  4. package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  6. package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +8 -9
  7. package/dist/collection/components/sqm-share-button/sqm-share-button.js +0 -1
  8. package/dist/collection/components/views/email-registration-view.js +1 -1
  9. package/dist/esm/{email-registration-view-07d80492.js → email-registration-view-a89a88bf.js} +1 -1
  10. package/dist/esm/sqm-instant-access-registration.entry.js +1 -1
  11. package/dist/esm/sqm-logout-current-user.entry.js +8 -9
  12. package/dist/esm/sqm-referred-registration.entry.js +1 -1
  13. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  14. package/dist/esm-es5/email-registration-view-a89a88bf.js +1 -0
  15. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  16. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  17. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  18. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  19. package/dist/mint-components/mint-components.esm.js +1 -1
  20. package/dist/mint-components/p-1d09158e.system.entry.js +1 -0
  21. package/dist/mint-components/p-37c94a2f.entry.js +11 -0
  22. package/dist/mint-components/p-509e29e6.js +1 -0
  23. package/dist/mint-components/{p-57e4ef5f.entry.js → p-56f14840.entry.js} +1 -1
  24. package/dist/mint-components/{p-ebcec043.entry.js → p-7f088154.entry.js} +1 -1
  25. package/dist/mint-components/p-a51533cb.system.js +1 -0
  26. package/dist/mint-components/{p-4864ed8a.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
  27. package/dist/mint-components/{p-8fe21979.system.entry.js → p-be4b748a.system.entry.js} +1 -1
  28. package/dist/mint-components/{p-185f03b1.entry.js → p-bf723ae9.entry.js} +1 -1
  29. package/dist/mint-components/p-ed17e637.system.js +1 -1
  30. package/dist/mint-components/{p-ef200920.system.entry.js → p-f1a1e7f3.system.entry.js} +1 -1
  31. package/docs/docs.docx +0 -0
  32. package/package.json +1 -1
  33. package/dist/esm-es5/email-registration-view-07d80492.js +0 -1
  34. package/dist/mint-components/p-007383e1.entry.js +0 -9
  35. package/dist/mint-components/p-10036f16.js +0 -1
  36. package/dist/mint-components/p-6bf41e0d.system.js +0 -1
  37. package/dist/mint-components/p-f8f6c99d.system.entry.js +0 -1
  38. package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
  39. package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
@@ -45,7 +45,7 @@ function EmailRegistrationView(props) {
45
45
  index.h("div", { part: "erroralert-text" }, error)));
46
46
  };
47
47
  const emailValidationRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
48
- return (index.h("div", { class: sheet.classes.Wrapper, style: {
48
+ return (index.h("div", { part: "sqm-base", class: sheet.classes.Wrapper, style: {
49
49
  border: `${content.hideBorder ? "none" : "1px solid #eaeaea"}`,
50
50
  backgroundColor: content.backgroundColor,
51
51
  "padding-top": `var(--sl-spacing-${content.paddingTop})`,
@@ -9,7 +9,7 @@ require('./jsonpointer-11327262.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./mixins-fe9d4112.js');
11
11
  require('./JSS-8503a151.js');
12
- const emailRegistrationView = require('./email-registration-view-5170d9f1.js');
12
+ const emailRegistrationView = require('./email-registration-view-248652bb.js');
13
13
  require('./useRegistrationFormState-876ed65d.js');
14
14
  const useInstantAccessRegistration = require('./useInstantAccessRegistration-bbe746d1.js');
15
15
 
@@ -11,21 +11,20 @@ const utils = require('./utils-6847bc06.js');
11
11
  const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-c9f18d96.js');
12
12
 
13
13
  const GET_USER_DETAILS = index_module.dist.gql `
14
- query getUserDetails($id: String!, $accountId: String!) {
15
- user(id: $id, accountId: $accountId) {
16
- id
17
- accountId
18
- email
14
+ query getUserDetails {
15
+ viewer {
16
+ ... on User {
17
+ id
18
+ accountId
19
+ email
20
+ }
19
21
  }
20
22
  }
21
23
  `;
22
24
  function useLogoutCurrentUser(props) {
23
25
  var _a, _b;
24
26
  const user = index_module.Q();
25
- const { loading, data } = index_module.yn(GET_USER_DETAILS, {
26
- id: user === null || user === void 0 ? void 0 : user.id,
27
- accountId: user === null || user === void 0 ? void 0 : user.accountId,
28
- }, !user);
27
+ const { loading, data } = index_module.yn(GET_USER_DETAILS, {}, !user);
29
28
  const onSwitchClick = () => {
30
29
  index_module.setUserIdentity(undefined);
31
30
  };
@@ -9,7 +9,7 @@ require('./jsonpointer-11327262.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./mixins-fe9d4112.js');
11
11
  require('./JSS-8503a151.js');
12
- const emailRegistrationView = require('./email-registration-view-5170d9f1.js');
12
+ const emailRegistrationView = require('./email-registration-view-248652bb.js');
13
13
  require('./useRegistrationFormState-876ed65d.js');
14
14
  const useInstantAccessRegistration = require('./useInstantAccessRegistration-bbe746d1.js');
15
15
 
@@ -17,7 +17,7 @@ require('./sqm-text-span-view-e1cd9bd3.js');
17
17
  const sqmAssetCardView = require('./sqm-asset-card-view-a0e33f21.js');
18
18
  const sqmCloseButtonView = require('./sqm-close-button-view-fd6e8f60.js');
19
19
  require('./index-8c6255f5.js');
20
- const emailRegistrationView = require('./email-registration-view-5170d9f1.js');
20
+ const emailRegistrationView = require('./email-registration-view-248652bb.js');
21
21
  const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
22
22
  const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-c9f18d96.js');
23
23
  const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-dd53f947.js');
@@ -1,21 +1,20 @@
1
1
  import { setUserIdentity, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
2
2
  import { gql } from "graphql-request";
3
3
  const GET_USER_DETAILS = gql `
4
- query getUserDetails($id: String!, $accountId: String!) {
5
- user(id: $id, accountId: $accountId) {
6
- id
7
- accountId
8
- email
4
+ query getUserDetails {
5
+ viewer {
6
+ ... on User {
7
+ id
8
+ accountId
9
+ email
10
+ }
9
11
  }
10
12
  }
11
13
  `;
12
14
  export function useLogoutCurrentUser(props) {
13
15
  var _a, _b;
14
16
  const user = useUserIdentity();
15
- const { loading, data } = useQuery(GET_USER_DETAILS, {
16
- id: user === null || user === void 0 ? void 0 : user.id,
17
- accountId: user === null || user === void 0 ? void 0 : user.accountId,
18
- }, !user);
17
+ const { loading, data } = useQuery(GET_USER_DETAILS, {}, !user);
19
18
  const onSwitchClick = () => {
20
19
  setUserIdentity(undefined);
21
20
  };
@@ -5,7 +5,6 @@ import { ShareButtonView } from "./sqm-share-button-view";
5
5
  import { useShareButton } from "./useShareButton";
6
6
  import { getProps } from "../../utils/utils";
7
7
  import deepmerge from "deepmerge";
8
- // ZH TODO: What is the correct copy for share buttons here ? There are some differences in our widget templates
9
8
  /**
10
9
  * @uiName Share Button
11
10
  * @slots [{"name":"", "title":"Button Content"}]
@@ -42,7 +42,7 @@ export function EmailRegistrationView(props) {
42
42
  h("div", { part: "erroralert-text" }, error)));
43
43
  };
44
44
  const emailValidationRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
45
- return (h("div", { class: sheet.classes.Wrapper, style: {
45
+ return (h("div", { part: "sqm-base", class: sheet.classes.Wrapper, style: {
46
46
  border: `${content.hideBorder ? "none" : "1px solid #eaeaea"}`,
47
47
  backgroundColor: content.backgroundColor,
48
48
  "padding-top": `var(--sl-spacing-${content.paddingTop})`,
@@ -43,7 +43,7 @@ function EmailRegistrationView(props) {
43
43
  h("div", { part: "erroralert-text" }, error)));
44
44
  };
45
45
  const emailValidationRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
46
- return (h("div", { class: sheet.classes.Wrapper, style: {
46
+ return (h("div", { part: "sqm-base", class: sheet.classes.Wrapper, style: {
47
47
  border: `${content.hideBorder ? "none" : "1px solid #eaeaea"}`,
48
48
  backgroundColor: content.backgroundColor,
49
49
  "padding-top": `var(--sl-spacing-${content.paddingTop})`,
@@ -5,7 +5,7 @@ import './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
- import { E as EmailRegistrationView } from './email-registration-view-07d80492.js';
8
+ import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
9
9
  import './useRegistrationFormState-9fc1ac80.js';
10
10
  import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46b89952.js';
11
11
 
@@ -7,21 +7,20 @@ import { g as getProps } from './utils-334c1e34.js';
7
7
  import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-2c6122cd.js';
8
8
 
9
9
  const GET_USER_DETAILS = dist.gql `
10
- query getUserDetails($id: String!, $accountId: String!) {
11
- user(id: $id, accountId: $accountId) {
12
- id
13
- accountId
14
- email
10
+ query getUserDetails {
11
+ viewer {
12
+ ... on User {
13
+ id
14
+ accountId
15
+ email
16
+ }
15
17
  }
16
18
  }
17
19
  `;
18
20
  function useLogoutCurrentUser(props) {
19
21
  var _a, _b;
20
22
  const user = Q();
21
- const { loading, data } = yn(GET_USER_DETAILS, {
22
- id: user === null || user === void 0 ? void 0 : user.id,
23
- accountId: user === null || user === void 0 ? void 0 : user.accountId,
24
- }, !user);
23
+ const { loading, data } = yn(GET_USER_DETAILS, {}, !user);
25
24
  const onSwitchClick = () => {
26
25
  setUserIdentity(undefined);
27
26
  };
@@ -5,7 +5,7 @@ import './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
- import { E as EmailRegistrationView } from './email-registration-view-07d80492.js';
8
+ import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
9
9
  import './useRegistrationFormState-9fc1ac80.js';
10
10
  import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46b89952.js';
11
11
 
@@ -13,7 +13,7 @@ import './sqm-text-span-view-8d140661.js';
13
13
  import { A as AssetCardView } from './sqm-asset-card-view-9d93fbdd.js';
14
14
  import { C as CloseButtonView } from './sqm-close-button-view-dc65b4e3.js';
15
15
  import './index-ffa26b43.js';
16
- import { E as EmailRegistrationView } from './email-registration-view-07d80492.js';
16
+ import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
17
17
  import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
18
18
  import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-2c6122cd.js';
19
19
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-414bcb19.js';
@@ -0,0 +1 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var a,r=1,t=arguments.length;r<t;r++){a=arguments[r];for(var s in a)if(Object.prototype.hasOwnProperty.call(a,s))e[s]=a[s]}return e};return __assign.apply(this,arguments)};import{h}from"./index-17b4da69.js";import{A as AuthWrapper,g as gap,a as AuthColumn,b as AuthButtonsContainer,E as ErrorStyles}from"./mixins-f60a614c.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";var style={Wrapper:__assign(__assign({},AuthWrapper),gap({direction:"column",size:"var(--sl-spacing-small)"})),Column:AuthColumn,ForgotButtonContainer:{display:"inline",cursor:"pointer","font-size":"13px","font-weight":"600",color:"#AAAAAA",margin:"0"},ButtonsContainer:AuthButtonsContainer,ErrorStyle:ErrorStyles};var vanillaStyle="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\na svg {\n margin: 0 auto;\n display: block;\n}\n";var sheet=createStyleSheet(style);var styleString=sheet.toString();function EmailRegistrationView(e){var a,r,t,s;var i=e.states,n=e.callbacks,l=e.content;var o=function(e,a,r){return e==="FRAUD"?h("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},h("b",null,r),h("div",{part:"erroralert-text"},a)):h("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},h("div",{part:"erroralert-text"},e))};var p=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return h("div",{part:"sqm-base",class:sheet.classes.Wrapper,style:{border:""+(l.hideBorder?"none":"1px solid #eaeaea"),backgroundColor:l.backgroundColor,"padding-top":"var(--sl-spacing-"+l.paddingTop+")","padding-right":"var(--sl-spacing-"+l.paddingRight+")","padding-bottom":"var(--sl-spacing-"+l.paddingBottom+")","padding-left":"var(--sl-spacing-"+l.paddingLeft+")"}},h("style",{type:"text/css"},vanillaStyle,styleString),l.topSlot,h("sl-form",{class:sheet.classes.Column,"onSl-submit":n.submit},e.states.error&&o(e.states.error,e.content.fraudErrorMessage,e.content.fraudErrorMessageTitle),l.includeName&&h("sl-input",{exportparts:"label: input-label, base: input-base",type:"name",name:"/firstName",label:l.firstNameLabel||"First Name",disabled:i.loading}),l.includeName&&h("sl-input",{exportparts:"label: input-label, base: input-base",type:"name",name:"/lastName",label:l.lastNameLabel||"Last Name",disabled:i.loading}),h("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"email",name:"/email",label:l.emailLabel||"Email",disabled:i.loading,required:true,validationError:function(e){var a=e.value;if(!a){return l.requiredFieldErrorMessage}if(!a.match(p)){return l.invalidEmailErrorMessage}}},((r=(a=i.registrationFormState)===null||a===void 0?void 0:a.validationErrors)===null||r===void 0?void 0:r.email)?{class:sheet.classes.ErrorStyle,helpText:((s=(t=i.registrationFormState)===null||t===void 0?void 0:t.validationErrors)===null||s===void 0?void 0:s.email)||l.requiredFieldErrorMessage}:[])),h("div",{class:sheet.classes.ButtonsContainer,style:{paddingTop:""+(l.includeName?"var(--sl-spacing-medium)":"0")}},h("sl-button",{submit:true,loading:i.loading,exportparts:"base: primarybutton-base",type:"primary"},l.registerLabel||"Registration"))),l.bottomSlot)}export{EmailRegistrationView as E};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,r){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function n(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r["throw"](e))}catch(e){s(e)}}function l(e){e.done?i(e.value):a(e.value).then(n,o)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(e){return function(t){return l([e,t])}}function l(n){if(r)throw new TypeError("Generator is already executing.");while(i)try{if(r=1,a&&(s=n[0]&2?a["return"]:n[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,n[1])).done)return s;if(a=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;a=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){i.label=n[1];break}if(n[0]===6&&i.label<s[1]){i.label=s[1];s=n;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(n);break}if(s[2])i.ops.pop();i.trys.pop();continue}n=t.call(e,i)}catch(e){n=[6,e];a=0}finally{r=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{n as h}from"./stencil-hooks.module-ac12ca1c.js";import{i as isDemo,b as setUserIdentity}from"./index.module-def4aec5.js";import"./jsonpointer-388a7082.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import"./JSS-67b5cff8.js";import{E as EmailRegistrationView}from"./email-registration-view-07d80492.js";import"./useRegistrationFormState-9fc1ac80.js";import{u as useInstantAccessRegistration}from"./useInstantAccessRegistration-46b89952.js";var InstantAccessRegistration=function(){function e(e){registerInstance(this,e);this.ignored=true;this.emailLabel="Email";this.firstNameLabel="First Name";this.lastNameLabel="Last Name";this.registerLabel="Start Referring";this.includeName=false;this.hideBorder=false;this.requiredFieldErrorMessage="Cannot be empty";this.invalidEmailErrorMessage="Please enter a valid email address";this.networkErrorMessage="There was a problem signing you in. Please wait a moment and try again. If this problem continues, contact Support for help resolving this issue.";this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";this.backgroundColor="#ffffff";this.includeCookies=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useRegistrationDemo(this):useInstantAccessRegistration(this),t=e.states,i=e.callbacks;var r={emailLabel:this.emailLabel,registerLabel:this.registerLabel,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel,includeName:this.includeName,hideBorder:this.hideBorder,invalidEmailErrorMessage:this.invalidEmailErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,paddingTop:this.paddingTop,paddingBottom:this.paddingBottom,paddingLeft:this.paddingLeft,paddingRight:this.paddingRight,backgroundColor:this.backgroundColor,topSlot:h$1("slot",{name:"top"}),bottomSlot:h$1("slot",{name:"bottom"})};return h$1(EmailRegistrationView,{states:t,callbacks:i,content:r})};return e}();function useRegistrationDemo(e){var t=this;var i=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){setUserIdentity({id:"referrer@example.com",accountId:"referrer@example.com",jwt:"eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg"});return[2]}))}))};return cjs({states:{loading:false,error:""},callbacks:{submit:i}},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{InstantAccessRegistration as sqm_instant_access_registration};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,r){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function n(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r["throw"](e))}catch(e){s(e)}}function l(e){e.done?i(e.value):a(e.value).then(n,o)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(e){return function(t){return l([e,t])}}function l(n){if(r)throw new TypeError("Generator is already executing.");while(i)try{if(r=1,a&&(s=n[0]&2?a["return"]:n[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,n[1])).done)return s;if(a=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;a=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){i.label=n[1];break}if(n[0]===6&&i.label<s[1]){i.label=s[1];s=n;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(n);break}if(s[2])i.ops.pop();i.trys.pop();continue}n=t.call(e,i)}catch(e){n=[6,e];a=0}finally{r=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{n as h}from"./stencil-hooks.module-ac12ca1c.js";import{i as isDemo,b as setUserIdentity}from"./index.module-def4aec5.js";import"./jsonpointer-388a7082.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import"./JSS-67b5cff8.js";import{E as EmailRegistrationView}from"./email-registration-view-a89a88bf.js";import"./useRegistrationFormState-9fc1ac80.js";import{u as useInstantAccessRegistration}from"./useInstantAccessRegistration-46b89952.js";var InstantAccessRegistration=function(){function e(e){registerInstance(this,e);this.ignored=true;this.emailLabel="Email";this.firstNameLabel="First Name";this.lastNameLabel="Last Name";this.registerLabel="Start Referring";this.includeName=false;this.hideBorder=false;this.requiredFieldErrorMessage="Cannot be empty";this.invalidEmailErrorMessage="Please enter a valid email address";this.networkErrorMessage="There was a problem signing you in. Please wait a moment and try again. If this problem continues, contact Support for help resolving this issue.";this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";this.backgroundColor="#ffffff";this.includeCookies=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useRegistrationDemo(this):useInstantAccessRegistration(this),t=e.states,i=e.callbacks;var r={emailLabel:this.emailLabel,registerLabel:this.registerLabel,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel,includeName:this.includeName,hideBorder:this.hideBorder,invalidEmailErrorMessage:this.invalidEmailErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,paddingTop:this.paddingTop,paddingBottom:this.paddingBottom,paddingLeft:this.paddingLeft,paddingRight:this.paddingRight,backgroundColor:this.backgroundColor,topSlot:h$1("slot",{name:"top"}),bottomSlot:h$1("slot",{name:"bottom"})};return h$1(EmailRegistrationView,{states:t,callbacks:i,content:r})};return e}();function useRegistrationDemo(e){var t=this;var i=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){setUserIdentity({id:"referrer@example.com",accountId:"referrer@example.com",jwt:"eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg"});return[2]}))}))};return cjs({states:{loading:false,error:""},callbacks:{submit:i}},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{InstantAccessRegistration as sqm_instant_access_registration};
@@ -1 +1 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]}return e};return __assign.apply(this,arguments)};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{n as h}from"./stencil-hooks.module-ac12ca1c.js";import{d as dist,Q,y as yn,b as setUserIdentity,i as isDemo}from"./index.module-def4aec5.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./JSS-67b5cff8.js";import{g as getProps}from"./utils-334c1e34.js";import{L as LogoutCurrentUserView}from"./sqm-logout-current-user-view-2c6122cd.js";var GET_USER_DETAILS=dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query getUserDetails($id: String!, $accountId: String!) {\n user(id: $id, accountId: $accountId) {\n id\n accountId\n email\n }\n }\n"],["\n query getUserDetails($id: String!, $accountId: String!) {\n user(id: $id, accountId: $accountId) {\n id\n accountId\n email\n }\n }\n"])));function useLogoutCurrentUser(e){var t,r;var i=Q();var n=yn(GET_USER_DETAILS,{id:i===null||i===void 0?void 0:i.id,accountId:i===null||i===void 0?void 0:i.accountId},!i),s=n.loading,o=n.data;var a=function(){setUserIdentity(undefined)};var c=(t=e.userIdentificationText)===null||t===void 0?void 0:t.replace("{email}",(r=o===null||o===void 0?void 0:o.user)===null||r===void 0?void 0:r.email);return __assign({loading:s,onSwitchClick:a,filledInEmailText:c},e)}var LogoutCurrentUser=function(){function e(e){registerInstance(this,e);this.userIdentificationText="{email}";this.switchUserText="not you?";this.emailErrorText="Error fetching email";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useDemoLogoutCurrentUser(this):useLogoutCurrentUser(getProps(this));var t={userIdentificationText:this.userIdentificationText,switchUserText:this.switchUserText,emailErrorText:this.emailErrorText};return h$1(LogoutCurrentUserView,Object.assign({},e,t))};return e}();function useDemoLogoutCurrentUser(e){return cjs({onSwitchClick:function(){return setUserIdentity(undefined)},filledInEmailText:"john@example.com",switchUserText:e.switchUserText,emailErrorText:e.emailErrorText,loading:false},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{LogoutCurrentUser as sqm_logout_current_user};var templateObject_1;
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{n as h}from"./stencil-hooks.module-ac12ca1c.js";import{d as dist,Q,y as yn,b as setUserIdentity,i as isDemo}from"./index.module-def4aec5.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./JSS-67b5cff8.js";import{g as getProps}from"./utils-334c1e34.js";import{L as LogoutCurrentUserView}from"./sqm-logout-current-user-view-2c6122cd.js";var GET_USER_DETAILS=dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query getUserDetails {\n viewer {\n ... on User {\n id\n accountId\n email\n }\n }\n }\n"],["\n query getUserDetails {\n viewer {\n ... on User {\n id\n accountId\n email\n }\n }\n }\n"])));function useLogoutCurrentUser(e){var t,r;var n=Q();var i=yn(GET_USER_DETAILS,{},!n),s=i.loading,o=i.data;var a=function(){setUserIdentity(undefined)};var u=(t=e.userIdentificationText)===null||t===void 0?void 0:t.replace("{email}",(r=o===null||o===void 0?void 0:o.user)===null||r===void 0?void 0:r.email);return __assign({loading:s,onSwitchClick:a,filledInEmailText:u},e)}var LogoutCurrentUser=function(){function e(e){registerInstance(this,e);this.userIdentificationText="{email}";this.switchUserText="not you?";this.emailErrorText="Error fetching email";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useDemoLogoutCurrentUser(this):useLogoutCurrentUser(getProps(this));var t={userIdentificationText:this.userIdentificationText,switchUserText:this.switchUserText,emailErrorText:this.emailErrorText};return h$1(LogoutCurrentUserView,Object.assign({},e,t))};return e}();function useDemoLogoutCurrentUser(e){return cjs({onSwitchClick:function(){return setUserIdentity(undefined)},filledInEmailText:"john@example.com",switchUserText:e.switchUserText,emailErrorText:e.emailErrorText,loading:false},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{LogoutCurrentUser as sqm_logout_current_user};var templateObject_1;
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function n(e){try{l(i["throw"](e))}catch(e){s(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,n)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function n(e){return function(t){return l([e,t])}}function l(o){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(o[0]===6&&r.label<s[1]){r.label=s[1];s=o;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(o);break}if(s[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{i=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{n as h}from"./stencil-hooks.module-ac12ca1c.js";import{i as isDemo,b as setUserIdentity}from"./index.module-def4aec5.js";import"./jsonpointer-388a7082.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import"./JSS-67b5cff8.js";import{E as EmailRegistrationView}from"./email-registration-view-07d80492.js";import"./useRegistrationFormState-9fc1ac80.js";import{u as useInstantAccessRegistration}from"./useInstantAccessRegistration-46b89952.js";var ReferredRegistration=function(){function e(e){registerInstance(this,e);this.ignored=true;this.emailLabel="Email";this.firstNameLabel="First Name";this.lastNameLabel="Last Name";this.registerLabel="Start Referring";this.includeName=false;this.hideBorder=false;this.requiredFieldErrorMessage="Cannot be empty";this.invalidEmailErrorMessage="Please enter a valid email address";this.networkErrorMessage="There was a problem signing you in. Please wait a moment and try again. If this problem continues, contact Support for help resolving this issue.";this.fraudErrorMessage="Our team will review this referral. If approved, you and your friend will receive your rewards. Need help? Reach out to our Support team.";this.fraudErrorMessageTitle="Looks like you tried referring yourself";this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";this.backgroundColor="#ffffff";this.includeCookies=true;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useRegistrationDemo(this):useInstantAccessRegistration(this),t=e.states,r=e.callbacks;var i={fraudErrorMessage:this.fraudErrorMessage,fraudErrorMessageTitle:this.fraudErrorMessageTitle,emailLabel:this.emailLabel,registerLabel:this.registerLabel,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel,includeName:this.includeName,hideBorder:this.hideBorder,invalidEmailErrorMessage:this.invalidEmailErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,paddingTop:this.paddingTop,paddingBottom:this.paddingBottom,paddingLeft:this.paddingLeft,paddingRight:this.paddingRight,backgroundColor:this.backgroundColor,topSlot:h$1("slot",{name:"top"}),bottomSlot:h$1("slot",{name:"bottom"})};return h$1(EmailRegistrationView,{states:t,callbacks:r,content:i})};return e}();function useRegistrationDemo(e){var t=this;var r=function(){setUserIdentity({id:"referrer@example.com",accountId:"referrer@example.com",jwt:"eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg"})};return cjs({states:{error:"",loading:false},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){r();return[2]}))}))}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{ReferredRegistration as sqm_referred_registration};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function n(e){try{l(i["throw"](e))}catch(e){s(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,n)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function n(e){return function(t){return l([e,t])}}function l(o){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(o[0]===6&&r.label<s[1]){r.label=s[1];s=o;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(o);break}if(s[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{i=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{n as h}from"./stencil-hooks.module-ac12ca1c.js";import{i as isDemo,b as setUserIdentity}from"./index.module-def4aec5.js";import"./jsonpointer-388a7082.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import"./JSS-67b5cff8.js";import{E as EmailRegistrationView}from"./email-registration-view-a89a88bf.js";import"./useRegistrationFormState-9fc1ac80.js";import{u as useInstantAccessRegistration}from"./useInstantAccessRegistration-46b89952.js";var ReferredRegistration=function(){function e(e){registerInstance(this,e);this.ignored=true;this.emailLabel="Email";this.firstNameLabel="First Name";this.lastNameLabel="Last Name";this.registerLabel="Start Referring";this.includeName=false;this.hideBorder=false;this.requiredFieldErrorMessage="Cannot be empty";this.invalidEmailErrorMessage="Please enter a valid email address";this.networkErrorMessage="There was a problem signing you in. Please wait a moment and try again. If this problem continues, contact Support for help resolving this issue.";this.fraudErrorMessage="Our team will review this referral. If approved, you and your friend will receive your rewards. Need help? Reach out to our Support team.";this.fraudErrorMessageTitle="Looks like you tried referring yourself";this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";this.backgroundColor="#ffffff";this.includeCookies=true;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useRegistrationDemo(this):useInstantAccessRegistration(this),t=e.states,r=e.callbacks;var i={fraudErrorMessage:this.fraudErrorMessage,fraudErrorMessageTitle:this.fraudErrorMessageTitle,emailLabel:this.emailLabel,registerLabel:this.registerLabel,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel,includeName:this.includeName,hideBorder:this.hideBorder,invalidEmailErrorMessage:this.invalidEmailErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,paddingTop:this.paddingTop,paddingBottom:this.paddingBottom,paddingLeft:this.paddingLeft,paddingRight:this.paddingRight,backgroundColor:this.backgroundColor,topSlot:h$1("slot",{name:"top"}),bottomSlot:h$1("slot",{name:"bottom"})};return h$1(EmailRegistrationView,{states:t,callbacks:r,content:i})};return e}();function useRegistrationDemo(e){var t=this;var r=function(){setUserIdentity({id:"referrer@example.com",accountId:"referrer@example.com",jwt:"eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg"})};return cjs({states:{error:"",loading:false},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){r();return[2]}))}))}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{ReferredRegistration as sqm_referred_registration};