@saasquatch/component-boilerplate 1.6.2 → 1.6.3-1
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/hooks/graphql/useParentQuery.d.ts +12 -0
- package/dist/hooks/useParentState.d.ts +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -17
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgramContext as n,PROGRAM_CONTEXT_NAME as r,lazilyStartUserContext as a,USER_CONTEXT_NAME as
|
|
1
|
+
import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgramContext as n,PROGRAM_CONTEXT_NAME as r,lazilyStartUserContext as a,USER_CONTEXT_NAME as s,userIdentityFromJwt as o,isDemo as i,setUserIdentity as u,getTenantAlias as c,getAppDomain as d,getEngagementMedium as l,getEnvironment as m,history as f}from"@saasquatch/component-environment";export{getEnvironmentSDK,isDemo,setProgramId,setUserIdentity}from"@saasquatch/component-environment";import{useDomContext as g,useDomContextState as h}from"@saasquatch/dom-context-hooks";import{parse as p,print as v}from"graphql";import y from"jwt-decode";import{useReducer as b,useCallback as w,useState as C,useEffect as E,useMemo as I,useRef as F}from"@saasquatch/universal-hooks";import P from"fast-memoize";import{Subject as $}from"rxjs";import{bufferTime as M}from"rxjs/operators";import{nanoid as S}from"nanoid";import{ClientError as D}from"graphql-request/dist/types";import{GraphQLClient as k,gql as A}from"graphql-request";import q from"graphql-combine-query";import{equal as R}from"@wry/equality";import{deepEqual as x}from"fast-equals";import V from"debounce";import{ContextProvider as j}from"dom-context";import _ from"jsonpointer";const W={current:void 0};function N(){if(void 0===W.current)throw new Error("no implementation of useHost provided");return W.current()}function O(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");W.current=e}function L(){e();const n=N();return g(n,t)}function H(){n();const e=N();return g(e,r)}function U(){var e,t;return null==(e=J())||null==(t=e.managedIdentity)?void 0:t.sessionData}function T(){var e;return null==(e=J())?void 0:e.jwt}function J(){a();const e=N(),t=g(e,s),n=o(null==t?void 0:t.jwt);if(i()||!t||n)return t;u(void 0)}const z=c,Q=d,G=l;var B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},K=new Map,Z=new Map,X=!0,Y=!1;function ee(e){return e.replace(/[\s,]+/g," ").trim()}function te(e){var t,n,r,a=ee(e);if(!K.has(a)){var s=p(e,{experimentalFragmentVariables:Y});if(!s||"Document"!==s.kind)throw new Error("Not a valid GraphQL document.");K.set(a,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=s,n=new Set,r=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,a=ee((o=e.loc).source.body.substring(o.start,o.end)),s=Z.get(t);s&&!s.has(a)?X&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||Z.set(t,s=new Set),s.add(a),n.has(a)||(n.add(a),r.push(e))}else r.push(e);var o}),B(B({},t),{definitions:r}))))}return K.get(a)}function ne(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){r+=t&&"Document"===t.kind?t.loc.source.body:t,r+=e[n+1]}),te(r)}var re,ae=ne;(re=ne||(ne={})).gql=ae,re.resetCaches=function(){K.clear(),Z.clear()},re.disableFragmentWarnings=function(){X=!1},re.enableExperimentalFragmentVariables=function(){Y=!0},re.disableExperimentalFragmentVariables=function(){Y=!1},ne.default=ne;var se=ne;function oe(){return(oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}class ie extends k{constructor(e,t){var n;super(e,t),n=this,this.subject=new $;const r=new $;this.subject.pipe(M(200,void 0,10)).subscribe(async function(e){if(!e.length)return;const{mergedQuery:t,mergedVariables:a,mergedQueryAddedEvents:s,unmergedQueryAddedEvents:o}=le(e);for(const e of o)r.next(e);if(s.length)try{const e=await n.superRequest(t,a);ge(e,s)}catch(e){if(e instanceof D){const{data:t,errors:n}=e.response;if(!t)return pe(s,e);const r=Object.keys(t);let a=[...s];for(const t of n){let n;t.path.find((s,o,i)=>{if(r.includes(s)){const u=de(s),c=a.findIndex(e=>e.id===u);if(-1===c)return!1;r.splice(o,1),n=a.splice(c,1)[0];const d=me(e.response.data,n);i[o]=ce(i[o],u);const{query:l,variables:m}=n,f=oe({},e.response,{errors:[t],data:d,path:i}),g=new D(f,{query:"string"!=typeof l?v(l):l,variables:m});return he(n,g),!0}return!1})}ge(t,a)}else pe(s,e)}}),r.subscribe(async function(e){try{const{query:t,variables:r}=e,a=await n.superRequest(t,r);fe(a,e)}catch(t){he(e,t)}})}superRequest(e,t){return super.request(e,t)}request(e,t){return new Promise((n,r)=>{const a={query:e,variables:t,id:ue(),resolve:n,reject:r};this.subject.next(a)})}}const ue=()=>S().replace(/[-_]/g,""),ce=(e,t)=>e.replace(`_${t}`,""),de=e=>{const t=e.split("_");return t[t.length-1]},le=e=>{const t=[],n=[],{document:r,variables:a}=e.reduce((e,r)=>{const{query:a,variables:s,id:o}=r;try{const i="string"==typeof a?p(a):a,u=i.definitions.find(e=>"FragmentDefinition"===e.kind),c="string"==typeof a?a:v(a),d=/@/.test(c);if(u||d)return n.push(r),e;const l=e=>((e,t)=>`${e}_${t}`)(e,o);return e=e.addN(i,[s],l,l),t.push(r),e}catch(t){return n.push(r),e}},q("BatchedQuery"));return{mergedQuery:r&&v(r),mergedVariables:a,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:n}},me=(e,t)=>{if(!e)return e;const n=Object.keys(e),{id:r}=t;return n.reduce((t,n)=>(n.endsWith(r)&&(t=oe({},t,{[ce(n,r)]:e[n]})),t),{})},fe=(e,t)=>{const{resolve:n}=t;n(e)},ge=(e,t)=>{for(const n of t){const t=me(e,n);n.resolve(t)}},he=(e,t)=>{const{reject:n}=e;n(t)},pe=(e,t)=>{for(const n of e){const{reject:e}=n;e(t)}},ve="sq:graphql-client",ye=P(function(e,t,n){return new ie(e+"/api/v1/"+t+"/graphql",{headers:{Authorization:`Bearer ${n||""}`}})});function be(e,t){switch(t.type){case"loading":return{data:void 0,errors:void 0,loading:!0};case"data":return{data:t.payload,errors:void 0,loading:!1};case"errors":return{data:void 0,errors:t.payload,loading:!1}}}function we(e,t){const n=function(){const e=T(),t=Q(),n=z(),r=ye(t,n,e),a=N(),s=g(a,"sq:graphql-client",{attempts:0});return null!=s?s:r}(),[r,a]=b(be,t);return[r,w(async function(t,r=!1){if(!n){const e=new Error("No GraphQL client found");return a({type:"errors",payload:e}),e}try{r||a({type:"loading"});const s=await n.request(e,t);return a({type:"data",payload:s}),s}catch(e){return a({type:"errors",payload:e}),e}},[n,e,a])]}const Ce={loading:!1,data:void 0,errors:void 0};function Ee(e){const[t,n]=we(e,Ce);return[n,t]}let Ie;const Fe=se(Ie||(Ie=(e=>e)`
|
|
2
2
|
mutation AuthenticateWithEmailAndPassword(
|
|
3
3
|
$email: String!
|
|
4
4
|
$password: String!
|
|
@@ -15,7 +15,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
15
15
|
sessionData
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
`));function
|
|
18
|
+
`));function Pe(){const[e,{loading:t,data:n,errors:r}]=Ee(Fe);return[async t=>{const n=await e(t);if(!(n instanceof Error)&&n.authenticateManagedIdentityWithEmailAndPassword){const e=n.authenticateManagedIdentityWithEmailAndPassword.token,{user:t}=y(e);u({jwt:e,id:t.id,accountId:t.accountId,managedIdentity:{email:n.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:n.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:n.authenticateManagedIdentityWithEmailAndPassword.sessionData}})}return n},{loading:t,data:n,errors:r}]}let $e;const Me=se($e||($e=(e=>e)`
|
|
19
19
|
mutation RegisterWithEmailAndPassword(
|
|
20
20
|
$email: String!
|
|
21
21
|
$password: String!
|
|
@@ -36,7 +36,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
36
36
|
sessionData
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`));function
|
|
39
|
+
`));function Se(){const[e,{loading:t,data:n,errors:r}]=Ee(Me);return[async t=>{const n=await e(t);if(!(n instanceof Error)&&n.registerManagedIdentityWithEmailAndPassword){const e=n.registerManagedIdentityWithEmailAndPassword.token,{user:t}=y(e);u({jwt:e,id:t.id,accountId:t.accountId,managedIdentity:{email:n.registerManagedIdentityWithEmailAndPassword.email,emailVerified:n.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:n.registerManagedIdentityWithEmailAndPassword.sessionData}})}return n},{loading:t,data:n,errors:r}]}let De;const ke=se(De||(De=(e=>e)`
|
|
40
40
|
mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {
|
|
41
41
|
submitForm(formSubmissionInput: { key: $key, formData: $formData }) {
|
|
42
42
|
results {
|
|
@@ -58,7 +58,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
`));function
|
|
61
|
+
`));function Ae(){const[e,{loading:t,data:n,errors:r}]=Ee(ke),[a,s]=C(null);return[async t=>{var n,r,a,o;s(null);const i=await e(t);if(i instanceof Error)return i;const c=null==(n=i.submitForm)||null==(r=n.results)?void 0:r.find(e=>{var t;return"identity"===(null==e||null==(t=e.formHandler)?void 0:t.namespace)});if(c&&null!=(a=c.result)&&null!=(o=a.results)&&o.length){const e=c.result.results[0];if(e.success){const t=e.data.token,{user:n}=y(t);u({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.data.email,emailVerified:e.data.emailVerified,sessionData:e.data.sessionData}})}else s(e.message)}return i},{loading:t,data:n,errors:r,formError:a}]}let qe;const Re=se(qe||(qe=(e=>e)`
|
|
62
62
|
mutation ChangePassword($password: String!) {
|
|
63
63
|
changeManagedIdentityPassword(
|
|
64
64
|
changeManagedIdentityPasswordInput: { password: $password }
|
|
@@ -66,7 +66,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
66
66
|
success
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
`));function
|
|
69
|
+
`));function xe(){const[e,{loading:t,data:n,errors:r}]=Ee(Re);return[e,{loading:t,data:n,errors:r}]}let Ve;const je=se(Ve||(Ve=(e=>e)`
|
|
70
70
|
mutation ResetPassword($oobCode: String!, $password: String!) {
|
|
71
71
|
resetManagedIdentityPassword(
|
|
72
72
|
resetManagedIdentityPasswordInput: {
|
|
@@ -80,7 +80,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
80
80
|
sessionData
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
`));function
|
|
83
|
+
`));function _e(){const[e,{loading:t,data:n,errors:r}]=Ee(je);return[async t=>{const n=await e(t);if(!(n instanceof Error)&&n.resetManagedIdentityPassword){const e=n.resetManagedIdentityPassword.token,{user:t}=y(e);u({jwt:e,id:t.id,accountId:t.accountId,managedIdentity:{email:n.resetManagedIdentityPassword.email,emailVerified:n.resetManagedIdentityPassword.emailVerified,sessionData:n.resetManagedIdentityPassword.sessionData}})}return n},{loading:t,data:n,errors:r}]}let We;const Ne=se(We||(We=(e=>e)`
|
|
84
84
|
mutation VerifyPasswordResetCode($oobCode: String!) {
|
|
85
85
|
verifyManagedIdentityPasswordResetCode(
|
|
86
86
|
verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }
|
|
@@ -88,7 +88,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
88
88
|
success
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
`));function
|
|
91
|
+
`));function Oe(){return Ee(Ne)}function Le(){const e=N();return{refresh:w(()=>{e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}))},[e])}}function He({skip:e=!1,update:t,variables:n}){E(()=>{const r=r=>{!e&&t(n,!0)};return document.addEventListener("sq:refresh",r),()=>document.removeEventListener("sq:refresh",r)},function(e){const t=F(e),n=F(0);return R(e,t.current)||(t.current=e,n.current+=1),I(()=>t.current,[n.current])}([n,t,e]))}const Ue={loading:!1,data:void 0,errors:void 0},Te=Symbol();function Je(e){const[t,n]=we(e,Ue),r=F(Te);He({skip:r.current===Te,update:n,variables:r.current});const a=w(e=>(r.current=e,n(e)),[n]);return[n,oe({},t,{refetch:a})]}let ze;const Qe=se(ze||(ze=(e=>e)`
|
|
92
92
|
query ManagedIdentitySession {
|
|
93
93
|
managedIdentitySession {
|
|
94
94
|
email
|
|
@@ -96,7 +96,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
96
96
|
sessionData
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
`));function
|
|
99
|
+
`));function Ge(){const e=J(),[t,{loading:n,data:r,errors:a,refetch:s}]=Je(Qe),o=t=>{t instanceof Error||!t.managedIdentitySession||u(oe({},e,{managedIdentity:t.managedIdentitySession}))};return[async()=>{const e=await t({});return o(e),e},{loading:n,data:r,errors:a,refetch:async()=>{const e=await s();return o(e),e}}]}let Be;const Ke=se(Be||(Be=(e=>e)`
|
|
100
100
|
mutation VerifyEmail($oobCode: String!) {
|
|
101
101
|
verifyManagedIdentityEmail(
|
|
102
102
|
verifyManagedIdentityEmailInput: { oobCode: $oobCode }
|
|
@@ -104,7 +104,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
104
104
|
success
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
`));function
|
|
107
|
+
`));function Ze(){const[e]=Ge(),[t,{loading:n,data:r,errors:a}]=Ee(Ke);return[async n=>{const r=await t(n);return r instanceof Error||!r.verifyManagedIdentityEmail.success||await e(),r},{loading:n,data:r,errors:a}]}let Xe;const Ye=se(Xe||(Xe=(e=>e)`
|
|
108
108
|
mutation RequestPasswordResetEmail(
|
|
109
109
|
$email: String!
|
|
110
110
|
$urlParams: RSJsonNode
|
|
@@ -120,7 +120,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
120
120
|
success
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
`));function
|
|
123
|
+
`));function et(){return Ee(Ye)}let tt;const nt=se(tt||(tt=(e=>e)`
|
|
124
124
|
mutation RequestVerificationEmail(
|
|
125
125
|
$email: String!
|
|
126
126
|
$urlParams: RSJsonNode
|
|
@@ -136,7 +136,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
136
136
|
success
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
`));function
|
|
139
|
+
`));function rt(){return Ee(nt)}let at;const st=se(at||(at=(e=>e)`
|
|
140
140
|
mutation authenticateManagedIdentityWithInstantAccess(
|
|
141
141
|
$email: String!
|
|
142
142
|
$firstName: String
|
|
@@ -161,15 +161,15 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
161
161
|
token
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
`));function at(){const e=U(),t=m(),[n,{loading:r,data:a,errors:o}]=we(rt);return[async r=>{const a=await n(r);if(!(a instanceof Error)&&a.authenticateManagedIdentityWithInstantAccess){if("APPROVED"!==await async function(e,t){try{var n;const r=await fetch(`${u()}/api/v1/${c()}/graphql`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})});if(!r.ok)throw new Error("Failed to fetch locale");const a=await r.json();if(a.errors)throw new Error(JSON.stringify(a.errors,null,2));const o=(null==(n=a.data.viewer.instantAccessRewards)?void 0:n.data)||[];return o.some(e=>"SUSPECTED_FRAUD"===e.cancelledReason)?"DENIED":o.some(e=>{var t;return null==(t=e.pendingReasons)?void 0:t.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"}catch(e){return void console.error(e)}}(e,a.authenticateManagedIdentityWithInstantAccess.token))throw{name:"fraud_error",message:"Referral flagged as fraud."};{const e=a.authenticateManagedIdentityWithInstantAccess.email;if(d({jwt:a.authenticateManagedIdentityWithInstantAccess.token,id:e,accountId:e}),"SquatchJS2"===t){const t=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:e,accountId:e}});document.dispatchEvent(t)}}}return a},{loading:r,data:a,errors:o}]}function ot(e,t){const n=E();return n.current&&q(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}function st(){return v(e=>e+1,0)}function it(e){const t=Object.getOwnPropertyNames(e);for(const n of t){const t=e[n];t&&"object"==typeof t&&it(t)}return Object.freeze(e)}const dt={loading:!0,data:void 0,errors:void 0};function ct(e,t,n){const[r,a]=ve(e,dt),[o,s]=st();return ot(()=>{!n&&a(t)},[e,t,a,o,n]),Ue({skip:n,update:a,variables:t}),it(ae({},r,{refetch:s}))}function ut(){const[,e]=st();return b(()=>f.listen(()=>{e()}),[]),f.location}const lt=f;function mt(e){const[t,n]=w({limit:e.limit,offset:e.offset}),{offset:r,limit:a}=t,o=(e,t)=>e*t,s=(e,t)=>Math.ceil(e/t)||0;return{limit:a,setLimit:e=>{const a=s(r,e),i=o(e,a);n(ae({},t,{limit:e,offset:i}))},offset:r,setCurrentPage:e=>{let t=o(e,a);n(e=>ae({},e,{offset:t}))},calculatePagination:function(e,t){const n=s(r,a),o=((e,t)=>Math.ceil(e/t)||0)(t,a),i=0===e?"0":e>1?`${r+1}-${r+e}`:`${r+1}`;return{currentPage:n,pageCount:o,rangeOnPage:i,pageProgress:`${i} of ${t}`}}}}function ft(e,t,n,r={},a=!1){var o;const{limit:s,offset:i,setLimit:d,setCurrentPage:c,calculatePagination:u}=mt(n),l=ae({limit:s,offset:i},r),{loading:m,errors:f,data:g,refetch:p}=ct(e,l,a),h=t(g),{currentPage:y,pageCount:v,pageProgress:C}=u((null==h||null==(o=h.data)?void 0:o.length)||0,(null==h?void 0:h.totalCount)||0);return{envelope:h,states:{errors:f,loading:m,limit:s,currentPage:y,pageCount:v,pageProgress:C},callbacks:{refetch:p,setLimit:d,setCurrentPage:c}}}function gt(e,t){return e===t}function pt(e,t,n){const r=n&&n.equalityFn||gt,[a,o]=w(e),s=ht(C(e=>o(e),[]),t,n),i=E(e);return b(()=>{r(i.current,e)||(s.callback(e),i.current=e)},[e,s,r]),[a,{cancel:s.cancel,flush:s.flush}]}function ht(e,t=0,n={leading:!1}){const r=I(()=>R(e,t,n.leading),[e,t,n.leading]),{flush:a,clear:o}=r;return{flush:a,cancel:o,callback:r}}let yt;const vt=k(yt||(yt=(e=>e)`
|
|
164
|
+
`));function ot(){const e=H(),t=m(),[n,{loading:r,data:a,errors:s}]=Ee(st);return[async r=>{const a=await n(r);if(!(a instanceof Error)&&a.authenticateManagedIdentityWithInstantAccess){if("APPROVED"!==await async function(e,t){try{var n;const r=await fetch(`${d()}/api/v1/${c()}/graphql`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})});if(!r.ok)throw new Error("Failed to fetch locale");const a=await r.json();if(a.errors)throw new Error(JSON.stringify(a.errors,null,2));const s=(null==(n=a.data.viewer.instantAccessRewards)?void 0:n.data)||[];return s.some(e=>"SUSPECTED_FRAUD"===e.cancelledReason)?"DENIED":s.some(e=>{var t;return null==(t=e.pendingReasons)?void 0:t.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"}catch(e){return void console.error(e)}}(e,a.authenticateManagedIdentityWithInstantAccess.token))throw{name:"fraud_error",message:"Referral flagged as fraud."};{const e=a.authenticateManagedIdentityWithInstantAccess.email;if(u({jwt:a.authenticateManagedIdentityWithInstantAccess.token,id:e,accountId:e}),"SquatchJS2"===t){const t=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:e,accountId:e}});document.dispatchEvent(t)}}}return a},{loading:r,data:a,errors:s}]}function it(e,t){const n=F();return n.current&&R(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}function ut(){return b(e=>e+1,0)}function ct(e){const t=Object.getOwnPropertyNames(e);for(const n of t){const t=e[n];t&&"object"==typeof t&&ct(t)}return Object.freeze(e)}const dt={loading:!0,data:void 0,errors:void 0};function lt(e,t,n){const[r,a]=we(e,dt),[s,o]=ut();return it(()=>{!n&&a(t)},[e,t,a,s,n]),He({skip:n,update:a,variables:t}),ct(oe({},r,{refetch:o}))}String(Math.random()).slice(2),window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e});let mt=!1;(()=>{try{const e={get capture(){return mt=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})(),"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");let ft=0;const gt=Symbol("haunted.hook"),ht=Symbol("haunted.effects"),pt=Symbol("haunted.layoutEffects");Promise.resolve().then.bind(Promise.resolve());class vt{constructor(e,t){this.id=e,this.state=t}}function yt(e,...t){let n=ft++,r=(void 0)[gt],a=r.get(n);return a||(a=new e(n,void 0,...t),r.set(n,a)),a.update(...t)}function bt(e){return yt.bind(null,e)}function wt(e){return bt(class extends vt{constructor(t,n,r,a){super(t,n),e(n,this)}update(e,t){this.callback=e,this.values=t}call(){this.values&&!this.hasChanged()||this.run(),this.lastValues=this.values}run(){this.teardown(),this._teardown=this.callback.call(this.state)}teardown(){"function"==typeof this._teardown&&this._teardown()}hasChanged(){return!this.lastValues||this.values.some((e,t)=>this.lastValues[t]!==e)}})}function Ct(e,t){e[ht].push(t)}wt(Ct),bt(class extends vt{constructor(e,t,n){super(e,t),this._updater=this._updater.bind(this),this._ranEffect=!1,this._unsubscribe=null,Ct(t,this)}update(e){if(this.state.virtual)throw new Error("can't be used with virtual components");return this.Context!==e&&(this._subscribe(e),this.Context=e),this.value}call(){this._ranEffect||(this._ranEffect=!0,this._unsubscribe&&this._unsubscribe(),this._subscribe(this.Context),this.state.update())}_updater(e){this.value=e,this.state.update()}_subscribe(e){const t={Context:e,callback:this._updater};this.state.host.dispatchEvent(new CustomEvent("haunted.context",{detail:t,bubbles:!0,cancelable:!0,composed:!0}));const{unsubscribe:n=null,value:r}=t;this.value=n?r:e.defaultValue,this._unsubscribe=n}teardown(){this._unsubscribe&&this._unsubscribe()}}),bt(class extends vt{constructor(e,t,n,r){super(e,t),this.value=n(),this.values=r}update(e,t){return this.hasChanged(t)&&(this.values=t,this.value=e()),this.value}hasChanged(e=[]){return e.some((e,t)=>this.values[t]!==e)}}),wt(function(e,t){e[pt].push(t)}),bt(class extends vt{constructor(e,t,n){super(e,t),this.updater=this.updater.bind(this),"function"==typeof n&&(n=n()),this.makeArgs(n)}update(){return this.args}updater(e){if("function"==typeof e){const t=e,[n]=this.args;e=t(n)}this.makeArgs(e),this.state.update()}makeArgs(e){this.args=Object.freeze([e,this.updater])}}),bt(class extends vt{constructor(e,t,n,r,a){super(e,t),this.dispatch=this.dispatch.bind(this),this.currentState=void 0!==a?a(r):r}update(e){return this.reducer=e,[this.currentState,this.dispatch]}dispatch(e){this.currentState=this.reducer(this.currentState,e),this.state.update()}});var Et=1e3,It=60*Et,Ft=60*It,Pt=24*Ft,$t=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*Pt;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ft;case"minutes":case"minute":case"mins":case"min":case"m":return n*It;case"seconds":case"second":case"secs":case"sec":case"s":return n*Et;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=Pt?Mt(e,t,Pt,"day"):t>=Ft?Mt(e,t,Ft,"hour"):t>=It?Mt(e,t,It,"minute"):t>=Et?Mt(e,t,Et,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=Pt?Math.round(e/Pt)+"d":t>=Ft?Math.round(e/Ft)+"h":t>=It?Math.round(e/It)+"m":t>=Et?Math.round(e/Et)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Mt(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}var St,Dt=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=function(e){function t(e){let r,a=null;function s(...e){if(!s.enabled)return;const n=s,a=Number(new Date);n.diff=a-(r||a),n.prev=r,n.curr=a,r=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return"%";o++;const s=t.formatters[a];return"function"==typeof s&&(r=s.call(n,e[o]),e.splice(o,1),o--),r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?t.enabled(e):a,set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=$t,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(St={exports:{}},St.exports),St.exports);function kt(e,t){return void 0===t&&(t={}),g(null,e,t)}function At(e){const t=N(),[n,r]=h(t,Vt(e.namespace),e.initialValue);return h(t,jt(e.namespace),[n,r]),[n,r]}function qt(e){const t=kt(jt(e)),n=kt(Vt(e));return t?[n,t[1]]:[void 0,void 0]}function Rt(e){const t=kt(jt(e));if(t)return t[1]}function xt(e){return kt(Vt(e))}function Vt(e){return e+"-value"}function jt(e){return e+"-state"}function _t(e){const t=N(),n=lt(e.query,e.variables||{},e.skip),[r,a]=h(t,Vt(e.namespace),n);return E(()=>{x(n,r)||a(n)},[n,r]),n}function Wt(e){return kt(Vt(e))||{data:null,loading:!0,refetch:()=>console.warn("component still loading")}}function Nt(){const[,e]=ut();return E(()=>f.listen(()=>{e()}),[]),f.location}Dt("stencil-hook");const Ot=f;function Lt(e){const[t,n]=C({limit:e.limit,offset:e.offset}),{offset:r,limit:a}=t,s=(e,t)=>e*t,o=(e,t)=>Math.ceil(e/t)||0;return{limit:a,setLimit:e=>{const a=o(r,e),i=s(e,a);n(oe({},t,{limit:e,offset:i}))},offset:r,setCurrentPage:e=>{let t=s(e,a);n(e=>oe({},e,{offset:t}))},calculatePagination:function(e,t){const n=o(r,a),s=((e,t)=>Math.ceil(e/t)||0)(t,a),i=0===e?"0":e>1?`${r+1}-${r+e}`:`${r+1}`;return{currentPage:n,pageCount:s,rangeOnPage:i,pageProgress:`${i} of ${t}`}}}}function Ht(e,t,n,r={},a=!1){var s;const{limit:o,offset:i,setLimit:u,setCurrentPage:c,calculatePagination:d}=Lt(n),l=oe({limit:o,offset:i},r),{loading:m,errors:f,data:g,refetch:h}=lt(e,l,a),p=t(g),{currentPage:v,pageCount:y,pageProgress:b}=d((null==p||null==(s=p.data)?void 0:s.length)||0,(null==p?void 0:p.totalCount)||0);return{envelope:p,states:{errors:f,loading:m,limit:o,currentPage:v,pageCount:y,pageProgress:b},callbacks:{refetch:h,setLimit:u,setCurrentPage:c}}}function Ut(e,t){return e===t}function Tt(e,t,n){const r=n&&n.equalityFn||Ut,[a,s]=C(e),o=Jt(w(e=>s(e),[]),t,n),i=F(e);return E(()=>{r(i.current,e)||(o.callback(e),i.current=e)},[e,o,r]),[a,{cancel:o.cancel,flush:o.flush}]}function Jt(e,t=0,n={leading:!1}){const r=I(()=>V(e,t,n.leading),[e,t,n.leading]),{flush:a,clear:s}=r;return{flush:a,cancel:s,callback:r}}let zt;const Qt=A(zt||(zt=(e=>e)`
|
|
165
165
|
mutation ($eventMeta: UserAnalyticsEvent!) {
|
|
166
166
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
167
167
|
}
|
|
168
|
-
`));function
|
|
168
|
+
`));function Gt(){const e=G(),t=J(),n=H(),[r]=Ee(Qt);return t?a=>{r({eventMeta:{id:t.id,accountId:t.accountId,programId:n,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:e,shareMedium:a}}})}:()=>{}}let Bt;const Kt=Dt("sq:load-event"),Zt=A(Bt||(Bt=(e=>e)`
|
|
169
169
|
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
170
170
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
171
171
|
}
|
|
172
|
-
`));function
|
|
172
|
+
`));function Xt(){N();const e=function(){let e=window.squatchLoadEvent;return e||(Kt("Creating load event provider"),e=new j({element:document.documentElement,initialState:{userIdentity:void 0,programId:void 0},contextName:"sq:load-event"}).start(),window.squatchLoadEvent=e),e}(),t=G(),n=J(),r=H(),[a]=Ee(Zt);E(()=>{if(n&&r&&null!=e&&e.context&&(!e.context.userIdentity||!R(n,e.context.userIdentity)||r!==e.context.programId)){const s={eventMeta:{programId:r,id:n.id,accountId:n.accountId,type:"USER_REFERRAL_PROGRAM_LOADED_EVENT",meta:{engagementMedium:t}}};a(s),Kt("Event sent",{variables:s,globalProvider:e}),e.context={userIdentity:n,programId:r}}},[null==n?void 0:n.id,null==n?void 0:n.accountId,r])}let Yt,en,tn,nn=e=>e;const rn=Dt("sq:useForm"),an=A(Yt||(Yt=nn`
|
|
173
173
|
query ($key: String!) {
|
|
174
174
|
form(key: $key) {
|
|
175
175
|
schema
|
|
@@ -180,7 +180,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
`)),
|
|
183
|
+
`)),sn=A(en||(en=nn`
|
|
184
184
|
mutation ($formSubmissionInput: FormSubmissionInput!) {
|
|
185
185
|
submitForm(formSubmissionInput: $formSubmissionInput) {
|
|
186
186
|
success
|
|
@@ -210,7 +210,7 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
`)),
|
|
213
|
+
`)),on=A(tn||(tn=nn`
|
|
214
214
|
query ($formValidationInput: FormValidationInput!) {
|
|
215
215
|
validateForm(formValidationInput: $formValidationInput) {
|
|
216
216
|
valid
|
|
@@ -240,5 +240,5 @@ import{lazilyStartLocaleContext as e,LOCALE_CONTEXT_NAME as t,lazilyStartProgram
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
`));function
|
|
243
|
+
`));function un(e){var t,n,r,a;const{formKey:s,formRef:o,autoSubmit:i=!1}=e,[u,{data:c,loading:d}]=Je(an),[l,m]=Ee(sn),[f,g]=Je(on),h={enabled:!1,validating:!1,valid:!0,validationMessage:"",error:"",disabledMessage:"",formData:{},validationData:g,submitData:m},[p,v]=b((e,t)=>oe({},e,t),h),{enabled:y,disabledMessage:w,validating:C,valid:I,error:F,formData:P}=p;async function $(e){await f({formValidationInput:{key:s,formData:e}})}return it(()=>{rn("submitData useEffect",m),v({submitData:m})},[m]),it(()=>{rn("validationData useEffect",g),v({validationData:g})},[g]),E(()=>{!d&&c&&function(){var t,n,r,a,s;v({enabled:null==c||null==(t=c.form.initialData)?void 0:t.isEnabled,disabledMessage:null==c||null==(n=c.form)||null==(r=n.initialData)?void 0:r.isEnabledErrorMessage});const i=o;if(!i)return;const u=null==c||null==(a=c.form)||null==(s=a.initialData)?void 0:s.initialData;void 0!==e.setInitialData?e.setInitialData(i,u):async function(e,t){const n=e.elements,r=new FormData(e);rn({htmlForm:e,formContent:r}),null==r||r.forEach((e,r)=>{rn({value:e,key:r,inputs:n});const a=n.namedItem(r);try{"checkbox"==a.type?a.checked=_.get(t,r):a.value=_.get(t,r)||""}catch(e){rn("no initialData found for key",r)}})}(i,u)}()},[d]),E(()=>{var e,t,n,r,a,o;p.validationData&&(v({validating:!1,valid:(null==(e=p.validationData)||null==(t=e.data)||null==(n=t.validateForm)?void 0:n.valid)||!1}),i&&null!=(r=p.validationData)&&null!=(a=r.data)&&null!=(o=a.validateForm)&&o.valid&&l({formSubmissionInput:{key:s,formData:P}}))},[null==(t=p.validationData)||null==(n=t.data)||null==(r=n.validateForm)?void 0:r.valid]),{states:{enabled:y,disabledMessage:w,loadingForm:d,validating:C,valid:I,error:F,validationData:p.validationData,submitData:p.submitData},data:{formKey:s,schema:null==c||null==(a=c.form)?void 0:a.schema},callbacks:{getForm:u,handleSubmit:async function(e){e.preventDefault(),v({validating:!0});const t=e.target;rn("submit form",t);const n=new FormData(t);let r={};for(var a of n.entries())_.set(r,a[0],a[1]);v({formData:r}),await $(r)},validateForm:$,submitForm:async function(e){await l({formSubmissionInput:{key:s,formData:e}})},setFormState:v,getValidationErrors:function(){var e,t,n,r;const a=null==g||null==(e=g.data)||null==(t=e.validateForm)||null==(n=t.results[0])||null==(r=n.result)?void 0:r.errors;function s(e){return null==a?void 0:a.filter(t=>t.instanceLocation.substring(1).startsWith(`${e}`))}return{getErrorAtPath:function(e){return null==a?void 0:a.filter(t=>t.instanceLocation.substring(1)===e)},getSubErrorsAtPath:s,hasSubErrors:e=>{var t;return(null==(t=s(e))?void 0:t.length)>0}}},getSubmissionErrors:function(){var e;if(!p.submitData)return[];const t=null==(e=p.submitData.data)?void 0:e.submitForm.results;return(null==t?void 0:t.map(e=>{var t,n,r,a,s,o,i;const u=null==(t=e.result)||null==(n=t.results)?void 0:n.flatMap(e=>!e.success&&e.message).filter(e=>e),c=null==(r=e.result)||null==(a=r.results)?void 0:a.flatMap(e=>!e.success&&{error:e.error,errorType:e.errorType,errorCode:e.errorCode}).filter(({error:e})=>e);return{integration:null==(s=e.formHandler)||null==(o=s.integration)?void 0:o.name,formHandler:null==(i=e.formHandler)?void 0:i.name,messages:u,errors:c}}))||[]}}}}export{ie as BatchedGraphQLClient,ve as GRAPHQL_CONTEXT,ye as memoizedGraphQLClient,Ot as navigation,O as setUseHostImplementation,Q as useAppDomain,ot as useAuthenticateManagedIdentityWithInstantAccess,Pe as useAuthenticateWithEmailAndPasswordMutation,xe as useChangePasswordMutation,Nt as useCurrentPage,Tt as useDebounce,Jt as useDebouncedCallback,G as useEngagementMedium,un as useForm,N as useHost,Je as useLazyQuery,Xt as useLoadEvent,L as useLocale,Ge as useManagedIdentitySessionQuery,Ee as useMutation,Ht as usePaginatedQuery,Lt as usePagination,qt as useParent,_t as useParentQuery,Wt as useParentQueryValue,At as useParentState,xt as useParentValue,H as useProgramId,lt as useQuery,Le as useRefreshDispatcher,Ae as useRegisterViaRegistrationFormMutation,Se as useRegisterWithEmailAndPasswordMutation,et as useRequestPasswordResetEmailMutation,rt as useRequestVerificationEmailMutation,_e as useResetPasswordMutation,U as useSessionData,Rt as useSetParent,Gt as useShareEvent,z as useTenantAlias,ut as useTick,T as useToken,J as useUserIdentity,Ze as useVerifyEmailMutation,Oe as useVerifyPasswordResetCodeMutation};
|
|
244
244
|
//# sourceMappingURL=index.modern.js.map
|