@saasquatch/mint-components 2.1.9-11 → 2.1.9-12

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 (45) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +8 -5
  4. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +5 -7
  5. package/dist/cjs/{sqm-partner-info-modal-view-98e2975d.js → sqm-partner-info-modal-view-7bcb2262.js} +3 -3
  6. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  7. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +2 -2
  8. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +8 -10
  9. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +32 -5
  10. package/dist/esm/loader.js +1 -1
  11. package/dist/esm/mint-components.js +1 -1
  12. package/dist/esm/sqm-big-stat_46.entry.js +8 -5
  13. package/dist/esm/sqm-email-verification_2.entry.js +5 -7
  14. package/dist/esm/{sqm-partner-info-modal-view-74328f70.js → sqm-partner-info-modal-view-dd777f00.js} +3 -3
  15. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  16. package/dist/esm-es5/loader.js +1 -1
  17. package/dist/esm-es5/mint-components.js +1 -1
  18. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  19. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  20. package/dist/esm-es5/sqm-partner-info-modal-view-dd777f00.js +1 -0
  21. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  22. package/dist/mint-components/mint-components.esm.js +1 -1
  23. package/dist/mint-components/{p-278897bd.system.entry.js → p-0581c425.system.entry.js} +1 -1
  24. package/dist/mint-components/{p-53f22cc0.system.entry.js → p-0a769ba3.system.entry.js} +1 -1
  25. package/dist/mint-components/p-1c413a06.system.js +1 -1
  26. package/dist/mint-components/{p-0a60980a.system.entry.js → p-50cdc2d0.system.entry.js} +1 -1
  27. package/dist/mint-components/{p-0a1669f8.entry.js → p-52e702ad.entry.js} +1 -1
  28. package/dist/mint-components/{p-8d5db0d5.entry.js → p-aabc6b28.entry.js} +2 -2
  29. package/dist/mint-components/{p-fa3d7e53.entry.js → p-e7c3d207.entry.js} +1 -1
  30. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +1 -1
  31. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +2 -3
  32. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
  33. package/dist/types/components.d.ts +14 -4
  34. package/docs/docs.docx +0 -0
  35. package/docs/raisins.json +1 -1
  36. package/grapesjs/grapesjs.js +1 -1
  37. package/package.json +1 -1
  38. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -360
  39. package/dist/esm/sqm-widget-verification.entry.js +0 -356
  40. package/dist/esm-es5/sqm-partner-info-modal-view-74328f70.js +0 -1
  41. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  42. package/dist/mint-components/sqm-widget-verification.entry.js +0 -356
  43. package/dist/mint-components/sqm-widget-verification.system.entry.js +0 -1
  44. /package/dist/mint-components/{p-c68c2331.js → p-71d00dcf.js} +0 -0
  45. /package/dist/mint-components/{p-99b17bca.system.js → p-f10e42e8.system.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{h as r,r as t}from"./p-083180bf.js";import{i as o}from"./p-438f6702.js";import{k as n,f as e,n as a}from"./p-a7fc1e02.js";import{d as i,t as s,w as l,J as c,$ as u,i as d,r as p,L as m}from"./p-d20188db.js";import{c as b}from"./p-c1086930.js";import{g as v}from"./p-9ec99ced.js";import{c as f}from"./p-cef45012.js";import{T as h}from"./p-cabf6326.js";import{a as y,P as g}from"./p-c68c2331.js";import{S as q,a as x,V as w}from"./p-39840341.js";import{T as k}from"./p-28ed2ae9.js";import{p as C}from"./p-13f3a647.js";import{u as S}from"./p-0d75a207.js";const I=i.gql`
1
+ import{h as r,r as t}from"./p-083180bf.js";import{i as o}from"./p-438f6702.js";import{k as n,f as e,n as a}from"./p-a7fc1e02.js";import{d as i,t as s,w as l,J as c,$ as u,i as d,r as p,L as m}from"./p-d20188db.js";import{c as b}from"./p-c1086930.js";import{g as v}from"./p-9ec99ced.js";import{c as f}from"./p-cef45012.js";import{T as h}from"./p-cabf6326.js";import{a as y,P as g}from"./p-71d00dcf.js";import{S as q,a as x,V as w}from"./p-39840341.js";import{T as k}from"./p-28ed2ae9.js";import{p as C}from"./p-13f3a647.js";import{u as S}from"./p-0d75a207.js";const I=i.gql`
2
2
  mutation upsertUser($userInput: UserInput!) {
3
3
  upsertUser(userInput: $userInput) {
4
4
  id
@@ -102,4 +102,4 @@ import{h as r,r as t}from"./p-083180bf.js";import{i as o}from"./p-438f6702.js";i
102
102
  companyName
103
103
  }
104
104
  }
105
- `,_=class{constructor(r){t(this,r),this.brandName="",this.modalHeader="Let's get you ready for rewards",this.modalHeaderExistingPartner="We found an existing account",this.descriptionNewPartner="Confirm your country and currency now to get your future rewards faster.",this.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.supportDescriptionExistingPartner="If this is a mistake, please contact Support or sign up for this referral program with a different email.",this.countryLabel="Country",this.currencyLabel="Currency",this.submitButtonLabel="Submit",this.confirmButtonLabel="Confirm",this.searchCountryPlaceholder="Search for a country",this.searchCurrencyPlaceholder="Search for a currency",this.networkErrorText="An error occurred. Please try again.",this.missingFieldsErrorText="Please select both a country and currency.",this.embedded=!1,this.stateController="{}",a(this)}disconnectedCallback(){}getTextProps(){return v(this)}render(){const t=d()?function(r){const[t,o]=n("US"),[e,a]=n(""),[i,s]=n(""),l=C(r.stateController);return b({states:{brandName:"Test Brand",open:!0,loading:!1,submitting:!1,isExistingPartner:!1,countryCode:t,currency:e,error:i,success:!1,filteredCountries:[],filteredCurrencies:[]},callbacks:{onCountryChange:r=>{var t,n;const e=null===(n=null===(t=null==r?void 0:r.detail)||void 0===t?void 0:t.item)||void 0===n?void 0:n.__value;e&&(o(e),a(""))},onCurrencyChange:r=>{var t,o;const n=null===(o=null===(t=null==r?void 0:r.detail)||void 0===t?void 0:t.item)||void 0===o?void 0:o.__value;n&&a(n)},setCountrySearch:()=>{},setCurrencySearch:()=>{},onSubmit:()=>{s(t&&e?"":r.missingFieldsErrorText)},onClose:()=>{}},text:{modalHeader:r.modalHeader,descriptionNewPartner:r.descriptionNewPartner,descriptionExistingPartner:r.descriptionExistingPartner,countryLabel:r.countryLabel,currencyLabel:r.currencyLabel,submitButtonLabel:r.submitButtonLabel,confirmButtonLabel:r.confirmButtonLabel,searchCountryPlaceholder:r.searchCountryPlaceholder,searchCurrencyPlaceholder:r.searchCurrencyPlaceholder,supportDescriptionExistingPartner:r.supportDescriptionExistingPartner,modalHeaderExistingPartner:r.modalHeaderExistingPartner}},r.demoData||((null==l?void 0:l["sqm-partner-info-modal"])||l||{}),{arrayMerge:(r,t)=>t})}(this):function(r){var t,o,a,i,s,c,d,b,v;const f=m(),h=p(w),{data:y,loading:g,refetch:q}=l(L,{}),x=null==y?void 0:y.user,{data:C,loading:S}=l(D,{variables:{locale:f}}),{data:I,loading:P}=l(z,{}),{data:T}=l(U,{}),[j,{loading:E}]=u($),[N,_]=n((null===(o=null===(t=null==x?void 0:x.impactConnection)||void 0===t?void 0:t.publisher)||void 0===o?void 0:o.countryCode)||""),[M,B]=n((null===(i=null===(a=null==x?void 0:x.impactConnection)||void 0===a?void 0:a.publisher)||void 0===i?void 0:i.currency)||"");console.log(N,M,"initial country and currency state");const[O,W]=n(""),[A,F]=n(""),[R,H]=n((null===(s=null==I?void 0:I.impactPayoutCountries)||void 0===s?void 0:s.data)||[]),[Z,V]=n((null===(c=null==C?void 0:C.currencies)||void 0===c?void 0:c.data)||[]),[G,J]=n(""),[K,Q]=n(!1),X=(null===(d=null==I?void 0:I.impactPayoutCountries)||void 0===d?void 0:d.data)||[],Y=(null===(b=null==C?void 0:C.currencies)||void 0===b?void 0:b.data)||[];console.log(x,"user data from partner info query"),e((()=>{var r;y&&(null===(r=x.impactConnection)||void 0===r?void 0:r.publisher)&&(_(x.impactConnection.publisher.countryCode),B(x.impactConnection.publisher.currency))}),[y]),e((()=>{(null==X?void 0:X.length)&&(""===O.trim()?H(X||[]):H(X.filter((r=>r.displayName.toLowerCase().includes(O.toLowerCase())))||[]))}),[O,X]),e((()=>{(null==Y?void 0:Y.length)&&(""===A.trim()?V(Y||[]):V(Y.filter((r=>r.currencyCode.toLowerCase().includes(A.toLowerCase())))||[]))}),[A,Y]);const rr=null==x?void 0:x.impactConnection;console.log(K,"success state in partner info modal");const tr=!(K||g||(null==rr?void 0:rr.connected)&&(null==rr?void 0:rr.publisher));return console.log(tr,"showModal condition in partner info modal"),{states:{open:tr,loading:g||P||S,submitting:E,isExistingPartner:null==rr?void 0:rr.publisher,countryCode:N,currency:M,error:G,success:K,brandName:(null===(v=null==T?void 0:T.tenantSettings)||void 0===v?void 0:v.companyName)||"",filteredCountries:R||[],filteredCurrencies:Z||[]},callbacks:{onCountryChange:function(r){var t,o;const n=null===(o=null===(t=r.detail)||void 0===t?void 0:t.item)||void 0===o?void 0:o.__value;n&&(_(n),B(""),J(""))},onCurrencyChange:function(r){var t,o;const n=null===(o=null===(t=r.detail)||void 0===t?void 0:t.item)||void 0===o?void 0:o.__value;n&&(B(n),J(""))},setCurrencySearch:F,setCountrySearch:W,onSubmit:async function(){var t,o;if(N&&M){J("");try{const n={user:{id:x.id,accountId:x.accountId},firstName:x.firstName,lastName:x.lastName,countryCode:N,currency:M},e=await j({vars:n});if(!e||(null===(t=e)||void 0===t?void 0:t.message))return void J(r.networkErrorText);const a=e.createImpactConnection;if(console.log(e,a,"result and connectionResult from creating partner from modal"),!(null==a?void 0:a.success)){const t=null===(o=null==a?void 0:a.validationErrors)||void 0===o?void 0:o.map((r=>r.message)).join(". ");return J(t||r.networkErrorText),void console.error("Failed to create Impact connection:",null==a?void 0:a.validationErrors)}window.dispatchEvent(new Event(k)),await q(),Q(!0),h(!0)}catch(t){console.error("Partner creation error:",t),J(r.networkErrorText)}}else J(r.missingFieldsErrorText)},onClose:()=>Q(!0)},text:r.getTextProps()}}(this);return r(this.embedded?y:g,Object.assign({},t))}};export{N as sqm_email_verification,_ as sqm_partner_info_modal}
105
+ `,_=class{constructor(r){t(this,r),this.brandName="",this.modalHeader="Let's get you ready for rewards",this.modalHeaderExistingPartner="We found an existing account",this.descriptionNewPartner="Confirm your country and currency now to get your future rewards faster.",this.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.supportDescriptionExistingPartner="If this is a mistake, please contact Support or sign up for this referral program with a different email.",this.countryLabel="Country",this.currencyLabel="Currency",this.submitButtonLabel="Submit",this.confirmButtonLabel="Confirm",this.searchCountryPlaceholder="Search for a country",this.searchCurrencyPlaceholder="Search for a currency",this.networkErrorText="An error occurred. Please try again.",this.missingFieldsErrorText="Please select both a country and currency.",this.inModal=!1,this.stateController="{}",a(this)}disconnectedCallback(){}getTextProps(){return v(this)}render(){const t=d()?function(r){const[t,o]=n("US"),[e,a]=n(""),[i,s]=n(""),l=C(r.stateController);return b({states:{brandName:"Test Brand",open:!0,loading:!1,submitting:!1,isExistingPartner:!1,countryCode:t,currency:e,error:i,success:!1,filteredCountries:[],filteredCurrencies:[]},callbacks:{onCountryChange:r=>{var t,n;const e=null===(n=null===(t=null==r?void 0:r.detail)||void 0===t?void 0:t.item)||void 0===n?void 0:n.__value;e&&(o(e),a(""))},onCurrencyChange:r=>{var t,o;const n=null===(o=null===(t=null==r?void 0:r.detail)||void 0===t?void 0:t.item)||void 0===o?void 0:o.__value;n&&a(n)},setCountrySearch:()=>{},setCurrencySearch:()=>{},onSubmit:()=>{s(t&&e?"":r.missingFieldsErrorText)},onClose:()=>{}},text:{modalHeader:r.modalHeader,descriptionNewPartner:r.descriptionNewPartner,descriptionExistingPartner:r.descriptionExistingPartner,countryLabel:r.countryLabel,currencyLabel:r.currencyLabel,submitButtonLabel:r.submitButtonLabel,confirmButtonLabel:r.confirmButtonLabel,searchCountryPlaceholder:r.searchCountryPlaceholder,searchCurrencyPlaceholder:r.searchCurrencyPlaceholder,supportDescriptionExistingPartner:r.supportDescriptionExistingPartner,modalHeaderExistingPartner:r.modalHeaderExistingPartner}},r.demoData||((null==l?void 0:l["sqm-partner-info-modal"])||l||{}),{arrayMerge:(r,t)=>t})}(this):function(r){var t,o,a,i,s,c,d,b,v;const f=m(),h=p(w),{data:y,loading:g,refetch:q}=l(L,{}),x=null==y?void 0:y.user,{data:C,loading:S}=l(D,{variables:{locale:f}}),{data:I,loading:P}=l(z,{}),{data:T}=l(U,{}),[j,{loading:E}]=u($),[N,_]=n((null===(o=null===(t=null==x?void 0:x.impactConnection)||void 0===t?void 0:t.publisher)||void 0===o?void 0:o.countryCode)||""),[M,B]=n((null===(i=null===(a=null==x?void 0:x.impactConnection)||void 0===a?void 0:a.publisher)||void 0===i?void 0:i.currency)||"");console.log(N,M,"initial country and currency state");const[O,W]=n(""),[A,F]=n(""),[R,H]=n((null===(s=null==I?void 0:I.impactPayoutCountries)||void 0===s?void 0:s.data)||[]),[Z,V]=n((null===(c=null==C?void 0:C.currencies)||void 0===c?void 0:c.data)||[]),[G,J]=n(""),[K,Q]=n(!1),X=(null===(d=null==I?void 0:I.impactPayoutCountries)||void 0===d?void 0:d.data)||[],Y=(null===(b=null==C?void 0:C.currencies)||void 0===b?void 0:b.data)||[];console.log(x,"user data from partner info query"),e((()=>{var r;y&&(null===(r=x.impactConnection)||void 0===r?void 0:r.publisher)&&(_(x.impactConnection.publisher.countryCode),B(x.impactConnection.publisher.currency))}),[y]),e((()=>{(null==X?void 0:X.length)&&(""===O.trim()?H(X||[]):H(X.filter((r=>r.displayName.toLowerCase().includes(O.toLowerCase())))||[]))}),[O,X]),e((()=>{(null==Y?void 0:Y.length)&&(""===A.trim()?V(Y||[]):V(Y.filter((r=>r.currencyCode.toLowerCase().includes(A.toLowerCase())))||[]))}),[A,Y]);const rr=null==x?void 0:x.impactConnection;console.log(K,"success state in partner info modal");const tr=!(K||g||(null==rr?void 0:rr.connected)&&(null==rr?void 0:rr.publisher));return console.log(tr,"showModal condition in partner info modal"),{states:{open:tr,loading:g||P||S,submitting:E,isExistingPartner:null==rr?void 0:rr.publisher,countryCode:N,currency:M,error:G,success:K,brandName:(null===(v=null==T?void 0:T.tenantSettings)||void 0===v?void 0:v.companyName)||"",filteredCountries:R||[],filteredCurrencies:Z||[]},callbacks:{onCountryChange:function(r){var t,o;const n=null===(o=null===(t=r.detail)||void 0===t?void 0:t.item)||void 0===o?void 0:o.__value;n&&(_(n),B(""),J(""))},onCurrencyChange:function(r){var t,o;const n=null===(o=null===(t=r.detail)||void 0===t?void 0:t.item)||void 0===o?void 0:o.__value;n&&(B(n),J(""))},setCurrencySearch:F,setCountrySearch:W,onSubmit:async function(){var t,o;if(N&&M){J("");try{const n={user:{id:x.id,accountId:x.accountId},firstName:x.firstName,lastName:x.lastName,countryCode:N,currency:M},e=await j({vars:n});if(!e||(null===(t=e)||void 0===t?void 0:t.message))return void J(r.networkErrorText);const a=e.createImpactConnection;if(console.log(e,a,"result and connectionResult from creating partner from modal"),!(null==a?void 0:a.success)){const t=null===(o=null==a?void 0:a.validationErrors)||void 0===o?void 0:o.map((r=>r.message)).join(". ");return J(t||r.networkErrorText),void console.error("Failed to create Impact connection:",null==a?void 0:a.validationErrors)}window.dispatchEvent(new Event(k)),await q(),Q(!0),h(!0)}catch(t){console.error("Partner creation error:",t),J(r.networkErrorText)}}else J(r.missingFieldsErrorText)},onClose:()=>Q(!0)},text:r.getTextProps()}}(this);return r(this.inModal?y:g,Object.assign({},t))}};export{N as sqm_email_verification,_ as sqm_partner_info_modal}
@@ -288,4 +288,4 @@ import{r as e,h as t,c as r}from"./p-083180bf.js";import{b as o,i as a}from"./p-
288
288
  }
