@ory/elements-react 1.0.0-next.29 → 1.0.0-next.30

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 (166) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/index.d.mts +3 -6
  3. package/dist/index.d.ts +3 -6
  4. package/dist/index.js +253 -299
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +253 -299
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/theme/default/index.js +258 -248
  9. package/dist/theme/default/index.js.map +1 -1
  10. package/dist/theme/default/index.mjs +215 -205
  11. package/dist/theme/default/index.mjs.map +1 -1
  12. package/package.json +3 -3
  13. package/.storybook/global.css +0 -7
  14. package/.storybook/main.ts +0 -50
  15. package/.storybook/preview-head.html +0 -15
  16. package/.storybook/preview.tsx +0 -68
  17. package/.storybook/public/InterVariable.woff2 +0 -0
  18. package/.storybook/public/inter.css +0 -8
  19. package/.stub-responses/login/1fa/all-methods/initial-form.json +0 -247
  20. package/.stub-responses/login/1fa/all-methods/missing-email.json +0 -265
  21. package/.stub-responses/login/1fa/all-methods/wrong-credentials.json +0 -254
  22. package/.stub-responses/login/1fa/code/code-input.json +0 -135
  23. package/.stub-responses/login/1fa/code/initial-form.json +0 -173
  24. package/.stub-responses/login/1fa/code/invalid-account.json +0 -182
  25. package/.stub-responses/login/1fa/code/missing-email.json +0 -182
  26. package/.stub-responses/login/1fa/code/wrong-credentials.json +0 -124
  27. package/.stub-responses/login/1fa/none/initial-form.json +0 -33
  28. package/.stub-responses/login/1fa/oidc/initial-form.json +0 -279
  29. package/.stub-responses/login/1fa/passkey/initial-form.json +0 -122
  30. package/.stub-responses/login/1fa/password/initial-form.json +0 -154
  31. package/.stub-responses/login/1fa/password/missing-email.json +0 -172
  32. package/.stub-responses/login/1fa/password/wrong-credentials.json +0 -163
  33. package/.stub-responses/login/1fa/webauthn/initial-form.json +0 -76
  34. package/.stub-responses/login/1fa/webauthn/invalid-account.json +0 -83
  35. package/.stub-responses/login/1fa/webauthn/show-trigger.json +0 -105
  36. package/.stub-responses/recovery/disabled/initial-form.json +0 -9
  37. package/.stub-responses/recovery/none/initial-form.json +0 -9
  38. package/.stub-responses/registration/one-step/all-methods/initial-form.json +0 -334
  39. package/.stub-responses/registration/one-step/all-methods/missing-fields.json +0 -343
  40. package/.stub-responses/registration/one-step/disabled/initial-form.json +0 -10
  41. package/.stub-responses/registration/one-step/none/initial-form.json +0 -14
  42. package/.stub-responses/registration/one-step/oidc/initial-form.json +0 -338
  43. package/.stub-responses/registration/one-step/passkey/initial-form.json +0 -177
  44. package/.stub-responses/registration/one-step/password/initial-form.json +0 -154
  45. package/.stub-responses/registration/one-step/password/missing-fields.json +0 -172
  46. package/.stub-responses/registration/one-step/password/second-step.json +0 -164
  47. package/.stub-responses/registration/one-step/webauthn/initial-form.json +0 -185
  48. package/.stub-responses/registration/two-step/all-methods/enter-password.json +0 -242
  49. package/.stub-responses/registration/two-step/all-methods/initial-form.json +0 -180
  50. package/.stub-responses/registration/two-step/all-methods/missing-fields.json +0 -189
  51. package/.stub-responses/registration/two-step/all-methods/password-validation-error.json +0 -244
  52. package/.stub-responses/registration/two-step/password/enter-password.json +0 -108
  53. package/.stub-responses/registration/two-step/password/initial-form.json +0 -134
  54. package/.stub-responses/registration/two-step/password/missing-fields.json +0 -143
  55. package/.stub-responses/registration/two-step/password/password-validation-error.json +0 -110
  56. package/.stub-responses/settings/all-methods/change-password.json +0 -381
  57. package/.stub-responses/settings/all-methods/change-trait.json +0 -377
  58. package/.stub-responses/settings/all-methods/initial-form.json +0 -368
  59. package/.stub-responses/settings/oidc/with-provider.json +0 -230
  60. package/.stub-responses/settings/passkey/initial-form.json +0 -256
  61. package/.stub-responses/settings/webauthn/initial-form.json +0 -263
  62. package/.stub-responses/verification/disabled/initial-form.json +0 -9
  63. package/.stub-responses/verification/none/initial-form.json +0 -9
  64. package/stories/components/login/1fa/all.stories.ts +0 -46
  65. package/stories/components/login/1fa/code.stories.ts +0 -64
  66. package/stories/components/login/1fa/custom.stories.tsx +0 -72
  67. package/stories/components/login/1fa/none.stories.tsx +0 -28
  68. package/stories/components/login/1fa/oidc.stories.tsx +0 -143
  69. package/stories/components/login/1fa/passkey.stories.ts +0 -28
  70. package/stories/components/login/1fa/password.stories.ts +0 -46
  71. package/stories/components/login/1fa/webauthn.stories.ts +0 -46
  72. package/stories/components/registration/one-step/all-methods.stories.ts +0 -37
  73. package/stories/components/registration/one-step/password.stories.ts +0 -37
  74. package/stories/components/registration/one-step/webauthn.stories.ts +0 -28
  75. package/stories/components/registration/two-step/all-methods.stories.ts +0 -55
  76. package/stories/components/registration/two-step/password.stories.ts +0 -55
  77. package/stories/components/settings/all.stories.ts +0 -46
  78. package/stories/components/settings/oidc.stories.ts +0 -28
  79. package/stories/components/settings/passkey.stories.ts +0 -28
  80. package/stories/components/settings/webauthn.stories.ts +0 -28
  81. package/stories/pages/error.tsx +0 -29
  82. package/stories/utils.ts +0 -20
  83. package/storybook-static/InterVariable.woff2 +0 -0
  84. package/storybook-static/assets/Color-ERTF36HU-BdkKyVuV.js +0 -1
  85. package/storybook-static/assets/DocsRenderer-CFRXHY34-YqKt61zP.js +0 -595
  86. package/storybook-static/assets/all-methods.stories-B-rqPBX2.js +0 -11
  87. package/storybook-static/assets/all-methods.stories-CmMlhzsx.js +0 -21
  88. package/storybook-static/assets/all.stories-CtQ0yCQi.js +0 -16
  89. package/storybook-static/assets/all.stories-DgIVCzcZ.js +0 -16
  90. package/storybook-static/assets/chunk-H6MOWX77-DTQOW814.js +0 -1
  91. package/storybook-static/assets/code.stories-BbEryDcA.js +0 -26
  92. package/storybook-static/assets/custom.stories-DH2zHar9.js +0 -6
  93. package/storybook-static/assets/entry-preview-CcFGVifh.js +0 -10
  94. package/storybook-static/assets/entry-preview-docs-CyY-8bLe.js +0 -54
  95. package/storybook-static/assets/iframe-C5GAfuxh.js +0 -2
  96. package/storybook-static/assets/index-BVoBHvaS.js +0 -8
  97. package/storybook-static/assets/index-CfOt2XX2.js +0 -24
  98. package/storybook-static/assets/index-DPRSEdy-.js +0 -1
  99. package/storybook-static/assets/index-DrFu-skq.js +0 -6
  100. package/storybook-static/assets/index-FeUjBnvO.js +0 -1
  101. package/storybook-static/assets/index-uubelm5h.js +0 -9
  102. package/storybook-static/assets/initial-form-DWp_1F-f.js +0 -1
  103. package/storybook-static/assets/jsx-runtime-QvZ8i92b.js +0 -9
  104. package/storybook-static/assets/none.stories-TAeRhzd5.js +0 -6
  105. package/storybook-static/assets/oidc.stories-CniWBy7t.js +0 -58
  106. package/storybook-static/assets/oidc.stories-jhWzAyoQ.js +0 -6
  107. package/storybook-static/assets/passkey.stories-CBtjoVSN.js +0 -6
  108. package/storybook-static/assets/passkey.stories-CQU2Xw_t.js +0 -6
  109. package/storybook-static/assets/password.stories-0s6cDl0o.js +0 -11
  110. package/storybook-static/assets/password.stories-B2Wtckz_.js +0 -16
  111. package/storybook-static/assets/password.stories-DX0gkWjH.js +0 -21
  112. package/storybook-static/assets/preview-BBWR9nbA.js +0 -1
  113. package/storybook-static/assets/preview-BPAmP-pY.js +0 -2
  114. package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
  115. package/storybook-static/assets/preview-BXtF2ySE.js +0 -234
  116. package/storybook-static/assets/preview-Cur_8nCX.css +0 -1
  117. package/storybook-static/assets/preview-D77C14du.js +0 -34
  118. package/storybook-static/assets/preview-DCjDUH0w.js +0 -27
  119. package/storybook-static/assets/preview-DFmD0pui.js +0 -1
  120. package/storybook-static/assets/preview-DGUiP6tS.js +0 -7
  121. package/storybook-static/assets/preview-aVwhiz9X.js +0 -1
  122. package/storybook-static/assets/react-18-CtsMCmcS.js +0 -1
  123. package/storybook-static/assets/settings-BqEFC2-V.css +0 -1
  124. package/storybook-static/assets/settings-Bx4osEmB.js +0 -2304
  125. package/storybook-static/assets/webauthn.stories-BzodmV0c.js +0 -6
  126. package/storybook-static/assets/webauthn.stories-DglGm7Ys.js +0 -6
  127. package/storybook-static/assets/webauthn.stories-G9E76Wjj.js +0 -16
  128. package/storybook-static/favicon.svg +0 -1
  129. package/storybook-static/iframe.html +0 -654
  130. package/storybook-static/index.html +0 -173
  131. package/storybook-static/index.json +0 -1
  132. package/storybook-static/inter.css +0 -8
  133. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  134. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  135. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  136. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  137. package/storybook-static/preview-stats.json +0 -2344
  138. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  139. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  140. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
  141. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  142. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -394
  143. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
  144. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
  145. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  146. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
  147. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  148. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
  149. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  150. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
  151. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  152. package/storybook-static/sb-addons/interactions-8/manager-bundle.js +0 -211
  153. package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  154. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  155. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  156. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  157. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  158. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  159. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  160. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  161. package/storybook-static/sb-manager/globals-module-info.js +0 -1006
  162. package/storybook-static/sb-manager/globals-runtime.js +0 -54400
  163. package/storybook-static/sb-manager/globals.js +0 -48
  164. package/storybook-static/sb-manager/runtime.js +0 -12089
  165. package/storybook-static/sb-preview/globals.js +0 -33
  166. package/storybook-static/sb-preview/runtime.js +0 -9498
@@ -1,2304 +0,0 @@
1
- import{j as d}from"./jsx-runtime-QvZ8i92b.js";import{r as l,R as ve,b as pl}from"./index-uubelm5h.js";import{r as Fs,f as gl}from"./index-CfOt2XX2.js";var Ct=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(m){try{c(i.next(m))}catch(p){s(p)}}function u(m){try{c(i.throw(m))}catch(p){s(p)}}function c(m){m.done?o(m.value):r(m.value).then(a,u)}c((i=i.apply(e,t||[])).next())})};const fl="https://playground.projects.oryapis.com".replace(/\/+$/,"");class Ls{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:fl}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Us}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:()=>Ct(this,void 0,void 0,function*(){return t})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const hl=new Ls;class ci{constructor(t=hl){this.configuration=t,this.fetchApi=(n,i)=>Ct(this,void 0,void 0,function*(){let r={url:n,init:i};for(const s of this.middleware)s.pre&&(r=(yield s.pre(Object.assign({fetch:this.fetchApi},r)))||r);let o;try{o=yield(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(s){for(const a of this.middleware)a.onError&&(o=(yield a.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:s,response:o?o.clone():void 0}))||o);if(o===void 0)throw s instanceof Error?new ur(s,"The request failed and the interceptors did not return an alternative response"):s}for(const s of this.middleware)s.post&&(o=(yield s.post({fetch:this.fetchApi,url:r.url,init:r.init,response:o.clone()}))||o);return o}),this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(i=>({pre:i}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(i=>({post:i}));return this.withMiddleware(...n)}isJsonMime(t){return t?ci.jsonRegex.test(t):!1}request(t,n){return Ct(this,void 0,void 0,function*(){const{url:i,init:r}=yield this.createFetchParams(t,n),o=yield this.fetchApi(i,r);if(o&&o.status>=200&&o.status<300)return o;throw new ln(o,"Response returned an error code")})}createFetchParams(t,n){return Ct(this,void 0,void 0,function*(){let i=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(t.query));const r=Object.assign({},this.configuration.headers,t.headers);Object.keys(r).forEach(m=>r[m]===void 0?delete r[m]:{});const o=typeof n=="function"?n:()=>Ct(this,void 0,void 0,function*(){return n}),s={method:t.method,headers:r,body:t.body,credentials:this.configuration.credentials},a=Object.assign(Object.assign({},s),yield o({init:s,context:t}));let u;vl(a.body)||a.body instanceof URLSearchParams||yl(a.body)?u=a.body:this.isJsonMime(r["Content-Type"])?u=JSON.stringify(a.body):u=a.body;const c=Object.assign(Object.assign({},a),{body:u});return{url:i,init:c}})}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}}ci.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function yl(e){return typeof Blob<"u"&&e instanceof Blob}function vl(e){return typeof FormData<"u"&&e instanceof FormData}class ln extends Error{constructor(t,n){super(n),this.response=t,this.name="ResponseError"}}class ur extends Error{constructor(t,n){super(n),this.cause=t,this.name="FetchError"}}class we extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}function Us(e,t=""){return Object.keys(e).map(n=>Ds(n,e[n],t)).filter(n=>n.length>0).join("&")}function Ds(e,t,n=""){const i=n+(n.length?`[${e}]`:e);if(t instanceof Array){const r=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${r}`}if(t instanceof Set){const r=Array.from(t);return Ds(e,r,n)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?Us(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}function bl(e,t){return Object.keys(e).reduce((n,i)=>Object.assign(Object.assign({},n),{[i]:t(e[i])}),{})}class se{constructor(t,n=i=>i){this.raw=t,this.transformer=n}value(){return Ct(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}class qi{constructor(t){this.raw=t}value(){return Ct(this,void 0,void 0,function*(){})}}class wl{constructor(t){this.raw=t}value(){return Ct(this,void 0,void 0,function*(){return yield this.raw.text()})}}function Ar(e){return Cl(e)}function Cl(e,t){return e}function kl(e){return xl(e)}function xl(e,t){return e==null?e:{id:e.id,url:e.url==null?void 0:e.url}}function Tl(e){return!(!("action"in e)||e.action===void 0||!("flow"in e)||e.flow===void 0)}function _l(e,t){return e==null?e:{action:e.action,flow:kl(e.flow)}}function Sl(e,t){return e==null?e:{action:e.action,redirect_browser_to:e.redirect_browser_to}}function Nl(e,t){return e==null?e:{action:e.action,ory_session_token:e.ory_session_token}}function Pl(e){return El(e)}function El(e,t){return e==null?e:{id:e.id,url:e.url==null?void 0:e.url}}function Ol(e,t){return e==null?e:{action:e.action,flow:Pl(e.flow)}}function Al(e){return Rl(e)}function Rl(e,t){return e==null?e:{id:e.id,url:e.url==null?void 0:e.url,verifiable_address:e.verifiable_address}}function Il(e,t){return e==null?e:{action:e.action,flow:Al(e.flow)}}function mi(e){return Ml(e)}function Ml(e,t){if(e==null)return e;switch(e.action){case"redirect_browser_to":return Object.assign({},Sl(e),{action:"redirect_browser_to"});case"set_ory_session_token":return Object.assign({},Nl(e),{action:"set_ory_session_token"});case"show_recovery_ui":return Object.assign({},_l(e),{action:"show_recovery_ui"});case"show_settings_ui":return Object.assign({},Ol(e),{action:"show_settings_ui"});case"show_verification_ui":return Object.assign({},Il(e),{action:"show_verification_ui"});default:throw new Error(`No variant of ContinueWith exists with 'action=${e.action}'`)}}function Fl(e){return Ll(e)}function Ll(e,t){return e==null?e:{created_at:e.created_at==null?void 0:new Date(e.created_at),id:e.id==null?void 0:e.id,status:e.status,updated_at:e.updated_at==null?void 0:new Date(e.updated_at),value:e.value,verified:e.verified,verified_at:e.verified_at==null?void 0:new Date(e.verified_at),via:e.via}}function Ul(e){return Dl(e)}function Dl(e,t){return e==null?e:{created_at:e.created_at==null?void 0:new Date(e.created_at),id:e.id,updated_at:e.updated_at==null?void 0:new Date(e.updated_at),value:e.value,via:e.via}}function Bl(e){return Hl(e)}function Hl(e,t){return e==null?e:{count:e.count==null?void 0:e.count}}function ql(e){return jl(e)}function jl(e,t){return e==null?e:{created_at:e.created_at==null?void 0:new Date(e.created_at),error:e.error==null?void 0:e.error,id:e.id,updated_at:e.updated_at==null?void 0:new Date(e.updated_at)}}function zl(e){return Vl(e)}function Vl(e,t){return e==null?e:{config:e.config==null?void 0:e.config,created_at:e.created_at==null?void 0:new Date(e.created_at),identifiers:e.identifiers==null?void 0:e.identifiers,type:e.type==null?void 0:e.type,updated_at:e.updated_at==null?void 0:new Date(e.updated_at),version:e.version==null?void 0:e.version}}function Rr(e){return Wl(e)}function Wl(e,t){return e==null?e:{created_at:e.created_at==null?void 0:new Date(e.created_at),credentials:e.credentials==null?void 0:bl(e.credentials,zl),id:e.id,metadata_admin:e.metadata_admin==null?void 0:e.metadata_admin,metadata_public:e.metadata_public==null?void 0:e.metadata_public,organization_id:e.organization_id==null?void 0:e.organization_id,recovery_addresses:e.recovery_addresses==null?void 0:e.recovery_addresses.map(Ul),schema_id:e.schema_id,schema_url:e.schema_url,state:e.state==null?void 0:e.state,state_changed_at:e.state_changed_at==null?void 0:new Date(e.state_changed_at),traits:e.traits,updated_at:e.updated_at==null?void 0:new Date(e.updated_at),verifiable_addresses:e.verifiable_addresses==null?void 0:e.verifiable_addresses.map(Fl)}}function Gl(e){return $l(e)}function $l(e,t){return e==null?e:{acr_values:e.acr_values==null?void 0:e.acr_values,display:e.display==null?void 0:e.display,id_token_hint_claims:e.id_token_hint_claims==null?void 0:e.id_token_hint_claims,login_hint:e.login_hint==null?void 0:e.login_hint,ui_locales:e.ui_locales==null?void 0:e.ui_locales}}function Kl(e){return Jl(e)}function Jl(e,t){return e==null?e:{access_token_strategy:e.access_token_strategy==null?void 0:e.access_token_strategy,allowed_cors_origins:e.allowed_cors_origins==null?void 0:e.allowed_cors_origins,audience:e.audience==null?void 0:e.audience,authorization_code_grant_access_token_lifespan:e.authorization_code_grant_access_token_lifespan==null?void 0:e.authorization_code_grant_access_token_lifespan,authorization_code_grant_id_token_lifespan:e.authorization_code_grant_id_token_lifespan==null?void 0:e.authorization_code_grant_id_token_lifespan,authorization_code_grant_refresh_token_lifespan:e.authorization_code_grant_refresh_token_lifespan==null?void 0:e.authorization_code_grant_refresh_token_lifespan,backchannel_logout_session_required:e.backchannel_logout_session_required==null?void 0:e.backchannel_logout_session_required,backchannel_logout_uri:e.backchannel_logout_uri==null?void 0:e.backchannel_logout_uri,client_credentials_grant_access_token_lifespan:e.client_credentials_grant_access_token_lifespan==null?void 0:e.client_credentials_grant_access_token_lifespan,client_id:e.client_id==null?void 0:e.client_id,client_name:e.client_name==null?void 0:e.client_name,client_secret:e.client_secret==null?void 0:e.client_secret,client_secret_expires_at:e.client_secret_expires_at==null?void 0:e.client_secret_expires_at,client_uri:e.client_uri==null?void 0:e.client_uri,contacts:e.contacts==null?void 0:e.contacts,created_at:e.created_at==null?void 0:new Date(e.created_at),frontchannel_logout_session_required:e.frontchannel_logout_session_required==null?void 0:e.frontchannel_logout_session_required,frontchannel_logout_uri:e.frontchannel_logout_uri==null?void 0:e.frontchannel_logout_uri,grant_types:e.grant_types==null?void 0:e.grant_types,implicit_grant_access_token_lifespan:e.implicit_grant_access_token_lifespan==null?void 0:e.implicit_grant_access_token_lifespan,implicit_grant_id_token_lifespan:e.implicit_grant_id_token_lifespan==null?void 0:e.implicit_grant_id_token_lifespan,jwks:e.jwks==null?void 0:e.jwks,jwks_uri:e.jwks_uri==null?void 0:e.jwks_uri,jwt_bearer_grant_access_token_lifespan:e.jwt_bearer_grant_access_token_lifespan==null?void 0:e.jwt_bearer_grant_access_token_lifespan,logo_uri:e.logo_uri==null?void 0:e.logo_uri,metadata:e.metadata==null?void 0:e.metadata,owner:e.owner==null?void 0:e.owner,policy_uri:e.policy_uri==null?void 0:e.policy_uri,post_logout_redirect_uris:e.post_logout_redirect_uris==null?void 0:e.post_logout_redirect_uris,redirect_uris:e.redirect_uris==null?void 0:e.redirect_uris,refresh_token_grant_access_token_lifespan:e.refresh_token_grant_access_token_lifespan==null?void 0:e.refresh_token_grant_access_token_lifespan,refresh_token_grant_id_token_lifespan:e.refresh_token_grant_id_token_lifespan==null?void 0:e.refresh_token_grant_id_token_lifespan,refresh_token_grant_refresh_token_lifespan:e.refresh_token_grant_refresh_token_lifespan==null?void 0:e.refresh_token_grant_refresh_token_lifespan,registration_access_token:e.registration_access_token==null?void 0:e.registration_access_token,registration_client_uri:e.registration_client_uri==null?void 0:e.registration_client_uri,request_object_signing_alg:e.request_object_signing_alg==null?void 0:e.request_object_signing_alg,request_uris:e.request_uris==null?void 0:e.request_uris,response_types:e.response_types==null?void 0:e.response_types,scope:e.scope==null?void 0:e.scope,sector_identifier_uri:e.sector_identifier_uri==null?void 0:e.sector_identifier_uri,skip_consent:e.skip_consent==null?void 0:e.skip_consent,skip_logout_consent:e.skip_logout_consent==null?void 0:e.skip_logout_consent,subject_type:e.subject_type==null?void 0:e.subject_type,token_endpoint_auth_method:e.token_endpoint_auth_method==null?void 0:e.token_endpoint_auth_method,token_endpoint_auth_signing_alg:e.token_endpoint_auth_signing_alg==null?void 0:e.token_endpoint_auth_signing_alg,tos_uri:e.tos_uri==null?void 0:e.tos_uri,updated_at:e.updated_at==null?void 0:new Date(e.updated_at),userinfo_signed_response_alg:e.userinfo_signed_response_alg==null?void 0:e.userinfo_signed_response_alg}}function Bs(e){return Zl(e)}function Zl(e,t){return e==null?e:{challenge:e.challenge,client:Kl(e.client),oidc_context:e.oidc_context==null?void 0:Gl(e.oidc_context),request_url:e.request_url,requested_access_token_audience:e.requested_access_token_audience==null?void 0:e.requested_access_token_audience,requested_scope:e.requested_scope==null?void 0:e.requested_scope,session_id:e.session_id==null?void 0:e.session_id,skip:e.skip,subject:e.subject}}function Xl(e){return!(!("id"in e)||e.id===void 0||!("text"in e)||e.text===void 0||!("type"in e)||e.type===void 0)}function $t(e){return Yl(e)}function Yl(e,t){return e==null?e:{context:e.context==null?void 0:e.context,id:e.id,text:e.text,type:e.type}}function Ql(e){return ec(e)}function ec(e,t){return e==null?e:{label:e.label==null?void 0:$t(e.label)}}function tc(e,t){return e==null?e:{href:e.href,id:e.id,node_type:e.node_type,title:$t(e.title)}}function nc(e,t){return e==null?e:{height:e.height,id:e.id,node_type:e.node_type,src:e.src,width:e.width}}const nn={Checkbox:"checkbox",Hidden:"hidden",Submit:"submit",Button:"button",DatetimeLocal:"datetime-local"};function ic(e,t){return e==null?e:{autocomplete:e.autocomplete==null?void 0:e.autocomplete,disabled:e.disabled,label:e.label==null?void 0:$t(e.label),maxlength:e.maxlength==null?void 0:e.maxlength,name:e.name,node_type:e.node_type,onclick:e.onclick==null?void 0:e.onclick,onclickTrigger:e.onclickTrigger==null?void 0:e.onclickTrigger,onload:e.onload==null?void 0:e.onload,onloadTrigger:e.onloadTrigger==null?void 0:e.onloadTrigger,pattern:e.pattern==null?void 0:e.pattern,required:e.required==null?void 0:e.required,type:e.type,value:e.value==null?void 0:e.value}}function rc(e,t){return e==null?e:{async:e.async,crossorigin:e.crossorigin,id:e.id,integrity:e.integrity,node_type:e.node_type,nonce:e.nonce,referrerpolicy:e.referrerpolicy,src:e.src,type:e.type}}function oc(e,t){return e==null?e:{id:e.id,node_type:e.node_type,text:$t(e.text)}}function sc(e){return ac(e)}function ac(e,t){if(e==null)return e;switch(e.node_type){case"a":return Object.assign({},tc(e),{node_type:"a"});case"img":return Object.assign({},nc(e),{node_type:"img"});case"input":return Object.assign({},ic(e),{node_type:"input"});case"script":return Object.assign({},rc(e),{node_type:"script"});case"text":return Object.assign({},oc(e),{node_type:"text"});default:throw new Error(`No variant of UiNodeAttributes exists with 'node_type=${e.node_type}'`)}}const re={Default:"default",Password:"password",Oidc:"oidc",Profile:"profile",Link:"link",Code:"code",Totp:"totp",LookupSecret:"lookup_secret",Webauthn:"webauthn",Passkey:"passkey",IdentifierFirst:"identifier_first",Captcha:"captcha",Saml:"saml"};function dc(e){return uc(e)}function uc(e,t){return e==null?e:{attributes:sc(e.attributes),group:e.group,messages:e.messages.map($t),meta:Ql(e.meta),type:e.type}}function bn(e){return lc(e)}function lc(e,t){return e==null?e:{action:e.action,messages:e.messages==null?void 0:e.messages.map($t),method:e.method,nodes:e.nodes.map(dc)}}function ji(e){return cc(e)}function cc(e,t){return e==null?e:{active:e.active==null?void 0:e.active,created_at:e.created_at==null?void 0:new Date(e.created_at),expires_at:new Date(e.expires_at),id:e.id,issued_at:new Date(e.issued_at),oauth2_login_challenge:e.oauth2_login_challenge==null?void 0:e.oauth2_login_challenge,oauth2_login_request:e.oauth2_login_request==null?void 0:Bs(e.oauth2_login_request),organization_id:e.organization_id==null?void 0:e.organization_id,refresh:e.refresh==null?void 0:e.refresh,request_url:e.request_url,requested_aal:e.requested_aal==null?void 0:Ar(e.requested_aal),return_to:e.return_to==null?void 0:e.return_to,session_token_exchange_code:e.session_token_exchange_code==null?void 0:e.session_token_exchange_code,state:e.state,transient_payload:e.transient_payload==null?void 0:e.transient_payload,type:e.type,ui:bn(e.ui),updated_at:e.updated_at==null?void 0:new Date(e.updated_at)}}function mc(e){return pc(e)}function pc(e,t){return e==null?e:{logout_token:e.logout_token,logout_url:e.logout_url}}function gc(e){return e==null?e:{session_token:e.session_token}}function An(e){return fc(e)}function fc(e,t){return e==null?e:{active:e.active==null?void 0:e.active,continue_with:e.continue_with==null?void 0:e.continue_with.map(mi),expires_at:new Date(e.expires_at),id:e.id,issued_at:new Date(e.issued_at),request_url:e.request_url,return_to:e.return_to==null?void 0:e.return_to,state:e.state,transient_payload:e.transient_payload==null?void 0:e.transient_payload,type:e.type,ui:bn(e.ui)}}function zi(e){return hc(e)}function hc(e,t){return e==null?e:{active:e.active==null?void 0:e.active,expires_at:new Date(e.expires_at),id:e.id,issued_at:new Date(e.issued_at),oauth2_login_challenge:e.oauth2_login_challenge==null?void 0:e.oauth2_login_challenge,oauth2_login_request:e.oauth2_login_request==null?void 0:Bs(e.oauth2_login_request),organization_id:e.organization_id==null?void 0:e.organization_id,request_url:e.request_url,return_to:e.return_to==null?void 0:e.return_to,session_token_exchange_code:e.session_token_exchange_code==null?void 0:e.session_token_exchange_code,state:e.state,transient_payload:e.transient_payload==null?void 0:e.transient_payload,type:e.type,ui:bn(e.ui)}}function yc(e){return vc(e)}function vc(e,t){return e==null?e:{id:e.id,ip_address:e.ip_address==null?void 0:e.ip_address,location:e.location==null?void 0:e.location,user_agent:e.user_agent==null?void 0:e.user_agent}}function bc(e){return wc(e)}function wc(e,t){return e==null?e:{aal:e.aal==null?void 0:Ar(e.aal),completed_at:e.completed_at==null?void 0:new Date(e.completed_at),method:e.method==null?void 0:e.method,organization:e.organization==null?void 0:e.organization,provider:e.provider==null?void 0:e.provider}}function Zn(e){return Cc(e)}function Cc(e,t){return e==null?e:{active:e.active==null?void 0:e.active,authenticated_at:e.authenticated_at==null?void 0:new Date(e.authenticated_at),authentication_methods:e.authentication_methods==null?void 0:e.authentication_methods.map(bc),authenticator_assurance_level:e.authenticator_assurance_level==null?void 0:Ar(e.authenticator_assurance_level),devices:e.devices==null?void 0:e.devices.map(yc),expires_at:e.expires_at==null?void 0:new Date(e.expires_at),id:e.id,identity:e.identity==null?void 0:Rr(e.identity),issued_at:e.issued_at==null?void 0:new Date(e.issued_at),tokenized:e.tokenized==null?void 0:e.tokenized}}function Rn(e){return kc(e)}function kc(e,t){return e==null?e:{active:e.active==null?void 0:e.active,continue_with:e.continue_with==null?void 0:e.continue_with.map(mi),expires_at:new Date(e.expires_at),id:e.id,identity:Rr(e.identity),issued_at:new Date(e.issued_at),request_url:e.request_url,return_to:e.return_to==null?void 0:e.return_to,state:e.state,transient_payload:e.transient_payload==null?void 0:e.transient_payload,type:e.type,ui:bn(e.ui)}}function Po(e){return xc(e)}function xc(e,t){return e==null?e:{continue_with:e.continue_with==null?void 0:e.continue_with.map(mi),session:Zn(e.session),session_token:e.session_token==null?void 0:e.session_token}}function Tc(e){return _c(e)}function _c(e,t){return e==null?e:{continue_with:e.continue_with==null?void 0:e.continue_with.map(mi),identity:Rr(e.identity),session:e.session==null?void 0:Zn(e.session),session_token:e.session_token==null?void 0:e.session_token}}function Sc(e){return e==null?e:{address:e.address,code:e.code,csrf_token:e.csrf_token,identifier:e.identifier,method:e.method,resend:e.resend,transient_payload:e.transient_payload}}function Nc(e){return e==null?e:{csrf_token:e.csrf_token,identifier:e.identifier,method:e.method,transient_payload:e.transient_payload}}function Pc(e){return e==null?e:{csrf_token:e.csrf_token,lookup_secret:e.lookup_secret,method:e.method}}function Ec(e){return e==null?e:{csrf_token:e.csrf_token,id_token:e.id_token,id_token_nonce:e.id_token_nonce,method:e.method,provider:e.provider,traits:e.traits,transient_payload:e.transient_payload,upstream_parameters:e.upstream_parameters}}function Oc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,passkey_login:e.passkey_login}}function Ac(e){return e==null?e:{csrf_token:e.csrf_token,identifier:e.identifier,method:e.method,password:e.password,password_identifier:e.password_identifier,transient_payload:e.transient_payload}}function Rc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,totp_code:e.totp_code,transient_payload:e.transient_payload}}function Ic(e){return e==null?e:{csrf_token:e.csrf_token,identifier:e.identifier,method:e.method,transient_payload:e.transient_payload,webauthn_login:e.webauthn_login}}function Mc(e){if(e==null)return e;switch(e.method){case"code":return Sc(e);case"identifier_first":return Nc(e);case"lookup_secret":return Pc(e);case"oidc":return Ec(e);case"passkey":return Oc(e);case"password":return Ac(e);case"totp":return Rc(e);case"webauthn":return Ic(e);default:throw new Error(`No variant of UpdateLoginFlowBody exists with 'method=${e.method}'`)}}function Fc(e){return e==null?e:{code:e.code,csrf_token:e.csrf_token,email:e.email,method:e.method,transient_payload:e.transient_payload}}function Lc(e){return e==null?e:{csrf_token:e.csrf_token,email:e.email,method:e.method,transient_payload:e.transient_payload}}function Uc(e){if(e==null)return e;switch(e.method){case"code":return Fc(e);case"link":return Lc(e);default:throw new Error(`No variant of UpdateRecoveryFlowBody exists with 'method=${e.method}'`)}}function Dc(e){return e==null?e:{code:e.code,csrf_token:e.csrf_token,method:e.method,resend:e.resend,traits:e.traits,transient_payload:e.transient_payload}}function Bc(e){return e==null?e:{csrf_token:e.csrf_token,id_token:e.id_token,id_token_nonce:e.id_token_nonce,method:e.method,provider:e.provider,traits:e.traits,transient_payload:e.transient_payload,upstream_parameters:e.upstream_parameters}}function Hc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,passkey_register:e.passkey_register,traits:e.traits,transient_payload:e.transient_payload}}function qc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,password:e.password,traits:e.traits,transient_payload:e.transient_payload}}function jc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,screen:e.screen,traits:e.traits,transient_payload:e.transient_payload}}function zc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,traits:e.traits,transient_payload:e.transient_payload,webauthn_register:e.webauthn_register,webauthn_register_displayname:e.webauthn_register_displayname}}function Vc(e){if(e==null)return e;switch(e.method){case"code":return Dc(e);case"oidc":return Bc(e);case"passkey":return Hc(e);case"password":return qc(e);case"profile":return jc(e);case"webauthn":return zc(e);default:throw new Error(`No variant of UpdateRegistrationFlowBody exists with 'method=${e.method}'`)}}function Wc(e){return e==null?e:{csrf_token:e.csrf_token,lookup_secret_confirm:e.lookup_secret_confirm,lookup_secret_disable:e.lookup_secret_disable,lookup_secret_regenerate:e.lookup_secret_regenerate,lookup_secret_reveal:e.lookup_secret_reveal,method:e.method,transient_payload:e.transient_payload}}function Gc(e){return e==null?e:{flow:e.flow,link:e.link,method:e.method,traits:e.traits,transient_payload:e.transient_payload,unlink:e.unlink,upstream_parameters:e.upstream_parameters}}function $c(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,passkey_remove:e.passkey_remove,passkey_settings_register:e.passkey_settings_register}}function Kc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,password:e.password,transient_payload:e.transient_payload}}function Jc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,traits:e.traits,transient_payload:e.transient_payload}}function Zc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,totp_code:e.totp_code,totp_unlink:e.totp_unlink,transient_payload:e.transient_payload}}function Xc(e){return e==null?e:{csrf_token:e.csrf_token,method:e.method,transient_payload:e.transient_payload,webauthn_register:e.webauthn_register,webauthn_register_displayname:e.webauthn_register_displayname,webauthn_remove:e.webauthn_remove}}function Yc(e){if(e==null)return e;switch(e.method){case"lookup_secret":return Wc(e);case"oidc":return Gc(e);case"passkey":return $c(e);case"password":return Kc(e);case"profile":return Jc(e);case"totp":return Zc(e);case"webauthn":return Xc(e);default:throw new Error(`No variant of UpdateSettingsFlowBody exists with 'method=${e.method}'`)}}function Qc(e){return e==null?e:{code:e.code,csrf_token:e.csrf_token,email:e.email,method:e.method,transient_payload:e.transient_payload}}function em(e){return e==null?e:{csrf_token:e.csrf_token,email:e.email,method:e.method,transient_payload:e.transient_payload}}function tm(e){if(e==null)return e;switch(e.method){case"code":return Qc(e);case"link":return em(e);default:throw new Error(`No variant of UpdateVerificationFlowBody exists with 'method=${e.method}'`)}}function In(e){return nm(e)}function nm(e,t){return e==null?e:{active:e.active==null?void 0:e.active,expires_at:e.expires_at==null?void 0:new Date(e.expires_at),id:e.id,issued_at:e.issued_at==null?void 0:new Date(e.issued_at),request_url:e.request_url==null?void 0:e.request_url,return_to:e.return_to==null?void 0:e.return_to,state:e.state,transient_payload:e.transient_payload==null?void 0:e.transient_payload,type:e.type,ui:bn(e.ui)}}var H=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(m){try{c(i.next(m))}catch(p){s(p)}}function u(m){try{c(i.throw(m))}catch(p){s(p)}}function c(m){m.done?o(m.value):r(m.value).then(a,u)}c((i=i.apply(e,t||[])).next())})};class im extends ci{createBrowserLoginFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.refresh!=null&&(i.refresh=t.refresh),t.aal!=null&&(i.aal=t.aal),t.returnTo!=null&&(i.return_to=t.returnTo),t.loginChallenge!=null&&(i.login_challenge=t.loginChallenge),t.organization!=null&&(i.organization=t.organization),t.via!=null&&(i.via=t.via);const r={};t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/login/browser",method:"GET",headers:r,query:i},n);return new se(o,s=>ji(s))})}createBrowserLoginFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createBrowserLoginFlowRaw(t,n)).value()})}createBrowserLogoutFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.returnTo!=null&&(i.return_to=t.returnTo);const r={};t.cookie!=null&&(r.cookie=String(t.cookie));const o=yield this.request({path:"/self-service/logout/browser",method:"GET",headers:r,query:i},n);return new se(o,s=>mc(s))})}createBrowserLogoutFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createBrowserLogoutFlowRaw(t,n)).value()})}createBrowserRecoveryFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.returnTo!=null&&(i.return_to=t.returnTo);const r={},o=yield this.request({path:"/self-service/recovery/browser",method:"GET",headers:r,query:i},n);return new se(o,s=>An(s))})}createBrowserRecoveryFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createBrowserRecoveryFlowRaw(t,n)).value()})}createBrowserRegistrationFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.returnTo!=null&&(i.return_to=t.returnTo),t.loginChallenge!=null&&(i.login_challenge=t.loginChallenge),t.afterVerificationReturnTo!=null&&(i.after_verification_return_to=t.afterVerificationReturnTo),t.organization!=null&&(i.organization=t.organization);const r={},o=yield this.request({path:"/self-service/registration/browser",method:"GET",headers:r,query:i},n);return new se(o,s=>zi(s))})}createBrowserRegistrationFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createBrowserRegistrationFlowRaw(t,n)).value()})}createBrowserSettingsFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.returnTo!=null&&(i.return_to=t.returnTo);const r={};t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/settings/browser",method:"GET",headers:r,query:i},n);return new se(o,s=>Rn(s))})}createBrowserSettingsFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createBrowserSettingsFlowRaw(t,n)).value()})}createBrowserVerificationFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.returnTo!=null&&(i.return_to=t.returnTo);const r={},o=yield this.request({path:"/self-service/verification/browser",method:"GET",headers:r,query:i},n);return new se(o,s=>In(s))})}createBrowserVerificationFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createBrowserVerificationFlowRaw(t,n)).value()})}createNativeLoginFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.refresh!=null&&(i.refresh=t.refresh),t.aal!=null&&(i.aal=t.aal),t.returnSessionTokenExchangeCode!=null&&(i.return_session_token_exchange_code=t.returnSessionTokenExchangeCode),t.returnTo!=null&&(i.return_to=t.returnTo),t.organization!=null&&(i.organization=t.organization),t.via!=null&&(i.via=t.via);const r={};t.xSessionToken!=null&&(r["X-Session-Token"]=String(t.xSessionToken));const o=yield this.request({path:"/self-service/login/api",method:"GET",headers:r,query:i},n);return new se(o,s=>ji(s))})}createNativeLoginFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createNativeLoginFlowRaw(t,n)).value()})}createNativeRecoveryFlowRaw(t){return H(this,void 0,void 0,function*(){const n={},i={},r=yield this.request({path:"/self-service/recovery/api",method:"GET",headers:i,query:n},t);return new se(r,o=>An(o))})}createNativeRecoveryFlow(t){return H(this,void 0,void 0,function*(){return yield(yield this.createNativeRecoveryFlowRaw(t)).value()})}createNativeRegistrationFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.returnSessionTokenExchangeCode!=null&&(i.return_session_token_exchange_code=t.returnSessionTokenExchangeCode),t.returnTo!=null&&(i.return_to=t.returnTo),t.organization!=null&&(i.organization=t.organization);const r={},o=yield this.request({path:"/self-service/registration/api",method:"GET",headers:r,query:i},n);return new se(o,s=>zi(s))})}createNativeRegistrationFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createNativeRegistrationFlowRaw(t,n)).value()})}createNativeSettingsFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={},r={};t.xSessionToken!=null&&(r["X-Session-Token"]=String(t.xSessionToken));const o=yield this.request({path:"/self-service/settings/api",method:"GET",headers:r,query:i},n);return new se(o,s=>Rn(s))})}createNativeSettingsFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createNativeSettingsFlowRaw(t,n)).value()})}createNativeVerificationFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.returnTo!=null&&(i.return_to=t.returnTo);const r={},o=yield this.request({path:"/self-service/verification/api",method:"GET",headers:r,query:i},n);return new se(o,s=>In(s))})}createNativeVerificationFlow(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.createNativeVerificationFlowRaw(t,n)).value()})}disableMyOtherSessionsRaw(t,n){return H(this,void 0,void 0,function*(){const i={},r={};t.xSessionToken!=null&&(r["X-Session-Token"]=String(t.xSessionToken)),t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/sessions",method:"DELETE",headers:r,query:i},n);return new se(o,s=>Bl(s))})}disableMyOtherSessions(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.disableMyOtherSessionsRaw(t,n)).value()})}disableMySessionRaw(t,n){return H(this,void 0,void 0,function*(){if(t.id==null)throw new we("id",'Required parameter "id" was null or undefined when calling disableMySession().');const i={},r={};t.xSessionToken!=null&&(r["X-Session-Token"]=String(t.xSessionToken)),t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/sessions/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"DELETE",headers:r,query:i},n);return new qi(o)})}disableMySession(t,n){return H(this,void 0,void 0,function*(){yield this.disableMySessionRaw(t,n)})}exchangeSessionTokenRaw(t,n){return H(this,void 0,void 0,function*(){if(t.initCode==null)throw new we("initCode",'Required parameter "initCode" was null or undefined when calling exchangeSessionToken().');if(t.returnToCode==null)throw new we("returnToCode",'Required parameter "returnToCode" was null or undefined when calling exchangeSessionToken().');const i={};t.initCode!=null&&(i.init_code=t.initCode),t.returnToCode!=null&&(i.return_to_code=t.returnToCode);const r={},o=yield this.request({path:"/sessions/token-exchange",method:"GET",headers:r,query:i},n);return new se(o,s=>Po(s))})}exchangeSessionToken(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.exchangeSessionTokenRaw(t,n)).value()})}getFlowErrorRaw(t,n){return H(this,void 0,void 0,function*(){if(t.id==null)throw new we("id",'Required parameter "id" was null or undefined when calling getFlowError().');const i={};t.id!=null&&(i.id=t.id);const r={},o=yield this.request({path:"/self-service/errors",method:"GET",headers:r,query:i},n);return new se(o,s=>ql(s))})}getFlowError(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getFlowErrorRaw(t,n)).value()})}getLoginFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.id==null)throw new we("id",'Required parameter "id" was null or undefined when calling getLoginFlow().');const i={};t.id!=null&&(i.id=t.id);const r={};t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/login/flows",method:"GET",headers:r,query:i},n);return new se(o,s=>ji(s))})}getLoginFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getLoginFlowRaw(t,n)).value()})}getRecoveryFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.id==null)throw new we("id",'Required parameter "id" was null or undefined when calling getRecoveryFlow().');const i={};t.id!=null&&(i.id=t.id);const r={};t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/recovery/flows",method:"GET",headers:r,query:i},n);return new se(o,s=>An(s))})}getRecoveryFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getRecoveryFlowRaw(t,n)).value()})}getRegistrationFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.id==null)throw new we("id",'Required parameter "id" was null or undefined when calling getRegistrationFlow().');const i={};t.id!=null&&(i.id=t.id);const r={};t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/registration/flows",method:"GET",headers:r,query:i},n);return new se(o,s=>zi(s))})}getRegistrationFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getRegistrationFlowRaw(t,n)).value()})}getSettingsFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.id==null)throw new we("id",'Required parameter "id" was null or undefined when calling getSettingsFlow().');const i={};t.id!=null&&(i.id=t.id);const r={};t.xSessionToken!=null&&(r["X-Session-Token"]=String(t.xSessionToken)),t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/settings/flows",method:"GET",headers:r,query:i},n);return new se(o,s=>Rn(s))})}getSettingsFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getSettingsFlowRaw(t,n)).value()})}getVerificationFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.id==null)throw new we("id",'Required parameter "id" was null or undefined when calling getVerificationFlow().');const i={};t.id!=null&&(i.id=t.id);const r={};t.cookie!=null&&(r.cookie=String(t.cookie));const o=yield this.request({path:"/self-service/verification/flows",method:"GET",headers:r,query:i},n);return new se(o,s=>In(s))})}getVerificationFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getVerificationFlowRaw(t,n)).value()})}getWebAuthnJavaScriptRaw(t){return H(this,void 0,void 0,function*(){const n={},i={},r=yield this.request({path:"/.well-known/ory/webauthn.js",method:"GET",headers:i,query:n},t);return this.isJsonMime(r.headers.get("content-type"))?new se(r):new wl(r)})}getWebAuthnJavaScript(t){return H(this,void 0,void 0,function*(){return yield(yield this.getWebAuthnJavaScriptRaw(t)).value()})}listMySessionsRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.perPage!=null&&(i.per_page=t.perPage),t.page!=null&&(i.page=t.page),t.pageSize!=null&&(i.page_size=t.pageSize),t.pageToken!=null&&(i.page_token=t.pageToken);const r={};t.xSessionToken!=null&&(r["X-Session-Token"]=String(t.xSessionToken)),t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/sessions",method:"GET",headers:r,query:i},n);return new se(o,s=>s.map(Zn))})}listMySessions(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.listMySessionsRaw(t,n)).value()})}performNativeLogoutRaw(t,n){return H(this,void 0,void 0,function*(){if(t.performNativeLogoutBody==null)throw new we("performNativeLogoutBody",'Required parameter "performNativeLogoutBody" was null or undefined when calling performNativeLogout().');const i={},r={};r["Content-Type"]="application/json";const o=yield this.request({path:"/self-service/logout/api",method:"DELETE",headers:r,query:i,body:gc(t.performNativeLogoutBody)},n);return new qi(o)})}performNativeLogout(t,n){return H(this,void 0,void 0,function*(){yield this.performNativeLogoutRaw(t,n)})}toSessionRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.tokenizeAs!=null&&(i.tokenize_as=t.tokenizeAs);const r={};t.xSessionToken!=null&&(r["X-Session-Token"]=String(t.xSessionToken)),t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/sessions/whoami",method:"GET",headers:r,query:i},n);return new se(o,s=>Zn(s))})}toSession(){return H(this,arguments,void 0,function*(t={},n){return yield(yield this.toSessionRaw(t,n)).value()})}updateLoginFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.flow==null)throw new we("flow",'Required parameter "flow" was null or undefined when calling updateLoginFlow().');if(t.updateLoginFlowBody==null)throw new we("updateLoginFlowBody",'Required parameter "updateLoginFlowBody" was null or undefined when calling updateLoginFlow().');const i={};t.flow!=null&&(i.flow=t.flow);const r={};r["Content-Type"]="application/json",t.xSessionToken!=null&&(r["X-Session-Token"]=String(t.xSessionToken)),t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/login",method:"POST",headers:r,query:i,body:Mc(t.updateLoginFlowBody)},n);return new se(o,s=>Po(s))})}updateLoginFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.updateLoginFlowRaw(t,n)).value()})}updateLogoutFlowRaw(t,n){return H(this,void 0,void 0,function*(){const i={};t.token!=null&&(i.token=t.token),t.returnTo!=null&&(i.return_to=t.returnTo);const r={};t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/logout",method:"GET",headers:r,query:i},n);return new qi(o)})}updateLogoutFlow(){return H(this,arguments,void 0,function*(t={},n){yield this.updateLogoutFlowRaw(t,n)})}updateRecoveryFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.flow==null)throw new we("flow",'Required parameter "flow" was null or undefined when calling updateRecoveryFlow().');if(t.updateRecoveryFlowBody==null)throw new we("updateRecoveryFlowBody",'Required parameter "updateRecoveryFlowBody" was null or undefined when calling updateRecoveryFlow().');const i={};t.flow!=null&&(i.flow=t.flow),t.token!=null&&(i.token=t.token);const r={};r["Content-Type"]="application/json",t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/recovery",method:"POST",headers:r,query:i,body:Uc(t.updateRecoveryFlowBody)},n);return new se(o,s=>An(s))})}updateRecoveryFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.updateRecoveryFlowRaw(t,n)).value()})}updateRegistrationFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.flow==null)throw new we("flow",'Required parameter "flow" was null or undefined when calling updateRegistrationFlow().');if(t.updateRegistrationFlowBody==null)throw new we("updateRegistrationFlowBody",'Required parameter "updateRegistrationFlowBody" was null or undefined when calling updateRegistrationFlow().');const i={};t.flow!=null&&(i.flow=t.flow);const r={};r["Content-Type"]="application/json",t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/registration",method:"POST",headers:r,query:i,body:Vc(t.updateRegistrationFlowBody)},n);return new se(o,s=>Tc(s))})}updateRegistrationFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.updateRegistrationFlowRaw(t,n)).value()})}updateSettingsFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.flow==null)throw new we("flow",'Required parameter "flow" was null or undefined when calling updateSettingsFlow().');if(t.updateSettingsFlowBody==null)throw new we("updateSettingsFlowBody",'Required parameter "updateSettingsFlowBody" was null or undefined when calling updateSettingsFlow().');const i={};t.flow!=null&&(i.flow=t.flow);const r={};r["Content-Type"]="application/json",t.xSessionToken!=null&&(r["X-Session-Token"]=String(t.xSessionToken)),t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/settings",method:"POST",headers:r,query:i,body:Yc(t.updateSettingsFlowBody)},n);return new se(o,s=>Rn(s))})}updateSettingsFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.updateSettingsFlowRaw(t,n)).value()})}updateVerificationFlowRaw(t,n){return H(this,void 0,void 0,function*(){if(t.flow==null)throw new we("flow",'Required parameter "flow" was null or undefined when calling updateVerificationFlow().');if(t.updateVerificationFlowBody==null)throw new we("updateVerificationFlowBody",'Required parameter "updateVerificationFlowBody" was null or undefined when calling updateVerificationFlow().');const i={};t.flow!=null&&(i.flow=t.flow),t.token!=null&&(i.token=t.token);const r={};r["Content-Type"]="application/json",t.cookie!=null&&(r.Cookie=String(t.cookie));const o=yield this.request({path:"/self-service/verification",method:"POST",headers:r,query:i,body:tm(t.updateVerificationFlowBody)},n);return new se(o,s=>In(s))})}updateVerificationFlow(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.updateVerificationFlowRaw(t,n)).value()})}}function cn(e){return typeof e=="object"&&!!e&&"error"in e&&typeof e.error=="object"&&!!e.error&&"id"in e.error}function rm(e){return cn(e)&&e.error.id==="session_refresh_required"}function Eo(e){return cn(e)&&e.error.id==="self_service_flow_expired"}function om(e){return cn(e)&&cn(e)&&e.error.id==="browser_location_change_required"}function sm(e){return cn(e)&&e.error.id==="security_csrf_violation"}const Hs=e=>e instanceof ln?!0:typeof e=="object"&&!!e&&"name"in e&&e.name==="ResponseError",Oo=e=>e.sdk.url+"/self-service/registration/browser",qs=e=>e.sdk.url+"/self-service/login/browser",Ao=e=>e.sdk.url+"/self-service/settings/browser",js=e=>e.sdk.url+"/self-service/recovery/browser",am=e=>e.sdk.url+"/self-service/verification/browser";var J;(function(e){e.Login="login",e.Registration="registration",e.Recovery="recovery",e.Verification="verification",e.Settings="settings",e.Error="error"})(J||(J={}));var zs=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(m){try{c(i.next(m))}catch(p){s(p)}}function u(m){try{c(i.throw(m))}catch(p){s(p)}}function c(m){m.done?o(m.value):r(m.value).then(a,u)}c((i=i.apply(e,t||[])).next())})};const wn=e=>t=>zs(void 0,void 0,void 0,function*(){if(Hs(t))switch(t.response.status){case 404:e.onRestartFlow();return;case 410:const n=yield Ro(t.response);if(Eo(n)){e.onRestartFlow(n.use_flow_id);return}e.onRestartFlow();return;case 400:return e.onValidationError(yield t.response.json());case 403:case 422:{const i=yield Ro(t.response);if(om(i)&&i.redirect_browser_to){e.onRedirect(i.redirect_browser_to,!0);return}else if(Eo(i)){e.onRestartFlow(i.use_flow_id);return}else if(rm(i)){e.onRedirect(i.redirect_browser_to,!0);return}else if(sm(i)){e.onRestartFlow();return}throw new ln(t.response,"The Ory API endpoint returned a response code the SDK does not know how to handle. Please check the network tab for more information:"+JSON.stringify(i))}default:throw new ln(t.response,"The Ory API endpoint returned a response code the SDK does not know how to handle. Please check the network tab for more information.")}else if(t instanceof ur)throw new ur(t,"Unable to call the API endpoint. Ensure that CORS is set up correctly and that you have provided a valid SDK URL to Ory Elements.");throw t});function Ro(e){return zs(this,void 0,void 0,function*(){try{return yield e.clone().json()}catch{throw new ln(e,"The Ory API endpoint returned a response the SDK does not know how to handle:"+(yield e.text()))}})}const Io=["show_settings_ui","show_recovery_ui","show_verification_ui","redirect_browser_to","set_ory_session_token"];function Ir(e,{onRedirect:t}){if(!e||e.length===0)return!1;const n=dm(e);if(!n)return!1;const i=(r,o,s)=>s?(t(s,!0),!0):(t("/"+o+"?flow="+r,!1),!0);if(um(n))throw new Error("Ory Elements does not support API flows yet.");if(lm(n)&&n.redirect_browser_to)return t(n.redirect_browser_to,!0),!0;if(pm(n))return i(n.flow.id,"verification",n.flow.url);if(cm(n))return i(n.flow.id,"recovery",n.flow.url);if(mm(n))return i(n.flow.id,"settings",n.flow.url);throw new Error("Unknown action: "+JSON.stringify(n))}function dm(e){return!e||e.length===0?void 0:e.sort((n,i)=>Io.indexOf(n.action)-Io.indexOf(i.action))[0]}function um(e){return e.action==="set_ory_session_token"}function lm(e){return e.action==="redirect_browser_to"}function cm(e){return e.action==="show_recovery_ui"}function mm(e){return e.action==="show_settings_ui"}function pm(e){return e.action==="show_verification_ui"}const Cn=e=>{const t=e.attributes;return Mr(t)?t.title:Fr(t)?e.meta.label:Kt(t)&&t.label?t.label:e.meta.label};function Mr(e){return e.node_type==="a"}function Fr(e){return e.node_type==="img"}function Kt(e){return e.node_type==="input"}function gm(e){return e.node_type==="text"}function Vs(e){return e.node_type==="script"}const hb={name:"Acme Inc.",sdk:{url:""},project:{registration_enabled:!0,verification_enabled:!0,recovery_enabled:!0,login_ui_url:"",recovery_ui_url:"",registration_ui_url:"",verification_ui_url:""}},fm=e=>l.createElement("svg",{width:22,height:8,viewBox:"0 0 22 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18.0074 8L16.2963 8L18.304 4.00381L16.2963 9.06665e-07L18.0074 1.00186e-06L19.152 2.30095L20.3269 1.13091e-06L22 1.224e-06L18.0074 8Z",fill:"#0F172A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9015 4.86095C13.9317 4.57524 14.6903 3.62286 14.6978 2.49524L14.6978 2.47619L14.6978 2.45714C14.6865 1.09714 13.5921 7.56213e-07 12.2448 6.81256e-07L9.03705 5.02788e-07L9.03705 1.44L10.2447 3.42476L9.04082 3.42476L9.04082 8L10.5504 8L10.5504 4.94857L11.1844 4.94857L13.04 8L14.8148 8L12.9015 4.86095ZM12.0259 3.42857L12.2486 3.42857C12.7694 3.42857 13.1921 3.00191 13.1921 2.47619C13.1921 1.95048 12.7694 1.52381 12.2486 1.52381L10.8598 1.52381L12.0259 3.42857Z",fill:"#0F172A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2.22545e-07C1.79048 9.96155e-08 -9.96154e-08 1.79048 -2.22545e-07 4C-3.45475e-07 6.20952 1.79048 8 4 8C6.20952 8 8 6.20952 8 4C8 1.79048 6.20953 3.45475e-07 4 2.22545e-07ZM1.52381 4C1.52381 5.36762 2.63238 6.47619 4 6.47619C5.36762 6.47619 6.47619 5.36762 6.47619 4C6.47619 2.63238 5.36762 1.52381 4 1.52381C2.63238 1.52381 1.52381 2.63238 1.52381 4Z",fill:"#0F172A"})),hm=e=>l.createElement("svg",{width:8,height:22,viewBox:"0 0 8 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8 3.99259L8 5.7037L4.00381 3.696L1.94331e-07 5.7037L2.14736e-07 3.99259L2.30095 2.84805L2.42396e-07 1.67309L2.62347e-07 0L8 3.99259Z",fill:"#0F172A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.86095 9.09852C4.57524 8.06826 3.62286 7.30971 2.49524 7.30216L2.47619 7.30216L2.45714 7.30216C1.09714 7.31348 1.62084e-07 8.4079 1.46018e-07 9.75517L1.07766e-07 12.963L1.44 12.963L3.42476 11.7553L3.42476 12.9592L8 12.9592L8 11.4496L4.94857 11.4496L4.94857 10.8156L8 8.96005L8 7.18517L4.86095 9.09852ZM3.42857 9.97406L3.42857 9.7514C3.42857 9.23061 3.0019 8.80793 2.47619 8.80793C1.95048 8.80793 1.52381 9.23061 1.52381 9.7514L1.52381 11.1402L3.42857 9.97406Z",fill:"#0F172A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.76995e-08 18C2.13512e-08 20.2095 1.79048 22 4 22C6.20952 22 8 20.2095 8 18C8 15.7905 6.20952 14 4 14C1.79048 14 7.40478e-08 15.7905 4.76995e-08 18ZM4 20.4762C5.36762 20.4762 6.47619 19.3676 6.47619 18C6.47619 16.6324 5.36762 15.5238 4 15.5238C2.63238 15.5238 1.52381 16.6324 1.52381 18C1.52381 19.3676 2.63238 20.4762 4 20.4762Z",fill:"#0F172A"}));function Ws(){return d.jsxs("div",{className:"absolute bg-ory-background-default p-2 font-bold max-sm:bottom-0 max-sm:left-8 max-sm:translate-y-full max-sm:rounded-b-md sm:right-0 sm:top-8 sm:translate-x-full sm:rounded-r-lg border-ory-border-default border max-sm:py-[7px] sm:pl-[7px]",children:[d.jsx(fm,{width:22,height:8,className:"sm:hidden"}),d.jsx(hm,{width:8,height:22,className:"max-sm:hidden"})]})}Ws.__docgenInfo={description:"",methods:[],displayName:"Badge"};function ym({children:e}){return e}const pi=l.createContext({components:null,nodeSorter:()=>0,groupSorter:()=>0});function ue(){const e=l.useContext(pi);if(!e)throw new Error("useComponents must be used within a ComponentProvider");return e.components}function Gs(){const e=l.useContext(pi);if(!e)throw new Error("useNodeSorter must be used within a ComponentProvider");return e.nodeSorter}function vm(){const e=l.useContext(pi);if(!e)throw new Error("useGroupSorter must be used within a ComponentProvider");return e.groupSorter}const Mo=["oidc","identifier_first","default","profile","password","passkey","code","webauthn"];function bm(e,t){const n=Mo.indexOf(e.group)??999,i=Mo.indexOf(t.group)??999;return n-i}const Fo=[re.Default,re.Profile,re.Password,re.Oidc,re.Code,re.LookupSecret,re.Passkey,re.Webauthn,re.Totp];function wm(e,t){const n=Fo.indexOf(e)??999,i=Fo.indexOf(t)??999;return n-i}function $s({children:e,components:t,nodeSorter:n=bm,groupSorter:i=wm}){return d.jsx(pi.Provider,{value:{components:t,nodeSorter:n,groupSorter:i},children:e})}$s.__docgenInfo={description:"",methods:[],displayName:"OryComponentProvider",props:{components:{required:!0,tsType:{name:"signature",type:"object",raw:`{
2
- Node: {
3
- /**
4
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
5
- */
6
- Button: ComponentType<OryNodeButtonProps>
7
- /**
8
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
9
- *
10
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
11
- */
12
- OidcButton: ComponentType<OryNodeOidcButtonProps>
13
- /**
14
- * Anchor component, rendered whenever an "anchor" node is encountered
15
- */
16
- Anchor: ComponentType<OryNodeAnchorProps>
17
- /**
18
- * The Input component is rendered whenever a "input" node is encountered.
19
- */
20
- Input: ComponentType<OryNodeInputProps>
21
- /**
22
- * Special version of the Input component for OTP codes.
23
- */
24
- CodeInput: ComponentType<OryNodeInputProps>
25
- /**
26
- * The Image component is rendered whenever an "image" node is encountered.
27
- *
28
- * For example used in the "Logo" node.
29
- */
30
- Image: ComponentType<OryNodeImageProps>
31
- /**
32
- * The Label component is rendered around Input components and is used to render form labels.
33
- */
34
- Label: ComponentType<OryNodeLabelProps>
35
- /**
36
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
37
- */
38
- Checkbox: ComponentType<OryNodeInputProps>
39
- /**
40
- * The Text component is rendered whenever a "text" node is encountered.
41
- */
42
- Text: ComponentType<OryNodeTextProps>
43
- }
44
- Card: {
45
- /**
46
- * The card container is the main container of the card.
47
- */
48
- Root: ComponentType<OryCardRootProps>
49
- /**
50
- * The card footer is the footer of the card container.
51
- */
52
- Footer: ComponentType<OryCardFooterProps>
53
- /**
54
- * The card header is the header of the card container.
55
- */
56
- Header: ComponentType<OryCardRootProps>
57
- /**
58
- * The card content is the main content of the card container.
59
- */
60
- Content: ComponentType<OryCardContentProps>
61
- /**
62
- * The card logo is the logo of the card container.
63
- */
64
- Logo: ComponentType<OryCardLogoProps>
65
- /**
66
- * The HorizontalDivider component is rendered between groups.
67
- */
68
- Divider: ComponentType<OryCardDividerProps>
69
- /**
70
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
71
- *
72
- * This is only used, if login is configured to use identifier_first authentication.
73
- */
74
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
75
-
76
- /**
77
- * The SettingsSection component is rendered around each section of the settings.
78
- */
79
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
80
- /**
81
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
82
- */
83
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
84
- /**
85
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
86
- */
87
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
88
- }
89
- Form: {
90
- /**
91
- * The FormContainer component is the main container of the form.
92
- *
93
- * It should render its children.
94
- *
95
- * You most likely don't want to override this component directly.
96
- */
97
- Root: ComponentType<OryFormRootProps>
98
- /**
99
- * A special form group container for the social buttons.
100
- *
101
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
102
- *
103
- * You most likely don't want to override this component directly.
104
- */
105
- OidcRoot: ComponentType<OryFormOidcRootProps>
106
-
107
- /**
108
- * The FormGroup is rendered around each group of nodes in the UI nodes.
109
- */
110
- Group: ComponentType<OryFormGroupProps>
111
-
112
- /**
113
- * The section on the settings page, rendering the OIDC settings
114
- */
115
- OidcSettings: ComponentType<OrySettingsOidcProps>
116
-
117
- /**
118
- * The section on the settings page, rendering the Webauthn settings
119
- */
120
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
121
-
122
- /**
123
- * The section on the settings page, rendering the Passkey settings
124
- */
125
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
126
-
127
- /**
128
- * The section on the settings page, rendering the TOTP settings
129
- */
130
- TotpSettings: ComponentType<OrySettingsTotpProps>
131
-
132
- /**
133
- * The section on the settings page, rendering the recovery code settings
134
- */
135
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
136
- }
137
- Message: {
138
- /**
139
- * The MessageContainer is rendered around the messages.
140
- */
141
- Root: ComponentType<OryMessageRootProps>
142
-
143
- /**
144
- * The Message component is rendered whenever a message is encountered.
145
- */
146
- Content: ComponentType<OryMessageContentProps>
147
- }
148
- Page: {
149
- Header: ComponentType<OryPageHeaderProps>
150
- }
151
- }`,signature:{properties:[{key:"Node",value:{name:"signature",type:"object",raw:`{
152
- /**
153
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
154
- */
155
- Button: ComponentType<OryNodeButtonProps>
156
- /**
157
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
158
- *
159
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
160
- */
161
- OidcButton: ComponentType<OryNodeOidcButtonProps>
162
- /**
163
- * Anchor component, rendered whenever an "anchor" node is encountered
164
- */
165
- Anchor: ComponentType<OryNodeAnchorProps>
166
- /**
167
- * The Input component is rendered whenever a "input" node is encountered.
168
- */
169
- Input: ComponentType<OryNodeInputProps>
170
- /**
171
- * Special version of the Input component for OTP codes.
172
- */
173
- CodeInput: ComponentType<OryNodeInputProps>
174
- /**
175
- * The Image component is rendered whenever an "image" node is encountered.
176
- *
177
- * For example used in the "Logo" node.
178
- */
179
- Image: ComponentType<OryNodeImageProps>
180
- /**
181
- * The Label component is rendered around Input components and is used to render form labels.
182
- */
183
- Label: ComponentType<OryNodeLabelProps>
184
- /**
185
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
186
- */
187
- Checkbox: ComponentType<OryNodeInputProps>
188
- /**
189
- * The Text component is rendered whenever a "text" node is encountered.
190
- */
191
- Text: ComponentType<OryNodeTextProps>
192
- }`,signature:{properties:[{key:"Button",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
193
- attributes: UiNodeInputAttributes
194
- node: UiNode
195
- } & Omit<ComponentPropsWithoutRef<"button">, "children"> &
196
- ButtonVariants`,elements:[{name:"signature",type:"object",raw:`{
197
- attributes: UiNodeInputAttributes
198
- node: UiNode
199
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"button"'}],raw:'ComponentPropsWithoutRef<"button">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"button">, "children">'},{name:"VariantProps",elements:[{name:"buttonStyles"}],raw:"VariantProps<typeof buttonStyles>"}]}],raw:"ComponentType<OryNodeButtonProps>",required:!0},description:"Button component, rendered whenever a button is encountered in the Ory UI Nodes."},{key:"OidcButton",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
200
- node: UiNode
201
- attributes: UiNodeInputAttributes
202
- onClick?: () => void
203
- }`,signature:{properties:[{key:"node",value:{name:"UiNode",required:!0}},{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}}],raw:"ComponentType<OryNodeOidcButtonProps>",required:!0},description:`The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
204
-
205
- It renders the "Login with Google", "Login with Facebook" etc. buttons.`},{key:"Anchor",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
206
- attributes: UiNodeAnchorAttributes
207
- node: UiNode
208
- } & Omit<ComponentPropsWithoutRef<"a">, "children">`,elements:[{name:"signature",type:"object",raw:`{
209
- attributes: UiNodeAnchorAttributes
210
- node: UiNode
211
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeAnchorAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"a"'}],raw:'ComponentPropsWithoutRef<"a">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"a">, "children">'}]}],raw:"ComponentType<OryNodeAnchorProps>",required:!0},description:'Anchor component, rendered whenever an "anchor" node is encountered'},{key:"Input",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
212
- attributes: UiNodeInputAttributes
213
- node: UiNode
214
- onClick?: MouseEventHandler
215
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:'The Input component is rendered whenever a "input" node is encountered.'},{key:"CodeInput",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
216
- attributes: UiNodeInputAttributes
217
- node: UiNode
218
- onClick?: MouseEventHandler
219
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"Special version of the Input component for OTP codes."},{key:"Image",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
220
- attributes: UiNodeImageAttributes
221
- node: UiNode
222
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeImageAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeImageProps>",required:!0},description:`The Image component is rendered whenever an "image" node is encountered.
223
-
224
- For example used in the "Logo" node.`},{key:"Label",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
225
- attributes: UiNodeInputAttributes
226
- node: UiNode
227
- } & ComponentPropsWithoutRef<"label">`,elements:[{name:"signature",type:"object",raw:`{
228
- attributes: UiNodeInputAttributes
229
- node: UiNode
230
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"label"'}],raw:'ComponentPropsWithoutRef<"label">'}]}],raw:"ComponentType<OryNodeLabelProps>",required:!0},description:"The Label component is rendered around Input components and is used to render form labels."},{key:"Checkbox",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
231
- attributes: UiNodeInputAttributes
232
- node: UiNode
233
- onClick?: MouseEventHandler
234
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"The Checkbox component is rendered whenever an input node with of boolean type is encountered."},{key:"Text",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
235
- attributes: UiNodeTextAttributes
236
- node: UiNode
237
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeTextAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeTextProps>",required:!0},description:'The Text component is rendered whenever a "text" node is encountered.'}]},required:!0}},{key:"Card",value:{name:"signature",type:"object",raw:`{
238
- /**
239
- * The card container is the main container of the card.
240
- */
241
- Root: ComponentType<OryCardRootProps>
242
- /**
243
- * The card footer is the footer of the card container.
244
- */
245
- Footer: ComponentType<OryCardFooterProps>
246
- /**
247
- * The card header is the header of the card container.
248
- */
249
- Header: ComponentType<OryCardRootProps>
250
- /**
251
- * The card content is the main content of the card container.
252
- */
253
- Content: ComponentType<OryCardContentProps>
254
- /**
255
- * The card logo is the logo of the card container.
256
- */
257
- Logo: ComponentType<OryCardLogoProps>
258
- /**
259
- * The HorizontalDivider component is rendered between groups.
260
- */
261
- Divider: ComponentType<OryCardDividerProps>
262
- /**
263
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
264
- *
265
- * This is only used, if login is configured to use identifier_first authentication.
266
- */
267
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
268
-
269
- /**
270
- * The SettingsSection component is rendered around each section of the settings.
271
- */
272
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
273
- /**
274
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
275
- */
276
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
277
- /**
278
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
279
- */
280
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
281
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card container is the main container of the card."},{key:"Footer",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardFooterProps>",required:!0},description:"The card footer is the footer of the card container."},{key:"Header",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card header is the header of the card container."},{key:"Content",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardContentProps>",required:!0},description:"The card content is the main content of the card container."},{key:"Logo",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardLogoProps>",required:!0},description:"The card logo is the logo of the card container."},{key:"Divider",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardDividerProps>",required:!0},description:"The HorizontalDivider component is rendered between groups."},{key:"AuthMethodListItem",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
282
- onClick: () => void
283
- group: string
284
- }`,signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"group",value:{name:"string",required:!0}}]}}],raw:"ComponentType<OryCardAuthMethodListItemProps>",required:!0},description:`The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
285
-
286
- This is only used, if login is configured to use identifier_first authentication.`},{key:"SettingsSection",value:{name:"ComponentType",elements:[{name:"intersection",raw:`PropsWithChildren & {
287
- action: string
288
- method: string
289
- onSubmit: FormEventHandler<HTMLFormElement>
290
- }`,elements:[{name:"PropsWithChildren"},{name:"signature",type:"object",raw:`{
291
- action: string
292
- method: string
293
- onSubmit: FormEventHandler<HTMLFormElement>
294
- }`,signature:{properties:[{key:"action",value:{name:"string",required:!0}},{key:"method",value:{name:"string",required:!0}},{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryCardSettingsSectionProps>",required:!0},description:"The SettingsSection component is rendered around each section of the settings."},{key:"SettingsSectionContent",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
295
- title?: string
296
- description?: string
297
- }`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"description",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
298
- title?: string
299
- description?: string
300
- }>`}],raw:"ComponentType<OryFormSectionContentProps>",required:!0},description:"The SettingsSectionContent component is rendered around the content of each section of the settings."},{key:"SettingsSectionFooter",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
301
- text?: string
302
- }`,signature:{properties:[{key:"text",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
303
- text?: string
304
- }>`}],raw:"ComponentType<OryFormSectionFooterProps>",required:!0},description:"The SettingsSectionFooter component is rendered around the footer of each section of the settings."}]},required:!0}},{key:"Form",value:{name:"signature",type:"object",raw:`{
305
- /**
306
- * The FormContainer component is the main container of the form.
307
- *
308
- * It should render its children.
309
- *
310
- * You most likely don't want to override this component directly.
311
- */
312
- Root: ComponentType<OryFormRootProps>
313
- /**
314
- * A special form group container for the social buttons.
315
- *
316
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
317
- *
318
- * You most likely don't want to override this component directly.
319
- */
320
- OidcRoot: ComponentType<OryFormOidcRootProps>
321
-
322
- /**
323
- * The FormGroup is rendered around each group of nodes in the UI nodes.
324
- */
325
- Group: ComponentType<OryFormGroupProps>
326
-
327
- /**
328
- * The section on the settings page, rendering the OIDC settings
329
- */
330
- OidcSettings: ComponentType<OrySettingsOidcProps>
331
-
332
- /**
333
- * The section on the settings page, rendering the Webauthn settings
334
- */
335
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
336
-
337
- /**
338
- * The section on the settings page, rendering the Passkey settings
339
- */
340
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
341
-
342
- /**
343
- * The section on the settings page, rendering the TOTP settings
344
- */
345
- TotpSettings: ComponentType<OrySettingsTotpProps>
346
-
347
- /**
348
- * The section on the settings page, rendering the recovery code settings
349
- */
350
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
351
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"intersection",raw:`ComponentPropsWithoutRef<"form"> & {
352
- onSubmit: FormEventHandler<HTMLFormElement>
353
- }`,elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"form"'}],raw:'ComponentPropsWithoutRef<"form">'},{name:"signature",type:"object",raw:`{
354
- onSubmit: FormEventHandler<HTMLFormElement>
355
- }`,signature:{properties:[{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryFormRootProps>",required:!0},description:`The FormContainer component is the main container of the form.
356
-
357
- It should render its children.
358
-
359
- You most likely don't want to override this component directly.`},{key:"OidcRoot",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
360
- nodes: UiNode[]
361
- }`,signature:{properties:[{key:"nodes",value:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]",required:!0}}]}}],raw:`PropsWithChildren<{
362
- nodes: UiNode[]
363
- }>`}],raw:"ComponentType<OryFormOidcRootProps>",required:!0},description:`A special form group container for the social buttons.
364
-
365
- This is required, because the social buttons need to be in its form, to not influence the other form groups.
366
-
367
- You most likely don't want to override this component directly.`},{key:"Group",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryFormGroupProps>",required:!0},description:"The FormGroup is rendered around each group of nodes in the UI nodes."},{key:"OidcSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
368
- linkButtons: (UiNode & { onClick: () => void })[]
369
- unlinkButtons: (UiNode & { onClick: () => void })[]
370
- }`,signature:{properties:[{key:"linkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}},{key:"unlinkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsOidcProps>",required:!0},description:"The section on the settings page, rendering the OIDC settings"},{key:"WebauthnSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
371
- nameInput: UiNode
372
- triggerButton: UiNode & { onClick: () => void }
373
- removeButtons: (UiNode & { onClick: () => void })[]
374
- }`,signature:{properties:[{key:"nameInput",value:{name:"UiNode",required:!0}},{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsWebauthnProps>",required:!0},description:"The section on the settings page, rendering the Webauthn settings"},{key:"PasskeySettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
375
- triggerButton: UiNode & { onClick: () => void }
376
- removeButtons: (UiNode & { onClick: () => void })[]
377
- }`,signature:{properties:[{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsPasskeyProps>",required:!0},description:"The section on the settings page, rendering the Passkey settings"},{key:"TotpSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
378
- totpImage: UiNode | undefined
379
- totpSecret: UiNode | undefined
380
- totpInput: UiNode | undefined
381
- totpUnlink: UiNode | undefined
382
- onUnlink: () => void
383
- }`,signature:{properties:[{key:"totpImage",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpSecret",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpInput",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpUnlink",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onUnlink",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsTotpProps>",required:!0},description:"The section on the settings page, rendering the TOTP settings"},{key:"RecoveryCodesSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
384
- codes: string[]
385
- regnerateButton: UiNode | undefined
386
- revealButton: UiNode | undefined
387
- onRegenerate: () => void
388
- onReveal: () => void
389
- }`,signature:{properties:[{key:"codes",value:{name:"Array",elements:[{name:"string"}],raw:"string[]",required:!0}},{key:"regnerateButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"revealButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onRegenerate",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onReveal",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsRecoveryCodesProps>",required:!0},description:"The section on the settings page, rendering the recovery code settings"}]},required:!0}},{key:"Message",value:{name:"signature",type:"object",raw:`{
390
- /**
391
- * The MessageContainer is rendered around the messages.
392
- */
393
- Root: ComponentType<OryMessageRootProps>
394
-
395
- /**
396
- * The Message component is rendered whenever a message is encountered.
397
- */
398
- Content: ComponentType<OryMessageContentProps>
399
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"DetailedHTMLProps",elements:[{name:"HTMLAttributes",elements:[{name:"HTMLDivElement"}],raw:"HTMLAttributes<HTMLDivElement>"},{name:"HTMLDivElement"}],raw:`DetailedHTMLProps<
400
- HTMLAttributes<HTMLDivElement>,
401
- HTMLDivElement
402
- >`}],raw:"ComponentType<OryMessageRootProps>",required:!0},description:"The MessageContainer is rendered around the messages."},{key:"Content",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
403
- message: UiText
404
- }`,signature:{properties:[{key:"message",value:{name:"UiText",required:!0}}]}}],raw:"ComponentType<OryMessageContentProps>",required:!0},description:"The Message component is rendered whenever a message is encountered."}]},required:!0}},{key:"Page",value:{name:"signature",type:"object",raw:`{
405
- Header: ComponentType<OryPageHeaderProps>
406
- }`,signature:{properties:[{key:"Header",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"never"},{name:"never"}],raw:"Record<never, never>"}],raw:"ComponentType<OryPageHeaderProps>",required:!0}}]},required:!0}}]}},description:""},nodeSorter:{required:!1,tsType:{name:"signature",type:"function",raw:"(a: UiNode, b: UiNode, ctx: { flowType: string }) => number",signature:{arguments:[{type:{name:"UiNode"},name:"a"},{type:{name:"UiNode"},name:"b"},{type:{name:"signature",type:"object",raw:"{ flowType: string }",signature:{properties:[{key:"flowType",value:{name:"string",required:!0}}]}},name:"ctx"}],return:{name:"number"}}},description:"",defaultValue:{value:`function defaultNodeSorter(
407
- a: UiNode,
408
- b: UiNode,
409
- // ctx: { flowType: string },
410
- ): number {
411
- const aGroupWeight = defaultNodeOrder.indexOf(a.group) ?? 999
412
- const bGroupWeight = defaultNodeOrder.indexOf(b.group) ?? 999
413
-
414
- return aGroupWeight - bGroupWeight
415
- }`,computed:!1}},groupSorter:{required:!1,tsType:{name:"signature",type:"function",raw:"(a: UiNodeGroupEnum, b: UiNodeGroupEnum) => number",signature:{arguments:[{type:{name:"UiNodeGroupEnum"},name:"a"},{type:{name:"UiNodeGroupEnum"},name:"b"}],return:{name:"number"}}},description:"",defaultValue:{value:`function defaultGroupSorter(a: UiNodeGroupEnum, b: UiNodeGroupEnum): number {
416
- const aGroupWeight = defaultGroupOrder.indexOf(a) ?? 999
417
- const bGroupWeight = defaultGroupOrder.indexOf(b) ?? 999
418
-
419
- return aGroupWeight - bGroupWeight
420
- }`,computed:!1}}}};function Cm(e){return e.some(t=>"name"in t.attributes&&t.attributes.name==="screen"&&"value"in t.attributes&&t.attributes.value==="previous")||e.some(t=>t.group===re.IdentifierFirst&&"name"in t.attributes&&t.attributes.name==="identifier"&&t.attributes.type==="hidden")}function km(e){return e.filter(t=>t.group!==re.Oidc)}function xm(e,t){const n=t?e[t]??[]:[];return[...(e==null?void 0:e.identifier_first)??[],...(e==null?void 0:e.default)??[]].flat().filter(i=>"type"in i.attributes&&i.attributes.type==="hidden").concat(n)}function Xn(e){if(!e)return;const t=Lo(e);if(t){t();return}let n=0;const r=setInterval(()=>{if(n++,n>100)throw clearInterval(r),new Error("Unable to load Ory's WebAuthn script. Is it being blocked or otherwise failing to load? If you are running an old version of Ory Elements, please upgrade. For more information, please check your browser's developer console.");const o=Lo(e);if(o)return clearInterval(r),o()},100)}function Lo(e){if(typeof window>"u"){console.debug("The Ory SDK is missing a required function: window is undefined.");return}const t=window;if(!(e in t)||!t[e]){console.debug(`The Ory SDK is missing a required function: ${e}.`);return}const n=t[e];if(typeof n!="function"){console.debug(`The Ory SDK is missing a required function: ${e}. It is not a function.`);return}return n}function Tm(e,t=[re.Oidc]){const n={};for(const i of e){if(i.type==="script")continue;const r=n[i.group]??[];r.push(i),n[i.group]=r}return Object.values(re).filter(i=>{var r;return(r=n[i])==null?void 0:r.length}).filter(i=>![re.Default,re.IdentifierFirst,re.Profile,...t].includes(i))}function Lr(e){const t=vm(),n=l.useMemo(()=>{const r={};for(const o of e){if(o.type==="script")continue;const s=r[o.group]??[];s.push(o),r[o.group]=s}return r},[e]),i=l.useMemo(()=>Object.entries(n).sort(([r],[o])=>t(r,o)),[n,t]);return{groups:n,entries:i}}function _m(e){var t;return(t=e==null?void 0:e.filter(n=>!["default","identifier_first"].includes(n.group)))==null?void 0:t.find(n=>{var i;return((i=n.messages)==null?void 0:i.length)>0})}function Ks(e){var t;switch(e.flowType){case J.Registration:case J.Login:{const n=_m(e.flow.ui.nodes);if(e.flow.active=="link_recovery")return{current:"method_active",method:"link"};if(e.flow.active=="code_recovery")return{current:"method_active",method:"code"};if(n)return{current:"method_active",method:n.group};if(e.flow.active&&!["default","identifier_first","oidc"].includes(e.flow.active))return{current:"method_active",method:e.flow.active};if(Cm(e.flow.ui.nodes)){const i=Tm(e.flow.ui.nodes);return i.length===1&&i[0]!=="code"?{current:"method_active",method:i[0]}:{current:"select_method"}}else if((t=e.flow.ui.messages)!=null&&t.some(i=>i.id===1010016))return{current:"select_method"};return{current:"provide_identifier"}}case J.Recovery:case J.Verification:if(e.flow.active==="code"||e.flow.active==="link")return e.flow.state==="choose_method"?{current:"provide_identifier"}:{current:"method_active",method:e.flow.active};break;case J.Settings:return{current:"settings"}}throw console.warn(`[Ory/Elements React] Encountered an unknown form state on ${e.flowType} flow with ID ${e.flow.id}`),new Error("Unknown form state")}function Sm(e,t){switch(t.type){case"action_flow_update":return Ks(t.flow);case"action_select_method":return{current:"method_active",method:t.method}}return e}function Nm(e){return l.useReducer(Sm,Ks(e))}function de(){const e=l.useContext(Js);if(!e)throw new Error("useOryFlow must be used within a OryFlowProvider");return e}const Js=l.createContext(null);function Zs({children:e,...t}){const[n,i]=l.useState(t),[r,o]=Nm(t);return d.jsx(Js.Provider,{value:{...n,setFlowContainer:s=>{i(s),o({type:"action_flow_update",flow:s})},formState:r,dispatchFormState:o},children:e})}Zs.__docgenInfo={description:"",methods:[],displayName:"OryFlowProvider"};var lr=function(e,t){return lr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},lr(e,t)};function We(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lr(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var D=function(){return D=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},D.apply(this,arguments)};function gi(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function rt(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function Xs(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var te;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(te||(te={}));var me;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(me||(me={}));var Wt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Wt||(Wt={}));function Uo(e){return e.type===me.literal}function Pm(e){return e.type===me.argument}function Ys(e){return e.type===me.number}function Qs(e){return e.type===me.date}function ea(e){return e.type===me.time}function ta(e){return e.type===me.select}function na(e){return e.type===me.plural}function Em(e){return e.type===me.pound}function ia(e){return e.type===me.tag}function ra(e){return!!(e&&typeof e=="object"&&e.type===Wt.number)}function cr(e){return!!(e&&typeof e=="object"&&e.type===Wt.dateTime)}var oa=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Om=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Am(e){var t={};return e.replace(Om,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Rm=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Im(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Rm).filter(function(g){return g.length>0}),n=[],i=0,r=t;i<r.length;i++){var o=r[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),c=0,m=u;c<m.length;c++){var p=m[c];if(p.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function Mm(e){return e.replace(/^(.*?)-/,"")}var Do=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,sa=/^(@+)?(\+|#+)?[rs]?$/g,Fm=/(\*)(0+)|(#+)(0+)|(0+)/g,aa=/^(0+)$/;function Bo(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(sa,function(n,i,r){return typeof r!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):r==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof r=="string"?r.length:0)),""}),t}function da(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Lm(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!aa.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ho(e){var t={},n=da(e);return n||t}function Um(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Mm(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=D(D(D({},t),{notation:"scientific"}),r.options.reduce(function(u,c){return D(D({},u),Ho(c))},{}));continue;case"engineering":t=D(D(D({},t),{notation:"engineering"}),r.options.reduce(function(u,c){return D(D({},u),Ho(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Fm,function(u,c,m,p,g,f){if(c)t.minimumIntegerDigits=m.length;else{if(p&&g)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(aa.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(Do.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Do,function(u,c,m,p,g,f){return m==="*"?t.minimumFractionDigits=c.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:g&&f?(t.minimumFractionDigits=g.length,t.maximumFractionDigits=g.length+f.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=r.options[0];o==="w"?t=D(D({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=D(D({},t),Bo(o)));continue}if(sa.test(r.stem)){t=D(D({},t),Bo(r.stem));continue}var s=da(r.stem);s&&(t=D(D({},t),s));var a=Lm(r.stem);a&&(t=D(D({},t),a))}return t}var Mn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Dm(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",c=Bm(t);for((c=="H"||c=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=c+n}else r==="J"?n+="H":n+=r}return n}function Bm(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var r=Mn[i||""]||Mn[n||""]||Mn["".concat(n,"-001")]||Mn["001"];return r[0]}var Vi,Hm=new RegExp("^".concat(oa.source,"*")),qm=new RegExp("".concat(oa.source,"*$"));function ne(e,t){return{start:e,end:t}}var jm=!!String.prototype.startsWith&&"_a".startsWith("a",1),zm=!!String.fromCodePoint,Vm=!!Object.fromEntries,Wm=!!String.prototype.codePointAt,Gm=!!String.prototype.trimStart,$m=!!String.prototype.trimEnd,Km=!!Number.isSafeInteger,Jm=Km?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mr=!0;try{var Zm=la("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mr=((Vi=Zm.exec("a"))===null||Vi===void 0?void 0:Vi[0])==="a"}catch{mr=!1}var qo=jm?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},pr=zm?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,o=0,s;r>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},jo=Vm?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var o=r[i],s=o[0],a=o[1];n[s]=a}return n},ua=Wm?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),o;return r<55296||r>56319||n+1===i||(o=t.charCodeAt(n+1))<56320||o>57343?r:(r-55296<<10)+(o-56320)+65536}},Xm=Gm?function(t){return t.trimStart()}:function(t){return t.replace(Hm,"")},Ym=$m?function(t){return t.trimEnd()}:function(t){return t.replace(qm,"")};function la(e,t){return new RegExp(e,t)}var gr;if(mr){var zo=la("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gr=function(t,n){var i;zo.lastIndex=n;var r=zo.exec(t);return(i=r[1])!==null&&i!==void 0?i:""}}else gr=function(t,n){for(var i=[];;){var r=ua(t,n);if(r===void 0||ca(r)||np(r))break;i.push(r),n+=r>=65536?2:1}return pr.apply(void 0,i)};var Qm=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var r=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;r.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),r.push({type:me.pound,location:ne(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(te.UNMATCHED_CLOSING_TAG,ne(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&fr(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;r.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;r.push(s.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:me.literal,value:"<".concat(r,"/>"),location:ne(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!fr(this.char()))return this.error(te.INVALID_TAG,ne(a,this.clonePosition()));var u=this.clonePosition(),c=this.parseTagName();return r!==c?this.error(te.UNMATCHED_CLOSING_TAG,ne(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:me.tag,value:r,children:s,location:ne(i,this.clonePosition())},err:null}:this.error(te.INVALID_TAG,ne(a,this.clonePosition())))}else return this.error(te.UNCLOSED_TAG,ne(i,this.clonePosition()))}else return this.error(te.INVALID_TAG,ne(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&tp(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(n);if(o){r+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){r+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var u=ne(i,this.clonePosition());return{val:{type:me.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ep(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return pr.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),pr(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(te.EXPECT_ARGUMENT_CLOSING_BRACE,ne(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(te.EMPTY_ARGUMENT,ne(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(te.MALFORMED_ARGUMENT,ne(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(te.EXPECT_ARGUMENT_CLOSING_BRACE,ne(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:me.argument,value:r,location:ne(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(te.EXPECT_ARGUMENT_CLOSING_BRACE,ne(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(te.MALFORMED_ARGUMENT,ne(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=gr(this.message,n),r=n+i.length;this.bumpTo(r);var o=this.clonePosition(),s=ne(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,n,i,r){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(te.EXPECT_ARGUMENT_TYPE,ne(s,u));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var g=Ym(p.val);if(g.length===0)return this.error(te.EXPECT_ARGUMENT_STYLE,ne(this.clonePosition(),this.clonePosition()));var f=ne(m,this.clonePosition());c={style:g,styleLocation:f}}var y=this.tryParseArgumentClose(r);if(y.err)return y;var h=ne(r,this.clonePosition());if(c&&qo(c==null?void 0:c.style,"::",0)){var b=Xm(c.style.slice(2));if(a==="number"){var p=this.parseNumberSkeletonFromString(b,c.styleLocation);return p.err?p:{val:{type:me.number,value:i,location:h,style:p.val},err:null}}else{if(b.length===0)return this.error(te.EXPECT_DATE_TIME_SKELETON,h);var w=b;this.locale&&(w=Dm(b,this.locale));var g={type:Wt.dateTime,pattern:w,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Am(w):{}},k=a==="date"?me.date:me.time;return{val:{type:k,value:i,location:h,style:g},err:null}}}return{val:{type:a==="number"?me.number:a==="date"?me.date:me.time,value:i,location:h,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(te.EXPECT_SELECT_ARGUMENT_OPTIONS,ne(T,D({},T)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&_.value==="offset"){if(!this.bumpIf(":"))return this.error(te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ne(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,te.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),_=this.parseIdentifierIfPossible(),S=p.val}var F=this.tryParsePluralOrSelectOptions(t,a,n,_);if(F.err)return F;var y=this.tryParseArgumentClose(r);if(y.err)return y;var E=ne(r,this.clonePosition());return a==="select"?{val:{type:me.select,value:i,options:jo(F.val),location:E},err:null}:{val:{type:me.plural,value:i,options:jo(F.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:E},err:null}}default:return this.error(te.INVALID_ARGUMENT_TYPE,ne(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(te.EXPECT_ARGUMENT_CLOSING_BRACE,ne(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(te.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ne(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=Im(t)}catch{return this.error(te.INVALID_NUMBER_SKELETON,n)}return{val:{type:Wt.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?Um(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var o,s=!1,a=[],u=new Set,c=r.value,m=r.location;;){if(c.length===0){var p=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(te.EXPECT_PLURAL_ARGUMENT_SELECTOR,te.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;m=ne(p,this.clonePosition()),c=this.message.slice(p.offset,this.offset())}else break}if(u.has(c))return this.error(n==="select"?te.DUPLICATE_SELECT_ARGUMENT_SELECTOR:te.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,m);c==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?te.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:te.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ne(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,n,i);if(y.err)return y;var h=this.tryParseArgumentClose(f);if(h.err)return h;a.push([c,{value:y.val,location:ne(f,this.clonePosition())}]),u.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,m=o.location}return a.length===0?this.error(n==="select"?te.EXPECT_SELECT_ARGUMENT_SELECTOR:te.EXPECT_PLURAL_ARGUMENT_SELECTOR,ne(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(te.MISSING_OTHER_CLAUSE,ne(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=ne(r,this.clonePosition());return o?(s*=i,Jm(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=ua(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(qo(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ca(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i??null},e}();function fr(e){return e>=97&&e<=122||e>=65&&e<=90}function ep(e){return fr(e)||e===47}function tp(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ca(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function np(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function hr(e){e.forEach(function(t){if(delete t.location,ta(t)||na(t))for(var n in t.options)delete t.options[n].location,hr(t.options[n].value);else Ys(t)&&ra(t.style)||(Qs(t)||ea(t))&&cr(t.style)?delete t.style.location:ia(t)&&hr(t.children)})}function ip(e,t){t===void 0&&(t={}),t=D({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Qm(e,t).parse();if(n.err){var i=SyntaxError(te[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t!=null&&t.captureLocation||hr(n.val),n.val}function tt(e,t){var n=t&&t.cache?t.cache:up,i=t&&t.serializer?t.serializer:dp,r=t&&t.strategy?t.strategy:sp;return r(e,{cache:n,serializer:i})}function rp(e){return e==null||typeof e=="number"||typeof e=="boolean"}function op(e,t,n,i){var r=rp(i)?i:n(i),o=t.get(r);return typeof o>"u"&&(o=e.call(this,i),t.set(r,o)),o}function ma(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=t.get(r);return typeof o>"u"&&(o=e.apply(this,i),t.set(r,o)),o}function pa(e,t,n,i,r){return n.bind(t,e,i,r)}function sp(e,t){var n=e.length===1?op:ma;return pa(e,this,n,t.cache.create(),t.serializer)}function ap(e,t){return pa(e,this,ma,t.cache.create(),t.serializer)}var dp=function(){return JSON.stringify(arguments)};function Ur(){this.cache=Object.create(null)}Ur.prototype.get=function(e){return this.cache[e]};Ur.prototype.set=function(e,t){this.cache[e]=t};var up={create:function(){return new Ur}},nt={variadic:ap},at;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(at||(at={}));var St=function(e){We(t,e);function t(n,i,r){var o=e.call(this,n)||this;return o.code=i,o.originalMessage=r,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Vo=function(e){We(t,e);function t(n,i,r,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),at.INVALID_VALUE,o)||this}return t}(St),lp=function(e){We(t,e);function t(n,i,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),at.INVALID_VALUE,r)||this}return t}(St),cp=function(e){We(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),at.MISSING_VALUE,i)||this}return t}(St),Ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ee||(Ee={}));function mp(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==Ee.literal||n.type!==Ee.literal?t.push(n):i.value+=n.value,t},[])}function ga(e){return typeof e=="function"}function zn(e,t,n,i,r,o,s){if(e.length===1&&Uo(e[0]))return[{type:Ee.literal,value:e[0].value}];for(var a=[],u=0,c=e;u<c.length;u++){var m=c[u];if(Uo(m)){a.push({type:Ee.literal,value:m.value});continue}if(Em(m)){typeof o=="number"&&a.push({type:Ee.literal,value:n.getNumberFormat(t).format(o)});continue}var p=m.value;if(!(r&&p in r))throw new cp(p,s);var g=r[p];if(Pm(m)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),a.push({type:typeof g=="string"?Ee.literal:Ee.object,value:g});continue}if(Qs(m)){var f=typeof m.style=="string"?i.date[m.style]:cr(m.style)?m.style.parsedOptions:void 0;a.push({type:Ee.literal,value:n.getDateTimeFormat(t,f).format(g)});continue}if(ea(m)){var f=typeof m.style=="string"?i.time[m.style]:cr(m.style)?m.style.parsedOptions:i.time.medium;a.push({type:Ee.literal,value:n.getDateTimeFormat(t,f).format(g)});continue}if(Ys(m)){var f=typeof m.style=="string"?i.number[m.style]:ra(m.style)?m.style.parsedOptions:void 0;f&&f.scale&&(g=g*(f.scale||1)),a.push({type:Ee.literal,value:n.getNumberFormat(t,f).format(g)});continue}if(ia(m)){var y=m.children,h=m.value,b=r[h];if(!ga(b))throw new lp(h,"function",s);var w=zn(y,t,n,i,r,o),k=b(w.map(function(S){return S.value}));Array.isArray(k)||(k=[k]),a.push.apply(a,k.map(function(S){return{type:typeof S=="string"?Ee.literal:Ee.object,value:S}}))}if(ta(m)){var T=m.options[g]||m.options.other;if(!T)throw new Vo(m.value,g,Object.keys(m.options),s);a.push.apply(a,zn(T.value,t,n,i,r));continue}if(na(m)){var T=m.options["=".concat(g)];if(!T){if(!Intl.PluralRules)throw new St(`Intl.PluralRules is not available in this environment.
421
- Try polyfilling it using "@formatjs/intl-pluralrules"
422
- `,at.MISSING_INTL_API,s);var _=n.getPluralRules(t,{type:m.pluralType}).select(g-(m.offset||0));T=m.options[_]||m.options.other}if(!T)throw new Vo(m.value,g,Object.keys(m.options),s);a.push.apply(a,zn(T.value,t,n,i,r,g-(m.offset||0)));continue}}return mp(a)}function pp(e,t){return t?D(D(D({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=D(D({},e[i]),t[i]||{}),n},{})):e}function gp(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=pp(e[i],t[i]),n},D({},e)):e}function Wi(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function fp(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:tt(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,rt([void 0],n,!1)))},{cache:Wi(e.number),strategy:nt.variadic}),getDateTimeFormat:tt(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,rt([void 0],n,!1)))},{cache:Wi(e.dateTime),strategy:nt.variadic}),getPluralRules:tt(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,rt([void 0],n,!1)))},{cache:Wi(e.pluralRules),strategy:nt.variadic})}}var fa=function(){function e(t,n,i,r){var o=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var c=o.formatToParts(u);if(c.length===1)return c[0].value;var m=c.reduce(function(p,g){return!p.length||g.type!==Ee.literal||typeof p[p.length-1]!="string"?p.push(g.value):p[p.length-1]+=g.value,p},[]);return m.length<=1?m[0]||"":m},this.formatToParts=function(u){return zn(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=r||{};s.formatters;var a=gi(s,["formatters"]);this.ast=e.__parse(t,D(D({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=gp(e.formats,i),this.formatters=r&&r.formatters||fp(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ip,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Ot;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Ot||(Ot={}));var kn=function(e){We(t,e);function t(n,i,r){var o=this,s=r?r instanceof Error?r:new Error(String(r)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(i,`
423
- `).concat(s?`
424
- `.concat(s.message,`
425
- `).concat(s.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),hp=function(e){We(t,e);function t(n,i){return e.call(this,Ot.UNSUPPORTED_FORMATTER,n,i)||this}return t}(kn),yp=function(e){We(t,e);function t(n,i){return e.call(this,Ot.INVALID_CONFIG,n,i)||this}return t}(kn),Wo=function(e){We(t,e);function t(n,i){return e.call(this,Ot.MISSING_DATA,n,i)||this}return t}(kn),Ge=function(e){We(t,e);function t(n,i,r){var o=e.call(this,Ot.FORMAT_ERROR,"".concat(n,`
426
- Locale: `).concat(i,`
427
- `),r)||this;return o.locale=i,o}return t}(kn),Gi=function(e){We(t,e);function t(n,i,r,o){var s=e.call(this,"".concat(n,`
428
- MessageID: `).concat(r==null?void 0:r.id,`
429
- Default Message: `).concat(r==null?void 0:r.defaultMessage,`
430
- Description: `).concat(r==null?void 0:r.description,`
431
- `),i,o)||this;return s.descriptor=r,s.locale=i,s}return t}(Ge),vp=function(e){We(t,e);function t(n,i){var r=e.call(this,Ot.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(i,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(o){var s;return(s=o.value)!==null&&s!==void 0?s:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return r.descriptor=n,r}return t}(kn);function It(e,t,n){return n===void 0&&(n={}),t.reduce(function(i,r){return r in e?i[r]=e[r]:r in n&&(i[r]=n[r]),i},{})}var bp=function(e){},wp=function(e){},ha={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:bp,onWarn:wp};function ya(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Pt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Cp(e){e===void 0&&(e=ya());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,i=Intl.DisplayNames,r=tt(function(){for(var a,u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return new((a=Intl.DateTimeFormat).bind.apply(a,rt([void 0],u,!1)))},{cache:Pt(e.dateTime),strategy:nt.variadic}),o=tt(function(){for(var a,u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return new((a=Intl.NumberFormat).bind.apply(a,rt([void 0],u,!1)))},{cache:Pt(e.number),strategy:nt.variadic}),s=tt(function(){for(var a,u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return new((a=Intl.PluralRules).bind.apply(a,rt([void 0],u,!1)))},{cache:Pt(e.pluralRules),strategy:nt.variadic});return{getDateTimeFormat:r,getNumberFormat:o,getMessageFormat:tt(function(a,u,c,m){return new fa(a,u,c,D({formatters:{getNumberFormat:o,getDateTimeFormat:r,getPluralRules:s}},m||{}))},{cache:Pt(e.message),strategy:nt.variadic}),getRelativeTimeFormat:tt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(t.bind.apply(t,rt([void 0],a,!1)))},{cache:Pt(e.relativeTime),strategy:nt.variadic}),getPluralRules:s,getListFormat:tt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(n.bind.apply(n,rt([void 0],a,!1)))},{cache:Pt(e.list),strategy:nt.variadic}),getDisplayNames:tt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(i.bind.apply(i,rt([void 0],a,!1)))},{cache:Pt(e.displayNames),strategy:nt.variadic})}}function Dr(e,t,n,i){var r=e&&e[t],o;if(r&&(o=r[n]),o)return o;i(new hp("No ".concat(t," format named: ").concat(n)))}function Fn(e,t){return Object.keys(e).reduce(function(n,i){return n[i]=D({timeZone:t},e[i]),n},{})}function Go(e,t){var n=Object.keys(D(D({},e),t));return n.reduce(function(i,r){return i[r]=D(D({},e[r]||{}),t[r]||{}),i},{})}function $o(e,t){if(!t)return e;var n=fa.formats;return D(D(D({},n),e),{date:Go(Fn(n.date,t),Fn(e.date||{},t)),time:Go(Fn(n.time,t),Fn(e.time||{},t))})}var yr=function(e,t,n,i,r){var o=e.locale,s=e.formats,a=e.messages,u=e.defaultLocale,c=e.defaultFormats,m=e.fallbackOnEmptyString,p=e.onError,g=e.timeZone,f=e.defaultRichTextElements;n===void 0&&(n={id:""});var y=n.id,h=n.defaultMessage;Xs(!!y,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var b=String(y),w=a&&Object.prototype.hasOwnProperty.call(a,b)&&a[b];if(Array.isArray(w)&&w.length===1&&w[0].type===me.literal)return w[0].value;if(!i&&w&&typeof w=="string"&&!f)return w.replace(/'\{(.*?)\}'/gi,"{$1}");if(i=D(D({},f),i||{}),s=$o(s,g),c=$o(c,g),!w){if(m===!1&&w==="")return w;if((!h||o&&o.toLowerCase()!==u.toLowerCase())&&p(new vp(n,o)),h)try{var k=t.getMessageFormat(h,u,c,r);return k.format(i)}catch(T){return p(new Gi('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),o,n,T)),typeof h=="string"?h:b}return b}try{var k=t.getMessageFormat(w,o,s,D({formatters:t},r||{}));return k.format(i)}catch(T){p(new Gi('Error formatting message: "'.concat(b,'", using ').concat(h?"default message":"id"," as fallback."),o,n,T))}if(h)try{var k=t.getMessageFormat(h,u,c,r);return k.format(i)}catch(T){p(new Gi('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),o,n,T))}return typeof w=="string"?w:typeof h=="string"?h:b},va=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function fi(e,t,n,i){var r=e.locale,o=e.formats,s=e.onError,a=e.timeZone;i===void 0&&(i={});var u=i.format,c=D(D({},a&&{timeZone:a}),u&&Dr(o,t,u,s)),m=It(i,va,c);return t==="time"&&!m.hour&&!m.minute&&!m.second&&!m.timeStyle&&!m.dateStyle&&(m=D(D({},m),{hour:"numeric",minute:"numeric"})),n(r,m)}function kp(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=n[0],o=n[1],s=o===void 0?{}:o,a=typeof r=="string"?new Date(r||0):r;try{return fi(e,"date",t,s).format(a)}catch(u){e.onError(new Ge("Error formatting date.",e.locale,u))}return String(a)}function xp(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=n[0],o=n[1],s=o===void 0?{}:o,a=typeof r=="string"?new Date(r||0):r;try{return fi(e,"time",t,s).format(a)}catch(u){e.onError(new Ge("Error formatting time.",e.locale,u))}return String(a)}function Tp(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=n[0],o=n[1],s=n[2],a=s===void 0?{}:s,u=e.timeZone,c=e.locale,m=e.onError,p=It(a,va,u?{timeZone:u}:{});try{return t(c,p).formatRange(r,o)}catch(g){m(new Ge("Error formatting date time range.",e.locale,g))}return String(r)}function _p(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=n[0],o=n[1],s=o===void 0?{}:o,a=typeof r=="string"?new Date(r||0):r;try{return fi(e,"date",t,s).formatToParts(a)}catch(u){e.onError(new Ge("Error formatting date.",e.locale,u))}return[]}function Sp(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=n[0],o=n[1],s=o===void 0?{}:o,a=typeof r=="string"?new Date(r||0):r;try{return fi(e,"time",t,s).formatToParts(a)}catch(u){e.onError(new Ge("Error formatting time.",e.locale,u))}return[]}var Np=["style","type","fallback","languageDisplay"];function Pp(e,t,n,i){var r=e.locale,o=e.onError,s=Intl.DisplayNames;s||o(new St(`Intl.DisplayNames is not available in this environment.
432
- Try polyfilling it using "@formatjs/intl-displaynames"
433
- `,at.MISSING_INTL_API));var a=It(i,Np);try{return t(r,a).of(n)}catch(u){o(new Ge("Error formatting display name.",r,u))}}var Ep=["type","style"],Ko=Date.now();function Op(e){return"".concat(Ko,"_").concat(e,"_").concat(Ko)}function Ap(e,t,n,i){i===void 0&&(i={});var r=ba(e,t,n,i).reduce(function(o,s){var a=s.value;return typeof a!="string"?o.push(a):typeof o[o.length-1]=="string"?o[o.length-1]+=a:o.push(a),o},[]);return r.length===1?r[0]:r.length===0?"":r}function ba(e,t,n,i){var r=e.locale,o=e.onError;i===void 0&&(i={});var s=Intl.ListFormat;s||o(new St(`Intl.ListFormat is not available in this environment.
434
- Try polyfilling it using "@formatjs/intl-listformat"
435
- `,at.MISSING_INTL_API));var a=It(i,Ep);try{var u={},c=n.map(function(m,p){if(typeof m=="object"){var g=Op(p);return u[g]=m,g}return String(m)});return t(r,a).formatToParts(c).map(function(m){return m.type==="literal"?m:D(D({},m),{value:u[m.value]||m.value})})}catch(m){o(new Ge("Error formatting list.",r,m))}return n}var Rp=["type"];function Ip(e,t,n,i){var r=e.locale,o=e.onError;i===void 0&&(i={}),Intl.PluralRules||o(new St(`Intl.PluralRules is not available in this environment.
436
- Try polyfilling it using "@formatjs/intl-pluralrules"
437
- `,at.MISSING_INTL_API));var s=It(i,Rp);try{return t(r,s).select(n)}catch(a){o(new Ge("Error formatting plural.",r,a))}return"other"}var Mp=["numeric","style"];function Fp(e,t,n){var i=e.locale,r=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&Dr(r,"relative",s,o)||{},u=It(n,Mp,a);return t(i,u)}function Lp(e,t,n,i,r){r===void 0&&(r={}),i||(i="second");var o=Intl.RelativeTimeFormat;o||e.onError(new St(`Intl.RelativeTimeFormat is not available in this environment.
438
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
439
- `,at.MISSING_INTL_API));try{return Fp(e,t,r).format(n,i)}catch(s){e.onError(new Ge("Error formatting relative time.",e.locale,s))}return String(n)}var Up=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function wa(e,t,n){var i=e.locale,r=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=s&&Dr(r,"number",s,o)||{},u=It(n,Up,a);return t(i,u)}function Dp(e,t,n,i){i===void 0&&(i={});try{return wa(e,t,i).format(n)}catch(r){e.onError(new Ge("Error formatting number.",e.locale,r))}return String(n)}function Bp(e,t,n,i){i===void 0&&(i={});try{return wa(e,t,i).formatToParts(n)}catch(r){e.onError(new Ge("Error formatting number.",e.locale,r))}return[]}function Hp(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function qp(e){e.onWarn&&e.defaultRichTextElements&&Hp(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
440
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
441
- For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function jp(e,t){var n=Cp(t),i=D(D({},ha),e),r=i.locale,o=i.defaultLocale,s=i.onError;return r?!Intl.NumberFormat.supportedLocalesOf(r).length&&s?s(new Wo('Missing locale data for locale: "'.concat(r,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(r).length&&s&&s(new Wo('Missing locale data for locale: "'.concat(r,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new yp('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),i.locale=i.defaultLocale||"en"),qp(i),D(D({},i),{formatters:n,formatNumber:Dp.bind(null,i,n.getNumberFormat),formatNumberToParts:Bp.bind(null,i,n.getNumberFormat),formatRelativeTime:Lp.bind(null,i,n.getRelativeTimeFormat),formatDate:kp.bind(null,i,n.getDateTimeFormat),formatDateToParts:_p.bind(null,i,n.getDateTimeFormat),formatTime:xp.bind(null,i,n.getDateTimeFormat),formatDateTimeRange:Tp.bind(null,i,n.getDateTimeFormat),formatTimeToParts:Sp.bind(null,i,n.getDateTimeFormat),formatPlural:Ip.bind(null,i,n.getPluralRules),formatMessage:yr.bind(null,i,n),$t:yr.bind(null,i,n),formatList:Ap.bind(null,i,n.getListFormat),formatListToParts:ba.bind(null,i,n.getListFormat),formatDisplayName:Pp.bind(null,i,n.getDisplayNames)})}function Ca(e){Xs(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var ka=D(D({},ha),{textComponent:l.Fragment});function zp(e){return function(t){return e(l.Children.toArray(t))}}function Vp(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),i=Object.keys(t),r=n.length;if(i.length!==r)return!1;for(var o=0;o<r;o++){var s=n[o];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var xa={exports:{}},oe={};/** @license React v16.13.1
442
- * react-is.production.min.js
443
- *
444
- * Copyright (c) Facebook, Inc. and its affiliates.
445
- *
446
- * This source code is licensed under the MIT license found in the
447
- * LICENSE file in the root directory of this source tree.
448
- */var Te=typeof Symbol=="function"&&Symbol.for,Br=Te?Symbol.for("react.element"):60103,Hr=Te?Symbol.for("react.portal"):60106,hi=Te?Symbol.for("react.fragment"):60107,yi=Te?Symbol.for("react.strict_mode"):60108,vi=Te?Symbol.for("react.profiler"):60114,bi=Te?Symbol.for("react.provider"):60109,wi=Te?Symbol.for("react.context"):60110,qr=Te?Symbol.for("react.async_mode"):60111,Ci=Te?Symbol.for("react.concurrent_mode"):60111,ki=Te?Symbol.for("react.forward_ref"):60112,xi=Te?Symbol.for("react.suspense"):60113,Wp=Te?Symbol.for("react.suspense_list"):60120,Ti=Te?Symbol.for("react.memo"):60115,_i=Te?Symbol.for("react.lazy"):60116,Gp=Te?Symbol.for("react.block"):60121,$p=Te?Symbol.for("react.fundamental"):60117,Kp=Te?Symbol.for("react.responder"):60118,Jp=Te?Symbol.for("react.scope"):60119;function He(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Br:switch(e=e.type,e){case qr:case Ci:case hi:case vi:case yi:case xi:return e;default:switch(e=e&&e.$$typeof,e){case wi:case ki:case _i:case Ti:case bi:return e;default:return t}}case Hr:return t}}}function Ta(e){return He(e)===Ci}oe.AsyncMode=qr;oe.ConcurrentMode=Ci;oe.ContextConsumer=wi;oe.ContextProvider=bi;oe.Element=Br;oe.ForwardRef=ki;oe.Fragment=hi;oe.Lazy=_i;oe.Memo=Ti;oe.Portal=Hr;oe.Profiler=vi;oe.StrictMode=yi;oe.Suspense=xi;oe.isAsyncMode=function(e){return Ta(e)||He(e)===qr};oe.isConcurrentMode=Ta;oe.isContextConsumer=function(e){return He(e)===wi};oe.isContextProvider=function(e){return He(e)===bi};oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Br};oe.isForwardRef=function(e){return He(e)===ki};oe.isFragment=function(e){return He(e)===hi};oe.isLazy=function(e){return He(e)===_i};oe.isMemo=function(e){return He(e)===Ti};oe.isPortal=function(e){return He(e)===Hr};oe.isProfiler=function(e){return He(e)===vi};oe.isStrictMode=function(e){return He(e)===yi};oe.isSuspense=function(e){return He(e)===xi};oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hi||e===Ci||e===vi||e===yi||e===xi||e===Wp||typeof e=="object"&&e!==null&&(e.$$typeof===_i||e.$$typeof===Ti||e.$$typeof===bi||e.$$typeof===wi||e.$$typeof===ki||e.$$typeof===$p||e.$$typeof===Kp||e.$$typeof===Jp||e.$$typeof===Gp)};oe.typeOf=He;xa.exports=oe;var Zp=xa.exports,_a=Zp,Xp={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Sa={};Sa[_a.ForwardRef]=Xp;Sa[_a.Memo]=Yp;var jr=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=l.createContext(null)):l.createContext(null);jr.Consumer;var Qp=jr.Provider,eg=Qp,tg=jr;function pe(){var e=l.useContext(tg);return Ca(e),e}var vr;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(vr||(vr={}));var br;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(br||(br={}));function Na(e){var t=function(n){var i=pe(),r=n.value,o=n.children,s=gi(n,["value","children"]),a=typeof r=="string"?new Date(r||0):r,u=e==="formatDate"?i.formatDateToParts(a,s):i.formatTimeToParts(a,s);return o(u)};return t.displayName=br[e],t}function xn(e){var t=function(n){var i=pe(),r=n.value,o=n.children,s=gi(n,["value","children"]),a=i[e](r,s);if(typeof o=="function")return o(a);var u=i.textComponent||l.Fragment;return l.createElement(u,null,a)};return t.displayName=vr[e],t}function Pa(e){return e&&Object.keys(e).reduce(function(t,n){var i=e[n];return t[n]=ga(i)?zp(i):i,t},{})}var Jo=function(e,t,n,i){for(var r=[],o=4;o<arguments.length;o++)r[o-4]=arguments[o];var s=Pa(i),a=yr.apply(void 0,rt([e,t,n,s],r,!1));return Array.isArray(a)?l.Children.toArray(a):a},Zo=function(e,t){var n=e.defaultRichTextElements,i=gi(e,["defaultRichTextElements"]),r=Pa(n),o=jp(D(D(D({},ka),i),{defaultRichTextElements:r}),t),s={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:r};return D(D({},o),{formatMessage:Jo.bind(null,s,o.formatters),$t:Jo.bind(null,s,o.formatters)})};function $i(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var ng=function(e){We(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=ya(),n.state={cache:n.cache,intl:Zo($i(n.props),n.cache),prevConfig:$i(n.props)},n}return t.getDerivedStateFromProps=function(n,i){var r=i.prevConfig,o=i.cache,s=$i(n);return Vp(r,s)?null:{intl:Zo(s,o),prevConfig:s}},t.prototype.render=function(){return Ca(this.state.intl),l.createElement(eg,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=ka,t}(l.PureComponent);xn("formatDate");xn("formatTime");xn("formatNumber");xn("formatList");xn("formatDisplayName");Na("formatDate");Na("formatTime");function ig(e){return Object.keys(e).reduce((t,n)=>(t[n]={...as[n],...e[n]},t),as)}const Ea=({children:e,locale:t,customTranslations:n})=>{const i=ig(n??{});return d.jsx(ng,{onWarn:()=>({}),defaultRichTextElements:{del:r=>d.jsx("del",{children:r})},locale:t,messages:i[t],defaultLocale:"en",children:e})};Ea.__docgenInfo={description:"",methods:[],displayName:"IntlProvider",props:{locale:{required:!0,tsType:{name:"union",raw:"keyof typeof OryLocales",elements:[{name:"literal",value:"en"},{name:"literal",value:"de"},{name:"literal",value:"es"},{name:"literal",value:"fr"},{name:"literal",value:"nl"},{name:"literal",value:"pl"},{name:"literal",value:"pt"},{name:"literal",value:"sv"}]},description:""},customTranslations:{required:!1,tsType:{name:"Partial",elements:[{name:"Record",elements:[{name:"string"},{name:"Record",elements:[{name:"string"},{name:"string"}],raw:"Record<string, string>"}],raw:"Record<string, Record<string, string>>"}],raw:"Partial<LocaleMap>"},description:""}}};function Si({children:e,components:t,...n}){var i,r;return d.jsx(Ea,{locale:((i=n.config.intl)==null?void 0:i.locale)??"en",customTranslations:(r=n.config.intl)==null?void 0:r.customTranslations,children:d.jsx(Zs,{...n,children:d.jsx($s,{components:t,children:e})})})}Si.__docgenInfo={description:"",methods:[],displayName:"OryProvider",props:{components:{required:!0,tsType:{name:"signature",type:"object",raw:`{
449
- Node: {
450
- /**
451
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
452
- */
453
- Button: ComponentType<OryNodeButtonProps>
454
- /**
455
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
456
- *
457
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
458
- */
459
- OidcButton: ComponentType<OryNodeOidcButtonProps>
460
- /**
461
- * Anchor component, rendered whenever an "anchor" node is encountered
462
- */
463
- Anchor: ComponentType<OryNodeAnchorProps>
464
- /**
465
- * The Input component is rendered whenever a "input" node is encountered.
466
- */
467
- Input: ComponentType<OryNodeInputProps>
468
- /**
469
- * Special version of the Input component for OTP codes.
470
- */
471
- CodeInput: ComponentType<OryNodeInputProps>
472
- /**
473
- * The Image component is rendered whenever an "image" node is encountered.
474
- *
475
- * For example used in the "Logo" node.
476
- */
477
- Image: ComponentType<OryNodeImageProps>
478
- /**
479
- * The Label component is rendered around Input components and is used to render form labels.
480
- */
481
- Label: ComponentType<OryNodeLabelProps>
482
- /**
483
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
484
- */
485
- Checkbox: ComponentType<OryNodeInputProps>
486
- /**
487
- * The Text component is rendered whenever a "text" node is encountered.
488
- */
489
- Text: ComponentType<OryNodeTextProps>
490
- }
491
- Card: {
492
- /**
493
- * The card container is the main container of the card.
494
- */
495
- Root: ComponentType<OryCardRootProps>
496
- /**
497
- * The card footer is the footer of the card container.
498
- */
499
- Footer: ComponentType<OryCardFooterProps>
500
- /**
501
- * The card header is the header of the card container.
502
- */
503
- Header: ComponentType<OryCardRootProps>
504
- /**
505
- * The card content is the main content of the card container.
506
- */
507
- Content: ComponentType<OryCardContentProps>
508
- /**
509
- * The card logo is the logo of the card container.
510
- */
511
- Logo: ComponentType<OryCardLogoProps>
512
- /**
513
- * The HorizontalDivider component is rendered between groups.
514
- */
515
- Divider: ComponentType<OryCardDividerProps>
516
- /**
517
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
518
- *
519
- * This is only used, if login is configured to use identifier_first authentication.
520
- */
521
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
522
-
523
- /**
524
- * The SettingsSection component is rendered around each section of the settings.
525
- */
526
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
527
- /**
528
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
529
- */
530
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
531
- /**
532
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
533
- */
534
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
535
- }
536
- Form: {
537
- /**
538
- * The FormContainer component is the main container of the form.
539
- *
540
- * It should render its children.
541
- *
542
- * You most likely don't want to override this component directly.
543
- */
544
- Root: ComponentType<OryFormRootProps>
545
- /**
546
- * A special form group container for the social buttons.
547
- *
548
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
549
- *
550
- * You most likely don't want to override this component directly.
551
- */
552
- OidcRoot: ComponentType<OryFormOidcRootProps>
553
-
554
- /**
555
- * The FormGroup is rendered around each group of nodes in the UI nodes.
556
- */
557
- Group: ComponentType<OryFormGroupProps>
558
-
559
- /**
560
- * The section on the settings page, rendering the OIDC settings
561
- */
562
- OidcSettings: ComponentType<OrySettingsOidcProps>
563
-
564
- /**
565
- * The section on the settings page, rendering the Webauthn settings
566
- */
567
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
568
-
569
- /**
570
- * The section on the settings page, rendering the Passkey settings
571
- */
572
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
573
-
574
- /**
575
- * The section on the settings page, rendering the TOTP settings
576
- */
577
- TotpSettings: ComponentType<OrySettingsTotpProps>
578
-
579
- /**
580
- * The section on the settings page, rendering the recovery code settings
581
- */
582
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
583
- }
584
- Message: {
585
- /**
586
- * The MessageContainer is rendered around the messages.
587
- */
588
- Root: ComponentType<OryMessageRootProps>
589
-
590
- /**
591
- * The Message component is rendered whenever a message is encountered.
592
- */
593
- Content: ComponentType<OryMessageContentProps>
594
- }
595
- Page: {
596
- Header: ComponentType<OryPageHeaderProps>
597
- }
598
- }`,signature:{properties:[{key:"Node",value:{name:"signature",type:"object",raw:`{
599
- /**
600
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
601
- */
602
- Button: ComponentType<OryNodeButtonProps>
603
- /**
604
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
605
- *
606
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
607
- */
608
- OidcButton: ComponentType<OryNodeOidcButtonProps>
609
- /**
610
- * Anchor component, rendered whenever an "anchor" node is encountered
611
- */
612
- Anchor: ComponentType<OryNodeAnchorProps>
613
- /**
614
- * The Input component is rendered whenever a "input" node is encountered.
615
- */
616
- Input: ComponentType<OryNodeInputProps>
617
- /**
618
- * Special version of the Input component for OTP codes.
619
- */
620
- CodeInput: ComponentType<OryNodeInputProps>
621
- /**
622
- * The Image component is rendered whenever an "image" node is encountered.
623
- *
624
- * For example used in the "Logo" node.
625
- */
626
- Image: ComponentType<OryNodeImageProps>
627
- /**
628
- * The Label component is rendered around Input components and is used to render form labels.
629
- */
630
- Label: ComponentType<OryNodeLabelProps>
631
- /**
632
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
633
- */
634
- Checkbox: ComponentType<OryNodeInputProps>
635
- /**
636
- * The Text component is rendered whenever a "text" node is encountered.
637
- */
638
- Text: ComponentType<OryNodeTextProps>
639
- }`,signature:{properties:[{key:"Button",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
640
- attributes: UiNodeInputAttributes
641
- node: UiNode
642
- } & Omit<ComponentPropsWithoutRef<"button">, "children"> &
643
- ButtonVariants`,elements:[{name:"signature",type:"object",raw:`{
644
- attributes: UiNodeInputAttributes
645
- node: UiNode
646
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"button"'}],raw:'ComponentPropsWithoutRef<"button">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"button">, "children">'},{name:"VariantProps",elements:[{name:"buttonStyles"}],raw:"VariantProps<typeof buttonStyles>"}]}],raw:"ComponentType<OryNodeButtonProps>",required:!0},description:"Button component, rendered whenever a button is encountered in the Ory UI Nodes."},{key:"OidcButton",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
647
- node: UiNode
648
- attributes: UiNodeInputAttributes
649
- onClick?: () => void
650
- }`,signature:{properties:[{key:"node",value:{name:"UiNode",required:!0}},{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}}],raw:"ComponentType<OryNodeOidcButtonProps>",required:!0},description:`The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
651
-
652
- It renders the "Login with Google", "Login with Facebook" etc. buttons.`},{key:"Anchor",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
653
- attributes: UiNodeAnchorAttributes
654
- node: UiNode
655
- } & Omit<ComponentPropsWithoutRef<"a">, "children">`,elements:[{name:"signature",type:"object",raw:`{
656
- attributes: UiNodeAnchorAttributes
657
- node: UiNode
658
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeAnchorAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"a"'}],raw:'ComponentPropsWithoutRef<"a">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"a">, "children">'}]}],raw:"ComponentType<OryNodeAnchorProps>",required:!0},description:'Anchor component, rendered whenever an "anchor" node is encountered'},{key:"Input",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
659
- attributes: UiNodeInputAttributes
660
- node: UiNode
661
- onClick?: MouseEventHandler
662
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:'The Input component is rendered whenever a "input" node is encountered.'},{key:"CodeInput",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
663
- attributes: UiNodeInputAttributes
664
- node: UiNode
665
- onClick?: MouseEventHandler
666
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"Special version of the Input component for OTP codes."},{key:"Image",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
667
- attributes: UiNodeImageAttributes
668
- node: UiNode
669
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeImageAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeImageProps>",required:!0},description:`The Image component is rendered whenever an "image" node is encountered.
670
-
671
- For example used in the "Logo" node.`},{key:"Label",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
672
- attributes: UiNodeInputAttributes
673
- node: UiNode
674
- } & ComponentPropsWithoutRef<"label">`,elements:[{name:"signature",type:"object",raw:`{
675
- attributes: UiNodeInputAttributes
676
- node: UiNode
677
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"label"'}],raw:'ComponentPropsWithoutRef<"label">'}]}],raw:"ComponentType<OryNodeLabelProps>",required:!0},description:"The Label component is rendered around Input components and is used to render form labels."},{key:"Checkbox",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
678
- attributes: UiNodeInputAttributes
679
- node: UiNode
680
- onClick?: MouseEventHandler
681
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"The Checkbox component is rendered whenever an input node with of boolean type is encountered."},{key:"Text",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
682
- attributes: UiNodeTextAttributes
683
- node: UiNode
684
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeTextAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeTextProps>",required:!0},description:'The Text component is rendered whenever a "text" node is encountered.'}]},required:!0}},{key:"Card",value:{name:"signature",type:"object",raw:`{
685
- /**
686
- * The card container is the main container of the card.
687
- */
688
- Root: ComponentType<OryCardRootProps>
689
- /**
690
- * The card footer is the footer of the card container.
691
- */
692
- Footer: ComponentType<OryCardFooterProps>
693
- /**
694
- * The card header is the header of the card container.
695
- */
696
- Header: ComponentType<OryCardRootProps>
697
- /**
698
- * The card content is the main content of the card container.
699
- */
700
- Content: ComponentType<OryCardContentProps>
701
- /**
702
- * The card logo is the logo of the card container.
703
- */
704
- Logo: ComponentType<OryCardLogoProps>
705
- /**
706
- * The HorizontalDivider component is rendered between groups.
707
- */
708
- Divider: ComponentType<OryCardDividerProps>
709
- /**
710
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
711
- *
712
- * This is only used, if login is configured to use identifier_first authentication.
713
- */
714
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
715
-
716
- /**
717
- * The SettingsSection component is rendered around each section of the settings.
718
- */
719
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
720
- /**
721
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
722
- */
723
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
724
- /**
725
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
726
- */
727
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
728
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card container is the main container of the card."},{key:"Footer",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardFooterProps>",required:!0},description:"The card footer is the footer of the card container."},{key:"Header",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card header is the header of the card container."},{key:"Content",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardContentProps>",required:!0},description:"The card content is the main content of the card container."},{key:"Logo",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardLogoProps>",required:!0},description:"The card logo is the logo of the card container."},{key:"Divider",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardDividerProps>",required:!0},description:"The HorizontalDivider component is rendered between groups."},{key:"AuthMethodListItem",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
729
- onClick: () => void
730
- group: string
731
- }`,signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"group",value:{name:"string",required:!0}}]}}],raw:"ComponentType<OryCardAuthMethodListItemProps>",required:!0},description:`The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
732
-
733
- This is only used, if login is configured to use identifier_first authentication.`},{key:"SettingsSection",value:{name:"ComponentType",elements:[{name:"intersection",raw:`PropsWithChildren & {
734
- action: string
735
- method: string
736
- onSubmit: FormEventHandler<HTMLFormElement>
737
- }`,elements:[{name:"PropsWithChildren"},{name:"signature",type:"object",raw:`{
738
- action: string
739
- method: string
740
- onSubmit: FormEventHandler<HTMLFormElement>
741
- }`,signature:{properties:[{key:"action",value:{name:"string",required:!0}},{key:"method",value:{name:"string",required:!0}},{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryCardSettingsSectionProps>",required:!0},description:"The SettingsSection component is rendered around each section of the settings."},{key:"SettingsSectionContent",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
742
- title?: string
743
- description?: string
744
- }`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"description",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
745
- title?: string
746
- description?: string
747
- }>`}],raw:"ComponentType<OryFormSectionContentProps>",required:!0},description:"The SettingsSectionContent component is rendered around the content of each section of the settings."},{key:"SettingsSectionFooter",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
748
- text?: string
749
- }`,signature:{properties:[{key:"text",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
750
- text?: string
751
- }>`}],raw:"ComponentType<OryFormSectionFooterProps>",required:!0},description:"The SettingsSectionFooter component is rendered around the footer of each section of the settings."}]},required:!0}},{key:"Form",value:{name:"signature",type:"object",raw:`{
752
- /**
753
- * The FormContainer component is the main container of the form.
754
- *
755
- * It should render its children.
756
- *
757
- * You most likely don't want to override this component directly.
758
- */
759
- Root: ComponentType<OryFormRootProps>
760
- /**
761
- * A special form group container for the social buttons.
762
- *
763
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
764
- *
765
- * You most likely don't want to override this component directly.
766
- */
767
- OidcRoot: ComponentType<OryFormOidcRootProps>
768
-
769
- /**
770
- * The FormGroup is rendered around each group of nodes in the UI nodes.
771
- */
772
- Group: ComponentType<OryFormGroupProps>
773
-
774
- /**
775
- * The section on the settings page, rendering the OIDC settings
776
- */
777
- OidcSettings: ComponentType<OrySettingsOidcProps>
778
-
779
- /**
780
- * The section on the settings page, rendering the Webauthn settings
781
- */
782
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
783
-
784
- /**
785
- * The section on the settings page, rendering the Passkey settings
786
- */
787
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
788
-
789
- /**
790
- * The section on the settings page, rendering the TOTP settings
791
- */
792
- TotpSettings: ComponentType<OrySettingsTotpProps>
793
-
794
- /**
795
- * The section on the settings page, rendering the recovery code settings
796
- */
797
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
798
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"intersection",raw:`ComponentPropsWithoutRef<"form"> & {
799
- onSubmit: FormEventHandler<HTMLFormElement>
800
- }`,elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"form"'}],raw:'ComponentPropsWithoutRef<"form">'},{name:"signature",type:"object",raw:`{
801
- onSubmit: FormEventHandler<HTMLFormElement>
802
- }`,signature:{properties:[{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryFormRootProps>",required:!0},description:`The FormContainer component is the main container of the form.
803
-
804
- It should render its children.
805
-
806
- You most likely don't want to override this component directly.`},{key:"OidcRoot",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
807
- nodes: UiNode[]
808
- }`,signature:{properties:[{key:"nodes",value:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]",required:!0}}]}}],raw:`PropsWithChildren<{
809
- nodes: UiNode[]
810
- }>`}],raw:"ComponentType<OryFormOidcRootProps>",required:!0},description:`A special form group container for the social buttons.
811
-
812
- This is required, because the social buttons need to be in its form, to not influence the other form groups.
813
-
814
- You most likely don't want to override this component directly.`},{key:"Group",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryFormGroupProps>",required:!0},description:"The FormGroup is rendered around each group of nodes in the UI nodes."},{key:"OidcSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
815
- linkButtons: (UiNode & { onClick: () => void })[]
816
- unlinkButtons: (UiNode & { onClick: () => void })[]
817
- }`,signature:{properties:[{key:"linkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}},{key:"unlinkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsOidcProps>",required:!0},description:"The section on the settings page, rendering the OIDC settings"},{key:"WebauthnSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
818
- nameInput: UiNode
819
- triggerButton: UiNode & { onClick: () => void }
820
- removeButtons: (UiNode & { onClick: () => void })[]
821
- }`,signature:{properties:[{key:"nameInput",value:{name:"UiNode",required:!0}},{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsWebauthnProps>",required:!0},description:"The section on the settings page, rendering the Webauthn settings"},{key:"PasskeySettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
822
- triggerButton: UiNode & { onClick: () => void }
823
- removeButtons: (UiNode & { onClick: () => void })[]
824
- }`,signature:{properties:[{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsPasskeyProps>",required:!0},description:"The section on the settings page, rendering the Passkey settings"},{key:"TotpSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
825
- totpImage: UiNode | undefined
826
- totpSecret: UiNode | undefined
827
- totpInput: UiNode | undefined
828
- totpUnlink: UiNode | undefined
829
- onUnlink: () => void
830
- }`,signature:{properties:[{key:"totpImage",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpSecret",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpInput",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpUnlink",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onUnlink",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsTotpProps>",required:!0},description:"The section on the settings page, rendering the TOTP settings"},{key:"RecoveryCodesSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
831
- codes: string[]
832
- regnerateButton: UiNode | undefined
833
- revealButton: UiNode | undefined
834
- onRegenerate: () => void
835
- onReveal: () => void
836
- }`,signature:{properties:[{key:"codes",value:{name:"Array",elements:[{name:"string"}],raw:"string[]",required:!0}},{key:"regnerateButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"revealButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onRegenerate",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onReveal",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsRecoveryCodesProps>",required:!0},description:"The section on the settings page, rendering the recovery code settings"}]},required:!0}},{key:"Message",value:{name:"signature",type:"object",raw:`{
837
- /**
838
- * The MessageContainer is rendered around the messages.
839
- */
840
- Root: ComponentType<OryMessageRootProps>
841
-
842
- /**
843
- * The Message component is rendered whenever a message is encountered.
844
- */
845
- Content: ComponentType<OryMessageContentProps>
846
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"DetailedHTMLProps",elements:[{name:"HTMLAttributes",elements:[{name:"HTMLDivElement"}],raw:"HTMLAttributes<HTMLDivElement>"},{name:"HTMLDivElement"}],raw:`DetailedHTMLProps<
847
- HTMLAttributes<HTMLDivElement>,
848
- HTMLDivElement
849
- >`}],raw:"ComponentType<OryMessageRootProps>",required:!0},description:"The MessageContainer is rendered around the messages."},{key:"Content",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
850
- message: UiText
851
- }`,signature:{properties:[{key:"message",value:{name:"UiText",required:!0}}]}}],raw:"ComponentType<OryMessageContentProps>",required:!0},description:"The Message component is rendered whenever a message is encountered."}]},required:!0}},{key:"Page",value:{name:"signature",type:"object",raw:`{
852
- Header: ComponentType<OryPageHeaderProps>
853
- }`,signature:{properties:[{key:"Header",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"never"},{name:"never"}],raw:"Record<never, never>"}],raw:"ComponentType<OryPageHeaderProps>",required:!0}}]},required:!0}}]}},description:""}}};function zr(){const{Card:e}=ue();return d.jsx(e.Header,{})}zr.__docgenInfo={description:"",methods:[],displayName:"OryCardHeader"};function Vr(){const{Card:e}=ue();return d.jsx(e.Footer,{})}Vr.__docgenInfo={description:"",methods:[],displayName:"OryCardFooter"};var Tn=e=>e.type==="checkbox",qt=e=>e instanceof Date,Oe=e=>e==null;const Oa=e=>typeof e=="object";var Ce=e=>!Oe(e)&&!Array.isArray(e)&&Oa(e)&&!qt(e),rg=e=>Ce(e)&&e.target?Tn(e.target)?e.target.checked:e.target.value:e,og=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,sg=(e,t)=>e.has(og(t)),ag=e=>{const t=e.constructor&&e.constructor.prototype;return Ce(t)&&t.hasOwnProperty("isPrototypeOf")},Wr=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ze(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Wr&&(e instanceof Blob||e instanceof FileList))&&(n||Ce(e)))if(t=n?[]:{},!n&&!ag(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=ze(e[i]));else return e;return t}var Ni=e=>Array.isArray(e)?e.filter(Boolean):[],be=e=>e===void 0,U=(e,t,n)=>{if(!t||!Ce(e))return n;const i=Ni(t.split(/[,[\].]+?/)).reduce((r,o)=>Oe(r)?r:r[o],e);return be(i)||i===e?be(e[t])?n:e[t]:i},it=e=>typeof e=="boolean",Gr=e=>/^\w*$/.test(e),Aa=e=>Ni(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ce=(e,t,n)=>{let i=-1;const r=Gr(t)?[t]:Aa(t),o=r.length,s=o-1;for(;++i<o;){const a=r[i];let u=n;if(i!==s){const c=e[a];u=Ce(c)||Array.isArray(c)?c:isNaN(+r[i+1])?{}:[]}if(a==="__proto__")return;e[a]=u,e=e[a]}return e};const Xo={BLUR:"blur",FOCUS_OUT:"focusout"},Ze={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},mt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ra=ve.createContext(null),ge=()=>ve.useContext(Ra),dg=e=>{const{children:t,...n}=e;return ve.createElement(Ra.Provider,{value:n},t)};var ug=(e,t,n,i=!0)=>{const r={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(r,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Ze.all&&(t._proxyFormState[s]=!i||Ze.all),e[s]}});return r},Le=e=>Ce(e)&&!Object.keys(e).length,lg=(e,t,n,i)=>{n(e);const{name:r,...o}=e;return Le(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===Ze.all)},Vn=e=>Array.isArray(e)?e:[e];function cg(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var st=e=>typeof e=="string",mg=(e,t,n,i,r)=>st(e)?(i&&t.watch.add(e),U(n,e,r)):Array.isArray(e)?e.map(o=>(i&&t.watch.add(o),U(n,o))):(i&&(t.watchAll=!0),n),pg=(e,t,n,i,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[i]:r||!0}}:{},Yo=e=>({isOnSubmit:!e||e===Ze.onSubmit,isOnBlur:e===Ze.onBlur,isOnChange:e===Ze.onChange,isOnAll:e===Ze.all,isOnTouch:e===Ze.onTouched}),Qo=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const un=(e,t,n,i)=>{for(const r of n||Object.keys(e)){const o=U(e,r);if(o){const{_f:s,...a}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],r)&&!i)return!0;if(s.ref&&t(s.ref,s.name)&&!i)return!0;if(un(a,t))break}else if(Ce(a)&&un(a,t))break}}};var gg=(e,t,n)=>{const i=Vn(U(e,n));return ce(i,"root",t[n]),ce(e,n,i),e},$r=e=>e.type==="file",gt=e=>typeof e=="function",Yn=e=>{if(!Wr)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Wn=e=>st(e),Kr=e=>e.type==="radio",Qn=e=>e instanceof RegExp;const es={value:!1,isValid:!1},ts={value:!0,isValid:!0};var Ia=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!be(e[0].attributes.value)?be(e[0].value)||e[0].value===""?ts:{value:e[0].value,isValid:!0}:ts:es}return es};const ns={isValid:!1,value:null};var Ma=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ns):ns;function is(e,t,n="validate"){if(Wn(e)||Array.isArray(e)&&e.every(Wn)||it(e)&&!e)return{type:n,message:Wn(e)?e:"",ref:t}}var Ut=e=>Ce(e)&&!Qn(e)?e:{value:e,message:""},rs=async(e,t,n,i,r)=>{const{ref:o,refs:s,required:a,maxLength:u,minLength:c,min:m,max:p,pattern:g,validate:f,name:y,valueAsNumber:h,mount:b,disabled:w}=e._f,k=U(t,y);if(!b||w)return{};const T=s?s[0]:o,_=P=>{i&&T.reportValidity&&(T.setCustomValidity(it(P)?"":P||""),T.reportValidity())},S={},F=Kr(o),E=Tn(o),I=F||E,G=(h||$r(o))&&be(o.value)&&be(k)||Yn(o)&&o.value===""||k===""||Array.isArray(k)&&!k.length,B=pg.bind(null,y,n,S),j=(P,M,q,X=mt.maxLength,V=mt.minLength)=>{const K=P?M:q;S[y]={type:P?X:V,message:K,ref:o,...B(P?X:V,K)}};if(r?!Array.isArray(k)||!k.length:a&&(!I&&(G||Oe(k))||it(k)&&!k||E&&!Ia(s).isValid||F&&!Ma(s).isValid)){const{value:P,message:M}=Wn(a)?{value:!!a,message:a}:Ut(a);if(P&&(S[y]={type:mt.required,message:M,ref:T,...B(mt.required,M)},!n))return _(M),S}if(!G&&(!Oe(m)||!Oe(p))){let P,M;const q=Ut(p),X=Ut(m);if(!Oe(k)&&!isNaN(k)){const V=o.valueAsNumber||k&&+k;Oe(q.value)||(P=V>q.value),Oe(X.value)||(M=V<X.value)}else{const V=o.valueAsDate||new Date(k),K=Y=>new Date(new Date().toDateString()+" "+Y),z=o.type=="time",R=o.type=="week";st(q.value)&&k&&(P=z?K(k)>K(q.value):R?k>q.value:V>new Date(q.value)),st(X.value)&&k&&(M=z?K(k)<K(X.value):R?k<X.value:V<new Date(X.value))}if((P||M)&&(j(!!P,q.message,X.message,mt.max,mt.min),!n))return _(S[y].message),S}if((u||c)&&!G&&(st(k)||r&&Array.isArray(k))){const P=Ut(u),M=Ut(c),q=!Oe(P.value)&&k.length>+P.value,X=!Oe(M.value)&&k.length<+M.value;if((q||X)&&(j(q,P.message,M.message),!n))return _(S[y].message),S}if(g&&!G&&st(k)){const{value:P,message:M}=Ut(g);if(Qn(P)&&!k.match(P)&&(S[y]={type:mt.pattern,message:M,ref:o,...B(mt.pattern,M)},!n))return _(M),S}if(f){if(gt(f)){const P=await f(k,t),M=is(P,T);if(M&&(S[y]={...M,...B(mt.validate,M.message)},!n))return _(M.message),S}else if(Ce(f)){let P={};for(const M in f){if(!Le(P)&&!n)break;const q=is(await f[M](k,t),T,M);q&&(P={...q,...B(M,q.message)},_(q.message),n&&(S[y]=P))}if(!Le(P)&&(S[y]={ref:T,...P},!n))return S}}return _(!0),S};function fg(e,t){const n=t.slice(0,-1).length;let i=0;for(;i<n;)e=be(e)?i++:e[t[i++]];return e}function hg(e){for(const t in e)if(e.hasOwnProperty(t)&&!be(e[t]))return!1;return!0}function xe(e,t){const n=Array.isArray(t)?t:Gr(t)?[t]:Aa(t),i=n.length===1?e:fg(e,n),r=n.length-1,o=n[r];return i&&delete i[o],r!==0&&(Ce(i)&&Le(i)||Array.isArray(i)&&hg(i))&&xe(e,n.slice(0,-1)),e}var Ki=()=>{let e=[];return{get observers(){return e},next:r=>{for(const o of e)o.next&&o.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(o=>o!==r)}}),unsubscribe:()=>{e=[]}}},ei=e=>Oe(e)||!Oa(e);function wt(e,t){if(ei(e)||ei(t))return e===t;if(qt(e)&&qt(t))return e.getTime()===t.getTime();const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const r of n){const o=e[r];if(!i.includes(r))return!1;if(r!=="ref"){const s=t[r];if(qt(o)&&qt(s)||Ce(o)&&Ce(s)||Array.isArray(o)&&Array.isArray(s)?!wt(o,s):o!==s)return!1}}return!0}var Fa=e=>e.type==="select-multiple",yg=e=>Kr(e)||Tn(e),Ji=e=>Yn(e)&&e.isConnected,La=e=>{for(const t in e)if(gt(e[t]))return!0;return!1};function ti(e,t={}){const n=Array.isArray(e);if(Ce(e)||n)for(const i in e)Array.isArray(e[i])||Ce(e[i])&&!La(e[i])?(t[i]=Array.isArray(e[i])?[]:{},ti(e[i],t[i])):Oe(e[i])||(t[i]=!0);return t}function Ua(e,t,n){const i=Array.isArray(e);if(Ce(e)||i)for(const r in e)Array.isArray(e[r])||Ce(e[r])&&!La(e[r])?be(t)||ei(n[r])?n[r]=Array.isArray(e[r])?ti(e[r],[]):{...ti(e[r])}:Ua(e[r],Oe(t)?{}:t[r],n[r]):n[r]=!wt(e[r],t[r]);return n}var Ln=(e,t)=>Ua(e,t,ti(t)),Da=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:i})=>be(e)?e:t?e===""?NaN:e&&+e:n&&st(e)?new Date(e):i?i(e):e;function Zi(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return $r(t)?t.files:Kr(t)?Ma(e.refs).value:Fa(t)?[...t.selectedOptions].map(({value:n})=>n):Tn(t)?Ia(e.refs).value:Da(be(t.value)?e.ref.value:t.value,e)}var vg=(e,t,n,i)=>{const r={};for(const o of e){const s=U(t,o);s&&ce(r,o,s._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:i}},rn=e=>be(e)?e:Qn(e)?e.source:Ce(e)?Qn(e.value)?e.value.source:e.value:e;const os="AsyncFunction";var bg=e=>(!e||!e.validate)&&!!(gt(e.validate)&&e.validate.constructor.name===os||Ce(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===os)),wg=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ss(e,t,n){const i=U(e,n);if(i||Gr(n))return{error:i,name:n};const r=n.split(".");for(;r.length;){const o=r.join("."),s=U(t,o),a=U(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};r.pop()}return{name:n}}var Cg=(e,t,n,i,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?i.isOnBlur:r.isOnBlur)?!e:(n?i.isOnChange:r.isOnChange)?e:!0,kg=(e,t)=>!Ni(U(e,t)).length&&xe(e,t);const xg={mode:Ze.onSubmit,reValidateMode:Ze.onChange,shouldFocusError:!0};function Tg(e={}){let t={...xg,...e},n={submitCount:0,isDirty:!1,isLoading:gt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},i={},r=Ce(t.defaultValues)||Ce(t.values)?ze(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:ze(r),s={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Ki(),array:Ki(),state:Ki()},g=Yo(t.mode),f=Yo(t.reValidateMode),y=t.criteriaMode===Ze.all,h=v=>C=>{clearTimeout(c),c=setTimeout(v,C)},b=async v=>{if(m.isValid||v){const C=t.resolver?Le((await I()).errors):await B(i,!0);C!==n.isValid&&p.state.next({isValid:C})}},w=(v,C)=>{(m.isValidating||m.validatingFields)&&((v||Array.from(a.mount)).forEach(x=>{x&&(C?ce(n.validatingFields,x,C):xe(n.validatingFields,x))}),p.state.next({validatingFields:n.validatingFields,isValidating:!Le(n.validatingFields)}))},k=(v,C=[],x,A,O=!0,N=!0)=>{if(A&&x){if(s.action=!0,N&&Array.isArray(U(i,v))){const L=x(U(i,v),A.argA,A.argB);O&&ce(i,v,L)}if(N&&Array.isArray(U(n.errors,v))){const L=x(U(n.errors,v),A.argA,A.argB);O&&ce(n.errors,v,L),kg(n.errors,v)}if(m.touchedFields&&N&&Array.isArray(U(n.touchedFields,v))){const L=x(U(n.touchedFields,v),A.argA,A.argB);O&&ce(n.touchedFields,v,L)}m.dirtyFields&&(n.dirtyFields=Ln(r,o)),p.state.next({name:v,isDirty:P(v,C),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ce(o,v,C)},T=(v,C)=>{ce(n.errors,v,C),p.state.next({errors:n.errors})},_=v=>{n.errors=v,p.state.next({errors:n.errors,isValid:!1})},S=(v,C,x,A)=>{const O=U(i,v);if(O){const N=U(o,v,be(x)?U(r,v):x);be(N)||A&&A.defaultChecked||C?ce(o,v,C?N:Zi(O._f)):X(v,N),s.mount&&b()}},F=(v,C,x,A,O)=>{let N=!1,L=!1;const Q={name:v},he=!!(U(i,v)&&U(i,v)._f&&U(i,v)._f.disabled);if(!x||A){m.isDirty&&(L=n.isDirty,n.isDirty=Q.isDirty=P(),N=L!==Q.isDirty);const ye=he||wt(U(r,v),C);L=!!(!he&&U(n.dirtyFields,v)),ye||he?xe(n.dirtyFields,v):ce(n.dirtyFields,v,!0),Q.dirtyFields=n.dirtyFields,N=N||m.dirtyFields&&L!==!ye}if(x){const ye=U(n.touchedFields,v);ye||(ce(n.touchedFields,v,x),Q.touchedFields=n.touchedFields,N=N||m.touchedFields&&ye!==x)}return N&&O&&p.state.next(Q),N?Q:{}},E=(v,C,x,A)=>{const O=U(n.errors,v),N=m.isValid&&it(C)&&n.isValid!==C;if(e.delayError&&x?(u=h(()=>T(v,x)),u(e.delayError)):(clearTimeout(c),u=null,x?ce(n.errors,v,x):xe(n.errors,v)),(x?!wt(O,x):O)||!Le(A)||N){const L={...A,...N&&it(C)?{isValid:C}:{},errors:n.errors,name:v};n={...n,...L},p.state.next(L)}},I=async v=>{w(v,!0);const C=await t.resolver(o,t.context,vg(v||a.mount,i,t.criteriaMode,t.shouldUseNativeValidation));return w(v),C},G=async v=>{const{errors:C}=await I(v);if(v)for(const x of v){const A=U(C,x);A?ce(n.errors,x,A):xe(n.errors,x)}else n.errors=C;return C},B=async(v,C,x={valid:!0})=>{for(const A in v){const O=v[A];if(O){const{_f:N,...L}=O;if(N){const Q=a.array.has(N.name),he=O._f&&bg(O._f);he&&m.validatingFields&&w([A],!0);const ye=await rs(O,o,y,t.shouldUseNativeValidation&&!C,Q);if(he&&m.validatingFields&&w([A]),ye[N.name]&&(x.valid=!1,C))break;!C&&(U(ye,N.name)?Q?gg(n.errors,ye,N.name):ce(n.errors,N.name,ye[N.name]):xe(n.errors,N.name))}!Le(L)&&await B(L,C,x)}}return x.valid},j=()=>{for(const v of a.unMount){const C=U(i,v);C&&(C._f.refs?C._f.refs.every(x=>!Ji(x)):!Ji(C._f.ref))&&Me(v)}a.unMount=new Set},P=(v,C)=>(v&&C&&ce(o,v,C),!wt(ee(),r)),M=(v,C,x)=>mg(v,a,{...s.mount?o:be(C)?r:st(v)?{[v]:C}:C},x,C),q=v=>Ni(U(s.mount?o:r,v,e.shouldUnregister?U(r,v,[]):[])),X=(v,C,x={})=>{const A=U(i,v);let O=C;if(A){const N=A._f;N&&(!N.disabled&&ce(o,v,Da(C,N)),O=Yn(N.ref)&&Oe(C)?"":C,Fa(N.ref)?[...N.ref.options].forEach(L=>L.selected=O.includes(L.value)):N.refs?Tn(N.ref)?N.refs.length>1?N.refs.forEach(L=>(!L.defaultChecked||!L.disabled)&&(L.checked=Array.isArray(O)?!!O.find(Q=>Q===L.value):O===L.value)):N.refs[0]&&(N.refs[0].checked=!!O):N.refs.forEach(L=>L.checked=L.value===O):$r(N.ref)?N.ref.value="":(N.ref.value=O,N.ref.type||p.values.next({name:v,values:{...o}})))}(x.shouldDirty||x.shouldTouch)&&F(v,O,x.shouldTouch,x.shouldDirty,!0),x.shouldValidate&&Y(v)},V=(v,C,x)=>{for(const A in C){const O=C[A],N=`${v}.${A}`,L=U(i,N);(a.array.has(v)||!ei(O)||L&&!L._f)&&!qt(O)?V(N,O,x):X(N,O,x)}},K=(v,C,x={})=>{const A=U(i,v),O=a.array.has(v),N=ze(C);ce(o,v,N),O?(p.array.next({name:v,values:{...o}}),(m.isDirty||m.dirtyFields)&&x.shouldDirty&&p.state.next({name:v,dirtyFields:Ln(r,o),isDirty:P(v,N)})):A&&!A._f&&!Oe(N)?V(v,N,x):X(v,N,x),Qo(v,a)&&p.state.next({...n}),p.values.next({name:s.mount?v:void 0,values:{...o}})},z=async v=>{s.mount=!0;const C=v.target;let x=C.name,A=!0;const O=U(i,x),N=()=>C.type?Zi(O._f):rg(v),L=Q=>{A=Number.isNaN(Q)||wt(Q,U(o,x,Q))};if(O){let Q,he;const ye=N(),ct=v.type===Xo.BLUR||v.type===Xo.FOCUS_OUT,Hi=!wg(O._f)&&!t.resolver&&!U(n.errors,x)&&!O._f.deps||Cg(ct,U(n.touchedFields,x),n.isSubmitted,f,g),en=Qo(x,a,ct);ce(o,x,ye),ct?(O._f.onBlur&&O._f.onBlur(v),u&&u(0)):O._f.onChange&&O._f.onChange(v);const Je=F(x,ye,ct,!1),tn=!Le(Je)||en;if(!ct&&p.values.next({name:x,type:v.type,values:{...o}}),Hi)return m.isValid&&(e.mode==="onBlur"?ct&&b():b()),tn&&p.state.next({name:x,...en?{}:Je});if(!ct&&en&&p.state.next({...n}),t.resolver){const{errors:On}=await I([x]);if(L(ye),A){const ml=ss(n.errors,i,x),No=ss(On,i,ml.name||x);Q=No.error,x=No.name,he=Le(On)}}else w([x],!0),Q=(await rs(O,o,y,t.shouldUseNativeValidation))[x],w([x]),L(ye),A&&(Q?he=!1:m.isValid&&(he=await B(i,!0)));A&&(O._f.deps&&Y(O._f.deps),E(x,he,Q,Je))}},R=(v,C)=>{if(U(n.errors,C)&&v.focus)return v.focus(),1},Y=async(v,C={})=>{let x,A;const O=Vn(v);if(t.resolver){const N=await G(be(v)?v:O);x=Le(N),A=v?!O.some(L=>U(N,L)):x}else v?(A=(await Promise.all(O.map(async N=>{const L=U(i,N);return await B(L&&L._f?{[N]:L}:L)}))).every(Boolean),!(!A&&!n.isValid)&&b()):A=x=await B(i);return p.state.next({...!st(v)||m.isValid&&x!==n.isValid?{}:{name:v},...t.resolver||!v?{isValid:x}:{},errors:n.errors}),C.shouldFocus&&!A&&un(i,R,v?O:a.mount),A},ee=v=>{const C={...s.mount?o:r};return be(v)?C:st(v)?U(C,v):v.map(x=>U(C,x))},ke=(v,C)=>({invalid:!!U((C||n).errors,v),isDirty:!!U((C||n).dirtyFields,v),error:U((C||n).errors,v),isValidating:!!U(n.validatingFields,v),isTouched:!!U((C||n).touchedFields,v)}),Ie=v=>{v&&Vn(v).forEach(C=>xe(n.errors,C)),p.state.next({errors:v?n.errors:{}})},$e=(v,C,x)=>{const A=(U(i,v,{_f:{}})._f||{}).ref,O=U(n.errors,v)||{},{ref:N,message:L,type:Q,...he}=O;ce(n.errors,v,{...he,...C,ref:A}),p.state.next({name:v,errors:n.errors,isValid:!1}),x&&x.shouldFocus&&A&&A.focus&&A.focus()},lt=(v,C)=>gt(v)?p.values.subscribe({next:x=>v(M(void 0,C),x)}):M(v,C,!0),Me=(v,C={})=>{for(const x of v?Vn(v):a.mount)a.mount.delete(x),a.array.delete(x),C.keepValue||(xe(i,x),xe(o,x)),!C.keepError&&xe(n.errors,x),!C.keepDirty&&xe(n.dirtyFields,x),!C.keepTouched&&xe(n.touchedFields,x),!C.keepIsValidating&&xe(n.validatingFields,x),!t.shouldUnregister&&!C.keepDefaultValue&&xe(r,x);p.values.next({values:{...o}}),p.state.next({...n,...C.keepDirty?{isDirty:P()}:{}}),!C.keepIsValid&&b()},Fe=({disabled:v,name:C,field:x,fields:A,value:O})=>{if(it(v)&&s.mount||v){const N=v?void 0:be(O)?Zi(x?x._f:U(A,C)._f):O;ce(o,C,N),F(C,N,!1,!1,!0)}},qe=(v,C={})=>{let x=U(i,v);const A=it(C.disabled)||it(e.disabled);return ce(i,v,{...x||{},_f:{...x&&x._f?x._f:{ref:{name:v}},name:v,mount:!0,...C}}),a.mount.add(v),x?Fe({field:x,disabled:it(C.disabled)?C.disabled:e.disabled,name:v,value:C.value}):S(v,!0,C.value),{...A?{disabled:C.disabled||e.disabled}:{},...t.progressive?{required:!!C.required,min:rn(C.min),max:rn(C.max),minLength:rn(C.minLength),maxLength:rn(C.maxLength),pattern:rn(C.pattern)}:{},name:v,onChange:z,onBlur:z,ref:O=>{if(O){qe(v,C),x=U(i,v);const N=be(O.value)&&O.querySelectorAll&&O.querySelectorAll("input,select,textarea")[0]||O,L=yg(N),Q=x._f.refs||[];if(L?Q.find(he=>he===N):N===x._f.ref)return;ce(i,v,{_f:{...x._f,...L?{refs:[...Q.filter(Ji),N,...Array.isArray(U(r,v))?[{}]:[]],ref:{type:N.type,name:v}}:{ref:N}}}),S(v,!1,void 0,N)}else x=U(i,v,{}),x._f&&(x._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(sg(a.array,v)&&s.action)&&a.unMount.add(v)}}},_e=()=>t.shouldFocusError&&un(i,R,a.mount),Ke=v=>{it(v)&&(p.state.next({disabled:v}),un(i,(C,x)=>{const A=U(i,x);A&&(C.disabled=A._f.disabled||v,Array.isArray(A._f.refs)&&A._f.refs.forEach(O=>{O.disabled=A._f.disabled||v}))},0,!1))},Nt=(v,C)=>async x=>{let A;x&&(x.preventDefault&&x.preventDefault(),x.persist&&x.persist());let O=ze(o);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:N,values:L}=await I();n.errors=N,O=L}else await B(i);if(xe(n.errors,"root"),Le(n.errors)){p.state.next({errors:{}});try{await v(O,x)}catch(N){A=N}}else C&&await C({...n.errors},x),_e(),setTimeout(_e);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Le(n.errors)&&!A,submitCount:n.submitCount+1,errors:n.errors}),A)throw A},W=(v,C={})=>{U(i,v)&&(be(C.defaultValue)?K(v,ze(U(r,v))):(K(v,C.defaultValue),ce(r,v,ze(C.defaultValue))),C.keepTouched||xe(n.touchedFields,v),C.keepDirty||(xe(n.dirtyFields,v),n.isDirty=C.defaultValue?P(v,ze(U(r,v))):P()),C.keepError||(xe(n.errors,v),m.isValid&&b()),p.state.next({...n}))},$=(v,C={})=>{const x=v?ze(v):r,A=ze(x),O=Le(v),N=O?r:A;if(C.keepDefaultValues||(r=x),!C.keepValues){if(C.keepDirtyValues)for(const L of a.mount)U(n.dirtyFields,L)?ce(N,L,U(o,L)):K(L,U(N,L));else{if(Wr&&be(v))for(const L of a.mount){const Q=U(i,L);if(Q&&Q._f){const he=Array.isArray(Q._f.refs)?Q._f.refs[0]:Q._f.ref;if(Yn(he)){const ye=he.closest("form");if(ye){ye.reset();break}}}}i={}}o=e.shouldUnregister?C.keepDefaultValues?ze(r):{}:ze(N),p.array.next({values:{...N}}),p.values.next({values:{...N}})}a={mount:C.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!m.isValid||!!C.keepIsValid||!!C.keepDirtyValues,s.watch=!!e.shouldUnregister,p.state.next({submitCount:C.keepSubmitCount?n.submitCount:0,isDirty:O?!1:C.keepDirty?n.isDirty:!!(C.keepDefaultValues&&!wt(v,r)),isSubmitted:C.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:O?{}:C.keepDirtyValues?C.keepDefaultValues&&o?Ln(r,o):n.dirtyFields:C.keepDefaultValues&&v?Ln(r,v):C.keepDirty?n.dirtyFields:{},touchedFields:C.keepTouched?n.touchedFields:{},errors:C.keepErrors?n.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},fe=(v,C)=>$(gt(v)?v(o):v,C);return{control:{register:qe,unregister:Me,getFieldState:ke,handleSubmit:Nt,setError:$e,_executeSchema:I,_getWatch:M,_getDirty:P,_updateValid:b,_removeUnmounted:j,_updateFieldArray:k,_updateDisabledField:Fe,_getFieldArray:q,_reset:$,_resetDefaultValues:()=>gt(t.defaultValues)&&t.defaultValues().then(v=>{fe(v,t.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:v=>{n={...n,...v}},_disableForm:Ke,_subjects:p,_proxyFormState:m,_setErrors:_,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(v){s=v},get _defaultValues(){return r},get _names(){return a},set _names(v){a=v},get _formState(){return n},set _formState(v){n=v},get _options(){return t},set _options(v){t={...t,...v}}},trigger:Y,register:qe,handleSubmit:Nt,watch:lt,setValue:K,getValues:ee,reset:fe,resetField:W,clearErrors:Ie,unregister:Me,setError:$e,setFocus:(v,C={})=>{const x=U(i,v),A=x&&x._f;if(A){const O=A.refs?A.refs[0]:A.ref;O.focus&&(O.focus(),C.shouldSelect&&O.select())}},getFieldState:ke}}function Ba(e={}){const t=ve.useRef(),n=ve.useRef(),[i,r]=ve.useState({isDirty:!1,isValidating:!1,isLoading:gt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:gt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Tg(e),formState:i});const o=t.current.control;return o._options=e,cg({subject:o._subjects.state,next:s=>{lg(s,o._proxyFormState,o._updateFormState)&&r({...o._formState})}}),ve.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ve.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==i.isDirty&&o._subjects.state.next({isDirty:s})}},[o,i.isDirty]),ve.useEffect(()=>{e.values&&!wt(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,r(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),ve.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ve.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ve.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=ug(i,o),t.current}const Ha=({node:e,attributes:t})=>{var b;const{Node:n}=ue(),{setValue:i}=ge(),{onloadTrigger:r,onclickTrigger:o,onclick:s,onload:a,...u}=t,c=((b=e.meta.label)==null?void 0:b.id)===1070008,m="name"in e.attributes&&e.attributes.name==="screen",p=()=>{u.value&&!(c||m)&&i(u.name,u.value)},g=l.useRef(!1);l.useEffect(()=>{p(),!g.current&&r&&(g.current=!0,Xn(r))},[]);const f=()=>{p(),o&&Xn(o)},y=(u.name==="provider"||u.name==="link")&&e.group==="oidc",h=u.name==="code"&&e.group==="code"||u.name==="totp_code"&&e.group==="totp";switch(t.type){case nn.Submit:case nn.Button:return y?d.jsx(n.OidcButton,{attributes:u,node:e}):c||m?null:d.jsx(n.Label,{attributes:{...u,label:void 0},node:{...e,meta:{...e.meta,label:void 0}},children:d.jsx(n.Button,{attributes:u,node:e,onClick:f})});case nn.DatetimeLocal:throw new Error("Not implemented");case nn.Checkbox:return d.jsx(n.Label,{attributes:{...u,label:void 0},node:{...e,meta:{...e.meta,label:void 0}},children:d.jsx(n.Checkbox,{attributes:u,node:e,onClick:f})});case nn.Hidden:return d.jsx(n.Input,{attributes:u,node:e,onClick:f});default:return h?d.jsx(n.Label,{attributes:u,node:e,children:d.jsx(n.CodeInput,{attributes:u,node:e,onClick:f})}):d.jsx(n.Label,{attributes:u,node:e,children:d.jsx(n.Input,{attributes:u,node:e,onClick:f})})}};Ha.__docgenInfo={description:"",methods:[],displayName:"NodeInput",props:{node:{required:!0,tsType:{name:"UiNode"},description:""},className:{required:!1,tsType:{name:"string"},description:""},onClick:{required:!1,tsType:{name:"MouseEventHandler"},description:""},attributes:{required:!0,tsType:{name:"UiNodeInputAttributes"},description:""}}};const Ne=({node:e,onClick:t})=>{const{Node:n}=ue();if(Fr(e.attributes))return d.jsx(n.Image,{node:e,attributes:e.attributes});if(gm(e.attributes)){const i=e.attributes;return d.jsx(n.Text,{attributes:i,node:e})}else{if(Kt(e.attributes))return d.jsx(Ha,{node:e,attributes:e.attributes,onClick:t});if(Mr(e.attributes))return d.jsx(n.Anchor,{attributes:e.attributes,node:e});if(Vs(e.attributes)){const{crossorigin:i,referrerpolicy:r,node_type:o,...s}=e.attributes;return d.jsx("script",{crossOrigin:i,referrerPolicy:r,...s})}}return null};Ne.__docgenInfo={description:"",methods:[],displayName:"Node",props:{node:{required:!0,tsType:{name:"UiNode"},description:""},className:{required:!1,tsType:{name:"string"},description:""},onClick:{required:!1,tsType:{name:"MouseEventHandler"},description:""}}};function Jr({children:e,groups:t}){const{flow:{ui:n}}=de(),i=Gs(),{flowType:r}=de(),{Form:o}=ue(),s=n.nodes.filter(a=>t.indexOf(a.group)>-1).sort((a,u)=>i(a,u,{flowType:r}));return d.jsx(o.Group,{children:e??s.map((a,u)=>d.jsx(Ne,{node:a},u))})}Jr.__docgenInfo={description:"",methods:[],displayName:"OryFormGroups"};function qa(e){return e.reduce((t,n)=>{const i=n.attributes;return Kt(i)?(i.type==="checkbox"&&typeof i.value>"u"&&(i.value=!1),i.name==="method"||i.type==="submit"||typeof i.value>"u"?t:_g({name:i.name,value:i.value},t)):t},{})}function _g(e,t={}){const n=e.name.split(".");let i=t;return n.forEach((r,o)=>{r&&(i=i[r]=o===n.length-1?e.value:i[r]||{})}),t}function Sg(e){return e.email??e.resend}function Ng(){const e=de();return t=>e.formState.current==="method_active"&&t.method==="code"&&!t.code&&!Sg(t)&&e.flow.ui.nodes.find(({attributes:n,group:i})=>Kt(n)?i==="code"&&n.name==="code"&&n.type!=="hidden":!1)?{values:t,errors:{code:{id:4000002,context:{property:"code"},type:"error",text:"Property code is missing"}}}:{values:t,errors:{}}}function mn({children:e,nodes:t}){const n=de(),i=t?n.flow.ui.nodes.filter(o=>o.group===re.Default).concat(t):n.flow.ui.nodes,r=Ba({defaultValues:qa(i),resolver:Ng()});return d.jsx(dg,{...r,children:e})}mn.__docgenInfo={description:"",methods:[],displayName:"OryFormProvider",props:{nodes:{required:!1,tsType:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]"},description:""}}};function Pi({children:e,hideDivider:t}){const{flow:{ui:n}}=de(),{setValue:i}=ge(),r=n.nodes.filter(c=>c.group==="oidc"),{Form:o,Card:s,Node:a}=ue();if(r.length===0)return null;const u=n.nodes.filter(c=>c.group!=="oidc"&&c.group!=="default");return d.jsxs(d.Fragment,{children:[d.jsx(o.OidcRoot,{nodes:r,children:e??r.map((c,m)=>d.jsx(a.OidcButton,{node:c,attributes:c.attributes,onClick:()=>{i("provider",c.attributes.value),i("method","oidc")}},m))}),!t&&r.length>0&&u.length>0&&d.jsx(s.Divider,{})]})}function ja(){const{flow:{ui:e}}=de();return e.nodes.filter(n=>n.group==="oidc").length===0?null:d.jsx(mn,{children:d.jsx(Ei,{children:d.jsx(Pi,{})})})}Pi.__docgenInfo={description:"",methods:[],displayName:"OryFormOidcButtons"};ja.__docgenInfo={description:"",methods:[],displayName:"OryFormSocialButtonsForm"};function Jt(e,t={}){const n=new Ls({...t,basePath:e,headers:{Accept:"application/json",...t.headers}});return new im(n)}function _n(e){const t=new URL(window.location.href);t.searchParams.set("flow",e),window.location.href=t.toString()}async function Pg({config:e,flow:t},{setFlowContainer:n,body:i,onRedirect:r}){if(!e.sdk.url)throw new Error("Please supply your Ory Network SDK url to the Ory Elements configuration.");await Jt(e.sdk.url,e.sdk.options??{}).updateLoginFlowRaw({flow:t.id,updateLoginFlowBody:i}).then(()=>{window.location.href=t.return_to??e.sdk.url+"/self-service/login/browser"}).catch(wn({onRestartFlow:o=>{o?_n(o):r(qs(e),!0)},onValidationError:o=>{n({config:e,flow:o,flowType:J.Login})},onRedirect:r}))}async function Eg({config:e,flow:t},{setFlowContainer:n,body:i,onRedirect:r}){if(!e.sdk.url)throw new Error("Please supply your Ory Network SDK url to the Ory Elements configuration.");await Jt(e.sdk.url,e.sdk.options??{}).updateRecoveryFlowRaw({flow:t.id,updateRecoveryFlowBody:i}).then(async o=>{const s=await o.value();Ir(s.continue_with,{onRedirect:r})||n({flow:s,flowType:J.Recovery,config:e})}).catch(wn({onRestartFlow:o=>{o?_n(o):r(js(e),!0)},onValidationError:o=>{if("error"in o){Og(o.error,e,r);return}else n({flow:o,flowType:J.Recovery,config:e})},onRedirect:r}))}function Og(e,t,n){if("continue_with"in e.details&&Array.isArray(e.details.continue_with)){const i=e.details.continue_with.find(Tl);if((i==null?void 0:i.action)==="show_recovery_ui"){n(t.project.recovery_ui_url+"?flow="+(i==null?void 0:i.flow.id),!1);return}}n(js(t),!0)}async function Ag({config:e,flow:t},{setFlowContainer:n,body:i,onRedirect:r}){if(!e.sdk.url)throw new Error("Please supply your Ory Network SDK url to the Ory Elements configuration.");await Jt(e.sdk.url,e.sdk.options??{}).updateRegistrationFlowRaw({flow:t.id,updateRegistrationFlowBody:i}).then(async s=>{const a=await s.value();Ir(a.continue_with,{onRedirect:r})||r(Oo(e),!0)}).catch(wn({onRestartFlow:s=>{s?_n(s):r(Oo(e),!0)},onValidationError:s=>{n({flow:s,flowType:J.Registration,config:e})},onRedirect:r}))}async function Rg({config:e,flow:t},{setFlowContainer:n,body:i,onRedirect:r}){if(!e.sdk.url)throw new Error("Please supply your Ory Network SDK url to the Ory Elements configuration.");await Jt(e.sdk.url,e.sdk.options??{}).updateSettingsFlowRaw({flow:t.id,updateSettingsFlowBody:i}).then(async s=>{const a=await s.value();Ir(a.continue_with,{onRedirect:r})||n({flow:a,flowType:J.Settings,config:e})}).catch(wn({onRestartFlow:s=>{s?_n(s):r(Ao(e),!0)},onValidationError:s=>{n({flow:s,flowType:J.Settings,config:e})},onRedirect:r})).catch(s=>{if(Hs(s)){if(s.response.status===401)return r(qs(e)+"?return_to="+Ao(e),!0);throw s}})}async function Ig({config:e,flow:t},{setFlowContainer:n,body:i,onRedirect:r}){if(!e.sdk.url)throw new Error("Please supply your Ory Network SDK URL to the Ory Elements configuration.");await Jt(e.sdk.url,e.sdk.options??{}).updateVerificationFlowRaw({flow:t.id,updateVerificationFlowBody:i}).then(async o=>n({flow:await o.value(),flowType:J.Verification,config:e})).catch(wn({onRestartFlow:o=>{o?_n(o):r(am(e),!0)},onValidationError:o=>{n({flow:o,flowType:J.Verification,config:e})},onRedirect:r}))}const Mg=["google","github"];function za(e){const t=de(),n=ge(),i=s=>{t.setFlowContainer(s),n.reset(qa(s.flow.ui.nodes))},r=(s,a)=>{if(a){window.location.href=s;return}window.location.href=s};return async s=>{switch(t.flowType){case J.Login:{const a={...s};a.method==="code"&&s.code&&(a.resend=""),await Pg(t,{onRedirect:r,setFlowContainer:i,body:a});break}case J.Registration:{const a={...s};a.method==="code"&&a.code&&(a.resend=""),await Ag(t,{onRedirect:r,setFlowContainer:i,body:a});break}case J.Verification:await Ig(t,{onRedirect:r,setFlowContainer:i,body:s});break;case J.Recovery:{const a={...s};s.code&&(a.email=""),await Eg(t,{onRedirect:r,setFlowContainer:i,body:a});break}case J.Settings:{const a={...s};"totp_unlink"in a&&(a.method="totp"),("lookup_secret_confirm"in a||"lookup_secret_reveal"in a||"lookup_secret_regenerate"in a||"lookup_secret_disable"in a)&&(a.method="lookup_secret"),a.method==="oidc"&&a.link&&Mg.includes(a.link)&&(a.upstream_parameters={prompt:"select_account"}),"webauthn_remove"in a&&(a.method="webauthn"),"passkey_remove"in a&&(a.method="passkey"),await Rg(t,{onRedirect:r,setFlowContainer:i,body:a});break}}"password"in s&&n.setValue("password",""),"code"in s&&n.setValue("code",""),"totp_code"in s&&n.setValue("totp_code",""),e==null||e(s.method)}}function Ei({children:e,onAfterSubmit:t}){const{Form:n}=ue(),i=de(),r=ge(),o=pe(),s=za(t);return!(i.flow.ui.nodes.filter(u=>Kt(u.attributes)?u.attributes.name!=="csrf_token":Mr(u.attributes)||Fr(u.attributes)?!0:!!Vs(u.attributes)).length>0)&&(i.flow.ui.messages??[]).length===0?o.formatMessage({id:"identities.messages.5000002",defaultMessage:"No authentication methods are available for this request. Please contact the site or app owner."}):d.jsx(n.Root,{action:i.flow.ui.action,method:i.flow.ui.method,onSubmit:u=>void r.handleSubmit(s)(u),children:e??d.jsxs(d.Fragment,{children:[d.jsx(Pi,{}),d.jsx(Jr,{groups:["default","password","code","webauthn","passkey","identifier_first"]})]})})}Ei.__docgenInfo={description:"",methods:[],displayName:"OryForm"};const Fg=[1040009,1060003,1080003,1010014,1040005,1010016];function Oi({...e}){var r;const{flow:t}=de(),n=(r=t.ui.messages)==null?void 0:r.filter(o=>!Fg.includes(o.id)),{Message:i}=ue();return n?d.jsx(i.Root,{...e,children:n==null?void 0:n.map(o=>d.jsx(i.Content,{message:o},o.id))}):null}Oi.__docgenInfo={description:"",methods:[],displayName:"OryCardValidationMessages"};function Et({children:e,nodes:t,...n}){return d.jsx(mn,{nodes:t,children:d.jsx(Lg,{...n,children:e})})}function Lg({children:e,...t}){const{Card:n}=ue(),i=de(),r=za(),o=ge();return d.jsx(n.SettingsSection,{action:i.flow.ui.action,method:i.flow.ui.method,onSubmit:s=>void o.handleSubmit(r)(s),...t,children:e})}Et.__docgenInfo={description:"",methods:[],displayName:"OryFormSection"};function Zr({children:e}){const{Card:t}=ue();return e?d.jsx(t.Content,{children:e}):d.jsxs(t.Content,{children:[d.jsx(Oi,{}),d.jsxs(Ei,{children:[d.jsx(Pi,{}),d.jsx(Jr,{groups:["default","password","passkey","code","webauthn","profile","totp","identifier_first"]})]})]})}Zr.__docgenInfo={description:`A component that renders the content of the Ory Card.
854
- This is the main content of the card, such as the flow's form, with it's input fields and messages.
855
-
856
- You can use this component to build fully custom implementations of the Ory Flows.
857
-
858
- However, you most likely want to override the individual components instead.
859
-
860
- @param props - pass children to render instead of the default Ory Card components
861
- @returns`,methods:[],displayName:"OryCardContent"};function Va({children:e}){const{Card:t}=ue();return e?d.jsx(t.Root,{children:d.jsx(mn,{children:e})}):d.jsx(t.Root,{children:d.jsxs(mn,{children:[d.jsx(zr,{}),d.jsx(Zr,{}),d.jsx(Vr,{})]})})}Va.__docgenInfo={description:`The root component of the Ory Card.
862
-
863
- This can be used to build fully custom implementations of the Ory Flows.
864
-
865
- However, you most likely want to override the individual components instead.
866
-
867
- @param props - pass children to render instead of the default Ory Card components
868
- @returns`,methods:[],displayName:"OryCard"};function Xr(e){return e==="code"}function Yr(){var f;const{flow:{ui:e}}=de(),{Form:t,Card:n}=ue(),{flowType:i,formState:r,dispatchFormState:o}=de(),s=Gs(),a=(y,h)=>s(y,h,{flowType:i}),u=Lr(e.nodes),c=Object.values(re).filter(y=>{var h;return(h=u.groups[y])==null?void 0:h.length}).filter(y=>![re.Oidc,re.Default,re.IdentifierFirst,re.Profile].includes(y)),m=!!((f=u.groups[re.Oidc])!=null&&f.length),p=km(e.nodes),g=r.current==="method_active"?xm(u.groups,r.method):[];return d.jsxs(Va,{children:[d.jsx(zr,{}),d.jsxs(Zr,{children:[d.jsx(Oi,{}),r.current==="provide_identifier"&&m&&d.jsx(ja,{}),d.jsxs(Ei,{onAfterSubmit:y=>Xr(y+"")?o({type:"action_select_method",method:y}):void 0,children:[d.jsxs(t.Group,{children:[r.current==="provide_identifier"&&p.sort(a).map((y,h)=>d.jsx(Ne,{node:y},h)),r.current==="select_method"&&d.jsxs(d.Fragment,{children:[d.jsx(n.Divider,{}),d.jsx(Ug,{options:c,setSelectedGroup:y=>o({type:"action_select_method",method:y})})]}),r.current==="method_active"&&d.jsxs(d.Fragment,{children:[e.nodes.filter(y=>y.type==="script").map((y,h)=>d.jsx(Ne,{node:y},h)),g.sort(a).map((y,h)=>d.jsx(Ne,{node:y},h))]})]}),d.jsx(Vr,{})]})]})]})}function Ug({options:e,setSelectedGroup:t}){const{Card:n}=ue(),{setValue:i}=ge(),r=o=>{Xr(o)?i("method",o):t(o)};return e.map(o=>d.jsx(n.AuthMethodListItem,{group:o,onClick:()=>r(o)},o))}Yr.__docgenInfo={description:"",methods:[],displayName:"OryTwoStepCard"};const Wa=()=>{const{Page:e}=ue();return d.jsx(e.Header,{})};Wa.__docgenInfo={description:"",methods:[],displayName:"HeadlessPageHeader"};const Dg=e=>e.filter(t=>"name"in t.attributes&&t.attributes.name==="link"),Bg=e=>e.filter(t=>"name"in t.attributes&&t.attributes.name==="unlink");function Ga({nodes:e}){const{Card:t,Form:n}=ue(),i=pe(),{setValue:r}=ge(),o=Dg(e).map(a=>({...a,onClick:()=>{a.attributes.node_type==="input"&&(r("link",a.attributes.value),r("method","oidc"))}})),s=Bg(e).map(a=>({...a,onClick:()=>{a.attributes.node_type==="input"&&(r("unlink",a.attributes.value),r("method","oidc"))}}));return d.jsxs(d.Fragment,{children:[d.jsx(t.SettingsSectionContent,{title:i.formatMessage({id:"settings.oidc.title"}),description:i.formatMessage({id:"settings.oidc.description"}),children:d.jsx(n.OidcSettings,{linkButtons:o,unlinkButtons:s})}),d.jsx(t.SettingsSectionFooter,{text:i.formatMessage({id:"settings.oidc.info"})})]})}Ga.__docgenInfo={description:"",methods:[],displayName:"OrySettingsOidc",props:{nodes:{required:!0,tsType:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]"},description:""}}};const Hg=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="passkey_register_trigger"),qg=e=>e.filter(t=>"name"in t.attributes&&(t.attributes.name==="passkey_settings_register"||t.attributes.name==="passkey_create_data")),jg=e=>e.filter(t=>"name"in t.attributes&&t.attributes.name==="passkey_remove");function $a({nodes:e}){const{Card:t,Form:n}=ue(),i=pe(),{setValue:r}=ge(),o=Hg(e),s=qg(e),a=jg(e);if(!o)return null;const{onclick:u,onclickTrigger:c,...m}=o.attributes,p=()=>{Xn(c)},g=f=>()=>{r("passkey_remove",f),r("method","passkey")};return d.jsxs(d.Fragment,{children:[d.jsxs(t.SettingsSectionContent,{title:i.formatMessage({id:"settings.passkey.title"}),description:i.formatMessage({id:"settings.passkey.description"}),children:[s.map((f,y)=>d.jsx(Ne,{node:f},`passkey-settings-nodes-${y}`)),d.jsx(n.PasskeySettings,{triggerButton:{...o,attributes:m,onClick:p},removeButtons:a.map(f=>({...f,onClick:f.attributes.node_type==="input"?g(f.attributes.value):()=>{}}))})]}),d.jsx(t.SettingsSectionFooter,{text:i.formatMessage({id:"settings.passkey.info"})})]})}$a.__docgenInfo={description:"",methods:[],displayName:"OrySettingsPasskey",props:{nodes:{required:!0,tsType:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]"},description:""}}};const zg=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="lookup_secret_regenerate"),Vg=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="lookup_secret_reveal"),Wg=e=>e.find(t=>"id"in t.attributes&&t.attributes.id==="lookup_secret_codes"),Gg=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="lookup_secret_disable"),$g=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="lookup_secret_confirm");function Ka({nodes:e}){var b;const{Card:t,Form:n,Node:i}=ue(),r=pe(),o=Wg(e),s=Vg(e),a=zg(e),u=Gg(e),c=$g(e),{setValue:m}=ge(),p=((b=o==null?void 0:o.attributes)==null?void 0:b.text.context)??{},g=p.secrets?p.secrets.map(w=>w.text):[],f=()=>{(a==null?void 0:a.attributes.node_type)==="input"&&(m(a==null?void 0:a.attributes.name,"true"),m("method","lookup_secret"))},y=()=>{(s==null?void 0:s.attributes.node_type)==="input"&&(m(s==null?void 0:s.attributes.name,"true"),m("method","lookup_secret"))},h=u??a??c;return d.jsxs(d.Fragment,{children:[d.jsx(t.SettingsSectionContent,{title:r.formatMessage({id:"settings.lookup_secret.title"}),description:r.formatMessage({id:"settings.lookup_secret.description"}),children:d.jsx(n.RecoveryCodesSettings,{codes:g,revealButton:s,regnerateButton:a,onRegenerate:f,onReveal:y})}),d.jsx(t.SettingsSectionFooter,{children:h&&d.jsx(i.Button,{node:h,attributes:h.attributes})})]})}Ka.__docgenInfo={description:"",methods:[],displayName:"OrySettingsRecoveryCodes",props:{nodes:{required:!0,tsType:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]"},description:""}}};const Kg=e=>e.find(t=>"id"in t.attributes&&t.attributes.id==="totp_qr"),Jg=e=>e.find(t=>"id"in t.attributes&&t.attributes.id==="totp_secret_key"),Zg=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="totp_code"),Xg=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="totp_unlink"),Yg=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="method");function Ja({nodes:e}){const{Card:t,Form:n,Node:i}=ue(),r=pe(),{setValue:o}=ge(),s=Xg(e),a=Kg(e),u=Jg(e),c=Zg(e),m=Yg(e),p=()=>{(s==null?void 0:s.attributes.node_type)==="input"&&(o(s.attributes.name,s.attributes.value),o("method","totp"))};return d.jsxs(d.Fragment,{children:[d.jsx(t.SettingsSectionContent,{title:r.formatMessage({id:"settings.totp.title"}),description:r.formatMessage({id:"settings.totp.description"}),children:d.jsx(n.TotpSettings,{totpImage:a,totpSecret:u,totpInput:c,totpUnlink:s,onUnlink:p})}),d.jsx(t.SettingsSectionFooter,{text:s?r.formatMessage({id:"settings.totp.info.linked"}):r.formatMessage({id:"settings.totp.info.not-linked"}),children:m&&d.jsx(i.Button,{node:m,attributes:m.attributes})})]})}Ja.__docgenInfo={description:"",methods:[],displayName:"OrySettingsTotp",props:{nodes:{required:!0,tsType:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]"},description:""}}};const Qg=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="webauthn_register_displayname"),ef=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="webauthn_register_trigger"),tf=e=>e.filter(t=>"name"in t.attributes&&t.attributes.name==="webauthn_remove"),nf=e=>e.find(t=>"name"in t.attributes&&t.attributes.name==="webauthn_register");function Za({nodes:e}){const{Card:t,Form:n}=ue(),i=pe(),{setValue:r}=ge(),o=ef(e),s=Qg(e),a=tf(e),u=nf(e);if(!s||!o)return null;const{onclick:c,onclickTrigger:m,...p}=o.attributes,g=()=>{Xn(m)},f=y=>()=>{r("webauthn_remove",y),r("method","webauthn")};return d.jsxs(d.Fragment,{children:[d.jsxs(t.SettingsSectionContent,{title:i.formatMessage({id:"settings.webauthn.title"}),description:i.formatMessage({id:"settings.webauthn.description"}),children:[d.jsx(n.WebauthnSettings,{nameInput:s,triggerButton:{...o,attributes:p,onClick:g},removeButtons:a.map(y=>({...y,onClick:y.attributes.node_type==="input"?f(y.attributes.value):()=>{}}))}),u&&d.jsx(Ne,{node:u})]}),d.jsx(t.SettingsSectionFooter,{text:i.formatMessage({id:"settings.webauthn.info"})})]})}Za.__docgenInfo={description:"",methods:[],displayName:"OrySettingsWebauthn",props:{nodes:{required:!0,tsType:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]"},description:""}}};function rf({group:e,nodes:t}){var s,a,u,c,m,p;const{Card:n}=ue(),i=pe(),{flow:r}=de(),o=Lr(r.ui.nodes);return e===re.Totp?d.jsxs(Et,{nodes:o.groups.totp,"data-testid":"ory/screen/settings/group/totp",children:[d.jsx(Ja,{nodes:o.groups.totp??[]}),(s=o.groups.default)==null?void 0:s.map((g,f)=>d.jsx(Ne,{node:g},f))]}):e===re.LookupSecret?d.jsxs(Et,{nodes:o.groups.lookup_secret,"data-testid":"ory/screen/settings/group/lookup_secret",children:[d.jsx(Ka,{nodes:o.groups.lookup_secret??[]}),(a=o.groups.default)==null?void 0:a.map((g,f)=>d.jsx(Ne,{node:g},f))]}):e===re.Oidc?d.jsxs(Et,{nodes:o.groups.oidc,"data-testid":"ory/screen/settings/group/oidc",children:[d.jsx(Ga,{nodes:o.groups.oidc??[]}),(u=o.groups.default)==null?void 0:u.map((g,f)=>d.jsx(Ne,{node:g},f))]}):e===re.Webauthn?d.jsxs(Et,{nodes:o.groups.webauthn,"data-testid":"ory/screen/settings/group/webauthn",children:[d.jsx(Za,{nodes:o.groups.webauthn??[]}),(c=o.groups.default)==null?void 0:c.map((g,f)=>d.jsx(Ne,{node:g},f))]}):e===re.Passkey?d.jsxs(Et,{nodes:o.groups.passkey,"data-testid":"ory/screen/settings/group/passkey",children:[d.jsx($a,{nodes:o.groups.passkey??[]}),(m=o.groups.default)==null?void 0:m.map((g,f)=>d.jsx(Ne,{node:g},f))]}):d.jsxs(Et,{nodes:t,"data-testid":`ory/screen/settings/group/${e}`,children:[d.jsxs(n.SettingsSectionContent,{title:i.formatMessage({id:`settings.${e}.title`}),description:i.formatMessage({id:`settings.${e}.description`}),children:[(p=o.groups.default)==null?void 0:p.map((g,f)=>d.jsx(Ne,{node:g},f)),t.filter(g=>"type"in g.attributes&&g.attributes.type!=="submit").map((g,f)=>d.jsx(Ne,{node:g},f))]}),d.jsx(n.SettingsSectionFooter,{children:t.filter(g=>"type"in g.attributes&&g.attributes.type==="submit").map((g,f)=>d.jsx(Ne,{node:g},f))})]})}const of=e=>e.find(t=>"id"in t.attributes&&t.attributes.id==="webauthn_script");function Xa(){const{flow:e}=de(),t=Lr(e.ui.nodes),n=of(e.ui.nodes);return d.jsxs(d.Fragment,{children:[d.jsx(Oi,{}),n&&d.jsx(Ne,{node:n}),t.entries.map(([i,r])=>i===re.Default?null:d.jsx(rf,{group:i,nodes:r},i))]})}Xa.__docgenInfo={description:"",methods:[],displayName:"OrySettingsCard"};const Xe=({id:e,context:t={},text:n},i)=>{const r=Object.entries(t).reduce((o,[s,a])=>Array.isArray(a)?{...o,[s]:a,[s+"_list"]:i.formatList(a)}:s.endsWith("_unix")&&typeof a=="number"?{...o,[s]:i.formatDate(new Date(a*1e3)),[s+"_since"]:i.formatDateTimeRange(new Date(a),new Date),[s+"_since_minutes"]:Math.ceil((a-new Date().getTime()/1e3)/60).toFixed(0),[s+"_until"]:i.formatDateTimeRange(new Date,new Date(a)),[s+"_until_minutes"]:Math.ceil((new Date().getTime()/1e3-a)/60).toFixed(0)}:{...o,[s]:a},{});return i.formatMessage({id:`identities.messages.${e}`,defaultMessage:n},r)};function Qr(e){return{"data-testid":`ory/message/${e.id}`}}const sf={"consent.action-accept":"Allow","consent.action-reject":"Deny","consent.description":"Only grant permissions if you trust this site or app. You do not need to accept all permissions.","consent.privacy-policy-label":"Privacy Policy","consent.remember-label":"Remember this decision for next time. The application will not be able to ask for additional permissions without your consent.","consent.remember-tooltip":"remember my decision","consent.requested-permissions-label":"The application requests access to the following permissions:","consent.terms-of-service-label":"Terms of Service","error.back-button":"Go Back","error.description":"An error occurred with the following message:","error.support-email-link":"If the problem persists, please contact <a>{contactSupportEmail}</a>","error.title":"An error occurred","error.title-internal-server-error":"Internal Server Error","error.title-not-found":"404 - Page not found","identities.messages.1010001":"Sign in","identities.messages.1010002":"Sign in with {provider}","identities.messages.1010003":"Please confirm this action by verifying that it is you.","identities.messages.1010004":"Please complete the second authentication challenge.","identities.messages.1010005":"Verify","identities.messages.1010006":"Authentication code","identities.messages.1010007":"Backup recovery code","identities.messages.1010008":"Sign in with hardware key","identities.messages.1010009":"Use Authenticator","identities.messages.1010010":"Use backup recovery code","identities.messages.1010011":"Sign in with hardware key","identities.messages.1010012":"Prepare your WebAuthn device (e.g. security key, biometrics scanner, ...) and press continue.","identities.messages.1010013":"Continue","identities.messages.1010014":"A code has been sent to the address you provided. If you have not received an message, check the spelling of the address and retry the login.","identities.messages.1010015":"Send sign in code","identities.messages.1010016":'You tried to sign in with "{duplicateIdentifier}", but that email is already used by another account. Sign in to your account with one of the options below to add your account "{duplicateIdentifier}" at "{provider}" as another way to sign in.',"identities.messages.1010017":"Sign in and link","identities.messages.1010018":"Confirm with {provider}","identities.messages.1010019":"Request code to continue","identities.messages.1010021":"Sign in with passkey","identities.messages.1010022":"Sign in with password","identities.messages.1010023":"Send code to {address}","identities.messages.1040001":"Sign up","identities.messages.1040002":"Sign up with {provider}","identities.messages.1040003":"Continue","identities.messages.1040004":"Sign up with security key","identities.messages.1040005":"A code has been sent to the address(es) you provided. If you have not received a message, check the spelling of the address and retry the registration.","identities.messages.1040006":"Send sign up code","identities.messages.1040007":"Sign up with passkey","identities.messages.1040008":"Back","identities.messages.1040009":"Please choose a credential to authenticate yourself with.","identities.messages.1050001":"Your changes have been saved!","identities.messages.1050002":"Link {provider}","identities.messages.1050003":"Unlink {provider}","identities.messages.1050004":"Unlink TOTP Authenticator App","identities.messages.1050005":"Authenticator app QR code","identities.messages.1050006":"{secret}","identities.messages.1050007":"Reveal backup recovery codes","identities.messages.1050008":"Enable","identities.messages.1050009":"{secret}","identities.messages.1050010":"These are your back up recovery codes. Please keep them in a safe place!","identities.messages.1050011":"Confirm backup recovery codes","identities.messages.1050012":"Add security key","identities.messages.1050013":"Name of the security key","identities.messages.1050014":"Secret was used at {used_at, date, long}","identities.messages.1050015":"{secrets_list}","identities.messages.1050016":"Disable this method","identities.messages.1050017":"Authenticator Secret","identities.messages.1050018":'Remove security key "{display_name}"',"identities.messages.1050019":"Add passkey","identities.messages.1050020":'Remove passkey "{display_name}"',"identities.messages.1060001":"You successfully recovered your account. Please change your password or set up an alternative login method (e.g. social sign in) within the next {privileged_session_expires_at_unix_until_minutes} minutes.","identities.messages.1060002":"An email containing a recovery link has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.","identities.messages.1060003":"An email containing a recovery code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.","identities.messages.1070001":"Password","identities.messages.1070002":"{title}","identities.messages.1070003":"Save","identities.messages.1070004":"ID","identities.messages.1070005":"Submit","identities.messages.1070006":"Verify code","identities.messages.1070007":"Email","identities.messages.1070008":"Resend code","identities.messages.1070009":"Continue","identities.messages.1070010":"Recovery code","identities.messages.1070011":"Verification code","identities.messages.1070012":"Registration code","identities.messages.1070013":"Login code","identities.messages.1070014":"Login and link credential","identities.messages.1070015":"Please complete the captcha challenge to continue.","identities.messages.1080001":"An email containing a verification link has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.","identities.messages.1080002":"You successfully verified your email address.","identities.messages.1080003":"An email containing a verification code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.","identities.messages.4000001":"{reason}","identities.messages.4000002":"Property {property} is missing.","identities.messages.4000003":"length must be >= {min_length}, but got {actual_length}","identities.messages.4000004":'does not match pattern "{pattern}"',"identities.messages.4000005":"The password can not be used because {reason}.","identities.messages.4000006":"The provided credentials are invalid, check for spelling mistakes in your password or username, email address, or phone number.","identities.messages.4000007":"An account with the same identifier (email, phone, username, ...) exists already.","identities.messages.4000008":"The provided authentication code is invalid, please try again.","identities.messages.4000009":"Could not find any login identifiers. Did you forget to set them? This could also be caused by a server misconfiguration.","identities.messages.4000010":"Account not active yet. Did you forget to verify your email address?","identities.messages.4000011":"You have no TOTP device set up.","identities.messages.4000012":"This backup recovery code has already been used.","identities.messages.4000013":"You have no WebAuthn device set up.","identities.messages.4000014":"You have no backup recovery codes set up.","identities.messages.4000015":"This account does not exist or has no security key set up.","identities.messages.4000016":"The backup recovery code is not valid.","identities.messages.4000017":"length must be <= {max_length}, but got {actual_length}","identities.messages.4000018":"must be >= {minimum} but found {actual}","identities.messages.4000019":"must be > {minimum} but found {actual}","identities.messages.4000020":"must be <= {maximum} but found {actual}","identities.messages.4000021":"must be < {maximum} but found {actual}","identities.messages.4000022":"{actual} not multipleOf {base}","identities.messages.4000023":"maximum {max_items} items allowed, but found {actual_items} items","identities.messages.4000024":"minimum {min_items} items allowed, but found {actual_items} items","identities.messages.4000025":"items at index {index_a} and {index_b} are equal","identities.messages.4000026":"expected {allowed_types_list}, but got {actual_type}","identities.messages.4000027":"An account with the same identifier (email, phone, username, ...) exists already. Please sign in to your existing account to link your social profile.","identities.messages.4000028":"You tried signing in with {credential_identifier_hint} which is already in use by another account. You can sign in using {available_credential_types_list}. You can sign in using one of the following social sign in providers: {Available_oidc_providers_list}.","identities.messages.4000029":"must be equal to constant {expected}","identities.messages.4000030":"const failed","identities.messages.4000031":"The password can not be used because it is too similar to the identifier.","identities.messages.4000032":"The password must be at least {min_length} characters long, but got {actual_length}.","identities.messages.4000033":"The password must be at most {max_length} characters long, but got {actual_length}.","identities.messages.4000034":"The password has been found in data breaches and must no longer be used.","identities.messages.4000035":"This account does not exist or has not setup sign in with code.","identities.messages.4000036":"The provided traits do not match the traits previously associated with this flow.","identities.messages.4000037":"This account does not exist or has no login method configured.","identities.messages.4000038":"Captcha verification failed, please try again.","identities.messages.4010001":"The login flow expired {expired_at_unix_since_minutes} minutes ago, please try again.","identities.messages.4010002":"Could not find a strategy to log you in with. Did you fill out the form correctly?","identities.messages.4010003":"Could not find a strategy to sign you up with. Did you fill out the form correctly?","identities.messages.4010004":"Could not find a strategy to update your settings. Did you fill out the form correctly?","identities.messages.4010005":"Could not find a strategy to recover your account with. Did you fill out the form correctly?","identities.messages.4010006":"Could not find a strategy to verify your account with. Did you fill out the form correctly?","identities.messages.4010007":"The request was already completed successfully and can not be retried.","identities.messages.4010008":"The login code is invalid or has already been used. Please try again.","identities.messages.4010009":"Linked credentials do not match.","identities.messages.4010010":"The address you entered does not match any known addresses in the current account.","identities.messages.4040001":"The registration flow expired {expired_at_unix_since_minutes} minutes ago, please try again.","identities.messages.4040002":"The request was already completed successfully and can not be retried.","identities.messages.4040003":"The registration code is invalid or has already been used. Please try again.","identities.messages.4050001":"The settings flow expired {expired_at_unix_since_minutes} minutes ago, please try again.","identities.messages.4060001":"The request was already completed successfully and can not be retried.","identities.messages.4060002":"The recovery flow reached a failure state and must be retried.","identities.messages.4060004":"The recovery token is invalid or has already been used. Please retry the flow.","identities.messages.4060005":"The recovery flow expired {expired_at_unix_since_minutes} minutes ago, please try again.","identities.messages.4060006":"The recovery code is invalid or has already been used. Please try again.","identities.messages.4070001":"The verification token is invalid or has already been used. Please retry the flow.","identities.messages.4070002":"The request was already completed successfully and can not be retried.","identities.messages.4070003":"The verification flow reached a failure state and must be retried.","identities.messages.4070005":"The verification flow expired {expired_at_unix_since_minutes} minutes ago, please try again.","identities.messages.4070006":"The verification code is invalid or has already been used. Please try again.","identities.messages.5000001":"{reason}","login.cancel-button":"Cancel","login.cancel-label":"Not the right account?","login.forgot-password":"Forgot password?","login.logged-in-as-label":"You are using:","login.logout-button":"Logout","login.logout-label":"Something's not working?","login.registration-button":"Sign up","login.registration-label":"Don't have an account?","login.subtitle-oauth2":"To authenticate {clientName}","login.title":"Sign in","login.subtitle":"Sign in with {parts}","login.title-aal2":"Two-Factor Authentication","login.title-refresh":"Reauthenticate","login.subtitle-refresh":"Confirm your identity with {parts}","logout.accept-button":"Yes","logout.reject-button":"No","logout.title":"Do you wish to log out?","recovery.login-button":"Sign in","recovery.login-label":"Remember your credentials?","recovery.title":"Recover your account","recovery.subtitle":"Enter the email address associated with your account to receive a one-time access code","registration.login-button":"Sign in","registration.login-label":"Already have an account?","registration.subtitle-oauth2":"To authenticate {clientName}","registration.title":"Register an account","registration.subtitle":"Sign up with {parts}","settings.navigation-back-button":"Back","settings.navigation-backup-codes":"2FA Backup Codes","settings.navigation-logout":"Logout","settings.navigation-oidc":"Social Sign In","settings.navigation-password":"Password","settings.navigation-profile":"Profile","settings.navigation-totp":"Authenticator App","settings.navigation-webauthn":"Hardware Tokens","settings.navigation-passkey":"Passkeys","settings.subtitle-instructions":"Here you can manage settings related to your account. Keep in mind that certain actions require you to re-authenticate.","settings.subtitle":"Update your account settings","settings.title-lookup-secret":"Manage 2FA Backup Recovery Codes","settings.title-navigation":"Account Settings","settings.title-oidc":"Social Sign In","settings.title-password":"Change Password","settings.title-profile":"Profile Settings","settings.title-totp":"Manage 2FA TOTP Authenticator App","settings.title-webauthn":"Manage Hardware Tokens","settings.title-passkey":"Manage Passkeys","settings.title":"Account Settings","settings.navigation.title":"Account Settings","settings.password.title":"Change Password","settings.password.description":"Modify your password","settings.profile.title":"Profile Settings","settings.profile.description":"Update your profile information","settings.webauthn.title":"Manage Hardware Tokens","settings.webauthn.description":"Manage your hardware token settings","verification.registration-button":"Sign up","verification.registration-label":"Don't have an account?","verification.title":"Verify your account","verification.subtitle":"Enter the email address associated with your account to verify it","verification.back-button":"Back","two-step.password.title":"Password","two-step.password.description":"Enter your password associated with your account","two-step.code.title":"Email code","two-step.code.description":"A verification code will be sent to your email","two-step.webauthn.title":"Security Key","two-step.webauthn.description":"Use your security key to authenticate","two-step.passkey.title":"Passkey (recommended)","two-step.passkey.description":"Use your device's for fingerprint or face recognition","identities.messages.1010020":"","input.placeholder":"Enter your {placeholder}","card.header.parts.oidc":"a social provider","card.header.parts.password.registration":"your {identifierLabel} and a password","card.header.parts.password.login":"your {identifierLabel} and password","card.header.parts.code":"a code sent to your email","card.header.parts.passkey":"a Passkey","card.header.parts.webauthn":"a security key","card.header.parts.identifier-first":"your {identifierLabel}","card.header.description.login":"Sign in with {identifierLabel}","card.header.description.registration":"Sign up with {identifierLabel}","misc.or":"or","forms.label.forgot-password":"Forgot Password?","settings.totp.title":"Authenticator App","settings.totp.description":"Add a TOTP Authenticator App to your account to improve your account security. Popular Authenticator Apps are LastPass and Google Authenticator","settings.totp.info.not-linked":"To enable scan the QR code with your authenticator and enter the code.","settings.totp.info.linked":"You currently have an authenticator app connected.","settings.lookup_secret.title":"Backup Recovery Codes (second factor)","settings.lookup_secret.description":"Recovery codes are a secure backup for 2FA, allowing you to regain access to your account if you lose your 2FA device.","settings.oidc.title":"Connected accounts","settings.oidc.description":"Connect a social login provider with your account.","settings.oidc.info":"Connected accounts from these providers can be used to login to your account","settings.webauthn.info":"Hardware Tokens are used for second-factor authentication or as first-factor with Passkeys","settings.passkey.title":"Manage Passkeys","settings.passkey.description":"Manage your passkey settings","settings.passkey.info":"Manage your passkey settings","card.footer.select-another-method":"Select another method","account-linking.title":"Link account"},af={"consent.action-accept":"Zustimmen","consent.action-reject":"Ablehnen","consent.description":"Geben Sie nur Berechtigungen frei, wenn Sie dieser Website oder App vertrauen. Sie müssen nicht alle Berechtigungen akzeptieren.","consent.privacy-policy-label":"Datenschutzrichtlinie","consent.remember-label":"Diese Entscheidung für das nächste Mal merken. Die Anwendung wird keine zusätzlichen Berechtigungen ohne Ihre Zustimmung anfordern können.","consent.remember-tooltip":"meine Entscheidung merken","consent.requested-permissions-label":"Die Anwendung benötigt Zugriff auf folgende Berechtigungen:","consent.terms-of-service-label":"Nutzungsbedingungen","error.back-button":"Zurück","error.description":"Es ist ein Fehler aufgetreten mit folgender Nachricht:","error.support-email-link":"Wenn das Problem bestehen bleibt, kontaktieren Sie bitte <a>{contactSupportEmail}</a>","error.title":"Ein Fehler ist aufgetreten","error.title-internal-server-error":"Interner Serverfehler","error.title-not-found":"404 - Seite nicht gefunden","identities.messages.1010001":"Anmelden","identities.messages.1010002":"Mit {provider} anmelden","identities.messages.1010003":"Bitte bestätigen Sie diese Aktion, indem Sie überprüfen, dass Sie es sind.","identities.messages.1010004":"Bitte schließen Sie die zweite Authentifizierungsprüfung ab.","identities.messages.1010005":"Verifizieren","identities.messages.1010006":"Authentifizierungscode","identities.messages.1010007":"Backup-Wiederherstellungscode","identities.messages.1010008":"Sicherheitsschlüssel verwenden","identities.messages.1010009":"Authentifizierungs-App verwenden","identities.messages.1010010":"Backup-Wiederherstellungscode verwenden","identities.messages.1010011":"Mit Sicherheitsschlüssel fortfahren","identities.messages.1010012":"Bereiten Sie Ihr WebAuthn-Gerät vor (z. B. Sicherheitsschlüssel, biometrischer Scanner, ...) und drücken Sie auf Weiter.","identities.messages.1010013":"Weiter","identities.messages.1010014":"Eine E-Mail mit einem Code wurde an die von Ihnen angegebene E-Mail-Adresse gesendet. Falls Sie keine E-Mail erhalten haben, überprüfen Sie bitte die Schreibweise der Adresse und versuchen Sie erneut, sich anzumelden.","identities.messages.1010015":"Mit Code anmelden","identities.messages.1040001":"Registrieren","identities.messages.1040002":"Mit {provider} registrieren","identities.messages.1040003":"Fortfahren","identities.messages.1040004":"Mit Sicherheitsschlüssel registrieren","identities.messages.1040005":"Eine E-Mail mit einem Code wurde an die von Ihnen angegebene E-Mail-Adresse gesendet. Falls Sie keine E-Mail erhalten haben, überprüfen Sie bitte die Schreibweise der Adresse und versuchen Sie erneut, sich zu registrieren.","identities.messages.1040006":"Mit Code registrieren","identities.messages.1050001":"Ihre Änderungen wurden gespeichert!","identities.messages.1050002":"{provider} verknüpfen","identities.messages.1050003":"{provider} entknüpfen","identities.messages.1050004":"Authentifizierungs-App entknüpfen","identities.messages.1050005":"Authentifizierungs-App QR-Code","identities.messages.1050006":"{secret}","identities.messages.1050007":"Backup-Wiederherstellungscode anzeigen","identities.messages.1050008":"Neue Backup-Wiederherstellungscode generieren","identities.messages.1050009":"{secret}","identities.messages.1050010":"Dies sind Ihre Backup-Wiederherstellungscode. Bewahren Sie sie an einem sicheren Ort auf!","identities.messages.1050011":"Backup-Wiederherstellungscode bestätigen","identities.messages.1050012":"Sicherheitsschlüssel hinzufügen","identities.messages.1050013":"Name des Sicherheitsschlüssels","identities.messages.1050014":"<del>Verwendet</del>","identities.messages.1050015":"{secrets_list}","identities.messages.1050016":"Diese Methode deaktivieren","identities.messages.1050017":"Dies ist Ihr Authentifizierungs-App-Geheimnis. Verwenden Sie es, wenn Sie den QR-Code nicht scannen können.","identities.messages.1050018":'Sicherheitsschlüssel "{display_name}" entfernen',"identities.messages.1060001":"Sie haben Ihr Konto erfolgreich wiederhergestellt. Bitte ändern Sie Ihr Passwort oder richten Sie eine alternative Anmeldemethode ein (z. B. Anmeldung über soziale Medien) innerhalb der nächsten {privileged_session_expires_at_unix_until_minutes} Minuten ein.","identities.messages.1060002":"Eine E-Mail mit einem Wiederherstellungslink wurde an die von Ihnen angegebene E-Mail-Adresse gesendet. Falls Sie keine E-Mail erhalten haben, überprüfen Sie bitte die Schreibweise der Adresse und stellen Sie sicher, dass Sie die Adresse verwendet haben, mit der Sie sich registriert haben.","identities.messages.1060003":"Eine E-Mail mit einem Wiederherstellungscode wurde an die von Ihnen angegebene E-Mail-Adresse gesendet. Falls Sie keine E-Mail erhalten haben, überprüfen Sie bitte die Schreibweise der Adresse und stellen Sie sicher, dass Sie die Adresse verwendet haben, mit der Sie sich registriert haben.","identities.messages.1070001":"Passwort","identities.messages.1070002":"{title}","identities.messages.1070003":"Speichern","identities.messages.1070004":"ID","identities.messages.1070005":"Absenden","identities.messages.1070006":"Verifizierungscode","identities.messages.1070007":"E-Mail","identities.messages.1070008":"Code erneut senden","identities.messages.1070009":"Weiter","identities.messages.1070010":"Wiederherstellungscode","identities.messages.1070011":"Verifikationscode","identities.messages.1070012":"Registrierungscode","identities.messages.1070013":"Anmeldecode","identities.messages.1080001":"Eine E-Mail mit einem Bestätigungslink wurde an die von Ihnen angegebene E-Mail-Adresse gesendet. Falls Sie keine E-Mail erhalten haben, überprüfen Sie bitte die Schreibweise der Adresse und stellen Sie sicher, dass Sie die Adresse verwendet haben, mit der Sie sich registriert haben.","identities.messages.1080002":"Sie haben Ihre E-Mail-Adresse erfolgreich bestätigt.","identities.messages.1080003":"Eine E-Mail mit einem Bestätigungscode wurde an die von Ihnen angegebene E-Mail-Adresse gesendet. Falls Sie keine E-Mail erhalten haben, überprüfen Sie bitte die Schreibweise der Adresse und stellen Sie sicher, dass Sie die Adresse verwendet haben, mit der Sie sich registriert haben.","identities.messages.4000001":"{reason}","identities.messages.4000002":"Das Feld {property} muss ausgefüllt werden.","identities.messages.4000003":"Die Länge muss >= {min_length} sein, wurde jedoch {actual_length} erhalten.","identities.messages.4000004":'entspricht nicht dem Muster "{pattern}"',"identities.messages.4000005":"Das Passwort kann nicht verwendet werden, weil {reason}.","identities.messages.4000006":"Die bereitgestellten Anmeldedaten sind ungültig. Überprüfen Sie auf Rechtschreibfehler in Ihrem Passwort, Benutzernamen, E-Mail-Adresse oder Telefonnummer.","identities.messages.4000007":"Ein Konto mit demselben Identifikator (E-Mail, Telefon, Benutzername, ...) existiert bereits.","identities.messages.4000008":"Der bereitgestellte Authentifizierungscode ist ungültig. Bitte versuchen Sie es erneut.","identities.messages.4000009":"Es konnten keine Anmeldeidentifikatoren gefunden werden. Haben Sie vergessen, diese festzulegen? Dies könnte auch durch eine Serverfehlkonfiguration verursacht werden.","identities.messages.4000010":"Konto ist noch nicht aktiv. Haben Sie vergessen, Ihre E-Mail-Adresse zu bestätigen?","identities.messages.4000011":"Sie haben kein TOTP-Gerät eingerichtet.","identities.messages.4000012":"Dieser Backup-Wiederherstellungscode wurde bereits verwendet.","identities.messages.4000013":"Sie haben kein WebAuthn-Gerät eingerichtet.","identities.messages.4000014":"Sie haben keine Backup-Wiederherstellungscode eingerichtet.","identities.messages.4000015":"Dieses Konto existiert nicht oder hat keinen Sicherheitsschlüssel eingerichtet.","identities.messages.4000016":"Der Backup-Wiederherstellungscode ist ungültig.","identities.messages.4000017":"Die Länge muss <= {max_length} sein, wurde jedoch {actual_length} erhalten.","identities.messages.4000018":"muss >= {minimum} sein, wurde jedoch {actual} gefunden.","identities.messages.4000019":"muss > {minimum} sein, wurde jedoch {actual} gefunden.","identities.messages.4000020":"muss <= {maximum} sein, wurde jedoch {actual} gefunden.","identities.messages.4000021":"muss < {maximum} sein, wurde jedoch {actual} gefunden.","identities.messages.4000022":"{actual} ist nicht ein Vielfaches von {base}","identities.messages.4000023":"maximal {max_items} Elemente erlaubt, wurden jedoch {actual_items} Elemente gefunden.","identities.messages.4000024":"mindestens {min_items} Elemente erforderlich, wurden jedoch {actual_items} Elemente gefunden.","identities.messages.4000025":"Elemente an Index {index_a} und {index_b} sind gleich.","identities.messages.4000026":"erwartete {allowed_types_list}, wurden jedoch {actual_type} gefunden.","identities.messages.4000027":"Ein Konto mit demselben Identifikator (E-Mail, Telefon, Benutzername, ...) existiert bereits. Bitte melden Sie sich in Ihrem bestehenden Konto an und verknüpfen Sie Ihr soziales Profil auf der Einstellungsseite.","identities.messages.4000028":"Sie haben versucht, sich mit {credential_identifier_hint} anzumelden, das bereits von einem anderen Konto verwendet wird. Sie können sich mit {available_credential_types_list} anmelden. Sie können sich mit einem der folgenden sozialen Anmeldeanbieter anmelden: {Available_oidc_providers_list}.","identities.messages.4000029":"muss gleich der Konstanten {expected} sein.","identities.messages.4000030":"const fehlgeschlagen","identities.messages.4000031":"Das Passwort kann nicht verwendet werden, da es zu ähnlich dem Identifikator ist.","identities.messages.4000032":"Das Passwort muss mindestens {min_length} Zeichen lang sein, wurde jedoch {actual_length} erhalten.","identities.messages.4000033":"Das Passwort muss höchstens {max_length} Zeichen lang sein, wurde jedoch {actual_length} erhalten.","identities.messages.4000034":"Das Passwort wurde in Datenlecks gefunden und darf nicht mehr verwendet werden.","identities.messages.4000035":"Dieses Konto existiert nicht oder hat keine Anmeldung per Code eingerichtet.","identities.messages.4000036":"Die bereitgestellten Merkmale stimmen nicht mit den zuvor mit diesem Flow assoziierten Merkmalen überein.","identities.messages.4010001":"Der Anmeldevorgang ist vor {expired_at_unix_since_minutes} Minuten abgelaufen. Bitte versuchen Sie es erneut.","identities.messages.4010002":"Es konnte keine Strategie gefunden werden, um Sie anzumelden. Haben Sie das Formular korrekt ausgefüllt?","identities.messages.4010003":"Es konnte keine Strategie gefunden werden, um Sie zu registrieren. Haben Sie das Formular korrekt ausgefüllt?","identities.messages.4010004":"Es konnte keine Strategie gefunden werden, um Ihre Einstellungen zu aktualisieren. Haben Sie das Formular korrekt ausgefüllt?","identities.messages.4010005":"Es konnte keine Strategie gefunden werden, um Ihr Konto wiederherzustellen. Haben Sie das Formular korrekt ausgefüllt?","identities.messages.4010006":"Es konnte keine Strategie gefunden werden, um Ihr Konto zu verifizieren. Haben Sie das Formular korrekt ausgefüllt?","identities.messages.4010007":"Die Anfrage wurde bereits erfolgreich abgeschlossen und kann nicht erneut versucht werden.","identities.messages.4010008":"Der Anmeldecode ist ungültig oder wurde bereits verwendet. Bitte versuchen Sie es erneut.","identities.messages.4040001":"Der Registrierungsvorgang ist vor {expired_at_unix_since_minutes} Minuten abgelaufen. Bitte versuchen Sie es erneut.","identities.messages.4040002":"Die Anfrage wurde bereits erfolgreich abgeschlossen und kann nicht erneut versucht werden.","identities.messages.4040003":"Der Registrierungscode ist ungültig oder wurde bereits verwendet. Bitte versuchen Sie es erneut.","identities.messages.4050001":"Der Einstellungsvorgang ist vor {expired_at_unix_since_minutes} Minuten abgelaufen. Bitte versuchen Sie es erneut.","identities.messages.4060001":"Die Anfrage wurde bereits erfolgreich abgeschlossen und kann nicht erneut versucht werden.","identities.messages.4060002":"Der Wiederherstellungsvorgang erreichte einen Fehlerzustand und muss erneut versucht werden.","identities.messages.4060004":"Der Wiederherstellungstoken ist ungültig oder wurde bereits verwendet. Bitte wiederholen Sie den Vorgang.","identities.messages.4060005":"Der Wiederherstellungsvorgang ist vor {expired_at_unix_since_minutes} Minuten abgelaufen. Bitte versuchen Sie es erneut.","identities.messages.4060006":"Der Wiederherstellungscode ist ungültig oder wurde bereits verwendet. Bitte versuchen Sie es erneut.","identities.messages.4070001":"Der Verifizierungstoken ist ungültig oder wurde bereits verwendet. Bitte wiederholen Sie den Vorgang.","identities.messages.4070002":"Die Anfrage wurde bereits erfolgreich abgeschlossen und kann nicht erneut versucht werden.","identities.messages.4070003":"Der Verifizierungsvorgang erreichte einen Fehlerzustand und muss erneut versucht werden.","identities.messages.4070005":"Der Verifizierungsvorgang ist vor {expired_at_unix_since_minutes} Minuten abgelaufen. Bitte versuchen Sie es erneut.","identities.messages.4070006":"Der Verifizierungscode ist ungültig oder wurde bereits verwendet. Bitte versuchen Sie es erneut.","identities.messages.5000001":"{reason}","login.forgot-password":"Passwort vergessen?","login.logged-in-as-label":"Sie sind angemeldet als:","login.logout-button":"Abmelden","login.logout-label":"Etwas funktioniert nicht?","login.registration-button":"Registrieren","login.registration-label":"Sie haben noch kein Konto?","login.subtitle-oauth2":"Zur Authentifizierung bei {clientName}","login.title":"Anmelden","login.title-aal2":"Zwei-Faktor-Authentifizierung","login.title-refresh":"Bestätigen Sie, dass Sie es sind","logout.accept-button":"Ja","logout.reject-button":"Nein","logout.title":"Möchten Sie sich abmelden?","recovery.login-button":"Anmelden","recovery.login-label":"Erinnern Sie sich an Ihre Anmeldedaten?","recovery.title":"Ihr Konto wiederherstellen","registration.login-button":"Anmelden","registration.login-label":"Sie haben bereits ein Konto?","registration.subtitle-oauth2":"Zur Authentifizierung bei {clientName}","registration.title":"Konto registrieren","verification.registration-button":"Registrieren","verification.registration-label":"Sie haben noch kein Konto?","verification.title":"Verifizieren Sie ihr Konto","verification.back-button":"Zurück","two-step.code.description":"Ein Bestätigungscode wird an Ihre E-Mail gesendet.","two-step.code.title":"E-Mail-Code","two-step.passkey.description":"Verwenden Sie die Fingerabdruck- oder Gesichtserkennung Ihres Geräts","two-step.passkey.title":"Passwort (empfohlen)","two-step.password.description":"Geben Sie Ihr Passwort ein, das mit Ihrem Konto verknüpft ist","two-step.password.title":"Passwort","two-step.webauthn.description":"Verwenden Sie Ihren Sicherheitsschlüssel zur Authentifizierung","two-step.webauthn.title":"Sicherheitsschlüssel","identities.messages.1070014":"Login- und Link-Zugangsdaten","identities.messages.1070015":"Bitte schließen Sie die Captcha-Challenge ab, um fortzufahren.","identities.messages.4000038":"Die Captcha-Überprüfung ist fehlgeschlagen. Bitte versuchen Sie es erneut.","login.cancel-button":"Abbrechen","login.cancel-label":"Nicht das richtige Konto?","identities.messages.1010023":"Code an {address} senden","identities.messages.1010016":`Sie haben versucht, sich mit „{duplicateIdentifier}“ anzumelden, aber diese E-Mail-Adresse wird bereits von einem anderen Konto verwendet.
869
- Melden Sie sich mit einer der folgenden Optionen bei Ihrem Konto an, um Ihr Konto „{duplicateIdentifier}“ bei „{provider}“ als weitere Anmeldemöglichkeit hinzuzufügen.`,"identities.messages.1010017":"","identities.messages.1010018":"","identities.messages.1010019":"","identities.messages.1010020":"","identities.messages.1010021":"","identities.messages.1010022":"","identities.messages.1040007":"","identities.messages.1040008":"","identities.messages.1040009":"","identities.messages.1050019":"Passkey hinzufügen","identities.messages.1050020":"","identities.messages.4000037":"","identities.messages.4010009":"","identities.messages.4010010":"","input.placeholder":"{placeholder} eingeben","card.header.parts.code":"einem Code per E-Mail","card.header.parts.identifier-first":"Ihr {identifierLabel}","card.header.parts.oidc":"ein sozialer Anbieter","card.header.parts.passkey":"ein Passkey","card.header.parts.password.login":"Ihrer {identifierLabel} und Ihrem Passwort","card.header.parts.password.registration":"Ihrer {identifierLabel} und einem Passwort","card.header.parts.webauthn":"ein Sicherheitsschlüssel","recovery.subtitle":"Geben Sie die mit Ihrem Konto verknüpfte E-Mail-Adresse ein, um einen einmaligen Zugangscode zu erhalten","verification.subtitle":"Geben Sie die mit Ihrem Konto verknüpfte E-Mail-Adresse ein, um es zu bestätigen","card.header.description.login":"Melden Sie sich mit {identifierLabel} an","card.header.description.registration":"Registrieren Sie sich mit {identifierLabel}","login.subtitle":"Melden Sie sich mit {parts} an","login.subtitle-refresh":"Bestätigen Sie ihre Identität mit {parts}","misc.or":"oder","registration.subtitle":"Registrieren Sie sich mit {parts}","forms.label.forgot-password":"Passwort vergessen?","settings.title":"Kontoeinstellungen","settings.navigation.title":"Kontoeinstellungen","settings.subtitle":"Aktualisieren Sie Ihre Kontoeinstellungen","settings.navigation-back-button":"Zurück","settings.navigation-backup-codes":"2FA-Backup-Codes","settings.navigation-logout":"Abmelden","settings.navigation-oidc":"Soziale Medien","settings.navigation-password":"Passwort","settings.navigation-profile":"Profil","settings.navigation-totp":"Zwei-Faktor App","settings.navigation-webauthn":"Sicherheitsschlüssel","settings.navigation-passkey":"Passkeys","settings.subtitle-instructions":"Hier können Sie Einstellungen zu Ihrem Konto vornehmen. Für manche Einstellungen müssen Sie Ihre Identität erneut bestätigen.","settings.totp.info.linked":"Sie haben derzeit eine Authenticator-App verbunden.","settings.totp.info.not-linked":"Um dies zu ermöglichen, scannen Sie den QR-Code mit Ihrem Authenticator und geben Sie den Code ein.","settings.totp.title":"Authenticator App","settings.totp.description":"Fügen Sie eine TOTP Authenticator App zu Ihrem Konto hinzu, um die Sicherheit Ihres Kontos zu verbessern. Beliebte Authenticator Apps sind LastPass und Google Authenticator.","settings.lookup_secret.description":"Verwalten Sie Ihre 2FA-Backup-Wiederherstellungscodes","settings.lookup_secret.title":"Wiederherstellungscodes","settings.oidc.description":"Verwalten Sie Ihre Einstellungen für die soziale Anmeldung","settings.oidc.title":"Soziales Anmelden","settings.passkey.description":"Verwalten Sie Ihre Passworteinstellungen","settings.passkey.title":"Passkeys verwalten","settings.password.description":"Ändern Sie Ihr Passwort","settings.password.title":"Passwort ändern","settings.profile.description":"Aktualisieren Sie Ihre Profilinformationen","settings.profile.title":"Profileinstellungen","settings.webauthn.description":"Verwalten Sie Ihre Hardware-Token-Einstellungen","settings.webauthn.title":"Hardware-Token verwalten","settings.oidc.info":"Verbundene Konten dieser Anbieter können für die Anmeldung bei Ihrem Konto verwendet werden","settings.passkey.info":"Verwalten Sie Ihre Passkey-Einstellungen","settings.title-lookup-secret":"Verwalten Sie 2FA-Backup-Wiederherstellungscodes","settings.title-navigation":"Kontoeinstellungen","settings.title-oidc":"Social Sign In","settings.title-passkey":"Passkeys verwalten","settings.title-password":"Kennwort ändern","settings.title-profile":"Profileinstellungen","settings.title-totp":"Verwalten Sie die 2FA TOTP Authenticator-App","settings.title-webauthn":"Hardware-Token verwalten","settings.webauthn.info":"Hardware-Tokens werden für die Zweitfaktor-Authentifizierung oder als Erstfaktor-Authentifizierung mit Passkeys verwendet","card.footer.select-another-method":"Eine andere Methode verwenden","account-linking.title":"Account Verbinden"},df={"consent.action-accept":"Permitir","consent.action-reject":"Rechazar","consent.description":"Solo otorgue permisos si confía en este sitio o aplicación. No es necesario aceptar todos los permisos.","consent.privacy-policy-label":"Política de Privacidad","consent.remember-label":"Recuerde esta decisión para la próxima vez. La aplicación no podrá solicitar permisos adicionales sin su consentimiento.","consent.remember-tooltip":"recordar mi decisión","consent.requested-permissions-label":"La aplicación solicita acceso a los siguientes permisos:","consent.terms-of-service-label":"Términos de Servicio","error.back-button":"Regresar","error.description":"Ocurrió un error con el siguiente mensaje:","error.support-email-link":"Si el problema persiste, por favor contacte a <a>{contactSupportEmail}</a>","error.title":"Ocurrió un error","error.title-internal-server-error":"Error Interno del Servidor","error.title-not-found":"404 - Página no encontrada","identities.messages.1010001":"Iniciar sesión","identities.messages.1010002":"Iniciar sesión con {provider}","identities.messages.1010003":"Por favor confirme esta acción verificando que es usted.","identities.messages.1010004":"Por favor complete el segundo desafío de autenticación.","identities.messages.1010005":"Verificar","identities.messages.1010006":"Código de autenticación","identities.messages.1010007":"Código de recuperación de respaldo","identities.messages.1010008":"Usar llave de seguridad","identities.messages.1010009":"Usar Autenticador","identities.messages.1010010":"Usar código de recuperación de respaldo","identities.messages.1010011":"Continuar con llave de seguridad","identities.messages.1010012":"Prepare su dispositivo WebAuthn (por ejemplo, llave de seguridad, escáner biométrico, ...) y presione continuar.","identities.messages.1010013":"Continuar","identities.messages.1010014":"Se ha enviado un correo electrónico con un código a la dirección de correo electrónico que proporcionó. Si no ha recibido un correo electrónico, verifique la ortografía de la dirección e intente iniciar sesión nuevamente.","identities.messages.1010015":"Iniciar sesión con código","identities.messages.1040001":"Registrarse","identities.messages.1040002":"Registrarse con {provider}","identities.messages.1040003":"Continuar","identities.messages.1040004":"Registrarse con llave de seguridad","identities.messages.1040005":"Se ha enviado un correo electrónico con un código a la dirección de correo electrónico que proporcionó. Si no ha recibido un correo electrónico, verifique la ortografía de la dirección e intente registrarse nuevamente.","identities.messages.1040006":"Registrarse con código","identities.messages.1050001":"¡Sus cambios han sido guardados!","identities.messages.1050002":"Vincular {provider}","identities.messages.1050003":"Desvincular {provider}","identities.messages.1050004":"Desvincular App Autenticadora TOTP","identities.messages.1050005":"Código QR de la app autenticadora","identities.messages.1050006":"{secret}","identities.messages.1050007":"Mostrar códigos de recuperación de respaldo","identities.messages.1050008":"Generar nuevos códigos de recuperación de respaldo","identities.messages.1050009":"{secret}","identities.messages.1050010":"Estos son sus códigos de recuperación de respaldo. ¡Por favor guárdelos en un lugar seguro!","identities.messages.1050011":"Confirmar códigos de recuperación de respaldo","identities.messages.1050012":"Agregar llave de seguridad","identities.messages.1050013":"Nombre de la llave de seguridad","identities.messages.1050014":"<del>Usado</del>","identities.messages.1050015":"{secrets_list}","identities.messages.1050016":"Deshabilitar este método","identities.messages.1050017":"Este es el secreto de su app autenticadora. Úselo si no puede escanear el código QR.","identities.messages.1050018":'Eliminar llave de seguridad "{display_name}"',"identities.messages.1060001":"Ha recuperado exitosamente su cuenta. Por favor cambie su contraseña o configure un método de inicio de sesión alternativo (por ejemplo, inicio de sesión social) en los próximos {privileged_session_expires_at_unix_until_minutes} minutos.","identities.messages.1060002":"Se ha enviado un correo electrónico con un enlace de recuperación a la dirección de correo electrónico que proporcionó. Si no ha recibido un correo electrónico, verifique la ortografía de la dirección y asegúrese de usar la dirección con la que se registró.","identities.messages.1060003":"Se ha enviado un correo electrónico con un código de recuperación a la dirección de correo electrónico que proporcionó. Si no ha recibido un correo electrónico, verifique la ortografía de la dirección y asegúrese de usar la dirección con la que se registró.","identities.messages.1070001":"Contraseña","identities.messages.1070002":"{title}","identities.messages.1070003":"Guardar","identities.messages.1070004":"ID","identities.messages.1070005":"Enviar","identities.messages.1070006":"Verificar código","identities.messages.1070007":"Correo electrónico","identities.messages.1070008":"Reenviar código","identities.messages.1070009":"Continuar","identities.messages.1070010":"Código de recuperación","identities.messages.1070011":"Código de verificación","identities.messages.1070012":"Código de registro","identities.messages.1070013":"Código de inicio de sesión","identities.messages.1080001":"Se ha enviado un correo electrónico con un enlace de verificación a la dirección que proporcionó. Si no ha recibido un correo electrónico, verifique la ortografía de la dirección y asegúrese de usar la dirección con la que se registró.","identities.messages.1080002":"Ha verificado exitosamente su dirección de correo electrónico.","identities.messages.1080003":"Se ha enviado un correo electrónico con un código de verificación a la dirección que proporcionó. Si no ha recibido un correo electrónico, verifique la ortografía de la dirección y asegúrese de usar la dirección con la que se registró.","identities.messages.4000001":"{reason}","identities.messages.4000002":"Falta la propiedad {property}.","identities.messages.4000003":"la longitud debe ser >= {min_length}, pero es {actual_length}","identities.messages.4000004":'no coincide con el patrón "{pattern}"',"identities.messages.4000005":"La contraseña no puede ser utilizada porque {reason}.","identities.messages.4000006":"Las credenciales proporcionadas son inválidas, verifique si hay errores en su contraseña o nombre de usuario, dirección de correo electrónico o número de teléfono.","identities.messages.4000007":"Ya existe una cuenta con el mismo identificador (correo, teléfono, nombre de usuario, ...).","identities.messages.4000008":"El código de autenticación proporcionado es inválido, por favor intente nuevamente.","identities.messages.4000009":"No se encontraron identificadores de inicio de sesión. ¿Olvidó establecerlos? Esto también podría ser causado por una mala configuración del servidor.","identities.messages.4000010":"La cuenta aún no está activa. ¿Olvidó verificar su dirección de correo electrónico?","identities.messages.4000011":"No tiene configurado ningún dispositivo TOTP.","identities.messages.4000012":"Este código de recuperación de respaldo ya ha sido utilizado.","identities.messages.4000013":"No tiene configurado ningún dispositivo WebAuthn.","identities.messages.4000014":"No ha configurado ningún código de recuperación de respaldo.","identities.messages.4000015":"Esta cuenta no existe o no tiene configurada una llave de seguridad.","identities.messages.4000016":"El código de recuperación de respaldo no es válido.","identities.messages.4000017":"la longitud debe ser <= {max_length}, pero es {actual_length}","identities.messages.4000018":"debe ser >= {minimum} pero es {actual}","identities.messages.4000019":"debe ser > {minimum} pero es {actual}","identities.messages.4000020":"debe ser <= {maximum} pero es {actual}","identities.messages.4000021":"debe ser < {maximum} pero es {actual}","identities.messages.4000022":"{actual} no es múltiplo de {base}","identities.messages.4000023":"máximo {max_items} ítems permitidos, pero se encontraron {actual_items} ítems","identities.messages.4000024":"mínimo {min_items} ítems permitidos, pero se encontraron {actual_items} ítems","identities.messages.4000025":"los ítems en los índices {index_a} y {index_b} son iguales","identities.messages.4000026":"se esperaba {allowed_types_list}, pero se obtuvo {actual_type}","identities.messages.4000027":"Ya existe una cuenta con el mismo identificador (correo, teléfono, nombre de usuario, ...). Por favor, inicie sesión en su cuenta existente y vincule su perfil social en la página de configuración.","identities.messages.4000028":"Intentó iniciar sesión con {credential_identifier_hint} que ya está en uso por otra cuenta. Puede iniciar sesión usando {available_credential_types_list}. Puede iniciar sesión usando uno de los siguientes proveedores de inicio de sesión social: {Available_oidc_providers_list}.","identities.messages.4000029":"debe ser igual a la constante {expected}","identities.messages.4000030":"constante fallida","identities.messages.4000031":"La contraseña no puede ser utilizada porque es muy similar al identificador.","identities.messages.4000032":"La contraseña debe tener al menos {min_length} caracteres de longitud, pero tiene {actual_length}.","identities.messages.4000033":"La contraseña debe tener como máximo {max_length} caracteres de longitud, pero tiene {actual_length}.","identities.messages.4000034":"La contraseña ha sido encontrada en brechas de datos y ya no debe ser utilizada.","identities.messages.4000035":"Esta cuenta no existe o no tiene configurado el inicio de sesión con código.","identities.messages.4000036":"Las características proporcionadas no coinciden con las características previamente asociadas con este flujo.","identities.messages.4010001":"El flujo de inicio de sesión expiró hace {expired_at_unix_since_minutes} minutos, por favor intente nuevamente.","identities.messages.4010002":"No se pudo encontrar una estrategia para iniciar sesión. ¿Llenó correctamente el formulario?","identities.messages.4010003":"No se pudo encontrar una estrategia para registrarse. ¿Llenó correctamente el formulario?","identities.messages.4010004":"No se pudo encontrar una estrategia para actualizar sus configuraciones. ¿Llenó correctamente el formulario?","identities.messages.4010005":"No se pudo encontrar una estrategia para recuperar su cuenta. ¿Llenó correctamente el formulario?","identities.messages.4010006":"No se pudo encontrar una estrategia para verificar su cuenta. ¿Llenó correctamente el formulario?","identities.messages.4010007":"La solicitud ya fue completada exitosamente y no puede ser reintentada.","identities.messages.4010008":"El código de inicio de sesión es inválido o ya ha sido utilizado. Por favor, intente nuevamente.","identities.messages.4040001":"El flujo de registro expiró hace {expired_at_unix_since_minutes} minutos, por favor intente nuevamente.","identities.messages.4040002":"La solicitud ya fue completada exitosamente y no puede ser reintentada.","identities.messages.4040003":"El código de registro es inválido o ya ha sido utilizado. Por favor, intente nuevamente.","identities.messages.4050001":"El flujo de configuración expiró hace {expired_at_unix_since_minutes} minutos, por favor intente nuevamente.","identities.messages.4060001":"La solicitud ya fue completada exitosamente y no puede ser reintentada.","identities.messages.4060002":"El flujo de recuperación alcanzó un estado de fallo y debe ser reintentado.","identities.messages.4060004":"El token de recuperación es inválido o ya ha sido utilizado. Por favor, reinicie el flujo.","identities.messages.4060005":"El flujo de recuperación expiró hace {expired_at_unix_since_minutes} minutos, por favor intente nuevamente.","identities.messages.4060006":"El código de recuperación es inválido o ya ha sido utilizado. Por favor, intente nuevamente.","identities.messages.4070001":"El token de verificación es inválido o ya ha sido utilizado. Por favor, reinicie el flujo.","identities.messages.4070002":"La solicitud ya fue completada exitosamente y no puede ser reintentada.","identities.messages.4070003":"El flujo de verificación alcanzó un estado de fallo y debe ser reintentado.","identities.messages.4070005":"El flujo de verificación expiró hace {expired_at_unix_since_minutes} minutos, por favor intente nuevamente.","identities.messages.4070006":"El código de verificación es inválido o ya ha sido utilizado. Por favor, intente nuevamente.","identities.messages.5000001":"{reason}","login.forgot-password":"¿Olvidó su contraseña?","login.logged-in-as-label":"Ha iniciado sesión como:","login.logout-button":"Cerrar sesión","login.logout-label":"¿Algo no funciona correctamente?","login.registration-button":"Registrarse","login.registration-label":"¿No tiene una cuenta?","login.subtitle-oauth2":"Para autenticar a {clientName}","login.title":"Iniciar sesión","login.title-aal2":"Autenticación de Dos Factores","login.title-refresh":"Confirme que es usted","logout.accept-button":"Sí","logout.reject-button":"No","logout.title":"¿Desea cerrar sesión?","recovery.login-button":"Iniciar sesión","recovery.login-label":"¿Recuerda sus credenciales?","recovery.title":"Recuperar su cuenta","registration.login-button":"Iniciar sesión","registration.login-label":"¿Ya tiene una cuenta?","registration.subtitle-oauth2":"Para autenticar a {clientName}","registration.title":"Registrar una cuenta","settings.navigation-back-button":"Regresar","settings.navigation-backup-codes":"Códigos de Respaldo de 2FA","settings.navigation-logout":"Cerrar sesión","settings.navigation-oidc":"Inicio de Sesión Social","settings.navigation-password":"Contraseña","settings.navigation-profile":"Perfil","settings.navigation-totp":"Aplicación Autenticadora","settings.navigation-webauthn":"Tokens de Hardware","settings.navigation-passkey":"Passkeys","settings.subtitle-instructions":"Aquí puede gestionar las configuraciones relacionadas con su cuenta. Tenga en cuenta que ciertas acciones requieren que vuelva a autenticarse.","settings.title":"Configuraciones de la Cuenta","verification.registration-button":"Registrarse","verification.registration-label":"¿No tiene una cuenta?","verification.title":"Verificar su cuenta","verification.back-button":"Regresar","two-step.code.description":"Se enviará un código de verificación a tu correo electrónico.","two-step.code.title":"Código de correo electrónico","two-step.passkey.description":"Utiliza el reconocimiento de huellas dactilares o facial de tu dispositivo.","two-step.passkey.title":"Clave de acceso (recomendada)","two-step.password.description":"Ingrese la contraseña asociada con su cuenta","two-step.password.title":"Contraseña","two-step.webauthn.description":"Utiliza tu llave de seguridad para autenticarte","two-step.webauthn.title":"Clave de Seguridad","identities.messages.1010016":"","identities.messages.1010017":"","identities.messages.1010018":"","identities.messages.1010019":"","identities.messages.1010020":"","identities.messages.1010021":"","identities.messages.1010022":"","identities.messages.1010023":"","identities.messages.1040007":"","identities.messages.1040008":"","identities.messages.1040009":"","identities.messages.1050019":"","identities.messages.1050020":"","identities.messages.1070014":"","identities.messages.1070015":"","identities.messages.4000037":"","identities.messages.4000038":"","identities.messages.4010009":"","identities.messages.4010010":"","login.cancel-button":"","login.cancel-label":"","input.placeholder":"","card.header.description.login":"","card.header.description.registration":"","card.header.parts.code":"","card.header.parts.identifier-first":"","card.header.parts.oidc":"","card.header.parts.passkey":"","card.header.parts.password.login":"","card.header.parts.password.registration":"","card.header.parts.webauthn":"","forms.label.forgot-password":"","login.subtitle":"","login.subtitle-refresh":"","misc.or":"","recovery.subtitle":"","registration.subtitle":"","settings.subtitle":"","verification.subtitle":"","settings.totp.info.linked":"Actualmente tienes una aplicación de autenticación conectada.","settings.totp.info.not-linked":"Para habilitar, escanea el código QR con tu autenticador e ingresa el código.","settings.totp.title":"Aplicación Autenticadora","settings.totp.description":"Agrega una aplicación de autenticación TOTP a tu cuenta para mejorar la seguridad de tu cuenta. Las aplicaciones de autenticación populares son LastPass y Google Authenticator.","settings.lookup_secret.description":"Gestiona tus códigos de recuperación de respaldo 2FA","settings.lookup_secret.title":"Códigos de Recuperación","settings.navigation.title":"Configuración de la Cuenta","settings.oidc.description":"Administra la configuración de tu inicio de sesión social","settings.oidc.title":"Inicio de Sesión Social","settings.passkey.description":"Administra la configuración de tu clave de acceso","settings.passkey.title":"Gestionar Claves de Acceso","settings.password.description":"Modifica tu contraseña","settings.password.title":"Cambiar Contraseña","settings.profile.description":"Actualiza la información de tu perfil","settings.profile.title":"Configuración de Perfil","settings.webauthn.description":"Administra la configuración de tu token de hardware","settings.webauthn.title":"Gestionar Tokens de Hardware","settings.oidc.info":"","settings.passkey.info":"","settings.title-lookup-secret":"","settings.title-navigation":"","settings.title-oidc":"","settings.title-passkey":"","settings.title-password":"","settings.title-profile":"","settings.title-totp":"","settings.title-webauthn":"","settings.webauthn.info":"","card.footer.select-another-method":"","account-linking.title":""},uf={"consent.action-accept":"Autoriser","consent.action-reject":"Refuser","consent.description":"N'accordez des permissions que si vous faites confiance à ce site ou à cette application. Vous n'avez pas besoin d'accepter toutes les permissions.","consent.privacy-policy-label":"Politique de confidentialité","consent.remember-label":"Mémoriser cette décision pour la prochaine fois. L'application ne pourra pas demander des permissions supplémentaires sans votre consentement.","consent.remember-tooltip":"mémoriser ma décision","consent.requested-permissions-label":"L'application demande l'accès aux permissions suivantes :","consent.terms-of-service-label":"Conditions d'utilisation","error.back-button":"Revenir en arrière","error.description":"Une erreur est survenue avec le message suivant :","error.support-email-link":"Si le problème persiste, veuillez contacter <a>{contactSupportEmail}</a>","error.title":"Une erreur est survenue","error.title-internal-server-error":"Erreur interne du serveur","error.title-not-found":"404 - Page non trouvée","identities.messages.1010001":"Se connecter","identities.messages.1010002":"Se connecter avec {provider}","identities.messages.1010003":"Veuillez confirmer cette action en vérifiant que c'est bien vous.","identities.messages.1010004":"Veuillez terminer le deuxième défi d'authentification.","identities.messages.1010005":"Vérifier","identities.messages.1010006":"Code d'authentification","identities.messages.1010007":"Code de récupération de secours","identities.messages.1010008":"Utiliser une clé de sécurité","identities.messages.1010009":"Utiliser un authentificateur","identities.messages.1010010":"Utiliser un code de récupération de secours","identities.messages.1010011":"Continuer avec la clé de sécurité","identities.messages.1010012":"Préparez votre appareil WebAuthn (par exemple, une clé de sécurité, un scanner biométrique, ...) et appuyez sur Continuer.","identities.messages.1010013":"Continuer","identities.messages.1010014":"Un e-mail contenant un code a été envoyé à l'adresse e-mail que vous avez fournie. Si vous n'avez pas reçu d'e-mail, vérifiez l'orthographe de l'adresse et réessayez la connexion.","identities.messages.1010015":"Se connecter avec un code","identities.messages.1040001":"S'inscrire","identities.messages.1040002":"S'inscrire avec {provider}","identities.messages.1040003":"Continuer","identities.messages.1040004":"S'inscrire avec une clé de sécurité","identities.messages.1040005":"Un e-mail contenant un code a été envoyé à l'adresse e-mail que vous avez fournie. Si vous n'avez pas reçu d'e-mail, vérifiez l'orthographe de l'adresse et réessayez l'inscription.","identities.messages.1040006":"S'inscrire avec un code","identities.messages.1050001":"Vos modifications ont été enregistrées avec succès !","identities.messages.1050002":"Lier {provider}","identities.messages.1050003":"Délier {provider}","identities.messages.1050004":"Délier l'application d'authentification TOTP","identities.messages.1050005":"Code QR de l'application d'authentification","identities.messages.1050006":"{secret}","identities.messages.1050007":"Afficher les codes de récupération de secours","identities.messages.1050008":"Générer de nouveaux codes de récupération de secours","identities.messages.1050009":"{secret}","identities.messages.1050010":"Ce sont vos codes de récupération de secours. Veuillez les conserver dans un endroit sûr !","identities.messages.1050011":"Confirmer les codes de récupération de secours","identities.messages.1050012":"Ajouter une clé de sécurité","identities.messages.1050013":"Nom de la clé de sécurité","identities.messages.1050014":"<del>Utilisé</del>","identities.messages.1050015":"{secrets_list}","identities.messages.1050016":"Désactiver cette méthode","identities.messages.1050017":"Il s'agit de votre code secret de l'application d'authentification. Utilisez-le si vous ne pouvez pas scanner le code QR.","identities.messages.1050018":'Supprimer la clé de sécurité "{display_name}"',"identities.messages.1060001":"Vous avez réussi à récupérer votre compte. Veuillez changer votre mot de passe ou configurer une méthode de connexion alternative (par exemple, une connexion sociale) dans les prochaines {privileged_session_expires_at_unix_until_minutes} minutes.","identities.messages.1060002":"Un e-mail contenant un lien de récupération a été envoyé à l'adresse e-mail que vous avez fournie. Si vous n'avez pas reçu d'e-mail, vérifiez l'orthographe de l'adresse et assurez-vous d'utiliser l'adresse avec laquelle vous vous êtes enregistré.","identities.messages.1060003":"Un e-mail contenant un code de récupération a été envoyé à l'adresse e-mail que vous avez fournie. Si vous n'avez pas reçu d'e-mail, vérifiez l'orthographe de l'adresse et assurez-vous d'utiliser l'adresse avec laquelle vous vous êtes enregistré.","identities.messages.1070001":"Mot de passe","identities.messages.1070002":"{title}","identities.messages.1070003":"Enregistrer","identities.messages.1070004":"ID","identities.messages.1070005":"Soumettre","identities.messages.1070006":"Vérifier le code","identities.messages.1070007":"E-mail","identities.messages.1070008":"Renvoyer le code","identities.messages.1070009":"Continuer","identities.messages.1070010":"Code de récupération","identities.messages.1070011":"Code de vérification","identities.messages.1070012":"Code d'inscription","identities.messages.1070013":"Code de connexion","identities.messages.1080001":"Un e-mail contenant un lien de vérification a été envoyé à l'adresse e-mail que vous avez fournie. Si vous n'avez pas reçu d'e-mail, vérifiez l'orthographe de l'adresse et assurez-vous d'utiliser l'adresse avec laquelle vous vous êtes enregistré.","identities.messages.1080002":"Vous avez réussi à vérifier votre adresse e-mail.","identities.messages.1080003":"Un e-mail contenant un code de vérification a été envoyé à l'adresse e-mail que vous avez fournie. Si vous n'avez pas reçu d'e-mail, vérifiez l'orthographe de l'adresse et assurez-vous d'utiliser l'adresse avec laquelle vous vous êtes enregistré.","identities.messages.4000001":"{reason}","identities.messages.4000002":"La propriété {property} est manquante.","identities.messages.4000003":"La longueur doit être >= {min_length}, mais a été {actual_length}","identities.messages.4000004":'Ne correspond pas au motif "{pattern}"',"identities.messages.4000005":"Le mot de passe ne peut pas être utilisé en raison de {reason}.","identities.messages.4000006":"Les informations d'identification fournies sont invalides. Veuillez vérifier les fautes d'orthographe dans votre mot de passe ou nom d'utilisateur, adresse e-mail ou numéro de téléphone.","identities.messages.4000007":"Un compte avec le même identifiant (e-mail, téléphone, nom d'utilisateur, ...) existe déjà.","identities.messages.4000008":"Le code d'authentification fourni est invalide. Veuillez réessayer.","identities.messages.4000009":"Impossible de trouver des identifiants de connexion. Avez-vous oublié de les configurer ? Cela peut également être dû à une mauvaise configuration du serveur.","identities.messages.4000010":"Le compte n'est pas encore actif. Avez-vous oublié de vérifier votre adresse e-mail ?","identities.messages.4000011":"Vous n'avez pas configuré de dispositif TOTP.","identities.messages.4000012":"Ce code de récupération de secours a déjà été utilisé.","identities.messages.4000013":"Vous n'avez pas configuré de dispositif WebAuthn.","identities.messages.4000014":"Vous n'avez pas configuré de codes de récupération de secours.","identities.messages.4000015":"Ce compte n'existe pas ou n'a pas configuré de clé de sécurité.","identities.messages.4000016":"Le code de récupération de secours n'est pas valide.","identities.messages.4000017":"La longueur doit être <= {max_length}, mais a été {actual_length}","identities.messages.4000018":"Doit être >= {minimum} mais a été {actual}","identities.messages.4000019":"Doit être > {minimum} mais a été {actual}","identities.messages.4000020":"Doit être <= {maximum} mais a été {actual}","identities.messages.4000021":"Doit être < {maximum} mais a été {actual}","identities.messages.4000022":"{actual} n'est pas multiple de {base}","identities.messages.4000023":"Un maximum de {max_items} éléments est autorisé, mais {actual_items} éléments ont été trouvés","identities.messages.4000024":"Un minimum de {min_items} éléments est autorisé, mais {actual_items} éléments ont été trouvés","identities.messages.4000025":"Les éléments aux indices {index_a} et {index_b} sont égaux","identities.messages.4000026":"Les types autorisés étaient {allowed_types_list}, mais le type actuel est {actual_type}","identities.messages.4000027":"Un compte avec le même identifiant (e-mail, téléphone, nom d'utilisateur, ...) existe déjà. Veuillez vous connecter à votre compte existant et lier votre profil social dans la page des paramètres.","identities.messages.4000028":"Vous avez essayé de vous connecter avec {credential_identifier_hint} qui est déjà utilisé par un autre compte. Vous pouvez vous connecter en utilisant {available_credential_types_list}. Vous pouvez vous connecter en utilisant l'un des fournisseurs de connexion sociale suivants : {Available_oidc_providers_list}.","identities.messages.4000029":"Doit être égal à la constante {expected}","identities.messages.4000030":"Échec de la constante","identities.messages.4000031":"Le mot de passe ne peut pas être utilisé car il est trop similaire à l'identifiant.","identities.messages.4000032":"Le mot de passe doit comporter au moins {min_length} caractères, mais en comporte {actual_length}.","identities.messages.4000033":"Le mot de passe doit comporter au plus {max_length} caractères, mais en comporte {actual_length}.","identities.messages.4000034":"Le mot de passe a été trouvé dans des violations de données et ne doit plus être utilisé.","identities.messages.4000035":"Ce compte n'existe pas ou n'a pas configuré de connexion avec code.","identities.messages.4000036":"Les traits fournis ne correspondent pas aux traits associés précédemment à ce flux.","identities.messages.4010001":"Le flux de connexion a expiré il y a {expired_at_unix_since_minutes} minutes, veuillez réessayer.","identities.messages.4010002":"Impossible de trouver une stratégie pour vous connecter. Avez-vous rempli correctement le formulaire ?","identities.messages.4010003":"Impossible de trouver une stratégie pour vous inscrire. Avez-vous rempli correctement le formulaire ?","identities.messages.4010004":"Impossible de trouver une stratégie pour mettre à jour vos paramètres. Avez-vous rempli correctement le formulaire ?","identities.messages.4010005":"Impossible de trouver une stratégie pour récupérer votre compte. Avez-vous rempli correctement le formulaire ?","identities.messages.4010006":"Impossible de trouver une stratégie pour vérifier votre compte. Avez-vous rempli correctement le formulaire ?","identities.messages.4010007":"La demande a déjà été effectuée avec succès et ne peut pas être réessayée.","identities.messages.4010008":"Le code de connexion est invalide ou a déjà été utilisé. Veuillez réessayer.","identities.messages.4040001":"Le flux d'inscription a expiré il y a {expired_at_unix_since_minutes} minutes, veuillez réessayer.","identities.messages.4040002":"La demande a déjà été effectuée avec succès et ne peut pas être réessayée.","identities.messages.4040003":"Le code d'inscription est invalide ou a déjà été utilisé. Veuillez réessayer.","identities.messages.4050001":"Le flux de paramètres a expiré il y a {expired_at_unix_since_minutes} minutes, veuillez réessayer.","identities.messages.4060001":"La demande a déjà été effectuée avec succès et ne peut pas être réessayée.","identities.messages.4060002":"Le flux de récupération a atteint un état d'échec et doit être réessayé.","identities.messages.4060004":"Le jeton de récupération est invalide ou a déjà été utilisé. Veuillez réessayer le flux.","identities.messages.4060005":"Le flux de récupération a expiré il y a {expired_at_unix_since_minutes} minutes, veuillez réessayer.","identities.messages.4060006":"Le code de récupération est invalide ou a déjà été utilisé. Veuillez réessayer.","identities.messages.4070001":"Le jeton de vérification est invalide ou a déjà été utilisé. Veuillez réessayer le flux.","identities.messages.4070002":"La demande a déjà été effectuée avec succès et ne peut pas être réessayée.","identities.messages.4070003":"Le flux de vérification a atteint un état d'échec et doit être réessayé.","identities.messages.4070005":"Le flux de vérification a expiré il y a {expired_at_unix_since_minutes} minutes, veuillez réessayer.","identities.messages.4070006":"Le code de vérification est invalide ou a déjà été utilisé. Veuillez réessayer.","identities.messages.5000001":"{reason}","login.forgot-password":"Mot de passe oublié ?","login.logged-in-as-label":"Vous êtes connecté en tant que :","login.logout-button":"Déconnexion","login.logout-label":"Quelque chose ne fonctionne pas ?","login.registration-button":"S'inscrire","login.registration-label":"Vous n'avez pas de compte ?","login.subtitle-oauth2":"Pour vous authentifier sur {clientName}","login.title":"Se connecter","login.title-aal2":"Authentification à deux facteurs","login.title-refresh":"Confirmez que c'est bien vous","logout.accept-button":"Oui","logout.reject-button":"Non","logout.title":"Souhaitez-vous vous déconnecter ?","recovery.login-button":"Se connecter","recovery.login-label":"Vous souvenez-vous de vos informations d'identification ?","recovery.title":"Récupérer votre compte","registration.login-button":"Se connecter","registration.login-label":"Vous avez déjà un compte ?","registration.subtitle-oauth2":"Pour vous authentifier sur {clientName}","registration.title":"Créer un compte","settings.navigation-back-button":"Revenir en arrière","settings.navigation-backup-codes":"Codes de secours 2FA","settings.navigation-logout":"Déconnexion","settings.navigation-oidc":"Connexion sociale","settings.navigation-password":"Mot de passe","settings.navigation-profile":"Profil","settings.navigation-totp":"Application d'authentification TOTP","settings.navigation-webauthn":"Tokens matériels","settings.navigation-passkey":"Passkeys","settings.subtitle-instructions":"Ici, vous pouvez gérer les paramètres liés à votre compte. Gardez à l'esprit que certaines actions nécessitent une nouvelle authentification.","settings.title":"Paramètres du compte","verification.registration-button":"S'inscrire","verification.registration-label":"Vous n'avez pas de compte ?","verification.title":"Vérifiez votre compte","verification.back-button":"Revenir en arrière","two-step.code.description":"Un code de vérification sera envoyé à votre email","two-step.code.title":"Code de courrier électronique","two-step.passkey.description":"Utilisez l'appareil pour la reconnaissance d'empreintes digitales ou de visage","two-step.passkey.title":"Clé de passe (recommandée)","two-step.password.description":"Entrez votre mot de passe associé à votre compte","two-step.password.title":"Mot de passe","two-step.webauthn.description":"Utilisez votre clé de sécurité pour vous authentifier","two-step.webauthn.title":"Clé de Sécurité","identities.messages.1010023":"","identities.messages.1070015":"","identities.messages.4000038":"","login.cancel-button":"","login.cancel-label":"","identities.messages.1010016":"","identities.messages.1010017":"","identities.messages.1010018":"","identities.messages.1010019":"","identities.messages.1010020":"","identities.messages.1010021":"","identities.messages.1010022":"","identities.messages.1040007":"","identities.messages.1040008":"","identities.messages.1040009":"","identities.messages.1050019":"","identities.messages.1050020":"","identities.messages.1070014":"","identities.messages.4000037":"","identities.messages.4010009":"","identities.messages.4010010":"","input.placeholder":"","card.header.description.login":"","card.header.description.registration":"","card.header.parts.code":"","card.header.parts.identifier-first":"","card.header.parts.oidc":"","card.header.parts.passkey":"","card.header.parts.password.login":"","card.header.parts.password.registration":"","card.header.parts.webauthn":"","forms.label.forgot-password":"","login.subtitle":"","login.subtitle-refresh":"","misc.or":"","recovery.subtitle":"","registration.subtitle":"","settings.subtitle":"","verification.subtitle":"","settings.totp.info.linked":"Vous avez actuellement une application d'authentification connectée.","settings.totp.info.not-linked":"Pour activer, scannez le QR code avec votre authentificateur et entrez le code.","settings.totp.title":"Application d'authentification","settings.totp.description":"Ajoutez une application d'authentification TOTP à votre compte pour améliorer la sécurité de votre compte. Les applications d'authentification populaires sont LastPass et Google Authenticator.","settings.lookup_secret.description":"","settings.lookup_secret.title":"","settings.navigation.title":"","settings.oidc.description":"","settings.oidc.info":"","settings.oidc.title":"","settings.passkey.description":"","settings.passkey.info":"","settings.passkey.title":"","settings.password.description":"","settings.password.title":"","settings.profile.description":"","settings.profile.title":"","settings.title-lookup-secret":"","settings.title-navigation":"","settings.title-oidc":"","settings.title-passkey":"","settings.title-password":"","settings.title-profile":"","settings.title-totp":"","settings.title-webauthn":"","settings.webauthn.description":"","settings.webauthn.info":"","settings.webauthn.title":"","card.footer.select-another-method":"","account-linking.title":""},lf={"consent.action-accept":"Toestaan","consent.action-reject":"Weigeren","consent.description":"Verleen alleen toestemming als u deze site of app vertrouwt. U hoeft niet alle toestemmingen te accepteren.","consent.privacy-policy-label":"Privacybeleid","consent.remember-label":"Onthoud deze beslissing voor de volgende keer. De toepassing kan geen aanvullende toestemming vragen zonder uw toestemming.","consent.remember-tooltip":"Onthoud mijn beslissing","consent.requested-permissions-label":"De toepassing vraagt toegang tot de volgende toestemmingen:","consent.terms-of-service-label":"Gebruiksvoorwaarden","error.back-button":"Ga terug","error.description":"Er is een fout opgetreden met de volgende melding:","error.support-email-link":"Als het probleem aanhoudt, neem dan contact op met <a>{contactSupportEmail}</a>","error.title":"Er is een fout opgetreden","error.title-internal-server-error":"Interne serverfout","error.title-not-found":"404 - Pagina niet gevonden","identities.messages.1010001":"Aanmelden","identities.messages.1010002":"Aanmelden met {provider}","identities.messages.1010003":"Bevestig deze actie door te verifiëren dat u het bent.","identities.messages.1010004":"Voltooi alstublieft de tweede authenticatie-uitdaging.","identities.messages.1010005":"Verifiëren","identities.messages.1010006":"Verificatiecode","identities.messages.1010007":"Back-up herstelcode","identities.messages.1010008":"Beveiligingssleutel gebruiken","identities.messages.1010009":"Authenticator gebruiken","identities.messages.1010010":"Back-up herstelcode gebruiken","identities.messages.1010011":"Doorgaan met beveiligingssleutel","identities.messages.1010012":"Bereid uw WebAuthn-apparaat voor (bijv. beveiligingssleutel, biometrische scanner, ...) en druk op doorgaan.","identities.messages.1010013":"Doorgaan","identities.messages.1010014":"Er is een e-mail met een code verzonden naar het opgegeven e-mailadres. Als u geen e-mail heeft ontvangen, controleer dan de spelling van het adres en probeer opnieuw in te loggen.","identities.messages.1010015":"Aanmelden met code","identities.messages.1040001":"Registreren","identities.messages.1040002":"Registreren met {provider}","identities.messages.1040003":"Doorgaan","identities.messages.1040004":"Registreren met beveiligingssleutel","identities.messages.1040005":"Er is een e-mail met een code verzonden naar het opgegeven e-mailadres. Als u geen e-mail heeft ontvangen, controleer dan de spelling van het adres en probeer opnieuw te registreren.","identities.messages.1040006":"Registreren met code","identities.messages.1050001":"Uw wijzigingen zijn opgeslagen!","identities.messages.1050002":"Koppelen aan {provider}","identities.messages.1050003":"Ontkoppelen van {provider}","identities.messages.1050004":"Ontkoppelen van TOTP Authenticator-app","identities.messages.1050005":"QR-code voor Authenticator-app","identities.messages.1050006":"{secret}","identities.messages.1050007":"Toon back-up herstelcodes","identities.messages.1050008":"Nieuwe back-up herstelcodes genereren","identities.messages.1050009":"{secret}","identities.messages.1050010":"Dit zijn uw back-up herstelcodes. Bewaar ze op een veilige plaats!","identities.messages.1050011":"Bevestig back-up herstelcodes","identities.messages.1050012":"Beveiligingssleutel toevoegen","identities.messages.1050013":"Naam van de beveiligingssleutel","identities.messages.1050014":"<del>Gebruikt</del>","identities.messages.1050015":"{secrets_list}","identities.messages.1050016":"Deze methode uitschakelen","identities.messages.1050017":"Dit is uw geheime Authenticator-app. Gebruik het als u de QR-code niet kunt scannen.","identities.messages.1050018":'Beveiligingssleutel verwijderen "{display_name}"',"identities.messages.1060001":"U heeft met succes uw account hersteld. Wijzig alstublieft uw wachtwoord of stel een alternatieve aanmeldingsmethode in (bijv. sociale aanmelding) binnen de komende {privileged_session_expires_at_unix_until_minutes} minuten.","identities.messages.1060002":"Er is een e-mail met een herstelkoppeling verzonden naar het opgegeven e-mailadres. Als u geen e-mail heeft ontvangen, controleer dan de spelling van het e-mailadres en zorg ervoor dat u het e-mailadres gebruikt waarmee u zich heeft geregistreerd.","identities.messages.1060003":"Er is een e-mail met een herstelcode verzonden naar het opgegeven e-mailadres. Als u geen e-mail heeft ontvangen, controleer dan de spelling van het e-mailadres en zorg ervoor dat u het e-mailadres gebruikt waarmee u zich heeft geregistreerd.","identities.messages.1070001":"Wachtwoord","identities.messages.1070002":"{title}","identities.messages.1070003":"Opslaan","identities.messages.1070004":"ID","identities.messages.1070005":"Verzenden","identities.messages.1070006":"Verificatiecode controleren","identities.messages.1070007":"E-mail","identities.messages.1070008":"Code opnieuw verzenden","identities.messages.1070009":"Doorgaan","identities.messages.1070010":"Herstelcode","identities.messages.1070011":"Verificatiecode","identities.messages.1070012":"Registratiecode","identities.messages.1070013":"Aanmeldingscode","identities.messages.1080001":"Er is een e-mail met een verificatielink naar het opgegeven e-mailadres gestuurd. Als je geen e-mail hebt ontvangen, controleer dan de spelling van het e-mailadres en zorg ervoor dat je het e-mailadres hebt gebruikt waarmee je hebt geregistreerd.","identities.messages.1080002":"Je hebt succesvol je e-mailadres geverifieerd.","identities.messages.1080003":"Er is een e-mail met een verificatiecode naar het opgegeven e-mailadres gestuurd. Als je geen e-mail hebt ontvangen, controleer dan de spelling van het e-mailadres en zorg ervoor dat je het e-mailadres hebt gebruikt waarmee je hebt geregistreerd.","identities.messages.4000001":"{reason}","identities.messages.4000002":"Eigenschap {property} ontbreekt.","identities.messages.4000003":"lengte moet >= {min_length} zijn, maar is {actual_length}","identities.messages.4000004":'komt niet overeen met patroon "{pattern}"',"identities.messages.4000005":"Het wachtwoord kan niet worden gebruikt vanwege {reason}.","identities.messages.4000006":"De verstrekte referenties zijn ongeldig, controleer op typefouten in je wachtwoord of gebruikersnaam, e-mailadres of telefoonnummer.","identities.messages.4000007":"Er bestaat al een account met dezelfde identificatiegegevens (e-mail, telefoon, gebruikersnaam, ...).","identities.messages.4000008":"De verstrekte verificatiecode is ongeldig, probeer het opnieuw.","identities.messages.4000009":"Kon geen aanmeldingsidentificatoren vinden. Ben je ze vergeten in te stellen? Dit kan ook worden veroorzaakt door een servermisconfiguratie.","identities.messages.4000010":"Account nog niet actief. Ben je vergeten je e-mailadres te verifiëren?","identities.messages.4000011":"Je hebt geen TOTP-apparaat ingesteld.","identities.messages.4000012":"Deze herstelcode is al gebruikt.","identities.messages.4000013":"Je hebt geen WebAuthn-apparaat ingesteld.","identities.messages.4000014":"Je hebt geen herstelcodes ingesteld.","identities.messages.4000015":"Dit account bestaat niet of heeft geen beveiligingssleutel ingesteld.","identities.messages.4000016":"De herstelcode is niet geldig.","identities.messages.4000017":"lengte moet <= {max_length} zijn, maar is {actual_length}","identities.messages.4000018":"moet >= {minimum} zijn, maar is {actual}","identities.messages.4000019":"moet > {minimum} zijn, maar is {actual}","identities.messages.4000020":"moet <= {maximum} zijn, maar is {actual}","identities.messages.4000021":"moet < {maximum} zijn, maar is {actual}","identities.messages.4000022":"{actual} is geen veelvoud van {base}","identities.messages.4000023":"maximaal {max_items} items toegestaan, maar er zijn {actual_items} items gevonden","identities.messages.4000024":"minimaal {min_items} items toegestaan, maar er zijn {actual_items} items gevonden","identities.messages.4000025":"items op index {index_a} en {index_b} zijn gelijk","identities.messages.4000026":"verwacht {allowed_types_list}, maar kreeg {actual_type}","identities.messages.4000027":"Er bestaat al een account met dezelfde identificatiegegevens (e-mail, telefoon, gebruikersnaam, ...). Meld je aan bij je bestaande account en koppel je sociale profiel in de instellingenpagina.","identities.messages.4000028":"Je hebt geprobeerd in te loggen met {credential_identifier_hint}, dat al wordt gebruikt door een ander account. Je kunt inloggen met {available_credential_types_list}. Je kunt inloggen met een van de volgende sociale aanmeldingsproviders: {Available_oidc_providers_list}.","identities.messages.4000029":"moet gelijk zijn aan constante {expected}","identities.messages.4000030":"constante mislukt","identities.messages.4000031":"Het wachtwoord kan niet worden gebruikt omdat het te veel lijkt op de identificatiegegevens.","identities.messages.4000032":"Het wachtwoord moet minstens {min_length} tekens lang zijn, maar is {actual_length}.","identities.messages.4000033":"Het wachtwoord mag hoogstens {max_length} tekens lang zijn, maar is {actual_length}.","identities.messages.4000034":"Het wachtwoord is gevonden in datalekken en mag niet langer worden gebruikt.","identities.messages.4000035":"Dit account bestaat niet of heeft geen aanmelding met code ingesteld.","identities.messages.4000036":"De verstrekte kenmerken komen niet overeen met de eerder geassocieerde kenmerken met deze stroom.","identities.messages.4010001":"De aanmeldingsstroom is verlopen {expired_at_unix_since_minutes} minuten geleden, probeer het opnieuw.","identities.messages.4010002":"Kon geen strategie vinden om mee in te loggen. Heb je het formulier correct ingevuld?","identities.messages.4010003":"Kon geen strategie vinden om je mee aan te melden. Heb je het formulier correct ingevuld?","identities.messages.4010004":"Kon geen strategie vinden om je instellingen bij te werken. Heb je het formulier correct ingevuld?","identities.messages.4010005":"Kon geen strategie vinden om je account mee te herstellen. Heb je het formulier correct ingevuld?","identities.messages.4010006":"Kon geen strategie vinden om je account mee te verifiëren. Heb je het formulier correct ingevuld?","identities.messages.4010007":"Het verzoek is al met succes voltooid en kan niet opnieuw worden geprobeerd.","identities.messages.4010008":"De aanmeldingscode is ongeldig of is al gebruikt. Probeer het opnieuw.","identities.messages.4040001":"De registratie flowis verlopen {expired_at_unix_since_minutes} minuten geleden, probeer het opnieuw.","identities.messages.4040002":"Het verzoek is al met succes voltooid en kan niet opnieuw worden geprobeerd.","identities.messages.4040003":"De registratiecode is ongeldig of is al gebruikt. Probeer het opnieuw.","identities.messages.4050001":"De instellingen flow is verlopen {expired_at_unix_since_minutes} minuten geleden, probeer het opnieuw.","identities.messages.4060001":"Het verzoek is al met succes voltooid en kan niet opnieuw worden geprobeerd.","identities.messages.4060002":"De herstel flow heeft een fout bereikt en moet opnieuw worden geprobeerd.","identities.messages.4060004":"De hersteltoken is ongeldig of is al gebruikt. Probeer de flow opnieuw.","identities.messages.4060005":"De herstel flow is verlopen {expired_at_unix_since_minutes} minuten geleden, probeer het opnieuw.","identities.messages.4060006":"De herstelcode is ongeldig of is al gebruikt. Probeer het opnieuw.","identities.messages.4070001":"De verificatietoken is ongeldig of is al gebruikt. Probeer de flow opnieuw.","identities.messages.4070002":"Het verzoek is al met succes voltooid en kan niet opnieuw worden geprobeerd.","identities.messages.4070003":"De verificatie flow heeft een fout bereikt en moet opnieuw worden geprobeerd.","identities.messages.4070005":"De verificatie flow is verlopen {expired_at_unix_since_minutes} minuten geleden, probeer het opnieuw.","identities.messages.4070006":"De verificatiecode is ongeldig of is al gebruikt. Probeer het opnieuw.","identities.messages.5000001":"{reason}","login.forgot-password":"Wachtwoord vergeten?","login.logged-in-as-label":"Je bent ingelogd als:","login.logout-button":"Uitloggen","login.logout-label":"Er is iets mis?","login.registration-button":"Registreren","login.registration-label":"Heb je nog geen account?","login.subtitle-oauth2":"Om te authenticeren bij {clientName}","login.title":"Inloggen","login.title-aal2":"Twee-Factor Authenticatie","login.title-refresh":"Bevestig dat jij het bent","logout.accept-button":"Ja","logout.reject-button":"Nee","logout.title":"Wil je uitloggen?","recovery.login-button":"Inloggen","recovery.login-label":"Herinner je je inloggegevens?","recovery.title":"Herstel je account","registration.login-button":"Inloggen","registration.login-label":"Heb je al een account?","registration.subtitle-oauth2":"Om te authenticeren bij {clientName}","registration.title":"Registreer een account","settings.navigation-back-button":"Ga terug","settings.navigation-backup-codes":"2FA Backupcodes","settings.navigation-logout":"Uitloggen","settings.navigation-oidc":"Sociaal Inloggen","settings.navigation-password":"Wachtwoord","settings.navigation-profile":"Profiel","settings.navigation-totp":"Authenticator App","settings.navigation-webauthn":"Hardware Tokens","settings.navigation-passkey":"Passkeys","settings.subtitle-instructions":"Hier kun je instellingen beheren die verband houden met je account. Houd er rekening mee dat bepaalde acties vereisen dat je opnieuw wordt geauthenticeerd.","settings.title":"Accountinstellingen","verification.registration-button":"Registreren","verification.registration-label":"Heb je nog geen account?","verification.title":"Verifieer je account","verification.back-button":"Ga terug","two-step.code.description":"Een verificatiecode wordt naar uw e-mail gestuurd","two-step.code.title":"E-mailcode","two-step.passkey.description":"Gebruik de vingerafdruk- of gezichtsherkenning van uw apparaat","two-step.passkey.title":"Toegangscode (aanbevolen)","two-step.password.description":"Voer uw wachtwoord in dat is gekoppeld aan uw account","two-step.password.title":"Wachtwoord","two-step.webauthn.description":"Gebruik uw beveiligingssleutel om te verifiëren","two-step.webauthn.title":"Beveiligingssleutel","identities.messages.1010023":"","identities.messages.1070014":"","identities.messages.1070015":"","identities.messages.4000038":"","login.cancel-button":"","login.cancel-label":"","identities.messages.1010016":"","identities.messages.1010017":"","identities.messages.1010018":"","identities.messages.1010019":"","identities.messages.1010020":"","identities.messages.1010021":"","identities.messages.1010022":"","identities.messages.1040007":"","identities.messages.1040008":"","identities.messages.1040009":"","identities.messages.1050019":"","identities.messages.1050020":"","identities.messages.4000037":"","identities.messages.4010009":"","identities.messages.4010010":"","input.placeholder":"","card.header.description.login":"","card.header.description.registration":"","card.header.parts.code":"","card.header.parts.identifier-first":"","card.header.parts.oidc":"","card.header.parts.passkey":"","card.header.parts.password.login":"","card.header.parts.password.registration":"","card.header.parts.webauthn":"","forms.label.forgot-password":"","login.subtitle":"","login.subtitle-refresh":"","misc.or":"","recovery.subtitle":"","registration.subtitle":"","settings.subtitle":"","verification.subtitle":"","settings.totp.info.linked":"U heeft momenteel een authenticator-app verbonden.","settings.totp.info.not-linked":"Om te activeren, scan de QR-code met je authenticator en voer de code in.","settings.totp.title":"","settings.totp.description":"Voeg een TOTP Authenticator App toe aan uw account om de beveiliging van uw account te verbeteren. Populaire Authenticator Apps zijn LastPass en Google Authenticator.","settings.lookup_secret.description":"","settings.lookup_secret.title":"","settings.navigation.title":"","settings.oidc.description":"","settings.oidc.info":"","settings.oidc.title":"","settings.passkey.description":"","settings.passkey.info":"","settings.passkey.title":"","settings.password.description":"","settings.password.title":"","settings.profile.description":"","settings.profile.title":"","settings.title-lookup-secret":"","settings.title-navigation":"","settings.title-oidc":"","settings.title-passkey":"","settings.title-password":"","settings.title-profile":"","settings.title-totp":"","settings.title-webauthn":"","settings.webauthn.description":"","settings.webauthn.info":"","settings.webauthn.title":"","card.footer.select-another-method":"","account-linking.title":""},cf={"consent.action-accept":"Zezwól","consent.action-reject":"Odmów","consent.description":"Udzielaj uprawnień tylko wtedy, gdy ufasz tej witrynie lub aplikacji. Nie musisz akceptować wszystkich uprawnień.","consent.privacy-policy-label":"Polityka Prywatności","consent.remember-label":"Zapamiętaj tę decyzję. Aplikacja nie będzie mogła prosić o dodatkowe uprawnienia bez Twojej zgody.","consent.remember-tooltip":"zapamiętaj moją decyzję","consent.requested-permissions-label":"Aplikacja żąda dostępu do następujących uprawnień:","consent.terms-of-service-label":"Warunki świadczenia usług","error.back-button":"Cofnij","error.description":"Wystąpił błąd z następującym komunikatem:","error.support-email-link":"Jeżeli problem nie ustępuje skontaktuj się z <a>{contactSupportEmail}</a>","error.title":"Wystąpił błąd","error.title-internal-server-error":"Wewnętrzny błąd serwera","error.title-not-found":"404 - Nie odnaleziono takiej strony","identities.messages.1010001":"Zaloguj się","identities.messages.1010002":"Zaloguj się za pomocą {provider}","identities.messages.1010003":"Potwierdź tę czynność, potwierdzając, że to Ty.","identities.messages.1010004":"Ukończ drugi etap uwierzytelnienia.","identities.messages.1010005":"Zweryifkuj","identities.messages.1010006":"Kod autentykacyjny","identities.messages.1010007":"Zapasowe kody odzyskiwania","identities.messages.1010008":"Użyj klucza bezpieczeństwa","identities.messages.1010009":"Użyj Autentykatora","identities.messages.1010010":"Użyj zapasowych kodów odzyskiwania","identities.messages.1010011":"Kontynuuj za pomocą klucza bezpieczeństwa","identities.messages.1010012":"Przygotuj swoje urządzenie WebAuthn (np. klucz bezpieczeństwa, czytnik biometryczny, ...) a następnie kliknij kontynuuj.","identities.messages.1010013":"Kontynuuj","identities.messages.1010014":"Email zawierający kod został wysłany na wskazany adres email. Jeżeli nie otrzymasz wiadomości to sprawdź pisownię adresu i spróbuj zalogować się ponownie.","identities.messages.1010015":"Zaloguj się kodem","identities.messages.1040001":"Zarejestruj się","identities.messages.1040002":"Zarejestruj się za pomocą {provider}","identities.messages.1040003":"Kontynuuj","identities.messages.1040004":"Zarejestruj się kluczem bezpieczeństwa","identities.messages.1040005":"Email zawierający kod został wysłany na wskazany adres email. Jeżeli nie otrzymasz wiadomości to sprawdź pisownię adresu i ponów rejestrację.","identities.messages.1040006":"Zarejestruj się kodem","identities.messages.1050001":"Twoje zmiany zostały zapisane!","identities.messages.1050002":"Połącz {provider}","identities.messages.1050003":"Odłącz {provider}","identities.messages.1050004":"Odłącz Apikację Autentykator TOTP","identities.messages.1050005":"Kod QR aplikacji Autentykator","identities.messages.1050006":"{secret}","identities.messages.1050007":"Pokaż zapasowe kody odzyskiwania","identities.messages.1050008":"Wygeneruj nowe zapasowe kody odzyskiwania","identities.messages.1050009":"{secret}","identities.messages.1050010":"To są Twoje zapasowe kody odzyskiwania. Trzymaj je w bezpiecznym miejscu!","identities.messages.1050011":"Potwierdź zapasowe kody odzyskiwania","identities.messages.1050012":"Dodaj klucz bezpieczeństwa","identities.messages.1050013":"Nazwa klucza bezpieczeństwa","identities.messages.1050014":"<del>Wykorzystany</del>","identities.messages.1050015":"{secrets_list}","identities.messages.1050016":"Wyłącz tą metodę","identities.messages.1050017":"To jest sekret twojej aplikacji autentykator. Użyj go jeżeli nie możesz zeskanować kodu QR.","identities.messages.1050018":'Usuń klucz bezpieczeństwa "{display_name}"',"identities.messages.1060001":"Pomyślnie odzyskałeś swoje konto. Proszę zmień swoję hasło lub ustanowić alternatywną methodę logowania (np. logowanie zewnętrzne) w ciągu najbliższych {privileged_session_expires_at_unix_until_minutes} minut.","identities.messages.1060002":"Email zawierający link odzyskiwania został wysłany na wskazany adres email. Jeżeli nie otrzymasz wiadomości to sprawdź pisownię adresu i upewnij się że używasz adresu użytego do rejestracji.","identities.messages.1060003":"Email zawierający kod odzyskiwania został wysłany na wskazany adres email. Jeżeli nie otrzymasz wiadomości to sprawdź pisownię adresu i upewnij się że używasz adresu użytego do rejestracji.","identities.messages.1070001":"Hasło","identities.messages.1070002":"{title}","identities.messages.1070003":"Zapisz","identities.messages.1070004":"ID","identities.messages.1070005":"Wyślij","identities.messages.1070006":"Zweryfikuj kod","identities.messages.1070007":"Email","identities.messages.1070008":"Wyślij kod ponownie","identities.messages.1070009":"Kontynuuj","identities.messages.1070010":"Kod odzyskiwania","identities.messages.1070011":"Kod weryfikacyjny","identities.messages.1070012":"Kod rejestracji","identities.messages.1070013":"Kod logowania","identities.messages.1080001":"Email zawierający link weryfikacyjny został wysłany na wskazany adres email. Jeżeli nie otrzymasz wiadomości to sprawdź pisownię adresu i upewnij się że używasz adresu użytego do rejestracji.","identities.messages.1080002":"Poprawnie zweryfikowano adres email.","identities.messages.1080003":"Email zawierający kod weryfikacyjny został wysłany na wskazany adres email. Jeżeli nie otrzymasz wiadomości to sprawdź pisownię adresu i upewnij się że używasz adresu użytego do rejestracji.","identities.messages.4000001":"{reason}","identities.messages.4000002":"Brakuje pola {property}.","identities.messages.4000003":"długość musi być >= {min_length}, otrzymano {actual_length}","identities.messages.4000004":'nie pasuje do wzoru "{pattern}"',"identities.messages.4000005":"Hasło nie może być użyte ponieważ {reason}.","identities.messages.4000006":"Podane poświadczenia są nieprawidłowe, sprawdź czy nie ma literówek w twoim haśle, nazwie użytkownika, adresie email lub numerze telefonu.","identities.messages.4000007":"Istnieje już konto o takim samym identyfikatorze (email, telefon, nazwa użytkownika, ...).","identities.messages.4000008":"Podany kod autentykacyjny jest nieprawidłowy, spróbuj ponownie.","identities.messages.4000009":"Nie odnaleziono żadnych identyfikatorów logowania. Czy zapomniałeś je ustawić? Może też być to spowodowane nieprawidłową konfiguracją serwera.","identities.messages.4000010":"Konto nie jest jeszcze aktywne. Czy zapomniałeś/łaś zweryfikować swój adres email?","identities.messages.4000011":"Nie ustanowiono urządzenia TOTP.","identities.messages.4000012":"Ten kod odzyskiwania jest już wykorzystany.","identities.messages.4000013":"Nie ustanowiono urządzenia WebAuthn.","identities.messages.4000014":"Nie ustanowiono kodów odzyskiwania.","identities.messages.4000015":"To konto nie istnieje lub nie zezwala na logowanie kluczem odzyskiwania.","identities.messages.4000016":"Kod odzyskiwania jest nieprawidłowy.","identities.messages.4000017":"długośc musi być <= {max_length}, otrzymano {actual_length}","identities.messages.4000018":"musi być >= {minimum} otrzymano {actual}","identities.messages.4000019":"musi być > {minimum} otrzymano {actual}","identities.messages.4000020":"musi być <= {maximum} otrzymano {actual}","identities.messages.4000021":"musi być < {maximum} otrzymano {actual}","identities.messages.4000022":"{actual} nie jest wielokrotnością {base}","identities.messages.4000023":"maksymalnie {max_items} wpisów, otrzymano {actual_items} wpisów","identities.messages.4000024":"minimum {min_items} wpisów, otrzymano {actual_items} wpisów","identities.messages.4000025":"wpisów w indeksie {index_a} i {index_b} są takie same","identities.messages.4000026":"spodziewano {allowed_types_list}, otrzymano {actual_type}","identities.messages.4000027":"Istnieje już konto o takim samym identyfikatorze (email, telefon, nazwa użytkownika, ...). Zaloguj się do swojego konta i połącz swój profil zewnętrzny na stronie ustawień.","identities.messages.4000028":"Próbowano się zalogować za pomocą {credential_identifier_hint} który jest już używany przez inne konto. Możesz się zalogować za pomocą {available_credential_types_list}. Możesz się zalogować za pomocą następujących zewnętrznch dostawców logowania: {Available_oidc_providers_list}.","identities.messages.4000029":"musi być równe stałej {expected}","identities.messages.4000030":"const nie powiodła się","identities.messages.4000031":"Hasło nie może być użytę ponieważ jest zbyt podobne do identyfikatora.","identities.messages.4000032":"Hasło musi być długie na co najmniej {min_length} znaków, wprowadzono {actual_length} znaków.","identities.messages.4000033":"Hasło musi być nie dłuższe niż {max_length} znaków, wprowadzono {actual_length} znaków.","identities.messages.4000034":"Hasło wyciekło w wyniku naruszenia danych i nie może być użyte.","identities.messages.4000035":"To konto nie istnieje lub nie pozwala na logowanie kodem.","identities.messages.4000036":"Podane atrybuty nie odpowiadają atrybutom wcześniej powiązanym z tym procesem.","identities.messages.4010001":"Proces logowania wygasł {expired_at_unix_since_minutes} minut temu, spróbuj ponownie.","identities.messages.4010002":"Nie odnaleziono strategii do logowania. Czy formularz został poprawnie wypełniony?","identities.messages.4010003":"Nie odnaleziono strategii do rejestracji. Czy formularz został poprawnie wypełniony?","identities.messages.4010004":"Nie odnaleziono strategii do aktualizacji ustawień. Czy formularz został poprawnie wypełniony?","identities.messages.4010005":"Nie odnaleziono strategii do odzyskiwania konta. Czy formularz został poprawnie wypełniony?","identities.messages.4010006":"Nie odnaleziono strategii do weryfikacj konta. Czy formularz został poprawnie wypełniony?","identities.messages.4010007":"Żądanie zostało poprawnie zakończone i nie może być ponowione.","identities.messages.4010008":"Kod logowania jest niepoprawny lub został wykorzystany. Spróbuj ponownie.","identities.messages.4040001":"Proces rejestracji wygasł {expired_at_unix_since_minutes} minut temu, spróbuj ponownie.","identities.messages.4040002":"Żądanie zostało poprawnie zakończone i nie może być ponowione.","identities.messages.4040003":"Kod rejestracji jest niepoprawny lub został wykorzystany. Spróbuj ponownie.","identities.messages.4050001":"Proces ustawień wygasł {expired_at_unix_since_minutes} minut temu, spróbuj ponownie.","identities.messages.4060001":"Żądanie zostało poprawnie zakończone i nie może być ponowione.","identities.messages.4060002":"Proces odzyskiwania jest niepoprawny i musi zostać ponowiony.","identities.messages.4060004":"Token odzyskiwania jest niepoprawny lub został wykorzystany. Proszę ponowić proces.","identities.messages.4060005":"Proces odzyskiwania wygasł {expired_at_unix_since_minutes} minut temu, spróbuj ponownie.","identities.messages.4060006":"Kod odzyskiwania jest nieprawidłowy lub został wykorzystany. Spróbuj ponownie.","identities.messages.4070001":"Token weryfikacyjny jest nieprawidłowy lub został wykorzystany. Proszę ponowić proces.","identities.messages.4070002":"Żądanie zostało poprawnie zakończone i nie może być ponowione.","identities.messages.4070003":"Proces weryfikacyjny jest nieprawidłowy i musi zostać ponowiony.","identities.messages.4070005":"Proces weryfikacyjny wygasł {expired_at_unix_since_minutes} minut temu, spróbuj ponownie.","identities.messages.4070006":"Kod weryfikacyjny jest nieprawidłowy lub został wykorzystany. Spróbuj ponownie.","identities.messages.5000001":"{reason}","login.forgot-password":"Zapomniałeś/łaś hasła?","login.logged-in-as-label":"Jesteś zalogowany jako:","login.logout-button":"Wyloguj","login.logout-label":"Coś nie działa?","login.registration-button":"Zarejestruj się","login.registration-label":"Nie posiadasz konta?","login.subtitle-oauth2":"Do autentykacji {clientName}","login.title":"Zaloguj się","login.title-aal2":"Autentykacja Dwu-Etapowa","login.title-refresh":"Potwierdź że to Ty","logout.accept-button":"Tak","logout.reject-button":"Nie","logout.title":"Czy chcesz się wylogować?","recovery.login-button":"Zaloguj się","recovery.login-label":"Pamiętasz dane logowania?","recovery.title":"Odzyskaj konto","registration.login-button":"Zaloguj się","registration.login-label":"Posiadasz już konto?","registration.subtitle-oauth2":"Do autentykacji {clientName}","registration.title":"Zarejestruj konto","settings.navigation-back-button":"Cofnij","settings.navigation-backup-codes":"Kody zapasowe 2FA","settings.navigation-logout":"Wyloguj","settings.navigation-oidc":"Zewnętrzne logowanie","settings.navigation-password":"Hasło","settings.navigation-profile":"Profil","settings.navigation-totp":"Aplikacja Autentykator","settings.navigation-webauthn":"Tokeny Sprzętowe","settings.navigation-passkey":"Passkeys","settings.subtitle-instructions":"Tutaj możesz zarządzać ustawieniami związanymi z Twoim kontem. Miej na uwadze że niektóre akcje mogą wymagać ponownej uwierzytelnienia.","settings.title":"Ustawienia Konta","verification.registration-button":"Zarejestruj się","verification.registration-label":"Nie posiadasz konta?","verification.title":"Zweryfikuj konto","verification.back-button":"Cofnij","two-step.code.description":"Kod weryfikacyjny zostanie wysłany na Twój adres email.","two-step.code.title":"Kod email","two-step.passkey.description":"Użyj swojego urządzenia lub funkcji rozpoznawania twarzy na swoim urządzeniu.","two-step.passkey.title":"Klucz dostępu (zalecany)","two-step.password.description":"Wprowadź hasło powiązane z twoim kontem","two-step.password.title":"Hasło","two-step.webauthn.description":"Użyj swojego klucza bezpieczeństwa do uwierzytelnienia","two-step.webauthn.title":"Klucz bezpieczeństwa","identities.messages.1010016":"","identities.messages.1010017":"","identities.messages.1010018":"","identities.messages.1010019":"","identities.messages.1010020":"","identities.messages.1010021":"","identities.messages.1010022":"","identities.messages.1010023":"","identities.messages.1040007":"","identities.messages.1040008":"","identities.messages.1040009":"","identities.messages.1050019":"","identities.messages.1050020":"","identities.messages.1070014":"","identities.messages.1070015":"","identities.messages.4000037":"","identities.messages.4000038":"","identities.messages.4010009":"","identities.messages.4010010":"","login.cancel-button":"","login.cancel-label":"","input.placeholder":"","card.header.description.login":"","card.header.description.registration":"","card.header.parts.code":"","card.header.parts.identifier-first":"","card.header.parts.oidc":"","card.header.parts.passkey":"","card.header.parts.password.login":"","card.header.parts.password.registration":"","card.header.parts.webauthn":"","forms.label.forgot-password":"","login.subtitle":"","login.subtitle-refresh":"","misc.or":"","recovery.subtitle":"","registration.subtitle":"","settings.subtitle":"","verification.subtitle":"","settings.totp.info.linked":"Aktualnie masz podłączoną aplikację uwierzytelniającą.","settings.totp.info.not-linked":"Aby włączyć, zeskanuj kod QR za pomocą swojego uwierzytelniającego i wprowadź kod.","settings.totp.title":"","settings.totp.description":"Dodaj aplikację do uwierzytelniania TOTP do swojego konta, aby poprawić bezpieczeństwo swojego konta. Popularne aplikacje uwierzytelniające to LastPass i Google Authenticator.","settings.lookup_secret.description":"","settings.lookup_secret.title":"","settings.navigation.title":"","settings.oidc.description":"","settings.oidc.info":"","settings.oidc.title":"","settings.passkey.description":"","settings.passkey.info":"","settings.passkey.title":"","settings.password.description":"","settings.password.title":"","settings.profile.description":"","settings.profile.title":"","settings.title-lookup-secret":"","settings.title-navigation":"","settings.title-oidc":"","settings.title-passkey":"","settings.title-password":"","settings.title-profile":"","settings.title-totp":"","settings.title-webauthn":"","settings.webauthn.description":"","settings.webauthn.info":"","settings.webauthn.title":"","card.footer.select-another-method":"","account-linking.title":""},mf={"consent.action-accept":"Permitir","consent.action-reject":"Rejeitar","consent.description":"Conceda permissões somente se confiar neste site ou aplicação. Não precisa aceitar todas as permissões.","consent.privacy-policy-label":"Política de Privacidade","consent.remember-label":"Lembrar decisão para a próxima vez. A aplicação não poderá solicitar permissões adicionais sem o seu consentimento.","consent.remember-tooltip":"lembrar minha decisão","consent.requested-permissions-label":"A aplicação solicita acesso às seguintes permissões:","consent.terms-of-service-label":"Termos de Serviço","error.back-button":"Voltar","error.description":"Ocorreu um erro com a seguinte mensagem:","error.support-email-link":"Se o problema persistir, entre em contato com <a>{contactSupportEmail}</a>","error.title":"Ocorreu um erro","error.title-internal-server-error":"Erro Interno do Servidor","error.title-not-found":"404 - Página não encontrada","identities.messages.1010001":"Entrar","identities.messages.1010002":"Entrar com {provider}","identities.messages.1010003":"Confirme esta ação e verifique que é você.","identities.messages.1010004":"Complete o segundo desafio de autenticação, por favor.","identities.messages.1010005":"Verificar","identities.messages.1010006":"Código de Autenticação","identities.messages.1010007":"Código de Recuperação de Backup","identities.messages.1010008":"Usar chave de segurança","identities.messages.1010009":"Usar o Autenticador","identities.messages.1010010":"Usar código de recuperação de backup","identities.messages.1010011":"Continuar com a chave de segurança","identities.messages.1010012":"Prepare o seu dispositivo WebAuthn (por exemplo, chave de segurança, scanner biométrico, ...) e pressione continuar.","identities.messages.1010013":"Continuar","identities.messages.1010014":"Um e-mail com um código foi enviado para o endereço de e-mail introduzido. Não recebeu um e-mail? Verifique o endereço introduzido e efetue novamente o login.","identities.messages.1010015":"Entrar com código","identities.messages.1040001":"Registar","identities.messages.1040002":"Registar com {provider}","identities.messages.1040003":"Continuar","identities.messages.1040004":"Registar com chave de segurança","identities.messages.1040005":"Um e-mail com o código foi enviado para o endereço de e-mail introduzido. Não recebeu um e-mail? Verifique a ortografia do endereço e registe-se novamente.","identities.messages.1040006":"Registar com código","identities.messages.1050001":"Alterações foram salvas com sucesso!","identities.messages.1050002":"Vincular {provider}","identities.messages.1050003":"Desvincular {provider}","identities.messages.1050004":"Desvincular o Aplicação Autenticador TOTP","identities.messages.1050005":"Código QR da aplicação Autenticador","identities.messages.1050006":"{secret}","identities.messages.1050007":"Revelar códigos de recuperação de backup","identities.messages.1050008":"Gerar novos códigos de recuperação de backup","identities.messages.1050009":"{secret}","identities.messages.1050010":"Os seus códigos de recuperação de backup. Guarde-os num local seguro!","identities.messages.1050011":"Confirmar códigos de recuperação de backup","identities.messages.1050012":"Adicionar chave de segurança","identities.messages.1050013":"Nome da chave de segurança","identities.messages.1050014":"<del>Usado</del>","identities.messages.1050015":"{secrets_list}","identities.messages.1050016":"Desativar este método","identities.messages.1050017":"Este é o segredo da sua aplicação autenticador. Use-o se não puder ler o código QR.","identities.messages.1050018":'Remover chave de segurança "{display_name}"',"identities.messages.1060001":"Recuperou com sucesso a sua conta. Por favor, altere a sua password ou configure um método de login alternativo (por exemplo, login social) nos próximos {privileged_session_expires_at_unix_until_minutes} minutos.","identities.messages.1060002":"Um e-mail com um link de recuperação foi enviado para o endereço de e-mail introduzido. Se recebeu um e-mail, verifique a ortografia do endereço e verifique se está usando o endereço com o qual se registou.","identities.messages.1060003":"Um e-mail com um código de recuperação foi enviado para o endereço de e-mail introduzido. Se recebeu um e-mail, verifique a ortografia do endereço e verifique se está usando o endereço com o qual se registou.","identities.messages.1070001":"Password","identities.messages.1070002":"{title}","identities.messages.1070003":"Salvar","identities.messages.1070004":"ID","identities.messages.1070005":"Enviar","identities.messages.1070006":"Verificar código","identities.messages.1070007":"E-mail","identities.messages.1070008":"Reenviar código","identities.messages.1070009":"Continuar","identities.messages.1070010":"Código de recuperação","identities.messages.1070011":"Código de verificação","identities.messages.1070012":"Código de registo","identities.messages.1070013":"Código de login","identities.messages.1080001":"Um e-mail com um link de verificação foi enviado para o endereço de e-mail introduzido. Se recebeu um e-mail, verifique a ortografia do endereço e verifique se está usando o endereço com o qual se registou.","identities.messages.1080002":"Endereço de e-mail verificado com sucesso.","identities.messages.1080003":"Um e-mail com um código de verificação foi enviado para o endereço de e-mail introduzido. Se recebeu um e-mail, verifique a ortografia do endereço e verifique se está usando o endereço com o qual se registou.","identities.messages.4000001":"{reason}","identities.messages.4000002":"A propriedade {property} não foi encontrada.","identities.messages.4000003":"O comprimento deve ser >= {min_length}, mas foi {actual_length}","identities.messages.4000004":'não corresponde ao padrão "{pattern}"',"identities.messages.4000005":"A password não pode ser utilizada porque {reason}.","identities.messages.4000006":"As credenciais fornecidas são inválidas, verifique erros na definição da password ou no nome de usuário, endereço de e-mail ou número de telefone.","identities.messages.4000007":"Já existe uma conta com o mesmo username (e-mail, telefone, nome de usuário, ...).","identities.messages.4000008":"O código de autenticação fornecido é inválido, tente novamente.","identities.messages.4000009":"Não foi possível encontrar nenhum username de login. Esqueceu-se de defini-los? Isso também pode ser causado por uma má configuração do servidor.","identities.messages.4000010":"Conta ainda não está ativa. Esqueceu-se de verificar o seu endereço de e-mail?","identities.messages.4000011":"Não tem um dispositivo TOTP configurado.","identities.messages.4000012":"Este código de recuperação de backup já foi usado.","identities.messages.4000013":"Não tem um dispositivo WebAuthn configurado.","identities.messages.4000014":"Não tem códigos de recuperação de backup configurados.","identities.messages.4000015":"Esta conta não existe ou não tem uma chave de segurança configurada.","identities.messages.4000016":"O código de recuperação de backup não é válido.","identities.messages.4000017":"O comprimento deve ser <= {max_length}, mas foi {actual_length}","identities.messages.4000018":"deve ser >= {minimum} mas foi encontrado {actual}","identities.messages.4000019":"deve ser > {minimum} mas foi encontrado {actual}","identities.messages.4000020":"deve ser <= {maximum} mas foi encontrado {actual}","identities.messages.4000021":"deve ser < {maximum} mas foi encontrado {actual}","identities.messages.4000022":"{actual} não é múltiplo de {base}","identities.messages.4000023":"máximo de {max_items} itens permitidos, mas foram encontrados {actual_items} itens","identities.messages.4000024":"mínimo de {min_items} itens permitidos, mas foram encontrados {actual_items} itens","identities.messages.4000025":"itens nos índices {index_a} e {index_b} são iguais","identities.messages.4000026":"esperado {allowed_types_list}, mas foi {actual_type}","identities.messages.4000027":"Já existe uma conta com o mesmo username (e-mail, telefone, nome de usuário, ...). Faça login na sua conta existente e vincule seu perfil social na página de configurações.","identities.messages.4000028":"Tentou fazer login com {credential_identifier_hint}, que já está sendo usado por outra conta. Pode fazer login usando {available_credential_types_list}. Pode fazer login usando um dos seguintes provedores de login social: {Available_oidc_providers_list}.","identities.messages.4000029":"deve ser igual a constante {expected}","identities.messages.4000030":"constante falhou","identities.messages.4000031":"A password não pode ser utilizada porque é muito semelhante ao username.","identities.messages.4000032":"A password deve conter ter pelo menos {min_length} caracteres, mas contém {actual_length}.","identities.messages.4000033":"A password deve conter ter no máximo {max_length} caracteres, mas contém {actual_length}.","identities.messages.4000034":"A password foi encontrada em violações de dados e não deve mais ser utilizada.","identities.messages.4000035":"Esta conta não existe ou não configurou o login com código.","identities.messages.4000036":"Os traços fornecidos não correspondem aos traços associados anteriormente a este fluxo.","identities.messages.4010001":"O fluxo de login expirou {expired_at_unix_since_minutes} minutos atrás, tente novamente.","identities.messages.4010002":"Não foi encontrada uma estratégia para fazer login. Preencheu o formulário corretamente?","identities.messages.4010003":"Não foi encontrada uma estratégia para Registar. Preencheu o formulário corretamente?","identities.messages.4010004":"Não foi encontrada uma estratégia para atualizar suas configurações. Preencheu o formulário corretamente?","identities.messages.4010005":"Não foi encontrada uma estratégia para recuperar sua conta. Preencheu o formulário corretamente?","identities.messages.4010006":"Não foi encontrada uma estratégia para verificar sua conta. Preencheu o formulário corretamente?","identities.messages.4010007":"A solicitação já foi concluída com sucesso e não pode ser tentada novamente.","identities.messages.4010008":"O código de login é inválido ou já foi usado. Tente novamente.","identities.messages.4040001":"O fluxo de registo expirou {expired_at_unix_since_minutes} minutos atrás, tente novamente.","identities.messages.4040002":"A solicitação já foi concluída com sucesso e não pode ser tentada novamente.","identities.messages.4040003":"O código de registo é inválido ou já foi usado. Tente novamente.","identities.messages.4050001":"O fluxo de configurações expirou {expired_at_unix_since_minutes} minutos atrás, tente novamente.","identities.messages.4060001":"A solicitação já foi concluída com sucesso e não pode ser tentada novamente.","identities.messages.4060002":"O fluxo de recuperação atingiu um estado de falha e deve ser tentado novamente.","identities.messages.4060004":"O token de recuperação é inválido ou já foi usado. Por favor, tente o fluxo novamente.","identities.messages.4060005":"O fluxo de recuperação expirou {expired_at_unix_since_minutes} minutos atrás, tente novamente.","identities.messages.4060006":"O código de recuperação é inválido ou já foi usado. Tente novamente.","identities.messages.4070001":"O token de verificação é inválido ou já foi usado. Tente novamente.","identities.messages.4070002":"A solicitação já foi concluída com sucesso e não pode ser solicitada novamente.","identities.messages.4070003":"O fluxo de verificação atingiu um estado de falha e deve ser tentado novamente.","identities.messages.4070005":"O fluxo de verificação expirou {expired_at_unix_since_minutes} minutos atrás, tente novamente.","identities.messages.4070006":"O código de verificação é inválido ou já foi usado. Tente novamente.","identities.messages.5000001":"{reason}","login.forgot-password":"Esqueceu a password?","login.logged-in-as-label":"Está conectado como:","login.logout-button":"Sair","login.logout-label":"Algo não está a funcionar?","login.registration-button":"Registar","login.registration-label":"Não tem uma conta?","login.subtitle-oauth2":"Para autenticar {clientName}","login.title":"Entrar","login.title-aal2":"Autenticação de Dois Fatores","login.title-refresh":"Confirme que é você","logout.accept-button":"Sim","logout.reject-button":"Não","logout.title":"Deseja sair?","recovery.login-button":"Entrar","recovery.login-label":"Lembrar credenciais?","recovery.title":"Recuperar conta","registration.login-button":"Entrar","registration.login-label":"Já tem uma conta?","registration.subtitle-oauth2":"Para autenticar {clientName}","registration.title":"Registar uma conta","settings.navigation-back-button":"Voltar","settings.navigation-backup-codes":"Códigos de Backup de 2FA","settings.navigation-logout":"Sair","settings.navigation-oidc":"login social","settings.navigation-password":"Password","settings.navigation-profile":"Perfil","settings.navigation-totp":"Aplicação Autenticador 2FA","settings.navigation-webauthn":"Tokens de Hardware","settings.navigation-passkey":"Passkeys","settings.subtitle-instructions":"Aqui pode gerar configurações relacionadas com a sua conta. Lembre-se de que certas ações exigem que efetue novamente login.","settings.title":"Configurações da Conta","verification.registration-button":"Registar","verification.registration-label":"Não tem uma conta?","verification.title":"Verifique a sua conta","verification.back-button":"Voltar","two-step.code.description":"Um código de verificação será enviado para o seu email","two-step.code.title":"Código de email","two-step.passkey.description":"Use o seu dispositivo para reconhecimento de impressão digital ou facial.","two-step.passkey.title":"Chave de acesso (recomendado)","two-step.password.description":"Insira a sua senha associada à sua conta","two-step.password.title":"Senha","two-step.webauthn.description":"Use sua chave de segurança para autenticar","two-step.webauthn.title":"Chave de Segurança","identities.messages.1010016":"","identities.messages.1010017":"","identities.messages.1010018":"","identities.messages.1010019":"","identities.messages.1010020":"","identities.messages.1010021":"","identities.messages.1010022":"","identities.messages.1010023":"","identities.messages.1040007":"","identities.messages.1040008":"","identities.messages.1040009":"","identities.messages.1050019":"","identities.messages.1050020":"","identities.messages.1070014":"","identities.messages.4000037":"","identities.messages.4000038":"","identities.messages.4010009":"","identities.messages.4010010":"","login.cancel-button":"","login.cancel-label":"","identities.messages.1070015":"","input.placeholder":"","card.header.description.login":"","card.header.description.registration":"","card.header.parts.code":"","card.header.parts.identifier-first":"","card.header.parts.oidc":"","card.header.parts.passkey":"","card.header.parts.password.login":"","card.header.parts.password.registration":"","card.header.parts.webauthn":"","forms.label.forgot-password":"","login.subtitle":"","login.subtitle-refresh":"","misc.or":"","recovery.subtitle":"","registration.subtitle":"","settings.subtitle":"","verification.subtitle":"","settings.totp.info.linked":"Você atualmente tem um aplicativo autenticador conectado.","settings.totp.info.not-linked":"Para ativar, escaneie o código QR com seu autenticador e insira o código.","settings.totp.title":"","settings.totp.description":"Adicione um aplicativo autenticador TOTP à sua conta para melhorar a segurança da sua conta. Aplicativos autenticadores populares são LastPass e Google Authenticator.","settings.lookup_secret.description":"","settings.lookup_secret.title":"","settings.navigation.title":"","settings.oidc.description":"","settings.oidc.info":"","settings.oidc.title":"","settings.passkey.description":"","settings.passkey.info":"","settings.passkey.title":"","settings.password.description":"","settings.password.title":"","settings.profile.description":"","settings.profile.title":"","settings.title-lookup-secret":"","settings.title-navigation":"","settings.title-oidc":"","settings.title-passkey":"","settings.title-password":"","settings.title-profile":"","settings.title-totp":"","settings.title-webauthn":"","settings.webauthn.description":"","settings.webauthn.info":"","settings.webauthn.title":"","card.footer.select-another-method":"","account-linking.title":""},pf={"consent.action-accept":"Tillåt","consent.action-reject":"Neka","consent.description":"Ge bara behörigheter om du litar på den här webbplatsen eller appen. Du behöver inte acceptera alla behörigheter.","consent.privacy-policy-label":"Integritetspolicy","consent.remember-label":"Kom ihåg detta val till nästa gång. Applikationen kommer inte att kunna be om ytterligare tillstånd utan ditt medgivande.","consent.remember-tooltip":"kom ihåg mitt val","consent.requested-permissions-label":"Applikationen begär åtkomst till följande behörigheter:","consent.terms-of-service-label":"Användarvillkor","error.back-button":"Tillbaka","error.description":"Ett fel uppstod med följande meddelande:","error.support-email-link":"Om problemet kvarstår, vänligen kontakta <a>{contactSupportEmail}</a>","error.title":"Ett fel uppstod","error.title-internal-server-error":"Internt serverfel","error.title-not-found":"404 - Sidan hittades ej","identities.messages.1010001":"Logga in","identities.messages.1010002":"Logga in med {provider}","identities.messages.1010003":"Bekräfta denna åtgärd genom att verifiera att det är du.","identities.messages.1010004":"Vänligen slutför den andra autentiseringsutmaningen.","identities.messages.1010005":"Verifiera","identities.messages.1010006":"Autentiseringskod","identities.messages.1010007":"Återställningskod för backup","identities.messages.1010008":"Använd säkerhetsnyckel","identities.messages.1010009":"Använd autentiserings-app","identities.messages.1010010":"Använd reservåterställningskod","identities.messages.1010011":"Fortsätt med säkerhetsnyckel","identities.messages.1010012":"Förbered din WebAuthn-enhet (t.ex. säkerhetsnyckel, biometriska skanner, ...) och tryck på fortsätt.","identities.messages.1010013":"Fortsätt","identities.messages.1010014":"Ett e-postmeddelande som innehåller en kod har skickats till den e-postadress du angett. Om du inte har fått ett mejl, kontrollera stavningen av adressen och försök logga in igen.","identities.messages.1010015":"Logga in med kod","identities.messages.1010016":'Du försökte logga in med "{duplicateIdentifier}", men den e-postadressen används redan av ett annat konto. Logga in på ditt konto med ett av alternativen nedan för att lägga till ditt konto "{duplicateIdentifier}" hos "{provider}" som ett annat inloggningsalternativ.',"identities.messages.1010017":"Logga in och länka","identities.messages.1010018":"Bekräfta med {provider}","identities.messages.1010019":"Begär kod för att fortsätta","identities.messages.1010021":"Logga in med passkey","identities.messages.1010022":"Logga in med lösenord","identities.messages.1010023":"Skicka kod till {address}","identities.messages.1040001":"Skapa konto","identities.messages.1040002":"Registrera dig med {provider}","identities.messages.1040003":"Fortsätt","identities.messages.1040004":"Registrera med säkerhetsnyckel","identities.messages.1040005":"Ett e-postmeddelande som innehåller en kod har skickats till den e-postadress du angett. Om du inte har fått ett e-postmeddelande, kontrollera stavningen av adressen och försök igen med registreringen.","identities.messages.1040006":"Registrera med kod","identities.messages.1040007":"Registrera med passkey","identities.messages.1040008":"Tillbaka","identities.messages.1040009":"Vänligen välj en autentiseringsmetod.","identities.messages.1050001":"Dina ändringar har sparats!","identities.messages.1050002":"Koppla på {provider}","identities.messages.1050003":"Koppla bort {provider}","identities.messages.1050004":"Koppla bort TOTP Autentisering-App","identities.messages.1050005":"Autentisering-app QR kod","identities.messages.1050006":"{secret}","identities.messages.1050007":"Visa reservåterställningskoder","identities.messages.1050008":"Generera nya reservåterställningskoder","identities.messages.1050009":"{secret}","identities.messages.1050010":"Det här är dina reservåterställningskoder. Förvara dem på ett säkert ställe!","identities.messages.1050011":"Bekräfta reservåterställningskoder","identities.messages.1050012":"Lägg till säkerhetsnyckel","identities.messages.1050013":"Säkerhetsnyckelns namn","identities.messages.1050014":"<del>Använd</del>","identities.messages.1050015":"{secrets_list}","identities.messages.1050016":"Inaktivera den här metoden","identities.messages.1050017":"Det här är din hemlighet för din autentiseringsapp. Använd den om du inte kan skanna QR-koden.","identities.messages.1050018":'Ta bort säkerhetsnyckel "{display_name}"',"identities.messages.1050019":"Lägg till passkey","identities.messages.1050020":'Ta bort passkey "{display_name}"',"identities.messages.1060001":"Du har lyckats återställa ditt konto. Ändra ditt lösenord eller ställ in en alternativ inloggningsmetod (t.ex. social inloggning) inom de närmaste {privileged_session_expires_at_unix_until_minutes} minuterna.","identities.messages.1060002":"Ett e-postmeddelande som innehåller en återställningslänk har skickats till den e-postadress du angett. Om du inte har fått ett mejl, kontrollera stavningen på adressen och se till att använda adressen du registrerade dig med.","identities.messages.1060003":"Ett e-postmeddelande som innehåller en återställningskod har skickats till den e-postadress du angett. Om du inte har fått ett mejl, kontrollera stavningen på adressen och se till att använda adressen du registrerade dig med.","identities.messages.1070001":"Lösenord","identities.messages.1070002":"{title}","identities.messages.1070003":"Spara","identities.messages.1070004":"ID","identities.messages.1070005":"Skicka","identities.messages.1070006":"Verifiera kod","identities.messages.1070007":"E-post","identities.messages.1070008":"Skicka koden igen","identities.messages.1070009":"Fortsätt","identities.messages.1070010":"Återställningskod","identities.messages.1070011":"Verifieringskod","identities.messages.1070012":"Registreringskod","identities.messages.1070013":"Inloggningskod","identities.messages.1070014":"Logga in och länka autentiseringsuppgifter","identities.messages.1070015":"Vänligen slutför captcha-utmaningen för att fortsätta.","identities.messages.1080001":"Ett e-postmeddelande med en verifieringslänk har skickats till den e-postadress du angett. Om du inte har fått ett mejl, kontrollera stavningen på adressen och se till att använda adressen du registrerade dig med.","identities.messages.1080002":"Du har verifierat din e-postadress.","identities.messages.1080003":"Ett e-postmeddelande som innehåller en verifieringskod har skickats till den e-postadress du angett. Om du inte har fått ett mejl, kontrollera stavningen på adressen och se till att använda adressen du registrerade dig med.","identities.messages.4000001":"{reason}","identities.messages.4000002":"Egenskap {property} saknas.","identities.messages.4000003":"längd måste vara >= {min_length}, men var {actual_length}","identities.messages.4000004":'matchar inte mönstret "{pattern}"',"identities.messages.4000005":"Lösenordet kan inte användas pga {reason}.","identities.messages.4000006":"De angivna uppgifterna är ogiltiga. Kontrollera om det finns stavfel i ditt lösenord eller användarnamn, e-postadress eller telefonnummer.","identities.messages.4000007":"Ett konto med samma identifierare (e-post, telefon, användarnamn, ...) finns redan.","identities.messages.4000008":"Den angivna autentiseringskoden är ogiltig, försök igen.","identities.messages.4000009":"Det gick inte att hitta några inloggningsidentifierare. Har du glömt att ställa in dem? Detta kan också orsakas av en felaktig serverkonfiguration.","identities.messages.4000010":"Kontot är inte aktivt ännu. Har du glömt att verifiera din e-postadress?","identities.messages.4000011":"Du har ingen TOTP-enhet konfigurerad.","identities.messages.4000012":"Denna backup-återställningskod har redan använts.","identities.messages.4000013":"Du har ingen WebAuthn-enhet konfigurerad.","identities.messages.4000014":"Du har inga backup-återställningskoder konfigurerade.","identities.messages.4000015":"Det här kontot finns inte eller har ingen säkerhetsnyckel konfigurerad.","identities.messages.4000016":"Backup-återställningskoden är inte giltig.","identities.messages.4000017":"längd måste vara <= {max_length}, men var {actual_length}","identities.messages.4000018":"måste vara >= {minimum} men var {actual}","identities.messages.4000019":"måste vara > {minimum} men var {actual}","identities.messages.4000020":"måste vara <= {maximum} men var {actual}","identities.messages.4000021":"måste vara < {maximum} men var {actual}","identities.messages.4000022":"{actual} är inte en multipel av {base}","identities.messages.4000023":"maximalt {max_items} objekt tillåtna, men hittade {actual_items} objekt","identities.messages.4000024":"minst {min_items} objekt tillåtna, men hittade {actual_items} objekt","identities.messages.4000025":"objekt vid index {index_a} och {index_b} är lika","identities.messages.4000026":"förväntade {allowed_types_list}, men var {actual_type}","identities.messages.4000027":"Ett konto med samma identifierare (e-post, telefon, användarnamn, ...) finns redan. Logga in på ditt befintliga konto och länka din sociala profil på inställningssidan.","identities.messages.4000028":"Du försökte logga in med {credential_identifier_hint} som redan används av ett annat konto. Du kan logga in med {available_credential_types_list}. Du kan logga in med någon av följande sociala inloggningsleverantörer: {Available_oidc_providers_list}.","identities.messages.4000029":"måste vara lika med konstant {expected}","identities.messages.4000030":"const misslyckades","identities.messages.4000031":"Lösenordet kan inte användas eftersom det är för likt identifieraren.","identities.messages.4000032":"Lösenordet måste vara minst {min_length} tecken långt, men är {actual_length}.","identities.messages.4000033":"Lösenordet får vara högst {max_length} tecken långt, men är {actual_length}.","identities.messages.4000034":"Lösenordet har hittats vid dataintrång och får inte längre användas.","identities.messages.4000035":"Det här kontot finns inte eller har inte konfigurerat inloggning med kod.","identities.messages.4000036":"De angivna egenskaperna matchar inte de egenskaper som tidigare associerats med detta flöde.","identities.messages.4010001":"Inloggningsflödet upphörde för {expired_at_unix_since_minutes} minuter sedan, var vänlig försök igen.","identities.messages.4010002":"Kunde inte hitta en strategi att logga in dig med. Fyllde du i formuläret korrekt?","identities.messages.4010003":"Kunde inte hitta en strategi att registrera dig med. Fyllde du i formuläret korrekt?","identities.messages.4010004":"Kunde inte hitta en strategi för att uppdatera dina inställningar. Fyllde du i formuläret korrekt?","identities.messages.4010005":"Kunde inte hitta en strategi att återställa ditt konto med. Fyllde du i formuläret korrekt?","identities.messages.4010006":"Kunde inte hitta en strategi att verifiera ditt konto med. Fyllde du i formuläret korrekt?","identities.messages.4010007":"Begäran har redan slutförts framgångsrikt och kan inte göras igen.","identities.messages.4010008":"Inloggningskoden är ogiltig eller har redan använts. Var vänlig försök igen.","identities.messages.4010009":"Länkade autentiseringsuppgifter matchar inte.","identities.messages.4010010":"Adressen du angav matchar inte några kända adresser i det aktuella kontot.","identities.messages.4040001":"Registreringsflödet gick ut för {expired_at_unix_since_minutes} minuter sedan, försök igen.","identities.messages.4040002":"Begäran har redan slutförts framgångsrikt och kan inte göras igen.","identities.messages.4040003":"Registreringskoden är ogiltig eller har redan använts. Var vänlig försök igen.","identities.messages.4050001":"Inställningsflödet gick ut för {expired_at_unix_since_minutes} minuter sedan, var vänlig försök igen.","identities.messages.4060001":"Begäran har redan slutförts framgångsrikt och kan inte göras igen.","identities.messages.4060002":"Återställningsflödet nådde ett feltillstånd och måste försökas igen.","identities.messages.4060004":"Återställningstoken är ogiltig eller har redan använts. Var vänlig försök flödet igen.","identities.messages.4060005":"Återställningsflödet gick ut för {expired_at_unix_since_minutes} minuter sedan, var vänlig försök igen.","identities.messages.4060006":"Återställningskoden är ogiltig eller har redan använts. Var vänlig försök igen.","identities.messages.4070001":"Verifieringstoken är ogiltig eller har redan använts. Var vänlig försök flödet igen.","identities.messages.4070002":"Begäran har redan slutförts framgångsrikt och kan inte göras igen.","identities.messages.4070003":"Verifieringsflödet nådde ett feltillstånd och måste försökas igen.","identities.messages.4070005":"Verifieringsflödet gick ut för {expired_at_unix_since_minutes} minuter sedan, var vänlig försök igen.","identities.messages.4070006":"Verifieringskoden är ogiltig eller har redan använts. Var vänlig försök igen.","identities.messages.5000001":"{reason}","login.cancel-button":"Avbryt","login.cancel-label":"Fel konto?","login.forgot-password":"Glömt lösenord?","login.logged-in-as-label":"Du är inloggad som:","login.logout-button":"Logga ut","login.logout-label":"Är det något som inte fungerar?","login.registration-button":"Skapa konto","login.registration-label":"Har du inget konto?","login.subtitle-oauth2":"Att autentisera {clientName}","login.title":"Logga in","login.title-aal2":"Tvåfaktorsautentisering","login.title-refresh":"Bekräfta att det är du","logout.accept-button":"Ja","logout.reject-button":"Nej","logout.title":"Vill du logga ut?","recovery.login-button":"Logga in","recovery.login-label":"Kan du ditt inlogg?","recovery.title":"Återställ ditt konto","registration.login-button":"Logga in","registration.login-label":"Har du redan ett konto?","registration.subtitle-oauth2":"Att autentisera {clientName}","registration.title":"Skapa ett konto","settings.navigation-back-button":"Tillbaka","settings.navigation-backup-codes":"2FA backupkoder","settings.navigation-logout":"Logga ut","settings.navigation-oidc":"Social Inloggning","settings.navigation-password":"Lösenord","settings.navigation-profile":"Profil","settings.navigation-totp":"Autentiserings App","settings.navigation-webauthn":"Hårdvaru Tokens","settings.navigation-passkey":"Passkeys","settings.subtitle-instructions":"Här kan du hantera inställningar relaterade till ditt konto. Tänk på att vissa åtgärder kräver att du autentiseras på nytt.","settings.title":"Kontoinställningar","verification.registration-button":"Skapa konto","verification.registration-label":"Har du inget konto?","verification.title":"Verifiera ditt konto","verification.back-button":"Tillbaka","two-step.code.description":"En verifieringskod kommer att skickas till din e-post","two-step.code.title":"E-postkod","two-step.passkey.description":"Använd din enhets fingeravtryck eller ansiktsigenkänning","two-step.passkey.title":"Passerkod (rekommenderad)","two-step.password.description":"Ange ditt lösenord kopplat till ditt konto","two-step.password.title":"Lösenord","two-step.webauthn.description":"Använd din säkerhetsnyckel för att autentisera","two-step.webauthn.title":"Säkerhetsnyckel","identities.messages.4000037":"Detta konto finns inte eller har ingen inloggningsmetod konfigurerad.","identities.messages.4000038":"Captcha-verifiering misslyckades, försök igen.","identities.messages.1010020":"","input.placeholder":"Ange din {placeholder}","card.header.description.login":"Logga in med {identifierLabel}","card.header.description.registration":"Registrera dig med {identifierLabel}","card.header.parts.code":"en kod skickad till din e-post","card.header.parts.identifier-first":"din {identifierLabel}","card.header.parts.oidc":"en social leverantör","card.header.parts.passkey":"en Passkey","card.header.parts.password.login":"din {identifierLabel} och lösenord","card.header.parts.password.registration":"din {identifierLabel} och ett lösenord","card.header.parts.webauthn":"en säkerhetsnyckel","forms.label.forgot-password":"Glömt Lösenord?","login.subtitle":"Logga in med {parts}","login.subtitle-refresh":"Bekräfta din identitet med {parts}","misc.or":"eller","recovery.subtitle":"Ange e-postadressen kopplad till ditt konto för att få en engångskod för åtkomst","registration.subtitle":"Registrera dig med {parts}","settings.subtitle":"Uppdatera dina kontoinställningar","verification.subtitle":"Ange e-postadressen kopplad till ditt konto för att verifiera det","settings.totp.info.linked":"Du har för närvarande en autentiseringsapp kopplad.","settings.totp.info.not-linked":"För att aktivera, skanna QR-koden med din autentiserare och ange koden.","settings.totp.title":"","settings.totp.description":"Lägg till en TOTP-autentiseringsapp till ditt konto för att förbättra säkerheten på ditt konto. Populära autentiseringsappar är LastPass och Google Authenticator.","settings.lookup_secret.description":"Återställningskoder är en säker backup för 2FA, vilket gör att du kan återfå åtkomst till ditt konto om du tappar bort din 2FA-enhet.","settings.lookup_secret.title":"Backup-återställningskoder (andra faktorn)","settings.navigation.title":"Kontoinställningar","settings.oidc.description":"Anslut en social inloggningsleverantör till ditt konto.","settings.oidc.info":"Anslutna konton från dessa leverantörer kan användas för att logga in på ditt konto","settings.oidc.title":"Anslutna konton","settings.passkey.description":"Hantera dina lösenordsinställningar","settings.passkey.info":"Hantera dina lösenordsinställningar","settings.passkey.title":"Hantera lösenord","settings.password.description":"Ändra ditt lösenord","settings.password.title":"Ändra lösenord","settings.profile.description":"Uppdatera din profilinformation","settings.profile.title":"Profilinställningar","settings.title-lookup-secret":"Hantera 2FA Backup Recovery-koder","settings.title-navigation":"Kontoinställningar","settings.title-oidc":"Social logga in","settings.title-passkey":"Hantera lösenord","settings.title-password":"Ändra lösenord","settings.title-profile":"Profilinställningar","settings.title-totp":"Hantera 2FA TOTP Authenticator-appen","settings.title-webauthn":"Hantera maskinvarutokens","settings.webauthn.description":"Hantera inställningarna för din maskinvarutoken","settings.webauthn.info":"Hårdvarutokens används för andrafaktorsautentisering eller som förstafaktor med lösenordsnycklar","settings.webauthn.title":"Hantera maskinvarutokens","card.footer.select-another-method":"Välj en annan metod","account-linking.title":"Länka ditt konto"},as={en:sf,de:af,es:df,fr:uf,nl:lf,pl:cf,pt:mf,sv:pf};function gf(e,t){return e.request_url||ff(t,e.return_to)}function eo(e,t,n){const i=`${e}/self-service/${t}/browser`,r=new URLSearchParams;if(n.oauth2_login_challenge&&r.set("login_challenge",n.oauth2_login_challenge),n.return_to)r.set("return_to",n.return_to);else if(typeof window<"u"){const o=new URLSearchParams(window.location.search);o.has("return_to")&&r.set("return_to",o.get("return_to")||"")}return r.toString().length===0?i:i+"?"+r.toString()}function ff(e,t){if(!t)return e;const n=new URL(e);return n.searchParams.set("return_to",t),n.toString()}function Ya(){const{flowType:e}=de();switch(e){case J.Login:return d.jsx(hf,{});case J.Registration:return d.jsx(vf,{});case J.Recovery:return d.jsx(bf,{});case J.Verification:return d.jsx(wf,{});default:return null}}function hf(){const{config:e,formState:t,flow:n}=de(),i=pe();return!e.project.registration_enabled||t.current!=="provide_identifier"?null:d.jsxs("span",{className:"font-normal leading-normal antialiased text-interface-foreground-default-primary",children:[i.formatMessage({id:"login.registration-label",defaultMessage:"No account?"})," ",d.jsx("a",{className:"text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",href:eo(e.sdk.url,"registration",n),"data-testid":"ory/screen/registration/action/login",children:i.formatMessage({id:"login.registration-button",defaultMessage:"Sign up"})})]})}function yf(e){return e.find(t=>t.attributes.node_type==="input"&&t.attributes.type==="submit"&&t.attributes.name==="screen")}function vf(){const e=pe(),{config:t,flow:n,formState:i}=de(),{setValue:r}=ge();if(i.current==="select_method")return null;const o=yf(n.ui.nodes);function s(){r("method","profile"),o&&r("screen","credential-selection")}return d.jsx("span",{className:"font-normal leading-normal antialiased",children:i.current==="method_active"?d.jsx(d.Fragment,{children:o&&d.jsx("button",{className:"font-medium text-button-link-brand-brand hover:text-button-link-brand-brand-hover",type:"submit",onClick:s,children:e.formatMessage({id:"card.footer.select-another-method",defaultMessage:"Select another method"})})}):d.jsxs(d.Fragment,{children:[e.formatMessage({id:"registration.login-label",defaultMessage:"Already have an account?"})," ",d.jsx("a",{className:"text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",href:eo(t.sdk.url,"login",n),"data-testid":"ory/screen/registration/action/login",children:e.formatMessage({id:"registration.login-button",defaultMessage:"Sign in"})})]})})}function bf(){return null}function wf(){return null}Ya.__docgenInfo={description:"",methods:[],displayName:"DefaultCardFooter"};function Xi(e,t="or"){if(e.length===0)return".";if(e.length===1)return e[0];{const n=e.pop();return`${e.join(", ")} ${t} ${n}`}}function Cf(e,t){var o,s;const n=e.nodes,i=pe();switch(t.flowType){case J.Recovery:return n.find(a=>"name"in a.attributes&&a.attributes.name==="code")?{title:i.formatMessage({id:"recovery.title"}),description:i.formatMessage({id:"identities.messages.1060003"})}:{title:i.formatMessage({id:"recovery.title"}),description:i.formatMessage({id:"recovery.subtitle"})};case J.Settings:return{title:i.formatMessage({id:"settings.title"}),description:i.formatMessage({id:"settings.subtitle"})};case J.Verification:return n.find(a=>"name"in a.attributes&&a.attributes.name==="code")?{title:i.formatMessage({id:"verification.title"}),description:i.formatMessage({id:"identities.messages.1080003"})}:{title:i.formatMessage({id:"verification.title"}),description:i.formatMessage({id:"verification.subtitle"})};case J.Login:{const a=(o=e.messages)==null?void 0:o.find(u=>u.id===1010016);if(a)return{title:i.formatMessage({id:"account-linking.title"}),description:i.formatMessage({id:"identities.messages.1010016"},a.context)}}}const r=[];if(n.find(a=>a.group==="password"))switch(t.flowType){case J.Registration:r.push(i.formatMessage({id:"card.header.parts.password.registration"},{identifierLabel:"email"}));break;default:r.push(i.formatMessage({id:"card.header.parts.password.login"},{identifierLabel:"email"}))}if(n.find(a=>a.group==="oidc")&&r.push(i.formatMessage({id:"card.header.parts.oidc"})),n.find(a=>a.group==="code")&&r.push(i.formatMessage({id:"card.header.parts.code"})),n.find(a=>a.group==="passkey")&&r.push(i.formatMessage({id:"card.header.parts.passkey"})),n.find(a=>a.group==="webauthn")&&r.push(i.formatMessage({id:"card.header.parts.webauthn"})),n.find(a=>a.group==="identifier_first")){const a=n.find(u=>Kt(u.attributes)&&u.attributes.name.startsWith("identifier")&&u.attributes.type!=="hidden");a&&r.push(i.formatMessage({id:"card.header.parts.identifier-first"},{identifierLabel:(s=a.meta.label)==null?void 0:s.text}))}switch(t.flowType){case J.Login:return t.flow.refresh?{title:i.formatMessage({id:"login.title-refresh"}),description:i.formatMessage({id:"login.subtitle-refresh"},{parts:Xi(r)})}:{title:i.formatMessage({id:"login.title"}),description:r.length>0?i.formatMessage({id:"login.subtitle"},{parts:Xi(r,i.formatMessage({id:"misc.or"}))}):""};case J.Registration:return{title:i.formatMessage({id:"registration.title"}),description:r.length>0?i.formatMessage({id:"registration.subtitle"},{parts:Xi(r,i.formatMessage({id:"misc.or"}))}):""}}return{title:"Error",description:"An error occurred"}}const kf=e=>l.createElement("svg",{viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"arrow-left"},l.createElement("path",{id:"Vector",d:"M5 12.3253H19M5 12.3253L11 18.3253M5 12.3253L11 6.32529",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})));function xf(e,t){const n={...e};for(const i of t)delete n[i];return n}function Qa(){const{flow:e,flowType:t,config:n,formState:i}=de(),r=e.ui;if(i.current==="provide_identifier")return null;const o=Tf(t,r.nodes);if((o==null?void 0:o.attributes.node_type)!=="input"||!o.attributes.value)return null;const s=gf(e,`${n.sdk.url}/self-service/${t}/browser`),a=xf(o.attributes,["autocomplete","node_type","maxlength"]);return d.jsx("a",{className:"group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-full border px-[11px] py-[5px] transition-colors border-button-identifier-border-border-default bg-button-identifier-background-default hover:border-button-identifier-border-border-hover hover:bg-button-identifier-background-hover",...a,href:s,title:`Adjust ${o==null?void 0:o.attributes.value}`,"data-testid":"ory/screen/login/action/restart",children:d.jsxs("span",{className:"inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis",children:[d.jsx(kf,{size:16,stroke:"1",className:"shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"}),d.jsx("span",{className:"overflow-hidden text-ellipsis text-nowrap text-sm font-medium text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover",children:o==null?void 0:o.attributes.value})]})})}function Tf(e,t){let n;switch(e){case J.Login:n=t.find(i=>"name"in i.attributes&&i.attributes.name==="identifier"&&["default","identifier_first"].includes(i.group));break;case J.Registration:n=Sf(t);break;case J.Recovery:case J.Verification:n=t.find(i=>"name"in i.attributes&&i.attributes.name==="email");break}return n}const _f=["traits.email","traits.username","traits.phone_number"];function Sf(e){return e.find(t=>"name"in t.attributes&&_f.includes(t.attributes.name)&&t.group==="default")}Qa.__docgenInfo={description:"",methods:[],displayName:"DefaultCurrentIdentifierButton"};function Nf({title:e,text:t}){const{Card:n}=ue();return d.jsxs("header",{className:"flex flex-col gap-8 antialiased",children:[d.jsx(n.Logo,{}),d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx("h2",{className:"text-lg font-semibold leading-normal text-interface-foreground-default-primary",children:e}),d.jsx("p",{className:"leading-normal text-interface-foreground-default-secondary",children:t}),d.jsx(Qa,{})]})]})}function ed(){const e=de(),{title:t,description:n}=Cf(e.flow.ui,e);return d.jsx(Nf,{title:t,text:n})}ed.__docgenInfo={description:"",methods:[],displayName:"DefaultCardHeader"};function td(){const e=de();return e.config.logoUrl?d.jsx("img",{src:e.config.logoUrl,width:100,height:36,alt:"Logo"}):d.jsx("h1",{className:"text-xl font-semibold leading-normal text-interface-foreground-default-primary",children:e.config.name})}td.__docgenInfo={description:"",methods:[],displayName:"DefaultCardLogo"};function nd({children:e}){return d.jsx("div",{className:"flex flex-1 sm:items-center justify-center font-sans items-start w-full sm:w-[480px] sm:max-w-[480px]",children:d.jsxs("div",{className:"relative grid grid-cols-1 gap-8 sm:rounded-cards sm:border border-form-border-default bg-form-background-default px-8 py-12 sm:px-12 sm:py-14 border-b w-full",children:[e,d.jsx(Ws,{})]})})}nd.__docgenInfo={description:"",methods:[],displayName:"DefaultCard"};function id(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=id(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Pf(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=id(e))&&(i&&(i+=" "),i+=t);return i}const to="-",Ef=e=>{const t=Af(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const a=s.split(to);return a[0]===""&&a.length!==1&&a.shift(),rd(a,t)||Of(s)},getConflictingClassGroupIds:(s,a)=>{const u=n[s]||[];return a&&i[s]?[...u,...i[s]]:u}}},rd=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),r=i?rd(e.slice(1),i):void 0;if(r)return r;if(t.validators.length===0)return;const o=e.join(to);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},ds=/^\[(.+)\]$/,Of=e=>{if(ds.test(e)){const t=ds.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Af=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return If(Object.entries(e.classGroups),n).forEach(([o,s])=>{wr(s,i,o,t)}),i},wr=(e,t,n,i)=>{e.forEach(r=>{if(typeof r=="string"){const o=r===""?t:us(t,r);o.classGroupId=n;return}if(typeof r=="function"){if(Rf(r)){wr(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([o,s])=>{wr(s,us(t,o),n,i)})})},us=(e,t)=>{let n=e;return t.split(to).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},Rf=e=>e.isThemeGetter,If=(e,t)=>t?e.map(([n,i])=>{const r=i.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,r]}):e,Mf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const r=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=i.get(o))!==void 0)return r(o,s),s},set(o,s){n.has(o)?n.set(o,s):r(o,s)}}},od="!",Ff=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,r=t[0],o=t.length,s=a=>{const u=[];let c=0,m=0,p;for(let b=0;b<a.length;b++){let w=a[b];if(c===0){if(w===r&&(i||a.slice(b,b+o)===t)){u.push(a.slice(m,b)),m=b+o;continue}if(w==="/"){p=b;continue}}w==="["?c++:w==="]"&&c--}const g=u.length===0?a:a.substring(m),f=g.startsWith(od),y=f?g.substring(1):g,h=p&&p>m?p-m:void 0;return{modifiers:u,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:s}):s},Lf=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},Uf=e=>({cache:Mf(e.cacheSize),parseClassName:Ff(e),...Ef(e)}),Df=/\s+/,Bf=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,o=[],s=e.trim().split(Df);let a="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{modifiers:m,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=n(c);let y=!!f,h=i(y?g.substring(0,f):g);if(!h){if(!y){a=c+(a.length>0?" "+a:a);continue}if(h=i(g),!h){a=c+(a.length>0?" "+a:a);continue}y=!1}const b=Lf(m).join(":"),w=p?b+od:b,k=w+h;if(o.includes(k))continue;o.push(k);const T=r(h,y);for(let _=0;_<T.length;++_){const S=T[_];o.push(w+S)}a=c+(a.length>0?" "+a:a)}return a};function Hf(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=sd(t))&&(i&&(i+=" "),i+=n);return i}const sd=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=sd(e[i]))&&(n&&(n+=" "),n+=t);return n};function qf(e,...t){let n,i,r,o=s;function s(u){const c=t.reduce((m,p)=>p(m),e());return n=Uf(c),i=n.cache.get,r=n.cache.set,o=a,a(u)}function a(u){const c=i(u);if(c)return c;const m=Bf(u,n);return r(u,m),m}return function(){return o(Hf.apply(null,arguments))}}const le=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ad=/^\[(?:([a-z-]+):)?(.+)\]$/i,jf=/^\d+\/\d+$/,zf=new Set(["px","full","screen"]),Vf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$f=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Kf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pt=e=>jt(e)||zf.has(e)||jf.test(e),yt=e=>Zt(e,"length",n0),jt=e=>!!e&&!Number.isNaN(Number(e)),Yi=e=>Zt(e,"number",jt),on=e=>!!e&&Number.isInteger(Number(e)),Jf=e=>e.endsWith("%")&&jt(e.slice(0,-1)),Z=e=>ad.test(e),vt=e=>Vf.test(e),Zf=new Set(["length","size","percentage"]),Xf=e=>Zt(e,Zf,dd),Yf=e=>Zt(e,"position",dd),Qf=new Set(["image","url"]),e0=e=>Zt(e,Qf,r0),t0=e=>Zt(e,"",i0),sn=()=>!0,Zt=(e,t,n)=>{const i=ad.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},n0=e=>Wf.test(e)&&!Gf.test(e),dd=()=>!1,i0=e=>$f.test(e),r0=e=>Kf.test(e),o0=()=>{const e=le("colors"),t=le("spacing"),n=le("blur"),i=le("brightness"),r=le("borderColor"),o=le("borderRadius"),s=le("borderSpacing"),a=le("borderWidth"),u=le("contrast"),c=le("grayscale"),m=le("hueRotate"),p=le("invert"),g=le("gap"),f=le("gradientColorStops"),y=le("gradientColorStopPositions"),h=le("inset"),b=le("margin"),w=le("opacity"),k=le("padding"),T=le("saturate"),_=le("scale"),S=le("sepia"),F=le("skew"),E=le("space"),I=le("translate"),G=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",Z,t],P=()=>[Z,t],M=()=>["",pt,yt],q=()=>["auto",jt,Z],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",Z],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[jt,Z];return{cacheSize:500,separator:":",theme:{colors:[sn],spacing:[pt,yt],blur:["none","",vt,Z],brightness:ee(),borderColor:[e],borderRadius:["none","","full",vt,Z],borderSpacing:P(),borderWidth:M(),contrast:ee(),grayscale:R(),hueRotate:ee(),invert:R(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Jf,yt],inset:j(),margin:j(),opacity:ee(),padding:P(),saturate:ee(),scale:ee(),sepia:R(),skew:ee(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[vt]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),Z]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",on,Z]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",on,Z]}],"grid-cols":[{"grid-cols":[sn]}],"col-start-end":[{col:["auto",{span:["full",on,Z]},Z]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[sn]}],"row-start-end":[{row:["auto",{span:[on,Z]},Z]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[vt]},vt]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",vt,yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yi]}],"font-family":[{font:[sn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",jt,Yi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pt,yt]}],"underline-offset":[{"underline-offset":["auto",pt,Z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),Yf]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xf]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},e0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:V()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[pt,Z]}],"outline-w":[{outline:[pt,yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[pt,yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",vt,t0]}],"shadow-color":[{shadow:[sn]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",vt,Z]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[p]}],saturate:[{saturate:[T]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[on,Z]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pt,yt,Yi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},s0=qf(o0);function Se(...e){return s0(Pf(e))}const a0=e=>l.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M27.7337 11.5504C27.6 11.6284 24.4174 13.2743 24.4174 16.9237C24.5674 21.0857 28.4337 22.5452 28.5 22.5452C28.4337 22.6232 27.9163 24.5335 26.3837 26.536C25.1674 28.2609 23.8174 30 21.7674 30C19.8174 30 19.1174 28.8504 16.8674 28.8504C14.4511 28.8504 13.7674 30 11.9173 30C9.86734 30 8.41734 28.1677 7.13473 26.459C5.46842 24.2225 4.05211 20.7129 4.00211 17.3431C3.96842 15.5574 4.33581 13.8021 5.26842 12.3111C6.58473 10.2296 8.93473 8.81667 11.501 8.77008C13.4674 8.70829 15.2174 10.0281 16.4174 10.0281C17.5674 10.0281 19.7174 8.77008 22.15 8.77008C23.2 8.77109 26 9.06584 27.7337 11.5504ZM16.2511 8.41354C15.9011 6.78281 16.8674 5.15208 17.7674 4.11185C18.9174 2.85386 20.7337 2 22.3 2C22.4 3.63073 21.7663 5.23007 20.6337 6.39488C19.6174 7.65287 17.8674 8.59991 16.2511 8.41354Z",fill:"#283544",id:"apple-svg"})),d0=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",...e},l.createElement("path",{d:"M49.012 51.774L42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z",fill:"#eb5424"})),u0=e=>l.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M2 11.6C2 8.23969 2 6.55953 2.65396 5.27606C3.2292 4.14708 4.14708 3.2292 5.27606 2.65396C6.55953 2 8.23969 2 11.6 2H20.4C23.7603 2 25.4405 2 26.7239 2.65396C27.8529 3.2292 28.7708 4.14708 29.346 5.27606C30 6.55953 30 8.23969 30 11.6V20.4C30 23.7603 30 25.4405 29.346 26.7239C28.7708 27.8529 27.8529 28.7708 26.7239 29.346C25.4405 30 23.7603 30 20.4 30H11.6C8.23969 30 6.55953 30 5.27606 29.346C4.14708 28.7708 3.2292 27.8529 2.65396 26.7239C2 25.4405 2 23.7603 2 20.4V11.6Z",fill:"none"}),l.createElement("path",{d:"M23.6361 9.33998C22.212 8.71399 20.6892 8.25903 19.0973 8C18.9018 8.33209 18.6734 8.77875 18.5159 9.13408C16.8236 8.89498 15.1469 8.89498 13.4857 9.13408C13.3283 8.77875 13.0946 8.33209 12.8974 8C11.3037 8.25903 9.77927 8.71565 8.35518 9.3433C5.48276 13.4213 4.70409 17.3981 5.09342 21.3184C6.99856 22.6551 8.84487 23.467 10.66 23.9983C11.1082 23.4189 11.5079 22.8029 11.8523 22.1536C11.1964 21.9195 10.5683 21.6306 9.9748 21.2951C10.1323 21.1856 10.2863 21.071 10.4351 20.9531C14.0551 22.5438 17.9881 22.5438 21.5649 20.9531C21.7154 21.071 21.8694 21.1856 22.0251 21.2951C21.4299 21.6322 20.8 21.9211 20.1442 22.1553C20.4885 22.8029 20.8865 23.4205 21.3364 24C23.1533 23.4687 25.0013 22.6567 26.9065 21.3184C27.3633 16.7738 26.1261 12.8335 23.6361 9.33998ZM12.3454 18.9075C11.2587 18.9075 10.3676 17.9543 10.3676 16.7937C10.3676 15.6331 11.2397 14.6783 12.3454 14.6783C13.4511 14.6783 14.3422 15.6314 14.3232 16.7937C14.325 17.9543 13.4511 18.9075 12.3454 18.9075ZM19.6545 18.9075C18.5678 18.9075 17.6767 17.9543 17.6767 16.7937C17.6767 15.6331 18.5488 14.6783 19.6545 14.6783C20.7602 14.6783 21.6514 15.6314 21.6323 16.7937C21.6323 17.9543 20.7602 18.9075 19.6545 18.9075Z",fill:"#5865F2"})),l0=e=>l.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"social/facebook"},l.createElement("circle",{id:"bg",cx:16,cy:16,r:14,fill:"url(#paint0_linear_6273_95321)"}),l.createElement("path",{id:"f",d:"M21.2137 20.2816L21.8356 16.3301H17.9452V13.767C17.9452 12.6857 18.4877 11.6311 20.2302 11.6311H22V8.26699C22 8.26699 20.3945 8 18.8603 8C15.6548 8 13.5617 9.89294 13.5617 13.3184V16.3301H10V20.2816H13.5617V29.8345C14.2767 29.944 15.0082 30 15.7534 30C16.4986 30 17.2302 29.944 17.9452 29.8345V20.2816H21.2137Z",fill:"white"})),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_6273_95321",x1:16,y1:2,x2:16,y2:29.917,gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#18ACFE"}),l.createElement("stop",{offset:1,stopColor:"#0163E0"})))),c0=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-brand-oauth",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e},l.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.createElement("path",{d:"M12 12m-10 0a10 10 0 1 0 20 0a10 10 0 1 0 -20 0"}),l.createElement("path",{d:"M12.556 6c.65 0 1.235 .373 1.508 .947l2.839 7.848a1.646 1.646 0 0 1 -1.01 2.108a1.673 1.673 0 0 1 -2.068 -.851l-.46 -1.052h-2.73l-.398 .905a1.67 1.67 0 0 1 -1.977 1.045l-.153 -.047a1.647 1.647 0 0 1 -1.056 -1.956l2.824 -7.852a1.664 1.664 0 0 1 1.409 -1.087l1.272 -.008z"})),m0=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},l.createElement("path",{d:"M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z"})),p0=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M22.7082 10.6913L22.677 10.6188L19.6617 3.45202C19.6004 3.31155 19.4917 3.1924 19.3514 3.11165C19.211 3.03227 19.0472 2.99403 18.8822 3.00211C18.7172 3.01019 18.5588 3.06419 18.4286 3.15682C18.2998 3.25211 18.2063 3.38123 18.161 3.52661L16.125 9.19952H7.88075L5.84478 3.52661C5.80063 3.38044 5.70698 3.25067 5.57717 3.15577C5.44691 3.06314 5.28858 3.00914 5.12355 3.00106C4.95853 2.99298 4.79475 3.03121 4.65434 3.11059C4.51434 3.19167 4.4058 3.31073 4.34405 3.45097L1.32297 10.6146L1.29297 10.6871C0.858905 11.72 0.805326 12.8534 1.14032 13.9164C1.4753 14.9795 2.1807 15.9145 3.15015 16.5806L3.16053 16.588L3.18821 16.6058L7.78155 19.7385L10.054 21.3049L11.4382 22.2567C11.6001 22.3686 11.7978 22.4292 12.0011 22.4292C12.2044 22.4292 12.4021 22.3686 12.5641 22.2567L13.9483 21.3049L16.2207 19.7385L20.8418 16.5869L20.8533 16.5785C21.8206 15.9123 22.5243 14.9782 22.8588 13.9166C23.1933 12.855 23.1404 11.7232 22.7082 10.6913Z",fill:"#E24329"}),l.createElement("path",{d:"M22.7081 10.6913L22.677 10.6188C21.2077 10.8935 19.8232 11.4603 18.6224 12.2787L12 16.8391C14.2551 18.3928 16.2184 19.7428 16.2184 19.7428L20.8394 16.5911L20.851 16.5827C21.8196 15.9166 22.5245 14.9819 22.8594 13.9194C23.1944 12.8568 23.1413 11.724 22.7081 10.6913Z",fill:"#FC6D26"}),l.createElement("path",{d:"M7.78149 19.7427L10.0539 21.3091L11.4382 22.2608C11.6001 22.3728 11.7978 22.4334 12.0011 22.4334C12.2044 22.4334 12.4021 22.3728 12.564 22.2608L13.9482 21.3091L16.2207 19.7427C16.2207 19.7427 14.2551 18.3886 11.9999 16.839C9.74479 18.3886 7.78149 19.7427 7.78149 19.7427Z",fill:"#FCA326"}),l.createElement("path",{d:"M5.37645 12.2786C4.17655 11.4585 2.79233 10.8903 1.32297 10.6146L1.29297 10.6871C0.858905 11.72 0.805326 12.8534 1.14032 13.9164C1.4753 14.9795 2.1807 15.9145 3.15015 16.5806L3.16053 16.588L3.18821 16.6058L7.78155 19.7385C7.78155 19.7385 9.74254 18.3886 12 16.8348L5.37645 12.2786Z",fill:"#FC6D26"})),g0=e=>l.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M30.0014 16.3109C30.0014 15.1598 29.9061 14.3198 29.6998 13.4487H16.2871V18.6442H24.1601C24.0014 19.9354 23.1443 21.8798 21.2395 23.1864L21.2128 23.3604L25.4536 26.58L25.7474 26.6087C28.4458 24.1665 30.0014 20.5731 30.0014 16.3109Z",fill:"#4285F4"}),l.createElement("path",{d:"M16.2862 30C20.1433 30 23.3814 28.7555 25.7465 26.6089L21.2386 23.1865C20.0322 24.011 18.4132 24.5866 16.2862 24.5866C12.5085 24.5866 9.30219 22.1444 8.15923 18.7688L7.9917 18.7827L3.58202 22.1272L3.52435 22.2843C5.87353 26.8577 10.6989 30 16.2862 30Z",fill:"#34A853"}),l.createElement("path",{d:"M8.16007 18.7688C7.85848 17.8977 7.68395 16.9643 7.68395 15.9999C7.68395 15.0354 7.85849 14.1021 8.1442 13.231L8.13621 13.0455L3.67126 9.64734L3.52518 9.71544C2.55696 11.6132 2.0014 13.7444 2.0014 15.9999C2.0014 18.2555 2.55696 20.3865 3.52518 22.2843L8.16007 18.7688Z",fill:"#FBBC05"}),l.createElement("path",{d:"M16.2863 7.4133C18.9688 7.4133 20.7783 8.54885 21.8101 9.4978L25.8418 5.64C23.3657 3.38445 20.1434 2 16.2863 2C10.699 2 5.87354 5.1422 3.52435 9.71549L8.14339 13.2311C9.30223 9.85555 12.5086 7.4133 16.2863 7.4133Z",fill:"#EB4335"})),f0=e=>l.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("rect",{x:2,y:2,rx:14,fill:"#1275B1"}),l.createElement("path",{d:"M12.6186 9.69215C12.6186 10.6267 11.8085 11.3843 10.8093 11.3843C9.81004 11.3843 9 10.6267 9 9.69215C9 8.7576 9.81004 8 10.8093 8C11.8085 8 12.6186 8.7576 12.6186 9.69215Z",fill:"white"}),l.createElement("path",{d:"M9.24742 12.6281H12.3402V22H9.24742V12.6281Z",fill:"white"}),l.createElement("path",{d:"M17.3196 12.6281H14.2268V22H17.3196C17.3196 22 17.3196 19.0496 17.3196 17.2049C17.3196 16.0976 17.6977 14.9855 19.2062 14.9855C20.911 14.9855 20.9008 16.4345 20.8928 17.5571C20.8824 19.0244 20.9072 20.5219 20.9072 22H24V17.0537C23.9738 13.8954 23.1508 12.4401 20.4433 12.4401C18.8354 12.4401 17.8387 13.1701 17.3196 13.8305V12.6281Z",fill:"white"})),h0=e=>l.createElement("svg",{viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M1 1h10v10H1V1Z",fill:"#F35325"}),l.createElement("path",{d:"M12 1h10v10H12V1Z",fill:"#81BC06"}),l.createElement("path",{d:"M1 12h10v10H1V12Z",fill:"#05A6F0"}),l.createElement("path",{d:"M12 12h10v10H12V12Z",fill:"#FFBA08"})),y0=e=>l.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M26.5002 14.9998C27.8808 14.9998 29 13.8806 29 12.5C29 11.1194 27.8807 10.0002 26.5001 10.0002C25.1194 10.0002 24 11.1195 24 12.5002V14.9998H26.5002ZM19.5 14.9998C20.8807 14.9998 22 13.8805 22 12.4998V5.50018C22 4.11947 20.8807 3.00018 19.5 3.00018C18.1193 3.00018 17 4.11947 17 5.50018V12.4998C17 13.8805 18.1193 14.9998 19.5 14.9998Z",fill:"#2EB67D"}),l.createElement("path",{d:"M5.49979 17.0002C4.11919 17.0002 3 18.1194 3 19.5C3 20.8806 4.1193 21.9998 5.49989 21.9998C6.8806 21.9998 8 20.8805 8 19.4998V17.0002H5.49979ZM12.5 17.0002C11.1193 17.0002 10 18.1195 10 19.5002V26.4998C10 27.8805 11.1193 28.9998 12.5 28.9998C13.8807 28.9998 15 27.8805 15 26.4998V19.5002C15 18.1195 13.8807 17.0002 12.5 17.0002Z",fill:"#E01E5A"}),l.createElement("path",{d:"M17.0002 26.5002C17.0002 27.8808 18.1194 29 19.5 29C20.8806 29 21.9998 27.8807 21.9998 26.5001C21.9998 25.1194 20.8805 24 19.4998 24L17.0002 24L17.0002 26.5002ZM17.0002 19.5C17.0002 20.8807 18.1195 22 19.5002 22L26.4998 22C27.8805 22 28.9998 20.8807 28.9998 19.5C28.9998 18.1193 27.8805 17 26.4998 17L19.5002 17C18.1195 17 17.0002 18.1193 17.0002 19.5Z",fill:"#ECB22E"}),l.createElement("path",{d:"M14.9998 5.49979C14.9998 4.11919 13.8806 3 12.5 3C11.1194 3 10.0002 4.1193 10.0002 5.49989C10.0002 6.88061 11.1195 8 12.5002 8L14.9998 8L14.9998 5.49979ZM14.9998 12.5C14.9998 11.1193 13.8805 10 12.4998 10L5.50018 10C4.11947 10 3.00018 11.1193 3.00018 12.5C3.00018 13.8807 4.11947 15 5.50018 15L12.4998 15C13.8805 15 14.9998 13.8807 14.9998 12.5Z",fill:"#36C5F0"})),v0=e=>l.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("circle",{cx:16,cy:16,r:14,fill:"#1ED760"}),l.createElement("path",{d:"M22.3643 21.623C22.1252 22.0025 21.6149 22.1087 21.2163 21.881C18.075 20.0593 14.1364 19.6494 9.48023 20.6514C9.03375 20.7425 8.58728 20.4844 8.4916 20.0593C8.39593 19.6343 8.667 19.2092 9.11348 19.1181C14.2002 18.0099 18.5693 18.4805 22.0773 20.5299C22.476 20.7576 22.6035 21.2434 22.3643 21.623ZM23.9908 18.1617C23.6878 18.6323 23.05 18.769 22.5557 18.4957C18.9679 16.3856 13.4985 15.7783 9.25699 17.008C8.6989 17.1598 8.12485 16.8714 7.96539 16.3552C7.80594 15.8239 8.1089 15.2774 8.667 15.1256C13.5145 13.7289 19.542 14.3969 23.6719 16.8106C24.1343 17.0839 24.2938 17.6911 23.9908 18.1617ZM24.1343 14.5487C19.829 12.1197 12.7332 11.892 8.61917 13.0761C7.96539 13.2735 7.26378 12.9243 7.05649 12.2867C6.8492 11.6643 7.23189 10.9964 7.88567 10.799C12.6056 9.43274 20.4509 9.70599 25.394 12.4993C25.984 12.8332 26.1754 13.5619 25.8246 14.1236C25.4897 14.7005 24.7243 14.8978 24.1343 14.5487Z",fill:"white"})),b0=e=>l.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("circle",{cx:16,cy:16,r:14,fill:"white"}),l.createElement("path",{d:"M21 25H17.8571V9.43465H16.4546C13.8834 9.43465 12.5327 10.7291 12.5327 12.646C12.5327 14.8211 13.4677 15.8315 15.3895 17.1266L16.9739 18.1887L12.4026 25H9L13.1038 18.9137C10.7405 17.2299 9.41569 15.5984 9.41569 12.8274C9.41569 9.35654 11.8315 7 16.4287 7H21V25Z",fill:"#FC3F1D"})),Gn={apple:a0,auth0:d0,discord:u0,facebook:l0,generic:c0,github:m0,gitlab:p0,google:g0,linkedin:f0,microsoft:h0,slack:y0,spotify:v0,yandex:b0};function Mt({className:e}){return d.jsxs("svg",{"aria-hidden":"true",role:"status",className:Se("absolute pointer-events-none inset-0 m-auto size-8 animate-spin",e),viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("g",{clipPath:"url(#clip0_2572_1748)",children:d.jsx("path",{d:"M23.364 10.6362C22.1053 9.37751 20.5016 8.52034 18.7558 8.17307C17.01 7.82581 15.2004 8.00404 13.5559 8.68523C11.9113 9.36641 10.5057 10.52 9.51678 12C8.52784 13.4801 8 15.2201 8 17.0001C8 18.7802 8.52784 20.5202 9.51678 22.0003C10.5057 23.4803 11.9113 24.6339 13.5559 25.3151C15.2004 25.9962 17.01 26.1745 18.7558 25.8272C20.5016 25.4799 22.1053 24.6228 23.364 23.3641",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),d.jsx("defs",{children:d.jsx("clipPath",{id:"clip0_2572_1748",children:d.jsx("rect",{width:"24",height:"24",fill:"currentColor",transform:"translate(17 0.029541) rotate(45)"})})})]})}Mt.__docgenInfo={description:"",methods:[],displayName:"Spinner",props:{className:{required:!1,tsType:{name:"string"},description:""}}};function ud(e){if(e&&typeof e=="object"&&"provider"in e&&typeof e.provider=="string")return e.provider}function pn({attributes:e,node:t,onClick:n,showLabel:i,logos:r}){var _;const o={...Gn,...r},{node_type:s,type:a,name:u,...c}=e,{flow:{ui:m}}=de(),[p,g]=l.useState(!1),f=pe(),{formState:{isSubmitting:y}}=ge(),h=m.nodes.filter(S=>S.group==="oidc").length??0,b=o[e.value.split("-")[0]],w=i??(h%3!==0&&h%4!==0),k=ud((_=t.meta.label)==null?void 0:_.context)??"",T=()=>{g(!0),n==null||n()};return l.useEffect(()=>{y||g(!1)},[y]),d.jsxs("button",{className:"gap-3 border border-button-social-border-default bg-button-social-background-default hover:bg-button-social-background-hover transition-colors rounded flex items-center justify-center px-4 py-[13px] loading:bg-button-social-background-disabled loading:border-button-social-border-disabled loading:text-button-social-foreground-disabled hover:text-button-social-foreground-hover",value:e.value,type:"submit",name:"provider","data-testid":`ory/form/node/input/${e.name}`,...c,onClick:T,"data-loading":p,disabled:y,children:[d.jsx("span",{className:"size-5 relative",children:p?d.jsx(Mt,{className:"size-5"}):b?d.jsx(b,{size:20}):d.jsx("span",{className:"flex aspect-square items-center justify-center rounded-full border text-xs",children:k.slice(0,2)})}),w&&t.meta.label?d.jsx("span",{className:"grow text-left font-medium leading-none text-button-social-foreground-default",children:Xe(t.meta.label,f)}):null]})}pn.WithLogos=e=>t=>d.jsx(pn,{...t,logos:e});function ld({children:e,nodes:t}){return d.jsx("div",{className:Se("grid gap-3",{"grid-cols-1":t.length%4<=2,"grid-cols-3":t.length%3===0,"grid-cols-4":t.length>1&&t.length%4===0}),children:e})}pn.__docgenInfo={description:"",methods:[{name:"WithLogos",docblock:`Returns a variant of DefaultButtonSocial that can use your own logos
870
-
871
- @param logos - a record of provider names and their respective logos
872
- @returns a variant of DefaultButtonSocial that uses the provided logos`,modifiers:["static"],params:[{name:"logos",description:"a record of provider names and their respective logos",optional:!1,type:{name:"Record",elements:[{name:"string"},{name:"ElementType"}],raw:"Record<string, ElementType>",alias:"Record"}}],returns:{description:"a variant of DefaultButtonSocial that uses the provided logos"},description:"Returns a variant of DefaultButtonSocial that can use your own logos"}],displayName:"DefaultButtonSocial",props:{node:{required:!0,tsType:{name:"UiNode"},description:""},attributes:{required:!0,tsType:{name:"UiNodeInputAttributes"},description:""},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},showLabel:{required:!1,tsType:{name:"boolean"},description:""},logos:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"ElementType"}],raw:"Record<string, ElementType>"},description:""}}};ld.__docgenInfo={description:"",methods:[],displayName:"DefaultSocialButtonContainer"};function cd({children:e,onSubmit:t,action:n,method:i}){return d.jsx("form",{onSubmit:t,noValidate:!0,action:n,method:i,className:"grid gap-8",children:e})}function md({children:e}){const{flowType:t}=de();return!e||Array.isArray(e)&&e.length===0?null:d.jsx("section",{className:Se(t===J.Settings?"text-center":"text-left"),children:e})}function pd({message:e}){const t=pe();return d.jsx("span",{className:Se("leading-normal",e.type==="error"&&"text-interface-foreground-validation-danger",e.type==="info"&&"text-interface-foreground-default-secondary",e.type==="success"&&"text-interface-foreground-validation-success"),...Qr(e),children:Xe(e,t)})}cd.__docgenInfo={description:"",methods:[],displayName:"DefaultFormContainer",props:{onSubmit:{required:!0,tsType:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>"},description:""}}};md.__docgenInfo={description:"",methods:[],displayName:"DefaultMessageContainer"};pd.__docgenInfo={description:"",methods:[],displayName:"DefaultMessage",props:{message:{required:!0,tsType:{name:"UiText"},description:""}}};const w0=e=>l.createElement("svg",{viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6.33333 10.6663H2.33333C1.97971 10.6663 1.64057 10.5259 1.39052 10.2758C1.14048 10.0258 1 9.68663 1 9.33301V2.66634M1 2.66634C1 2.31272 1.14048 1.97358 1.39052 1.72353C1.64057 1.47348 1.97971 1.33301 2.33333 1.33301H11.6667C12.0203 1.33301 12.3594 1.47348 12.6095 1.72353C12.8595 1.97358 13 2.31272 13 2.66634M1 2.66634L7 6.66634L13 2.66634M13 2.66634V6.66634M12.3333 11.9997L13.6667 10.6663L12.3333 9.33301M10.3333 9.33301L9 10.6663L10.3333 11.9997",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),gd=e=>l.createElement("svg",{viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M10.6016 3.66656C11.2046 4.66735 11.4622 5.83846 11.3349 6.9999V7.66656C11.3342 8.36848 11.5181 9.05824 11.8683 9.66656M3.33492 6.33323C3.33492 5.62599 3.61587 4.94771 4.11597 4.44761C4.61607 3.94752 5.29434 3.66656 6.00159 3.66656C6.70883 3.66656 7.38711 3.94752 7.88721 4.44761C8.3873 4.94771 8.66825 5.62599 8.66825 6.33323V6.9999C8.66825 8.44237 9.13611 9.84592 10.0016 10.9999M6.00159 6.33323V7.66656C5.99946 9.57283 6.58109 11.434 7.66826 12.9999M3.33492 8.9999C3.49806 10.3931 3.9042 11.7469 4.53492 12.9999M1.26825 11.6666C0.818417 10.1534 0.615811 8.5776 0.668252 6.99989V6.33323C0.665696 5.3958 0.910267 4.47426 1.37732 3.66146C1.84438 2.84867 2.51741 2.17334 3.32861 1.70352C4.13981 1.2337 5.06052 0.985989 5.99795 0.985353C6.93538 0.984717 7.85642 1.23118 8.66825 1.69989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),C0=e=>l.createElement("svg",{viewBox:"0 0 14 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7 0.666992V3.33366M5.66667 2.66699L8.33333 1.33366M5.66667 1.33366L8.33333 2.66699M2.33333 0.666992V3.33366M1 2.66699L3.66667 1.33366M1 1.33366L3.66667 2.66699M11.6667 0.666992V3.33366M10.3333 2.66699L13 1.33366M10.3333 1.33366L13 2.66699",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),k0=e=>l.createElement("svg",{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9 4.99988H9.00667M10.0367 1.56187L12.438 3.96321C12.6161 4.14131 12.7574 4.35276 12.8538 4.58548C12.9503 4.81821 12.9999 5.06764 12.9999 5.31954C12.9999 5.57144 12.9503 5.82087 12.8538 6.05359C12.7574 6.28631 12.6161 6.49776 12.438 6.67587L10.676 8.43787C10.4979 8.616 10.2864 8.75731 10.0537 8.85372C9.821 8.95012 9.57157 8.99974 9.31967 8.99974C9.06777 8.99974 8.81833 8.95012 8.58561 8.85372C8.35289 8.75731 8.14144 8.616 7.96333 8.43787L7.76267 8.2372L3.39067 12.6092C3.16915 12.8307 2.87672 12.9671 2.56467 12.9945L2.448 12.9999H1.66667C1.50338 12.9998 1.34578 12.9399 1.22375 12.8314C1.10173 12.7229 1.02377 12.5734 1.00467 12.4112L1 12.3332V11.5519C1.00008 11.2388 1.11029 10.9358 1.31133 10.6959L1.39067 10.6092L1.66667 10.3332H3V8.99987H4.33333V7.66654L5.76267 6.2372L5.562 6.03654C5.38387 5.85843 5.24256 5.64698 5.14615 5.41426C5.04975 5.18154 5.00013 4.9321 5.00013 4.6802C5.00013 4.42831 5.04975 4.17887 5.14615 3.94615C5.24256 3.71343 5.38387 3.50198 5.562 3.32387L7.324 1.56187C7.50211 1.38374 7.71356 1.24243 7.94628 1.14603C8.179 1.04962 8.42843 1 8.68033 1C8.93223 1 9.18167 1.04962 9.41439 1.14603C9.64711 1.24243 9.85856 1.38374 10.0367 1.56187Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),x0={code:w0,passkey:gd,password:C0,webauthn:k0};function fd({onClick:e,group:t}){const n=pe(),i=x0[t]||null;return d.jsx("div",{className:"w-full rounded px-2 py-1 hover:bg-interface-background-default-primary-hover",children:d.jsxs("button",{className:"flex cursor-pointer gap-3 py-2 text-left items-start",onClick:e,type:Xr(t)?"submit":"button","data-testid":`ory/form/auth-picker/${t}`,"aria-label":`Authenticate with ${t}`,children:[d.jsx("span",{className:"mt-1",children:i&&d.jsx(i,{size:16,className:"text-interface-foreground-brand-primary"})}),d.jsxs("span",{className:"flex-1 leading-normal inline-flex flex-col",children:[d.jsx("span",{className:"text-interface-foreground-default-primary",children:n.formatMessage({id:`two-step.${t}.title`})}),d.jsx("span",{className:"text-interface-foreground-default-secondary",children:n.formatMessage({id:`two-step.${t}.description`})})]})]})})}fd.__docgenInfo={description:"",methods:[],displayName:"DefaultAuthMethodListItem",props:{onClick:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},group:{required:!0,tsType:{name:"string"},description:""}}};function hd(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=hd(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function T0(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=hd(e))&&(i&&(i+=" "),i+=t);return i}const ls=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,cs=T0,_0=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return cs(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:o}=t,s=Object.keys(r).map(c=>{const m=n==null?void 0:n[c],p=o==null?void 0:o[c];if(m===null)return null;const g=ls(m)||ls(p);return r[c][g]}),a=n&&Object.entries(n).reduce((c,m)=>{let[p,g]=m;return g===void 0||(c[p]=g),c},{}),u=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((c,m)=>{let{class:p,className:g,...f}=m;return Object.entries(f).every(y=>{let[h,b]=y;return Array.isArray(b)?b.includes({...o,...a}[h]):{...o,...a}[h]===b})?[...c,p,g]:c},[]);return cs(e,s,u,n==null?void 0:n.class,n==null?void 0:n.className)},S0=_0(["relative flex justify-center gap-3 overflow-hidden rounded leading-none ring-1 ring-inset font-medium","disabled:cursor-not-allowed loading:cursor-wait loading:before:pointer-events-none","transition-colors duration-100 ease-linear","p-4 max-w-[488px]"],{variants:{intent:{primary:["bg-button-primary-background-default text-button-primary-foreground-default ring-button-primary-border-default","hover:bg-button-primary-background-hover hover:text-button-primary-foreground-hover hover:ring-button-primary-border-hover","disabled:bg-button-primary-background-disabled disabled:text-button-primary-foreground-disabled disabled:ring-button-primary-border-disabled","loading:bg-button-primary-background-default loading:text-button-primary-foreground-default loading:ring-button-primary-border-default","loading:before:absolute loading:before:inset-0 loading:before:bg-button-primary-background-default loading:before:opacity-80 loading:before:content-['']","disabled:bg-button-primary-background-disabled disabled:text-button-primary-foreground-disabled disabled:ring-button-primary-border-disabled"],secondary:["bg-button-secondary-background-default text-button-secondary-foreground-default ring-button-secondary-border-default","hover:bg-button-secondary-background-hover hover:text-button-secondary-foreground-hover hover:ring-button-secondary-border-hover","disabled:bg-button-secondary-background-disabled disabled:text-button-secondary-foreground-disabled disabled:ring-button-secondary-border-disabled","loading:bg-button-secondary-background-default loading:text-button-secondary-foreground-default loading:ring-button-secondary-border-default","loading:before:absolute loading:before:inset-0 loading:before:bg-button-secondary-background-default loading:before:opacity-80 loading:before:content-['']"]},defaultVariants:{intent:"primary"}}}),no=({attributes:e,node:t,onClick:n})=>{const{type:i,name:r,value:o,autocomplete:s,label:a,node_type:u,...c}=e,[m,p]=l.useState(!1),g=pe(),f=Cn(t),{formState:{isSubmitting:y},setValue:h}=ge();l.useEffect(()=>{y||p(!1)},[y]);const b=e.name==="method"||e.name.includes("passkey")||e.name.includes("webauthn")||e.name.includes("lookup_secret");return d.jsxs("button",{...c,value:o,name:r,type:i==="button"?"button":"submit",onClick:w=>{n==null||n(w),p(!0),i!=="button"&&h(r,o)},className:S0({intent:b?"primary":"secondary"}),disabled:c.disabled??y,"data-loading":m,children:[m?d.jsx(Mt,{}):null,f?d.jsx("span",{children:Xe(f,g)}):""]})};no.displayName="DefaultButton";no.__docgenInfo={description:"",methods:[],displayName:"DefaultButton",props:{attributes:{required:!0,tsType:{name:"UiNodeInputAttributes"},description:""},node:{required:!0,tsType:{name:"UiNode"},description:""}}};const N0=/\[([^\]]+)\]\(([^)]+)\)/g;function P0(e){const t=[];let n=0;for(const i of e.matchAll(N0)){const r=i[1],o=i[2],s=i.index;typeof s>"u"||(s>n&&t.push(e.slice(n,s)),t.push(d.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"text-button-link-brand-brand hover:text-button-link-brand-brand-hover underline",children:r},s)),n=s+i[0].length)}return n<e.length&&t.push(e.slice(n)),t}function yd({label:e}){const t=pe();if(!e)return null;const n=Xe(e,t);return d.jsx(d.Fragment,{children:P0(n)})}yd.__docgenInfo={description:"",methods:[],displayName:"CheckboxLabel",props:{label:{required:!1,tsType:{name:"UiText"},description:""}}};function E0(){return d.jsx("svg",{className:"absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6464 5.14645C11.8417 4.95118 12.1583 4.95118 12.3536 5.14645C12.5338 5.32669 12.5477 5.6103 12.3951 5.80645L12.3536 5.85355L7.35355 10.8536C7.17331 11.0338 6.8897 11.0477 6.69355 10.8951L6.64645 10.8536L4.14645 8.35355C3.95118 8.15829 3.95118 7.84171 4.14645 7.64645C4.32669 7.4662 4.6103 7.45234 4.80645 7.60485L4.85355 7.64645L7 9.7925L11.6464 5.14645Z"})})}const vd=({attributes:e,node:t})=>{const{value:n,name:i,autocomplete:r,onclick:o,maxlength:s,...a}=e,u=pe(),c=Cn(t),{register:m}=Ba(),p=t.messages.some(g=>g.type==="error");return d.jsxs("label",{className:"flex items-start gap-3 self-stretch antialiased",children:[d.jsxs("span",{className:"flex h-5 items-center",children:[d.jsx("input",{...a,value:1,defaultChecked:!!n,type:"checkbox",className:Se("peer size-4 border appearance-none rounded-forms bg-checkbox-background-default border-checkbox-border-checkbox-border-default checked:bg-checkbox-background-checked checked:border-checkbox-border-checkbox-border-checked",p&&"border-interface-border-validation-danger"),...m(i,{value:n})}),d.jsx(E0,{})]}),d.jsxs("span",{className:"flex flex-col",children:[d.jsx("span",{className:"font-normal leading-tight text-interface-foreground-default-primary",children:d.jsx(yd,{label:c})}),t.messages.map(g=>d.jsx("span",{className:Se("mt-1",g.type==="error"?"text-interface-foreground-validation-danger":"text-interface-foreground-default-secondary"),...Qr(g),children:Xe(g,u)},g.id))]})]})};vd.__docgenInfo={description:"",methods:[],displayName:"DefaultCheckbox",props:{attributes:{required:!0,tsType:{name:"UiNodeInputAttributes"},description:""},node:{required:!0,tsType:{name:"UiNode"},description:""},onClick:{required:!1,tsType:{name:"MouseEventHandler"},description:""}}};function bd({children:e}){return d.jsx("div",{className:"grid grid-cols-1 gap-8",children:e})}bd.__docgenInfo={description:"",methods:[],displayName:"DefaultGroupContainer"};function Xt(){return d.jsx("hr",{className:"border-interface-border-default-primary"})}Xt.__docgenInfo={description:"",methods:[],displayName:"DefaultHorizontalDivider"};function wd({attributes:e}){return d.jsx("figure",{children:d.jsx("img",{...e})})}wd.__docgenInfo={description:"",methods:[],displayName:"DefaultImage",props:{attributes:{required:!0,tsType:{name:"UiNodeImageAttributes"},description:""},node:{required:!0,tsType:{name:"UiNode"},description:""}}};const Cd=({node:e,attributes:t,onClick:n})=>{const i=Cn(e),{register:r}=ge(),{value:o,autocomplete:s,name:a,maxlength:u,node_type:c,...m}=t,p=pe(),{flowType:g}=de(),f=i?p.formatMessage({id:"input.placeholder",defaultMessage:"Enter your {placeholder}"},{placeholder:Xe(i,p)}):"";return d.jsx("input",{...m,onClick:n,maxLength:u,autoComplete:s,placeholder:f,"data-testid":`ory/form/node/input/${a}`,className:Se("antialiased rounded-forms border leading-tight transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus-visible:outline-none focus:ring-0","bg-input-background-default border-input-border-default text-input-foreground-primary","disabled:bg-input-background-disabled disabled:border-input-border-disabled disabled:text-input-foreground-disabled","focus:border-input-border-focus focus-visible:border-input-border-focus","hover:bg-input-background-hover hover:border-input-border-hover","px-4 py-[13px]",g===J.Settings&&"max-w-[488px]"),...r(a,{value:o})})};Cd.__docgenInfo={description:"",methods:[],displayName:"DefaultInput",props:{attributes:{required:!0,tsType:{name:"UiNodeInputAttributes"},description:""},node:{required:!0,tsType:{name:"UiNode"},description:""},onClick:{required:!1,tsType:{name:"MouseEventHandler"},description:""}}};function O0(e){return e.find(t=>"name"in t.attributes&&(t.attributes.name==="email"&&t.attributes.type==="submit"||t.attributes.name==="resend"))}function kd({node:e,children:t,attributes:n,...i}){const r=pe(),o=Cn(e),{Message:s}=ue(),{config:a,flowType:u,flow:c}=de(),{setValue:m,formState:p}=ge(),g=n.type==="password",f=O0(c.ui.nodes),y=()=>{f!=null&&f.attributes&&"name"in f.attributes&&m(f.attributes.name,f.attributes.value)},h=p.errors[n.name];return d.jsxs("div",{className:"flex flex-col gap-1 antialiased",children:[o&&d.jsxs("span",{className:"inline-flex justify-between",children:[d.jsx("label",{...Qr(o),className:"leading-normal text-input-foreground-primary",htmlFor:n.name,"data-testid":`ory/form/node/input/label/${n.name}`,...i,children:Xe(o,r)}),g&&a.project.recovery_enabled&&u===J.Login&&d.jsx("a",{href:eo(a.sdk.url,"recovery",c),className:"text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",children:r.formatMessage({id:"forms.label.forgot-password",defaultMessage:"Forgot password?"})}),(f==null?void 0:f.attributes.node_type)==="input"&&d.jsx("button",{type:"submit",name:f.attributes.name,value:f.attributes.value,onClick:y,className:"cursor-pointer text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",children:r.formatMessage({id:"identities.messages.1070008"})})]}),t,e.messages.map(b=>d.jsx(s.Content,{message:b},b.id)),h&&Xl(h)&&d.jsx(s.Content,{message:h})]})}kd.__docgenInfo={description:"",methods:[],displayName:"DefaultLabel",props:{attributes:{required:!0,tsType:{name:"UiNodeInputAttributes"},description:""},node:{required:!0,tsType:{name:"UiNode"},description:""}}};const io=l.forwardRef(({attributes:e,node:t},n)=>{const i=pe(),r=Cn(t);return d.jsx("a",{...e,ref:n,title:r?Xe(r,i):"","data-testid":`ory/form/node/link/${e.id}`,className:Se("antialiased rounded cursor-pointer text-center border gap-3 leading-none bg-button-primary-background-default hover:bg-button-primary-background-hover transition-colors text-button-primary-foreground-default hover:text-button-primary-foreground-hover p-4 font-medium"),children:r?Xe(r,i):""})});io.displayName="DefaultLinkButton";io.__docgenInfo={description:"",methods:[],displayName:"DefaultLinkButton"};var A0=Object.defineProperty,R0=Object.defineProperties,I0=Object.getOwnPropertyDescriptors,ni=Object.getOwnPropertySymbols,xd=Object.prototype.hasOwnProperty,Td=Object.prototype.propertyIsEnumerable,ms=(e,t,n)=>t in e?A0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M0=(e,t)=>{for(var n in t||(t={}))xd.call(t,n)&&ms(e,n,t[n]);if(ni)for(var n of ni(t))Td.call(t,n)&&ms(e,n,t[n]);return e},F0=(e,t)=>R0(e,I0(t)),L0=(e,t)=>{var n={};for(var i in e)xd.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&ni)for(var i of ni(e))t.indexOf(i)<0&&Td.call(e,i)&&(n[i]=e[i]);return n},U0="^\\d+$";function D0(e){let t=setTimeout(e,0),n=setTimeout(e,10),i=setTimeout(e,50);return[t,n,i]}function B0(e){let t=l.useRef();return l.useEffect(()=>{t.current=e}),t.current}var H0=18,_d=40,q0=`${_d}px`,j0=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function z0({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:i}){let r=l.useRef({done:!1,refocused:!1}),[o,s]=l.useState(!1),[a,u]=l.useState(!1),[c,m]=l.useState(!1),p=l.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&a,[o,a,n]),g=l.useCallback(()=>{let f=e.current,y=t.current;if(!f||!y||c||n==="none")return;let h=f,b=h.getBoundingClientRect().left+h.offsetWidth,w=h.getBoundingClientRect().top+h.offsetHeight/2,k=b-H0,T=w;if(!(document.querySelectorAll(j0).length===0&&document.elementFromPoint(k,T)===f)&&(s(!0),m(!0),!r.current.refocused&&document.activeElement===y)){let _=[y.selectionStart,y.selectionEnd];y.blur(),y.focus(),y.setSelectionRange(_[0],_[1]),r.current.refocused=!0}},[e,t,c,n]);return l.useEffect(()=>{let f=e.current;if(!f||n==="none")return;function y(){let b=window.innerWidth-f.getBoundingClientRect().right;u(b>=_d)}y();let h=setInterval(y,1e3);return()=>{clearInterval(h)}},[e,n]),l.useEffect(()=>{let f=i||document.activeElement===t.current;if(n==="none"||!f)return;let y=setTimeout(g,0),h=setTimeout(g,2e3),b=setTimeout(g,5e3),w=setTimeout(()=>{m(!0)},6e3);return()=>{clearTimeout(y),clearTimeout(h),clearTimeout(b),clearTimeout(w)}},[t,i,n,g]),{hasPWMBadge:o,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:q0}}var Sd=l.createContext({}),Nd=l.forwardRef((e,t)=>{var n=e,{value:i,onChange:r,maxLength:o,textAlign:s="left",pattern:a=U0,inputMode:u="numeric",onComplete:c,pushPasswordManagerStrategy:m="increase-width",containerClassName:p,noScriptCSSFallback:g=V0,render:f,children:y}=n,h=L0(n,["value","onChange","maxLength","textAlign","pattern","inputMode","onComplete","pushPasswordManagerStrategy","containerClassName","noScriptCSSFallback","render","children"]),b,w,k,T,_;let[S,F]=l.useState(typeof h.defaultValue=="string"?h.defaultValue:""),E=i??S,I=B0(E),G=l.useCallback(W=>{r==null||r(W),F(W)},[r]),B=l.useMemo(()=>a?typeof a=="string"?new RegExp(a):a:null,[a]),j=l.useRef(null),P=l.useRef(null),M=l.useRef({value:E,onChange:G,isIOS:typeof window<"u"&&((w=(b=window==null?void 0:window.CSS)==null?void 0:b.supports)==null?void 0:w.call(b,"-webkit-touch-callout","none"))}),q=l.useRef({prev:[(k=j.current)==null?void 0:k.selectionStart,(T=j.current)==null?void 0:T.selectionEnd,(_=j.current)==null?void 0:_.selectionDirection]});l.useImperativeHandle(t,()=>j.current,[]),l.useEffect(()=>{let W=j.current,$=P.current;if(!W||!$)return;M.current.value!==W.value&&M.current.onChange(W.value),q.current.prev=[W.selectionStart,W.selectionEnd,W.selectionDirection];function fe(){if(document.activeElement!==W){Y(null),ke(null);return}let ae=W.selectionStart,v=W.selectionEnd,C=W.selectionDirection,x=W.maxLength,A=W.value,O=q.current.prev,N=-1,L=-1,Q;if(A.length!==0&&ae!==null&&v!==null){let Hi=ae===v,en=ae===A.length&&A.length<x;if(Hi&&!en){let Je=ae;if(Je===0)N=0,L=1,Q="forward";else if(Je===x)N=Je-1,L=Je,Q="backward";else if(x>1&&A.length>1){let tn=0;if(O[0]!==null&&O[1]!==null){Q=Je<O[1]?"backward":"forward";let On=O[0]===O[1]&&O[0]<x;Q==="backward"&&!On&&(tn=-1)}N=tn+Je,L=tn+Je+1}}N!==-1&&L!==-1&&N!==L&&j.current.setSelectionRange(N,L,Q)}let he=N!==-1?N:ae,ye=L!==-1?L:v,ct=Q??C;Y(he),ke(ye),q.current.prev=[he,ye,ct]}if(document.addEventListener("selectionchange",fe,{capture:!0}),fe(),document.activeElement===W&&z(!0),!document.getElementById("input-otp-style")){let ae=document.createElement("style");if(ae.id="input-otp-style",document.head.appendChild(ae),ae.sheet){let v="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";an(ae.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),an(ae.sheet,`[data-input-otp]:autofill { ${v} }`),an(ae.sheet,`[data-input-otp]:-webkit-autofill { ${v} }`),an(ae.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),an(ae.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Pe=()=>{$&&$.style.setProperty("--root-height",`${W.clientHeight}px`)};Pe();let je=new ResizeObserver(Pe);return je.observe(W),()=>{document.removeEventListener("selectionchange",fe,{capture:!0}),je.disconnect()}},[]);let[X,V]=l.useState(!1),[K,z]=l.useState(!1),[R,Y]=l.useState(null),[ee,ke]=l.useState(null);l.useEffect(()=>{D0(()=>{var W,$,fe,Pe;(W=j.current)==null||W.dispatchEvent(new Event("input"));let je=($=j.current)==null?void 0:$.selectionStart,ae=(fe=j.current)==null?void 0:fe.selectionEnd,v=(Pe=j.current)==null?void 0:Pe.selectionDirection;je!==null&&ae!==null&&(Y(je),ke(ae),q.current.prev=[je,ae,v])})},[E,K]),l.useEffect(()=>{I!==void 0&&E!==I&&I.length<o&&E.length===o&&(c==null||c(E))},[o,c,I,E]);let Ie=z0({containerRef:P,inputRef:j,pushPasswordManagerStrategy:m,isFocused:K}),$e=l.useCallback(W=>{let $=W.currentTarget.value.slice(0,o);if($.length>0&&B&&!B.test($)){W.preventDefault();return}typeof I=="string"&&$.length<I.length&&document.dispatchEvent(new Event("selectionchange")),G($)},[o,G,I,B]),lt=l.useCallback(()=>{var W;if(j.current){let $=Math.min(j.current.value.length,o-1),fe=j.current.value.length;(W=j.current)==null||W.setSelectionRange($,fe),Y($),ke(fe)}z(!0)},[o]),Me=l.useCallback(W=>{var $,fe;let Pe=j.current;if(!M.current.isIOS||!W.clipboardData||!Pe)return;let je=W.clipboardData.getData("text/plain");W.preventDefault();let ae=($=j.current)==null?void 0:$.selectionStart,v=(fe=j.current)==null?void 0:fe.selectionEnd,C=(ae!==v?E.slice(0,ae)+je+E.slice(v):E.slice(0,ae)+je+E.slice(ae)).slice(0,o);if(C.length>0&&B&&!B.test(C))return;Pe.value=C,G(C);let x=Math.min(C.length,o-1),A=C.length;Pe.setSelectionRange(x,A),Y(x),ke(A)},[o,G,B,E]),Fe=l.useMemo(()=>({position:"relative",cursor:h.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[h.disabled]),qe=l.useMemo(()=>({position:"absolute",inset:0,width:Ie.willPushPWMBadge?`calc(100% + ${Ie.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Ie.willPushPWMBadge?`inset(0 ${Ie.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Ie.PWM_BADGE_SPACE_WIDTH,Ie.willPushPWMBadge,s]),_e=l.useMemo(()=>l.createElement("input",F0(M0({autoComplete:h.autoComplete||"one-time-code"},h),{"data-input-otp":!0,"data-input-otp-mss":R,"data-input-otp-mse":ee,inputMode:u,pattern:B==null?void 0:B.source,style:qe,maxLength:o,value:E,ref:j,onPaste:W=>{var $;Me(W),($=h.onPaste)==null||$.call(h,W)},onChange:$e,onMouseOver:W=>{var $;V(!0),($=h.onMouseOver)==null||$.call(h,W)},onMouseLeave:W=>{var $;V(!1),($=h.onMouseLeave)==null||$.call(h,W)},onFocus:W=>{var $;lt(),($=h.onFocus)==null||$.call(h,W)},onBlur:W=>{var $;z(!1),($=h.onBlur)==null||$.call(h,W)}})),[$e,lt,Me,u,qe,o,ee,R,h,B==null?void 0:B.source,E]),Ke=l.useMemo(()=>({slots:Array.from({length:o}).map((W,$)=>{let fe=K&&R!==null&&ee!==null&&(R===ee&&$===R||$>=R&&$<ee),Pe=E[$]!==void 0?E[$]:null;return{char:Pe,isActive:fe,hasFakeCaret:fe&&Pe===null}}),isFocused:K,isHovering:!h.disabled&&X}),[K,X,o,ee,R,h.disabled,E]),Nt=l.useMemo(()=>f?f(Ke):l.createElement(Sd.Provider,{value:Ke},y),[y,Ke,f]);return l.createElement(l.Fragment,null,g!==null&&l.createElement("noscript",null,l.createElement("style",null,g)),l.createElement("div",{ref:P,"data-input-otp-container":!0,style:Fe,className:p},Nt,l.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},_e)))});Nd.displayName="Input";function an(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var V0=`
873
- [data-input-otp] {
874
- --nojs-bg: white !important;
875
- --nojs-fg: black !important;
876
-
877
- background-color: var(--nojs-bg) !important;
878
- color: var(--nojs-fg) !important;
879
- caret-color: var(--nojs-fg) !important;
880
- letter-spacing: .25em !important;
881
- text-align: center !important;
882
- border: 1px solid var(--nojs-fg) !important;
883
- border-radius: 4px !important;
884
- width: 100% !important;
885
- }
886
- @media (prefers-color-scheme: dark) {
887
- [data-input-otp] {
888
- --nojs-bg: black !important;
889
- --nojs-fg: white !important;
890
- }
891
- }`;const ro=l.forwardRef(({className:e,containerClassName:t,...n},i)=>d.jsx(Nd,{ref:i,containerClassName:Se("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:Se("disabled:cursor-not-allowed",e),...n}));ro.displayName="InputOTP";const oo=l.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Se("flex items-center",e),...t}));oo.displayName="InputOTPGroup";const so=l.forwardRef(({index:e,className:t,...n},i)=>{const r=l.useContext(Sd),{char:o,hasFakeCaret:s,isActive:a}=r.slots[e];return d.jsxs("div",{ref:i,className:Se("rounded-forms border border-solid bg-input-background-default py-[15px] text-center focus-visible:outline-none w-full","relative flex items-center justify-center transition-all leading-none",a?"border-input-border-focus":"border-input-border-default",t),...n,children:[d.jsx("span",{className:"inline-block size-4",children:o}),s&&d.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:d.jsx("div",{className:"h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700"})})]})});so.displayName="InputOTPSlot";ro.__docgenInfo={description:"",methods:[],displayName:"InputOTP"};oo.__docgenInfo={description:"",methods:[],displayName:"InputOTPGroup"};so.__docgenInfo={description:"",methods:[],displayName:"InputOTPSlot"};const Pd=({attributes:e})=>{const{setValue:t,watch:n}=ge(),{maxlength:i,name:r}=e,o=i??6,{flowType:s}=de(),a=c=>{t(r,c)},u=n(r);return d.jsx(ro,{maxLength:i??6,onChange:a,name:r,value:u,children:d.jsx(oo,{className:Se("w-full flex gap-2 justify-stretch",s===J.Settings&&"max-w-[488px]"),children:[...Array(o)].map((c,m)=>d.jsx(so,{index:m},m))})})};Pd.__docgenInfo={description:"",methods:[],displayName:"DefaultPinCodeInput",props:{attributes:{required:!0,tsType:{name:"UiNodeInputAttributes"},description:""},node:{required:!0,tsType:{name:"UiNode"},description:""},onClick:{required:!1,tsType:{name:"MouseEventHandler"},description:""}}};const Ed=({children:e,nodes:t,...n})=>d.jsx("form",{className:"flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",...n,children:e}),Od=({title:e,description:t,children:n})=>d.jsxs("div",{className:"flex flex-col gap-8 rounded-t-xl border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8",children:[d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx("h3",{className:"font-medium text-interface-foreground-default-primary",children:e}),d.jsx("span",{className:"text-interface-foreground-default-secondary",children:t})]}),n]}),Ad=({children:e,text:t})=>d.jsxs("div",{className:Se("flex min-h-[72px] items-center justify-between gap-2 rounded-b-xl border border-interface-border-default-primary bg-interface-background-default-secondary px-6 py-4 text-interface-foreground-default-tertiary"),children:[d.jsx("span",{children:t}),e]});Ed.__docgenInfo={description:"",methods:[],displayName:"DefaultFormSection"};Od.__docgenInfo={description:"",methods:[],displayName:"DefaultFormSectionContent"};Ad.__docgenInfo={description:"",methods:[],displayName:"DefaultFormSectionFooter"};function Rd({node:e,attributes:t}){var i;const n=pe();return d.jsxs(d.Fragment,{children:[d.jsx("p",{"data-testid":`ory/form/node/text/${t.id}/label`,children:e.meta.label?Xe(e.meta.label,n):""}),(i=t.text.context.secrets)==null?void 0:i.map((r,o)=>d.jsx("pre",{"data-testid":"ory/form/node/text/lookup_secret_codes/text",children:d.jsx("code",{children:r?Xe(r,n):""})},o))]})}Rd.__docgenInfo={description:"",methods:[],displayName:"DefaultText",props:{attributes:{required:!0,tsType:{name:"UiNodeTextAttributes"},description:""},node:{required:!0,tsType:{name:"UiNode"},description:""}}};function ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function W0(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ai(...e){return t=>e.forEach(n=>W0(n,t))}function Ue(...e){return l.useCallback(Ai(...e),e)}function Id(e,t=[]){let n=[];function i(o,s){const a=l.createContext(s),u=n.length;n=[...n,s];const c=p=>{var w;const{scope:g,children:f,...y}=p,h=((w=g==null?void 0:g[e])==null?void 0:w[u])||a,b=l.useMemo(()=>y,Object.values(y));return d.jsx(h.Provider,{value:b,children:f})};c.displayName=o+"Provider";function m(p,g){var h;const f=((h=g==null?void 0:g[e])==null?void 0:h[u])||a,y=l.useContext(f);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[c,m]}const r=()=>{const o=n.map(s=>l.createContext(s));return function(a){const u=(a==null?void 0:a[e])||o;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return r.scopeName=e,[i,G0(r,...t)]}function G0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const s=i.reduce((a,{useScope:u,scopeName:c})=>{const p=u(o)[`__scope${c}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ye(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function Md({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,r]=$0({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:i,a=Ye(n),u=l.useCallback(c=>{if(o){const p=typeof c=="function"?c(e):c;p!==e&&a(p)}else r(c)},[o,e,r,a]);return[s,u]}function $0({defaultProp:e,onChange:t}){const n=l.useState(e),[i]=n,r=l.useRef(i),o=Ye(t);return l.useEffect(()=>{r.current!==i&&(o(i),r.current=i)},[i,r,o]),n}var gn=l.forwardRef((e,t)=>{const{children:n,...i}=e,r=l.Children.toArray(n),o=r.find(J0);if(o){const s=o.props.children,a=r.map(u=>u===o?l.Children.count(s)>1?l.Children.only(null):l.isValidElement(s)?s.props.children:null:u);return d.jsx(Cr,{...i,ref:t,children:l.isValidElement(s)?l.cloneElement(s,void 0,a):null})}return d.jsx(Cr,{...i,ref:t,children:n})});gn.displayName="Slot";var Cr=l.forwardRef((e,t)=>{const{children:n,...i}=e;if(l.isValidElement(n)){const r=X0(n);return l.cloneElement(n,{...Z0(i,n.props),ref:t?Ai(t,r):r})}return l.Children.count(n)>1?l.Children.only(null):null});Cr.displayName="SlotClone";var K0=({children:e})=>d.jsx(d.Fragment,{children:e});function J0(e){return l.isValidElement(e)&&e.type===K0}function Z0(e,t){const n={...t};for(const i in t){const r=e[i],o=t[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...a)=>{o(...a),r(...a)}:r&&(n[i]=r):i==="style"?n[i]={...r,...o}:i==="className"&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}function X0(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Y0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=Y0.reduce((e,t)=>{const n=l.forwardRef((i,r)=>{const{asChild:o,...s}=i,a=o?gn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(a,{...s,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Fd(e,t){e&&Fs.flushSync(()=>e.dispatchEvent(t))}function Q0(e,t=[]){let n=[];function i(o,s){const a=l.createContext(s),u=n.length;n=[...n,s];function c(p){const{scope:g,children:f,...y}=p,h=(g==null?void 0:g[e][u])||a,b=l.useMemo(()=>y,Object.values(y));return d.jsx(h.Provider,{value:b,children:f})}function m(p,g){const f=(g==null?void 0:g[e][u])||a,y=l.useContext(f);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,m]}const r=()=>{const o=n.map(s=>l.createContext(s));return function(a){const u=(a==null?void 0:a[e])||o;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return r.scopeName=e,[i,eh(r,...t)]}function eh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const s=i.reduce((a,{useScope:u,scopeName:c})=>{const p=u(o)[`__scope${c}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ld(e){const t=e+"CollectionProvider",[n,i]=Q0(t),[r,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=f=>{const{scope:y,children:h}=f,b=ve.useRef(null),w=ve.useRef(new Map).current;return d.jsx(r,{scope:y,itemMap:w,collectionRef:b,children:h})};s.displayName=t;const a=e+"CollectionSlot",u=ve.forwardRef((f,y)=>{const{scope:h,children:b}=f,w=o(a,h),k=Ue(y,w.collectionRef);return d.jsx(gn,{ref:k,children:b})});u.displayName=a;const c=e+"CollectionItemSlot",m="data-radix-collection-item",p=ve.forwardRef((f,y)=>{const{scope:h,children:b,...w}=f,k=ve.useRef(null),T=Ue(y,k),_=o(c,h);return ve.useEffect(()=>(_.itemMap.set(k,{ref:k,...w}),()=>void _.itemMap.delete(k))),d.jsx(gn,{[m]:"",ref:T,children:b})});p.displayName=c;function g(f){const y=o(e+"CollectionConsumer",f);return ve.useCallback(()=>{const b=y.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(y.itemMap.values()).sort((_,S)=>w.indexOf(_.ref.current)-w.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},g,i]}var th=l.createContext(void 0);function Ud(e){const t=l.useContext(th);return e||t||"ltr"}function nh(e,t=globalThis==null?void 0:globalThis.document){const n=Ye(e);l.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var ih="DismissableLayer",kr="dismissableLayer.update",rh="dismissableLayer.pointerDownOutside",oh="dismissableLayer.focusOutside",ps,Dd=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bd=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...u}=e,c=l.useContext(Dd),[m,p]=l.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=l.useState({}),y=Ue(t,E=>p(E)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(b),k=m?h.indexOf(m):-1,T=c.layersWithOutsidePointerEventsDisabled.size>0,_=k>=w,S=dh(E=>{const I=E.target,G=[...c.branches].some(B=>B.contains(I));!_||G||(r==null||r(E),s==null||s(E),E.defaultPrevented||a==null||a())},g),F=uh(E=>{const I=E.target;[...c.branches].some(B=>B.contains(I))||(o==null||o(E),s==null||s(E),E.defaultPrevented||a==null||a())},g);return nh(E=>{k===c.layers.size-1&&(i==null||i(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},g),l.useEffect(()=>{if(m)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ps=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(m)),c.layers.add(m),gs(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ps)}},[m,g,n,c]),l.useEffect(()=>()=>{m&&(c.layers.delete(m),c.layersWithOutsidePointerEventsDisabled.delete(m),gs())},[m,c]),l.useEffect(()=>{const E=()=>f({});return document.addEventListener(kr,E),()=>document.removeEventListener(kr,E)},[]),d.jsx(Ae.div,{...u,ref:y,style:{pointerEvents:T?_?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,F.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,S.onPointerDownCapture)})});Bd.displayName=ih;var sh="DismissableLayerBranch",ah=l.forwardRef((e,t)=>{const n=l.useContext(Dd),i=l.useRef(null),r=Ue(t,i);return l.useEffect(()=>{const o=i.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),d.jsx(Ae.div,{...e,ref:r})});ah.displayName=sh;function dh(e,t=globalThis==null?void 0:globalThis.document){const n=Ye(e),i=l.useRef(!1),r=l.useRef(()=>{});return l.useEffect(()=>{const o=a=>{if(a.target&&!i.current){let u=function(){Hd(rh,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function uh(e,t=globalThis==null?void 0:globalThis.document){const n=Ye(e),i=l.useRef(!1);return l.useEffect(()=>{const r=o=>{o.target&&!i.current&&Hd(oh,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function gs(){const e=new CustomEvent(kr);document.dispatchEvent(e)}function Hd(e,t,n,{discrete:i}){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?Fd(r,o):r.dispatchEvent(o)}var Qi=0;function lh(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fs()),document.body.insertAdjacentElement("beforeend",e[1]??fs()),Qi++,()=>{Qi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qi--}},[])}function fs(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var er="focusScope.autoFocusOnMount",tr="focusScope.autoFocusOnUnmount",hs={bubbles:!1,cancelable:!0},ch="FocusScope",qd=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:o,...s}=e,[a,u]=l.useState(null),c=Ye(r),m=Ye(o),p=l.useRef(null),g=Ue(t,h=>u(h)),f=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(i){let h=function(T){if(f.paused||!a)return;const _=T.target;a.contains(_)?p.current=_:bt(p.current,{select:!0})},b=function(T){if(f.paused||!a)return;const _=T.relatedTarget;_!==null&&(a.contains(_)||bt(p.current,{select:!0}))},w=function(T){if(document.activeElement===document.body)for(const S of T)S.removedNodes.length>0&&bt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const k=new MutationObserver(w);return a&&k.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),k.disconnect()}}},[i,a,f.paused]),l.useEffect(()=>{if(a){vs.add(f);const h=document.activeElement;if(!a.contains(h)){const w=new CustomEvent(er,hs);a.addEventListener(er,c),a.dispatchEvent(w),w.defaultPrevented||(mh(yh(jd(a)),{select:!0}),document.activeElement===h&&bt(a))}return()=>{a.removeEventListener(er,c),setTimeout(()=>{const w=new CustomEvent(tr,hs);a.addEventListener(tr,m),a.dispatchEvent(w),w.defaultPrevented||bt(h??document.body,{select:!0}),a.removeEventListener(tr,m),vs.remove(f)},0)}}},[a,c,m,f]);const y=l.useCallback(h=>{if(!n&&!i||f.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,w=document.activeElement;if(b&&w){const k=h.currentTarget,[T,_]=ph(k);T&&_?!h.shiftKey&&w===_?(h.preventDefault(),n&&bt(T,{select:!0})):h.shiftKey&&w===T&&(h.preventDefault(),n&&bt(_,{select:!0})):w===k&&h.preventDefault()}},[n,i,f.paused]);return d.jsx(Ae.div,{tabIndex:-1,...s,ref:g,onKeyDown:y})});qd.displayName=ch;function mh(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(bt(i,{select:t}),document.activeElement!==n)return}function ph(e){const t=jd(e),n=ys(t,e),i=ys(t.reverse(),e);return[n,i]}function jd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ys(e,t){for(const n of e)if(!gh(n,{upTo:t}))return n}function gh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fh(e){return e instanceof HTMLInputElement&&"select"in e}function bt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fh(e)&&t&&e.select()}}var vs=hh();function hh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=bs(e,t),e.unshift(t)},remove(t){var n;e=bs(e,t),(n=e[0])==null||n.resume()}}}function bs(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function yh(e){return e.filter(t=>t.tagName!=="A")}var At=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},vh=pl.useId||(()=>{}),bh=0;function xr(e){const[t,n]=l.useState(vh());return At(()=>{e||n(i=>i??String(bh++))},[e]),e||(t?`radix-${t}`:"")}const wh=["top","right","bottom","left"],kt=Math.min,De=Math.max,ii=Math.round,Un=Math.floor,xt=e=>({x:e,y:e}),Ch={left:"right",right:"left",bottom:"top",top:"bottom"},kh={start:"end",end:"start"};function Tr(e,t,n){return De(e,kt(t,n))}function ft(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function Yt(e){return e.split("-")[1]}function ao(e){return e==="x"?"y":"x"}function uo(e){return e==="y"?"height":"width"}function Tt(e){return["top","bottom"].includes(ht(e))?"y":"x"}function lo(e){return ao(Tt(e))}function xh(e,t,n){n===void 0&&(n=!1);const i=Yt(e),r=lo(e),o=uo(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ri(s)),[s,ri(s)]}function Th(e){const t=ri(e);return[_r(e),t,_r(t)]}function _r(e){return e.replace(/start|end/g,t=>kh[t])}function _h(e,t,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:i:t?i:r;case"left":case"right":return t?o:s;default:return[]}}function Sh(e,t,n,i){const r=Yt(e);let o=_h(ht(e),n==="start",i);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(_r)))),o}function ri(e){return e.replace(/left|right|bottom|top/g,t=>Ch[t])}function Nh(e){return{top:0,right:0,bottom:0,left:0,...e}}function zd(e){return typeof e!="number"?Nh(e):{top:e,right:e,bottom:e,left:e}}function oi(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function ws(e,t,n){let{reference:i,floating:r}=e;const o=Tt(t),s=lo(t),a=uo(s),u=ht(t),c=o==="y",m=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,g=i[a]/2-r[a]/2;let f;switch(u){case"top":f={x:m,y:i.y-r.height};break;case"bottom":f={x:m,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:p};break;case"left":f={x:i.x-r.width,y:p};break;default:f={x:i.x,y:i.y}}switch(Yt(t)){case"start":f[s]-=g*(n&&c?-1:1);break;case"end":f[s]+=g*(n&&c?-1:1);break}return f}const Ph=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:m,y:p}=ws(c,i,u),g=i,f={},y=0;for(let h=0;h<a.length;h++){const{name:b,fn:w}=a[h],{x:k,y:T,data:_,reset:S}=await w({x:m,y:p,initialPlacement:i,placement:g,strategy:r,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});m=k??m,p=T??p,f={...f,[b]:{...f[b],..._}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:m,y:p}=ws(c,g,u)),h=-1)}return{x:m,y:p,placement:g,strategy:r,middlewareData:f}};async function fn(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:o,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:g=!1,padding:f=0}=ft(t,e),y=zd(f),b=a[g?p==="floating"?"reference":"floating":p],w=oi(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:m,strategy:u})),k=p==="floating"?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(T))?await(o.getScale==null?void 0:o.getScale(T))||{x:1,y:1}:{x:1,y:1},S=oi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:k,offsetParent:T,strategy:u}):k);return{top:(w.top-S.top+y.top)/_.y,bottom:(S.bottom-w.bottom+y.bottom)/_.y,left:(w.left-S.left+y.left)/_.x,right:(S.right-w.right+y.right)/_.x}}const Eh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:o,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:m=0}=ft(e,t)||{};if(c==null)return{};const p=zd(m),g={x:n,y:i},f=lo(r),y=uo(f),h=await s.getDimensions(c),b=f==="y",w=b?"top":"left",k=b?"bottom":"right",T=b?"clientHeight":"clientWidth",_=o.reference[y]+o.reference[f]-g[f]-o.floating[y],S=g[f]-o.reference[f],F=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let E=F?F[T]:0;(!E||!await(s.isElement==null?void 0:s.isElement(F)))&&(E=a.floating[T]||o.floating[y]);const I=_/2-S/2,G=E/2-h[y]/2-1,B=kt(p[w],G),j=kt(p[k],G),P=B,M=E-h[y]-j,q=E/2-h[y]/2+I,X=Tr(P,q,M),V=!u.arrow&&Yt(r)!=null&&q!==X&&o.reference[y]/2-(q<P?B:j)-h[y]/2<0,K=V?q<P?q-P:q-M:0;return{[f]:g[f]+K,data:{[f]:X,centerOffset:q-X-K,...V&&{alignmentOffset:K}},reset:V}}}),Oh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:o,rects:s,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...b}=ft(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=ht(r),k=Tt(a),T=ht(a)===a,_=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=g||(T||!h?[ri(a)]:Th(a)),F=y!=="none";!g&&F&&S.push(...Sh(a,h,y,_));const E=[a,...S],I=await fn(t,b),G=[];let B=((i=o.flip)==null?void 0:i.overflows)||[];if(m&&G.push(I[w]),p){const q=xh(r,s,_);G.push(I[q[0]],I[q[1]])}if(B=[...B,{placement:r,overflows:G}],!G.every(q=>q<=0)){var j,P;const q=(((j=o.flip)==null?void 0:j.index)||0)+1,X=E[q];if(X)return{data:{index:q,overflows:B},reset:{placement:X}};let V=(P=B.filter(K=>K.overflows[0]<=0).sort((K,z)=>K.overflows[1]-z.overflows[1])[0])==null?void 0:P.placement;if(!V)switch(f){case"bestFit":{var M;const K=(M=B.filter(z=>{if(F){const R=Tt(z.placement);return R===k||R==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(R=>R>0).reduce((R,Y)=>R+Y,0)]).sort((z,R)=>z[1]-R[1])[0])==null?void 0:M[0];K&&(V=K);break}case"initialPlacement":V=a;break}if(r!==V)return{reset:{placement:V}}}return{}}}};function Cs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ks(e){return wh.some(t=>e[t]>=0)}const Ah=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=ft(e,t);switch(i){case"referenceHidden":{const o=await fn(t,{...r,elementContext:"reference"}),s=Cs(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ks(s)}}}case"escaped":{const o=await fn(t,{...r,altBoundary:!0}),s=Cs(o,n.floating);return{data:{escapedOffsets:s,escaped:ks(s)}}}default:return{}}}}};async function Rh(e,t){const{placement:n,platform:i,elements:r}=e,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=ht(n),a=Yt(n),u=Tt(n)==="y",c=["left","top"].includes(s)?-1:1,m=o&&u?-1:1,p=ft(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(f=a==="end"?y*-1:y),u?{x:f*m,y:g*c}:{x:g*c,y:f*m}}const Ih=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:o,placement:s,middlewareData:a}=t,u=await Rh(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+u.x,y:o+u.y,data:{...u,placement:s}}}}},Mh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:w,y:k}=b;return{x:w,y:k}}},...u}=ft(e,t),c={x:n,y:i},m=await fn(t,u),p=Tt(ht(r)),g=ao(p);let f=c[g],y=c[p];if(o){const b=g==="y"?"top":"left",w=g==="y"?"bottom":"right",k=f+m[b],T=f-m[w];f=Tr(k,f,T)}if(s){const b=p==="y"?"top":"left",w=p==="y"?"bottom":"right",k=y+m[b],T=y-m[w];y=Tr(k,y,T)}const h=a.fn({...t,[g]:f,[p]:y});return{...h,data:{x:h.x-n,y:h.y-i,enabled:{[g]:o,[p]:s}}}}}},Fh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=ft(e,t),m={x:n,y:i},p=Tt(r),g=ao(p);let f=m[g],y=m[p];const h=ft(a,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const T=g==="y"?"height":"width",_=o.reference[g]-o.floating[T]+b.mainAxis,S=o.reference[g]+o.reference[T]-b.mainAxis;f<_?f=_:f>S&&(f=S)}if(c){var w,k;const T=g==="y"?"width":"height",_=["top","left"].includes(ht(r)),S=o.reference[p]-o.floating[T]+(_&&((w=s.offset)==null?void 0:w[p])||0)+(_?0:b.crossAxis),F=o.reference[p]+o.reference[T]+(_?0:((k=s.offset)==null?void 0:k[p])||0)-(_?b.crossAxis:0);y<S?y=S:y>F&&(y=F)}return{[g]:f,[p]:y}}}},Lh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:o,platform:s,elements:a}=t,{apply:u=()=>{},...c}=ft(e,t),m=await fn(t,c),p=ht(r),g=Yt(r),f=Tt(r)==="y",{width:y,height:h}=o.floating;let b,w;p==="top"||p==="bottom"?(b=p,w=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,b=g==="end"?"top":"bottom");const k=h-m.top-m.bottom,T=y-m.left-m.right,_=kt(h-m[b],k),S=kt(y-m[w],T),F=!t.middlewareData.shift;let E=_,I=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=T),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(E=k),F&&!g){const B=De(m.left,0),j=De(m.right,0),P=De(m.top,0),M=De(m.bottom,0);f?I=y-2*(B!==0||j!==0?B+j:De(m.left,m.right)):E=h-2*(P!==0||M!==0?P+M:De(m.top,m.bottom))}await u({...t,availableWidth:I,availableHeight:E});const G=await s.getDimensions(a.floating);return y!==G.width||h!==G.height?{reset:{rects:!0}}:{}}}};function Ri(){return typeof window<"u"}function Qt(e){return Vd(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(Vd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vd(e){return Ri()?e instanceof Node||e instanceof Be(e).Node:!1}function Qe(e){return Ri()?e instanceof Element||e instanceof Be(e).Element:!1}function dt(e){return Ri()?e instanceof HTMLElement||e instanceof Be(e).HTMLElement:!1}function xs(e){return!Ri()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot}function Sn(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function Uh(e){return["table","td","th"].includes(Qt(e))}function Ii(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function co(e){const t=mo(),n=Qe(e)?et(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function Dh(e){let t=_t(e);for(;dt(t)&&!Gt(t);){if(co(t))return t;if(Ii(t))return null;t=_t(t)}return null}function mo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gt(e){return["html","body","#document"].includes(Qt(e))}function et(e){return Be(e).getComputedStyle(e)}function Mi(e){return Qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _t(e){if(Qt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xs(e)&&e.host||ut(e);return xs(t)?t.host:t}function Wd(e){const t=_t(e);return Gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:dt(t)&&Sn(t)?t:Wd(t)}function hn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Wd(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=Be(r);if(o){const a=Sr(s);return t.concat(s,s.visualViewport||[],Sn(r)?r:[],a&&n?hn(a):[])}return t.concat(r,hn(r,[],n))}function Sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gd(e){const t=et(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=dt(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,a=ii(n)!==o||ii(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function po(e){return Qe(e)?e:e.contextElement}function zt(e){const t=po(e);if(!dt(t))return xt(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=Gd(t);let s=(o?ii(n.width):n.width)/i,a=(o?ii(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Bh=xt(0);function $d(e){const t=Be(e);return!mo()||!t.visualViewport?Bh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Hh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Be(e)?!1:t}function Rt(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=po(e);let s=xt(1);t&&(i?Qe(i)&&(s=zt(i)):s=zt(e));const a=Hh(o,n,i)?$d(o):xt(0);let u=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,m=r.width/s.x,p=r.height/s.y;if(o){const g=Be(o),f=i&&Qe(i)?Be(i):i;let y=g,h=Sr(y);for(;h&&i&&f!==y;){const b=zt(h),w=h.getBoundingClientRect(),k=et(h),T=w.left+(h.clientLeft+parseFloat(k.paddingLeft))*b.x,_=w.top+(h.clientTop+parseFloat(k.paddingTop))*b.y;u*=b.x,c*=b.y,m*=b.x,p*=b.y,u+=T,c+=_,y=Be(h),h=Sr(y)}}return oi({width:m,height:p,x:u,y:c})}function qh(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const o=r==="fixed",s=ut(i),a=t?Ii(t.floating):!1;if(i===s||a&&o)return n;let u={scrollLeft:0,scrollTop:0},c=xt(1);const m=xt(0),p=dt(i);if((p||!p&&!o)&&((Qt(i)!=="body"||Sn(s))&&(u=Mi(i)),dt(i))){const g=Rt(i);c=zt(i),m.x=g.x+i.clientLeft,m.y=g.y+i.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+m.x,y:n.y*c.y-u.scrollTop*c.y+m.y}}function jh(e){return Array.from(e.getClientRects())}function Nr(e,t){const n=Mi(e).scrollLeft;return t?t.left+n:Rt(ut(e)).left+n}function zh(e){const t=ut(e),n=Mi(e),i=e.ownerDocument.body,r=De(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=De(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Nr(e);const a=-n.scrollTop;return et(i).direction==="rtl"&&(s+=De(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}function Vh(e,t){const n=Be(e),i=ut(e),r=n.visualViewport;let o=i.clientWidth,s=i.clientHeight,a=0,u=0;if(r){o=r.width,s=r.height;const c=mo();(!c||c&&t==="fixed")&&(a=r.offsetLeft,u=r.offsetTop)}return{width:o,height:s,x:a,y:u}}function Wh(e,t){const n=Rt(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=dt(e)?zt(e):xt(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,u=r*o.x,c=i*o.y;return{width:s,height:a,x:u,y:c}}function Ts(e,t,n){let i;if(t==="viewport")i=Vh(e,n);else if(t==="document")i=zh(ut(e));else if(Qe(t))i=Wh(t,n);else{const r=$d(e);i={...t,x:t.x-r.x,y:t.y-r.y}}return oi(i)}function Kd(e,t){const n=_t(e);return n===t||!Qe(n)||Gt(n)?!1:et(n).position==="fixed"||Kd(n,t)}function Gh(e,t){const n=t.get(e);if(n)return n;let i=hn(e,[],!1).filter(a=>Qe(a)&&Qt(a)!=="body"),r=null;const o=et(e).position==="fixed";let s=o?_t(e):e;for(;Qe(s)&&!Gt(s);){const a=et(s),u=co(s);!u&&a.position==="fixed"&&(r=null),(o?!u&&!r:!u&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Sn(s)&&!u&&Kd(e,s))?i=i.filter(m=>m!==s):r=a,s=_t(s)}return t.set(e,i),i}function $h(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?Ii(t)?[]:Gh(t,this._c):[].concat(n),i],a=s[0],u=s.reduce((c,m)=>{const p=Ts(t,m,r);return c.top=De(p.top,c.top),c.right=kt(p.right,c.right),c.bottom=kt(p.bottom,c.bottom),c.left=De(p.left,c.left),c},Ts(t,a,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Kh(e){const{width:t,height:n}=Gd(e);return{width:t,height:n}}function Jh(e,t,n){const i=dt(t),r=ut(t),o=n==="fixed",s=Rt(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const u=xt(0);if(i||!i&&!o)if((Qt(t)!=="body"||Sn(r))&&(a=Mi(t)),i){const f=Rt(t,!0,o,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else r&&(u.x=Nr(r));let c=0,m=0;if(r&&!i&&!o){const f=r.getBoundingClientRect();m=f.top+a.scrollTop,c=f.left+a.scrollLeft-Nr(r,f)}const p=s.left+a.scrollLeft-u.x-c,g=s.top+a.scrollTop-u.y-m;return{x:p,y:g,width:s.width,height:s.height}}function nr(e){return et(e).position==="static"}function _s(e,t){if(!dt(e)||et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function Jd(e,t){const n=Be(e);if(Ii(e))return n;if(!dt(e)){let r=_t(e);for(;r&&!Gt(r);){if(Qe(r)&&!nr(r))return r;r=_t(r)}return n}let i=_s(e,t);for(;i&&Uh(i)&&nr(i);)i=_s(i,t);return i&&Gt(i)&&nr(i)&&!co(i)?n:i||Dh(e)||n}const Zh=async function(e){const t=this.getOffsetParent||Jd,n=this.getDimensions,i=await n(e.floating);return{reference:Jh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Xh(e){return et(e).direction==="rtl"}const Yh={convertOffsetParentRelativeRectToViewportRelativeRect:qh,getDocumentElement:ut,getClippingRect:$h,getOffsetParent:Jd,getElementRects:Zh,getClientRects:jh,getDimensions:Kh,getScale:zt,isElement:Qe,isRTL:Xh};function Qh(e,t){let n=null,i;const r=ut(e);function o(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),o();const{left:c,top:m,width:p,height:g}=e.getBoundingClientRect();if(a||t(),!p||!g)return;const f=Un(m),y=Un(r.clientWidth-(c+p)),h=Un(r.clientHeight-(m+g)),b=Un(c),k={rootMargin:-f+"px "+-y+"px "+-h+"px "+-b+"px",threshold:De(0,kt(1,u))||1};let T=!0;function _(S){const F=S[0].intersectionRatio;if(F!==u){if(!T)return s();F?s(!1,F):i=setTimeout(()=>{s(!1,1e-7)},1e3)}T=!1}try{n=new IntersectionObserver(_,{...k,root:r.ownerDocument})}catch{n=new IntersectionObserver(_,k)}n.observe(e)}return s(!0),o}function ey(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,c=po(e),m=r||o?[...c?hn(c):[],...hn(t)]:[];m.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const p=c&&a?Qh(c,n):null;let g=-1,f=null;s&&(f=new ResizeObserver(w=>{let[k]=w;k&&k.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=f)==null||T.observe(t)})),n()}),c&&!u&&f.observe(c),f.observe(t));let y,h=u?Rt(e):null;u&&b();function b(){const w=Rt(e);h&&(w.x!==h.x||w.y!==h.y||w.width!==h.width||w.height!==h.height)&&n(),h=w,y=requestAnimationFrame(b)}return n(),()=>{var w;m.forEach(k=>{r&&k.removeEventListener("scroll",n),o&&k.removeEventListener("resize",n)}),p==null||p(),(w=f)==null||w.disconnect(),f=null,u&&cancelAnimationFrame(y)}}const ty=Ih,ny=Mh,iy=Oh,ry=Lh,oy=Ah,Ss=Eh,sy=Fh,ay=(e,t,n)=>{const i=new Map,r={platform:Yh,...n},o={...r.platform,_c:i};return Ph(e,t,{...r,platform:o})};var $n=typeof document<"u"?l.useLayoutEffect:l.useEffect;function si(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!si(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const o=r[i];if(!(o==="_owner"&&e.$$typeof)&&!si(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Zd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ns(e,t){const n=Zd(e);return Math.round(t*n)/n}function ir(e){const t=l.useRef(e);return $n(()=>{t.current=e}),t}function dy(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[m,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,f]=l.useState(i);si(g,i)||f(i);const[y,h]=l.useState(null),[b,w]=l.useState(null),k=l.useCallback(z=>{z!==F.current&&(F.current=z,h(z))},[]),T=l.useCallback(z=>{z!==E.current&&(E.current=z,w(z))},[]),_=o||y,S=s||b,F=l.useRef(null),E=l.useRef(null),I=l.useRef(m),G=u!=null,B=ir(u),j=ir(r),P=ir(c),M=l.useCallback(()=>{if(!F.current||!E.current)return;const z={placement:t,strategy:n,middleware:g};j.current&&(z.platform=j.current),ay(F.current,E.current,z).then(R=>{const Y={...R,isPositioned:P.current!==!1};q.current&&!si(I.current,Y)&&(I.current=Y,Fs.flushSync(()=>{p(Y)}))})},[g,t,n,j,P]);$n(()=>{c===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,p(z=>({...z,isPositioned:!1})))},[c]);const q=l.useRef(!1);$n(()=>(q.current=!0,()=>{q.current=!1}),[]),$n(()=>{if(_&&(F.current=_),S&&(E.current=S),_&&S){if(B.current)return B.current(_,S,M);M()}},[_,S,M,B,G]);const X=l.useMemo(()=>({reference:F,floating:E,setReference:k,setFloating:T}),[k,T]),V=l.useMemo(()=>({reference:_,floating:S}),[_,S]),K=l.useMemo(()=>{const z={position:n,left:0,top:0};if(!V.floating)return z;const R=Ns(V.floating,m.x),Y=Ns(V.floating,m.y);return a?{...z,transform:"translate("+R+"px, "+Y+"px)",...Zd(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:Y}},[n,a,V.floating,m.x,m.y]);return l.useMemo(()=>({...m,update:M,refs:X,elements:V,floatingStyles:K}),[m,M,X,V,K])}const uy=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:r}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?Ss({element:i.current,padding:r}).fn(n):{}:i?Ss({element:i,padding:r}).fn(n):{}}}},ly=(e,t)=>({...ty(e),options:[e,t]}),cy=(e,t)=>({...ny(e),options:[e,t]}),my=(e,t)=>({...sy(e),options:[e,t]}),py=(e,t)=>({...iy(e),options:[e,t]}),gy=(e,t)=>({...ry(e),options:[e,t]}),fy=(e,t)=>({...oy(e),options:[e,t]}),hy=(e,t)=>({...uy(e),options:[e,t]});var yy="Arrow",Xd=l.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...o}=e;return d.jsx(Ae.svg,{...o,ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Xd.displayName=yy;var vy=Xd;function by(e,t=[]){let n=[];function i(o,s){const a=l.createContext(s),u=n.length;n=[...n,s];function c(p){const{scope:g,children:f,...y}=p,h=(g==null?void 0:g[e][u])||a,b=l.useMemo(()=>y,Object.values(y));return d.jsx(h.Provider,{value:b,children:f})}function m(p,g){const f=(g==null?void 0:g[e][u])||a,y=l.useContext(f);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,m]}const r=()=>{const o=n.map(s=>l.createContext(s));return function(a){const u=(a==null?void 0:a[e])||o;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return r.scopeName=e,[i,wy(r,...t)]}function wy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const s=i.reduce((a,{useScope:u,scopeName:c})=>{const p=u(o)[`__scope${c}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Cy(e){const[t,n]=l.useState(void 0);return At(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let s,a;if("borderBoxSize"in o){const u=o.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var go="Popper",[Yd,Qd]=by(go),[ky,eu]=Yd(go),tu=e=>{const{__scopePopper:t,children:n}=e,[i,r]=l.useState(null);return d.jsx(ky,{scope:t,anchor:i,onAnchorChange:r,children:n})};tu.displayName=go;var nu="PopperAnchor",iu=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,o=eu(nu,n),s=l.useRef(null),a=Ue(t,s);return l.useEffect(()=>{o.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:d.jsx(Ae.div,{...r,ref:a})});iu.displayName=nu;var fo="PopperContent",[xy,Ty]=Yd(fo),ru=l.forwardRef((e,t)=>{var Fe,qe,_e,Ke,Nt,W;const{__scopePopper:n,side:i="bottom",sideOffset:r=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:f="optimized",onPlaced:y,...h}=e,b=eu(fo,n),[w,k]=l.useState(null),T=Ue(t,$=>k($)),[_,S]=l.useState(null),F=Cy(_),E=(F==null?void 0:F.width)??0,I=(F==null?void 0:F.height)??0,G=i+(o!=="center"?"-"+o:""),B=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},j=Array.isArray(c)?c:[c],P=j.length>0,M={padding:B,boundary:j.filter(Sy),altBoundary:P},{refs:q,floatingStyles:X,placement:V,isPositioned:K,middlewareData:z}=dy({strategy:"fixed",placement:G,whileElementsMounted:(...$)=>ey(...$,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[ly({mainAxis:r+I,alignmentAxis:s}),u&&cy({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?my():void 0,...M}),u&&py({...M}),gy({...M,apply:({elements:$,rects:fe,availableWidth:Pe,availableHeight:je})=>{const{width:ae,height:v}=fe.reference,C=$.floating.style;C.setProperty("--radix-popper-available-width",`${Pe}px`),C.setProperty("--radix-popper-available-height",`${je}px`),C.setProperty("--radix-popper-anchor-width",`${ae}px`),C.setProperty("--radix-popper-anchor-height",`${v}px`)}}),_&&hy({element:_,padding:a}),Ny({arrowWidth:E,arrowHeight:I}),g&&fy({strategy:"referenceHidden",...M})]}),[R,Y]=au(V),ee=Ye(y);At(()=>{K&&(ee==null||ee())},[K,ee]);const ke=(Fe=z.arrow)==null?void 0:Fe.x,Ie=(qe=z.arrow)==null?void 0:qe.y,$e=((_e=z.arrow)==null?void 0:_e.centerOffset)!==0,[lt,Me]=l.useState();return At(()=>{w&&Me(window.getComputedStyle(w).zIndex)},[w]),d.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:K?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:lt,"--radix-popper-transform-origin":[(Ke=z.transformOrigin)==null?void 0:Ke.x,(Nt=z.transformOrigin)==null?void 0:Nt.y].join(" "),...((W=z.hide)==null?void 0:W.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(xy,{scope:n,placedSide:R,onArrowChange:S,arrowX:ke,arrowY:Ie,shouldHideArrow:$e,children:d.jsx(Ae.div,{"data-side":R,"data-align":Y,...h,ref:T,style:{...h.style,animation:K?void 0:"none"}})})})});ru.displayName=fo;var ou="PopperArrow",_y={top:"bottom",right:"left",bottom:"top",left:"right"},su=l.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,o=Ty(ou,i),s=_y[o.placedSide];return d.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:d.jsx(vy,{...r,ref:n,style:{...r.style,display:"block"}})})});su.displayName=ou;function Sy(e){return e!==null}var Ny=e=>({name:"transformOrigin",options:e,fn(t){var b,w,k;const{placement:n,rects:i,middlewareData:r}=t,s=((b=r.arrow)==null?void 0:b.centerOffset)!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,m]=au(n),p={start:"0%",center:"50%",end:"100%"}[m],g=(((w=r.arrow)==null?void 0:w.x)??0)+a/2,f=(((k=r.arrow)==null?void 0:k.y)??0)+u/2;let y="",h="";return c==="bottom"?(y=s?p:`${g}px`,h=`${-u}px`):c==="top"?(y=s?p:`${g}px`,h=`${i.floating.height+u}px`):c==="right"?(y=`${-u}px`,h=s?p:`${f}px`):c==="left"&&(y=`${i.floating.width+u}px`,h=s?p:`${f}px`),{data:{x:y,y:h}}}});function au(e){const[t,n="center"]=e.split("-");return[t,n]}var Py=tu,Ey=iu,Oy=ru,Ay=su,Ry="Portal",du=l.forwardRef((e,t)=>{var a;const{container:n,...i}=e,[r,o]=l.useState(!1);At(()=>o(!0),[]);const s=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?gl.createPortal(d.jsx(Ae.div,{...i,ref:t}),s):null});du.displayName=Ry;function Iy(e,t){return l.useReducer((n,i)=>t[n][i]??n,e)}var Nn=e=>{const{present:t,children:n}=e,i=My(t),r=typeof n=="function"?n({present:i.isPresent}):l.Children.only(n),o=Ue(i.ref,Fy(r));return typeof n=="function"||i.isPresent?l.cloneElement(r,{ref:o}):null};Nn.displayName="Presence";function My(e){const[t,n]=l.useState(),i=l.useRef({}),r=l.useRef(e),o=l.useRef("none"),s=e?"mounted":"unmounted",[a,u]=Iy(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const c=Dn(i.current);o.current=a==="mounted"?c:"none"},[a]),At(()=>{const c=i.current,m=r.current;if(m!==e){const g=o.current,f=Dn(c);e?u("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(m&&g!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),At(()=>{if(t){let c;const m=t.ownerDocument.defaultView??window,p=f=>{const h=Dn(i.current).includes(f.animationName);if(f.target===t&&h&&(u("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=f=>{f.target===t&&(o.current=Dn(i.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(c=>{c&&(i.current=getComputedStyle(c)),n(c)},[])}}function Dn(e){return(e==null?void 0:e.animationName)||"none"}function Fy(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ly(e,t=[]){let n=[];function i(o,s){const a=l.createContext(s),u=n.length;n=[...n,s];function c(p){const{scope:g,children:f,...y}=p,h=(g==null?void 0:g[e][u])||a,b=l.useMemo(()=>y,Object.values(y));return d.jsx(h.Provider,{value:b,children:f})}function m(p,g){const f=(g==null?void 0:g[e][u])||a,y=l.useContext(f);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,m]}const r=()=>{const o=n.map(s=>l.createContext(s));return function(a){const u=(a==null?void 0:a[e])||o;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return r.scopeName=e,[i,Uy(r,...t)]}function Uy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const s=i.reduce((a,{useScope:u,scopeName:c})=>{const p=u(o)[`__scope${c}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var rr="rovingFocusGroup.onEntryFocus",Dy={bubbles:!1,cancelable:!0},Fi="RovingFocusGroup",[Pr,uu,By]=Ld(Fi),[Hy,lu]=Ly(Fi,[By]),[qy,jy]=Hy(Fi),cu=l.forwardRef((e,t)=>d.jsx(Pr.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Pr.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(zy,{...e,ref:t})})}));cu.displayName=Fi;var zy=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:r=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:m=!1,...p}=e,g=l.useRef(null),f=Ue(t,g),y=Ud(o),[h=null,b]=Md({prop:s,defaultProp:a,onChange:u}),[w,k]=l.useState(!1),T=Ye(c),_=uu(n),S=l.useRef(!1),[F,E]=l.useState(0);return l.useEffect(()=>{const I=g.current;if(I)return I.addEventListener(rr,T),()=>I.removeEventListener(rr,T)},[T]),d.jsx(qy,{scope:n,orientation:i,dir:y,loop:r,currentTabStopId:h,onItemFocus:l.useCallback(I=>b(I),[b]),onItemShiftTab:l.useCallback(()=>k(!0),[]),onFocusableItemAdd:l.useCallback(()=>E(I=>I+1),[]),onFocusableItemRemove:l.useCallback(()=>E(I=>I-1),[]),children:d.jsx(Ae.div,{tabIndex:w||F===0?-1:0,"data-orientation":i,...p,ref:f,style:{outline:"none",...e.style},onMouseDown:ie(e.onMouseDown,()=>{S.current=!0}),onFocus:ie(e.onFocus,I=>{const G=!S.current;if(I.target===I.currentTarget&&G&&!w){const B=new CustomEvent(rr,Dy);if(I.currentTarget.dispatchEvent(B),!B.defaultPrevented){const j=_().filter(V=>V.focusable),P=j.find(V=>V.active),M=j.find(V=>V.id===h),X=[P,M,...j].filter(Boolean).map(V=>V.ref.current);gu(X,m)}}S.current=!1}),onBlur:ie(e.onBlur,()=>k(!1))})})}),mu="RovingFocusGroupItem",pu=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:r=!1,tabStopId:o,...s}=e,a=xr(),u=o||a,c=jy(mu,n),m=c.currentTabStopId===u,p=uu(n),{onFocusableItemAdd:g,onFocusableItemRemove:f}=c;return l.useEffect(()=>{if(i)return g(),()=>f()},[i,g,f]),d.jsx(Pr.ItemSlot,{scope:n,id:u,focusable:i,active:r,children:d.jsx(Ae.span,{tabIndex:m?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:ie(e.onMouseDown,y=>{i?c.onItemFocus(u):y.preventDefault()}),onFocus:ie(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:ie(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){c.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const h=Gy(y,c.orientation,c.dir);if(h!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let w=p().filter(k=>k.focusable).map(k=>k.ref.current);if(h==="last")w.reverse();else if(h==="prev"||h==="next"){h==="prev"&&w.reverse();const k=w.indexOf(y.currentTarget);w=c.loop?$y(w,k+1):w.slice(k+1)}setTimeout(()=>gu(w))}})})})});pu.displayName=mu;var Vy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Wy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Gy(e,t,n){const i=Wy(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return Vy[i]}function gu(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function $y(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var Ky=cu,Jy=pu,Zy=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dt=new WeakMap,Bn=new WeakMap,Hn={},or=0,fu=function(e){return e&&(e.host||fu(e.parentNode))},Xy=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=fu(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Yy=function(e,t,n,i){var r=Xy(t,Array.isArray(e)?e:[e]);Hn[n]||(Hn[n]=new WeakMap);var o=Hn[n],s=[],a=new Set,u=new Set(r),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};r.forEach(c);var m=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(g){if(a.has(g))m(g);else try{var f=g.getAttribute(i),y=f!==null&&f!=="false",h=(Dt.get(g)||0)+1,b=(o.get(g)||0)+1;Dt.set(g,h),o.set(g,b),s.push(g),h===1&&y&&Bn.set(g,!0),b===1&&g.setAttribute(n,"true"),y||g.setAttribute(i,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return m(t),a.clear(),or++,function(){s.forEach(function(p){var g=Dt.get(p)-1,f=o.get(p)-1;Dt.set(p,g),o.set(p,f),g||(Bn.has(p)||p.removeAttribute(i),Bn.delete(p)),f||p.removeAttribute(n)}),or--,or||(Dt=new WeakMap,Dt=new WeakMap,Bn=new WeakMap,Hn={})}},Qy=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=Zy(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live]"))),Yy(i,r,n,"aria-hidden")):function(){return null}};/*! *****************************************************************************
892
- Copyright (c) Microsoft Corporation.
893
-
894
- Permission to use, copy, modify, and/or distribute this software for any
895
- purpose with or without fee is hereby granted.
896
-
897
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
898
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
899
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
900
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
901
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
902
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
903
- PERFORMANCE OF THIS SOFTWARE.
904
- ***************************************************************************** */var ot=function(){return ot=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ot.apply(this,arguments)};function hu(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function ev(e,t,n){for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||t)}var Kn="right-scroll-bar-position",Jn="width-before-scroll-bar",tv="with-scroll-bars-hidden",nv="--removed-body-scroll-bar-size";function sr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function iv(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var rv=typeof window<"u"?l.useLayoutEffect:l.useEffect,Ps=new WeakMap;function ov(e,t){var n=iv(null,function(i){return e.forEach(function(r){return sr(r,i)})});return rv(function(){var i=Ps.get(n);if(i){var r=new Set(i),o=new Set(e),s=n.current;r.forEach(function(a){o.has(a)||sr(a,null)}),o.forEach(function(a){r.has(a)||sr(a,s)})}Ps.set(n,e)},[e]),n}function sv(e){return e}function av(e,t){t===void 0&&(t=sv);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,i);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(i=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){i=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var u=function(){var m=s;s=[],m.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(m){s.push(m),c()},filter:function(m){return s=s.filter(m),n}}}};return r}function dv(e){e===void 0&&(e={});var t=av(null);return t.options=ot({async:!0,ssr:!1},e),t}var yu=function(e){var t=e.sideCar,n=hu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return l.createElement(i,ot({},n))};yu.isSideCarExport=!0;function uv(e,t){return e.useMedium(t),yu}var vu=dv(),ar=function(){},Li=l.forwardRef(function(e,t){var n=l.useRef(null),i=l.useState({onScrollCapture:ar,onWheelCapture:ar,onTouchMoveCapture:ar}),r=i[0],o=i[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,m=e.enabled,p=e.shards,g=e.sideCar,f=e.noIsolation,y=e.inert,h=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,k=e.gapMode,T=hu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=g,S=ov([n,t]),F=ot(ot({},T),r);return l.createElement(l.Fragment,null,m&&l.createElement(_,{sideCar:vu,removeScrollBar:c,shards:p,noIsolation:f,inert:y,setCallbacks:o,allowPinchZoom:!!h,lockRef:n,gapMode:k}),s?l.cloneElement(l.Children.only(a),ot(ot({},F),{ref:S})):l.createElement(w,ot({},F,{className:u,ref:S}),a))});Li.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Li.classNames={fullWidth:Jn,zeroRight:Kn};var lv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=lv();return t&&e.setAttribute("nonce",t),e}function mv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=cv())&&(mv(t,n),pv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fv=function(){var e=gv();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bu=function(){var e=fv(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},hv={left:0,top:0,right:0,gap:0},dr=function(e){return parseInt(e||"",10)||0},yv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[dr(n),dr(i),dr(r)]},vv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hv;var t=yv(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},bv=bu(),Vt="data-scroll-locked",wv=function(e,t,n,i){var r=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
905
- .`.concat(tv,` {
906
- overflow: hidden `).concat(i,`;
907
- padding-right: `).concat(a,"px ").concat(i,`;
908
- }
909
- body[`).concat(Vt,`] {
910
- overflow: hidden `).concat(i,`;
911
- overscroll-behavior: contain;
912
- `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
913
- padding-left: `.concat(r,`px;
914
- padding-top: `).concat(o,`px;
915
- padding-right: `).concat(s,`px;
916
- margin-left:0;
917
- margin-top:0;
918
- margin-right: `).concat(a,"px ").concat(i,`;
919
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(i,";")].filter(Boolean).join(""),`
920
- }
921
-
922
- .`).concat(Kn,` {
923
- right: `).concat(a,"px ").concat(i,`;
924
- }
925
-
926
- .`).concat(Jn,` {
927
- margin-right: `).concat(a,"px ").concat(i,`;
928
- }
929
-
930
- .`).concat(Kn," .").concat(Kn,` {
931
- right: 0 `).concat(i,`;
932
- }
933
-
934
- .`).concat(Jn," .").concat(Jn,` {
935
- margin-right: 0 `).concat(i,`;
936
- }
937
-
938
- body[`).concat(Vt,`] {
939
- `).concat(nv,": ").concat(a,`px;
940
- }
941
- `)},Es=function(){var e=parseInt(document.body.getAttribute(Vt)||"0",10);return isFinite(e)?e:0},Cv=function(){l.useEffect(function(){return document.body.setAttribute(Vt,(Es()+1).toString()),function(){var e=Es()-1;e<=0?document.body.removeAttribute(Vt):document.body.setAttribute(Vt,e.toString())}},[])},kv=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;Cv();var o=l.useMemo(function(){return vv(r)},[r]);return l.createElement(bv,{styles:wv(o,!t,r,n?"":"!important")})},Er=!1;if(typeof window<"u")try{var qn=Object.defineProperty({},"passive",{get:function(){return Er=!0,!0}});window.addEventListener("test",qn,qn),window.removeEventListener("test",qn,qn)}catch{Er=!1}var Bt=Er?{}:!1,xv=function(e){return e.tagName==="TEXTAREA"},wu=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!xv(e)&&n[t]==="visible")},Tv=function(e){return wu(e,"overflowY")},_v=function(e){return wu(e,"overflowX")},Os=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=Cu(e,i);if(r){var o=ku(e,i),s=o[1],a=o[2];if(s>a)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},Sv=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},Nv=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},Cu=function(e,t){return e==="v"?Tv(t):_v(t)},ku=function(e,t){return e==="v"?Sv(t):Nv(t)},Pv=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ev=function(e,t,n,i,r){var o=Pv(e,window.getComputedStyle(t).direction),s=o*i,a=n.target,u=t.contains(a),c=!1,m=s>0,p=0,g=0;do{var f=ku(e,a),y=f[0],h=f[1],b=f[2],w=h-b-o*y;(y||w)&&Cu(e,a)&&(p+=w,g+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(m&&(Math.abs(p)<1||!r)||!m&&(Math.abs(g)<1||!r))&&(c=!0),c},jn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},As=function(e){return[e.deltaX,e.deltaY]},Rs=function(e){return e&&"current"in e?e.current:e},Ov=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Av=function(e){return`
942
- .block-interactivity-`.concat(e,` {pointer-events: none;}
943
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
944
- `)},Rv=0,Ht=[];function Iv(e){var t=l.useRef([]),n=l.useRef([0,0]),i=l.useRef(),r=l.useState(Rv++)[0],o=l.useState(bu)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var h=ev([e.lockRef.current],(e.shards||[]).map(Rs)).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var w=jn(h),k=n.current,T="deltaX"in h?h.deltaX:k[0]-w[0],_="deltaY"in h?h.deltaY:k[1]-w[1],S,F=h.target,E=Math.abs(T)>Math.abs(_)?"h":"v";if("touches"in h&&E==="h"&&F.type==="range")return!1;var I=Os(E,F);if(!I)return!0;if(I?S=E:(S=E==="v"?"h":"v",I=Os(E,F)),!I)return!1;if(!i.current&&"changedTouches"in h&&(T||_)&&(i.current=S),!S)return!0;var G=i.current||S;return Ev(G,b,h,G==="h"?T:_,!0)},[]),u=l.useCallback(function(h){var b=h;if(!(!Ht.length||Ht[Ht.length-1]!==o)){var w="deltaY"in b?As(b):jn(b),k=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&Ov(S.delta,w)})[0];if(k&&k.should){b.cancelable&&b.preventDefault();return}if(!k){var T=(s.current.shards||[]).map(Rs).filter(Boolean).filter(function(S){return S.contains(b.target)}),_=T.length>0?a(b,T[0]):!s.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),c=l.useCallback(function(h,b,w,k){var T={name:h,delta:b,target:w,should:k,shadowParent:Mv(w)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(_){return _!==T})},1)},[]),m=l.useCallback(function(h){n.current=jn(h),i.current=void 0},[]),p=l.useCallback(function(h){c(h.type,As(h),h.target,a(h,e.lockRef.current))},[]),g=l.useCallback(function(h){c(h.type,jn(h),h.target,a(h,e.lockRef.current))},[]);l.useEffect(function(){return Ht.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",u,Bt),document.addEventListener("touchmove",u,Bt),document.addEventListener("touchstart",m,Bt),function(){Ht=Ht.filter(function(h){return h!==o}),document.removeEventListener("wheel",u,Bt),document.removeEventListener("touchmove",u,Bt),document.removeEventListener("touchstart",m,Bt)}},[]);var f=e.removeScrollBar,y=e.inert;return l.createElement(l.Fragment,null,y?l.createElement(o,{styles:Av(r)}):null,f?l.createElement(kv,{gapMode:e.gapMode}):null)}function Mv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Fv=uv(vu,Iv);var xu=l.forwardRef(function(e,t){return l.createElement(Li,ot({},e,{ref:t,sideCar:Fv}))});xu.classNames=Li.classNames;var Or=["Enter"," "],Lv=["ArrowDown","PageUp","Home"],Tu=["ArrowUp","PageDown","End"],Uv=[...Lv,...Tu],Dv={ltr:[...Or,"ArrowRight"],rtl:[...Or,"ArrowLeft"]},Bv={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Pn="Menu",[yn,Hv,qv]=Ld(Pn),[Ft,_u]=Id(Pn,[qv,Qd,lu]),Ui=Qd(),Su=lu(),[jv,Lt]=Ft(Pn),[zv,En]=Ft(Pn),Nu=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:r,onOpenChange:o,modal:s=!0}=e,a=Ui(t),[u,c]=l.useState(null),m=l.useRef(!1),p=Ye(o),g=Ud(r);return l.useEffect(()=>{const f=()=>{m.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>m.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),d.jsx(Py,{...a,children:d.jsx(jv,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:c,children:d.jsx(zv,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:g,modal:s,children:i})})})};Nu.displayName=Pn;var Vv="MenuAnchor",ho=l.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,r=Ui(n);return d.jsx(Ey,{...r,...i,ref:t})});ho.displayName=Vv;var yo="MenuPortal",[Wv,Pu]=Ft(yo,{forceMount:void 0}),Eu=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:r}=e,o=Lt(yo,t);return d.jsx(Wv,{scope:t,forceMount:n,children:d.jsx(Nn,{present:n||o.open,children:d.jsx(du,{asChild:!0,container:r,children:i})})})};Eu.displayName=yo;var Ve="MenuContent",[Gv,vo]=Ft(Ve),Ou=l.forwardRef((e,t)=>{const n=Pu(Ve,e.__scopeMenu),{forceMount:i=n.forceMount,...r}=e,o=Lt(Ve,e.__scopeMenu),s=En(Ve,e.__scopeMenu);return d.jsx(yn.Provider,{scope:e.__scopeMenu,children:d.jsx(Nn,{present:i||o.open,children:d.jsx(yn.Slot,{scope:e.__scopeMenu,children:s.modal?d.jsx($v,{...r,ref:t}):d.jsx(Kv,{...r,ref:t})})})})}),$v=l.forwardRef((e,t)=>{const n=Lt(Ve,e.__scopeMenu),i=l.useRef(null),r=Ue(t,i);return l.useEffect(()=>{const o=i.current;if(o)return Qy(o)},[]),d.jsx(bo,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ie(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Kv=l.forwardRef((e,t)=>{const n=Lt(Ve,e.__scopeMenu);return d.jsx(bo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),bo=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:g,onDismiss:f,disableOutsideScroll:y,...h}=e,b=Lt(Ve,n),w=En(Ve,n),k=Ui(n),T=Su(n),_=Hv(n),[S,F]=l.useState(null),E=l.useRef(null),I=Ue(t,E,b.onContentChange),G=l.useRef(0),B=l.useRef(""),j=l.useRef(0),P=l.useRef(null),M=l.useRef("right"),q=l.useRef(0),X=y?xu:l.Fragment,V=y?{as:gn,allowPinchZoom:!0}:void 0,K=R=>{var Fe,qe;const Y=B.current+R,ee=_().filter(_e=>!_e.disabled),ke=document.activeElement,Ie=(Fe=ee.find(_e=>_e.ref.current===ke))==null?void 0:Fe.textValue,$e=ee.map(_e=>_e.textValue),lt=s1($e,Y,Ie),Me=(qe=ee.find(_e=>_e.textValue===lt))==null?void 0:qe.ref.current;(function _e(Ke){B.current=Ke,window.clearTimeout(G.current),Ke!==""&&(G.current=window.setTimeout(()=>_e(""),1e3))})(Y),Me&&setTimeout(()=>Me.focus())};l.useEffect(()=>()=>window.clearTimeout(G.current),[]),lh();const z=l.useCallback(R=>{var ee,ke;return M.current===((ee=P.current)==null?void 0:ee.side)&&d1(R,(ke=P.current)==null?void 0:ke.area)},[]);return d.jsx(Gv,{scope:n,searchRef:B,onItemEnter:l.useCallback(R=>{z(R)&&R.preventDefault()},[z]),onItemLeave:l.useCallback(R=>{var Y;z(R)||((Y=E.current)==null||Y.focus(),F(null))},[z]),onTriggerLeave:l.useCallback(R=>{z(R)&&R.preventDefault()},[z]),pointerGraceTimerRef:j,onPointerGraceIntentChange:l.useCallback(R=>{P.current=R},[]),children:d.jsx(X,{...V,children:d.jsx(qd,{asChild:!0,trapped:r,onMountAutoFocus:ie(o,R=>{var Y;R.preventDefault(),(Y=E.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:d.jsx(Bd,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:g,onDismiss:f,children:d.jsx(Ky,{asChild:!0,...T,dir:w.dir,orientation:"vertical",loop:i,currentTabStopId:S,onCurrentTabStopIdChange:F,onEntryFocus:ie(u,R=>{w.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(Oy,{role:"menu","aria-orientation":"vertical","data-state":Gu(b.open),"data-radix-menu-content":"",dir:w.dir,...k,...h,ref:I,style:{outline:"none",...h.style},onKeyDown:ie(h.onKeyDown,R=>{const ee=R.target.closest("[data-radix-menu-content]")===R.currentTarget,ke=R.ctrlKey||R.altKey||R.metaKey,Ie=R.key.length===1;ee&&(R.key==="Tab"&&R.preventDefault(),!ke&&Ie&&K(R.key));const $e=E.current;if(R.target!==$e||!Uv.includes(R.key))return;R.preventDefault();const Me=_().filter(Fe=>!Fe.disabled).map(Fe=>Fe.ref.current);Tu.includes(R.key)&&Me.reverse(),r1(Me)}),onBlur:ie(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(G.current),B.current="")}),onPointerMove:ie(e.onPointerMove,vn(R=>{const Y=R.target,ee=q.current!==R.clientX;if(R.currentTarget.contains(Y)&&ee){const ke=R.clientX>q.current?"right":"left";M.current=ke,q.current=R.clientX}}))})})})})})})});Ou.displayName=Ve;var Jv="MenuGroup",wo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return d.jsx(Ae.div,{role:"group",...i,ref:t})});wo.displayName=Jv;var Zv="MenuLabel",Au=l.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return d.jsx(Ae.div,{...i,ref:t})});Au.displayName=Zv;var ai="MenuItem",Is="menu.itemSelect",Di=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...r}=e,o=l.useRef(null),s=En(ai,e.__scopeMenu),a=vo(ai,e.__scopeMenu),u=Ue(t,o),c=l.useRef(!1),m=()=>{const p=o.current;if(!n&&p){const g=new CustomEvent(Is,{bubbles:!0,cancelable:!0});p.addEventListener(Is,f=>i==null?void 0:i(f),{once:!0}),Fd(p,g),g.defaultPrevented?c.current=!1:s.onClose()}};return d.jsx(Ru,{...r,ref:u,disabled:n,onClick:ie(e.onClick,m),onPointerDown:p=>{var g;(g=e.onPointerDown)==null||g.call(e,p),c.current=!0},onPointerUp:ie(e.onPointerUp,p=>{var g;c.current||(g=p.currentTarget)==null||g.click()}),onKeyDown:ie(e.onKeyDown,p=>{const g=a.searchRef.current!=="";n||g&&p.key===" "||Or.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Di.displayName=ai;var Ru=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:r,...o}=e,s=vo(ai,n),a=Su(n),u=l.useRef(null),c=Ue(t,u),[m,p]=l.useState(!1),[g,f]=l.useState("");return l.useEffect(()=>{const y=u.current;y&&f((y.textContent??"").trim())},[o.children]),d.jsx(yn.ItemSlot,{scope:n,disabled:i,textValue:r??g,children:d.jsx(Jy,{asChild:!0,...a,focusable:!i,children:d.jsx(Ae.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...o,ref:c,onPointerMove:ie(e.onPointerMove,vn(y=>{i?s.onItemLeave(y):(s.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ie(e.onPointerLeave,vn(y=>s.onItemLeave(y))),onFocus:ie(e.onFocus,()=>p(!0)),onBlur:ie(e.onBlur,()=>p(!1))})})})}),Xv="MenuCheckboxItem",Iu=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...r}=e;return d.jsx(Du,{scope:e.__scopeMenu,checked:n,children:d.jsx(Di,{role:"menuitemcheckbox","aria-checked":di(n)?"mixed":n,...r,ref:t,"data-state":ko(n),onSelect:ie(r.onSelect,()=>i==null?void 0:i(di(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Iu.displayName=Xv;var Mu="MenuRadioGroup",[Yv,Qv]=Ft(Mu,{value:void 0,onValueChange:()=>{}}),Fu=l.forwardRef((e,t)=>{const{value:n,onValueChange:i,...r}=e,o=Ye(i);return d.jsx(Yv,{scope:e.__scopeMenu,value:n,onValueChange:o,children:d.jsx(wo,{...r,ref:t})})});Fu.displayName=Mu;var Lu="MenuRadioItem",Uu=l.forwardRef((e,t)=>{const{value:n,...i}=e,r=Qv(Lu,e.__scopeMenu),o=n===r.value;return d.jsx(Du,{scope:e.__scopeMenu,checked:o,children:d.jsx(Di,{role:"menuitemradio","aria-checked":o,...i,ref:t,"data-state":ko(o),onSelect:ie(i.onSelect,()=>{var s;return(s=r.onValueChange)==null?void 0:s.call(r,n)},{checkForDefaultPrevented:!1})})})});Uu.displayName=Lu;var Co="MenuItemIndicator",[Du,e1]=Ft(Co,{checked:!1}),Bu=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...r}=e,o=e1(Co,n);return d.jsx(Nn,{present:i||di(o.checked)||o.checked===!0,children:d.jsx(Ae.span,{...r,ref:t,"data-state":ko(o.checked)})})});Bu.displayName=Co;var t1="MenuSeparator",Hu=l.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return d.jsx(Ae.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});Hu.displayName=t1;var n1="MenuArrow",qu=l.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,r=Ui(n);return d.jsx(Ay,{...r,...i,ref:t})});qu.displayName=n1;var i1="MenuSub",[yb,ju]=Ft(i1),dn="MenuSubTrigger",zu=l.forwardRef((e,t)=>{const n=Lt(dn,e.__scopeMenu),i=En(dn,e.__scopeMenu),r=ju(dn,e.__scopeMenu),o=vo(dn,e.__scopeMenu),s=l.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:u}=o,c={__scopeMenu:e.__scopeMenu},m=l.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return l.useEffect(()=>m,[m]),l.useEffect(()=>{const p=a.current;return()=>{window.clearTimeout(p),u(null)}},[a,u]),d.jsx(ho,{asChild:!0,...c,children:d.jsx(Ru,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Gu(n.open),...e,ref:Ai(t,r.onTriggerChange),onClick:p=>{var g;(g=e.onClick)==null||g.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ie(e.onPointerMove,vn(p=>{o.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:ie(e.onPointerLeave,vn(p=>{var f,y;m();const g=(f=n.content)==null?void 0:f.getBoundingClientRect();if(g){const h=(y=n.content)==null?void 0:y.dataset.side,b=h==="right",w=b?-5:5,k=g[b?"left":"right"],T=g[b?"right":"left"];o.onPointerGraceIntentChange({area:[{x:p.clientX+w,y:p.clientY},{x:k,y:g.top},{x:T,y:g.top},{x:T,y:g.bottom},{x:k,y:g.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(p),p.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:ie(e.onKeyDown,p=>{var f;const g=o.searchRef.current!=="";e.disabled||g&&p.key===" "||Dv[i.dir].includes(p.key)&&(n.onOpenChange(!0),(f=n.content)==null||f.focus(),p.preventDefault())})})})});zu.displayName=dn;var Vu="MenuSubContent",Wu=l.forwardRef((e,t)=>{const n=Pu(Ve,e.__scopeMenu),{forceMount:i=n.forceMount,...r}=e,o=Lt(Ve,e.__scopeMenu),s=En(Ve,e.__scopeMenu),a=ju(Vu,e.__scopeMenu),u=l.useRef(null),c=Ue(t,u);return d.jsx(yn.Provider,{scope:e.__scopeMenu,children:d.jsx(Nn,{present:i||o.open,children:d.jsx(yn.Slot,{scope:e.__scopeMenu,children:d.jsx(bo,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var p;s.isUsingKeyboardRef.current&&((p=u.current)==null||p.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:ie(e.onFocusOutside,m=>{m.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:ie(e.onEscapeKeyDown,m=>{s.onClose(),m.preventDefault()}),onKeyDown:ie(e.onKeyDown,m=>{var f;const p=m.currentTarget.contains(m.target),g=Bv[s.dir].includes(m.key);p&&g&&(o.onOpenChange(!1),(f=a.trigger)==null||f.focus(),m.preventDefault())})})})})})});Wu.displayName=Vu;function Gu(e){return e?"open":"closed"}function di(e){return e==="indeterminate"}function ko(e){return di(e)?"indeterminate":e?"checked":"unchecked"}function r1(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function o1(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function s1(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=o1(e,Math.max(o,0));r.length===1&&(s=s.filter(c=>c!==n));const u=s.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function a1(e,t){const{x:n,y:i}=e;let r=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const a=t[o].x,u=t[o].y,c=t[s].x,m=t[s].y;u>i!=m>i&&n<(c-a)*(i-u)/(m-u)+a&&(r=!r)}return r}function d1(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return a1(n,t)}function vn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var u1=Nu,l1=ho,c1=Eu,m1=Ou,p1=wo,g1=Au,f1=Di,h1=Iu,y1=Fu,v1=Uu,b1=Bu,w1=Hu,C1=qu,k1=zu,x1=Wu,xo="DropdownMenu",[T1,vb]=Id(xo,[_u]),Re=_u(),[_1,$u]=T1(xo),Ku=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,u=Re(t),c=l.useRef(null),[m=!1,p]=Md({prop:r,defaultProp:o,onChange:s});return d.jsx(_1,{scope:t,triggerId:xr(),triggerRef:c,contentId:xr(),open:m,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(g=>!g),[p]),modal:a,children:d.jsx(u1,{...u,open:m,onOpenChange:p,dir:i,modal:a,children:n})})};Ku.displayName=xo;var Ju="DropdownMenuTrigger",Zu=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...r}=e,o=$u(Ju,n),s=Re(n);return d.jsx(l1,{asChild:!0,...s,children:d.jsx(Ae.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...r,ref:Ai(t,o.triggerRef),onPointerDown:ie(e.onPointerDown,a=>{!i&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:ie(e.onKeyDown,a=>{i||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Zu.displayName=Ju;var S1="DropdownMenuPortal",Xu=e=>{const{__scopeDropdownMenu:t,...n}=e,i=Re(t);return d.jsx(c1,{...i,...n})};Xu.displayName=S1;var Yu="DropdownMenuContent",Qu=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=$u(Yu,n),o=Re(n),s=l.useRef(!1);return d.jsx(m1,{id:r.contentId,"aria-labelledby":r.triggerId,...o,...i,ref:t,onCloseAutoFocus:ie(e.onCloseAutoFocus,a=>{var u;s.current||(u=r.triggerRef.current)==null||u.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:ie(e.onInteractOutside,a=>{const u=a.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,m=u.button===2||c;(!r.modal||m)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qu.displayName=Yu;var N1="DropdownMenuGroup",P1=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(p1,{...r,...i,ref:t})});P1.displayName=N1;var E1="DropdownMenuLabel",To=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(g1,{...r,...i,ref:t})});To.displayName=E1;var O1="DropdownMenuItem",el=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(f1,{...r,...i,ref:t})});el.displayName=O1;var A1="DropdownMenuCheckboxItem",R1=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(h1,{...r,...i,ref:t})});R1.displayName=A1;var I1="DropdownMenuRadioGroup",M1=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(y1,{...r,...i,ref:t})});M1.displayName=I1;var F1="DropdownMenuRadioItem",L1=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(v1,{...r,...i,ref:t})});L1.displayName=F1;var U1="DropdownMenuItemIndicator",D1=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(b1,{...r,...i,ref:t})});D1.displayName=U1;var B1="DropdownMenuSeparator",H1=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(w1,{...r,...i,ref:t})});H1.displayName=B1;var q1="DropdownMenuArrow",j1=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(C1,{...r,...i,ref:t})});j1.displayName=q1;var z1="DropdownMenuSubTrigger",V1=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(k1,{...r,...i,ref:t})});V1.displayName=z1;var W1="DropdownMenuSubContent",G1=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Re(n);return d.jsx(x1,{...r,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});G1.displayName=W1;var $1=Ku,K1=Zu,J1=Xu,tl=Qu,nl=To,il=el;const Z1=e=>l.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"left"},l.createElement("path",{id:"Vector",d:"M9.33333 5.33366V4.00033C9.33333 3.6467 9.19286 3.30756 8.94281 3.05752C8.69276 2.80747 8.35362 2.66699 8 2.66699H3.33333C2.97971 2.66699 2.64057 2.80747 2.39052 3.05752C2.14048 3.30756 2 3.6467 2 4.00033V12.0003C2 12.3539 2.14048 12.6931 2.39052 12.9431C2.64057 13.1932 2.97971 13.3337 3.33333 13.3337H8C8.35362 13.3337 8.69276 13.1932 8.94281 12.9431C9.19286 12.6931 9.33333 12.3539 9.33333 12.0003V10.667M4.66667 8.00033H14M14 8.00033L12 6.00033M14 8.00033L12 10.0003",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))),X1=e=>l.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"left"},l.createElement("g",{id:"Vector"},l.createElement("path",{d:"M6.88333 2.878C7.16733 1.70733 8.83267 1.70733 9.11667 2.878C9.15928 3.05387 9.24281 3.21719 9.36047 3.35467C9.47813 3.49215 9.62659 3.5999 9.79377 3.66916C9.96094 3.73843 10.1421 3.76723 10.3225 3.75325C10.5029 3.73926 10.6775 3.68287 10.832 3.58867C11.8607 2.962 13.0387 4.13933 12.412 5.16867C12.3179 5.3231 12.2616 5.49756 12.2477 5.67785C12.2337 5.85814 12.2625 6.03918 12.3317 6.20625C12.4009 6.37333 12.5085 6.52172 12.6458 6.63937C12.7831 6.75702 12.9463 6.8406 13.122 6.88333C14.2927 7.16733 14.2927 8.83267 13.122 9.11667C12.9461 9.15928 12.7828 9.24281 12.6453 9.36047C12.5079 9.47813 12.4001 9.62659 12.3308 9.79377C12.2616 9.96094 12.2328 10.1421 12.2468 10.3225C12.2607 10.5029 12.3171 10.6775 12.4113 10.832C13.038 11.8607 11.8607 13.0387 10.8313 12.412C10.6769 12.3179 10.5024 12.2616 10.3222 12.2477C10.1419 12.2337 9.96082 12.2625 9.79375 12.3317C9.62667 12.4009 9.47828 12.5085 9.36063 12.6458C9.24298 12.7831 9.1594 12.9463 9.11667 13.122C8.83267 14.2927 7.16733 14.2927 6.88333 13.122C6.84072 12.9461 6.75719 12.7828 6.63953 12.6453C6.52187 12.5079 6.37341 12.4001 6.20623 12.3308C6.03906 12.2616 5.85789 12.2328 5.67748 12.2468C5.49706 12.2607 5.3225 12.3171 5.168 12.4113C4.13933 13.038 2.96133 11.8607 3.588 10.8313C3.68207 10.6769 3.73837 10.5024 3.75232 10.3222C3.76628 10.1419 3.7375 9.96082 3.66831 9.79375C3.59913 9.62667 3.49151 9.47828 3.35418 9.36063C3.21686 9.24298 3.05371 9.1594 2.878 9.11667C1.70733 8.83267 1.70733 7.16733 2.878 6.88333C3.05387 6.84072 3.21719 6.75719 3.35467 6.63953C3.49215 6.52187 3.5999 6.37341 3.66916 6.20623C3.73843 6.03906 3.76723 5.85789 3.75325 5.67748C3.73926 5.49706 3.68287 5.3225 3.58867 5.168C2.962 4.13933 4.13933 2.96133 5.16867 3.588C5.83533 3.99333 6.69933 3.63467 6.88333 2.878Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M6 8C6 8.53043 6.21071 9.03914 6.58579 9.41421C6.96086 9.78929 7.46957 10 8 10C8.53043 10 9.03914 9.78929 9.41421 9.41421C9.78929 9.03914 10 8.53043 10 8C10 7.46957 9.78929 6.96086 9.41421 6.58579C9.03914 6.21071 8.53043 6 8 6C7.46957 6 6.96086 6.21071 6.58579 6.58579C6.21071 6.96086 6 7.46957 6 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))));function Y1(e){return typeof e=="object"&&e!==null}const Q1=e=>{var o,s;const t="";let n="",i="";if(!((o=e==null?void 0:e.identity)!=null&&o.traits)||!Y1(e.identity.traits))return{primary:n,secondary:i,avatar:t};const r=(s=e.identity)==null?void 0:s.traits;return r.email&&typeof r.email=="string"&&(i=r.email),r.name&&(typeof r.name=="string"&&(n=r.name),typeof r.name=="object"&&r.name&&r.name.first&&r.name.last&&(n=r.name.first+" "+r.name.last)),n===""&&(n=i,i=""),{primary:n,secondary:i,avatar:t}},eb=$1,tb=K1,_o=l.forwardRef(({className:e,sideOffset:t=16,...n},i)=>d.jsx(J1,{children:d.jsx(tl,{ref:i,sideOffset:t,align:"end",className:Se("z-50 min-w-[19rem] overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","border border-interface-border-default-primary bg-interface-background-default-primary rounded-cards",e),...n})}));_o.displayName=tl.displayName;const ui=l.forwardRef(({className:e,inset:t,...n},i)=>d.jsx(il,{ref:i,className:Se("relative flex cursor-pointer select-none items-center outline-none transition-colors data-[disabled]:pointer-events-none","px-8 py-3 lg:py-4.5 text-sm gap-6","first:border-0 border-t border-button-secondary-border-default hover:border-button-social-border-hover","text-button-secondary-foreground-default bg-button-secondary-background-default","hover:text-button-secondary-foreground-hover hover:bg-button-secondary-background-hover","data-[disabled]:text-button-secondary-foreground-disabled data-[disabled]:bg-button-secondary-background-disabled",t&&"pl-8",e),...n}));ui.displayName=il.displayName;const rl=l.forwardRef(({className:e,inset:t,...n},i)=>d.jsx(nl,{ref:i,className:Se("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));rl.displayName=nl.displayName;_o.__docgenInfo={description:"",methods:[],props:{sideOffset:{defaultValue:{value:"16",computed:!1},required:!1}}};ui.__docgenInfo={description:"",methods:[]};rl.__docgenInfo={description:"",methods:[]};const nb=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"user"},l.createElement("path",{id:"Vector",d:"M6 21V19C6 17.9391 6.42143 16.9217 7.17157 16.1716C7.92172 15.4214 8.93913 15 10 15H14C15.0609 15 16.0783 15.4214 16.8284 16.1716C17.5786 16.9217 18 17.9391 18 19V21M8 7C8 8.06087 8.42143 9.07828 9.17157 9.82843C9.92172 10.5786 10.9391 11 12 11C13.0609 11 14.0783 10.5786 14.8284 9.82843C15.5786 9.07828 16 8.06087 16 7C16 5.93913 15.5786 4.92172 14.8284 4.17157C14.0783 3.42143 13.0609 3 12 3C10.9391 3 9.92172 3.42143 9.17157 4.17157C8.42143 4.92172 8 5.93913 8 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))),li=l.forwardRef(({initials:e,...t},n)=>d.jsx("button",{ref:n,className:"relative flex size-10 items-center justify-center overflow-hidden rounded-full bg-button-primary-background-default hover:bg-button-primary-background-hover",...t,children:d.jsx("div",{className:"relative flex size-full items-center justify-center",children:e.avatar?d.jsx("img",{src:e.avatar,alt:e.primary,className:"w-full object-contain"}):d.jsx(nb,{size:24,className:"text-button-primary-foreground-default"})})}));li.displayName="UserAvatar";li.__docgenInfo={description:"",methods:[],displayName:"UserAvatar"};const ol=({session:e})=>{const{config:t}=de(),n=Q1(e),[i,r]=l.useState(),o=l.useCallback(async()=>{const s=await Jt(t.sdk.url).createBrowserLogoutFlow();r(s)},[t.sdk.url]);return l.useEffect(()=>{o()},[o]),d.jsxs(eb,{children:[d.jsx(tb,{asChild:!0,children:d.jsx(li,{initials:n})}),d.jsxs(_o,{children:[d.jsxs(To,{className:"flex gap-3 px-5 py-4.5",children:[d.jsx(li,{disabled:!0,initials:n}),d.jsxs("div",{className:"flex flex-col justify-center text-sm leading-tight",children:[d.jsx("div",{className:"text-interface-foreground-default-primary leading-tight font-medium",children:n.primary}),n.secondary&&d.jsx("div",{className:"text-interface-foreground-default-tertiary leading-tight",children:n.secondary})]})]}),d.jsx(ui,{asChild:!0,children:d.jsxs("a",{href:"/settings",children:[d.jsx(X1,{size:16})," User settings"]})}),d.jsx(ui,{asChild:!0,disabled:!(i!=null&&i.logout_url),children:d.jsxs("a",{href:i==null?void 0:i.logout_url,children:[d.jsx(Z1,{size:16})," Logout"]})})]})]})};ol.__docgenInfo={description:"",methods:[],displayName:"UserMenu",props:{session:{required:!0,tsType:{name:"union",raw:"Session | null",elements:[{name:"Session"},{name:"null"}]},description:""},logoutFlow:{required:!1,tsType:{name:"LogoutFlow"},description:""}}};const Ms=l.createContext({session:null,isLoading:!1,initialized:!1,error:void 0,refetch:async()=>{}});function ib(){if(!Ms)throw new Error("[Ory/Elements] useSession must be used on the client");return l.useContext(Ms)}const sl=e=>{const{Card:t}=ue(),{session:n}=ib();return d.jsx("div",{className:"mt-16 flex w-full max-w-[896px] flex-col gap-3",children:d.jsx("div",{className:"flex flex-col gap-12",children:d.jsxs("div",{className:"flex max-h-10 flex-1 justify-between gap-2",children:[d.jsx("div",{className:"relative h-10 flex-1",children:d.jsx(t.Logo,{})}),d.jsx(ol,{session:n})]})})})};sl.__docgenInfo={description:"",methods:[],displayName:"DefaultPageHeader"};const Bi=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"icon"},l.createElement("path",{id:"Vector",d:"M4 7H20M10 11V17M14 11V17M5 7L6 19C6 19.5304 6.21071 20.0391 6.58579 20.4142C6.96086 20.7893 7.46957 21 8 21H16C16.5304 21 17.0391 20.7893 17.4142 20.4142C17.7893 20.0391 18 19.5304 18 19L19 7M9 7V4C9 3.73478 9.10536 3.48043 9.29289 3.29289C9.48043 3.10536 9.73478 3 10 3H14C14.2652 3 14.5196 3.10536 14.7071 3.29289C14.8946 3.48043 15 3.73478 15 4V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})));function al({linkButtons:e,unlinkButtons:t}){const n=e.length>0,i=t.length>0;return d.jsxs("div",{className:"flex flex-col gap-8",children:[n&&d.jsx("div",{className:"grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3",children:e.map(r=>{const o=r.attributes;return d.jsx(pn,{showLabel:!0,node:r,attributes:o,onClick:r.onClick},o.value)})}),i&&n?d.jsx(Xt,{}):null,t.map(r=>r.attributes.node_type!=="input"?null:d.jsx(rb,{button:r},r.attributes.value))]})}function rb({button:e}){var u;const[t,n]=l.useState(!1),{formState:{isSubmitting:i}}=ge(),r=e.attributes,o=ud((u=e.meta.label)==null?void 0:u.context)??"",s=r.value in Gn?Gn[r.value]:Gn.generic,a=()=>{n(!0),e.onClick()};return l.useEffect(()=>{i||n(!1)},[i]),d.jsxs("div",{className:"flex justify-between",children:[d.jsxs("div",{className:"flex items-center gap-6",children:[d.jsx(s,{size:32}),d.jsx("p",{className:"text-sm font-medium text-interface-foreground-default-secondary",children:o})]}),d.jsx("button",{...r,type:"submit",onClick:a,disabled:i,className:"relative",title:`Unlink ${o}`,children:t?d.jsx(Mt,{className:"relative"}):d.jsx(Bi,{className:"text-button-link-default-secondary hover:text-button-link-default-secondary-hover",size:24})})]},r.value)}al.__docgenInfo={description:"",methods:[],displayName:"DefaultSettingsOidc",props:{linkButtons:{required:!0,tsType:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]"},description:""},unlinkButtons:{required:!0,tsType:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]"},description:""}}};function dl({triggerButton:e,removeButtons:t}){const{formState:{isSubmitting:n}}=ge(),{Node:i}=ue(),r=t.length>0;return d.jsxs("div",{className:"flex flex-col gap-8",children:[d.jsx("div",{className:"flex max-w-[60%] items-end gap-3",children:e&&d.jsx(i.Button,{node:e,attributes:e.attributes,onClick:e.onClick})}),r?d.jsxs("div",{className:"flex flex-col gap-8",children:[d.jsx(Xt,{}),d.jsx("div",{className:"flex flex-col gap-2",children:t.map((o,s)=>{var p;const a=((p=o.meta.label)==null?void 0:p.context)??{},u="added_at"in a?a.added_at:null,c="display_name"in a?a.display_name:null,m="value"in o.attributes?o.attributes.value:null;return d.jsxs("div",{className:"flex justify-between gap-6 md:items-center",children:[d.jsxs("div",{className:"flex gap-2 items-center flex-1",children:[d.jsx(gd,{size:32,className:"text-interface-foreground-default-primary"}),d.jsxs("div",{className:"flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4",children:[d.jsxs("div",{className:"flex-1 flex-col",children:[d.jsx("p",{className:"text-sm font-medium text-interface-foreground-default-secondary",children:c}),d.jsx("span",{className:"text-sm text-interface-foreground-default-tertiary hidden sm:block",children:m})]}),u&&d.jsx("p",{className:"text-sm text-interface-foreground-default-tertiary",children:new Intl.DateTimeFormat(void 0,{dateStyle:"long"}).format(new Date(u))})]})]}),d.jsx("button",{...o.attributes,type:"submit",onClick:o.onClick,disabled:n,className:"relative",children:n?d.jsx(Mt,{className:"relative"}):d.jsx(Bi,{className:"text-button-link-default-secondary hover:text-button-link-default-secondary-hover",size:24})})]},`passkey-remove-button-${s}`)})})]}):null]})}dl.__docgenInfo={description:"",methods:[],displayName:"DefaultSettingsPasskey",props:{triggerButton:{required:!0,tsType:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}]},description:""},removeButtons:{required:!0,tsType:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]"},description:""}}};const ob=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"icon"},l.createElement("path",{id:"Vector",d:"M4 17V19C4 19.5304 4.21071 20.0391 4.58579 20.4142C4.96086 20.7893 5.46957 21 6 21H18C18.5304 21 19.0391 20.7893 19.4142 20.4142C19.7893 20.0391 20 19.5304 20 19V17M7 11L12 16M12 16L17 11M12 16V4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))),sb=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"icon"},l.createElement("g",{id:"Vector"},l.createElement("path",{d:"M10 12C10 12.5304 10.2107 13.0391 10.5858 13.4142C10.9609 13.7893 11.4696 14 12 14C12.5304 14 13.0391 13.7893 13.4142 13.4142C13.7893 13.0391 14 12.5304 14 12C14 11.4696 13.7893 10.9609 13.4142 10.5858C13.0391 10.2107 12.5304 10 12 10C11.4696 10 10.9609 10.2107 10.5858 10.5858C10.2107 10.9609 10 11.4696 10 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M21 12C18.6 16 15.6 18 12 18C8.4 18 5.4 16 3 12C5.4 8 8.4 6 12 6C15.6 6 18.6 8 21 12Z",stroke:"#64748B",strokeLinecap:"round",strokeLinejoin:"round"})))),ab=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"icon"},l.createElement("path",{id:"Vector",d:"M20 11C19.7554 9.24017 18.9391 7.60961 17.6766 6.35945C16.4142 5.10928 14.7758 4.30887 13.0137 4.0815C11.2516 3.85414 9.46362 4.21243 7.9252 5.1012C6.38678 5.98996 5.18325 7.35989 4.5 8.99995M4 4.99995V8.99995H8M4 12.9999C4.24456 14.7597 5.06093 16.3903 6.32336 17.6404C7.58579 18.8906 9.22424 19.691 10.9863 19.9184C12.7484 20.1458 14.5364 19.7875 16.0748 18.8987C17.6132 18.0099 18.8168 16.64 19.5 14.9999M20 18.9999V14.9999H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})));function ul({codes:e,regnerateButton:t,revealButton:n,onRegenerate:i,onReveal:r}){const{formState:{isSubmitting:o}}=ge(),s=()=>{const u=document.createElement("a"),c=new Blob([e.join(`
945
- `)],{type:"text/plain"});u.href=URL.createObjectURL(c),u.download="recovery-codes.txt",document.body.appendChild(u),u.click()},a=e.length>=1;return d.jsxs("div",{className:"flex flex-col gap-8",children:[e.length>0&&d.jsx(Xt,{}),d.jsxs("div",{className:"flex gap-4 justify-between",children:[d.jsx("span",{className:"text-interface-foreground-default-tertiary",children:n&&"Reveal recovery codes"}),d.jsxs("div",{className:"flex gap-2",children:[t&&e.length>0&&d.jsx("button",{...t.attributes,type:"submit",className:"ml-auto",onClick:i,disabled:o,"data-loading":o,children:d.jsx(ab,{size:24,className:"text-button-link-default-secondary hover:text-button-link-default-secondary-hover"})}),n&&d.jsx(d.Fragment,{children:d.jsx("button",{...n.attributes,type:"submit",className:"ml-auto",onClick:r,title:"Reveal recovery codes",children:d.jsx(sb,{size:24,className:"text-button-link-default-secondary hover:text-button-link-default-secondary-hover"})})}),a&&d.jsx("button",{onClick:s,type:"button",className:"ml-auto","data-testid":"ory/screen/settings/group/recovery_code/download",title:"Download recovery codes",children:d.jsx(ob,{size:24,className:"text-button-link-default-secondary hover:text-button-link-default-secondary-hover"})})]})]}),a?d.jsx("div",{className:"rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary",children:d.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary","data-testid":"ory/screen/settings/group/recovery_code/codes",children:e.map(u=>d.jsx("p",{children:u},u))})}):null]})}ul.__docgenInfo={description:"",methods:[],displayName:"DefaultSettingsRecoveryCodes",props:{codes:{required:!0,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},regnerateButton:{required:!0,tsType:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}]},description:""},revealButton:{required:!0,tsType:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}]},description:""},onRegenerate:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onReveal:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const db=e=>l.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"icon"},l.createElement("path",{id:"Vector",d:"M9.33301 22.6668V22.6802M9.33301 9.3335V9.34683M22.6663 9.3335V9.34683M22.6663 18.6668H18.6663V22.6668M26.6663 18.6668V18.6802M18.6663 26.6668H22.6663M22.6663 22.6668H26.6663V26.6668M5.33301 6.66683C5.33301 6.31321 5.47348 5.97407 5.72353 5.72402C5.97358 5.47397 6.31272 5.3335 6.66634 5.3335H11.9997C12.3533 5.3335 12.6924 5.47397 12.9425 5.72402C13.1925 5.97407 13.333 6.31321 13.333 6.66683V12.0002C13.333 12.3538 13.1925 12.6929 12.9425 12.943C12.6924 13.193 12.3533 13.3335 11.9997 13.3335H6.66634C6.31272 13.3335 5.97358 13.193 5.72353 12.943C5.47348 12.6929 5.33301 12.3538 5.33301 12.0002V6.66683ZM18.6663 6.66683C18.6663 6.31321 18.8068 5.97407 19.0569 5.72402C19.3069 5.47397 19.6461 5.3335 19.9997 5.3335H25.333C25.6866 5.3335 26.0258 5.47397 26.2758 5.72402C26.5259 5.97407 26.6663 6.31321 26.6663 6.66683V12.0002C26.6663 12.3538 26.5259 12.6929 26.2758 12.943C26.0258 13.193 25.6866 13.3335 25.333 13.3335H19.9997C19.6461 13.3335 19.3069 13.193 19.0569 12.943C18.8068 12.6929 18.6663 12.3538 18.6663 12.0002V6.66683ZM5.33301 20.0002C5.33301 19.6465 5.47348 19.3074 5.72353 19.0574C5.97358 18.8073 6.31272 18.6668 6.66634 18.6668H11.9997C12.3533 18.6668 12.6924 18.8073 12.9425 19.0574C13.1925 19.3074 13.333 19.6465 13.333 20.0002V25.3335C13.333 25.6871 13.1925 26.0263 12.9425 26.2763C12.6924 26.5264 12.3533 26.6668 11.9997 26.6668H6.66634C6.31272 26.6668 5.97358 26.5264 5.72353 26.2763C5.47348 26.0263 5.33301 25.6871 5.33301 25.3335V20.0002Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})));function ll({totpImage:e,totpInput:t,totpSecret:n,totpUnlink:i,onUnlink:r}){const{Node:o,Card:s}=ue(),{formState:{isSubmitting:a}}=ge();if(i){const{type:u,autocomplete:c,label:m,node_type:p,...g}=i.attributes;return d.jsxs("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-2",children:[d.jsx("div",{className:"col-span-full",children:d.jsx(s.Divider,{})}),d.jsxs("div",{className:"col-span-full flex items-center gap-6",children:[d.jsx("div",{className:"aspect-square size-8 ",children:d.jsx(db,{size:32})}),d.jsx("div",{className:"mr-auto flex flex-col",children:d.jsx("p",{className:"text-sm font-medium text-interface-foreground-default-primary",children:"Authenticator app"})}),d.jsx("button",{type:u==="button"?"button":"submit",...g,onClick:r,disabled:a,children:a?d.jsx(Mt,{className:"relative"}):d.jsx(Bi,{className:"text-button-link-default-secondary hover:text-button-link-default-secondary-hover",size:24})})]})]})}if(e&&n&&t)return d.jsxs("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-2",children:[d.jsx("div",{className:"col-span-full",children:d.jsx(Xt,{})}),d.jsx("div",{className:"flex justify-center rounded-cards bg-interface-background-default-secondary p-8",children:d.jsx("div",{className:"aspect-square h-44 rounded bg-[white]",children:d.jsx("div",{className:"-m-3 antialiased mix-blend-multiply",children:d.jsx(o.Image,{node:e,attributes:{...e.attributes}})})})}),d.jsxs("div",{className:"flex flex-col gap-6",children:[d.jsx(o.Label,{node:n,attributes:n.attributes,children:d.jsx(o.Input,{node:n,attributes:{disabled:!0,name:"totp_secret_key",node_type:"input",type:"text",value:n.attributes.text.text}})}),d.jsx(o.Label,{attributes:t.attributes,node:t,children:d.jsx(o.CodeInput,{node:t,attributes:t.attributes})})]})]})}ll.__docgenInfo={description:"",methods:[],displayName:"DefaultSettingsTotp",props:{totpImage:{required:!0,tsType:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}]},description:""},totpSecret:{required:!0,tsType:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}]},description:""},totpInput:{required:!0,tsType:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}]},description:""},totpUnlink:{required:!0,tsType:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}]},description:""},onUnlink:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const ub=e=>l.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"icon"},l.createElement("path",{id:"Vector",d:"M20 12H20.0133M22.0733 5.12399L26.876 9.92665C27.2323 10.2829 27.5149 10.7058 27.7077 11.1712C27.9005 11.6367 27.9997 12.1355 27.9997 12.6393C27.9997 13.1431 27.9005 13.642 27.7077 14.1074C27.5149 14.5729 27.2323 14.9958 26.876 15.352L23.352 18.876C22.9958 19.2323 22.5729 19.5149 22.1074 19.7077C21.642 19.9005 21.1431 19.9997 20.6393 19.9997C20.1355 19.9997 19.6367 19.9005 19.1712 19.7077C18.7058 19.5149 18.2829 19.2323 17.9267 18.876L17.5253 18.4747L8.78133 27.2187C8.33829 27.6616 7.75343 27.9345 7.12933 27.9893L6.896 28H5.33333C5.00676 27.9999 4.69155 27.88 4.4475 27.663C4.20346 27.446 4.04754 27.147 4.00933 26.8227L4 26.6667V25.104C4.00015 24.4779 4.22058 23.8719 4.62267 23.392L4.78133 23.2187L5.33333 22.6667H8V20H10.6667V17.3333L13.5253 14.4747L13.124 14.0733C12.7677 13.7171 12.4851 13.2942 12.2923 12.8288C12.0995 12.3633 12.0003 11.8645 12.0003 11.3607C12.0003 10.8569 12.0995 10.358 12.2923 9.89255C12.4851 9.4271 12.7677 9.0042 13.124 8.64799L16.648 5.12399C17.0042 4.76772 17.4271 4.48511 17.8926 4.2923C18.358 4.09948 18.8569 4.00024 19.3607 4.00024C19.8645 4.00024 20.3633 4.09948 20.8288 4.2923C21.2942 4.48511 21.7171 4.76772 22.0733 5.12399Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})));function cl({nameInput:e,triggerButton:t,removeButtons:n}){const{formState:{isSubmitting:i}}=ge(),{Node:r,Card:o}=ue(),s=n.length>0;return d.jsxs("div",{className:"flex flex-col gap-8",children:[d.jsxs("div",{className:"flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row",children:[d.jsx("div",{className:"flex-1",children:d.jsx(r.Label,{node:e,attributes:e.attributes,children:d.jsx(r.Input,{node:e,attributes:e.attributes})})}),t?d.jsx(r.Button,{node:t,attributes:t.attributes,onClick:t.onClick}):null]}),s?d.jsxs("div",{className:"flex flex-col gap-8",children:[d.jsx(o.Divider,{}),d.jsx("div",{className:"flex flex-col gap-4",children:n.map((a,u)=>{var f;const c=((f=a.meta.label)==null?void 0:f.context)??{},m="added_at"in c?c.added_at:null,p="display_name"in c?c.display_name:null,g="value"in a.attributes?a.attributes.value:null;return d.jsxs("div",{className:"flex justify-between gap-6 md:items-center",children:[d.jsxs("div",{className:"flex gap-2 items-center flex-1",children:[d.jsx(ub,{size:32,className:"text-interface-foreground-default-primary"}),d.jsxs("div",{className:"flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4",children:[d.jsxs("div",{className:"flex-1 flex-col",children:[d.jsx("p",{className:"text-sm font-medium text-interface-foreground-default-secondary",children:p}),d.jsx("span",{className:"text-sm text-interface-foreground-default-tertiary hidden sm:block",children:g})]}),m&&d.jsx("p",{className:"text-sm text-interface-foreground-default-tertiary",children:new Intl.DateTimeFormat(void 0,{dateStyle:"long"}).format(new Date(m))})]})]}),d.jsx("button",{...a.attributes,type:"submit",onClick:a.onClick,disabled:i,className:"relative",children:i?d.jsx(Mt,{className:"relative"}):d.jsx(Bi,{className:"text-button-link-default-secondary hover:text-button-link-default-secondary-hover",size:24})})]},`webauthn-remove-button-${u}`)})})]}):null]})}cl.__docgenInfo={description:"",methods:[],displayName:"DefaultSettingsWebauthn",props:{nameInput:{required:!0,tsType:{name:"UiNode"},description:""},triggerButton:{required:!0,tsType:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}]},description:""},removeButtons:{required:!0,tsType:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]"},description:""}}};function So(e){var t,n,i,r,o,s,a,u,c,m,p,g,f,y,h,b,w,k,T,_,S,F,E,I,G,B,j,P,M,q;return{Card:{Root:((t=e==null?void 0:e.Card)==null?void 0:t.Root)??nd,Footer:((n=e==null?void 0:e.Card)==null?void 0:n.Footer)??Ya,Header:((i=e==null?void 0:e.Card)==null?void 0:i.Header)??ed,Content:((r=e==null?void 0:e.Card)==null?void 0:r.Content)??ym,Logo:((o=e==null?void 0:e.Card)==null?void 0:o.Logo)??td,Divider:((s=e==null?void 0:e.Card)==null?void 0:s.Divider)??Xt,AuthMethodListItem:((a=e==null?void 0:e.Card)==null?void 0:a.AuthMethodListItem)??fd,SettingsSection:((u=e==null?void 0:e.Card)==null?void 0:u.SettingsSection)??Ed,SettingsSectionContent:((c=e==null?void 0:e.Card)==null?void 0:c.SettingsSectionContent)??Od,SettingsSectionFooter:((m=e==null?void 0:e.Card)==null?void 0:m.SettingsSectionFooter)??Ad},Node:{Button:((p=e==null?void 0:e.Node)==null?void 0:p.Button)??no,OidcButton:((g=e==null?void 0:e.Node)==null?void 0:g.OidcButton)??pn,Input:((f=e==null?void 0:e.Node)==null?void 0:f.Input)??Cd,CodeInput:((y=e==null?void 0:e.Node)==null?void 0:y.CodeInput)??Pd,Image:((h=e==null?void 0:e.Node)==null?void 0:h.Image)??wd,Label:((b=e==null?void 0:e.Node)==null?void 0:b.Label)??kd,Checkbox:((w=e==null?void 0:e.Node)==null?void 0:w.Checkbox)??vd,Text:((k=e==null?void 0:e.Node)==null?void 0:k.Text)??Rd,Anchor:((T=e==null?void 0:e.Node)==null?void 0:T.Anchor)??io},Form:{Root:((_=e==null?void 0:e.Form)==null?void 0:_.Root)??cd,Group:((S=e==null?void 0:e.Form)==null?void 0:S.Group)??bd,OidcRoot:((F=e==null?void 0:e.Form)==null?void 0:F.OidcRoot)??ld,RecoveryCodesSettings:((E=e==null?void 0:e.Form)==null?void 0:E.RecoveryCodesSettings)??ul,TotpSettings:((I=e==null?void 0:e.Form)==null?void 0:I.TotpSettings)??ll,OidcSettings:((G=e==null?void 0:e.Form)==null?void 0:G.OidcSettings)??al,WebauthnSettings:((B=e==null?void 0:e.Form)==null?void 0:B.WebauthnSettings)??cl,PasskeySettings:((j=e==null?void 0:e.Form)==null?void 0:j.PasskeySettings)??dl},Message:{Root:((P=e==null?void 0:e.Message)==null?void 0:P.Root)??md,Content:((M=e==null?void 0:e.Message)==null?void 0:M.Content)??pd},Page:{Header:((q=e==null?void 0:e.Page)==null?void 0:q.Header)??sl}}}function lb({flow:e,config:t,children:n,components:i}){const r=So(i);return d.jsx(Si,{config:t,flow:e,flowType:J.Login,components:r,children:n??d.jsx(Yr,{})})}lb.__docgenInfo={description:"",methods:[],displayName:"Login",props:{flow:{required:!0,tsType:{name:"LoginFlow"},description:""},components:{required:!1,tsType:{name:"signature",type:"object",raw:`{
946
- [P in keyof T]?: T[P] extends object ? { [K in keyof T[P]]?: T[P][K] } : T[P]
947
- }`,signature:{properties:[{key:{name:"signature",type:"object",raw:`{
948
- Node: {
949
- /**
950
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
951
- */
952
- Button: ComponentType<OryNodeButtonProps>
953
- /**
954
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
955
- *
956
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
957
- */
958
- OidcButton: ComponentType<OryNodeOidcButtonProps>
959
- /**
960
- * Anchor component, rendered whenever an "anchor" node is encountered
961
- */
962
- Anchor: ComponentType<OryNodeAnchorProps>
963
- /**
964
- * The Input component is rendered whenever a "input" node is encountered.
965
- */
966
- Input: ComponentType<OryNodeInputProps>
967
- /**
968
- * Special version of the Input component for OTP codes.
969
- */
970
- CodeInput: ComponentType<OryNodeInputProps>
971
- /**
972
- * The Image component is rendered whenever an "image" node is encountered.
973
- *
974
- * For example used in the "Logo" node.
975
- */
976
- Image: ComponentType<OryNodeImageProps>
977
- /**
978
- * The Label component is rendered around Input components and is used to render form labels.
979
- */
980
- Label: ComponentType<OryNodeLabelProps>
981
- /**
982
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
983
- */
984
- Checkbox: ComponentType<OryNodeInputProps>
985
- /**
986
- * The Text component is rendered whenever a "text" node is encountered.
987
- */
988
- Text: ComponentType<OryNodeTextProps>
989
- }
990
- Card: {
991
- /**
992
- * The card container is the main container of the card.
993
- */
994
- Root: ComponentType<OryCardRootProps>
995
- /**
996
- * The card footer is the footer of the card container.
997
- */
998
- Footer: ComponentType<OryCardFooterProps>
999
- /**
1000
- * The card header is the header of the card container.
1001
- */
1002
- Header: ComponentType<OryCardRootProps>
1003
- /**
1004
- * The card content is the main content of the card container.
1005
- */
1006
- Content: ComponentType<OryCardContentProps>
1007
- /**
1008
- * The card logo is the logo of the card container.
1009
- */
1010
- Logo: ComponentType<OryCardLogoProps>
1011
- /**
1012
- * The HorizontalDivider component is rendered between groups.
1013
- */
1014
- Divider: ComponentType<OryCardDividerProps>
1015
- /**
1016
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
1017
- *
1018
- * This is only used, if login is configured to use identifier_first authentication.
1019
- */
1020
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
1021
-
1022
- /**
1023
- * The SettingsSection component is rendered around each section of the settings.
1024
- */
1025
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
1026
- /**
1027
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
1028
- */
1029
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
1030
- /**
1031
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
1032
- */
1033
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
1034
- }
1035
- Form: {
1036
- /**
1037
- * The FormContainer component is the main container of the form.
1038
- *
1039
- * It should render its children.
1040
- *
1041
- * You most likely don't want to override this component directly.
1042
- */
1043
- Root: ComponentType<OryFormRootProps>
1044
- /**
1045
- * A special form group container for the social buttons.
1046
- *
1047
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
1048
- *
1049
- * You most likely don't want to override this component directly.
1050
- */
1051
- OidcRoot: ComponentType<OryFormOidcRootProps>
1052
-
1053
- /**
1054
- * The FormGroup is rendered around each group of nodes in the UI nodes.
1055
- */
1056
- Group: ComponentType<OryFormGroupProps>
1057
-
1058
- /**
1059
- * The section on the settings page, rendering the OIDC settings
1060
- */
1061
- OidcSettings: ComponentType<OrySettingsOidcProps>
1062
-
1063
- /**
1064
- * The section on the settings page, rendering the Webauthn settings
1065
- */
1066
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
1067
-
1068
- /**
1069
- * The section on the settings page, rendering the Passkey settings
1070
- */
1071
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
1072
-
1073
- /**
1074
- * The section on the settings page, rendering the TOTP settings
1075
- */
1076
- TotpSettings: ComponentType<OrySettingsTotpProps>
1077
-
1078
- /**
1079
- * The section on the settings page, rendering the recovery code settings
1080
- */
1081
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
1082
- }
1083
- Message: {
1084
- /**
1085
- * The MessageContainer is rendered around the messages.
1086
- */
1087
- Root: ComponentType<OryMessageRootProps>
1088
-
1089
- /**
1090
- * The Message component is rendered whenever a message is encountered.
1091
- */
1092
- Content: ComponentType<OryMessageContentProps>
1093
- }
1094
- Page: {
1095
- Header: ComponentType<OryPageHeaderProps>
1096
- }
1097
- }`,signature:{properties:[{key:"Node",value:{name:"signature",type:"object",raw:`{
1098
- /**
1099
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
1100
- */
1101
- Button: ComponentType<OryNodeButtonProps>
1102
- /**
1103
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
1104
- *
1105
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
1106
- */
1107
- OidcButton: ComponentType<OryNodeOidcButtonProps>
1108
- /**
1109
- * Anchor component, rendered whenever an "anchor" node is encountered
1110
- */
1111
- Anchor: ComponentType<OryNodeAnchorProps>
1112
- /**
1113
- * The Input component is rendered whenever a "input" node is encountered.
1114
- */
1115
- Input: ComponentType<OryNodeInputProps>
1116
- /**
1117
- * Special version of the Input component for OTP codes.
1118
- */
1119
- CodeInput: ComponentType<OryNodeInputProps>
1120
- /**
1121
- * The Image component is rendered whenever an "image" node is encountered.
1122
- *
1123
- * For example used in the "Logo" node.
1124
- */
1125
- Image: ComponentType<OryNodeImageProps>
1126
- /**
1127
- * The Label component is rendered around Input components and is used to render form labels.
1128
- */
1129
- Label: ComponentType<OryNodeLabelProps>
1130
- /**
1131
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
1132
- */
1133
- Checkbox: ComponentType<OryNodeInputProps>
1134
- /**
1135
- * The Text component is rendered whenever a "text" node is encountered.
1136
- */
1137
- Text: ComponentType<OryNodeTextProps>
1138
- }`,signature:{properties:[{key:"Button",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
1139
- attributes: UiNodeInputAttributes
1140
- node: UiNode
1141
- } & Omit<ComponentPropsWithoutRef<"button">, "children"> &
1142
- ButtonVariants`,elements:[{name:"signature",type:"object",raw:`{
1143
- attributes: UiNodeInputAttributes
1144
- node: UiNode
1145
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"button"'}],raw:'ComponentPropsWithoutRef<"button">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"button">, "children">'},{name:"VariantProps",elements:[{name:"buttonStyles"}],raw:"VariantProps<typeof buttonStyles>"}]}],raw:"ComponentType<OryNodeButtonProps>",required:!0},description:"Button component, rendered whenever a button is encountered in the Ory UI Nodes."},{key:"OidcButton",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1146
- node: UiNode
1147
- attributes: UiNodeInputAttributes
1148
- onClick?: () => void
1149
- }`,signature:{properties:[{key:"node",value:{name:"UiNode",required:!0}},{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}}],raw:"ComponentType<OryNodeOidcButtonProps>",required:!0},description:`The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
1150
-
1151
- It renders the "Login with Google", "Login with Facebook" etc. buttons.`},{key:"Anchor",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
1152
- attributes: UiNodeAnchorAttributes
1153
- node: UiNode
1154
- } & Omit<ComponentPropsWithoutRef<"a">, "children">`,elements:[{name:"signature",type:"object",raw:`{
1155
- attributes: UiNodeAnchorAttributes
1156
- node: UiNode
1157
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeAnchorAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"a"'}],raw:'ComponentPropsWithoutRef<"a">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"a">, "children">'}]}],raw:"ComponentType<OryNodeAnchorProps>",required:!0},description:'Anchor component, rendered whenever an "anchor" node is encountered'},{key:"Input",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1158
- attributes: UiNodeInputAttributes
1159
- node: UiNode
1160
- onClick?: MouseEventHandler
1161
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:'The Input component is rendered whenever a "input" node is encountered.'},{key:"CodeInput",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1162
- attributes: UiNodeInputAttributes
1163
- node: UiNode
1164
- onClick?: MouseEventHandler
1165
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"Special version of the Input component for OTP codes."},{key:"Image",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1166
- attributes: UiNodeImageAttributes
1167
- node: UiNode
1168
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeImageAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeImageProps>",required:!0},description:`The Image component is rendered whenever an "image" node is encountered.
1169
-
1170
- For example used in the "Logo" node.`},{key:"Label",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
1171
- attributes: UiNodeInputAttributes
1172
- node: UiNode
1173
- } & ComponentPropsWithoutRef<"label">`,elements:[{name:"signature",type:"object",raw:`{
1174
- attributes: UiNodeInputAttributes
1175
- node: UiNode
1176
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"label"'}],raw:'ComponentPropsWithoutRef<"label">'}]}],raw:"ComponentType<OryNodeLabelProps>",required:!0},description:"The Label component is rendered around Input components and is used to render form labels."},{key:"Checkbox",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1177
- attributes: UiNodeInputAttributes
1178
- node: UiNode
1179
- onClick?: MouseEventHandler
1180
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"The Checkbox component is rendered whenever an input node with of boolean type is encountered."},{key:"Text",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1181
- attributes: UiNodeTextAttributes
1182
- node: UiNode
1183
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeTextAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeTextProps>",required:!0},description:'The Text component is rendered whenever a "text" node is encountered.'}]},required:!0}},{key:"Card",value:{name:"signature",type:"object",raw:`{
1184
- /**
1185
- * The card container is the main container of the card.
1186
- */
1187
- Root: ComponentType<OryCardRootProps>
1188
- /**
1189
- * The card footer is the footer of the card container.
1190
- */
1191
- Footer: ComponentType<OryCardFooterProps>
1192
- /**
1193
- * The card header is the header of the card container.
1194
- */
1195
- Header: ComponentType<OryCardRootProps>
1196
- /**
1197
- * The card content is the main content of the card container.
1198
- */
1199
- Content: ComponentType<OryCardContentProps>
1200
- /**
1201
- * The card logo is the logo of the card container.
1202
- */
1203
- Logo: ComponentType<OryCardLogoProps>
1204
- /**
1205
- * The HorizontalDivider component is rendered between groups.
1206
- */
1207
- Divider: ComponentType<OryCardDividerProps>
1208
- /**
1209
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
1210
- *
1211
- * This is only used, if login is configured to use identifier_first authentication.
1212
- */
1213
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
1214
-
1215
- /**
1216
- * The SettingsSection component is rendered around each section of the settings.
1217
- */
1218
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
1219
- /**
1220
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
1221
- */
1222
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
1223
- /**
1224
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
1225
- */
1226
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
1227
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card container is the main container of the card."},{key:"Footer",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardFooterProps>",required:!0},description:"The card footer is the footer of the card container."},{key:"Header",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card header is the header of the card container."},{key:"Content",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardContentProps>",required:!0},description:"The card content is the main content of the card container."},{key:"Logo",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardLogoProps>",required:!0},description:"The card logo is the logo of the card container."},{key:"Divider",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardDividerProps>",required:!0},description:"The HorizontalDivider component is rendered between groups."},{key:"AuthMethodListItem",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1228
- onClick: () => void
1229
- group: string
1230
- }`,signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"group",value:{name:"string",required:!0}}]}}],raw:"ComponentType<OryCardAuthMethodListItemProps>",required:!0},description:`The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
1231
-
1232
- This is only used, if login is configured to use identifier_first authentication.`},{key:"SettingsSection",value:{name:"ComponentType",elements:[{name:"intersection",raw:`PropsWithChildren & {
1233
- action: string
1234
- method: string
1235
- onSubmit: FormEventHandler<HTMLFormElement>
1236
- }`,elements:[{name:"PropsWithChildren"},{name:"signature",type:"object",raw:`{
1237
- action: string
1238
- method: string
1239
- onSubmit: FormEventHandler<HTMLFormElement>
1240
- }`,signature:{properties:[{key:"action",value:{name:"string",required:!0}},{key:"method",value:{name:"string",required:!0}},{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryCardSettingsSectionProps>",required:!0},description:"The SettingsSection component is rendered around each section of the settings."},{key:"SettingsSectionContent",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
1241
- title?: string
1242
- description?: string
1243
- }`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"description",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
1244
- title?: string
1245
- description?: string
1246
- }>`}],raw:"ComponentType<OryFormSectionContentProps>",required:!0},description:"The SettingsSectionContent component is rendered around the content of each section of the settings."},{key:"SettingsSectionFooter",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
1247
- text?: string
1248
- }`,signature:{properties:[{key:"text",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
1249
- text?: string
1250
- }>`}],raw:"ComponentType<OryFormSectionFooterProps>",required:!0},description:"The SettingsSectionFooter component is rendered around the footer of each section of the settings."}]},required:!0}},{key:"Form",value:{name:"signature",type:"object",raw:`{
1251
- /**
1252
- * The FormContainer component is the main container of the form.
1253
- *
1254
- * It should render its children.
1255
- *
1256
- * You most likely don't want to override this component directly.
1257
- */
1258
- Root: ComponentType<OryFormRootProps>
1259
- /**
1260
- * A special form group container for the social buttons.
1261
- *
1262
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
1263
- *
1264
- * You most likely don't want to override this component directly.
1265
- */
1266
- OidcRoot: ComponentType<OryFormOidcRootProps>
1267
-
1268
- /**
1269
- * The FormGroup is rendered around each group of nodes in the UI nodes.
1270
- */
1271
- Group: ComponentType<OryFormGroupProps>
1272
-
1273
- /**
1274
- * The section on the settings page, rendering the OIDC settings
1275
- */
1276
- OidcSettings: ComponentType<OrySettingsOidcProps>
1277
-
1278
- /**
1279
- * The section on the settings page, rendering the Webauthn settings
1280
- */
1281
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
1282
-
1283
- /**
1284
- * The section on the settings page, rendering the Passkey settings
1285
- */
1286
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
1287
-
1288
- /**
1289
- * The section on the settings page, rendering the TOTP settings
1290
- */
1291
- TotpSettings: ComponentType<OrySettingsTotpProps>
1292
-
1293
- /**
1294
- * The section on the settings page, rendering the recovery code settings
1295
- */
1296
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
1297
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"intersection",raw:`ComponentPropsWithoutRef<"form"> & {
1298
- onSubmit: FormEventHandler<HTMLFormElement>
1299
- }`,elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"form"'}],raw:'ComponentPropsWithoutRef<"form">'},{name:"signature",type:"object",raw:`{
1300
- onSubmit: FormEventHandler<HTMLFormElement>
1301
- }`,signature:{properties:[{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryFormRootProps>",required:!0},description:`The FormContainer component is the main container of the form.
1302
-
1303
- It should render its children.
1304
-
1305
- You most likely don't want to override this component directly.`},{key:"OidcRoot",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
1306
- nodes: UiNode[]
1307
- }`,signature:{properties:[{key:"nodes",value:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]",required:!0}}]}}],raw:`PropsWithChildren<{
1308
- nodes: UiNode[]
1309
- }>`}],raw:"ComponentType<OryFormOidcRootProps>",required:!0},description:`A special form group container for the social buttons.
1310
-
1311
- This is required, because the social buttons need to be in its form, to not influence the other form groups.
1312
-
1313
- You most likely don't want to override this component directly.`},{key:"Group",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryFormGroupProps>",required:!0},description:"The FormGroup is rendered around each group of nodes in the UI nodes."},{key:"OidcSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1314
- linkButtons: (UiNode & { onClick: () => void })[]
1315
- unlinkButtons: (UiNode & { onClick: () => void })[]
1316
- }`,signature:{properties:[{key:"linkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}},{key:"unlinkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsOidcProps>",required:!0},description:"The section on the settings page, rendering the OIDC settings"},{key:"WebauthnSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1317
- nameInput: UiNode
1318
- triggerButton: UiNode & { onClick: () => void }
1319
- removeButtons: (UiNode & { onClick: () => void })[]
1320
- }`,signature:{properties:[{key:"nameInput",value:{name:"UiNode",required:!0}},{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsWebauthnProps>",required:!0},description:"The section on the settings page, rendering the Webauthn settings"},{key:"PasskeySettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1321
- triggerButton: UiNode & { onClick: () => void }
1322
- removeButtons: (UiNode & { onClick: () => void })[]
1323
- }`,signature:{properties:[{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsPasskeyProps>",required:!0},description:"The section on the settings page, rendering the Passkey settings"},{key:"TotpSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1324
- totpImage: UiNode | undefined
1325
- totpSecret: UiNode | undefined
1326
- totpInput: UiNode | undefined
1327
- totpUnlink: UiNode | undefined
1328
- onUnlink: () => void
1329
- }`,signature:{properties:[{key:"totpImage",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpSecret",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpInput",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpUnlink",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onUnlink",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsTotpProps>",required:!0},description:"The section on the settings page, rendering the TOTP settings"},{key:"RecoveryCodesSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1330
- codes: string[]
1331
- regnerateButton: UiNode | undefined
1332
- revealButton: UiNode | undefined
1333
- onRegenerate: () => void
1334
- onReveal: () => void
1335
- }`,signature:{properties:[{key:"codes",value:{name:"Array",elements:[{name:"string"}],raw:"string[]",required:!0}},{key:"regnerateButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"revealButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onRegenerate",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onReveal",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsRecoveryCodesProps>",required:!0},description:"The section on the settings page, rendering the recovery code settings"}]},required:!0}},{key:"Message",value:{name:"signature",type:"object",raw:`{
1336
- /**
1337
- * The MessageContainer is rendered around the messages.
1338
- */
1339
- Root: ComponentType<OryMessageRootProps>
1340
-
1341
- /**
1342
- * The Message component is rendered whenever a message is encountered.
1343
- */
1344
- Content: ComponentType<OryMessageContentProps>
1345
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"DetailedHTMLProps",elements:[{name:"HTMLAttributes",elements:[{name:"HTMLDivElement"}],raw:"HTMLAttributes<HTMLDivElement>"},{name:"HTMLDivElement"}],raw:`DetailedHTMLProps<
1346
- HTMLAttributes<HTMLDivElement>,
1347
- HTMLDivElement
1348
- >`}],raw:"ComponentType<OryMessageRootProps>",required:!0},description:"The MessageContainer is rendered around the messages."},{key:"Content",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1349
- message: UiText
1350
- }`,signature:{properties:[{key:"message",value:{name:"UiText",required:!0}}]}}],raw:"ComponentType<OryMessageContentProps>",required:!0},description:"The Message component is rendered whenever a message is encountered."}]},required:!0}},{key:"Page",value:{name:"signature",type:"object",raw:`{
1351
- Header: ComponentType<OryPageHeaderProps>
1352
- }`,signature:{properties:[{key:"Header",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"never"},{name:"never"}],raw:"Record<never, never>"}],raw:"ComponentType<OryPageHeaderProps>",required:!0}}]},required:!0}}]},required:!1},value:{name:"unknown"}}]}},description:""},config:{required:!0,tsType:{name:"signature",type:"object",raw:`{
1353
- /**
1354
- * The name of the application the user is logging in to.
1355
- */
1356
- name: string
1357
-
1358
- /**
1359
- * An optional logo URL to display in the UI instead of the name.
1360
- */
1361
- logoUrl?: string
1362
-
1363
- stylesheet?: string
1364
-
1365
- favicon?: string
1366
-
1367
- sdk: {
1368
- url: string
1369
- options?: Partial<ConfigurationParameters>
1370
- }
1371
-
1372
- project: {
1373
- registration_enabled: boolean
1374
- verification_enabled: boolean
1375
- recovery_enabled: boolean
1376
-
1377
- recovery_ui_url: string
1378
- registration_ui_url: string
1379
- verification_ui_url: string
1380
- login_ui_url: string
1381
- }
1382
- intl?: IntlConfig
1383
- }`,signature:{properties:[{key:"name",value:{name:"string",required:!0},description:"The name of the application the user is logging in to."},{key:"logoUrl",value:{name:"string",required:!1},description:"An optional logo URL to display in the UI instead of the name."},{key:"stylesheet",value:{name:"string",required:!1}},{key:"favicon",value:{name:"string",required:!1}},{key:"sdk",value:{name:"signature",type:"object",raw:`{
1384
- url: string
1385
- options?: Partial<ConfigurationParameters>
1386
- }`,signature:{properties:[{key:"url",value:{name:"string",required:!0}},{key:"options",value:{name:"Partial",elements:[{name:"ConfigurationParameters"}],raw:"Partial<ConfigurationParameters>",required:!1}}]},required:!0}},{key:"project",value:{name:"signature",type:"object",raw:`{
1387
- registration_enabled: boolean
1388
- verification_enabled: boolean
1389
- recovery_enabled: boolean
1390
-
1391
- recovery_ui_url: string
1392
- registration_ui_url: string
1393
- verification_ui_url: string
1394
- login_ui_url: string
1395
- }`,signature:{properties:[{key:"registration_enabled",value:{name:"boolean",required:!0}},{key:"verification_enabled",value:{name:"boolean",required:!0}},{key:"recovery_enabled",value:{name:"boolean",required:!0}},{key:"recovery_ui_url",value:{name:"string",required:!0}},{key:"registration_ui_url",value:{name:"string",required:!0}},{key:"verification_ui_url",value:{name:"string",required:!0}},{key:"login_ui_url",value:{name:"string",required:!0}}]},required:!0}},{key:"intl",value:{name:"signature",type:"object",raw:`{
1396
- locale: Locale
1397
- customTranslations?: Partial<LocaleMap>
1398
- }`,signature:{properties:[{key:"locale",value:{name:"union",raw:"keyof typeof OryLocales",elements:[{name:"literal",value:"en"},{name:"literal",value:"de"},{name:"literal",value:"es"},{name:"literal",value:"fr"},{name:"literal",value:"nl"},{name:"literal",value:"pl"},{name:"literal",value:"pt"},{name:"literal",value:"sv"}],required:!0}},{key:"customTranslations",value:{name:"Partial",elements:[{name:"Record",elements:[{name:"string"},{name:"Record",elements:[{name:"string"},{name:"string"}],raw:"Record<string, string>"}],raw:"Record<string, Record<string, string>>"}],raw:"Partial<LocaleMap>",required:!1}}]},required:!1}}]}},description:""}}};function cb({flow:e,children:t,components:n,config:i}){const r=So(n);return d.jsx(Si,{config:i,flow:e,flowType:J.Registration,components:r,children:t??d.jsx(Yr,{})})}cb.__docgenInfo={description:"",methods:[],displayName:"Registration",props:{flow:{required:!0,tsType:{name:"RegistrationFlow"},description:""},components:{required:!1,tsType:{name:"signature",type:"object",raw:`{
1399
- [P in keyof T]?: T[P] extends object ? { [K in keyof T[P]]?: T[P][K] } : T[P]
1400
- }`,signature:{properties:[{key:{name:"signature",type:"object",raw:`{
1401
- Node: {
1402
- /**
1403
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
1404
- */
1405
- Button: ComponentType<OryNodeButtonProps>
1406
- /**
1407
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
1408
- *
1409
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
1410
- */
1411
- OidcButton: ComponentType<OryNodeOidcButtonProps>
1412
- /**
1413
- * Anchor component, rendered whenever an "anchor" node is encountered
1414
- */
1415
- Anchor: ComponentType<OryNodeAnchorProps>
1416
- /**
1417
- * The Input component is rendered whenever a "input" node is encountered.
1418
- */
1419
- Input: ComponentType<OryNodeInputProps>
1420
- /**
1421
- * Special version of the Input component for OTP codes.
1422
- */
1423
- CodeInput: ComponentType<OryNodeInputProps>
1424
- /**
1425
- * The Image component is rendered whenever an "image" node is encountered.
1426
- *
1427
- * For example used in the "Logo" node.
1428
- */
1429
- Image: ComponentType<OryNodeImageProps>
1430
- /**
1431
- * The Label component is rendered around Input components and is used to render form labels.
1432
- */
1433
- Label: ComponentType<OryNodeLabelProps>
1434
- /**
1435
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
1436
- */
1437
- Checkbox: ComponentType<OryNodeInputProps>
1438
- /**
1439
- * The Text component is rendered whenever a "text" node is encountered.
1440
- */
1441
- Text: ComponentType<OryNodeTextProps>
1442
- }
1443
- Card: {
1444
- /**
1445
- * The card container is the main container of the card.
1446
- */
1447
- Root: ComponentType<OryCardRootProps>
1448
- /**
1449
- * The card footer is the footer of the card container.
1450
- */
1451
- Footer: ComponentType<OryCardFooterProps>
1452
- /**
1453
- * The card header is the header of the card container.
1454
- */
1455
- Header: ComponentType<OryCardRootProps>
1456
- /**
1457
- * The card content is the main content of the card container.
1458
- */
1459
- Content: ComponentType<OryCardContentProps>
1460
- /**
1461
- * The card logo is the logo of the card container.
1462
- */
1463
- Logo: ComponentType<OryCardLogoProps>
1464
- /**
1465
- * The HorizontalDivider component is rendered between groups.
1466
- */
1467
- Divider: ComponentType<OryCardDividerProps>
1468
- /**
1469
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
1470
- *
1471
- * This is only used, if login is configured to use identifier_first authentication.
1472
- */
1473
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
1474
-
1475
- /**
1476
- * The SettingsSection component is rendered around each section of the settings.
1477
- */
1478
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
1479
- /**
1480
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
1481
- */
1482
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
1483
- /**
1484
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
1485
- */
1486
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
1487
- }
1488
- Form: {
1489
- /**
1490
- * The FormContainer component is the main container of the form.
1491
- *
1492
- * It should render its children.
1493
- *
1494
- * You most likely don't want to override this component directly.
1495
- */
1496
- Root: ComponentType<OryFormRootProps>
1497
- /**
1498
- * A special form group container for the social buttons.
1499
- *
1500
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
1501
- *
1502
- * You most likely don't want to override this component directly.
1503
- */
1504
- OidcRoot: ComponentType<OryFormOidcRootProps>
1505
-
1506
- /**
1507
- * The FormGroup is rendered around each group of nodes in the UI nodes.
1508
- */
1509
- Group: ComponentType<OryFormGroupProps>
1510
-
1511
- /**
1512
- * The section on the settings page, rendering the OIDC settings
1513
- */
1514
- OidcSettings: ComponentType<OrySettingsOidcProps>
1515
-
1516
- /**
1517
- * The section on the settings page, rendering the Webauthn settings
1518
- */
1519
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
1520
-
1521
- /**
1522
- * The section on the settings page, rendering the Passkey settings
1523
- */
1524
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
1525
-
1526
- /**
1527
- * The section on the settings page, rendering the TOTP settings
1528
- */
1529
- TotpSettings: ComponentType<OrySettingsTotpProps>
1530
-
1531
- /**
1532
- * The section on the settings page, rendering the recovery code settings
1533
- */
1534
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
1535
- }
1536
- Message: {
1537
- /**
1538
- * The MessageContainer is rendered around the messages.
1539
- */
1540
- Root: ComponentType<OryMessageRootProps>
1541
-
1542
- /**
1543
- * The Message component is rendered whenever a message is encountered.
1544
- */
1545
- Content: ComponentType<OryMessageContentProps>
1546
- }
1547
- Page: {
1548
- Header: ComponentType<OryPageHeaderProps>
1549
- }
1550
- }`,signature:{properties:[{key:"Node",value:{name:"signature",type:"object",raw:`{
1551
- /**
1552
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
1553
- */
1554
- Button: ComponentType<OryNodeButtonProps>
1555
- /**
1556
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
1557
- *
1558
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
1559
- */
1560
- OidcButton: ComponentType<OryNodeOidcButtonProps>
1561
- /**
1562
- * Anchor component, rendered whenever an "anchor" node is encountered
1563
- */
1564
- Anchor: ComponentType<OryNodeAnchorProps>
1565
- /**
1566
- * The Input component is rendered whenever a "input" node is encountered.
1567
- */
1568
- Input: ComponentType<OryNodeInputProps>
1569
- /**
1570
- * Special version of the Input component for OTP codes.
1571
- */
1572
- CodeInput: ComponentType<OryNodeInputProps>
1573
- /**
1574
- * The Image component is rendered whenever an "image" node is encountered.
1575
- *
1576
- * For example used in the "Logo" node.
1577
- */
1578
- Image: ComponentType<OryNodeImageProps>
1579
- /**
1580
- * The Label component is rendered around Input components and is used to render form labels.
1581
- */
1582
- Label: ComponentType<OryNodeLabelProps>
1583
- /**
1584
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
1585
- */
1586
- Checkbox: ComponentType<OryNodeInputProps>
1587
- /**
1588
- * The Text component is rendered whenever a "text" node is encountered.
1589
- */
1590
- Text: ComponentType<OryNodeTextProps>
1591
- }`,signature:{properties:[{key:"Button",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
1592
- attributes: UiNodeInputAttributes
1593
- node: UiNode
1594
- } & Omit<ComponentPropsWithoutRef<"button">, "children"> &
1595
- ButtonVariants`,elements:[{name:"signature",type:"object",raw:`{
1596
- attributes: UiNodeInputAttributes
1597
- node: UiNode
1598
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"button"'}],raw:'ComponentPropsWithoutRef<"button">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"button">, "children">'},{name:"VariantProps",elements:[{name:"buttonStyles"}],raw:"VariantProps<typeof buttonStyles>"}]}],raw:"ComponentType<OryNodeButtonProps>",required:!0},description:"Button component, rendered whenever a button is encountered in the Ory UI Nodes."},{key:"OidcButton",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1599
- node: UiNode
1600
- attributes: UiNodeInputAttributes
1601
- onClick?: () => void
1602
- }`,signature:{properties:[{key:"node",value:{name:"UiNode",required:!0}},{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}}],raw:"ComponentType<OryNodeOidcButtonProps>",required:!0},description:`The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
1603
-
1604
- It renders the "Login with Google", "Login with Facebook" etc. buttons.`},{key:"Anchor",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
1605
- attributes: UiNodeAnchorAttributes
1606
- node: UiNode
1607
- } & Omit<ComponentPropsWithoutRef<"a">, "children">`,elements:[{name:"signature",type:"object",raw:`{
1608
- attributes: UiNodeAnchorAttributes
1609
- node: UiNode
1610
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeAnchorAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"a"'}],raw:'ComponentPropsWithoutRef<"a">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"a">, "children">'}]}],raw:"ComponentType<OryNodeAnchorProps>",required:!0},description:'Anchor component, rendered whenever an "anchor" node is encountered'},{key:"Input",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1611
- attributes: UiNodeInputAttributes
1612
- node: UiNode
1613
- onClick?: MouseEventHandler
1614
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:'The Input component is rendered whenever a "input" node is encountered.'},{key:"CodeInput",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1615
- attributes: UiNodeInputAttributes
1616
- node: UiNode
1617
- onClick?: MouseEventHandler
1618
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"Special version of the Input component for OTP codes."},{key:"Image",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1619
- attributes: UiNodeImageAttributes
1620
- node: UiNode
1621
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeImageAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeImageProps>",required:!0},description:`The Image component is rendered whenever an "image" node is encountered.
1622
-
1623
- For example used in the "Logo" node.`},{key:"Label",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
1624
- attributes: UiNodeInputAttributes
1625
- node: UiNode
1626
- } & ComponentPropsWithoutRef<"label">`,elements:[{name:"signature",type:"object",raw:`{
1627
- attributes: UiNodeInputAttributes
1628
- node: UiNode
1629
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"label"'}],raw:'ComponentPropsWithoutRef<"label">'}]}],raw:"ComponentType<OryNodeLabelProps>",required:!0},description:"The Label component is rendered around Input components and is used to render form labels."},{key:"Checkbox",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1630
- attributes: UiNodeInputAttributes
1631
- node: UiNode
1632
- onClick?: MouseEventHandler
1633
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"The Checkbox component is rendered whenever an input node with of boolean type is encountered."},{key:"Text",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1634
- attributes: UiNodeTextAttributes
1635
- node: UiNode
1636
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeTextAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeTextProps>",required:!0},description:'The Text component is rendered whenever a "text" node is encountered.'}]},required:!0}},{key:"Card",value:{name:"signature",type:"object",raw:`{
1637
- /**
1638
- * The card container is the main container of the card.
1639
- */
1640
- Root: ComponentType<OryCardRootProps>
1641
- /**
1642
- * The card footer is the footer of the card container.
1643
- */
1644
- Footer: ComponentType<OryCardFooterProps>
1645
- /**
1646
- * The card header is the header of the card container.
1647
- */
1648
- Header: ComponentType<OryCardRootProps>
1649
- /**
1650
- * The card content is the main content of the card container.
1651
- */
1652
- Content: ComponentType<OryCardContentProps>
1653
- /**
1654
- * The card logo is the logo of the card container.
1655
- */
1656
- Logo: ComponentType<OryCardLogoProps>
1657
- /**
1658
- * The HorizontalDivider component is rendered between groups.
1659
- */
1660
- Divider: ComponentType<OryCardDividerProps>
1661
- /**
1662
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
1663
- *
1664
- * This is only used, if login is configured to use identifier_first authentication.
1665
- */
1666
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
1667
-
1668
- /**
1669
- * The SettingsSection component is rendered around each section of the settings.
1670
- */
1671
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
1672
- /**
1673
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
1674
- */
1675
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
1676
- /**
1677
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
1678
- */
1679
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
1680
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card container is the main container of the card."},{key:"Footer",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardFooterProps>",required:!0},description:"The card footer is the footer of the card container."},{key:"Header",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card header is the header of the card container."},{key:"Content",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardContentProps>",required:!0},description:"The card content is the main content of the card container."},{key:"Logo",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardLogoProps>",required:!0},description:"The card logo is the logo of the card container."},{key:"Divider",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardDividerProps>",required:!0},description:"The HorizontalDivider component is rendered between groups."},{key:"AuthMethodListItem",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1681
- onClick: () => void
1682
- group: string
1683
- }`,signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"group",value:{name:"string",required:!0}}]}}],raw:"ComponentType<OryCardAuthMethodListItemProps>",required:!0},description:`The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
1684
-
1685
- This is only used, if login is configured to use identifier_first authentication.`},{key:"SettingsSection",value:{name:"ComponentType",elements:[{name:"intersection",raw:`PropsWithChildren & {
1686
- action: string
1687
- method: string
1688
- onSubmit: FormEventHandler<HTMLFormElement>
1689
- }`,elements:[{name:"PropsWithChildren"},{name:"signature",type:"object",raw:`{
1690
- action: string
1691
- method: string
1692
- onSubmit: FormEventHandler<HTMLFormElement>
1693
- }`,signature:{properties:[{key:"action",value:{name:"string",required:!0}},{key:"method",value:{name:"string",required:!0}},{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryCardSettingsSectionProps>",required:!0},description:"The SettingsSection component is rendered around each section of the settings."},{key:"SettingsSectionContent",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
1694
- title?: string
1695
- description?: string
1696
- }`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"description",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
1697
- title?: string
1698
- description?: string
1699
- }>`}],raw:"ComponentType<OryFormSectionContentProps>",required:!0},description:"The SettingsSectionContent component is rendered around the content of each section of the settings."},{key:"SettingsSectionFooter",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
1700
- text?: string
1701
- }`,signature:{properties:[{key:"text",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
1702
- text?: string
1703
- }>`}],raw:"ComponentType<OryFormSectionFooterProps>",required:!0},description:"The SettingsSectionFooter component is rendered around the footer of each section of the settings."}]},required:!0}},{key:"Form",value:{name:"signature",type:"object",raw:`{
1704
- /**
1705
- * The FormContainer component is the main container of the form.
1706
- *
1707
- * It should render its children.
1708
- *
1709
- * You most likely don't want to override this component directly.
1710
- */
1711
- Root: ComponentType<OryFormRootProps>
1712
- /**
1713
- * A special form group container for the social buttons.
1714
- *
1715
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
1716
- *
1717
- * You most likely don't want to override this component directly.
1718
- */
1719
- OidcRoot: ComponentType<OryFormOidcRootProps>
1720
-
1721
- /**
1722
- * The FormGroup is rendered around each group of nodes in the UI nodes.
1723
- */
1724
- Group: ComponentType<OryFormGroupProps>
1725
-
1726
- /**
1727
- * The section on the settings page, rendering the OIDC settings
1728
- */
1729
- OidcSettings: ComponentType<OrySettingsOidcProps>
1730
-
1731
- /**
1732
- * The section on the settings page, rendering the Webauthn settings
1733
- */
1734
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
1735
-
1736
- /**
1737
- * The section on the settings page, rendering the Passkey settings
1738
- */
1739
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
1740
-
1741
- /**
1742
- * The section on the settings page, rendering the TOTP settings
1743
- */
1744
- TotpSettings: ComponentType<OrySettingsTotpProps>
1745
-
1746
- /**
1747
- * The section on the settings page, rendering the recovery code settings
1748
- */
1749
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
1750
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"intersection",raw:`ComponentPropsWithoutRef<"form"> & {
1751
- onSubmit: FormEventHandler<HTMLFormElement>
1752
- }`,elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"form"'}],raw:'ComponentPropsWithoutRef<"form">'},{name:"signature",type:"object",raw:`{
1753
- onSubmit: FormEventHandler<HTMLFormElement>
1754
- }`,signature:{properties:[{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryFormRootProps>",required:!0},description:`The FormContainer component is the main container of the form.
1755
-
1756
- It should render its children.
1757
-
1758
- You most likely don't want to override this component directly.`},{key:"OidcRoot",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
1759
- nodes: UiNode[]
1760
- }`,signature:{properties:[{key:"nodes",value:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]",required:!0}}]}}],raw:`PropsWithChildren<{
1761
- nodes: UiNode[]
1762
- }>`}],raw:"ComponentType<OryFormOidcRootProps>",required:!0},description:`A special form group container for the social buttons.
1763
-
1764
- This is required, because the social buttons need to be in its form, to not influence the other form groups.
1765
-
1766
- You most likely don't want to override this component directly.`},{key:"Group",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryFormGroupProps>",required:!0},description:"The FormGroup is rendered around each group of nodes in the UI nodes."},{key:"OidcSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1767
- linkButtons: (UiNode & { onClick: () => void })[]
1768
- unlinkButtons: (UiNode & { onClick: () => void })[]
1769
- }`,signature:{properties:[{key:"linkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}},{key:"unlinkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsOidcProps>",required:!0},description:"The section on the settings page, rendering the OIDC settings"},{key:"WebauthnSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1770
- nameInput: UiNode
1771
- triggerButton: UiNode & { onClick: () => void }
1772
- removeButtons: (UiNode & { onClick: () => void })[]
1773
- }`,signature:{properties:[{key:"nameInput",value:{name:"UiNode",required:!0}},{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsWebauthnProps>",required:!0},description:"The section on the settings page, rendering the Webauthn settings"},{key:"PasskeySettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1774
- triggerButton: UiNode & { onClick: () => void }
1775
- removeButtons: (UiNode & { onClick: () => void })[]
1776
- }`,signature:{properties:[{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsPasskeyProps>",required:!0},description:"The section on the settings page, rendering the Passkey settings"},{key:"TotpSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1777
- totpImage: UiNode | undefined
1778
- totpSecret: UiNode | undefined
1779
- totpInput: UiNode | undefined
1780
- totpUnlink: UiNode | undefined
1781
- onUnlink: () => void
1782
- }`,signature:{properties:[{key:"totpImage",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpSecret",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpInput",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpUnlink",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onUnlink",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsTotpProps>",required:!0},description:"The section on the settings page, rendering the TOTP settings"},{key:"RecoveryCodesSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1783
- codes: string[]
1784
- regnerateButton: UiNode | undefined
1785
- revealButton: UiNode | undefined
1786
- onRegenerate: () => void
1787
- onReveal: () => void
1788
- }`,signature:{properties:[{key:"codes",value:{name:"Array",elements:[{name:"string"}],raw:"string[]",required:!0}},{key:"regnerateButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"revealButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onRegenerate",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onReveal",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsRecoveryCodesProps>",required:!0},description:"The section on the settings page, rendering the recovery code settings"}]},required:!0}},{key:"Message",value:{name:"signature",type:"object",raw:`{
1789
- /**
1790
- * The MessageContainer is rendered around the messages.
1791
- */
1792
- Root: ComponentType<OryMessageRootProps>
1793
-
1794
- /**
1795
- * The Message component is rendered whenever a message is encountered.
1796
- */
1797
- Content: ComponentType<OryMessageContentProps>
1798
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"DetailedHTMLProps",elements:[{name:"HTMLAttributes",elements:[{name:"HTMLDivElement"}],raw:"HTMLAttributes<HTMLDivElement>"},{name:"HTMLDivElement"}],raw:`DetailedHTMLProps<
1799
- HTMLAttributes<HTMLDivElement>,
1800
- HTMLDivElement
1801
- >`}],raw:"ComponentType<OryMessageRootProps>",required:!0},description:"The MessageContainer is rendered around the messages."},{key:"Content",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
1802
- message: UiText
1803
- }`,signature:{properties:[{key:"message",value:{name:"UiText",required:!0}}]}}],raw:"ComponentType<OryMessageContentProps>",required:!0},description:"The Message component is rendered whenever a message is encountered."}]},required:!0}},{key:"Page",value:{name:"signature",type:"object",raw:`{
1804
- Header: ComponentType<OryPageHeaderProps>
1805
- }`,signature:{properties:[{key:"Header",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"never"},{name:"never"}],raw:"Record<never, never>"}],raw:"ComponentType<OryPageHeaderProps>",required:!0}}]},required:!0}}]},required:!1},value:{name:"unknown"}}]}},description:""},config:{required:!0,tsType:{name:"signature",type:"object",raw:`{
1806
- /**
1807
- * The name of the application the user is logging in to.
1808
- */
1809
- name: string
1810
-
1811
- /**
1812
- * An optional logo URL to display in the UI instead of the name.
1813
- */
1814
- logoUrl?: string
1815
-
1816
- stylesheet?: string
1817
-
1818
- favicon?: string
1819
-
1820
- sdk: {
1821
- url: string
1822
- options?: Partial<ConfigurationParameters>
1823
- }
1824
-
1825
- project: {
1826
- registration_enabled: boolean
1827
- verification_enabled: boolean
1828
- recovery_enabled: boolean
1829
-
1830
- recovery_ui_url: string
1831
- registration_ui_url: string
1832
- verification_ui_url: string
1833
- login_ui_url: string
1834
- }
1835
- intl?: IntlConfig
1836
- }`,signature:{properties:[{key:"name",value:{name:"string",required:!0},description:"The name of the application the user is logging in to."},{key:"logoUrl",value:{name:"string",required:!1},description:"An optional logo URL to display in the UI instead of the name."},{key:"stylesheet",value:{name:"string",required:!1}},{key:"favicon",value:{name:"string",required:!1}},{key:"sdk",value:{name:"signature",type:"object",raw:`{
1837
- url: string
1838
- options?: Partial<ConfigurationParameters>
1839
- }`,signature:{properties:[{key:"url",value:{name:"string",required:!0}},{key:"options",value:{name:"Partial",elements:[{name:"ConfigurationParameters"}],raw:"Partial<ConfigurationParameters>",required:!1}}]},required:!0}},{key:"project",value:{name:"signature",type:"object",raw:`{
1840
- registration_enabled: boolean
1841
- verification_enabled: boolean
1842
- recovery_enabled: boolean
1843
-
1844
- recovery_ui_url: string
1845
- registration_ui_url: string
1846
- verification_ui_url: string
1847
- login_ui_url: string
1848
- }`,signature:{properties:[{key:"registration_enabled",value:{name:"boolean",required:!0}},{key:"verification_enabled",value:{name:"boolean",required:!0}},{key:"recovery_enabled",value:{name:"boolean",required:!0}},{key:"recovery_ui_url",value:{name:"string",required:!0}},{key:"registration_ui_url",value:{name:"string",required:!0}},{key:"verification_ui_url",value:{name:"string",required:!0}},{key:"login_ui_url",value:{name:"string",required:!0}}]},required:!0}},{key:"intl",value:{name:"signature",type:"object",raw:`{
1849
- locale: Locale
1850
- customTranslations?: Partial<LocaleMap>
1851
- }`,signature:{properties:[{key:"locale",value:{name:"union",raw:"keyof typeof OryLocales",elements:[{name:"literal",value:"en"},{name:"literal",value:"de"},{name:"literal",value:"es"},{name:"literal",value:"fr"},{name:"literal",value:"nl"},{name:"literal",value:"pl"},{name:"literal",value:"pt"},{name:"literal",value:"sv"}],required:!0}},{key:"customTranslations",value:{name:"Partial",elements:[{name:"Record",elements:[{name:"string"},{name:"Record",elements:[{name:"string"},{name:"string"}],raw:"Record<string, string>"}],raw:"Record<string, Record<string, string>>"}],raw:"Partial<LocaleMap>",required:!1}}]},required:!1}}]}},description:""}}};function mb({flow:e,config:t,children:n,components:i}){const r=So(i);return d.jsx(Si,{config:t,flow:e,flowType:J.Settings,components:r,children:n??d.jsxs(d.Fragment,{children:[d.jsx(Wa,{}),d.jsx(Xa,{})]})})}mb.__docgenInfo={description:"",methods:[],displayName:"Settings",props:{flow:{required:!0,tsType:{name:"SettingsFlow"},description:""},components:{required:!1,tsType:{name:"signature",type:"object",raw:`{
1852
- [P in keyof T]?: T[P] extends object ? { [K in keyof T[P]]?: T[P][K] } : T[P]
1853
- }`,signature:{properties:[{key:{name:"signature",type:"object",raw:`{
1854
- Node: {
1855
- /**
1856
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
1857
- */
1858
- Button: ComponentType<OryNodeButtonProps>
1859
- /**
1860
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
1861
- *
1862
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
1863
- */
1864
- OidcButton: ComponentType<OryNodeOidcButtonProps>
1865
- /**
1866
- * Anchor component, rendered whenever an "anchor" node is encountered
1867
- */
1868
- Anchor: ComponentType<OryNodeAnchorProps>
1869
- /**
1870
- * The Input component is rendered whenever a "input" node is encountered.
1871
- */
1872
- Input: ComponentType<OryNodeInputProps>
1873
- /**
1874
- * Special version of the Input component for OTP codes.
1875
- */
1876
- CodeInput: ComponentType<OryNodeInputProps>
1877
- /**
1878
- * The Image component is rendered whenever an "image" node is encountered.
1879
- *
1880
- * For example used in the "Logo" node.
1881
- */
1882
- Image: ComponentType<OryNodeImageProps>
1883
- /**
1884
- * The Label component is rendered around Input components and is used to render form labels.
1885
- */
1886
- Label: ComponentType<OryNodeLabelProps>
1887
- /**
1888
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
1889
- */
1890
- Checkbox: ComponentType<OryNodeInputProps>
1891
- /**
1892
- * The Text component is rendered whenever a "text" node is encountered.
1893
- */
1894
- Text: ComponentType<OryNodeTextProps>
1895
- }
1896
- Card: {
1897
- /**
1898
- * The card container is the main container of the card.
1899
- */
1900
- Root: ComponentType<OryCardRootProps>
1901
- /**
1902
- * The card footer is the footer of the card container.
1903
- */
1904
- Footer: ComponentType<OryCardFooterProps>
1905
- /**
1906
- * The card header is the header of the card container.
1907
- */
1908
- Header: ComponentType<OryCardRootProps>
1909
- /**
1910
- * The card content is the main content of the card container.
1911
- */
1912
- Content: ComponentType<OryCardContentProps>
1913
- /**
1914
- * The card logo is the logo of the card container.
1915
- */
1916
- Logo: ComponentType<OryCardLogoProps>
1917
- /**
1918
- * The HorizontalDivider component is rendered between groups.
1919
- */
1920
- Divider: ComponentType<OryCardDividerProps>
1921
- /**
1922
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
1923
- *
1924
- * This is only used, if login is configured to use identifier_first authentication.
1925
- */
1926
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
1927
-
1928
- /**
1929
- * The SettingsSection component is rendered around each section of the settings.
1930
- */
1931
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
1932
- /**
1933
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
1934
- */
1935
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
1936
- /**
1937
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
1938
- */
1939
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
1940
- }
1941
- Form: {
1942
- /**
1943
- * The FormContainer component is the main container of the form.
1944
- *
1945
- * It should render its children.
1946
- *
1947
- * You most likely don't want to override this component directly.
1948
- */
1949
- Root: ComponentType<OryFormRootProps>
1950
- /**
1951
- * A special form group container for the social buttons.
1952
- *
1953
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
1954
- *
1955
- * You most likely don't want to override this component directly.
1956
- */
1957
- OidcRoot: ComponentType<OryFormOidcRootProps>
1958
-
1959
- /**
1960
- * The FormGroup is rendered around each group of nodes in the UI nodes.
1961
- */
1962
- Group: ComponentType<OryFormGroupProps>
1963
-
1964
- /**
1965
- * The section on the settings page, rendering the OIDC settings
1966
- */
1967
- OidcSettings: ComponentType<OrySettingsOidcProps>
1968
-
1969
- /**
1970
- * The section on the settings page, rendering the Webauthn settings
1971
- */
1972
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
1973
-
1974
- /**
1975
- * The section on the settings page, rendering the Passkey settings
1976
- */
1977
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
1978
-
1979
- /**
1980
- * The section on the settings page, rendering the TOTP settings
1981
- */
1982
- TotpSettings: ComponentType<OrySettingsTotpProps>
1983
-
1984
- /**
1985
- * The section on the settings page, rendering the recovery code settings
1986
- */
1987
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
1988
- }
1989
- Message: {
1990
- /**
1991
- * The MessageContainer is rendered around the messages.
1992
- */
1993
- Root: ComponentType<OryMessageRootProps>
1994
-
1995
- /**
1996
- * The Message component is rendered whenever a message is encountered.
1997
- */
1998
- Content: ComponentType<OryMessageContentProps>
1999
- }
2000
- Page: {
2001
- Header: ComponentType<OryPageHeaderProps>
2002
- }
2003
- }`,signature:{properties:[{key:"Node",value:{name:"signature",type:"object",raw:`{
2004
- /**
2005
- * Button component, rendered whenever a button is encountered in the Ory UI Nodes.
2006
- */
2007
- Button: ComponentType<OryNodeButtonProps>
2008
- /**
2009
- * The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
2010
- *
2011
- * It renders the "Login with Google", "Login with Facebook" etc. buttons.
2012
- */
2013
- OidcButton: ComponentType<OryNodeOidcButtonProps>
2014
- /**
2015
- * Anchor component, rendered whenever an "anchor" node is encountered
2016
- */
2017
- Anchor: ComponentType<OryNodeAnchorProps>
2018
- /**
2019
- * The Input component is rendered whenever a "input" node is encountered.
2020
- */
2021
- Input: ComponentType<OryNodeInputProps>
2022
- /**
2023
- * Special version of the Input component for OTP codes.
2024
- */
2025
- CodeInput: ComponentType<OryNodeInputProps>
2026
- /**
2027
- * The Image component is rendered whenever an "image" node is encountered.
2028
- *
2029
- * For example used in the "Logo" node.
2030
- */
2031
- Image: ComponentType<OryNodeImageProps>
2032
- /**
2033
- * The Label component is rendered around Input components and is used to render form labels.
2034
- */
2035
- Label: ComponentType<OryNodeLabelProps>
2036
- /**
2037
- * The Checkbox component is rendered whenever an input node with of boolean type is encountered.
2038
- */
2039
- Checkbox: ComponentType<OryNodeInputProps>
2040
- /**
2041
- * The Text component is rendered whenever a "text" node is encountered.
2042
- */
2043
- Text: ComponentType<OryNodeTextProps>
2044
- }`,signature:{properties:[{key:"Button",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
2045
- attributes: UiNodeInputAttributes
2046
- node: UiNode
2047
- } & Omit<ComponentPropsWithoutRef<"button">, "children"> &
2048
- ButtonVariants`,elements:[{name:"signature",type:"object",raw:`{
2049
- attributes: UiNodeInputAttributes
2050
- node: UiNode
2051
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"button"'}],raw:'ComponentPropsWithoutRef<"button">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"button">, "children">'},{name:"VariantProps",elements:[{name:"buttonStyles"}],raw:"VariantProps<typeof buttonStyles>"}]}],raw:"ComponentType<OryNodeButtonProps>",required:!0},description:"Button component, rendered whenever a button is encountered in the Ory UI Nodes."},{key:"OidcButton",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2052
- node: UiNode
2053
- attributes: UiNodeInputAttributes
2054
- onClick?: () => void
2055
- }`,signature:{properties:[{key:"node",value:{name:"UiNode",required:!0}},{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}}],raw:"ComponentType<OryNodeOidcButtonProps>",required:!0},description:`The SocialButton component is rendered whenever a button of group "oidc" node is encountered.
2056
-
2057
- It renders the "Login with Google", "Login with Facebook" etc. buttons.`},{key:"Anchor",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
2058
- attributes: UiNodeAnchorAttributes
2059
- node: UiNode
2060
- } & Omit<ComponentPropsWithoutRef<"a">, "children">`,elements:[{name:"signature",type:"object",raw:`{
2061
- attributes: UiNodeAnchorAttributes
2062
- node: UiNode
2063
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeAnchorAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"Omit",elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"a"'}],raw:'ComponentPropsWithoutRef<"a">'},{name:"literal",value:'"children"'}],raw:'Omit<ComponentPropsWithoutRef<"a">, "children">'}]}],raw:"ComponentType<OryNodeAnchorProps>",required:!0},description:'Anchor component, rendered whenever an "anchor" node is encountered'},{key:"Input",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2064
- attributes: UiNodeInputAttributes
2065
- node: UiNode
2066
- onClick?: MouseEventHandler
2067
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:'The Input component is rendered whenever a "input" node is encountered.'},{key:"CodeInput",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2068
- attributes: UiNodeInputAttributes
2069
- node: UiNode
2070
- onClick?: MouseEventHandler
2071
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"Special version of the Input component for OTP codes."},{key:"Image",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2072
- attributes: UiNodeImageAttributes
2073
- node: UiNode
2074
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeImageAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeImageProps>",required:!0},description:`The Image component is rendered whenever an "image" node is encountered.
2075
-
2076
- For example used in the "Logo" node.`},{key:"Label",value:{name:"ComponentType",elements:[{name:"intersection",raw:`{
2077
- attributes: UiNodeInputAttributes
2078
- node: UiNode
2079
- } & ComponentPropsWithoutRef<"label">`,elements:[{name:"signature",type:"object",raw:`{
2080
- attributes: UiNodeInputAttributes
2081
- node: UiNode
2082
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}},{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"label"'}],raw:'ComponentPropsWithoutRef<"label">'}]}],raw:"ComponentType<OryNodeLabelProps>",required:!0},description:"The Label component is rendered around Input components and is used to render form labels."},{key:"Checkbox",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2083
- attributes: UiNodeInputAttributes
2084
- node: UiNode
2085
- onClick?: MouseEventHandler
2086
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeInputAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}},{key:"onClick",value:{name:"MouseEventHandler",required:!1}}]}}],raw:"ComponentType<OryNodeInputProps>",required:!0},description:"The Checkbox component is rendered whenever an input node with of boolean type is encountered."},{key:"Text",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2087
- attributes: UiNodeTextAttributes
2088
- node: UiNode
2089
- }`,signature:{properties:[{key:"attributes",value:{name:"UiNodeTextAttributes",required:!0}},{key:"node",value:{name:"UiNode",required:!0}}]}}],raw:"ComponentType<OryNodeTextProps>",required:!0},description:'The Text component is rendered whenever a "text" node is encountered.'}]},required:!0}},{key:"Card",value:{name:"signature",type:"object",raw:`{
2090
- /**
2091
- * The card container is the main container of the card.
2092
- */
2093
- Root: ComponentType<OryCardRootProps>
2094
- /**
2095
- * The card footer is the footer of the card container.
2096
- */
2097
- Footer: ComponentType<OryCardFooterProps>
2098
- /**
2099
- * The card header is the header of the card container.
2100
- */
2101
- Header: ComponentType<OryCardRootProps>
2102
- /**
2103
- * The card content is the main content of the card container.
2104
- */
2105
- Content: ComponentType<OryCardContentProps>
2106
- /**
2107
- * The card logo is the logo of the card container.
2108
- */
2109
- Logo: ComponentType<OryCardLogoProps>
2110
- /**
2111
- * The HorizontalDivider component is rendered between groups.
2112
- */
2113
- Divider: ComponentType<OryCardDividerProps>
2114
- /**
2115
- * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
2116
- *
2117
- * This is only used, if login is configured to use identifier_first authentication.
2118
- */
2119
- AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>
2120
-
2121
- /**
2122
- * The SettingsSection component is rendered around each section of the settings.
2123
- */
2124
- SettingsSection: ComponentType<OryCardSettingsSectionProps>
2125
- /**
2126
- * The SettingsSectionContent component is rendered around the content of each section of the settings.
2127
- */
2128
- SettingsSectionContent: ComponentType<OryFormSectionContentProps>
2129
- /**
2130
- * The SettingsSectionFooter component is rendered around the footer of each section of the settings.
2131
- */
2132
- SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>
2133
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card container is the main container of the card."},{key:"Footer",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardFooterProps>",required:!0},description:"The card footer is the footer of the card container."},{key:"Header",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardRootProps>",required:!0},description:"The card header is the header of the card container."},{key:"Content",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryCardContentProps>",required:!0},description:"The card content is the main content of the card container."},{key:"Logo",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardLogoProps>",required:!0},description:"The card logo is the logo of the card container."},{key:"Divider",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"string"},{name:"never"}],raw:"Record<string, never>"}],raw:"ComponentType<OryCardDividerProps>",required:!0},description:"The HorizontalDivider component is rendered between groups."},{key:"AuthMethodListItem",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2134
- onClick: () => void
2135
- group: string
2136
- }`,signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"group",value:{name:"string",required:!0}}]}}],raw:"ComponentType<OryCardAuthMethodListItemProps>",required:!0},description:`The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
2137
-
2138
- This is only used, if login is configured to use identifier_first authentication.`},{key:"SettingsSection",value:{name:"ComponentType",elements:[{name:"intersection",raw:`PropsWithChildren & {
2139
- action: string
2140
- method: string
2141
- onSubmit: FormEventHandler<HTMLFormElement>
2142
- }`,elements:[{name:"PropsWithChildren"},{name:"signature",type:"object",raw:`{
2143
- action: string
2144
- method: string
2145
- onSubmit: FormEventHandler<HTMLFormElement>
2146
- }`,signature:{properties:[{key:"action",value:{name:"string",required:!0}},{key:"method",value:{name:"string",required:!0}},{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryCardSettingsSectionProps>",required:!0},description:"The SettingsSection component is rendered around each section of the settings."},{key:"SettingsSectionContent",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
2147
- title?: string
2148
- description?: string
2149
- }`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"description",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
2150
- title?: string
2151
- description?: string
2152
- }>`}],raw:"ComponentType<OryFormSectionContentProps>",required:!0},description:"The SettingsSectionContent component is rendered around the content of each section of the settings."},{key:"SettingsSectionFooter",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
2153
- text?: string
2154
- }`,signature:{properties:[{key:"text",value:{name:"string",required:!1}}]}}],raw:`PropsWithChildren<{
2155
- text?: string
2156
- }>`}],raw:"ComponentType<OryFormSectionFooterProps>",required:!0},description:"The SettingsSectionFooter component is rendered around the footer of each section of the settings."}]},required:!0}},{key:"Form",value:{name:"signature",type:"object",raw:`{
2157
- /**
2158
- * The FormContainer component is the main container of the form.
2159
- *
2160
- * It should render its children.
2161
- *
2162
- * You most likely don't want to override this component directly.
2163
- */
2164
- Root: ComponentType<OryFormRootProps>
2165
- /**
2166
- * A special form group container for the social buttons.
2167
- *
2168
- * This is required, because the social buttons need to be in its form, to not influence the other form groups.
2169
- *
2170
- * You most likely don't want to override this component directly.
2171
- */
2172
- OidcRoot: ComponentType<OryFormOidcRootProps>
2173
-
2174
- /**
2175
- * The FormGroup is rendered around each group of nodes in the UI nodes.
2176
- */
2177
- Group: ComponentType<OryFormGroupProps>
2178
-
2179
- /**
2180
- * The section on the settings page, rendering the OIDC settings
2181
- */
2182
- OidcSettings: ComponentType<OrySettingsOidcProps>
2183
-
2184
- /**
2185
- * The section on the settings page, rendering the Webauthn settings
2186
- */
2187
- WebauthnSettings: ComponentType<OrySettingsWebauthnProps>
2188
-
2189
- /**
2190
- * The section on the settings page, rendering the Passkey settings
2191
- */
2192
- PasskeySettings: ComponentType<OrySettingsPasskeyProps>
2193
-
2194
- /**
2195
- * The section on the settings page, rendering the TOTP settings
2196
- */
2197
- TotpSettings: ComponentType<OrySettingsTotpProps>
2198
-
2199
- /**
2200
- * The section on the settings page, rendering the recovery code settings
2201
- */
2202
- RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>
2203
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"intersection",raw:`ComponentPropsWithoutRef<"form"> & {
2204
- onSubmit: FormEventHandler<HTMLFormElement>
2205
- }`,elements:[{name:"ComponentPropsWithoutRef",elements:[{name:"literal",value:'"form"'}],raw:'ComponentPropsWithoutRef<"form">'},{name:"signature",type:"object",raw:`{
2206
- onSubmit: FormEventHandler<HTMLFormElement>
2207
- }`,signature:{properties:[{key:"onSubmit",value:{name:"FormEventHandler",elements:[{name:"HTMLFormElement"}],raw:"FormEventHandler<HTMLFormElement>",required:!0}}]}}]}],raw:"ComponentType<OryFormRootProps>",required:!0},description:`The FormContainer component is the main container of the form.
2208
-
2209
- It should render its children.
2210
-
2211
- You most likely don't want to override this component directly.`},{key:"OidcRoot",value:{name:"ComponentType",elements:[{name:"PropsWithChildren",elements:[{name:"signature",type:"object",raw:`{
2212
- nodes: UiNode[]
2213
- }`,signature:{properties:[{key:"nodes",value:{name:"Array",elements:[{name:"UiNode"}],raw:"UiNode[]",required:!0}}]}}],raw:`PropsWithChildren<{
2214
- nodes: UiNode[]
2215
- }>`}],raw:"ComponentType<OryFormOidcRootProps>",required:!0},description:`A special form group container for the social buttons.
2216
-
2217
- This is required, because the social buttons need to be in its form, to not influence the other form groups.
2218
-
2219
- You most likely don't want to override this component directly.`},{key:"Group",value:{name:"ComponentType",elements:[{name:"PropsWithChildren"}],raw:"ComponentType<OryFormGroupProps>",required:!0},description:"The FormGroup is rendered around each group of nodes in the UI nodes."},{key:"OidcSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2220
- linkButtons: (UiNode & { onClick: () => void })[]
2221
- unlinkButtons: (UiNode & { onClick: () => void })[]
2222
- }`,signature:{properties:[{key:"linkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}},{key:"unlinkButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsOidcProps>",required:!0},description:"The section on the settings page, rendering the OIDC settings"},{key:"WebauthnSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2223
- nameInput: UiNode
2224
- triggerButton: UiNode & { onClick: () => void }
2225
- removeButtons: (UiNode & { onClick: () => void })[]
2226
- }`,signature:{properties:[{key:"nameInput",value:{name:"UiNode",required:!0}},{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsWebauthnProps>",required:!0},description:"The section on the settings page, rendering the Webauthn settings"},{key:"PasskeySettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2227
- triggerButton: UiNode & { onClick: () => void }
2228
- removeButtons: (UiNode & { onClick: () => void })[]
2229
- }`,signature:{properties:[{key:"triggerButton",value:{name:"intersection",raw:"UiNode & { onClick: () => void }",elements:[{name:"UiNode"},{name:"signature",type:"object",raw:"{ onClick: () => void }",signature:{properties:[{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],required:!0}},{key:"removeButtons",value:{name:"Array",elements:[{name:"unknown"}],raw:"(UiNode & { onClick: () => void })[]",required:!0}}]}}],raw:"ComponentType<OrySettingsPasskeyProps>",required:!0},description:"The section on the settings page, rendering the Passkey settings"},{key:"TotpSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2230
- totpImage: UiNode | undefined
2231
- totpSecret: UiNode | undefined
2232
- totpInput: UiNode | undefined
2233
- totpUnlink: UiNode | undefined
2234
- onUnlink: () => void
2235
- }`,signature:{properties:[{key:"totpImage",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpSecret",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpInput",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"totpUnlink",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onUnlink",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsTotpProps>",required:!0},description:"The section on the settings page, rendering the TOTP settings"},{key:"RecoveryCodesSettings",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2236
- codes: string[]
2237
- regnerateButton: UiNode | undefined
2238
- revealButton: UiNode | undefined
2239
- onRegenerate: () => void
2240
- onReveal: () => void
2241
- }`,signature:{properties:[{key:"codes",value:{name:"Array",elements:[{name:"string"}],raw:"string[]",required:!0}},{key:"regnerateButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"revealButton",value:{name:"union",raw:"UiNode | undefined",elements:[{name:"UiNode"},{name:"undefined"}],required:!0}},{key:"onRegenerate",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onReveal",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}],raw:"ComponentType<OrySettingsRecoveryCodesProps>",required:!0},description:"The section on the settings page, rendering the recovery code settings"}]},required:!0}},{key:"Message",value:{name:"signature",type:"object",raw:`{
2242
- /**
2243
- * The MessageContainer is rendered around the messages.
2244
- */
2245
- Root: ComponentType<OryMessageRootProps>
2246
-
2247
- /**
2248
- * The Message component is rendered whenever a message is encountered.
2249
- */
2250
- Content: ComponentType<OryMessageContentProps>
2251
- }`,signature:{properties:[{key:"Root",value:{name:"ComponentType",elements:[{name:"DetailedHTMLProps",elements:[{name:"HTMLAttributes",elements:[{name:"HTMLDivElement"}],raw:"HTMLAttributes<HTMLDivElement>"},{name:"HTMLDivElement"}],raw:`DetailedHTMLProps<
2252
- HTMLAttributes<HTMLDivElement>,
2253
- HTMLDivElement
2254
- >`}],raw:"ComponentType<OryMessageRootProps>",required:!0},description:"The MessageContainer is rendered around the messages."},{key:"Content",value:{name:"ComponentType",elements:[{name:"signature",type:"object",raw:`{
2255
- message: UiText
2256
- }`,signature:{properties:[{key:"message",value:{name:"UiText",required:!0}}]}}],raw:"ComponentType<OryMessageContentProps>",required:!0},description:"The Message component is rendered whenever a message is encountered."}]},required:!0}},{key:"Page",value:{name:"signature",type:"object",raw:`{
2257
- Header: ComponentType<OryPageHeaderProps>
2258
- }`,signature:{properties:[{key:"Header",value:{name:"ComponentType",elements:[{name:"Record",elements:[{name:"never"},{name:"never"}],raw:"Record<never, never>"}],raw:"ComponentType<OryPageHeaderProps>",required:!0}}]},required:!0}}]},required:!1},value:{name:"unknown"}}]}},description:""},config:{required:!0,tsType:{name:"signature",type:"object",raw:`{
2259
- /**
2260
- * The name of the application the user is logging in to.
2261
- */
2262
- name: string
2263
-
2264
- /**
2265
- * An optional logo URL to display in the UI instead of the name.
2266
- */
2267
- logoUrl?: string
2268
-
2269
- stylesheet?: string
2270
-
2271
- favicon?: string
2272
-
2273
- sdk: {
2274
- url: string
2275
- options?: Partial<ConfigurationParameters>
2276
- }
2277
-
2278
- project: {
2279
- registration_enabled: boolean
2280
- verification_enabled: boolean
2281
- recovery_enabled: boolean
2282
-
2283
- recovery_ui_url: string
2284
- registration_ui_url: string
2285
- verification_ui_url: string
2286
- login_ui_url: string
2287
- }
2288
- intl?: IntlConfig
2289
- }`,signature:{properties:[{key:"name",value:{name:"string",required:!0},description:"The name of the application the user is logging in to."},{key:"logoUrl",value:{name:"string",required:!1},description:"An optional logo URL to display in the UI instead of the name."},{key:"stylesheet",value:{name:"string",required:!1}},{key:"favicon",value:{name:"string",required:!1}},{key:"sdk",value:{name:"signature",type:"object",raw:`{
2290
- url: string
2291
- options?: Partial<ConfigurationParameters>
2292
- }`,signature:{properties:[{key:"url",value:{name:"string",required:!0}},{key:"options",value:{name:"Partial",elements:[{name:"ConfigurationParameters"}],raw:"Partial<ConfigurationParameters>",required:!1}}]},required:!0}},{key:"project",value:{name:"signature",type:"object",raw:`{
2293
- registration_enabled: boolean
2294
- verification_enabled: boolean
2295
- recovery_enabled: boolean
2296
-
2297
- recovery_ui_url: string
2298
- registration_ui_url: string
2299
- verification_ui_url: string
2300
- login_ui_url: string
2301
- }`,signature:{properties:[{key:"registration_enabled",value:{name:"boolean",required:!0}},{key:"verification_enabled",value:{name:"boolean",required:!0}},{key:"recovery_enabled",value:{name:"boolean",required:!0}},{key:"recovery_ui_url",value:{name:"string",required:!0}},{key:"registration_ui_url",value:{name:"string",required:!0}},{key:"verification_ui_url",value:{name:"string",required:!0}},{key:"login_ui_url",value:{name:"string",required:!0}}]},required:!0}},{key:"intl",value:{name:"signature",type:"object",raw:`{
2302
- locale: Locale
2303
- customTranslations?: Partial<LocaleMap>
2304
- }`,signature:{properties:[{key:"locale",value:{name:"union",raw:"keyof typeof OryLocales",elements:[{name:"literal",value:"en"},{name:"literal",value:"de"},{name:"literal",value:"es"},{name:"literal",value:"fr"},{name:"literal",value:"nl"},{name:"literal",value:"pl"},{name:"literal",value:"pt"},{name:"literal",value:"sv"}],required:!0}},{key:"customTranslations",value:{name:"Partial",elements:[{name:"Record",elements:[{name:"string"},{name:"Record",elements:[{name:"string"},{name:"string"}],raw:"Record<string, string>"}],raw:"Record<string, Record<string, string>>"}],raw:"Partial<LocaleMap>",required:!1}}]},required:!1}}]}},description:""}}};export{lb as L,Va as O,cb as R,mb as S,Zr as a,Ei as b,Pi as c,Jr as d,hb as e,ji as f,zi as g,Rn as h};