@saasquatch/mint-components 1.2.1 → 1.2.2-11

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 (200) hide show
  1. package/CHANGELOG.md +32 -9
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/{sqm-divided-layout_22.cjs.entry.js → sqm-divided-layout_24.cjs.entry.js} +3846 -88
  5. package/dist/cjs/sqm-hero-view-9a179fd2.js +77 -0
  6. package/dist/cjs/sqm-hero.cjs.entry.js +33 -0
  7. package/dist/cjs/{sqm-navigation-sidebar-item-view-089d0eed.js → sqm-navigation-sidebar-item-view-647457cc.js} +2 -2
  8. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  9. package/dist/cjs/{sqm-portal-change-password-view-8d932bce.js → sqm-portal-change-password-view-faf6ad39.js} +15 -8
  10. package/dist/cjs/sqm-portal-change-password.cjs.entry.js +59 -4
  11. package/dist/cjs/{sqm-portal-email-verification-view-d6b7b37e.js → sqm-portal-email-verification-view-626fc886.js} +3 -3
  12. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +14 -2
  13. package/dist/cjs/sqm-portal-footer-view-be3adcf2.js +80 -0
  14. package/dist/cjs/sqm-portal-footer.cjs.entry.js +58 -0
  15. package/dist/cjs/{sqm-portal-profile-view-db5658ba.js → sqm-portal-profile-view-76e3e4bb.js} +5 -5
  16. package/dist/cjs/sqm-portal-profile.cjs.entry.js +25 -7
  17. package/dist/cjs/{sqm-portal-reset-password-view-3980aa63.js → sqm-portal-reset-password-view-b7b52d16.js} +10 -6
  18. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +42 -4
  19. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  20. package/dist/collection/assets/PoweredBySaaSquatch.png +0 -0
  21. package/dist/collection/collection-manifest.json +2 -0
  22. package/dist/collection/components/sqm-hero/sqm-hero-view.js +73 -0
  23. package/dist/collection/components/sqm-hero/sqm-hero.js +95 -0
  24. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +2 -2
  25. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +2 -2
  26. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +15 -8
  27. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +215 -2
  28. package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +11 -1
  29. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +3 -3
  30. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +55 -3
  31. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -0
  32. package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +11 -0
  33. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +65 -0
  34. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +305 -0
  35. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +5 -5
  36. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +90 -12
  37. package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +3 -0
  38. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +3 -3
  39. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +28 -2
  40. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +10 -6
  41. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +137 -1
  42. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +10 -3
  43. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +1 -1
  44. package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +0 -6
  45. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +10 -0
  46. package/dist/collection/stories/ChangePassword.stories.js +72 -2
  47. package/dist/collection/stories/Hero.stories.js +98 -0
  48. package/dist/collection/stories/NewPortal.stories.js +19 -1
  49. package/dist/collection/stories/PortalEmailVerification.stories.js +8 -0
  50. package/dist/collection/stories/PortalFooter.stories.js +21 -0
  51. package/dist/collection/stories/PortalProfile.stories.js +18 -0
  52. package/dist/collection/stories/PortalRegister.stories.js +7 -3
  53. package/dist/collection/stories/PortalResetPassword.stories.js +42 -0
  54. package/dist/collection/stories/PortalTemplates.stories.js +143 -0
  55. package/dist/collection/stories/PoweredByImg.stories.js +14 -0
  56. package/dist/collection/stories/ProgramMenu.stories.js +39 -0
  57. package/dist/collection/stories/Router.stories.js +42 -6
  58. package/dist/collection/stories/UseBigStat.stories.js +1 -0
  59. package/dist/esm/loader.js +1 -1
  60. package/dist/esm/mint-components.js +1 -1
  61. package/dist/esm/{sqm-divided-layout_22.entry.js → sqm-divided-layout_24.entry.js} +3844 -88
  62. package/dist/esm/sqm-hero-view-5b9bbae2.js +75 -0
  63. package/dist/esm/sqm-hero.entry.js +29 -0
  64. package/dist/esm/{sqm-navigation-sidebar-item-view-a75802bb.js → sqm-navigation-sidebar-item-view-000b0afb.js} +2 -2
  65. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  66. package/dist/esm/{sqm-portal-change-password-view-8dbe1ea3.js → sqm-portal-change-password-view-24a4adf7.js} +15 -8
  67. package/dist/esm/sqm-portal-change-password.entry.js +59 -4
  68. package/dist/esm/{sqm-portal-email-verification-view-964d21fe.js → sqm-portal-email-verification-view-03495ffa.js} +3 -3
  69. package/dist/esm/sqm-portal-email-verification.entry.js +14 -2
  70. package/dist/esm/sqm-portal-footer-view-728c427c.js +77 -0
  71. package/dist/esm/sqm-portal-footer.entry.js +54 -0
  72. package/dist/esm/{sqm-portal-profile-view-2801882b.js → sqm-portal-profile-view-72e966e2.js} +5 -5
  73. package/dist/esm/sqm-portal-profile.entry.js +25 -7
  74. package/dist/esm/{sqm-portal-reset-password-view-6c1d23eb.js → sqm-portal-reset-password-view-1441849e.js} +10 -6
  75. package/dist/esm/sqm-portal-reset-password.entry.js +42 -4
  76. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  77. package/dist/esm-es5/loader.js +1 -1
  78. package/dist/esm-es5/mint-components.js +1 -1
  79. package/dist/esm-es5/sqm-divided-layout_24.entry.js +1 -0
  80. package/dist/esm-es5/sqm-hero-view-5b9bbae2.js +1 -0
  81. package/dist/esm-es5/sqm-hero.entry.js +1 -0
  82. package/dist/esm-es5/sqm-navigation-sidebar-item-view-000b0afb.js +1 -0
  83. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  84. package/dist/esm-es5/sqm-portal-change-password-view-24a4adf7.js +1 -0
  85. package/dist/esm-es5/sqm-portal-change-password.entry.js +1 -1
  86. package/dist/esm-es5/sqm-portal-email-verification-view-03495ffa.js +1 -0
  87. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  88. package/dist/esm-es5/sqm-portal-footer-view-728c427c.js +1 -0
  89. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -0
  90. package/dist/esm-es5/{sqm-portal-profile-view-2801882b.js → sqm-portal-profile-view-72e966e2.js} +1 -1
  91. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  92. package/dist/esm-es5/sqm-portal-reset-password-view-1441849e.js +1 -0
  93. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  94. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  95. package/dist/mint-components/mint-components.esm.js +1 -1
  96. package/dist/mint-components/p-0747c54d.system.js +1 -1
  97. package/dist/mint-components/{p-1fd262be.system.js → p-1adc0488.system.js} +1 -1
  98. package/dist/mint-components/p-20fa60f6.system.entry.js +1 -0
  99. package/dist/mint-components/p-2addaaff.system.entry.js +1 -0
  100. package/dist/mint-components/p-3a9d8fd9.js +1 -0
  101. package/dist/mint-components/p-3adace56.entry.js +1 -0
  102. package/dist/mint-components/p-51db87f4.js +1 -0
  103. package/dist/mint-components/p-5442b8ad.js +1 -0
  104. package/dist/mint-components/p-609d6b60.system.entry.js +1 -0
  105. package/dist/mint-components/p-634d5bcc.entry.js +222 -0
  106. package/dist/mint-components/p-659298ed.system.entry.js +1 -0
  107. package/dist/mint-components/p-69e263e0.entry.js +1 -0
  108. package/dist/mint-components/p-6dfcecca.entry.js +33 -0
  109. package/dist/mint-components/p-70dd58a4.system.js +1 -0
  110. package/dist/mint-components/p-759095b4.entry.js +1 -0
  111. package/dist/mint-components/p-79e5f02c.entry.js +1 -0
  112. package/dist/mint-components/p-875d1fdc.system.entry.js +1 -0
  113. package/dist/mint-components/p-8a9ebc3f.system.entry.js +1 -0
  114. package/dist/mint-components/p-8dc6f789.js +1 -0
  115. package/dist/mint-components/p-a741d57c.system.js +1 -0
  116. package/dist/mint-components/p-b7159234.system.js +1 -0
  117. package/dist/mint-components/p-c196dc61.js +1 -0
  118. package/dist/mint-components/{p-eb944c84.system.js → p-c366f729.system.js} +1 -1
  119. package/dist/mint-components/p-c5c2d834.system.js +1 -0
  120. package/dist/mint-components/p-d24845cd.js +1 -0
  121. package/dist/mint-components/{p-5d46f5cc.entry.js → p-d37839f3.entry.js} +1 -1
  122. package/dist/mint-components/p-d441144e.js +1 -0
  123. package/dist/mint-components/{p-0396ec57.system.entry.js → p-d65a1cfd.system.entry.js} +1 -1
  124. package/dist/mint-components/p-d95dc3f1.system.js +1 -0
  125. package/dist/mint-components/p-dfcc1950.entry.js +1 -0
  126. package/dist/mint-components/p-e48cd2c5.system.entry.js +1 -0
  127. package/dist/mint-components/p-e6ce03b2.system.entry.js +1 -0
  128. package/dist/mint-components/p-fa4d1c58.entry.js +1 -0
  129. package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +13 -0
  130. package/dist/types/components/sqm-hero/sqm-hero.d.ts +16 -0
  131. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +10 -0
  132. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +32 -0
  133. package/dist/types/components/sqm-portal-change-password/usePortalChangePassword.d.ts +11 -1
  134. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification-view.d.ts +2 -0
  135. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +9 -1
  136. package/dist/types/components/sqm-portal-email-verification/usePortalEmailVerification.d.ts +2 -0
  137. package/dist/types/components/sqm-portal-footer/PoweredByImg.d.ts +7 -0
  138. package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +16 -0
  139. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +57 -0
  140. package/dist/types/components/sqm-portal-profile/sqm-portal-profile-view.d.ts +3 -0
  141. package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +17 -5
  142. package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +3 -0
  143. package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +1 -0
  144. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +4 -0
  145. package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password-view.d.ts +7 -0
  146. package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +24 -0
  147. package/dist/types/components/sqm-portal-reset-password/usePortalResetPassword.d.ts +2 -4
  148. package/dist/types/components.d.ts +314 -12
  149. package/dist/types/saasquatch.d.ts +1 -1
  150. package/dist/types/stories/Hero.stories.d.ts +11 -0
  151. package/dist/types/stories/PortalFooter.stories.d.ts +10 -0
  152. package/dist/types/stories/PortalTemplates.stories.d.ts +88 -0
  153. package/dist/types/stories/PoweredByImg.stories.d.ts +7 -0
  154. package/dist/types/stories/ProgramMenu.stories.d.ts +28 -0
  155. package/dist/types/stories/Router.stories.d.ts +24 -3
  156. package/dist/types/stories/UseBigStat.stories.d.ts +6 -0
  157. package/dist/types/stories/templates.d.ts +4 -0
  158. package/grapesjs/grapesjs.js +1 -1
  159. package/package.json +2 -1
  160. package/dist/cjs/sqm-portal-login-view-20530cd5.js +0 -53
  161. package/dist/cjs/sqm-portal-login.cjs.entry.js +0 -119
  162. package/dist/cjs/sqm-program-menu.cjs.entry.js +0 -57
  163. package/dist/collection/components/sqm-program-menu/sqm-program-menu.css +0 -25
  164. package/dist/esm/sqm-portal-login-view-7e56a959.js +0 -51
  165. package/dist/esm/sqm-portal-login.entry.js +0 -115
  166. package/dist/esm/sqm-program-menu.entry.js +0 -53
  167. package/dist/esm-es5/sqm-divided-layout_22.entry.js +0 -1
  168. package/dist/esm-es5/sqm-navigation-sidebar-item-view-a75802bb.js +0 -1
  169. package/dist/esm-es5/sqm-portal-change-password-view-8dbe1ea3.js +0 -1
  170. package/dist/esm-es5/sqm-portal-email-verification-view-964d21fe.js +0 -1
  171. package/dist/esm-es5/sqm-portal-login-view-7e56a959.js +0 -1
  172. package/dist/esm-es5/sqm-portal-login.entry.js +0 -1
  173. package/dist/esm-es5/sqm-portal-reset-password-view-6c1d23eb.js +0 -1
  174. package/dist/esm-es5/sqm-program-menu.entry.js +0 -1
  175. package/dist/mint-components/p-18142b08.system.entry.js +0 -1
  176. package/dist/mint-components/p-2019910e.system.entry.js +0 -1
  177. package/dist/mint-components/p-3f40e878.js +0 -1
  178. package/dist/mint-components/p-42ca40ee.system.entry.js +0 -1
  179. package/dist/mint-components/p-4a4f97e3.system.js +0 -1
  180. package/dist/mint-components/p-4e298f2f.entry.js +0 -1
  181. package/dist/mint-components/p-4f7e972b.entry.js +0 -222
  182. package/dist/mint-components/p-511ee8d5.js +0 -1
  183. package/dist/mint-components/p-5c2d4489.entry.js +0 -33
  184. package/dist/mint-components/p-6dcb4084.js +0 -1
  185. package/dist/mint-components/p-6edab0e1.js +0 -1
  186. package/dist/mint-components/p-7b5f70cf.system.entry.js +0 -1
  187. package/dist/mint-components/p-7cf1b6bc.system.js +0 -1
  188. package/dist/mint-components/p-8a647b42.entry.js +0 -1
  189. package/dist/mint-components/p-8a9e36b0.entry.js +0 -1
  190. package/dist/mint-components/p-9ec68457.system.js +0 -1
  191. package/dist/mint-components/p-a19cb5dc.entry.js +0 -1
  192. package/dist/mint-components/p-ac1285f3.js +0 -1
  193. package/dist/mint-components/p-aca6d934.system.entry.js +0 -1
  194. package/dist/mint-components/p-ae8f2817.entry.js +0 -1
  195. package/dist/mint-components/p-bcd56164.system.entry.js +0 -1
  196. package/dist/mint-components/p-cccfe42a.system.js +0 -1
  197. package/dist/mint-components/p-d2dfc374.js +0 -1
  198. package/dist/mint-components/p-db23f907.system.entry.js +0 -1
  199. package/dist/mint-components/p-e896917e.entry.js +0 -1
  200. package/dist/mint-components/p-f305ea91.system.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{h as t}from"./p-64c3217a.js";import{j as s,c as a}from"./p-6f2bdfc9.js";import{A as r,a as e,b as o}from"./p-71f00041.js";import{T as n}from"./p-70e7a091.js";const i={Wrapper:r,Column:e,ForgotButtonContainer:{display:"inline",cursor:"pointer","font-size":"13px","font-weight":"600",color:"#AAAAAA",margin:"0"},ButtonsContainer:o};s.setup(a());const l=s.createStyleSheet(i),p=l.toString();function m(s){const{states:a,callbacks:r,content:e}=s;return t("div",{class:l.classes.Wrapper},t("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",p),t(n,{type:"h3"},e.pageLabel),t("sl-form",{class:l.classes.Column,"onSl-submit":r.submit},s.states.error&&t("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},s.states.error)),t("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:e.emailLabel||"Email",disabled:a.loading,required:!0}),t("div",null,t("sl-input",{exportparts:"label: input-label",type:"password",name:"/password",label:e.passwordLabel||"Password",disabled:a.loading,required:!0}),t("div",{class:l.classes.ForgotButtonContainer},e.forgotPasswordButton)),t("div",{class:l.classes.ButtonsContainer},t("sl-button",{submit:!0,loading:a.loading,exportparts:"base: primarybutton-base",type:"primary"},e.submitLabel||"Login"),e.secondaryButton)))}export{m as P}
