@saasquatch/mint-components 2.1.9-3 → 2.1.9-4
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/{extractProps-e9c55ba8.js → extractProps-fd93ba62.js} +0 -14
- 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 +5 -4
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +12 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-user-info-form-view-e7260d61.js → sqm-user-info-form-view-923ff8d9.js} +3 -3
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +4 -3
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +42 -1
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +3 -3
- package/dist/esm/{extractProps-54064fb0.js → extractProps-ae1afbb3.js} +1 -14
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm/sqm-big-stat_45.entry.js +2 -1
- package/dist/esm/sqm-email-verification_2.entry.js +12 -1
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm/{sqm-user-info-form-view-a18d6b15.js → sqm-user-info-form-view-ef04a79f.js} +3 -3
- package/dist/esm/sqm-widget-verification.entry.js +3 -2
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- 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/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-a18d6b15.js → sqm-user-info-form-view-ef04a79f.js} +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-66c070e2.entry.js → p-10a54525.entry.js} +8 -8
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/p-4b365f1f.system.js +1 -1
- package/dist/mint-components/{p-725c542a.js → p-51b8ed78.js} +1 -1
- package/dist/mint-components/{p-debe7d04.system.js → p-546a65c7.system.js} +1 -1
- package/dist/mint-components/{p-e6924adb.entry.js → p-5a446168.entry.js} +1 -1
- package/dist/mint-components/{p-1a0b9f0f.entry.js → p-5bbdeacd.entry.js} +2 -2
- package/dist/mint-components/{p-094edc0b.entry.js → p-6a754f51.entry.js} +1 -1
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/{p-237a21c1.system.entry.js → p-adb56df3.system.entry.js} +1 -1
- package/dist/mint-components/p-aeb01a77.system.entry.js +1 -0
- package/dist/mint-components/p-cdc1f271.system.entry.js +1 -0
- package/dist/mint-components/{p-4fbfb954.system.entry.js → p-d2d2c4ea.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7cac01e.entry.js → p-f50c3306.entry.js} +1 -1
- package/dist/mint-components/p-f5755143.system.entry.js +1 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +7 -0
- package/dist/types/components.d.ts +14 -0
- 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/esm-es5/extractProps-54064fb0.js +0 -1
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-4ea9b7ec.system.entry.js +0 -1
- package/dist/mint-components/p-6e6f19ea.system.entry.js +0 -1
- package/dist/mint-components/p-a9855b29.system.entry.js +0 -1
- package/dist/mint-components/p-e55aafe9.system.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,h as r}from"./p-083180bf.js";import{k as i,f as t,n as o}from"./p-a7fc1e02.js";import{d as a,J as n,I as s,q as c,X as l,i as u}from"./p-1d450b85.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-9ec99ced.js";import{
|
|
1
|
+
import{r as e,h as r}from"./p-083180bf.js";import{k as i,f as t,n as o}from"./p-a7fc1e02.js";import{d as a,J as n,I as s,q as c,X as l,i as u}from"./p-1d450b85.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-9ec99ced.js";import{p as h}from"./p-13f3a647.js";import{e as f}from"./p-26468242.js";import{S as p,V as y,a as g}from"./p-38c7775a.js";const v=a.gql`
|
|
2
2
|
query checkUserVerification {
|
|
3
3
|
viewer {
|
|
4
4
|
... on User {
|
|
@@ -13,4 +13,4 @@ import{r as e,h as r}from"./p-083180bf.js";import{k as i,f as t,n as o}from"./p-
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
`,w=class{constructor(r){e(this,r),this.general_verifyEmailHeader="Verify your email",this.general_verifyEmailDescription="To get your cash paid out directly to your bank account, please complete your account setup",this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.",this.emailStep_sendCodeErrorHeader="There was an error sending your code.",this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.",this.emailStep_emailLabel="Email",this.emailStep_sendCodeText="Send code",this.emailStep_emailValidationErrorText="Please enter a valid email",this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}",this.codeStep_resendCodeLabel="Resend code",this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}",this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.",this.codeStep_verifyText="Verify",this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",this.createPartnerStep_modalHeader="Let's get you ready for rewards",this.createPartnerStep_modalHeaderExistingPartner="We found an existing account",this.createPartnerStep_descriptionNewPartner="Confirm your country and currency now to get your future rewards faster.",this.createPartnerStep_descriptionExistingPartner="We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.",this.createPartnerStep_supportDescriptionExistingPartner="If this is a mistake, please contact Support or sign up for this referral program with a different email.",this.createPartnerStep_countryLabel="Country",this.createPartnerStep_currencyLabel="Currency",this.createPartnerStep_submitButtonLabel="Submit",this.createPartnerStep_confirmButtonLabel="Confirm",this.createPartnerStep_searchCountryPlaceholder="Search for a country",this.createPartnerStep_searchCurrencyPlaceholder="Search for a currency",this.createPartnerStep_networkErrorText="An error occurred. Please try again.",this.createPartnerStep_missingFieldsErrorText="Please select both a country and currency.",this.stateController="{}",o(this)}disconnectedCallback(){}getStepTextProps(e){const r=m(this);return
|
|
16
|
+
`,w=class{constructor(r){e(this,r),this.general_verifyEmailHeader="Verify your email",this.general_verifyEmailDescription="To get your cash paid out directly to your bank account, please complete your account setup",this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.",this.emailStep_sendCodeErrorHeader="There was an error sending your code.",this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.",this.emailStep_emailLabel="Email",this.emailStep_sendCodeText="Send code",this.emailStep_emailValidationErrorText="Please enter a valid email",this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}",this.codeStep_resendCodeLabel="Resend code",this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}",this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.",this.codeStep_verifyText="Verify",this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",this.createPartnerStep_modalHeader="Let's get you ready for rewards",this.createPartnerStep_modalHeaderExistingPartner="We found an existing account",this.createPartnerStep_descriptionNewPartner="Confirm your country and currency now to get your future rewards faster.",this.createPartnerStep_descriptionExistingPartner="We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.",this.createPartnerStep_supportDescriptionExistingPartner="If this is a mistake, please contact Support or sign up for this referral program with a different email.",this.createPartnerStep_countryLabel="Country",this.createPartnerStep_currencyLabel="Currency",this.createPartnerStep_submitButtonLabel="Submit",this.createPartnerStep_confirmButtonLabel="Confirm",this.createPartnerStep_searchCountryPlaceholder="Search for a country",this.createPartnerStep_searchCurrencyPlaceholder="Search for a currency",this.createPartnerStep_networkErrorText="An error occurred. Please try again.",this.createPartnerStep_missingFieldsErrorText="Please select both a country and currency.",this.stateController="{}",o(this)}disconnectedCallback(){}getStepTextProps(e){const r=m(this);return f(r,e)}render(){const e=u()?function(e){const[r,i]=s({namespace:p,initialValue:!1}),[t,o]=s({namespace:y,initialValue:void 0}),a=c(g),n=h(e.stateController),l=Object.keys(n).reduce(((e,r)=>"sqm-widget-verification"===r?{...e,...n[r]}:{...e,[`${r}_stateController`]:n[r]}),{});return d({showCode:r,showPartnerModal:!1,onVerification:()=>{a(!0)},onPartnerModalComplete:()=>{},loading:!1},l||{},{arrayMerge:(e,r)=>r})}(this):function(){const e=n(),[r,o]=s({namespace:p,initialValue:!1}),[a,u]=s({namespace:y,initialValue:null==e?void 0:e.email}),d=c(g),[m,h]=i(!0),[f,w]=i(!1),[b]=l(v);return t((()=>{(async()=>{var e,r,i;try{const t=await b({});if(!t||t instanceof Error)throw new Error;((null===(e=null==t?void 0:t.viewer)||void 0===e?void 0:e.emailVerified)||(null===(i=null===(r=null==t?void 0:t.viewer)||void 0===r?void 0:r.managedIdentity)||void 0===i?void 0:i.emailVerified))&&d(!0)}catch(e){console.error("Could not fetch user information:",e)}finally{h(!1)}})()}),[]),{showCode:r,showPartnerModal:f,onVerification:()=>{w(!0)},onPartnerModalComplete:()=>{w(!1),d(!0)},loading:m}}();if(e.loading)return r("sl-spinner",null);if(e.showPartnerModal)return r("sqm-partner-info-modal",Object.assign({},this.getStepTextProps("createPartnerStep_")));const o=this.getStepTextProps("general_");return r("div",null,r("h3",{style:{fontSize:"24px",margin:"0"}},o.verifyEmailHeader),r("p",{style:{color:"var(--sl-color-neutral-500)",fontSize:"var(--sl-font-size-medium)",margin:"0"}},o.verifyEmailDescription),e.showCode?r("sqm-code-verification",Object.assign({onVerification:e.onVerification},this.getStepTextProps("codeStep_"),f(e,"sqm-code-verification_"))):r("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_"),f(e,"sqm-email-verification_"))))}};export{w as sqm_widget_verification}
|