@saasquatch/mint-components 1.6.4-0 → 1.6.4-2
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/{ShadowViewAddon-b4ffef8a.js → ShadowViewAddon-0c68c7eb.js} +1 -1
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -1
- package/dist/cjs/{sqm-portal-email-verification-view-535eb7c7.js → sqm-portal-email-verification-view-caecd9d4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-forgot-password-view-aaa8dd17.js → sqm-portal-forgot-password-view-2cb19c20.js} +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-41f4ebcd.js → sqm-portal-profile-view-a4adade8.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-035245e6.js → sqm-portal-reset-password-view-491915dd.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-7014ca89.js → sqm-portal-verify-email-view-c5a04e4e.js} +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-text-span-view-b0c90c27.js → sqm-text-span-view-6031456d.js} +1 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +3 -2
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -0
- package/dist/esm/{ShadowViewAddon-6028b86b.js → ShadowViewAddon-5c7b1d67.js} +1 -1
- package/dist/esm/index.module-48cc9ee0.js +1 -1
- package/dist/esm/sqm-big-stat_35.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -2
- package/dist/esm/{sqm-portal-email-verification-view-3770363f.js → sqm-portal-email-verification-view-99fceb0b.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-forgot-password-view-38910bc9.js → sqm-portal-forgot-password-view-c8e103d7.js} +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-d466c14e.js → sqm-portal-profile-view-c0116857.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-55411ca5.js → sqm-portal-reset-password-view-141ecf6c.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-7ba350f9.js → sqm-portal-verify-email-view-22ff5765.js} +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +7 -7
- package/dist/esm/{sqm-text-span-view-20c0f018.js → sqm-text-span-view-d5db76f9.js} +1 -0
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{ShadowViewAddon-6028b86b.js → ShadowViewAddon-5c7b1d67.js} +1 -1
- package/dist/esm-es5/index.module-48cc9ee0.js +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-3770363f.js → sqm-portal-email-verification-view-99fceb0b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-38910bc9.js → sqm-portal-forgot-password-view-c8e103d7.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-d466c14e.js → sqm-portal-profile-view-c0116857.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-55411ca5.js → sqm-portal-reset-password-view-141ecf6c.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-7ba350f9.js → sqm-portal-verify-email-view-22ff5765.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-20c0f018.js → sqm-text-span-view-d5db76f9.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-f4cc741e.entry.js → p-003484df.entry.js} +1 -1
- package/dist/mint-components/{p-27dff3e5.system.entry.js → p-08025c00.system.entry.js} +1 -1
- package/dist/mint-components/p-090462ed.system.entry.js +1 -0
- package/dist/mint-components/{p-1fbf8d0b.js → p-0d4cdeac.js} +1 -1
- package/dist/mint-components/{p-9c5c538e.entry.js → p-1485e8df.entry.js} +1 -1
- package/dist/mint-components/{p-db070295.system.js → p-18ffac02.system.js} +1 -1
- package/dist/mint-components/{p-3034bb72.js → p-19f85014.js} +1 -1
- package/dist/mint-components/p-1b6206a6.system.entry.js +1 -0
- package/dist/mint-components/{p-ff39746d.js → p-2919c6e5.js} +1 -1
- package/dist/mint-components/{p-03c5cb8f.system.js → p-2925af71.system.js} +1 -1
- package/dist/mint-components/{p-4d644717.system.entry.js → p-319bd70f.system.entry.js} +1 -1
- package/dist/mint-components/p-3430be25.system.js +1 -1
- package/dist/mint-components/{p-51fc3d02.system.js → p-374f1db8.system.js} +1 -1
- package/dist/mint-components/{p-f30000d4.js → p-37f47617.js} +1 -1
- package/dist/mint-components/{p-11257c99.system.entry.js → p-4d499bb1.system.entry.js} +1 -1
- package/dist/mint-components/{p-1d19f8b8.system.entry.js → p-4dd2fa19.system.entry.js} +1 -1
- package/dist/mint-components/{p-bbfaf5b6.entry.js → p-5dc7eaa9.entry.js} +1 -1
- package/dist/mint-components/{p-330680dd.system.js → p-6c76072e.system.js} +1 -1
- package/dist/mint-components/{p-1cc7a8e6.system.js → p-6fdf4955.system.js} +1 -1
- package/dist/mint-components/{p-8c5e403d.js → p-762ae9ac.js} +1 -1
- package/dist/mint-components/{p-fd029861.entry.js → p-7850b20c.entry.js} +1 -1
- package/dist/mint-components/{p-94d12131.system.entry.js → p-82dd9d56.system.entry.js} +1 -1
- package/dist/mint-components/{p-864be7c2.js → p-8fff6121.js} +1 -1
- package/dist/mint-components/{p-9ab8aac9.system.entry.js → p-95b15913.system.entry.js} +1 -1
- package/dist/mint-components/{p-19dd82a9.js → p-9c286cd9.js} +1 -1
- package/dist/mint-components/{p-39501552.entry.js → p-9e827358.entry.js} +1 -1
- package/dist/mint-components/p-a07e67d3.entry.js +1 -0
- package/dist/mint-components/{p-5fd96d00.system.entry.js → p-aff41f94.system.entry.js} +1 -1
- package/dist/mint-components/{p-e8c30d37.entry.js → p-b7160bb3.entry.js} +1 -1
- package/dist/mint-components/{p-6e3552d5.entry.js → p-bec582d7.entry.js} +1 -1
- package/dist/mint-components/{p-2813537e.entry.js → p-bf95b567.entry.js} +1 -1
- package/dist/mint-components/{p-d1242e79.system.js → p-c656c9b4.system.js} +1 -1
- package/dist/mint-components/{p-92a573b6.system.js → p-d4508081.system.js} +1 -1
- package/dist/mint-components/{p-de69bec2.system.entry.js → p-d6d9be6f.system.entry.js} +1 -1
- package/dist/mint-components/{p-0afd44ef.system.entry.js → p-d7489364.system.entry.js} +1 -1
- package/dist/mint-components/{p-fa65fa44.entry.js → p-d9b2da25.entry.js} +1 -1
- package/dist/mint-components/{p-6694fd68.system.entry.js → p-e20f232b.system.entry.js} +1 -1
- package/dist/mint-components/p-e4a5687e.system.js +1 -1
- package/dist/mint-components/p-e4fc7952.js +1 -1
- package/dist/mint-components/{p-de266d8d.entry.js → p-e78bd797.entry.js} +1 -1
- package/dist/mint-components/{p-76c5030f.entry.js → p-f6335414.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-189354d6.system.entry.js +0 -1
- package/dist/mint-components/p-419485fa.entry.js +0 -1
- package/dist/mint-components/p-b06cfcbb.system.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as e}from"./p-64c3217a.js";import{i as a,j as t,u as o,m as n}from"./p-4e3bba58.js";import"./p-4ba87386.js";import{u as s}from"./p-4619685f.js";import{t as r,B as l,N as c,f as d,i as v}from"./p-e4fc7952.js";import{c as u}from"./p-c1086930.js";import"./p-61ff3ceb.js";import"./p-85e934c8.js";import"./p-
|
|
1
|
+
import{r as i,h as e}from"./p-64c3217a.js";import{i as a,j as t,u as o,m as n}from"./p-4e3bba58.js";import"./p-4ba87386.js";import{u as s}from"./p-4619685f.js";import{t as r,B as l,N as c,f as d,i as v}from"./p-e4fc7952.js";import{c as u}from"./p-c1086930.js";import"./p-61ff3ceb.js";import"./p-85e934c8.js";import"./p-8fff6121.js";import{P as m}from"./p-19f85014.js";const f=class{constructor(e){i(this,e),this.ignored=!0,this.redirectPath="/verifyEmail",this.emailVerificationHeader="Verify your email",this.resendEmailButtonText="Re-send Email",this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",n(this)}disconnectedCallback(){}render(){const{states:i,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},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.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email",verificationLoadingMessage:this.verificationLoadingMessage,verificationStatusMessage:this.verificationStatusMessage}},this.demoData||{},{arrayMerge:(i,e)=>e}):function(i){var e,n,v,u,m,f,p,h,g;const[y,{loading:b,errors:j}]=r(),[w,{data:k,loading:I}]=l(),P=c(),M=null===(e=null==P?void 0:P.managedIdentity)||void 0===e?void 0:e.email,x=new URLSearchParams(d.location.search),E=x.get("nextPage"),[V,R]=a(!1),[B,C]=a(""),[L,S]=a(10),_=t(void 0),q=t(void 0);async function A(){var e;const a=await w();if(null===(e=null==a?void 0:a.managedIdentitySession)||void 0===e?void 0:e.emailVerified)return clearInterval(_.current),d.push({pathname:i.redirectPath,search:x.toString()&&"?"+x.toString()});N(10)}const H=(i=1e4)=>setInterval(A,i),T=i=>setInterval((()=>S(i)),1e3);function N(i){if(clearInterval(q.current),clearInterval(_.current),"hidden"===document.visibilityState)return;i&&S(i);let e=L||10;q.current=T(i-1||e-1),_.current=H(1e3*i||1e3*e)}const U=s((()=>N()),[L]);return o((()=>(_.current||(A(),_.current=H()),()=>{clearInterval(_.current)})),[]),o((()=>(L>0&&(clearInterval(q.current),q.current=T(L-1)),document.addEventListener("visibilitychange",U),()=>{clearInterval(q.current),document.removeEventListener("visibilitychange",U)})),[L]),{states:{loading:b,error:(null===(m=null===(u=null===(v=null===(n=null==j?void 0:j.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(h=null===(p=null===(f=null==j?void 0:j.response)||void 0===f?void 0:f.errors)||void 0===p?void 0:p[0])||void 0===h?void 0:h.message)||B,success:V,loadingVerification:I,isVerified:!!(null===(g=null==k?void 0:k.managedIdentitySession)||void 0===g?void 0:g.emailVerified),countdown:L},callbacks:{submit:async()=>{var e;if(!M)return;C(""),R(!1);const a={email:M,urlParams:E?{nextPage:E}:null,redirectPath:i.redirectPath},t=await y(a);t instanceof Error?t.message&&C("Network request failed."):(null===(e=t.requestManagedIdentityVerificationEmail)||void 0===e?void 0:e.success)&&R(!0)}},content:{email:M,verifyMessage:i.verifyMessage,emailVerificationHeader:i.emailVerificationHeader,resendEmailButtonText:i.resendEmailButtonText,verificationLoadingMessage:i.verificationLoadingMessage,verificationStatusMessage:i.verificationStatusMessage}}}(this);return e(m,{states:i,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,h as e,c as s}from"./p-64c3217a.js";import{m as a,u as n,i as r,o as i,j as o,b as l,f as d}from"./p-4e3bba58.js";import{i as c}from"./p-4ba87386.js";import{u}from"./p-4619685f.js";import{i as h,R as m,d as p,N as v,a as g,P as f,O as b,x as y,o as x,f as w,j as k,M as C,k as S,p as E,l as I,U as M}from"./p-e4fc7952.js";import{j as R}from"./p-e7e129ac.js";import{c as _}from"./p-c1086930.js";import"./p-61ff3ceb.js";import{c as N}from"./p-85e934c8.js";import{a as P}from"./p-ab668734.js";import{u as q}from"./p-5ac99ac5.js";import"./p-9e1d9435.js";import{g as A,a as V,s as T}from"./p-9c5f124f.js";import"./p-
|
|
1
|
+
import{r as t,h as e,c as s}from"./p-64c3217a.js";import{m as a,u as n,i as r,o as i,j as o,b as l,f as d}from"./p-4e3bba58.js";import{i as c}from"./p-4ba87386.js";import{u}from"./p-4619685f.js";import{i as h,R as m,d as p,N as v,a as g,P as f,O as b,x as y,o as x,f as w,j as k,M as C,k as S,p as E,l as I,U as M}from"./p-e4fc7952.js";import{j as R}from"./p-e7e129ac.js";import{c as _}from"./p-c1086930.js";import"./p-61ff3ceb.js";import{c as N}from"./p-85e934c8.js";import{a as P}from"./p-ab668734.js";import{u as q}from"./p-5ac99ac5.js";import"./p-9e1d9435.js";import{g as A,a as V,s as T}from"./p-9c5f124f.js";import"./p-8fff6121.js";import{A as F}from"./p-121cdc60.js";import{R as L,u as D}from"./p-e7df87b4.js";import{c as j,K as z,B as $,H as B,G as H,C as O,D as U,E as W,I as Z,M as G,L as K,N as X,e as Y,P as J,f as Q,g as tt,R as et,O as st,i as at,Q as nt,b as rt,S as it,a as ot,u as lt,d as dt,T as ct}from"./p-9c286cd9.js";import"./p-31becacb.js";const ut=class{constructor(e){t(this,e),this.flexReverse=!1,this.ignored=!0,a(this)}disconnectedCallback(){}render(){var t;const{props:s,label:a}=h()?j(this):z(this),n=!!(null===(t=m().innerHTML)||void 0===t?void 0:t.trim()),r=e("slot",{name:"label"},n?e("slot",null):a);return e($,Object.assign({},s,{labelSlot:r}))}},ht=class{constructor(e){t(this,e),a(this)}disconnectedCallback(){}render(){var t,a;const r=null!==(t=function(t){if(t)try{return B(t)}catch{}}(this.brandColor))&&void 0!==t?t:"",i=(null!==(a=this.brandFont)&&void 0!==a?a:"Nunito Sans").trim()||void 0;n((()=>{if(!i)return;const t=document.createElement("link");return t.setAttribute("href",function(...t){return`https://fonts.googleapis.com/css2?${t.map((t=>`family=${encodeURIComponent(t)}`)).join("&")}`}(i)),t.setAttribute("rel","stylesheet"),document.head.appendChild(t),()=>document.head.removeChild(t)}),[i]);const o=null!=i?i:"";return e(s,null,e("style",null,`\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "${o}", arial;\n --sl-input-font-family: "${o}", arial;\n --sl-tooltip-font-family: "${o}", arial;\n font-family: "${o}", arial;\n\t\t\t\n ${r}\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }`),e("slot",null))}},mt=class{constructor(e){t(this,e),this.ignored=!0,this.width=347,this.gap=24,a(this)}disconnectedCallback(){}render(){return e(H,Object.assign({},A(this)),e("slot",null))}},pt=N({IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"28px"},Details:{marginLeft:"28px"},Heading:{display:"inline-block"},Children:{display:"none"}}),vt=pt.toString();function gt({missingProps:t,heading:s="There was a problem loading this section",subheading:a="There was a technical problem that prevented this section from loading. Please contact us with the link to this page.",description:n="Error occured while loading <{tagName}>. Values for the following attributes are missing:"},i){if(!t)return!1;const o=m(),[l,d]=r(!1);return e("sl-alert",{type:"danger",open:!0},e("style",{type:"text/css"},vt),e("div",{slot:"icon",class:pt.classes.IconStyle},e("sl-icon",{name:"exclamation-octagon"})),e("div",{class:pt.classes.DivStyle},e("h2",{class:pt.classes.Heading},c.formatMessage({id:"error-heading",defaultMessage:s})),e("p",null,c.formatMessage({id:"error-subheading",defaultMessage:a}))),e("details",{class:pt.classes.Details},e("summary",{onClick:()=>d(!l)},l?"Less":"More"," details"),e("p",null,c.formatMessage({id:"error-description",defaultMessage:n},{tagName:o.tagName.toLowerCase()})),e("ul",null,t.map((t=>e("li",null,e("strong",null,t.attribute)))))),e("div",{class:pt.classes.Children},i))}const ft=class{constructor(e){t(this,e),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,a(this)}disconnectedCallback(){}render(){const t=V([{attribute:"checkbox-name",value:this.checkboxName}]);if(!h()&&t)return e(gt,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const s={...A(this)},{states:a,callbacks:o}=h()?_({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{},{arrayMerge:(t,e)=>e}):function(t){var e;const s=i(L),[a,o]=r(!1);return n((()=>{var e,a;(null===(e=null==s?void 0:s.initialData)||void 0===e?void 0:e[t.checkboxName])&&o(!!(null===(a=null==s?void 0:s.initialData)||void 0===a?void 0:a[t.checkboxName]))}),[null===(e=null==s?void 0:s.initialData)||void 0===e?void 0:e[t.checkboxName]]),{states:{registrationFormState:s,checked:a},callbacks:{setChecked:o}}}(this);return e(O,{states:a,content:s,callbacks:o})}};function bt(t,s){const a=()=>"row"===t.direction?{"border-right":t.dividerStyle||"1px solid #EAEAEA"}:{"border-bottom":t.dividerStyle||"1px solid #EAEAEA"},n={LayoutContainer:{display:"contents","& > :not(:last-child)":{...a()},"& > ::slotted(*:not(:last-child))":{...a()}}},r=`\n display: flex;\n flex: 1;\n box-sizing: border-box;\n flex-direction: ${t.direction};\n background-color: var(--sqm-content-background);\n overflow-x: clip;\n ${"column"===t.direction?"width: 100%; max-width: var(--sqm-portal-main-width);":""}\n `,i=`\n :host{\n ${r}\n }\n sqm-divided-layout {\n ${r}\n }\n `,o=N(n),l=o.toString();return e("div",{class:o.classes.LayoutContainer},e("style",{type:"text/css"},i,l),s)}const yt=class{constructor(e){t(this,e),this.dividerStyle="1px solid #EAEAEA",a(this)}disconnectedCallback(){}render(){return e(bt,Object.assign({},A(this)),e("slot",null))}},xt=class{constructor(e){t(this,e),this.ignored=!0,this.dropdownLabel="Select an option",this.errorMessage="Select an option",this.dropdownOptional=!1,a(this)}disconnectedCallback(){}render(){const t=V([{attribute:"dropdown-name",value:this.dropdownName}]);if(!h()&&t)return e(gt,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this drop down field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"},e("slot",null));const s={...A(this),selectOptions:e("slot",null)},{states:a}=h()?_({states:{registrationFormState:{}}},this.demoData||{},{arrayMerge:(t,e)=>e}):{states:{registrationFormState:i(L)}};return e(U,{states:a,content:s})}},wt=p.gql`
|
|
2
2
|
query {
|
|
3
3
|
viewer {
|
|
4
4
|
... on User {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as o}from"./p-64c3217a.js";import{i as e,u as t,m as a}from"./p-4e3bba58.js";import"./p-4619685f.js";import{c as r,W as i,f as d,i as n}from"./p-e4fc7952.js";import{j as l}from"./p-e7e129ac.js";import{c}from"./p-c1086930.js";import"./p-61ff3ceb.js";import"./p-85e934c8.js";import{s as m}from"./p-9c5f124f.js";import"./p-
|
|
1
|
+
import{r as s,h as o}from"./p-64c3217a.js";import{i as e,u as t,m as a}from"./p-4e3bba58.js";import"./p-4619685f.js";import{c as r,W as i,f as d,i as n}from"./p-e4fc7952.js";import{j as l}from"./p-e7e129ac.js";import{c}from"./p-c1086930.js";import"./p-61ff3ceb.js";import"./p-85e934c8.js";import{s as m}from"./p-9c5f124f.js";import"./p-8fff6121.js";import{P as p}from"./p-2919c6e5.js";const u=class{constructor(o){s(this,o),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.confirmPassword=!1,this.resetPasswordHeader="Reset your password",this.passwordResetHeader="Password reset",this.resetPasswordButtonText="Reset Password",this.continueButtonText="Continue",this.confirmPasswordFieldLabel="Confirm Password",this.passwordFieldLabel="New Password",a(this)}disconnectedCallback(){}render(){const{states:s,callbacks:a}=n()?c({states:{error:"",loading:!1,reset:!1,confirmPassword:(u=this).confirmPassword,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:u.passwordResetHeader,resetPasswordHeader:u.resetPasswordHeader,continueButtonText:u.continueButtonText,resetPasswordButtonText:u.resetPasswordButtonText,confirmPasswordFieldLabel:u.confirmPasswordFieldLabel,passwordFieldLabel:u.passwordFieldLabel}},callbacks:{submit:async()=>{console.log("submit")},failed:()=>{},gotoNextPage:()=>{}}},u.demoData||{},{arrayMerge:(s,o)=>o}):function(s){var o,a,n,c,p,u,f,w,b,v;const[h,P]=e(!1),[j,g]=e(""),[C,x]=r(),[k,y]=i(),L=new URLSearchParams(d.location.search),N=L.get("oobCode");L.delete("oobCode");const R=L.get("nextPage");t((()=>{(async()=>{await C({oobCode:N})instanceof Error&&g("Network request failed.")})()}),[]);const T=()=>{L.delete("nextPage");const o=m(R||s.nextPage);d.push(o.href)};return{states:{loading:y.loading,reset:h,confirmPassword:s.confirmPassword,error:(null===(p=null===(c=null===(n=null===(a=null===(o=y.errors)||void 0===o?void 0:o.response)||void 0===a?void 0:a.errors)||void 0===n?void 0:n[0])||void 0===c?void 0:c.extensions)||void 0===p?void 0:p.message)||(null===(b=null===(w=null===(f=null===(u=y.errors)||void 0===u?void 0:u.response)||void 0===f?void 0:f.errors)||void 0===w?void 0:w[0])||void 0===b?void 0:b.message)||j,oobCodeValidating:x.loading,oobCodeValid:null===(v=x.data)||void 0===v?void 0:v.verifyManagedIdentityPasswordResetCode.success,content:{passwordResetHeader:s.passwordResetHeader,resetPasswordHeader:s.resetPasswordHeader,continueButtonText:s.continueButtonText,resetPasswordButtonText:s.resetPasswordButtonText,confirmPasswordFieldLabel:s.confirmPasswordFieldLabel,passwordFieldLabel:s.passwordFieldLabel}},callbacks:{submit:async s=>{g("");let o=s.detail.formData;null==o||o.forEach(((s,e)=>{l.set(o,e,s)}));const e={oobCode:N,password:o.password};if(o.password!==o.confirmPassword)return void g("Passwords do not match.");const t=await k(e);if(t instanceof Error)return g("Network request failed.");t.resetManagedIdentityPassword&&(P(!0),setTimeout((()=>{T()}),5e3))},failed:()=>{d.push({pathname:s.failedPage,search:L.toString()&&"?"+L.toString()})},gotoNextPage:T}}}(this);var u;return o(p,{states:s,callbacks:a})}};export{u as sqm_portal_reset_password}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-3bb4fd18.system.js"],(function(r){"use strict";var t,
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-3bb4fd18.system.js"],(function(r){"use strict";var t,o;return{setters:[function(r){t=r.h},function(r){o=r.c}],execute:function(){r("T",l);var s={p:{"font-size":"var(--sl-font-size-small)","font-weight":"400",color:"var(--sl-color-gray-800)",margin:"0"},subtext:{"font-size":"var(--sl-font-size-x-small)","font-weight":"400",color:"var(--sl-color-gray-600)",margin:"0"},h1:{"font-size":"var(--sl-font-size-xx-large)","font-weight":"600",color:"var(--sl-color-gray-800)",margin:"0"},h2:{"font-size":"var(--sl-font-size-x-large)","font-weight":"600",color:"var(--sl-color-gray-800)",margin:"0"},h3:{"font-size":"var(--sl-font-size-large)","font-weight":"600",color:"var(--sl-color-gray-800)",margin:"0"},h4:{"font-size":"13px","font-weight":"600",color:"var(--sl-color-gray-800)",margin:"0"}};var n=o(s);var e=n.toString();var a="\n sqm-text-span {\n display: inline;\n word-wrap: break-word;\n }\n ";function l(r,o){return t("span",{class:n.classes[r.type]},t("style",{type:"text/css"},a,e),o)}}}}));
|