@@ -1,33 +0,0 @@
1
- import{r as t,h as r}from"./p-64c3217a.js";import{k as e,f as o,m as a}from"./p-66a0f3a5.js";import"./p-74e83165.js";import{d as i,T as s,e as l,b as n,j as m}from"./p-66624f12.js";import"./p-6f2bdfc9.js";import{g as u}from"./p-b6d7ce7c.js";import{c as d}from"./p-c1086930.js";import"./p-70e7a091.js";import"./p-677e2a4f.js";import{P as c}from"./p-6dcb4084.js";const v=i.gql`
2
- query {
3
- viewer {
4
- ... on User {
5
- id
6
- accountId
7
- firstName
8
- lastName
9
- email
10
- countryCode
11
- }
12
- }
13
- }
14
- `,f=i.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(r){t(this,r),this.ignored=!0,this.firstnametext="First Name",this.lastnametext="Last Name",this.emailtext="Email",this.countrytext="Country",this.showCountry=!0,a(this)}disconnectedCallback(){}render(){const t=m()?function(t){return d({states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country"},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,r)=>r})}(u(this)):function(t){const r=s(),[a,i]=e(!1),[m,u]=e(void 0),[d,c]=e(p),N=l(v,{},!(null==r?void 0:r.jwt)),[h,b]=n(f);return o((()=>{(null==b?void 0:b.loading)||((null==b?void 0:b.errors)?c((t=>{var r,e,o;return{...t,error:null===(o=null===(e=null===(r=null==b?void 0:b.errors)||void 0===r?void 0:r.response)||void 0===e?void 0:e.errors)||void 0===o?void 0:o[0].message}})):(u((t=>{var r;return{...t,...null===(r=null==b?void 0:b.data)||void 0===r?void 0:r.upsertUser}})),(null==b?void 0:b.data)&&i(!0)))}),[null==b?void 0:b.loading]),o((()=>{var t,r;u((t=>{var r;return{...t,...null===(r=null==N?void 0:N.data)||void 0===r?void 0:r.viewer}})),c({...p,...null===(t=N.data)||void 0===t?void 0:t.viewer,...null===(r=b.data)||void 0===r?void 0:r.upsertUser})}),[null==N?void 0:N.data]),o((()=>{var t,r;(null===(t=null==b?void 0:b.errors)||void 0===t?void 0:t.message)&&c({...null===(r=N.data)||void 0===r?void 0:r.viewer,error:"Network request failed."})}),[null==b?void 0:b.errors]),{states:{success:a,loading:(null==N?void 0:N.loading)||b.loading,submitDisabled:!1,showCountry:t.showCountry,formState:d,user:m,text:{firstnametext:t.firstnametext,lastnametext:t.lastnametext,countrytext:t.countrytext,emailtext:t.emailtext}},callbacks:{onSubmit:()=>{if(i(!1),d.firstName&&d.lastName)return h({id:null==r?void 0:r.id,accountId:null==r?void 0:r.accountId,firstName:d.firstName,lastName:d.lastName}),void c((t=>({...t,errors:{},error:""})));const t={};d.firstName||(t.firstName={message:"Field can't be empty"}),d.lastName||(t.lastName={message:"Field can't be empty"}),t!=={}&&c((t=>({...t,error:"Please correct the errors below to update your profile."}))),c((r=>({...r,errors:t})))},onChange:t=>{const{name:r,value:e}=t.target;c((t=>({...t,[r]:e})))}}}}(u(this));return r(c,Object.assign({},t))}};export{N as sqm_portal_profile}
@@ -1 +0,0 @@
1
- import{h as l}from"./p-64c3217a.js";import{i as e}from"./p-74e83165.js";import{j as t,c as r}from"./p-6f2bdfc9.js";import{T as o}from"./p-70e7a091.js";import{P as a}from"./p-677e2a4f.js";function i(i){var s,n,d,p,m;const{states:u,callbacks:c}=i,{text:v,formState:b}=u,{errors:f,error:x}=b;t.setup(r());const y=t.createStyleSheet({FormStyle:{"& >*:not(:last-child)":{"margin-bottom":"32px"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},NameInputStyle:{"&:not(:last-child)":{"margin-right":"var(--sl-spacing-medium)"}}}),g=y.toString(),j=(null===(s=u.user)||void 0===s?void 0:s.countryCode)?e.formatDisplayName(null===(n=u.user)||void 0===n?void 0:n.countryCode,{type:"region"}):"";return l(a,Object.assign({},{direction:"row",padding:"xxx-large",gap:"48px",minWidth:"600px"}),l("style",{type:"text/css"},g),l(o,Object.assign({},{type:"h1"}),"Edit your profile"),l(o,Object.assign({},{type:"h2"}),"Personal Information"),l("form",{class:y.classes.FormStyle,onSubmit:c.onSubmit},u.success&&l("sqm-form-message",{exportparts:"success-icon"},l("div",{part:"successalert-text"},"Your profile has been successfully updated.")),x&&l("sqm-form-message",{class:y.classes.Error,type:"error",exportparts:"erroralert-icon"},l("div",{part:"erroralert-text"},x)),l(a,Object.assign({},{direction:"row",padding:"none",gap:"32px",minWidth:"50%"}),l("sl-input",Object.assign({class:y.classes.NameInputStyle,value:null===(d=u.user)||void 0===d?void 0:d.firstName,onInput:c.onChange,label:v.firstnametext,disabled:u.loading},(null==f?void 0:f.firstName)&&"valid"!==(null==f?void 0:f.firstName.status)?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{id:"firstName",name:"firstName",error:(null==f?void 0:f.firstName)&&"valid"!==(null==f?void 0:f.firstName.status)?null==f?void 0:f.firstName.message:void 0})),l("sl-input",Object.assign({class:y.classes.NameInputStyle,exportparts:"label: input-label",value:null===(p=u.user)||void 0===p?void 0:p.lastName,onInput:c.onChange,label:v.lastnametext,disabled:u.loading,id:"lastName",name:"lastName"},(null==f?void 0:f.lastName)&&"valid"!==(null==f?void 0:f.lastName.status)?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{error:(null==f?void 0:f.lastName)&&"valid"!==(null==f?void 0:f.lastName.status)?null==f?void 0:f.lastName.message:void 0}))),l("sl-input",{label:"Email",value:null===(m=u.user)||void 0===m?void 0:m.email,disabled:!0}),u.showCountry&&l("sl-input",{label:"Country",value:j,disabled:!0}),l("sl-button",{type:"primary",loading:u.loading,disabled:u.submitDisabled,onClick:l=>{c.onSubmit(l)},submit:!0},"Submit Changes")))}export{i as P}
@@ -1 +0,0 @@
1
- import{h as s}from"./p-64c3217a.js";import{i as e}from"./p-74e83165.js";import{j as t,c as r}from"./p-6f2bdfc9.js";import{A as a,a as o}from"./p-71f00041.js";import{T as i}from"./p-70e7a091.js";const n={Wrapper:a,Column:{...o}};t.setup(r());const p=t.createStyleSheet(n),m=p.toString();function l(t){const{states:r,callbacks:a,content:{email:o,verifyMessage:n}}=t;return s("div",{class:p.classes.Wrapper},s("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",m),s(i,{type:"h3"},"Verify your email"),s("sl-form",{class:p.classes.Column,"onSl-submit":a.submit},t.states.error&&s("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},t.states.error)),t.states.success&&s("sqm-form-message",{type:"success",exportparts:"successalert-icon"},s("div",{part:"successalert-text"},"Your verification email has been resent successfully")),s(i,{type:"p"},e.formatMessage({id:"verifyMessage",defaultMessage:n},{email:s("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),s("sl-button",{submit:!0,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Re-send Email")))}export{l as P}
@@ -1 +0,0 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(n,t){if(Object.defineProperty){Object.defineProperty(n,"raw",{value:t})}else{n.raw=t}return n};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(n){for(var t,e=1,a=arguments.length;e<a;e++){t=arguments[e];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))n[i]=t[i]}return n};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-b06ebc3a.system.js","./p-58d95c3c.system.js","./p-0f5ff224.system.js","./p-53cc16c2.system.js","./p-ac53f0e3.system.js","./p-4bd679a7.system.js","./p-07c29bf8.system.js","./p-7fe58f22.system.js","./p-eb944c84.system.js"],(function(n){"use strict";var t,e,a,i,r,s,o,u,l,c,d,m,f;return{setters:[function(n){t=n.r;e=n.h},function(n){a=n.k;i=n.f;r=n.m},function(){},function(n){s=n.d;o=n.T;u=n.e;l=n.b;c=n.j},function(){},function(n){d=n.g},function(n){m=n.c},function(){},function(){},function(n){f=n.P}],execute:function(){var v=s.gql(__makeTemplateObject(["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"],["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"]));var g=s.gql(__makeTemplateObject(["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"],["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"]));var _={country:"",email:"",firstName:"",lastName:"",errors:{},error:""};function N(n){var t=o();var e=a(false),r=e[0],s=e[1];var c=a(undefined),d=c[0],m=c[1];var f=a(_),N=f[0],y=f[1];var p=u(v,{},!(t===null||t===void 0?void 0:t.jwt));var b=l(g),h=b[0],j=b[1];i((function(){if(j===null||j===void 0?void 0:j.loading)return;if(j===null||j===void 0?void 0:j.errors){y((function(n){var t,e,a;return __assign(__assign({},n),{error:(a=(e=(t=j===null||j===void 0?void 0:j.errors)===null||t===void 0?void 0:t.response)===null||e===void 0?void 0:e.errors)===null||a===void 0?void 0:a[0].message})}))}else{m((function(n){var t;return __assign(__assign({},n),(t=j===null||j===void 0?void 0:j.data)===null||t===void 0?void 0:t.upsertUser)}));if(j===null||j===void 0?void 0:j.data)s(true)}}),[j===null||j===void 0?void 0:j.loading]);i((function(){var n,t;m((function(n){var t;return __assign(__assign({},n),(t=p===null||p===void 0?void 0:p.data)===null||t===void 0?void 0:t.viewer)}));y(__assign(__assign(__assign({},_),(n=p.data)===null||n===void 0?void 0:n.viewer),(t=j.data)===null||t===void 0?void 0:t.upsertUser))}),[p===null||p===void 0?void 0:p.data]);i((function(){var n,t;if((n=j===null||j===void 0?void 0:j.errors)===null||n===void 0?void 0:n.message){y(__assign(__assign({},(t=p.data)===null||t===void 0?void 0:t.viewer),{error:"Network request failed."}))}}),[j===null||j===void 0?void 0:j.errors]);var x=function(){s(false);if(N.firstName&&N.lastName){h({id:t===null||t===void 0?void 0:t.id,accountId:t===null||t===void 0?void 0:t.accountId,firstName:N.firstName,lastName:N.lastName});y((function(n){return __assign(__assign({},n),{errors:{},error:""})}));return}var n={};if(!N.firstName){n["firstName"]={message:"Field can't be empty"}}if(!N.lastName){n["lastName"]={message:"Field can't be empty"}}if(n!=={}){y((function(n){return __assign(__assign({},n),{error:"Please correct the errors below to update your profile."})}))}y((function(t){return __assign(__assign({},t),{errors:n})}))};return{states:{success:r,loading:(p===null||p===void 0?void 0:p.loading)||j.loading,submitDisabled:false,showCountry:n.showCountry,formState:N,user:d,text:{firstnametext:n.firstnametext,lastnametext:n.lastnametext,countrytext:n.countrytext,emailtext:n.emailtext}},callbacks:{onSubmit:x,onChange:function(n){var t=n.target,e=t.name,a=t.value;y((function(n){var t;return __assign(__assign({},n),(t={},t[e]=a,t))}))}}}}var y=n("sqm_portal_profile",function(){function n(n){t(this,n);this.ignored=true;this.firstnametext="First Name";this.lastnametext="Last Name";this.emailtext="Email";this.countrytext="Country";this.showCountry=true;r(this)}n.prototype.disconnectedCallback=function(){};n.prototype.render=function(){var n=c()?p(d(this)):N(d(this));return e(f,Object.assign({},n))};return n}());function p(n){return m({states:{success:false,loading:false,submitDisabled:false,showCountry:true,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(n){return console.log(n)},onChange:function(n){return console.log(n)}}},n.demoData||{},{arrayMerge:function(n,t){return t}})}}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-53cc16c2.system.js","./p-edde9d34.system.js","./p-07c29bf8.system.js"],(function(t){"use strict";var e,s,r,a,n,o,i;return{setters:[function(t){e=t.h},function(t){s=t.j;r=t.c},function(t){a=t.A;n=t.a;o=t.b},function(t){i=t.T}],execute:function(){t("P",d);var l={Wrapper:a,Column:n,ForgotButtonContainer:{display:"inline",cursor:"pointer","font-size":"13px","font-weight":"600",color:"#AAAAAA",margin:"0"},ButtonsContainer:o};var p="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";s.setup(r());var u=s.createStyleSheet(l);var c=u.toString();function d(t){var s=t.states,r=t.callbacks,a=t.content;return e("div",{class:u.classes.Wrapper},e("style",{type:"text/css"},p,c),e(i,{type:"h3"},a.pageLabel),e("sl-form",{class:u.classes.Column,"onSl-submit":r.submit},t.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.states.error)),e("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:a.emailLabel||"Email",disabled:s.loading,required:true}),e("div",null,e("sl-input",{exportparts:"label: input-label",type:"password",name:"/password",label:a.passwordLabel||"Password",disabled:s.loading,required:true}),e("div",{class:u.classes.ForgotButtonContainer},a.forgotPasswordButton)),e("div",{class:u.classes.ButtonsContainer},e("sl-button",{submit:true,loading:s.loading,exportparts:"base: primarybutton-base",type:"primary"},a.submitLabel||"Login"),a.secondaryButton)))}}}}));
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-64c3217a.js";import{m as a}from"./p-66a0f3a5.js";import{c as r,j as o}from"./p-66624f12.js";import"./p-6f2bdfc9.js";import{g as c}from"./p-b6d7ce7c.js";import{c as i}from"./p-c1086930.js";import"./p-71f00041.js";import{N as e}from"./p-ac1285f3.js";const p=class{constructor(s){t(this,s),a(this)}disconnectedCallback(){}render(){const t=o()?function(t){return i({states:{active:!1},data:{label:"Dashboard",icon:"house"}},t.demoData||{},{arrayMerge:(t,s)=>s})}(c(this)):function(t){return{states:{active:r().pathname===t.path},data:{label:t.label,icon:t.icon,path:t.path}}}(c(this));return s(e,Object.assign({},t))}};export{p as sqm_navigation_sidebar_item}
@@ -1 +0,0 @@
1
- import{r as o,h as s}from"./p-64c3217a.js";import{k as a,f as t,m as e}from"./p-66a0f3a5.js";import{i,$ as r,r as d,j as l}from"./p-66624f12.js";import{j as n}from"./p-e7e129ac.js";import"./p-6f2bdfc9.js";import{c}from"./p-c1086930.js";import"./p-71f00041.js";import"./p-70e7a091.js";import{P as m}from"./p-3f40e878.js";const p=class{constructor(s){o(this,s),this.ignored=!0,this.nextPage="/",this.confirmPassword=!1,e(this)}disconnectedCallback(){}render(){const{states:o,callbacks:e}=l()?c({states:{error:"",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0},callbacks:{submit:async()=>{console.log("submit")},failed:()=>{},gotoNextPage:()=>{}}},this.demoData||{},{arrayMerge:(o,s)=>s}):function({nextPage:o,confirmPassword:s}){var e,l,c,m,p,v;const[f,u]=a(!1),[b,h]=a(""),[g,w]=i(),[P,j]=r(),C=new URLSearchParams(window.location.search),k=C.get("oobCode");C.delete("oobCode");const x=C.get("nextPage"),V=()=>{C.delete("nextPage"),d.push({pathname:x||o,search:C.toString()&&"?"+C.toString()})};return t((()=>{var o;(null===(o=j.data)||void 0===o?void 0:o.resetManagedIdentityPassword)&&(u(!0),setTimeout((()=>{V()}),5e3))}),[null===(e=j.data)||void 0===e?void 0:e.resetManagedIdentityPassword]),t((()=>{g({oobCode:k})}),[k]),t((()=>{var o;(null===(o=null==w?void 0:w.errors)||void 0===o?void 0:o.message)&&h("Network request failed.")}),[null==w?void 0:w.errors]),{states:{loading:j.loading,reset:f,confirmPassword:s,error:(null===(p=null===(m=null===(c=null===(l=j.errors)||void 0===l?void 0:l.response)||void 0===c?void 0:c.errors)||void 0===m?void 0:m[0])||void 0===p?void 0:p.message)||b,oobCodeValidating:w.loading,oobCodeValid:null===(v=w.data)||void 0===v?void 0:v.verifyManagedIdentityPasswordResetCode.success},callbacks:{submit:async o=>{h("");let s=o.detail.formData;null==s||s.forEach(((o,a)=>{n.set(s,a,o)}));const a={oobCode:k,password:s.password};s.password===s.confirmPassword?await P(a):h("Passwords do not match.")},failed:()=>{d.push({pathname:"/",search:C.toString()&&"?"+C.toString()})},gotoNextPage:V}}}(this);return s(m,{states:o,callbacks:e})}};export{p as sqm_portal_reset_password}
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var s,t=1,n=arguments.length;t<n;t++){s=arguments[t];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a))e[a]=s[a]}return e};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-0f5ff224.system.js","./p-53cc16c2.system.js","./p-edde9d34.system.js"],(function(e){"use strict";var s,t,n,a,r;return{setters:[function(e){s=e.h},function(e){t=e.r},function(e){n=e.j;a=e.c},function(e){r=e.g}],execute:function(){e("N",i);function i(e){var i=e.states,c=e.data;var o={ItemContainer:__assign(__assign({display:"flex","background-color":""+(i.active?"#eaeaea":"#ffffff"),"border-radius":"8px",padding:"8px","text-decoration":"none",color:"#454444","align-items":"center"},r({direction:"row",size:"var(--sl-font-size-small)"})),{"&:hover":{cursor:"pointer",background:i.active?"#dddddd":"#f7f7f7"}}),Label:{margin:"0"},Icon:{"flex-shrink":"0"}};n.setup(a());var f=n.createStyleSheet(o);var l=f.toString();return s("a",{href:c.path,onClick:function(e){e.preventDefault();t.push(c.path)},class:f.classes.ItemContainer},s("style",{type:"text/css"},l),s("sl-icon",{class:f.classes.Icon,name:c.icon}),s("p",{class:f.classes.Label},c.label))}}}}));
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-64c3217a.js";import{k as o,f as a,m as i}from"./p-66a0f3a5.js";import{q as r,r as e,j as l}from"./p-66624f12.js";import{j as n}from"./p-e7e129ac.js";import"./p-6f2bdfc9.js";import{c as d}from"./p-c1086930.js";import"./p-71f00041.js";import"./p-70e7a091.js";import{P as c}from"./p-511ee8d5.js";const m=class{constructor(t){s(this,t),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Sign In",this.forgotPasswordLabel="Forgot Password?",this.registerLabel="Register",this.pageLabel="Sign in to your account",i(this)}disconnectedCallback(){}render(){const{states:s,callbacks:i}=l()?d({states:{error:"",loading:!1},callbacks:{submit:async()=>{console.log("submit")}}},this.demoData||{},{arrayMerge:(s,t)=>t}):function({nextPage:s}){var t,i,l,d;const[c,{loading:m,errors:u,data:p}]=r(),[h,v]=o(""),f=new URLSearchParams(window.location.search),g=f.get("nextPage");return a((()=>{var t;(null===(t=null==p?void 0:p.authenticateManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token)&&(f.delete("nextPage"),e.push({pathname:g||s,search:f.toString()&&"?"+f.toString()}))}),[null===(t=null==p?void 0:p.authenticateManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token]),a((()=>{var s;((null==u?void 0:u.message)||(null===(s=null==u?void 0:u.response)||void 0===s?void 0:s.error))&&v("Network request failed.")}),[u]),{states:{loading:m,error:(null===(d=null===(l=null===(i=null==u?void 0:u.response)||void 0===i?void 0:i.errors)||void 0===l?void 0:l[0])||void 0===d?void 0:d.message)||h},callbacks:{submit:async s=>{v("");let t=s.detail.formData;null==t||t.forEach(((s,o)=>{n.set(t,o,s)}));const o={email:t.email,password:t.password};await c(o)}}}}(this),m={forgotPasswordButton:t("slot",{name:"forgotPassword"},t("a",{onClick:()=>e.push("/forgotPassword")},this.forgotPasswordLabel)),secondaryButton:t("slot",{name:"secondaryButton"},t("sl-button",{type:"text",disabled:s.loading,onClick:()=>e.push("/register")},this.registerLabel)),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return t(c,{states:s,callbacks:i,content:m})}};export{m as sqm_portal_login}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-64c3217a.js";import{r}from"./p-66624f12.js";import{j as s,c as a}from"./p-6f2bdfc9.js";import{g as e}from"./p-71f00041.js";function t(t){const{states:n,data:f}=t,c={ItemContainer:{display:"flex","background-color":n.active?"#eaeaea":"#ffffff","border-radius":"8px",padding:"8px","text-decoration":"none",color:"#454444","align-items":"center",...e({direction:"row",size:"var(--sl-font-size-small)"}),"&:hover":{cursor:"pointer",background:n.active?"#dddddd":"#f7f7f7"}},Label:{margin:"0"},Icon:{"flex-shrink":"0"}};s.setup(a());const i=s.createStyleSheet(c),d=i.toString();return o("a",{href:f.path,onClick:o=>{o.preventDefault(),r.push(f.path)},class:i.classes.ItemContainer},o("style",{type:"text/css"},d),o("sl-icon",{class:i.classes.Icon,name:f.icon}),o("p",{class:i.classes.Label},f.label))}export{t as N}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function i(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r["throw"](t))}catch(t){a(t)}}function l(t){t.done?n(t.value):o(t.value).then(i,s)}l((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(a=i[0]&2?o["return"]:i[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;if(o=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;o=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1];a=i;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(i);break}if(a[2])n.ops.pop();n.trys.pop();continue}i=e.call(t,n)}catch(t){i=[6,t];o=0}finally{r=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-b06ebc3a.system.js","./p-0f5ff224.system.js","./p-b2295bc5.system.js","./p-53cc16c2.system.js","./p-4bd679a7.system.js","./p-edde9d34.system.js","./p-07c29bf8.system.js","./p-7cf1b6bc.system.js"],(function(t){"use strict";var e,n,r,o,a,i,s,l,u,c,d;return{setters:[function(t){e=t.r;n=t.h},function(t){r=t.k;o=t.f;a=t.m},function(t){i=t.q;s=t.r;l=t.j},function(t){u=t.j},function(){},function(t){c=t.c},function(){},function(){},function(t){d=t.P}],execute:function(){function f(t){var e=this;var n=t.nextPage;var a,l,c,d;var f=i(),h=f[0],v=f[1],b=v.loading,p=v.errors,g=v.data;var m=r(""),w=m[0],y=m[1];var _=new URLSearchParams(window.location.search);var L=_.get("nextPage");var P=function(t){return __awaiter(e,void 0,void 0,(function(){var e,n;return __generator(this,(function(r){switch(r.label){case 0:y("");e=t.detail.formData;e===null||e===void 0?void 0:e.forEach((function(t,n){u.set(e,n,t)}));n={email:e.email,password:e.password};return[4,h(n)];case 1:r.sent();return[2]}}))}))};o((function(){var t;if((t=g===null||g===void 0?void 0:g.authenticateManagedIdentityWithEmailAndPassword)===null||t===void 0?void 0:t.token){_.delete("nextPage");s.push({pathname:L||n,search:_.toString()&&"?"+_.toString()})}}),[(a=g===null||g===void 0?void 0:g.authenticateManagedIdentityWithEmailAndPassword)===null||a===void 0?void 0:a.token]);o((function(){var t;if((p===null||p===void 0?void 0:p.message)||((t=p===null||p===void 0?void 0:p.response)===null||t===void 0?void 0:t["error"])){y("Network request failed.")}}),[p]);var k=((d=(c=(l=p===null||p===void 0?void 0:p.response)===null||l===void 0?void 0:l.errors)===null||c===void 0?void 0:c[0])===null||d===void 0?void 0:d.message)||w;return{states:{loading:b,error:k},callbacks:{submit:P}}}var h=t("sqm_portal_login",function(){function t(t){e(this,t);this.ignored=true;this.nextPage="/";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Sign In";this.forgotPasswordLabel="Forgot Password?";this.registerLabel="Register";this.pageLabel="Sign in to your account";a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=l()?v(this):f(this),e=t.states,r=t.callbacks;var o={forgotPasswordButton:n("slot",{name:"forgotPassword"},n("a",{onClick:function(){return s.push("/forgotPassword")}},this.forgotPasswordLabel)),secondaryButton:n("slot",{name:"secondaryButton"},n("sl-button",{type:"text",disabled:e.loading,onClick:function(){return s.push("/register")}},this.registerLabel)),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return n(d,{states:e,callbacks:r,content:o})};return t}());function v(t){var e=this;return c({states:{error:"",loading:false},callbacks:{submit:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(t){console.log("submit");return[2]}))}))}}},t.demoData||{},{arrayMerge:function(t,e){return e}})}}}}));
@@ -1 +0,0 @@
1
- import{r as e,h as s,c as a}from"./p-64c3217a.js";import{b as r,i as t,f as o,m as n}from"./p-66a0f3a5.js";import{M as i,P as l,Z as d}from"./p-66624f12.js";import{g as c}from"./p-b6d7ce7c.js";const p=r("sq:useProgramMenu"),m=class{constructor(s){e(this,s),this.ignored=!0,n(this)}disconnectedCallback(){}render(){const{data:e,ref:r}=function(e){const s=i(),a=l();p({programId:s,props:e});const r=t(),[,n]=d();return o((()=>{var e;null===(e=r.current)||void 0===e||e.addEventListener("sl-select",(e=>{a.dispatchEvent(new CustomEvent("sq:update-program-id",{detail:e.detail.item.value,bubbles:!0,composed:!0}))}))}),[r.current]),{data:{programId:s},callbacks:{rerender:n},ref:r}}(c(this));return s(a,{style:{display:"contents"}},s("sl-select",{style:{paddingBottom:"var(--sl-spacing-large)"},value:e.programId,ref:e=>r.current=e},s("slot",null)))}};m.style=":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";export{m as sqm_program_menu}
@@ -1 +0,0 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-b06ebc3a.system.js","./p-0f5ff224.system.js","./p-ac53f0e3.system.js"],(function(e){"use strict";var r,t,n,s,a,i,o,c,d,l,u;return{setters:[function(e){r=e.r;t=e.h;n=e.c},function(e){s=e.b;a=e.i;i=e.f;o=e.m},function(e){c=e.M;d=e.P;l=e.Z},function(e){u=e.g}],execute:function(){var p=s("sq:useProgramMenu");var f="sq:update-program-id";function m(e){var r=c();var t=d();p({programId:r,props:e});var n=a();var s=l(),o=s[1];i((function(){var e;(e=n.current)===null||e===void 0?void 0:e.addEventListener("sl-select",(function(e){var r=e.detail.item.value;t.dispatchEvent(new CustomEvent(f,{detail:r,bubbles:true,composed:true}))}))}),[n.current]);return{data:{programId:r},callbacks:{rerender:o},ref:n}}var v=":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";var g=e("sqm_program_menu",function(){function e(e){r(this,e);this.ignored=true;o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=m(u(this)),r=e.data,s=e.ref;return t(n,{style:{display:"contents"}},t("sl-select",{style:{paddingBottom:"var(--sl-spacing-large)"},value:r.programId,ref:function(e){return s.current=e}},t("slot",null)))};return e}());g.style=v}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-53cc16c2.system.js","./p-07c29bf8.system.js","./p-071017d1.system.js","./p-7fe58f22.system.js"],(function(s){"use strict";var e,t,a,r,n,o;return{setters:[function(s){e=s.h},function(s){t=s.j;a=s.c},function(s){r=s.T},function(s){n=s.P},function(s){o=s.P}],execute:function(){s("P",l);function l(s){var l=s.states,c=s.callbacks;var i={Dialog:{padding:"0","&::part(close-button)":{"margin-top":"var(--sl-spacing-medium)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"15px"}},InputContainer:{"& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-x-large)"}},CancelButton:{width:"25%",margin:"var(--sl-spacing-large) auto"}};t.setup(a());var p=t.createStyleSheet(i);var u=p.toString();return e("div",null,e("style",{type:"text/css"},u),e("sl-dialog",{class:p.classes.Dialog,open:l.open,"onSl-hide":function(){return c.setOpen(false)}},e(n,Object.assign({},{labelMargin:"x-large",padding:"none",label:e(r,Object.assign({},{type:"h2"}),"Change password"),content:e(o,Object.assign({},{direction:"column",padding:"none",gap:"32px"}),l.error&&e("sqm-form-message",{class:p.classes.Error,type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},l.error)),l.success&&e("sqm-form-message",{class:p.classes.Success,type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},"Your password has been updated.")),e("sl-form",{"onSl-submit":c.submit},e("div",{class:p.classes.InputContainer},e("sqm-password-field",null),e("sl-input",{name:"/confirmPassword",label:"Confirm new password",required:true,togglePassword:true,disabled:l.loading,type:"password"})),e(o,Object.assign({},{direction:"row",padding:"none",gap:"20px"}),e("sl-button",{class:p.classes.CancelButton,type:"text",onClick:function(){return c.setOpen(false)}},"Cancel"),e("sl-button",{type:"default",submit:true,loading:l.loading},"Change Password"))))}))),e(n,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:e(r,Object.assign({},{type:"h2"}),"Password"),content:e("sl-button",{onClick:function(){return c.setOpen(true)}},"Change your password...")}),e("style",{type:"text/css"},u)))}}}}));
@@ -1 +0,0 @@
1
- import{h as a}from"./p-64c3217a.js";import{j as s,c as e}from"./p-6f2bdfc9.js";import{T as t}from"./p-70e7a091.js";import{P as r}from"./p-af1fbd6d.js";import{P as o}from"./p-677e2a4f.js";function n(n){const{states:l,callbacks:p}=n;s.setup(e());const i=s.createStyleSheet({Dialog:{padding:"0","&::part(close-button)":{"margin-top":"var(--sl-spacing-medium)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"15px"}},InputContainer:{"& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-x-large)"}},CancelButton:{width:"25%",margin:"var(--sl-spacing-large) auto"}}),c=i.toString();return a("div",null,a("style",{type:"text/css"},c),a("sl-dialog",{class:i.classes.Dialog,open:l.open,"onSl-hide":()=>p.setOpen(!1)},a(r,Object.assign({},{labelMargin:"x-large",padding:"none",label:a(t,Object.assign({},{type:"h2"}),"Change password"),content:a(o,Object.assign({},{direction:"column",padding:"none",gap:"32px"}),l.error&&a("sqm-form-message",{class:i.classes.Error,type:"error",exportparts:"erroralert-icon"},a("div",{part:"erroralert-text"},l.error)),l.success&&a("sqm-form-message",{class:i.classes.Success,type:"success",exportparts:"successalert-icon"},a("div",{part:"successalert-text"},"Your password has been updated.")),a("sl-form",{"onSl-submit":p.submit},a("div",{class:i.classes.InputContainer},a("sqm-password-field",null),a("sl-input",{name:"/confirmPassword",label:"Confirm new password",required:!0,togglePassword:!0,disabled:l.loading,type:"password"})),a(o,Object.assign({},{direction:"row",padding:"none",gap:"20px"}),a("sl-button",{class:i.classes.CancelButton,type:"text",onClick:()=>p.setOpen(!1)},"Cancel"),a("sl-button",{type:"default",submit:!0,loading:l.loading},"Change Password"))))}))),a(r,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:a(t,Object.assign({},{type:"h2"}),"Password"),content:a("sl-button",{onClick:()=>p.setOpen(!0)},"Change your password...")}),a("style",{type:"text/css"},c)))}export{n as P}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function i(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r["throw"](t))}catch(t){a(t)}}function u(t){t.done?n(t.value):o(t.value).then(i,s)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return u([t,e])}}function u(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(a=i[0]&2?o["return"]:i[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;if(o=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;o=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1];a=i;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(i);break}if(a[2])n.ops.pop();n.trys.pop();continue}i=e.call(t,n)}catch(t){i=[6,t];o=0}finally{r=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-b06ebc3a.system.js","./p-0f5ff224.system.js","./p-b2295bc5.system.js","./p-53cc16c2.system.js","./p-4bd679a7.system.js","./p-edde9d34.system.js","./p-07c29bf8.system.js","./p-4a4f97e3.system.js"],(function(t){"use strict";var e,n,r,o,a,i,s,u,c,l,d,f;return{setters:[function(t){e=t.r;n=t.h},function(t){r=t.k;o=t.f;a=t.m},function(t){i=t.i;s=t.$;u=t.r;c=t.j},function(t){l=t.j},function(){},function(t){d=t.c},function(){},function(){},function(t){f=t.P}],execute:function(){function v(t){var e=this;var n=t.nextPage,a=t.confirmPassword;var c,d,f,v,h,p;var b=r(false),g=b[0],w=b[1];var m=r(""),y=m[0],_=m[1];var P=i(),x=P[0],j=P[1];var k=s(),C=k[0],S=k[1];var M=new URLSearchParams(window.location.search);var V=M.get("oobCode");M.delete("oobCode");var I=M.get("nextPage");var N=function(t){return __awaiter(e,void 0,void 0,(function(){var e,n;return __generator(this,(function(r){switch(r.label){case 0:_("");e=t.detail.formData;e===null||e===void 0?void 0:e.forEach((function(t,n){l.set(e,n,t)}));n={oobCode:V,password:e.password};if(e.password!==e.confirmPassword){_("Passwords do not match.");return[2]}return[4,C(n)];case 1:r.sent();return[2]}}))}))};var q=function(){M.delete("nextPage");u.push({pathname:I||n,search:M.toString()&&"?"+M.toString()})};var D=function(){u.push({pathname:"/",search:M.toString()&&"?"+M.toString()})};o((function(){var t;if((t=S.data)===null||t===void 0?void 0:t.resetManagedIdentityPassword){w(true);setTimeout((function(){q()}),5e3)}}),[(c=S.data)===null||c===void 0?void 0:c.resetManagedIdentityPassword]);o((function(){x({oobCode:V})}),[V]);o((function(){var t;if((t=j===null||j===void 0?void 0:j.errors)===null||t===void 0?void 0:t.message){_("Network request failed.")}}),[j===null||j===void 0?void 0:j.errors]);return{states:{loading:S.loading,reset:g,confirmPassword:a,error:((h=(v=(f=(d=S.errors)===null||d===void 0?void 0:d.response)===null||f===void 0?void 0:f.errors)===null||v===void 0?void 0:v[0])===null||h===void 0?void 0:h.message)||y,oobCodeValidating:j.loading,oobCodeValid:(p=j.data)===null||p===void 0?void 0:p.verifyManagedIdentityPasswordResetCode.success},callbacks:{submit:N,failed:D,gotoNextPage:q}}}var h=t("sqm_portal_reset_password",function(){function t(t){e(this,t);this.ignored=true;this.nextPage="/";this.confirmPassword=false;a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=c()?p(this):v(this),e=t.states,r=t.callbacks;return n(f,{states:e,callbacks:r})};return t}());function p(t){var e=this;return d({states:{error:"",loading:false,reset:false,confirmPassword:true,oobCodeValidating:false,oobCodeValid:true},callbacks:{submit:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(t){console.log("submit");return[2]}))}))},failed:function(){},gotoNextPage:function(){}}},t.demoData||{},{arrayMerge:function(t,e){return e}})}}}}));
@@ -1 +0,0 @@
1
- import{r as a,h as e}from"./p-64c3217a.js";import{k as t,f as s,m as o}from"./p-66a0f3a5.js";import"./p-74e83165.js";import{B as i,T as r,j as l}from"./p-66624f12.js";import"./p-6f2bdfc9.js";import{c as n}from"./p-c1086930.js";import"./p-71f00041.js";import"./p-70e7a091.js";import{P as c}from"./p-6edab0e1.js";const m=class{constructor(e){a(this,e),this.ignored=!0,this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal.",o(this)}disconnectedCallback(){}render(){const{states:a,callbacks:o,content:m}=l()?n({states:{error:"",loading:!1,success:!1},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal."}},this.demoData||{},{arrayMerge:(a,e)=>e}):function(a){var e,o,l,n,c;const[m,{loading:d,data:u,errors:v}]=i(),p=r(),f=null===(e=null==p?void 0:p.managedIdentity)||void 0===e?void 0:e.email,[h,b]=t(!1),[j,y]=t(""),g=new URLSearchParams(window.location.search).get("nextPage");return s((()=>{var a;(null===(a=null==u?void 0:u.requestManagedIdentityVerificationEmail)||void 0===a?void 0:a.success)&&b(!0)}),[null===(o=null==u?void 0:u.requestManagedIdentityVerificationEmail)||void 0===o?void 0:o.success]),s((()=>{(null==v?void 0:v.message)&&y("Network request failed.")}),[v]),{states:{loading:d,error:(null===(c=null===(n=null===(l=null==v?void 0:v.response)||void 0===l?void 0:l.errors)||void 0===n?void 0:n[0])||void 0===c?void 0:c.message)||j,success:h},callbacks:{submit:async()=>{if(!f)return;y("");const a={email:f,urlParams:g?{nextPage:g}:null};await m(a)}},content:{email:f,verifyMessage:a.verifyMessage}}}(this);return e(c,{states:a,callbacks:o,content:m})}};export{m as sqm_portal_email_verification}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,n,e,r){function o(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,s){function a(t){try{u(r.next(t))}catch(t){s(t)}}function i(t){try{u(r["throw"](t))}catch(t){s(t)}}function u(t){t.done?e(t.value):o(t.value).then(a,i)}u((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(t){return function(n){return u([t,n])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(e)try{if(r=1,o&&(s=a[0]&2?o["return"]:a[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,a[1])).done)return s;if(o=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;o=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){e.label=a[1];break}if(a[0]===6&&e.label<s[1]){e.label=s[1];s=a;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(a);break}if(s[2])e.ops.pop();e.trys.pop();continue}a=n.call(t,e)}catch(t){a=[6,t];o=0}finally{r=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-b06ebc3a.system.js","./p-0f5ff224.system.js","./p-b2295bc5.system.js","./p-53cc16c2.system.js","./p-4bd679a7.system.js","./p-07c29bf8.system.js","./p-071017d1.system.js","./p-7fe58f22.system.js","./p-cccfe42a.system.js"],(function(t){"use strict";var n,e,r,o,s,a,i,u,c,l,f;return{setters:[function(t){n=t.r;e=t.h},function(t){r=t.k;o=t.f;s=t.m},function(t){a=t.h;i=t.T;u=t.j},function(t){c=t.j},function(){},function(t){l=t.c},function(){},function(){},function(){},function(t){f=t.P}],execute:function(){function d(t){var n=this;var e,s,u,l;var f=a(),d=f[0],v=f[1],p=v.loading,h=v.errors,y=v.data;var b=r(false),w=b[0],m=b[1];var g=r(""),_=g[0],j=g[1];var k=r(false),P=k[0],x=k[1];var S=i();var M=function(t){return __awaiter(n,void 0,void 0,(function(){var n,e,r;return __generator(this,(function(o){switch(o.label){case 0:x(false);e=(n=t.detail)===null||n===void 0?void 0:n.formData;e===null||e===void 0?void 0:e.forEach((function(t,n){c.set(e,n,t)}));if(!(S===null||S===void 0?void 0:S.jwt)){j("Please log in again to change your password.");return[2]}if(e.password!==e.confirmPassword){j("Passwords do not match.");return[2]}j("");r={password:e.password};return[4,d(r)];case 1:o.sent();return[2]}}))}))};o((function(){var t;if((t=y===null||y===void 0?void 0:y.changeManagedIdentityPassword)===null||t===void 0?void 0:t.success){x(true)}}),[(e=y===null||y===void 0?void 0:y.changeManagedIdentityPassword)===null||e===void 0?void 0:e.success]);return{states:{open:w,loading:p,success:P,error:_||((l=(u=(s=h===null||h===void 0?void 0:h.response)===null||s===void 0?void 0:s.errors)===null||u===void 0?void 0:u[0])===null||l===void 0?void 0:l.message)},data:{},callbacks:{setOpen:m,submit:M}}}var v=t("sqm_portal_change_password",function(){function t(t){n(this,t);this.ignored=true;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=u()?p(this):d(),n=t.states,r=t.callbacks;return e(f,{states:n,callbacks:r})};return t}());function p(t){return l({states:{open:true,error:""},callbacks:{setOpen:function(t){return console.log(t)},submit:function(t){return console.log("Submit",t)}}},t.demoData||{},{arrayMerge:function(t,n){return n}})}}}}));