@saasquatch/mint-components 1.15.0-141 → 1.15.0-143
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/{IndirectTaxDetailsView-eb39e4e0.js → IndirectTaxDetailsView-7f6a93d0.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-8c344799.js → ShadowViewAddon-677229ca.js} +1 -1
- package/dist/cjs/{global-271f7a23.js → global-304d7dd5.js} +8 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +42 -3
- package/dist/cjs/sqm-big-stat_44.cjs.entry.js +2 -2
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-b2cc45a4.js → sqm-portal-email-verification-view-a5fb2542.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-ebf2e814.js → sqm-portal-profile-view-48a96d6d.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +6 -6
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +2 -2
- package/dist/cjs/{utils-c8a94902.js → utils-a6522d22.js} +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +39 -0
- package/dist/collection/global/styles.js +8 -6
- package/dist/collection/global/styles.ts +5 -5
- package/dist/esm/{IndirectTaxDetailsView-ef887dae.js → IndirectTaxDetailsView-6230d141.js} +2 -2
- package/dist/esm/{ShadowViewAddon-5f084b5a.js → ShadowViewAddon-f2d7befa.js} +1 -1
- package/dist/esm/{global-03bc4bb2.js → global-cf7f0da3.js} +8 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +42 -3
- package/dist/esm/sqm-big-stat_44.entry.js +2 -2
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-2698d50e.js → sqm-portal-email-verification-view-b0ba14e0.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-0c3c35c6.js → sqm-portal-profile-view-ff58a280.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +6 -6
- package/dist/esm/sqm-tax-and-cash.entry.js +2 -2
- package/dist/esm/{utils-f37fadf4.js → utils-51f47651.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-ef887dae.js → IndirectTaxDetailsView-6230d141.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-5f084b5a.js → ShadowViewAddon-f2d7befa.js} +1 -1
- package/dist/esm-es5/{global-03bc4bb2.js → global-cf7f0da3.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-2698d50e.js → sqm-portal-email-verification-view-b0ba14e0.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-0c3c35c6.js → sqm-portal-profile-view-ff58a280.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/{utils-f37fadf4.js → utils-51f47651.js} +1 -1
- package/dist/mint-components/global/styles.ts +5 -5
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-b8dc1bbb.js → p-061d3efa.js} +1 -1
- package/dist/mint-components/{p-efc42205.system.entry.js → p-13d5c629.system.entry.js} +1 -1
- package/dist/mint-components/{p-96df553d.system.entry.js → p-1440f878.system.entry.js} +1 -1
- package/dist/mint-components/p-1b3c16f8.entry.js +33 -0
- package/dist/mint-components/{p-99b85ec9.entry.js → p-1dac71a2.entry.js} +1 -1
- package/dist/mint-components/{p-965c1768.system.entry.js → p-21db3fc4.system.entry.js} +1 -1
- package/dist/mint-components/{p-e5254112.system.entry.js → p-23b2f138.system.entry.js} +1 -1
- package/dist/mint-components/{p-da0cb9a9.system.entry.js → p-26199d9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-edb6a540.system.entry.js → p-310da87e.system.entry.js} +1 -1
- package/dist/mint-components/{p-b7f8d388.entry.js → p-36b8d701.entry.js} +5 -5
- package/dist/mint-components/{p-89e8db56.entry.js → p-36e33e25.entry.js} +1 -1
- package/dist/mint-components/{p-610cf4d6.entry.js → p-4258178f.entry.js} +1 -1
- package/dist/mint-components/{p-114fa6b4.system.js → p-47e30387.system.js} +1 -1
- package/dist/mint-components/{p-2c28a178.system.js → p-47ee88dc.system.js} +1 -1
- package/dist/mint-components/{p-aa00d694.js → p-4ff4d197.js} +1 -1
- package/dist/mint-components/{p-0467e099.entry.js → p-50da103a.entry.js} +1 -1
- package/dist/mint-components/{p-747a6ed4.entry.js → p-5b0a8b42.entry.js} +1 -1
- package/dist/mint-components/{p-8cee88ec.system.entry.js → p-63cf9fed.system.entry.js} +1 -1
- package/dist/mint-components/{p-e7626eed.system.js → p-6a1583e8.system.js} +1 -1
- package/dist/mint-components/{p-978b150a.entry.js → p-756c4856.entry.js} +1 -1
- package/dist/mint-components/{p-08b7ea6d.system.js → p-8332f17d.system.js} +1 -1
- package/dist/mint-components/{p-0c5345e8.system.js → p-94e1f94a.system.js} +1 -1
- package/dist/mint-components/{p-ee0239c8.system.js → p-a87ae6ab.system.js} +1 -1
- package/dist/mint-components/{p-f7bd2414.entry.js → p-ad0076bd.entry.js} +1 -1
- package/dist/mint-components/{p-7e2b2d03.js → p-adde23bc.js} +1 -1
- package/dist/mint-components/{p-a7aef62d.system.entry.js → p-b5f42155.system.entry.js} +1 -1
- package/dist/mint-components/{p-57fc4ed1.js → p-c096b985.js} +1 -1
- package/dist/mint-components/{p-e316e43f.entry.js → p-d790efeb.entry.js} +1 -1
- package/dist/mint-components/{p-8cfddbb3.system.entry.js → p-e0d95369.system.entry.js} +1 -1
- package/dist/mint-components/{p-cdf41697.system.entry.js → p-e13d75aa.system.entry.js} +1 -1
- package/dist/mint-components/{p-7d338f5e.entry.js → p-e178cfb2.entry.js} +1 -1
- package/dist/mint-components/{p-3921d86d.system.entry.js → p-e1f210d6.system.entry.js} +1 -1
- package/dist/mint-components/{p-53f64def.js → p-e5a4f49e.js} +1 -1
- package/dist/mint-components/{p-da29d42d.system.js → p-e6c66511.system.js} +1 -1
- package/dist/mint-components/{p-d9ba31b9.entry.js → p-e8078b7d.entry.js} +1 -1
- package/dist/mint-components/{p-48ce5a11.system.entry.js → p-ee8543cc.system.entry.js} +1 -1
- package/dist/mint-components/{p-72d7d6d6.system.entry.js → p-ef528b9a.system.entry.js} +1 -1
- package/dist/mint-components/{p-755c8c16.js → p-f655c9ae.js} +1 -1
- package/dist/mint-components/{p-49ad34b9.entry.js → p-ffb1969e.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-6fbfa37b.entry.js +0 -33
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-c7c11325.js";import"./p-755c8c16.js";import{k as r,f as i,n as o}from"./p-63e29387.js";import{d as s,J as a,w as l,$ as n,i as u}from"./p-0ec54f97.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-6951663b.js";import"./p-cef45012.js";import"./p-204861a6.js";import{P as c}from"./p-53f64def.js";import{i as f}from"./p-513f5d80.js";const v=s.gql`
|
|
2
|
-
query {
|
|
3
|
-
viewer {
|
|
4
|
-
... on User {
|
|
5
|
-
id
|
|
6
|
-
accountId
|
|
7
|
-
firstName
|
|
8
|
-
lastName
|
|
9
|
-
email
|
|
10
|
-
countryCode
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
`,h=s.gql`
|
|
15
|
-
mutation (
|
|
16
|
-
$id: String!
|
|
17
|
-
$accountId: String!
|
|
18
|
-
$firstName: String!
|
|
19
|
-
$lastName: String!
|
|
20
|
-
) {
|
|
21
|
-
upsertUser(
|
|
22
|
-
userInput: {
|
|
23
|
-
id: $id
|
|
24
|
-
accountId: $accountId
|
|
25
|
-
firstName: $firstName
|
|
26
|
-
lastName: $lastName
|
|
27
|
-
}
|
|
28
|
-
) {
|
|
29
|
-
firstName
|
|
30
|
-
lastName
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
`,p={country:"",email:"",firstName:"",lastName:"",errors:{},error:""},N=class{constructor(e){t(this,e),this.ignored=!0,this.firstnametext="First Name",this.lastnametext="Last Name",this.emailtext="Email",this.countrytext="Country",this.editProfileHeader="Edit your profile",this.editProfileSubHeader="Personal Information",this.submitChangeButtonText="Submit Changes",this.hideCountry=!1,this.networkRequestMessage="An error occurred while loading this page. Please refresh the page.",this.fieldEmptyText="Field is required",this.formErrorText="Please correct the errors below to update your profile.",this.submissionSuccessText="Your profile has been successfully updated.",o(this)}disconnectedCallback(){}render(){const t=u()?function(t){return d({states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!t.hideCountry,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"CA"},text:{firstnametext:t.firstnametext,lastnametext:t.lastnametext,emailtext:t.emailtext,countrytext:t.countrytext,editProfileHeader:t.editProfileHeader,editProfileSubHeader:t.editProfileSubHeader,submitChangeButtonText:t.submitChangeButtonText,submissionSuccessText:t.submissionSuccessText,fieldEmptyText:t.fieldEmptyText},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:t=>console.log(t),onChange:t=>console.log(t)}},t.demoData||{},{arrayMerge:(t,e)=>e})}(m(this)):function(t){const e=a(),[o,s]=r(!1),[u,d]=r(void 0),[m,c]=r(p),N=l(v,{},!(null==e?void 0:e.jwt)),[b,g]=n(h);return i((()=>{(null==g?void 0:g.loading)||((null==g?void 0:g.errors)?c((t=>{var e,r,i;return{...t,error:null===(i=null===(r=null===(e=null==g?void 0:g.errors)||void 0===e?void 0:e.response)||void 0===r?void 0:r.errors)||void 0===i?void 0:i[0].message}})):(d((t=>{var e;return{...t,...null===(e=null==g?void 0:g.data)||void 0===e?void 0:e.upsertUser}})),(null==g?void 0:g.data)&&s(!0)))}),[null==g?void 0:g.loading]),i((()=>{var t,e;d((t=>{var e;return{...t,...null===(e=null==N?void 0:N.data)||void 0===e?void 0:e.viewer}})),c({...p,...null===(t=N.data)||void 0===t?void 0:t.viewer,...null===(e=g.data)||void 0===e?void 0:e.upsertUser})}),[null==N?void 0:N.data]),i((()=>{var e,r;(null===(e=null==g?void 0:g.errors)||void 0===e?void 0:e.message)&&c({...null===(r=N.data)||void 0===r?void 0:r.viewer,error:t.networkRequestMessage})}),[null==g?void 0:g.errors]),{states:{success:o,loading:(null==N?void 0:N.loading)||g.loading,submitDisabled:!1,showCountry:!t.hideCountry,formState:m,user:u,text:{firstnametext:t.firstnametext,lastnametext:t.lastnametext,countrytext:t.countrytext,emailtext:t.emailtext,editProfileHeader:t.editProfileHeader,editProfileSubHeader:t.editProfileSubHeader,submitChangeButtonText:t.submitChangeButtonText}},callbacks:{onSubmit:()=>{if(s(!1),m.firstName&&m.lastName)return b({id:null==e?void 0:e.id,accountId:null==e?void 0:e.accountId,firstName:m.firstName,lastName:m.lastName}),void c((t=>({...t,errors:{},error:""})));const r={};m.firstName||(r.firstName={message:t.fieldEmptyText}),m.lastName||(r.lastName={message:t.fieldEmptyText}),f(r)||c((e=>({...e,error:t.formErrorText}))),c((t=>({...t,errors:r})))},onChange:t=>{const{name:e,value:r}=t.target;c((t=>({...t,[e]:r})))}}}}(m(this));return e(c,Object.assign({},t))}};export{N as sqm_portal_profile}
|