289
289
  }
290
290
  }
291
- `,so=class{constructor(t){e(this,t),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="{}",i(this)}disconnectedCallback(){}getStepTextProps(e){return Jr(L(this),e)}render(){const e=m()?function(e){const[t,r]=A({namespace:Ye,initialValue:!1}),[o,a]=A({namespace:We,initialValue:void 0}),i=q(Ge),n=Je(e.stateController),s=Object.keys(n).reduce(((e,t)=>"sqm-widget-verification"===t?{...e,...n[t]}:{...e,[`${t}_stateController`]:n[t]}),{});return D({showCode:t,showPartnerModal:!1,onVerification:()=>{i(!0)},onPartnerModalComplete:()=>{},loading:!1},s||{},{arrayMerge:(e,t)=>t})}(this):function(){const e=g(),[t,r]=A({namespace:Ye,initialValue:!1}),[o,a]=A({namespace:We,initialValue:null==e?void 0:e.email}),i=q(Ge),[s,d]=l(!0),[c,u]=l(!1),[h]=N(no);return n((()=>{(async()=>{var e,t,r,o,a;try{const n=await h({});if(!n||n instanceof Error)throw new Error;const s=(null===(e=null==n?void 0:n.viewer)||void 0===e?void 0:e.emailVerified)||(null===(r=null===(t=null==n?void 0:n.viewer)||void 0===t?void 0:t.managedIdentity)||void 0===r?void 0:r.emailVerified);(null===(a=null===(o=null==n?void 0:n.viewer)||void 0===o?void 0:o.impactConnection)||void 0===a?void 0:a.connected)?i(!0):s&&u(!0)}catch(e){console.error("Could not fetch user information:",e)}finally{d(!1)}})()}),[]),{showCode:t,showPartnerModal:c,onVerification:()=>{u(!0)},onPartnerModalComplete:()=>{u(!1),i(!0)},loading:s}}();if(e.loading)return t("sl-spinner",null);const r=B({Dialog:{"&::part(panel)":{maxWidth:"480px"},"&::part(title)":{fontSize:"var(--sl-font-size-x-large)",fontWeight:"600",padding:"var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large)",fontSize:"var(--sl-font-size-small)",overflow:"visible"},"&::part(footer)":{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)"},"&::part(overlay)":{background:"rgba(0, 0, 0, 0.5)"},"&::part(close-button)":{display:"none"}}}),o=r.toString(),a=this.getStepTextProps("general_"),i=this.getStepTextProps("createPartnerStep_"),s=e.showPartnerModal?i.modalHeader:a.verifyEmailHeader;return t("div",null,t("style",{type:"text/css"},o),t("sl-dialog",{class:r.classes.Dialog,noHeader:!1,open:!0,label:s,"onSl-request-close":e=>{e.preventDefault()},"onSl-hide":e=>{var t;"SL-DIALOG"===(null===(t=e.target)||void 0===t?void 0:t.tagName)&&e.preventDefault()}},(()=>e.showPartnerModal?t("sqm-partner-info-modal",Object.assign({embedded:!0},i)):e.showCode?t("sqm-code-verification",Object.assign({onVerification:e.onVerification},this.getStepTextProps("codeStep_"),Jr(e,"sqm-code-verification_"))):t("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_"),Jr(e,"sqm-email-verification_"))))()))}};export{Qe as sqm_big_stat,vt as sqm_brand,bt as sqm_brand_selector,yt as sqm_card_feed,wt as sqm_checkbox_field,Et as sqm_coupon_code,Ft as sqm_divided_layout,It as sqm_dropdown_field,Rt as sqm_edit_profile,qt as sqm_hero,Mt as sqm_hero_image,Dt as sqm_hook_story_container,Pt as sqm_image,Bt as sqm_input_field,Ot as sqm_lead_dropdown_field,zt as sqm_lead_form,Wt as sqm_leaderboard,Xt as sqm_link_button,Qt as sqm_marketing_emails_checkbox,er as sqm_name_fields,rr as sqm_navigation_menu,sr as sqm_payout_button_scroll,ur as sqm_payout_status_alert,fr as sqm_portal_change_marketing,gr as sqm_portal_change_password,vr as sqm_portal_footer,br as sqm_portal_frame,wr as sqm_portal_google_registration_form,Cr as sqm_program_explainer,_r as sqm_program_explainer_step,Ir as sqm_program_menu,Tr as sqm_referral_card,Rr as sqm_referral_iframe,qr as sqm_referred_registration,Pr as sqm_reward_exchange_list,Vr as sqm_router,zr as sqm_share_button,Hr as sqm_share_code,Yr as sqm_share_link,Wr as sqm_stat_container,Kr as sqm_task_card,Zr as sqm_tax_and_cash,Xr as sqm_timeline,ro as sqm_timeline_entry,io as sqm_user_name,so as sqm_widget_verification}
291
+ `,so=class{constructor(t){e(this,t),this.general_widgetHeaderWithPartnerCreation="Let's get you ready for rewards",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="{}",i(this)}disconnectedCallback(){}getStepTextProps(e){return Jr(L(this),e)}render(){const e=m()?function(e){const[t,r]=A({namespace:Ye,initialValue:!1}),[o,a]=A({namespace:We,initialValue:void 0}),i=q(Ge),n=Je(e.stateController),s=Object.keys(n).reduce(((e,t)=>"sqm-widget-verification"===t?{...e,...n[t]}:{...e,[`${t}_stateController`]:n[t]}),{});return D({showCode:t,showPartnerModal:!1,onVerification:()=>{i(!0)},onPartnerModalComplete:()=>{},loading:!1},s||{},{arrayMerge:(e,t)=>t})}(this):function(){const e=g(),[t,r]=A({namespace:Ye,initialValue:!1}),[o,a]=A({namespace:We,initialValue:null==e?void 0:e.email}),i=q(Ge),[s,d]=l(!0),[c,u]=l(!1),[h]=N(no);return n((()=>{(async()=>{var e,t,r,o,a;try{const n=await h({});if(!n||n instanceof Error)throw new Error;const s=(null===(e=null==n?void 0:n.viewer)||void 0===e?void 0:e.emailVerified)||(null===(r=null===(t=null==n?void 0:n.viewer)||void 0===t?void 0:t.managedIdentity)||void 0===r?void 0:r.emailVerified);(null===(a=null===(o=null==n?void 0:n.viewer)||void 0===o?void 0:o.impactConnection)||void 0===a?void 0:a.connected)?i(!0):s&&u(!0)}catch(e){console.error("Could not fetch user information:",e)}finally{d(!1)}})()}),[]),{showCode:t,showPartnerModal:c,onVerification:()=>{u(!0)},onPartnerModalComplete:()=>{u(!1),i(!0)},loading:s}}();if(e.loading)return t("sl-spinner",null);const r=B({Dialog:{"&::part(panel)":{maxWidth:"480px"},"&::part(title)":{fontSize:"var(--sl-font-size-x-large)",fontWeight:"600",padding:"var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large)",fontSize:"var(--sl-font-size-small)",overflow:"visible"},"&::part(footer)":{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)"},"&::part(overlay)":{background:"rgba(0, 0, 0, 0.5)"},"&::part(close-button)":{display:"none"}}}),o=r.toString(),a=this.getStepTextProps("createPartnerStep_"),i=this.general_widgetHeaderWithPartnerCreation;return t("div",null,t("style",{type:"text/css"},o),t("sl-dialog",{class:r.classes.Dialog,noHeader:!1,open:!0,label:i,"onSl-request-close":e=>{e.preventDefault()},"onSl-hide":e=>{var t;"SL-DIALOG"===(null===(t=e.target)||void 0===t?void 0:t.tagName)&&e.preventDefault()}},(()=>e.showPartnerModal?t("sqm-partner-info-modal",Object.assign({inModal:!0},a)):e.showCode?t("sqm-code-verification",Object.assign({onVerification:e.onVerification},this.getStepTextProps("codeStep_"),Jr(e,"sqm-code-verification_"))):t("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_"),Jr(e,"sqm-email-verification_"))))()))}};export{Qe as sqm_big_stat,vt as sqm_brand,bt as sqm_brand_selector,yt as sqm_card_feed,wt as sqm_checkbox_field,Et as sqm_coupon_code,Ft as sqm_divided_layout,It as sqm_dropdown_field,Rt as sqm_edit_profile,qt as sqm_hero,Mt as sqm_hero_image,Dt as sqm_hook_story_container,Pt as sqm_image,Bt as sqm_input_field,Ot as sqm_lead_dropdown_field,zt as sqm_lead_form,Wt as sqm_leaderboard,Xt as sqm_link_button,Qt as sqm_marketing_emails_checkbox,er as sqm_name_fields,rr as sqm_navigation_menu,sr as sqm_payout_button_scroll,ur as sqm_payout_status_alert,fr as sqm_portal_change_marketing,gr as sqm_portal_change_password,vr as sqm_portal_footer,br as sqm_portal_frame,wr as sqm_portal_google_registration_form,Cr as sqm_program_explainer,_r as sqm_program_explainer_step,Ir as sqm_program_menu,Tr as sqm_referral_card,Rr as sqm_referral_iframe,qr as sqm_referred_registration,Pr as sqm_reward_exchange_list,Vr as sqm_router,zr as sqm_share_button,Hr as sqm_share_code,Yr as sqm_share_link,Wr as sqm_stat_container,Kr as sqm_task_card,Zr as sqm_tax_and_cash,Xr as sqm_timeline,ro as sqm_timeline_entry,io as sqm_user_name,so as sqm_widget_verification}
@@ -40,5 +40,5 @@ export interface PartnerInfoModalViewProps {
40
40
  modalHeaderExistingPartner: string;
41
41
  };
42
42
  }
43
- export declare function PartnerInfoModalContent(props: PartnerInfoModalViewProps): any[];
43
+ export declare function PartnerInfoModalContentView(props: PartnerInfoModalViewProps): any[];
44
44
  export declare function PartnerInfoModalView(props: PartnerInfoModalViewProps): any;
@@ -83,11 +83,10 @@ export declare class PartnerInfoModal {
83
83
  */
84
84
  missingFieldsErrorText: string;
85
85
  /**
86
- * When true, renders only the form content without its own sl-dialog wrapper.
87
- * Used when embedded inside another dialog (e.g. sqm-widget-verification).
86
+ * Used to render in another modal.
88
87
  * @undocumented
89
88
  */
90
- embedded: boolean;
89
+ inModal: boolean;
91
90
  /**
92
91
  * @undocumented
93
92
  * @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
@@ -4,6 +4,11 @@
4
4
  * @example Widget Verification - <sqm-widget-verification></sqm-widget-verification>
5
5
  */
6
6
  export declare class WidgetVerification {
7
+ /**
8
+ * @uiName General widget header text with partner creation
9
+ * @uiGroup General Text
10
+ */
11
+ general_widgetHeaderWithPartnerCreation: string;
7
12
  /**
8
13
  * @uiName General verify widget header text
9
14
  * @uiGroup General Text
@@ -2347,10 +2347,10 @@ export namespace Components {
2347
2347
  */
2348
2348
  "descriptionNewPartner": string;
2349
2349
  /**
2350
- * When true, renders only the form content without its own sl-dialog wrapper. Used when embedded inside another dialog (e.g. sqm-widget-verification).
2350
+ * Used to render in another modal.
2351
2351
  * @undocumented
2352
2352
  */
2353
- "embedded": boolean;
2353
+ "inModal": boolean;
2354
2354
  /**
2355
2355
  * @uiName Missing fields error text
2356
2356
  * @uiWidget textArea
@@ -7347,6 +7347,11 @@ export namespace Components {
7347
7347
  * @uiGroup General Text
7348
7348
  */
7349
7349
  "general_verifyEmailHeader": string;
7350
+ /**
7351
+ * @uiName General widget header text with partner creation
7352
+ * @uiGroup General Text
7353
+ */
7354
+ "general_widgetHeaderWithPartnerCreation": string;
7350
7355
  /**
7351
7356
  * @undocumented
7352
7357
  * @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
@@ -10552,10 +10557,10 @@ declare namespace LocalJSX {
10552
10557
  */
10553
10558
  "descriptionNewPartner"?: string;
10554
10559
  /**
10555
- * When true, renders only the form content without its own sl-dialog wrapper. Used when embedded inside another dialog (e.g. sqm-widget-verification).
10560
+ * Used to render in another modal.
10556
10561
  * @undocumented
10557
10562
  */
10558
- "embedded"?: boolean;
10563
+ "inModal"?: boolean;
10559
10564
  /**
10560
10565
  * @uiName Missing fields error text
10561
10566
  * @uiWidget textArea
@@ -15527,6 +15532,11 @@ declare namespace LocalJSX {
15527
15532
  * @uiGroup General Text
15528
15533
  */
15529
15534
  "general_verifyEmailHeader"?: string;
15535
+ /**
15536
+ * @uiName General widget header text with partner creation
15537
+ * @uiGroup General Text
15538
+ */
15539
+ "general_widgetHeaderWithPartnerCreation"?: string;
15530
15540
  /**
15531
15541
  * @undocumented
15532
15542
  * @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
package/docs/docs.docx CHANGED
Binary file