@saasquatch/mint-components 2.3.0-2 → 2.3.0-5

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 (25) hide show
  1. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +2 -2
  2. package/dist/cjs/{sqm-partner-info-modal-view-f6faecf5.js → sqm-partner-info-modal-view-2eb52318.js} +5 -0
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  4. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +5 -0
  5. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +2 -2
  6. package/dist/esm/sqm-email-verification_2.entry.js +2 -2
  7. package/dist/esm/{sqm-partner-info-modal-view-d6f3a215.js → sqm-partner-info-modal-view-e8efbef1.js} +5 -0
  8. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  9. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  10. package/dist/esm-es5/sqm-partner-info-modal-view-e8efbef1.js +1 -0
  11. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  12. package/dist/mint-components/mint-components.esm.js +1 -1
  13. package/dist/mint-components/p-1f387c7b.system.js +1 -1
  14. package/dist/mint-components/{p-cfc35705.system.entry.js → p-25b32748.system.entry.js} +1 -1
  15. package/dist/mint-components/{p-56b33268.system.entry.js → p-41415f9a.system.entry.js} +1 -1
  16. package/dist/mint-components/p-58c525ce.system.js +1 -0
  17. package/dist/mint-components/{p-ff013776.entry.js → p-7f1bc92b.entry.js} +1 -1
  18. package/dist/mint-components/p-b0177b7f.js +1 -0
  19. package/dist/mint-components/{p-3596e241.entry.js → p-fa227290.entry.js} +2 -2
  20. package/docs/docs.docx +0 -0
  21. package/docs/raisins.json +1 -1
  22. package/package.json +1 -1
  23. package/dist/esm-es5/sqm-partner-info-modal-view-d6f3a215.js +0 -1
  24. package/dist/mint-components/p-0afa6148.js +0 -1
  25. package/dist/mint-components/p-be6a0dee.system.js +0 -1
@@ -0,0 +1 @@
1
+ import{h as l}from"./p-083180bf.js";import{i as e}from"./p-13d8ecad.js";import{c as a}from"./p-cef45012.js";const s={Dialog:{"&::part(panel)":{maxWidth:"480px"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large)",fontSize:"var(--sl-font-size-small)",overflow:"visible"},"&::part(overlay)":{background:"var(--sl-overlay-background-color)"}},DialogTitle:{fontSize:"var(--sl-font-size-x-large)",fontWeight:"600",padding:"var(--sl-spacing-large) 0 0 0",margin:"0"},FormFields:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)",marginTop:"var(--sl-spacing-large)"},ErrorMessage:{marginTop:"var(--sl-spacing-x-small)"},SearchInput:{"&::part(base)":{border:"none",borderBottom:"1px solid var(--sl-color-neutral-300)",borderRadius:"0"}},SelectMenu:{maxHeight:"300px"},DescriptionContainer:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)",margin:"0","& > p":{margin:"0"}},CheckboxWrapper:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},Checkbox:{"&::part(label)":{fontSize:"var(--sl-font-size-small)"}},SubmitButton:{width:"100%",marginTop:"var(--sl-spacing-large)","&::part(base)":{color:"var(--sqm-primary-button-color)",backgroundColor:"var(--sqm-primary-button-background)",border:"var(--sqm-primary-button-color-border)"}}};function o(o){var r,t;const{states:i,callbacks:n,text:p}=o,c=a(s),d=c.toString(),u=e.formatMessage({id:"supportDescriptionExistingPartner",defaultMessage:p.supportDescriptionExistingPartner},{supportLink:l("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},p.supportLink)}),m=i.isExistingPartner?l("span",{class:c.classes.DescriptionContainer},l("p",null,p.descriptionExistingPartner),l("p",null,u)):l("p",{class:c.classes.DescriptionContainer},p.descriptionNewPartner),v=i.isExistingPartner?p.confirmButtonLabel:p.submitButtonLabel,b=e.formatMessage({id:"bankingCollectionText",defaultMessage:p.allowBankingCollection},{termsAndConditionsLink:l("a",{href:p.termsAndConditionsLink,target:"_blank"},p.termsAndConditionsLabel)});return l("div",null,l("style",{type:"text/css"}," ",d),l("div",{class:c.classes.FormFields},m,l("sl-select",{exportparts:"label: input-label, base: input-base, menu: select-menu",label:p.countryLabel,value:i.countryCode,disabled:i.submitting||!!i.countryCode&&i.isExistingPartner,required:!0,hoist:!0,"onSl-select":n.onCountryChange},l("sl-input",{class:c.classes.SearchInput,placeholder:p.searchCountryPlaceholder,onKeyDown:l=>l.stopPropagation(),"onSl-input":l=>{var e;n.setCountrySearch(null===(e=l.target)||void 0===e?void 0:e.value)}}),l("div",{class:c.classes.SelectMenu},null===(r=i.filteredCountries)||void 0===r?void 0:r.map((e=>l("sl-menu-item",{value:e.countryCode},e.displayName))))),l("sl-select",{exportparts:"label: input-label, base: input-base",label:p.currencyLabel,value:i.currency,disabled:i.submitting||!!i.currency&&i.isExistingPartner,required:!0,hoist:!0,"onSl-select":n.onCurrencyChange},l("sl-input",{class:c.classes.SearchInput,placeholder:p.searchCurrencyPlaceholder,onKeyDown:l=>l.stopPropagation(),"onSl-input":l=>{var e;return n.setCurrencySearch(null===(e=l.target)||void 0===e?void 0:e.value)}}),l("div",{class:c.classes.SelectMenu},null===(t=i.filteredCurrencies)||void 0===t?void 0:t.map((e=>l("sl-menu-item",{value:e.currencyCode},e.currencyCode," - ",e.displayName))))),l("div",{class:c.classes.CheckboxWrapper},l("sl-checkbox",{class:c.classes.Checkbox,checked:!0===i.allowBankingCollection,"onSl-change":n.onCheckboxChange,disabled:i.submitting,required:!0,value:i.allowBankingCollection,id:"allowBankingCollection",name:"/allowBankingCollection"},b))),i.error&&l("div",{class:c.classes.ErrorMessage},l("sqm-form-message",{class:c.classes.ErrorMessage,type:"error"},l("p",{part:"alert-description"},i.error))),l("sl-button",{slot:"footer",type:"primary",loading:i.submitting,disabled:i.submitting||!i.countryCode||!i.currency||!i.allowBankingCollection,onClick:n.onSubmit,class:c.classes.SubmitButton,exportparts:"base: primarybutton-base"},v))}function r(e){const{states:r,text:t}=e,i=a(s),n=i.toString();return r.open?l("div",null,l("style",{type:"text/css"}," ",n),l("sl-dialog",{class:i.classes.Dialog,open:r.open,noHeader:!0,label:r.isExistingPartner?t.modalHeaderExistingPartner:t.modalHeader,"onSl-request-close":l=>{l.preventDefault()},"onSl-hide":l=>{var e;"SL-DIALOG"===(null===(e=l.target)||void 0===e?void 0:e.tagName)&&l.preventDefault()}},l("h2",{class:i.classes.DialogTitle},r.isExistingPartner?t.modalHeaderExistingPartner:t.modalHeader),l(o,Object.assign({},e)))):l("div",null)}export{r as P,o as a}
@@ -1,4 +1,4 @@
1
- import{h as r,r as t}from"./p-083180bf.js";import{i as o}from"./p-13d8ecad.js";import{k as n,f as e,n as a,u as i}from"./p-a7fc1e02.js";import{d as s,q as l,w as c,J as u,$ as d,i as p,p as m,L as v}from"./p-8a6531d2.js";import{c as b}from"./p-c1086930.js";import{g as f}from"./p-9ec99ced.js";import{c as h}from"./p-cef45012.js";import{T as y}from"./p-c813ec64.js";import{g}from"./p-5c52100b.js";import{a as q,P as x}from"./p-0afa6148.js";import{S as C,a as k,P as w}from"./p-4f9dc974.js";import{T as I}from"./p-28ed2ae9.js";import{p as S}from"./p-13f3a647.js";import{u as P}from"./p-eae44b42.js";const T=s.gql`
1
+ import{h as r,r as t}from"./p-083180bf.js";import{i as o}from"./p-13d8ecad.js";import{k as n,f as e,n as a,u as i}from"./p-a7fc1e02.js";import{d as s,q as l,w as c,J as u,$ as d,i as p,p as m,L as v}from"./p-8a6531d2.js";import{c as b}from"./p-c1086930.js";import{g as f}from"./p-9ec99ced.js";import{c as h}from"./p-cef45012.js";import{T as y}from"./p-c813ec64.js";import{g}from"./p-5c52100b.js";import{a as q,P as x}from"./p-b0177b7f.js";import{S as C,a as k,P as w}from"./p-4f9dc974.js";import{T as I}from"./p-28ed2ae9.js";import{p as S}from"./p-13f3a647.js";import{u as P}from"./p-eae44b42.js";const T=s.gql`
2
2
  mutation upsertUser($userInput: UserInput!) {
3
3
  upsertUser(userInput: $userInput) {
4
4
  id
@@ -113,4 +113,4 @@ import{h as r,r as t}from"./p-083180bf.js";import{i as o}from"./p-13d8ecad.js";i
113
113
  }
114
114
  }
115
115
  }
116
- `),A=class{constructor(r){t(this,r),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 {supportLink} or sign up for this referral program with a different email.",this.supportLink="Support",this.allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",this.termsAndConditionsLabel="terms and conditions",this.termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html",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 fill out all fields.",this.inModal=!1,this.stateController='{"sqm-partner-info-modal":{"states":{"open":false}}}',a(this)}disconnectedCallback(){}getTextProps(){return f(this)}render(){const t=p()?function(r){const[t,o]=n("US"),[e,a]=n(""),[i,s]=n(""),[l,c]=n(!1),u=S(r.stateController);return b({states:{open:!1,loading:!1,submitting:!1,isExistingPartner:!1,countryCode:t,currency:e,error:i,success:!1,filteredCountries:[],filteredCurrencies:[],allowBankingCollection:l,disabled:!1},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)},onCheckboxChange:r=>{c(r.target.checked)},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,supportLink:r.supportLink,modalHeaderExistingPartner:r.modalHeaderExistingPartner}},r.demoData||((null==u?void 0:u["sqm-partner-info-modal"])||u||{}),{arrayMerge:(r,t)=>t})}(this):function(r){var t,o,a,s,l,u,p;const b=v(),f=m(w),{data:h,loading:y,refetch:q}=c(D,{}),x=null==h?void 0:h.user,{data:C,loading:k}=c(N,{variables:{locale:b}}),{data:S,loading:P}=c(_,{}),[T,E]=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)||b.replace(/^.*_/,"")),[j,L]=n((null===(s=null===(a=null==x?void 0:x.impactConnection)||void 0===a?void 0:a.publisher)||void 0===s?void 0:s.currency)||""),{data:$}=c(g,{variables:{filter:T?{countryCode_eq:T}:{}}}),[z,{loading:A}]=d(U),[B,O]=n(!1),W=(null===(l=null==S?void 0:S.impactPayoutCountries)||void 0===l?void 0:l.data)||[],F=!!(null===(u=null==x?void 0:x.impactConnection)||void 0===u?void 0:u.publisher),M=i((()=>{var r,t,o;return F?(null===(r=null==C?void 0:C.currencies)||void 0===r?void 0:r.data)||[]:(null===(o=null===(t=null==$?void 0:$.impactFinanceNetworkSettings)||void 0===t?void 0:t.data)||void 0===o?void 0:o.reduce(((r,t)=>{var o,n;if(T&&t.countryCode!==T)return r;const e=null===(n=null===(o=null==C?void 0:C.currencies)||void 0===o?void 0:o.data)||void 0===n?void 0:n.find((r=>r.currencyCode===t.currency));return e?r.find((r=>r.currencyCode===t.currency))?r:[...r,e]:r}),[]))||[]}),[$,C,T,F]),R=i((()=>[...M].sort(((r,t)=>r.displayName.localeCompare(t.displayName)))),[M]),[H,Z]=n(""),[G,J]=n(""),[K,Q]=n((null===(p=null==S?void 0:S.impactPayoutCountries)||void 0===p?void 0:p.data)||[]),[V,X]=n(R||[]),[Y,rr]=n(""),[tr,or]=n(!1);e((()=>{var r;const t=null===(r=null==x?void 0:x.impactConnection)||void 0===r?void 0:r.publisher;h&&t&&(E(t.countryCode),L(t.currency))}),[h,x]),e((()=>{(null==W?void 0:W.length)&&(""===H.trim()?Q(W||[]):Q(W.filter((r=>r.displayName.toLowerCase().includes(H.toLowerCase())))||[]))}),[H,W]),e((()=>{(null==R?void 0:R.length)&&(""===G.trim()?X(R||[]):X(R.filter((r=>r.currencyCode.toLowerCase().includes(G.toLowerCase())))||[]))}),[G,R]);const nr=null==x?void 0:x.impactConnection;return console.log(nr,"impactConnection in partner modal"),{states:{open:!tr&&!y&&"NOT_STARTED"===(null==nr?void 0:nr.connectionStatus),loading:y||P||k,submitting:A,isExistingPartner:F,countryCode:T,currency:j,error:Y,success:tr,filteredCountries:K||[],filteredCurrencies:V||[],allowBankingCollection:B,disabled:y||A},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&&(E(n),L(""),rr(""))},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&&(L(n),rr(""))},onCheckboxChange:function(r){O(r.target.checked)},setCurrencySearch:J,setCountrySearch:Z,onSubmit:async function(){var t,o;if(B)if(T&&j)if(rr(""),x)try{const n={user:{id:x.id,accountId:x.accountId},firstName:x.firstName,lastName:x.lastName,countryCode:T,currency:j},e=await z({vars:n});if(!e||(null===(t=e)||void 0===t?void 0:t.message))return void rr(r.networkErrorText);const a=e.startImpactConnection;if(!(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 rr(t||r.networkErrorText),void console.error("Failed to create Impact connection:",null==a?void 0:a.validationErrors)}window.dispatchEvent(new Event(I)),await q(),null==f||f(!0),or(!0)}catch(t){console.error("Partner creation error:",t),rr(r.networkErrorText)}else rr(r.networkErrorText);else rr(r.missingFieldsErrorText);else rr(r.missingFieldsErrorText)},onClose:()=>or(!0)},text:r.getTextProps()}}(this);return r(this.inModal?q:x,Object.assign({},t))}};export{z as sqm_email_verification,A as sqm_partner_info_modal}
116
+ `),A=class{constructor(r){t(this,r),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 {supportLink} or sign up for this referral program with a different email.",this.supportLink="Support",this.allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information.",this.termsAndConditionsLabel="terms and conditions",this.termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html",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 fill out all fields.",this.inModal=!1,this.stateController='{"sqm-partner-info-modal":{"states":{"open":false}}}',a(this)}disconnectedCallback(){}getTextProps(){return f(this)}render(){const t=p()?function(r){const[t,o]=n("US"),[e,a]=n(""),[i,s]=n(""),[l,c]=n(!1),u=S(r.stateController);return b({states:{open:!1,loading:!1,submitting:!1,isExistingPartner:!1,countryCode:t,currency:e,error:i,success:!1,filteredCountries:[],filteredCurrencies:[],allowBankingCollection:l,disabled:!1},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)},onCheckboxChange:r=>{c(r.target.checked)},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,supportLink:r.supportLink,modalHeaderExistingPartner:r.modalHeaderExistingPartner}},r.demoData||((null==u?void 0:u["sqm-partner-info-modal"])||u||{}),{arrayMerge:(r,t)=>t})}(this):function(r){var t,o,a,s,l,u,p;const b=v(),f=m(w),{data:h,loading:y,refetch:q}=c(D,{}),x=null==h?void 0:h.user,{data:C,loading:k}=c(N,{variables:{locale:b}}),{data:S,loading:P}=c(_,{}),[T,E]=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)||b.replace(/^.*_/,"")),[j,L]=n((null===(s=null===(a=null==x?void 0:x.impactConnection)||void 0===a?void 0:a.publisher)||void 0===s?void 0:s.currency)||""),{data:$}=c(g,{variables:{filter:T?{countryCode_eq:T}:{}}}),[z,{loading:A}]=d(U),[B,O]=n(!1),W=(null===(l=null==S?void 0:S.impactPayoutCountries)||void 0===l?void 0:l.data)||[],F=!!(null===(u=null==x?void 0:x.impactConnection)||void 0===u?void 0:u.publisher),M=i((()=>{var r,t,o;return F?(null===(r=null==C?void 0:C.currencies)||void 0===r?void 0:r.data)||[]:(null===(o=null===(t=null==$?void 0:$.impactFinanceNetworkSettings)||void 0===t?void 0:t.data)||void 0===o?void 0:o.reduce(((r,t)=>{var o,n;if(T&&t.countryCode!==T)return r;const e=null===(n=null===(o=null==C?void 0:C.currencies)||void 0===o?void 0:o.data)||void 0===n?void 0:n.find((r=>r.currencyCode===t.currency));return e?r.find((r=>r.currencyCode===t.currency))?r:[...r,e]:r}),[]))||[]}),[$,C,T,F]),R=i((()=>[...M].sort(((r,t)=>r.displayName.localeCompare(t.displayName)))),[M]),[H,Z]=n(""),[G,J]=n(""),[K,Q]=n((null===(p=null==S?void 0:S.impactPayoutCountries)||void 0===p?void 0:p.data)||[]),[V,X]=n(R||[]),[Y,rr]=n(""),[tr,or]=n(!1);e((()=>{var r;const t=null===(r=null==x?void 0:x.impactConnection)||void 0===r?void 0:r.publisher;h&&t&&(E(t.countryCode),L(t.currency))}),[h,x]),e((()=>{(null==W?void 0:W.length)&&(""===H.trim()?Q(W||[]):Q(W.filter((r=>r.displayName.toLowerCase().includes(H.toLowerCase())))||[]))}),[H,W]),e((()=>{(null==R?void 0:R.length)&&(""===G.trim()?X(R||[]):X(R.filter((r=>r.currencyCode.toLowerCase().includes(G.toLowerCase())))||[]))}),[G,R]);const nr=null==x?void 0:x.impactConnection;return console.log(nr,"impactConnection in partner modal"),{states:{open:!tr&&!y&&"NOT_STARTED"===(null==nr?void 0:nr.connectionStatus),loading:y||P||k,submitting:A,isExistingPartner:F,countryCode:T,currency:j,error:Y,success:tr,filteredCountries:K||[],filteredCurrencies:V||[],allowBankingCollection:B,disabled:y||A},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&&(E(n),L(""),rr(""))},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&&(L(n),rr(""))},onCheckboxChange:function(r){O(r.target.checked)},setCurrencySearch:J,setCountrySearch:Z,onSubmit:async function(){var t,o;if(B)if(T&&j)if(rr(""),x)try{const n={user:{id:x.id,accountId:x.accountId},firstName:x.firstName,lastName:x.lastName,countryCode:T,currency:j},e=await z({vars:n});if(!e||(null===(t=e)||void 0===t?void 0:t.message))return void rr(r.networkErrorText);const a=e.startImpactConnection;if(!(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 rr(t||r.networkErrorText),void console.error("Failed to create Impact connection:",null==a?void 0:a.validationErrors)}window.dispatchEvent(new Event(I)),await q(),null==f||f(!0),or(!0)}catch(t){console.error("Partner creation error:",t),rr(r.networkErrorText)}else rr(r.networkErrorText);else rr(r.missingFieldsErrorText);else rr(r.missingFieldsErrorText)},onClose:()=>or(!0)},text:r.getTextProps()}}(this);return r(this.inModal?q:x,Object.assign({},t))}};export{z as sqm_email_verification,A as sqm_partner_info_modal}
package/docs/docs.docx CHANGED
Binary file