@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,11 +0,0 @@
1
- import{R as l,e as n,g as u,f as y}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const d="b9fe1e9e-21a7-48a9-8f5d-20efd3423647",c="browser",g="2024-10-29T10:45:38.835312Z",b="2024-10-29T09:45:38.835312Z",m="https://laughing-easley-g0jaq9kdbx.projects.oryapis:8080/self-service/registration/browser",f={action:"https://laughing-easley-g0jaq9kdbx.projects.oryapis:8080/self-service/registration?flow=b9fe1e9e-21a7-48a9-8f5d-20efd3423647",method:"POST",nodes:[{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"github",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040002,text:"Sign up with GitHub",type:"info",context:{provider:"GitHub",provider_id:"github"}}}},{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"google",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040002,text:"Sign up with Google",type:"info",context:{provider:"Google",provider_id:"google"}}}},{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property email is missing.",type:"error",context:{property:"email"}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"n+/j1e1Kaf4DFB8Cx0FqbO2TvRqYHEA/+Kr5rL98B3nSa7dtLlE3I4IBNaEs3GRDTIYlBg3AbYStX5BiHOcqgw==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_displayname",type:"text",value:"",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050013,text:"Name of the security key",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_trigger",type:"button",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"laughing-easley-g0jaq9kdbx.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"XeqrF9GfSbS58TKtzAh2zg"},"challenge":"74bigZU3_ltbQ9-ET16iGRQ-qRyRB2ViUshbXrwO8T0","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}}',disabled:!1,onclick:'window.oryWebAuthnRegistration({"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"laughing-easley-g0jaq9kdbx.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"XeqrF9GfSbS58TKtzAh2zg"},"challenge":"74bigZU3_ltbQ9-ET16iGRQ-qRyRB2ViUshbXrwO8T0","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}})',onclickTrigger:"oryWebAuthnRegistration",node_type:"input"},messages:[],meta:{label:{id:1040004,text:"Sign up with security key",type:"info"}}},{type:"script",group:"webauthn",attributes:{src:"https://laughing-easley-g0jaq9kdbx.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"d884dc30-5685-4946-ad4d-b43f0cbc640c",node_type:"script"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_register",type:"hidden",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_register_trigger",type:"button",disabled:!1,onclick:"window.oryPasskeyRegistration()",onclickTrigger:"oryPasskeyRegistration",node_type:"input"},messages:[],meta:{label:{id:1040007,text:"Sign up with passkey",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_create_data",type:"hidden",value:'{"credentialOptions":{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"laughing-easley-g0jaq9kdbx.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"aVgzMlFQekY3RlQxdWxSdmNESFp3Z1ZobW5iOTlBZVl3MEI2RHRqaDJZaWFjMTQ0bG9SSFRqQVROckhPSGlsUQ"},"challenge":"2kj8SlMR3pebjCL90xCVyrFMqsrDBD1G2JVnL8BrJZs","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":300000,"authenticatorSelection":{"authenticatorAttachment":"platform","requireResidentKey":true,"userVerification":"preferred"}}},"displayNameFieldName":"traits.email"}',disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040006,text:"Send sign up code",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},h=null,k="choose_method",w={id:d,type:c,expires_at:g,issued_at:b,request_url:m,ui:f,organization_id:h,state:k},_="b9fe1e9e-21a7-48a9-8f5d-20efd3423647",x="browser",S="2024-10-29T10:45:38.835312759Z",v="2024-10-29T09:45:38.835312759Z",O="https://laughing-easley-g0jaq9kdbx.projects.oryapis:8080/self-service/registration/browser",q={action:"https://laughing-easley-g0jaq9kdbx.projects.oryapis:8080/self-service/registration?flow=b9fe1e9e-21a7-48a9-8f5d-20efd3423647",method:"POST",nodes:[{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"github",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040002,text:"Sign up with GitHub",type:"info",context:{provider:"GitHub",provider_id:"github"}}}},{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"google",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040002,text:"Sign up with Google",type:"info",context:{provider:"Google",provider_id:"google"}}}},{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"x1UHcIMSLGxaB2CtwVgRvevcZwZvc8j3TjJkZpWkE2aK0VPIQAlysdsSSg4qxR+SSsn/Gvqv5Uwbxw2oNj8+nA==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_displayname",type:"text",value:"",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050013,text:"Name of the security key",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_trigger",type:"button",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"laughing-easley-g0jaq9kdbx.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"XeqrF9GfSbS58TKtzAh2zg"},"challenge":"74bigZU3_ltbQ9-ET16iGRQ-qRyRB2ViUshbXrwO8T0","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}}',disabled:!1,onclick:'window.oryWebAuthnRegistration({"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"laughing-easley-g0jaq9kdbx.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"XeqrF9GfSbS58TKtzAh2zg"},"challenge":"74bigZU3_ltbQ9-ET16iGRQ-qRyRB2ViUshbXrwO8T0","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}})',onclickTrigger:"oryWebAuthnRegistration",node_type:"input"},messages:[],meta:{label:{id:1040004,text:"Sign up with security key",type:"info"}}},{type:"script",group:"webauthn",attributes:{src:"https://laughing-easley-g0jaq9kdbx.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"d884dc30-5685-4946-ad4d-b43f0cbc640c",node_type:"script"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_register",type:"hidden",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_register_trigger",type:"button",disabled:!1,onclick:"window.oryPasskeyRegistration()",onclickTrigger:"oryPasskeyRegistration",node_type:"input"},messages:[],meta:{label:{id:1040007,text:"Sign up with passkey",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_create_data",type:"hidden",value:'{"credentialOptions":{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"laughing-easley-g0jaq9kdbx.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J9f5VQ2Bb157Oiew-6-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003eone-step\\u003eone step registration","id":"aVgzMlFQekY3RlQxdWxSdmNESFp3Z1ZobW5iOTlBZVl3MEI2RHRqaDJZaWFjMTQ0bG9SSFRqQVROckhPSGlsUQ"},"challenge":"2kj8SlMR3pebjCL90xCVyrFMqsrDBD1G2JVnL8BrJZs","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":300000,"authenticatorSelection":{"authenticatorAttachment":"platform","requireResidentKey":true,"userVerification":"preferred"}}},"displayNameFieldName":"traits.email"}',disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040006,text:"Send sign up code",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},R=null,V="choose_method",G={id:_,type:x,expires_at:S,issued_at:v,request_url:O,ui:q,organization_id:R,state:V},B={title:"Ory Elements/One Step Registration/Methods/Everything",component:l,parameters:{layout:"centered"}},e={args:{flow:u(G),config:n}},t={args:{flow:y(w),config:n}};var a,s,i;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
2
- args: {
3
- flow: RegistrationFlowFromJSON(require("$snapshots/registration/one-step/all-methods/initial-form.json")),
4
- config
5
- }
6
- }`,...(i=(s=e.parameters)==null?void 0:s.docs)==null?void 0:i.source}}};var r,o,p;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{
7
- args: {
8
- flow: LoginFlowFromJSON(require("$snapshots/registration/one-step/all-methods/missing-fields.json")),
9
- config
10
- }
11
- }`,...(p=(o=t.parameters)==null?void 0:o.docs)==null?void 0:p.source}}};const A=["ShowForm","ValidationError"];export{e as ShowForm,t as ValidationError,A as __namedExportsOrder,B as default};
@@ -1,21 +0,0 @@
1
- import{R as h,e as i,g as k,f as r}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const w="2ee62ed3-9530-431c-b174-3570ed90af3c",_="browser",S="2024-10-29T10:45:39.474943Z",x="2024-10-29T09:45:39.474943Z",v="https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/self-service/registration/browser",G={action:"https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/self-service/registration?flow=2ee62ed3-9530-431c-b174-3570ed90af3c",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"traits.email",type:"hidden",value:"dev+orycye2eda2f162daf6142dd0.1s0bea5cyx5h0.3nwg7tmi5aj@ory.dev",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"IFo81liPpoLOkrsz516ROAGRJGldIFkpsrLWG/tUQpoYIJV8xXq/o2xxfrG6CwsJEgBsd+tyohzHeIpjM8bT5Q==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_displayname",type:"text",value:"",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050013,text:"Name of the security key",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_trigger",type:"button",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"inspiring-buck-m6ru2ompf4.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"bgtAmsoWR2mQGSIUTZwy7A"},"challenge":"2G9w1gEl_nKKSCmcLuEHdqIhNP7OaXsTEzGK-MFy_v4","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}}',disabled:!1,onclick:'window.oryWebAuthnRegistration({"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"inspiring-buck-m6ru2ompf4.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"bgtAmsoWR2mQGSIUTZwy7A"},"challenge":"2G9w1gEl_nKKSCmcLuEHdqIhNP7OaXsTEzGK-MFy_v4","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}})',onclickTrigger:"oryWebAuthnRegistration",node_type:"input"},messages:[],meta:{label:{id:1040004,text:"Sign up with security key",type:"info"}}},{type:"script",group:"webauthn",attributes:{src:"https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"e4568219-574f-4dff-8d2d-4e9bf9bb8a2b",node_type:"script"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_register_trigger",type:"button",disabled:!1,onclick:"window.oryPasskeyRegistration()",onclickTrigger:"oryPasskeyRegistration",node_type:"input"},messages:[],meta:{label:{id:1040007,text:"Sign up with passkey",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_register",type:"hidden",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_create_data",type:"hidden",value:'{"credentialOptions":{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"inspiring-buck-m6ru2ompf4.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"V1NSSTg0bFR1b05mMzVQSU9SU2dBenFHRnJZd1lXTHVURXlzb1NWWHBZcFBqTks5dXdja3JXRUNabEZESkY3ZQ"},"challenge":"Lza8qeMURMd7_VlbarfHmA_Rb14SCWMijcF_M2ht99k","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":300000,"authenticatorSelection":{"authenticatorAttachment":"platform","requireResidentKey":true,"userVerification":"preferred"}}},"displayNameFieldName":"traits.email"}',disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040006,text:"Send sign up code",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[{id:4000032,text:"The password must be at least 8 characters long, but got 4.",type:"error",context:{actual_length:4,min_length:8}}],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}},{type:"input",group:"profile",attributes:{name:"screen",type:"submit",value:"previous",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040008,text:"Back",type:"info"}}}]},E=null,P="choose_method",R={id:w,type:_,expires_at:S,issued_at:x,request_url:v,ui:G,organization_id:E,state:P},A="2ee62ed3-9530-431c-b174-3570ed90af3c",Z="browser",N="2024-10-29T10:45:39.474943Z",q="2024-10-29T09:45:39.474943Z",O="https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/self-service/registration/browser",W={action:"https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/self-service/registration?flow=2ee62ed3-9530-431c-b174-3570ed90af3c",method:"POST",nodes:[{type:"input",group:"webauthn",attributes:{name:"webauthn_register_displayname",type:"text",value:"",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050013,text:"Name of the security key",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_trigger",type:"button",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"inspiring-buck-m6ru2ompf4.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"bgtAmsoWR2mQGSIUTZwy7A"},"challenge":"2G9w1gEl_nKKSCmcLuEHdqIhNP7OaXsTEzGK-MFy_v4","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}}',disabled:!1,onclick:'window.oryWebAuthnRegistration({"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"inspiring-buck-m6ru2ompf4.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"bgtAmsoWR2mQGSIUTZwy7A"},"challenge":"2G9w1gEl_nKKSCmcLuEHdqIhNP7OaXsTEzGK-MFy_v4","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}})',onclickTrigger:"oryWebAuthnRegistration",node_type:"input"},messages:[],meta:{label:{id:1040004,text:"Sign up with security key",type:"info"}}},{type:"script",group:"webauthn",attributes:{src:"https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"e4568219-574f-4dff-8d2d-4e9bf9bb8a2b",node_type:"script"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_register",type:"hidden",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_register_trigger",type:"button",disabled:!1,onclick:"window.oryPasskeyRegistration()",onclickTrigger:"oryPasskeyRegistration",node_type:"input"},messages:[],meta:{label:{id:1040007,text:"Sign up with passkey",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_create_data",type:"hidden",value:'{"credentialOptions":{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"inspiring-buck-m6ru2ompf4.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-J5WorSyxZtiGkdy6-2-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003etwo-step\\u003etwo step registration","id":"V1NSSTg0bFR1b05mMzVQSU9SU2dBenFHRnJZd1lXTHVURXlzb1NWWHBZcFBqTks5dXdja3JXRUNabEZESkY3ZQ"},"challenge":"Lza8qeMURMd7_VlbarfHmA_Rb14SCWMijcF_M2ht99k","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":300000,"authenticatorSelection":{"authenticatorAttachment":"platform","requireResidentKey":true,"userVerification":"preferred"}}},"displayNameFieldName":"traits.email"}',disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040006,text:"Send sign up code",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}},{type:"input",group:"profile",attributes:{name:"screen",type:"submit",value:"previous",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040008,text:"Back",type:"info"}}},{type:"input",group:"default",attributes:{name:"traits.email",type:"hidden",value:"dev+orycye2eda2f162daf6142dd0.1s0bea5cyx5h0.3nwg7tmi5aj@ory.dev",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"apZGQQWgrKAECULEOItFA97C5VXffSMxDW0KRTNhbllS7O/rmFW1gabqh0Zl3t8yzVOtS2kv2AR4p1Y9+/P/Jg==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}}],messages:[{id:1040009,text:"Please choose a credential to authenticate yourself with.",type:"info"}]},J=null,j={},I="choose_method",F={id:A,type:Z,expires_at:N,issued_at:q,request_url:O,ui:W,organization_id:J,transient_payload:j,state:I},K="2ee62ed3-9530-431c-b174-3570ed90af3c",T="browser",z="2024-10-29T10:45:39.474943Z",V="2024-10-29T09:45:39.474943Z",$="https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/self-service/registration/browser",M={action:"https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/self-service/registration?flow=2ee62ed3-9530-431c-b174-3570ed90af3c",method:"POST",nodes:[{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"github",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040002,text:"Sign up with GitHub",type:"info",context:{provider:"GitHub",provider_id:"github"}}}},{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"google",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040002,text:"Sign up with Google",type:"info",context:{provider:"Google",provider_id:"google"}}}},{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property email is missing.",type:"error",context:{property:"email"}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"4gO0cvwiVVNXxcMWr8xX36zYQIwF8DzAAtZeD3mBiqjaeR3YYddMcvUmBpTymc3uv0kIkrOix/V3HAJ3sRMb1w==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"profile",attributes:{name:"method",type:"submit",value:"profile",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},H=null,Q="choose_method",U={id:K,type:T,expires_at:z,issued_at:V,request_url:$,ui:M,organization_id:H,state:Q},X="2ee62ed3-9530-431c-b174-3570ed90af3c",L="browser",B="2024-10-29T10:45:39.474943093Z",C="2024-10-29T09:45:39.474943093Z",Y="https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/self-service/registration/browser",D={action:"https://inspiring-buck-m6ru2ompf4.projects.oryapis:8080/self-service/registration?flow=2ee62ed3-9530-431c-b174-3570ed90af3c",method:"POST",nodes:[{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"github",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040002,text:"Sign up with GitHub",type:"info",context:{provider:"GitHub",provider_id:"github"}}}},{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"google",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040002,text:"Sign up with Google",type:"info",context:{provider:"Google",provider_id:"google"}}}},{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"QXWBIklgcs/KOac7iEC2erEXNRyqtQIzVXjElaJS3ah5DyiI1JVr7mjaYrnVFSxLooZ9Ahzn+QYgspjtasBM1w==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"profile",attributes:{name:"method",type:"submit",value:"profile",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},ee=null,te="choose_method",se={id:X,type:L,expires_at:B,issued_at:C,request_url:Y,ui:D,organization_id:ee,state:te},pe={title:"Ory Elements/Two Step Registration/Methods/Everything",component:h,parameters:{layout:"centered"}},e={args:{flow:k(se),config:i}},t={args:{flow:r(U),config:i}},s={args:{flow:r(F),config:i}},a={args:{flow:r(R),config:i}};var o,p,n;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
2
- args: {
3
- flow: RegistrationFlowFromJSON(require("$snapshots/registration/two-step/all-methods/initial-form.json")),
4
- config
5
- }
6
- }`,...(n=(p=e.parameters)==null?void 0:p.docs)==null?void 0:n.source}}};var l,u,d;t.parameters={...t.parameters,docs:{...(l=t.parameters)==null?void 0:l.docs,source:{originalSource:`{
7
- args: {
8
- flow: LoginFlowFromJSON(require("$snapshots/registration/two-step/all-methods/missing-fields.json")),
9
- config
10
- }
11
- }`,...(d=(u=t.parameters)==null?void 0:u.docs)==null?void 0:d.source}}};var y,c,m;s.parameters={...s.parameters,docs:{...(y=s.parameters)==null?void 0:y.docs,source:{originalSource:`{
12
- args: {
13
- flow: LoginFlowFromJSON(require("$snapshots/registration/two-step/all-methods/enter-password.json")),
14
- config
15
- }
16
- }`,...(m=(c=s.parameters)==null?void 0:c.docs)==null?void 0:m.source}}};var g,b,f;a.parameters={...a.parameters,docs:{...(g=a.parameters)==null?void 0:g.docs,source:{originalSource:`{
17
- args: {
18
- flow: LoginFlowFromJSON(require("$snapshots/registration/two-step/all-methods/password-validation-error.json")),
19
- config
20
- }
21
- }`,...(f=(b=a.parameters)==null?void 0:b.docs)==null?void 0:f.source}}};const ne=["ShowForm","FirstStepValidationError","EnterPassword","SecondStepValidationError"];export{s as EnterPassword,t as FirstStepValidationError,a as SecondStepValidationError,e as ShowForm,ne as __namedExportsOrder,pe as default};
@@ -1,16 +0,0 @@
1
- import{S as g,e as s,h as i}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const m="09710ae0-b006-4366-88c4-59e28b946b50",b="browser",f="2024-10-29T10:45:42.423762Z",h="2024-10-29T09:45:42.423762Z",w="https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/self-service/settings/browser",k={action:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/self-service/settings?flow=a9ce6d8e-6d1c-412e-9eb0-45d4643a2baa",method:"POST",nodes:[{type:"input",group:"passkey",attributes:{name:"passkey_register_trigger",type:"button",value:"",disabled:!1,onclick:"window.oryPasskeySettingsRegistration()",onclickTrigger:"oryPasskeySettingsRegistration",node_type:"input"},messages:[],meta:{label:{id:1050019,text:"Add passkey",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_settings_register",type:"hidden",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_create_data",type:"hidden",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"wizardly-haibt-hgodg3zpxs.projects.oryapis"},"user":{"name":"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev","displayName":"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev","id":"cEJQbEpwd2RXY0p4VEFEck1pWHduTEU0VXhESmw1NXQwR1R6VzlKNURJNEV1cEtYeWdadWhHSlpLYk94YWhmMQ"},"challenge":"2na00YX4h51EL4BRm-mS-31wfzobIXZ4QoU7T3hUJyw","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":300000,"authenticatorSelection":{"authenticatorAttachment":"platform","requireResidentKey":true,"userVerification":"preferred"}}}',disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"1wcDQ3Yl5KufWwo4vLDZCvz/EpACXMG81KxM08rB59ePIFSJrm60t4vnl4LXy568/eZepZuG152npfQLXU/JzQ==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"profile",attributes:{name:"traits.email",type:"email",value:"no-an-email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[{id:4000001,text:'"no-an-email" is not valid "email"',type:"error",context:{reason:'"no-an-email" is not valid "email"'}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"profile",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"profile",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"profile",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"profile",attributes:{name:"method",type:"submit",value:"profile",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070003,text:"Save",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070003,text:"Save",type:"info"}}},{type:"input",group:"oidc",attributes:{name:"link",type:"submit",value:"github",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050002,text:"Link GitHub",type:"info",context:{provider:"GitHub"}}}},{type:"input",group:"oidc",attributes:{name:"link",type:"submit",value:"google",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050002,text:"Link Google",type:"info",context:{provider:"Google"}}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_displayname",type:"text",value:"",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050013,text:"Name of the security key",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_trigger",type:"button",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"wizardly-haibt-hgodg3zpxs.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"-N1nnLMnQLu0VZ1xMOCyig"},"challenge":"Ih68d833s0IUzXfR3BHQmqSd9tTW9eO4ntXVmCEQbRw","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}}',disabled:!1,onclick:'window.oryWebAuthnRegistration({"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"wizardly-haibt-hgodg3zpxs.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"-N1nnLMnQLu0VZ1xMOCyig"},"challenge":"Ih68d833s0IUzXfR3BHQmqSd9tTW9eO4ntXVmCEQbRw","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}})',onclickTrigger:"oryWebAuthnRegistration",node_type:"input"},messages:[],meta:{label:{id:1050012,text:"Add security key",type:"info"}}},{type:"script",group:"webauthn",attributes:{src:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"442f5b51-be47-49e7-9210-6b8ac6ecef1d",node_type:"script"},messages:[],meta:{}}]},v={id:"f8dd679c-b327-40bb-b455-9d7130e0b28a",schema_id:"3295c9e92d19a78b10bfa45d7619eedcfb7d7ea4c2e8f163a21613da0ae6d4179f47fb58d1c23060f11126585f380ee9a9ce9a1d451f4b4de9ef33cc93ca763f",schema_url:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/schemas/MzI5NWM5ZTkyZDE5YTc4YjEwYmZhNDVkNzYxOWVlZGNmYjdkN2VhNGMyZThmMTYzYTIxNjEzZGEwYWU2ZDQxNzlmNDdmYjU4ZDFjMjMwNjBmMTExMjY1ODVmMzgwZWU5YTljZTlhMWQ0NTFmNGI0ZGU5ZWYzM2NjOTNjYTc2M2Y",state:"active",state_changed_at:"2024-10-29T09:45:40.429334Z",traits:{email:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",nested:{}},verifiable_addresses:[{id:"f3ca816d-270a-4e5c-ac68-c013df16753b",value:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",verified:!1,via:"email",status:"sent",created_at:"2024-10-29T09:45:40.437076Z",updated_at:"2024-10-29T09:45:40.437076Z"}],recovery_addresses:[{id:"b6e02654-9356-4fd9-890f-5f05f66de6cd",value:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",via:"email",created_at:"2024-10-29T09:45:40.549552Z",updated_at:"2024-10-29T09:45:40.549552Z"}],metadata_public:null,created_at:"2024-10-29T09:45:40.432608Z",updated_at:"2024-10-29T09:45:43.118922Z",organization_id:null},_="success",x={id:m,type:b,expires_at:f,issued_at:h,request_url:w,ui:k,identity:v,state:_},N="09710ae0-b006-4366-88c4-59e28b946b50",j="browser",z="2024-10-29T10:45:42.423762Z",S="2024-10-29T09:45:42.423762Z",T="https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/self-service/settings/browser",Z={action:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/self-service/settings?flow=a9ce6d8e-6d1c-412e-9eb0-45d4643a2baa",method:"POST",nodes:[{type:"input",group:"passkey",attributes:{name:"passkey_register_trigger",type:"button",value:"",disabled:!1,onclick:"window.oryPasskeySettingsRegistration()",onclickTrigger:"oryPasskeySettingsRegistration",node_type:"input"},messages:[],meta:{label:{id:1050019,text:"Add passkey",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_settings_register",type:"hidden",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_create_data",type:"hidden",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"wizardly-haibt-hgodg3zpxs.projects.oryapis"},"user":{"name":"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev","displayName":"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev","id":"cEJQbEpwd2RXY0p4VEFEck1pWHduTEU0VXhESmw1NXQwR1R6VzlKNURJNEV1cEtYeWdadWhHSlpLYk94YWhmMQ"},"challenge":"2na00YX4h51EL4BRm-mS-31wfzobIXZ4QoU7T3hUJyw","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":300000,"authenticatorSelection":{"authenticatorAttachment":"platform","requireResidentKey":true,"userVerification":"preferred"}}}',disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"jBeiywnDpwdjd10ArcBUgLTUMP+IX7JCtWaF0TmmUkbUMPUB0Yj3G3fLwLrGuxM2tc18yhGFpGPGbz0Jrih8XA==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"profile",attributes:{name:"traits.email",type:"email",value:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"profile",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"profile",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"profile",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"profile",attributes:{name:"method",type:"submit",value:"profile",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070003,text:"Save",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070003,text:"Save",type:"info"}}},{type:"input",group:"oidc",attributes:{name:"link",type:"submit",value:"github",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050002,text:"Link GitHub",type:"info",context:{provider:"GitHub"}}}},{type:"input",group:"oidc",attributes:{name:"link",type:"submit",value:"google",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050002,text:"Link Google",type:"info",context:{provider:"Google"}}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_displayname",type:"text",value:"",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050013,text:"Name of the security key",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_trigger",type:"button",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"wizardly-haibt-hgodg3zpxs.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"-N1nnLMnQLu0VZ1xMOCyig"},"challenge":"Ih68d833s0IUzXfR3BHQmqSd9tTW9eO4ntXVmCEQbRw","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}}',disabled:!1,onclick:'window.oryWebAuthnRegistration({"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"wizardly-haibt-hgodg3zpxs.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"-N1nnLMnQLu0VZ1xMOCyig"},"challenge":"Ih68d833s0IUzXfR3BHQmqSd9tTW9eO4ntXVmCEQbRw","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}})',onclickTrigger:"oryWebAuthnRegistration",node_type:"input"},messages:[],meta:{label:{id:1050012,text:"Add security key",type:"info"}}},{type:"script",group:"webauthn",attributes:{src:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"442f5b51-be47-49e7-9210-6b8ac6ecef1d",node_type:"script"},messages:[],meta:{}}],messages:[{id:1050001,text:"Your changes have been saved!",type:"success"}]},O={id:"f8dd679c-b327-40bb-b455-9d7130e0b28a",schema_id:"3295c9e92d19a78b10bfa45d7619eedcfb7d7ea4c2e8f163a21613da0ae6d4179f47fb58d1c23060f11126585f380ee9a9ce9a1d451f4b4de9ef33cc93ca763f",schema_url:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/schemas/MzI5NWM5ZTkyZDE5YTc4YjEwYmZhNDVkNzYxOWVlZGNmYjdkN2VhNGMyZThmMTYzYTIxNjEzZGEwYWU2ZDQxNzlmNDdmYjU4ZDFjMjMwNjBmMTExMjY1ODVmMzgwZWU5YTljZTlhMWQ0NTFmNGI0ZGU5ZWYzM2NjOTNjYTc2M2Y",state:"active",state_changed_at:"2024-10-29T09:45:40.429334Z",traits:{email:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",nested:{}},verifiable_addresses:[{id:"f3ca816d-270a-4e5c-ac68-c013df16753b",value:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",verified:!1,via:"email",status:"sent",created_at:"2024-10-29T09:45:40.437076Z",updated_at:"2024-10-29T09:45:40.437076Z"}],recovery_addresses:[{id:"b6e02654-9356-4fd9-890f-5f05f66de6cd",value:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",via:"email",created_at:"2024-10-29T09:45:40.549552Z",updated_at:"2024-10-29T09:45:40.549552Z"}],metadata_public:null,created_at:"2024-10-29T09:45:40.432608Z",updated_at:"2024-10-29T09:45:43.118922Z",organization_id:null},E="success",M=[{action:"redirect_browser_to",redirect_browser_to:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/ui/settings?flow=09710ae0-b006-4366-88c4-59e28b946b50"}],V={id:N,type:j,expires_at:z,issued_at:S,request_url:T,ui:Z,identity:O,state:E,continue_with:M},G="09710ae0-b006-4366-88c4-59e28b946b50",Y="browser",P="2024-10-29T10:45:42.423762011Z",I="2024-10-29T09:45:42.423762011Z",W="https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/self-service/settings/browser",R={action:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/self-service/settings?flow=09710ae0-b006-4366-88c4-59e28b946b50",method:"POST",nodes:[{type:"input",group:"passkey",attributes:{name:"passkey_register_trigger",type:"button",value:"",disabled:!1,onclick:"window.oryPasskeySettingsRegistration()",onclickTrigger:"oryPasskeySettingsRegistration",node_type:"input"},messages:[],meta:{label:{id:1050019,text:"Add passkey",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_settings_register",type:"hidden",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_create_data",type:"hidden",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"wizardly-haibt-hgodg3zpxs.projects.oryapis"},"user":{"name":"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev","displayName":"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev","id":"UUNCTjhFdEZvUHQ0M0twSGJQdlhaR1A4MkJFd0NNRnU4RlI4MHJwUVAwTGszcmNwdlFiVklsWG1mMHhnM3prag"},"challenge":"uQHpl4X75XEVT8F6N4dj_tUkjmzi7XHrbCwo7IvOQgM","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":300000,"authenticatorSelection":{"authenticatorAttachment":"platform","requireResidentKey":true,"userVerification":"preferred"}}}',disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"Sr41jb21Vhj/EhHiIIJvQDtkwPgDtLZC4/gMRN8nGxgSmWJHZf4GBOuujFhL+Sj2On2MzZpuoGOQ8bScSKk1Ag==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"profile",attributes:{name:"traits.email",type:"email",value:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"profile",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"profile",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"profile",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"profile",attributes:{name:"method",type:"submit",value:"profile",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070003,text:"Save",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070003,text:"Save",type:"info"}}},{type:"input",group:"oidc",attributes:{name:"link",type:"submit",value:"github",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050002,text:"Link GitHub",type:"info",context:{provider:"GitHub"}}}},{type:"input",group:"oidc",attributes:{name:"link",type:"submit",value:"google",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050002,text:"Link Google",type:"info",context:{provider:"Google"}}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_displayname",type:"text",value:"",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050013,text:"Name of the security key",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_trigger",type:"button",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"wizardly-haibt-hgodg3zpxs.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"-N1nnLMnQLu0VZ1xMOCyig"},"challenge":"IPDlS7UoWehcxt5CLCHulWO1kOOBkrITtejmNjnni6w","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}}',disabled:!1,onclick:'window.oryWebAuthnRegistration({"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"wizardly-haibt-hgodg3zpxs.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-VmByNytjonwfzxNO-0-tests/elements/everything.ts\\u003eGenerate all method API responses for Ory Elements Storybook\\u003esettings\\u003esettings","id":"-N1nnLMnQLu0VZ1xMOCyig"},"challenge":"IPDlS7UoWehcxt5CLCHulWO1kOOBkrITtejmNjnni6w","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}})',onclickTrigger:"oryWebAuthnRegistration",node_type:"input"},messages:[],meta:{label:{id:1050012,text:"Add security key",type:"info"}}},{type:"script",group:"webauthn",attributes:{src:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"f3f60194-c156-4edb-9831-080e9c009d4b",node_type:"script"},messages:[],meta:{}}]},A={id:"f8dd679c-b327-40bb-b455-9d7130e0b28a",schema_id:"3295c9e92d19a78b10bfa45d7619eedcfb7d7ea4c2e8f163a21613da0ae6d4179f47fb58d1c23060f11126585f380ee9a9ce9a1d451f4b4de9ef33cc93ca763f",schema_url:"https://wizardly-haibt-hgodg3zpxs.projects.oryapis:8080/schemas/MzI5NWM5ZTkyZDE5YTc4YjEwYmZhNDVkNzYxOWVlZGNmYjdkN2VhNGMyZThmMTYzYTIxNjEzZGEwYWU2ZDQxNzlmNDdmYjU4ZDFjMjMwNjBmMTExMjY1ODVmMzgwZWU5YTljZTlhMWQ0NTFmNGI0ZGU5ZWYzM2NjOTNjYTc2M2Y",state:"active",state_changed_at:"2024-10-29T09:45:40.429334Z",traits:{email:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",nested:{}},verifiable_addresses:[{id:"f3ca816d-270a-4e5c-ac68-c013df16753b",value:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",verified:!1,via:"email",status:"sent",created_at:"2024-10-29T09:45:40.437076Z",updated_at:"2024-10-29T09:45:40.437076Z"}],recovery_addresses:[{id:"b6e02654-9356-4fd9-890f-5f05f66de6cd",value:"dev+orycye2eda2f162daf6142dd0.h31svd5j2ni0.4w1higf9lng@ory.dev",via:"email",created_at:"2024-10-29T09:45:40.549552Z",updated_at:"2024-10-29T09:45:40.549552Z"}],metadata_public:null,created_at:"2024-10-29T09:45:40.432608Z",updated_at:"2024-10-29T09:45:40.432608Z",organization_id:null},B="show_form",Q={id:G,type:Y,expires_at:P,issued_at:I,request_url:W,ui:R,identity:A,state:B},C={title:"Ory Elements/Settings/Methods/Everything",component:g,parameters:{layout:"centered"}},e={args:{flow:i(Q),config:s}},t={args:{flow:i(V),config:s}},a={args:{flow:i(x),config:s}};var r,n,d;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`{
2
- args: {
3
- flow: SettingsFlowFromJSON(require("$snapshots/settings/all-methods/initial-form.json")),
4
- config
5
- }
6
- }`,...(d=(n=e.parameters)==null?void 0:n.docs)==null?void 0:d.source}}};var o,p,l;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{
7
- args: {
8
- flow: SettingsFlowFromJSON(require("$snapshots/settings/all-methods/change-password.json")),
9
- config
10
- }
11
- }`,...(l=(p=t.parameters)==null?void 0:p.docs)==null?void 0:l.source}}};var y,u,c;a.parameters={...a.parameters,docs:{...(y=a.parameters)==null?void 0:y.docs,source:{originalSource:`{
12
- args: {
13
- flow: SettingsFlowFromJSON(require("$snapshots/settings/all-methods/change-trait.json")),
14
- config
15
- }
16
- }`,...(c=(u=a.parameters)==null?void 0:u.docs)==null?void 0:c.source}}};const D=["ShowForm","ShowFormChangesSaved","ShowFormTraitValidationError"];export{e as ShowForm,t as ShowFormChangesSaved,a as ShowFormTraitValidationError,D as __namedExportsOrder,C as default};
@@ -1,16 +0,0 @@
1
- import{v as g}from"./initial-form-DWp_1F-f.js";import{L as m,e as i,f as a}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const b="9af3e83e-23c1-41bd-9149-be39ea7c8048",f=null,w="browser",h="2024-10-29T10:45:38.857268Z",_="2024-10-29T09:45:38.857268Z",k="https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login/browser",v={action:"https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login?flow=9af3e83e-23c1-41bd-9149-be39ea7c8048",method:"POST",nodes:[{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"github",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010002,text:"Sign in with GitHub",type:"info",context:{provider:"GitHub",provider_id:"github"}}}},{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"google",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010002,text:"Sign in with Google",type:"info",context:{provider:"Google",provider_id:"google"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"VO8v40NNSxQFr3T/hqQGdaVNPO5o2EZFNXoDeCDwfCxOzzOTHKv9XOahCjlRl4ieyhTyZIIGOPJE89Uf57dYiw==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"identifier",type:"text",value:"wrong-email@example.org",required:!0,autocomplete:"username webauthn",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"script",group:"webauthn",attributes:{src:"https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"37c7008f-98d4-402d-a319-cf4d0f60e10c",node_type:"script"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"method",type:"submit",value:"webauthn",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010008,text:"Sign in with hardware key",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_login_trigger",type:"button",value:"",disabled:!1,onclick:"window.oryPasskeyLogin()",onclickTrigger:"oryPasskeyLogin",onload:"window.oryPasskeyLoginAutocompleteInit()",onloadTrigger:"oryPasskeyLoginAutocompleteInit",node_type:"input"},messages:[],meta:{label:{id:1010021,text:"Sign in with passkey",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_login",type:"hidden",disabled:!1,onload:"window.oryPasskeyLoginAutocompleteInit()",onloadTrigger:"oryPasskeyLoginAutocompleteInit",node_type:"input"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_challenge",type:"hidden",value:'{"publicKey":{"challenge":"j-AcTnYzHZCKq--PnEMGz72K0nh3BqH2emzwFOj-Dyw","timeout":300000,"rpId":"dreamy-wiles-28csoig0cg.projects.oryapis","userVerification":"preferred"}}',disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010015,text:"Send sign in code",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"current-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010022,text:"Sign in with password",type:"info"}}}],messages:[{id:4000006,text:"The provided credentials are invalid, check for spelling mistakes in your password or username, email address, or phone number.",type:"error"}]},x="2024-10-29T09:45:38.863683Z",q="2024-10-29T09:45:38.863683Z",P=!1,S="aal1",j="choose_method",L={id:b,organization_id:f,type:w,expires_at:h,issued_at:_,request_url:k,ui:v,created_at:x,updated_at:q,refresh:P,requested_aal:S,state:j},T="9af3e83e-23c1-41bd-9149-be39ea7c8048",F=null,z="browser",N="2024-10-29T10:45:38.857268Z",O="2024-10-29T09:45:38.857268Z",Z="https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login/browser",G={action:"https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login?flow=9af3e83e-23c1-41bd-9149-be39ea7c8048",method:"POST",nodes:[{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"github",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010002,text:"Sign in with GitHub",type:"info",context:{provider:"GitHub",provider_id:"github"}}}},{type:"input",group:"oidc",attributes:{name:"provider",type:"submit",value:"google",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010002,text:"Sign in with Google",type:"info",context:{provider:"Google",provider_id:"google"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"+sHB0SRt37Hgp5uHUklnNED5kJykBbt0NxZ5OAUNlYDg4d2he4tp+QOp5UGFeunfL6BeFk7bxcNGn69fwkqxJw==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"identifier",type:"text",value:"",required:!0,autocomplete:"username webauthn",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property identifier is missing.",type:"error",context:{property:"identifier"}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"script",group:"webauthn",attributes:{src:"https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"37c7008f-98d4-402d-a319-cf4d0f60e10c",node_type:"script"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"method",type:"submit",value:"webauthn",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010008,text:"Sign in with hardware key",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_login_trigger",type:"button",value:"",disabled:!1,onclick:"window.oryPasskeyLogin()",onclickTrigger:"oryPasskeyLogin",onload:"window.oryPasskeyLoginAutocompleteInit()",onloadTrigger:"oryPasskeyLoginAutocompleteInit",node_type:"input"},messages:[],meta:{label:{id:1010021,text:"Sign in with passkey",type:"info"}}},{type:"input",group:"passkey",attributes:{name:"passkey_login",type:"hidden",disabled:!1,onload:"window.oryPasskeyLoginAutocompleteInit()",onloadTrigger:"oryPasskeyLoginAutocompleteInit",node_type:"input"},messages:[],meta:{}},{type:"input",group:"passkey",attributes:{name:"passkey_challenge",type:"hidden",value:'{"publicKey":{"challenge":"j-AcTnYzHZCKq--PnEMGz72K0nh3BqH2emzwFOj-Dyw","timeout":300000,"rpId":"dreamy-wiles-28csoig0cg.projects.oryapis","userVerification":"preferred"}}',disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010015,text:"Send sign in code",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"current-password",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property password is missing.",type:"error",context:{property:"password"}}],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010022,text:"Sign in with password",type:"info"}}}]},I="2024-10-29T09:45:38.863683Z",$="2024-10-29T09:45:38.863683Z",H=!1,J="aal1",E="choose_method",V={id:T,organization_id:F,type:z,expires_at:N,issued_at:O,request_url:Z,ui:G,created_at:I,updated_at:$,refresh:H,requested_aal:J,state:E},Y={title:"Ory Elements/First Factor Login/Methods/Everything",component:m,parameters:{layout:"centered"}},e={args:{flow:a(g),config:i}},t={args:{flow:a(V),config:i}},s={args:{flow:a(L),config:i}};var o,r,n;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
2
- args: {
3
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/all-methods/initial-form.json")),
4
- config
5
- }
6
- }`,...(n=(r=e.parameters)==null?void 0:r.docs)==null?void 0:n.source}}};var p,d,l;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`{
7
- args: {
8
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/all-methods/missing-email.json")),
9
- config
10
- }
11
- }`,...(l=(d=t.parameters)==null?void 0:d.docs)==null?void 0:l.source}}};var u,c,y;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`{
12
- args: {
13
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/all-methods/wrong-credentials.json")),
14
- config
15
- }
16
- }`,...(y=(c=s.parameters)==null?void 0:c.docs)==null?void 0:y.source}}};const C=["ShowForm","ValidationMissingFields","ValidationIncorrectCredentials"];export{e as ShowForm,s as ValidationIncorrectCredentials,t as ValidationMissingFields,C as __namedExportsOrder,Y as default};
@@ -1 +0,0 @@
1
- var n=Object.create,a=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,s=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,b=(e,r)=>function(){return r||(0,e[p(e)[0]])((r={exports:{}}).exports,r),r.exports},P=(e,r)=>{for(var t in r)a(e,t,{get:r[t],enumerable:!0})},u=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let _ of p(r))!O.call(e,_)&&_!==t&&a(e,_,{get:()=>r[_],enumerable:!(o=c(r,_))||o.enumerable});return e},l=(e,r,t)=>(t=e!=null?n(s(e)):{},u(!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e));export{P as _,l as a,b};
@@ -1,26 +0,0 @@
1
- import{L as x,e,f as t}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const q="1c2b44ff-d5eb-4508-8671-9942fcf9c2fd",$=null,S="browser",P="2024-10-29T10:45:35.875715Z",F="2024-10-29T09:45:35.875715Z",k="https://ecstatic-ganguly-vkw4on0o7a.projects.oryapis:8080/self-service/login/browser",j="code",N={action:"https://ecstatic-ganguly-vkw4on0o7a.projects.oryapis:8080/self-service/login?flow=1c2b44ff-d5eb-4508-8671-9942fcf9c2fd",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"W2APHF12KV7QFwvCUXp1X3iOuDYSHqviyCquwNiYCJVtq+g6SH/x8qMtjjW/7DpczSaPkv7q8s1yBHlbw8AkbA==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"identifier",type:"hidden",value:"dev+orycye2eda2f162daf6142dd0.yrtjdvzksr0.y9ns4uih47d@ory.dev",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"code",type:"text",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070013,text:"Login code",type:"info"}}},{type:"input",group:"code",attributes:{name:"resend",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070008,text:"Resend code",type:"info"}}},{type:"input",group:"code",attributes:{name:"method",type:"hidden",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070009,text:"Continue",type:"info"}}}],messages:[{id:4010008,text:"The login code is invalid or has already been used. Please try again.",type:"error"}]},T="2024-10-29T09:45:35.88133Z",z="2024-10-29T09:45:35.88133Z",O=!1,A="aal1",L="sent_email",M={id:q,organization_id:$,type:S,expires_at:P,issued_at:F,request_url:k,active:j,ui:N,created_at:T,updated_at:z,refresh:O,requested_aal:A,state:L},Z="1c2b44ff-d5eb-4508-8671-9942fcf9c2fd",J=null,I="browser",E="2024-10-29T10:45:35.875715Z",V="2024-10-29T09:45:35.875715Z",C="https://ecstatic-ganguly-vkw4on0o7a.projects.oryapis:8080/self-service/login/browser",U="code",R={action:"https://ecstatic-ganguly-vkw4on0o7a.projects.oryapis:8080/self-service/login?flow=1c2b44ff-d5eb-4508-8671-9942fcf9c2fd",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"identifier",type:"hidden",value:"dev+orycye2eda2f162daf6142dd0.yrtjdvzksr0.y9ns4uih47d@ory.dev",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"code",attributes:{name:"method",type:"hidden",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"code",type:"text",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070013,text:"Login code",type:"info"}}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070009,text:"Continue",type:"info"}}},{type:"input",group:"code",attributes:{name:"resend",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070008,text:"Resend code",type:"info"}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"HDU1ID5ZR7f5ITbHX/14LOkQF0+J+SwKp1kQ8b4uT9gq/tIGK1CfG4obszCxazcvXLgg62UNdSUdd8dqpXZjIQ==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}}],messages:[{id:1010014,text:"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.",type:"info"}]},W="2024-10-29T09:45:35.88133Z",G="2024-10-29T09:45:35.88133Z",H=!1,Q="aal1",D="sent_email",X={},B={id:Z,organization_id:J,type:I,expires_at:E,issued_at:V,request_url:C,active:U,ui:R,created_at:W,updated_at:G,refresh:H,requested_aal:Q,state:D,transient_payload:X},K="783105b8-5b0a-4732-8f92-5989d917e376",Y="browser",ee="2024-10-29T10:45:32.48286Z",te="2024-10-29T09:45:32.48286Z",se="https://romantic-lamarr-es6gnhvtw7.projects.oryapis:8080/self-service/registration/browser",ae={action:"https://romantic-lamarr-es6gnhvtw7.projects.oryapis:8080/self-service/registration?flow=783105b8-5b0a-4732-8f92-5989d917e376",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property email is missing.",type:"error",context:{property:"email"}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"QMtHdp4ao3kaFfe55NKzn1UESb+rQgj3y9G7hvrf5pdlqtp57bQb8RHv4zJjjG1huO3vUViJWeWkS6AzF5OPBw==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040006,text:"Send sign up code",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},ie=null,oe="choose_method",ne={id:K,type:Y,expires_at:ee,issued_at:te,request_url:se,ui:ae,organization_id:ie,state:oe},re="783105b8-5b0a-4732-8f92-5989d917e376",de="browser",pe="2024-10-29T10:45:32.48286Z",ue="2024-10-29T09:45:32.48286Z",le="https://romantic-lamarr-es6gnhvtw7.projects.oryapis:8080/self-service/registration/browser",ce={action:"https://romantic-lamarr-es6gnhvtw7.projects.oryapis:8080/self-service/registration?flow=783105b8-5b0a-4732-8f92-5989d917e376",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property email is missing.",type:"error",context:{property:"email"}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"M/LWhsf7pzwRF9sGLg+ftyShkOucmbhTYINGDSMnGLAWk0uJtFUftBrtz42pUUFJyUg2BW9S6UEPGV24zmtxIA==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040006,text:"Send sign up code",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},me=null,ye="choose_method",fe={id:re,type:de,expires_at:pe,issued_at:ue,request_url:le,ui:ce,organization_id:me,state:ye},ge="783105b8-5b0a-4732-8f92-5989d917e376",be="browser",_e="2024-10-29T10:45:32.482860006Z",he="2024-10-29T09:45:32.482860006Z",ve="https://romantic-lamarr-es6gnhvtw7.projects.oryapis:8080/self-service/registration/browser",we={action:"https://romantic-lamarr-es6gnhvtw7.projects.oryapis:8080/self-service/registration?flow=783105b8-5b0a-4732-8f92-5989d917e376",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"fomYlWXtSkWySNLcV7oM2Jy0VOJsqb7PABomnyf9fh9b6AWaFkPyzbmyxlfQ5NImcV3yDJ9i791vgD0qyrEXjw==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"code",attributes:{name:"method",type:"submit",value:"code",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040006,text:"Send sign up code",type:"info"}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},xe=null,qe="choose_method",$e={id:ge,type:be,expires_at:_e,issued_at:he,request_url:ve,ui:we,organization_id:xe,state:qe},je={title:"Ory Elements/First Factor Login/Methods/Code",component:x,parameters:{layout:"centered"}},s={args:{flow:t($e),config:e}},a={args:{flow:t(fe),config:e}},i={args:{flow:t(ne),config:e}},o={args:{flow:t(B),config:e}},n={args:{flow:t(M),config:e}};var r,d,p;s.parameters={...s.parameters,docs:{...(r=s.parameters)==null?void 0:r.docs,source:{originalSource:`{
2
- args: {
3
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/code/initial-form.json")),
4
- config
5
- }
6
- }`,...(p=(d=s.parameters)==null?void 0:d.docs)==null?void 0:p.source}}};var u,l,c;a.parameters={...a.parameters,docs:{...(u=a.parameters)==null?void 0:u.docs,source:{originalSource:`{
7
- args: {
8
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/code/missing-email.json")),
9
- config
10
- }
11
- }`,...(c=(l=a.parameters)==null?void 0:l.docs)==null?void 0:c.source}}};var m,y,f;i.parameters={...i.parameters,docs:{...(m=i.parameters)==null?void 0:m.docs,source:{originalSource:`{
12
- args: {
13
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/code/invalid-account.json")),
14
- config
15
- }
16
- }`,...(f=(y=i.parameters)==null?void 0:y.docs)==null?void 0:f.source}}};var g,b,_;o.parameters={...o.parameters,docs:{...(g=o.parameters)==null?void 0:g.docs,source:{originalSource:`{
17
- args: {
18
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/code/code-input.json")),
19
- config
20
- }
21
- }`,...(_=(b=o.parameters)==null?void 0:b.docs)==null?void 0:_.source}}};var h,v,w;n.parameters={...n.parameters,docs:{...(h=n.parameters)==null?void 0:h.docs,source:{originalSource:`{
22
- args: {
23
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/code/wrong-credentials.json")),
24
- config
25
- }
26
- }`,...(w=(v=n.parameters)==null?void 0:v.docs)==null?void 0:w.source}}};const Ne=["ShowForm","ValidationMissingFields","ValidationInvalidAccount","CodeInput","ValidationIncorrectCode"];export{o as CodeInput,s as ShowForm,n as ValidationIncorrectCode,i as ValidationInvalidAccount,a as ValidationMissingFields,Ne as __namedExportsOrder,je as default};
@@ -1,6 +0,0 @@
1
- import{v as i}from"./initial-form-DWp_1F-f.js";import{j as o}from"./jsx-runtime-QvZ8i92b.js";import{L as m,O as c,a as d,b as u,c as l,d as p,e as g,f}from"./settings-Bx4osEmB.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const h=({node:r})=>{var t;return o.jsxs("div",{className:"antialiased rounded-buttons border border-interface-background-default-inverted",children:["Custom ",(t=r.meta.label)==null?void 0:t.text]})},x=({flow:r,config:t})=>o.jsx(m,{flow:r,components:{Node:{OidcButton:h}},config:t,children:o.jsx(c,{children:o.jsx(d,{children:o.jsxs(u,{children:[o.jsx(l,{}),o.jsx("div",{children:"Even though the code method is available, we do not show it here with our customization:"}),o.jsx(p,{groups:["default","password","webauthn"]})]})})})}),S={title:"Ory Elements/Custom Components",component:x,parameters:{layout:"centered"}},e={args:{flow:f(i),config:g}};var s,n,a;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{
2
- args: {
3
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/all-methods/initial-form.json")),
4
- config
5
- }
6
- }`,...(a=(n=e.parameters)==null?void 0:n.docs)==null?void 0:a.source}}};const v=["CustomSocialSignInButton"];export{e as CustomSocialSignInButton,v as __namedExportsOrder,S as default};
@@ -1,10 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-18-CtsMCmcS.js","./index-uubelm5h.js","./index-CfOt2XX2.js"])))=>i.map(i=>d[i]);
2
- import{_ as Ut}from"./iframe-C5GAfuxh.js";import{_ as kt}from"./chunk-H6MOWX77-DTQOW814.js";import{g as Ft,r as k,R as B}from"./index-uubelm5h.js";import{r as Gt}from"./index-CfOt2XX2.js";import"../sb-preview/runtime.js";var Ne={exports:{}};const jt="2.0.0",ut=256,Mt=Number.MAX_SAFE_INTEGER||9007199254740991,Xt=16,Vt=ut-6,xt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ie={MAX_LENGTH:ut,MAX_SAFE_COMPONENT_LENGTH:Xt,MAX_SAFE_BUILD_LENGTH:Vt,MAX_SAFE_INTEGER:Mt,RELEASE_TYPES:xt,SEMVER_SPEC_VERSION:jt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ee={};const Yt=typeof process=="object"&&Ee&&Ee.NODE_DEBUG&&/\bsemver\b/i.test(Ee.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var oe=Yt;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=ie,a=oe;t=e.exports={};const l=t.re=[],u=t.safeRe=[],i=t.src=[],s=t.t={};let f=0;const p="[a-zA-Z0-9-]",L=[["\\s",1],["\\d",o],[p,n]],d=F=>{for(const[D,G]of L)F=F.split(`${D}*`).join(`${D}{0,${G}}`).split(`${D}+`).join(`${D}{1,${G}}`);return F},R=(F,D,G)=>{const pe=d(D),T=f++;a(F,T,D),s[F]=T,i[T]=D,l[T]=new RegExp(D,G?"g":void 0),u[T]=new RegExp(pe,G?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),R("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${p}+`),R("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),R("FULL",`^${i[s.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),R("LOOSE",`^${i[s.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),R("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),R("COERCE",`${i[s.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",i[s.COERCEPLAIN]+`(?:${i[s.PRERELEASE]})?(?:${i[s.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",i[s.COERCE],!0),R("COERCERTLFULL",i[s.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",R("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",R("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ne,Ne.exports);var q=Ne.exports;const Wt=Object.freeze({loose:!0}),Ht=Object.freeze({}),Bt=e=>e?typeof e!="object"?Wt:e:Ht;var Oe=Bt;const Ge=/^[0-9]+$/,ft=(e,t)=>{const r=Ge.test(e),n=Ge.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Kt=(e,t)=>ft(t,e);var ht={compareIdentifiers:ft,rcompareIdentifiers:Kt};const J=oe,{MAX_LENGTH:je,MAX_SAFE_INTEGER:Q}=ie,{safeRe:Me,t:Xe}=q,qt=Oe,{compareIdentifiers:M}=ht;let zt=class U{constructor(t,r){if(r=qt(r),t instanceof U){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>je)throw new TypeError(`version is longer than ${je} characters`);J("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Me[Xe.LOOSE]:Me[Xe.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Q||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Q||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Q||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const a=+o;if(a>=0&&a<Q)return a}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(J("SemVer.compare",this.version,this.options,t),!(t instanceof U)){if(typeof t=="string"&&t===this.version)return 0;t=new U(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof U||(t=new U(t,this.options)),M(this.major,t.major)||M(this.minor,t.minor)||M(this.patch,t.patch)}comparePre(t){if(t instanceof U||(t=new U(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],o=t.prerelease[r];if(J("prerelease compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return M(n,o)}while(++r)}compareBuild(t){t instanceof U||(t=new U(t,this.options));let r=0;do{const n=this.build[r],o=t.build[r];if(J("build compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return M(n,o)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const o=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let a=[r,o];n===!1&&(a=[r]),M(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var y=zt;const Ve=y,Zt=(e,t,r=!1)=>{if(e instanceof Ve)return e;try{return new Ve(e,t)}catch(n){if(!r)return null;throw n}};var X=Zt;const Jt=X,Qt=(e,t)=>{const r=Jt(e,t);return r?r.version:null};var er=Qt;const tr=X,rr=(e,t)=>{const r=tr(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var nr=rr;const xe=y,sr=(e,t,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new xe(e instanceof xe?e.version:e,r).inc(t,n,o).version}catch{return null}};var ir=sr;const Ye=X,or=(e,t)=>{const r=Ye(e,null,!0),n=Ye(t,null,!0),o=r.compare(n);if(o===0)return null;const a=o>0,l=a?r:n,u=a?n:r,i=!!l.prerelease.length;if(!!u.prerelease.length&&!i)return!u.patch&&!u.minor?"major":l.patch?"patch":l.minor?"minor":"major";const f=i?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};var ar=or;const lr=y,cr=(e,t)=>new lr(e,t).major;var ur=cr;const fr=y,hr=(e,t)=>new fr(e,t).minor;var pr=hr;const Er=y,mr=(e,t)=>new Er(e,t).patch;var dr=mr;const $r=X,Rr=(e,t)=>{const r=$r(e,t);return r&&r.prerelease.length?r.prerelease:null};var vr=Rr;const We=y,Ir=(e,t,r)=>new We(e,r).compare(new We(t,r));var P=Ir;const gr=P,Lr=(e,t,r)=>gr(t,e,r);var wr=Lr;const Nr=P,Tr=(e,t)=>Nr(e,t,!0);var Or=Tr;const He=y,Sr=(e,t,r)=>{const n=new He(e,r),o=new He(t,r);return n.compare(o)||n.compareBuild(o)};var Se=Sr;const yr=Se,Ar=(e,t)=>e.sort((r,n)=>yr(r,n,t));var Cr=Ar;const _r=Se,Dr=(e,t)=>e.sort((r,n)=>_r(n,r,t));var Pr=Dr;const br=P,Ur=(e,t,r)=>br(e,t,r)>0;var ae=Ur;const kr=P,Fr=(e,t,r)=>kr(e,t,r)<0;var ye=Fr;const Gr=P,jr=(e,t,r)=>Gr(e,t,r)===0;var pt=jr;const Mr=P,Xr=(e,t,r)=>Mr(e,t,r)!==0;var Et=Xr;const Vr=P,xr=(e,t,r)=>Vr(e,t,r)>=0;var Ae=xr;const Yr=P,Wr=(e,t,r)=>Yr(e,t,r)<=0;var Ce=Wr;const Hr=pt,Br=Et,Kr=ae,qr=Ae,zr=ye,Zr=Ce,Jr=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Hr(e,r,n);case"!=":return Br(e,r,n);case">":return Kr(e,r,n);case">=":return qr(e,r,n);case"<":return zr(e,r,n);case"<=":return Zr(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var mt=Jr;const Qr=y,en=X,{safeRe:ee,t:te}=q,tn=(e,t)=>{if(e instanceof Qr)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?ee[te.COERCEFULL]:ee[te.COERCE]);else{const i=t.includePrerelease?ee[te.COERCERTLFULL]:ee[te.COERCERTL];let s;for(;(s=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||s.index+s[0].length!==r.index+r[0].length)&&(r=s),i.lastIndex=s.index+s[1].length+s[2].length;i.lastIndex=-1}if(r===null)return null;const n=r[2],o=r[3]||"0",a=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return en(`${n}.${o}.${a}${l}${u}`,t)};var rn=tn;class nn{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(t,r)}return this}}var sn=nn,me,Be;function b(){if(Be)return me;Be=1;const e=/\s+/g;class t{constructor(c,$){if($=o($),c instanceof t)return c.loose===!!$.loose&&c.includePrerelease===!!$.includePrerelease?c:new t(c.raw,$);if(c instanceof a)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=c.trim().replace(e," "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(v=>!F(v[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const v of this.set)if(v.length===1&&D(v[0])){this.set=[v];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c<this.set.length;c++){c>0&&(this.formatted+="||");const $=this.set[c];for(let E=0;E<$.length;E++)E>0&&(this.formatted+=" "),this.formatted+=$[E].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){const E=((this.options.includePrerelease&&d)|(this.options.loose&&R))+":"+c,v=n.get(E);if(v)return v;const m=this.options.loose,I=m?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];c=c.replace(I,Pt(this.options.includePrerelease)),l("hyphen replace",c),c=c.replace(i[s.COMPARATORTRIM],f),l("comparator trim",c),c=c.replace(i[s.TILDETRIM],p),l("tilde trim",c),c=c.replace(i[s.CARETTRIM],L),l("caret trim",c);let w=c.split(" ").map(O=>pe(O,this.options)).join(" ").split(/\s+/).map(O=>Dt(O,this.options));m&&(w=w.filter(O=>(l("loose invalid filter",O,this.options),!!O.match(i[s.COMPARATORLOOSE])))),l("range list",w);const g=new Map,N=w.map(O=>new a(O,this.options));for(const O of N){if(F(O))return[O];g.set(O.value,O)}g.size>1&&g.has("")&&g.delete("");const C=[...g.values()];return n.set(E,C),C}intersects(c,$){if(!(c instanceof t))throw new TypeError("a Range is required");return this.set.some(E=>G(E,$)&&c.set.some(v=>G(v,$)&&E.every(m=>v.every(I=>m.intersects(I,$)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new u(c,this.options)}catch{return!1}for(let $=0;$<this.set.length;$++)if(bt(this.set[$],c,this.options))return!0;return!1}}me=t;const r=sn,n=new r,o=Oe,a=le(),l=oe,u=y,{safeRe:i,t:s,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:L}=q,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:R}=ie,F=h=>h.value==="<0.0.0-0",D=h=>h.value==="",G=(h,c)=>{let $=!0;const E=h.slice();let v=E.pop();for(;$&&E.length;)$=E.every(m=>v.intersects(m,c)),v=E.pop();return $},pe=(h,c)=>(l("comp",h,c),h=St(h,c),l("caret",h),h=Tt(h,c),l("tildes",h),h=At(h,c),l("xrange",h),h=_t(h,c),l("stars",h),h),T=h=>!h||h.toLowerCase()==="x"||h==="*",Tt=(h,c)=>h.trim().split(/\s+/).map($=>Ot($,c)).join(" "),Ot=(h,c)=>{const $=c.loose?i[s.TILDELOOSE]:i[s.TILDE];return h.replace($,(E,v,m,I,w)=>{l("tilde",h,E,v,m,I,w);let g;return T(v)?g="":T(m)?g=`>=${v}.0.0 <${+v+1}.0.0-0`:T(I)?g=`>=${v}.${m}.0 <${v}.${+m+1}.0-0`:w?(l("replaceTilde pr",w),g=`>=${v}.${m}.${I}-${w} <${v}.${+m+1}.0-0`):g=`>=${v}.${m}.${I} <${v}.${+m+1}.0-0`,l("tilde return",g),g})},St=(h,c)=>h.trim().split(/\s+/).map($=>yt($,c)).join(" "),yt=(h,c)=>{l("caret",h,c);const $=c.loose?i[s.CARETLOOSE]:i[s.CARET],E=c.includePrerelease?"-0":"";return h.replace($,(v,m,I,w,g)=>{l("caret",h,v,m,I,w,g);let N;return T(m)?N="":T(I)?N=`>=${m}.0.0${E} <${+m+1}.0.0-0`:T(w)?m==="0"?N=`>=${m}.${I}.0${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.0${E} <${+m+1}.0.0-0`:g?(l("replaceCaret pr",g),m==="0"?I==="0"?N=`>=${m}.${I}.${w}-${g} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}-${g} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w}-${g} <${+m+1}.0.0-0`):(l("no pr"),m==="0"?I==="0"?N=`>=${m}.${I}.${w}${E} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w} <${+m+1}.0.0-0`),l("caret return",N),N})},At=(h,c)=>(l("replaceXRanges",h,c),h.split(/\s+/).map($=>Ct($,c)).join(" ")),Ct=(h,c)=>{h=h.trim();const $=c.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return h.replace($,(E,v,m,I,w,g)=>{l("xRange",h,E,v,m,I,w,g);const N=T(m),C=N||T(I),O=C||T(w),Y=O;return v==="="&&Y&&(v=""),g=c.includePrerelease?"-0":"",N?v===">"||v==="<"?E="<0.0.0-0":E="*":v&&Y?(C&&(I=0),w=0,v===">"?(v=">=",C?(m=+m+1,I=0,w=0):(I=+I+1,w=0)):v==="<="&&(v="<",C?m=+m+1:I=+I+1),v==="<"&&(g="-0"),E=`${v+m}.${I}.${w}${g}`):C?E=`>=${m}.0.0${g} <${+m+1}.0.0-0`:O&&(E=`>=${m}.${I}.0${g} <${m}.${+I+1}.0-0`),l("xRange return",E),E})},_t=(h,c)=>(l("replaceStars",h,c),h.trim().replace(i[s.STAR],"")),Dt=(h,c)=>(l("replaceGTE0",h,c),h.trim().replace(i[c.includePrerelease?s.GTE0PRE:s.GTE0],"")),Pt=h=>(c,$,E,v,m,I,w,g,N,C,O,Y)=>(T(E)?$="":T(v)?$=`>=${E}.0.0${h?"-0":""}`:T(m)?$=`>=${E}.${v}.0${h?"-0":""}`:I?$=`>=${$}`:$=`>=${$}${h?"-0":""}`,T(N)?g="":T(C)?g=`<${+N+1}.0.0-0`:T(O)?g=`<${N}.${+C+1}.0-0`:Y?g=`<=${N}.${C}.${O}-${Y}`:h?g=`<${N}.${C}.${+O+1}-0`:g=`<=${g}`,`${$} ${g}`.trim()),bt=(h,c,$)=>{for(let E=0;E<h.length;E++)if(!h[E].test(c))return!1;if(c.prerelease.length&&!$.includePrerelease){for(let E=0;E<h.length;E++)if(l(h[E].semver),h[E].semver!==a.ANY&&h[E].semver.prerelease.length>0){const v=h[E].semver;if(v.major===c.major&&v.minor===c.minor&&v.patch===c.patch)return!0}return!1}return!0};return me}var de,Ke;function le(){if(Ke)return de;Ke=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,p){if(p=r(p),f instanceof t){if(f.loose===!!p.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),l("comparator",f,p),this.options=p,this.loose=!!p.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(f){const p=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],L=f.match(p);if(!L)throw new TypeError(`Invalid comparator: ${f}`);this.operator=L[1]!==void 0?L[1]:"",this.operator==="="&&(this.operator=""),L[2]?this.semver=new u(L[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(l("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new u(f,this.options)}catch{return!1}return a(f,this.operator,this.semver,this.options)}intersects(f,p){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new i(f.value,p).test(this.value):f.operator===""?f.value===""?!0:new i(this.value,p).test(f.semver):(p=r(p),p.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||a(this.semver,"<",f.semver,p)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||a(this.semver,">",f.semver,p)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}de=t;const r=Oe,{safeRe:n,t:o}=q,a=mt,l=oe,u=y,i=b();return de}const on=b(),an=(e,t,r)=>{try{t=new on(t,r)}catch{return!1}return t.test(e)};var ce=an;const ln=b(),cn=(e,t)=>new ln(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var un=cn;const fn=y,hn=b(),pn=(e,t,r)=>{let n=null,o=null,a=null;try{a=new hn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===-1)&&(n=l,o=new fn(n,r))}),n};var En=pn;const mn=y,dn=b(),$n=(e,t,r)=>{let n=null,o=null,a=null;try{a=new dn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===1)&&(n=l,o=new mn(n,r))}),n};var Rn=$n;const $e=y,vn=b(),qe=ae,In=(e,t)=>{e=new vn(e,t);let r=new $e("0.0.0");if(e.test(r)||(r=new $e("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const o=e.set[n];let a=null;o.forEach(l=>{const u=new $e(l.semver.version);switch(l.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!a||qe(u,a))&&(a=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),a&&(!r||qe(r,a))&&(r=a)}return r&&e.test(r)?r:null};var gn=In;const Ln=b(),wn=(e,t)=>{try{return new Ln(e,t).range||"*"}catch{return null}};var Nn=wn;const Tn=y,dt=le(),{ANY:On}=dt,Sn=b(),yn=ce,ze=ae,Ze=ye,An=Ce,Cn=Ae,_n=(e,t,r,n)=>{e=new Tn(e,n),t=new Sn(t,n);let o,a,l,u,i;switch(r){case">":o=ze,a=An,l=Ze,u=">",i=">=";break;case"<":o=Ze,a=Cn,l=ze,u="<",i="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yn(e,t,n))return!1;for(let s=0;s<t.set.length;++s){const f=t.set[s];let p=null,L=null;if(f.forEach(d=>{d.semver===On&&(d=new dt(">=0.0.0")),p=p||d,L=L||d,o(d.semver,p.semver,n)?p=d:l(d.semver,L.semver,n)&&(L=d)}),p.operator===u||p.operator===i||(!L.operator||L.operator===u)&&a(e,L.semver))return!1;if(L.operator===i&&l(e,L.semver))return!1}return!0};var _e=_n;const Dn=_e,Pn=(e,t,r)=>Dn(e,t,">",r);var bn=Pn;const Un=_e,kn=(e,t,r)=>Un(e,t,"<",r);var Fn=kn;const Je=b(),Gn=(e,t,r)=>(e=new Je(e,r),t=new Je(t,r),e.intersects(t,r));var jn=Gn;const Mn=ce,Xn=P;var Vn=(e,t,r)=>{const n=[];let o=null,a=null;const l=e.sort((f,p)=>Xn(f,p,r));for(const f of l)Mn(f,t,r)?(a=f,o||(o=f)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);const u=[];for(const[f,p]of n)f===p?u.push(f):!p&&f===l[0]?u.push("*"):p?f===l[0]?u.push(`<=${p}`):u.push(`${f} - ${p}`):u.push(`>=${f}`);const i=u.join(" || "),s=typeof t.raw=="string"?t.raw:String(t);return i.length<s.length?i:t};const Qe=b(),De=le(),{ANY:Re}=De,W=ce,Pe=P,xn=(e,t,r={})=>{if(e===t)return!0;e=new Qe(e,r),t=new Qe(t,r);let n=!1;e:for(const o of e.set){for(const a of t.set){const l=Wn(o,a,r);if(n=n||l!==null,l)continue e}if(n)return!1}return!0},Yn=[new De(">=0.0.0-0")],et=[new De(">=0.0.0")],Wn=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Re){if(t.length===1&&t[0].semver===Re)return!0;r.includePrerelease?e=Yn:e=et}if(t.length===1&&t[0].semver===Re){if(r.includePrerelease)return!0;t=et}const n=new Set;let o,a;for(const d of e)d.operator===">"||d.operator===">="?o=tt(o,d,r):d.operator==="<"||d.operator==="<="?a=rt(a,d,r):n.add(d.semver);if(n.size>1)return null;let l;if(o&&a){if(l=Pe(o.semver,a.semver,r),l>0)return null;if(l===0&&(o.operator!==">="||a.operator!=="<="))return null}for(const d of n){if(o&&!W(d,String(o),r)||a&&!W(d,String(a),r))return null;for(const R of t)if(!W(d,String(R),r))return!1;return!0}let u,i,s,f,p=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,L=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const d of t){if(f=f||d.operator===">"||d.operator===">=",s=s||d.operator==="<"||d.operator==="<=",o){if(L&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===L.major&&d.semver.minor===L.minor&&d.semver.patch===L.patch&&(L=!1),d.operator===">"||d.operator===">="){if(u=tt(o,d,r),u===d&&u!==o)return!1}else if(o.operator===">="&&!W(o.semver,String(d),r))return!1}if(a){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator==="<"||d.operator==="<="){if(i=rt(a,d,r),i===d&&i!==a)return!1}else if(a.operator==="<="&&!W(a.semver,String(d),r))return!1}if(!d.operator&&(a||o)&&l!==0)return!1}return!(o&&s&&!a&&l!==0||a&&f&&!o&&l!==0||L||p)},tt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},rt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Hn=xn;const ve=q,nt=ie,Bn=y,st=ht,Kn=X,qn=er,zn=nr,Zn=ir,Jn=ar,Qn=ur,es=pr,ts=dr,rs=vr,ns=P,ss=wr,is=Or,os=Se,as=Cr,ls=Pr,cs=ae,us=ye,fs=pt,hs=Et,ps=Ae,Es=Ce,ms=mt,ds=rn,$s=le(),Rs=b(),vs=ce,Is=un,gs=En,Ls=Rn,ws=gn,Ns=Nn,Ts=_e,Os=bn,Ss=Fn,ys=jn,As=Vn,Cs=Hn;var _s={parse:Kn,valid:qn,clean:zn,inc:Zn,diff:Jn,major:Qn,minor:es,patch:ts,prerelease:rs,compare:ns,rcompare:ss,compareLoose:is,compareBuild:os,sort:as,rsort:ls,gt:cs,lt:us,eq:fs,neq:hs,gte:ps,lte:Es,cmp:ms,coerce:ds,Comparator:$s,Range:Rs,satisfies:vs,toComparators:Is,maxSatisfying:gs,minSatisfying:Ls,minVersion:ws,validRange:Ns,outside:Ts,gtr:Os,ltr:Ss,intersects:ys,simplifyRange:As,subset:Cs,SemVer:Bn,re:ve.re,src:ve.src,tokens:ve.t,SEMVER_SPEC_VERSION:nt.SEMVER_SPEC_VERSION,RELEASE_TYPES:nt.RELEASE_TYPES,compareIdentifiers:st.compareIdentifiers,rcompareIdentifiers:st.rcompareIdentifiers};const it=Ft(_s);var S={};/**
3
- * @license React
4
- * react-dom-test-utils.production.min.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var V=k,be=Gt;function $t(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function ot(e){if($t(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Ds(e){var t=e.alternate;if(!t){if(t=$t(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var a=o.alternate;if(a===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return ot(o),e;if(a===n)return ot(o),t;a=a.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==n.return)r=o,n=a;else{for(var l=!1,u=o.child;u;){if(u===r){l=!0,r=o,n=a;break}if(u===n){l=!0,n=o,r=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===r){l=!0,r=a,n=o;break}if(u===n){l=!0,n=a,r=o;break}u=u.sibling}if(!l)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==n)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==3)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}var A=Object.assign;function Ie(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function re(){return!0}function at(){return!1}function _(e){function t(r,n,o,a,l){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=a,this.target=l,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(r=e[u],this[u]=r?r(a):a[u]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?re:at,this.isPropagationStopped=at,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=re)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=re)},persist:function(){},isPersistent:re}),t}var x={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ps=_(x),z=A({},x,{view:0,detail:0});_(z);var ge,Le,H,ue=A({},z,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ue,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==H&&(H&&e.type==="mousemove"?(ge=e.screenX-H.screenX,Le=e.screenY-H.screenY):Le=ge=0,H=e),ge)},movementY:function(e){return"movementY"in e?e.movementY:Le}});_(ue);var bs=A({},ue,{dataTransfer:0});_(bs);var Us=A({},z,{relatedTarget:0});_(Us);var ks=A({},x,{animationName:0,elapsedTime:0,pseudoElement:0});_(ks);var Fs=A({},x,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}});_(Fs);var Gs=A({},x,{data:0});_(Gs);var js={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ms={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Xs={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vs(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xs[e])?!!t[e]:!1}function Ue(){return Vs}var xs=A({},z,{key:function(e){if(e.key){var t=js[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ie(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ms[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ue,charCode:function(e){return e.type==="keypress"?Ie(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ie(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}});_(xs);var Ys=A({},ue,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0});_(Ys);var Ws=A({},z,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ue});_(Ws);var Hs=A({},x,{propertyName:0,elapsedTime:0,pseudoElement:0});_(Hs);var Bs=A({},ue,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0});_(Bs);function Ks(e,t,r,n,o,a,l,u,i){var s=Array.prototype.slice.call(arguments,3);try{t.apply(r,s)}catch(f){this.onError(f)}}var K=!1,ne=null,se=!1,Te=null,qs={onError:function(e){K=!0,ne=e}};function zs(e,t,r,n,o,a,l,u,i){K=!1,ne=null,Ks.apply(qs,arguments)}function Zs(e,t,r,n,o,a,l,u,i){if(zs.apply(this,arguments),K){if(K){var s=ne;K=!1,ne=null}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");se||(se=!0,Te=s)}}var ke=Array.isArray,Z=be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,Js=Z[0],Qs=Z[1],ei=Z[2],ti=Z[3],ri=Z[4],ni=V.unstable_act;function si(){}function ii(e,t){if(!e)return[];if(e=Ds(e),!e)return[];for(var r=e,n=[];;){if(r.tag===5||r.tag===6||r.tag===1||r.tag===0){var o=r.stateNode;t(o)&&n.push(o)}if(r.child)r.child.return=r,r=r.child;else{if(r===e)return n;for(;!r.sibling;){if(!r.return||r.return===e)return n;r=r.return}r.sibling.return=r.return,r=r.sibling}}}function j(e,t){if(e&&!e._reactInternals){var r=String(e);throw e=ke(e)?"an array":e&&e.nodeType===1&&e.tagName?"a DOM node":r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r,Error(t+"(...): the first argument must be a React class instance. Instead received: "+(e+"."))}}function fe(e){return!(!e||e.nodeType!==1||!e.tagName)}function Fe(e){return fe(e)?!1:e!=null&&typeof e.render=="function"&&typeof e.setState=="function"}function Rt(e,t){return Fe(e)?e._reactInternals.type===t:!1}function he(e,t){return j(e,"findAllInRenderedTree"),e?ii(e._reactInternals,t):[]}function vt(e,t){return j(e,"scryRenderedDOMComponentsWithClass"),he(e,function(r){if(fe(r)){var n=r.className;typeof n!="string"&&(n=r.getAttribute("class")||"");var o=n.split(/\s+/);if(!ke(t)){if(t===void 0)throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");t=t.split(/\s+/)}return t.every(function(a){return o.indexOf(a)!==-1})}return!1})}function It(e,t){return j(e,"scryRenderedDOMComponentsWithTag"),he(e,function(r){return fe(r)&&r.tagName.toUpperCase()===t.toUpperCase()})}function gt(e,t){return j(e,"scryRenderedComponentsWithType"),he(e,function(r){return Rt(r,t)})}function lt(e,t,r){var n=e.type||"unknown-event";e.currentTarget=Qs(r),Zs(n,t,void 0,e),e.currentTarget=null}function Lt(e,t,r){for(var n=[];e;){n.push(e);do e=e.return;while(e&&e.tag!==5);e=e||null}for(e=n.length;0<e--;)t(n[e],"captured",r);for(e=0;e<n.length;e++)t(n[e],"bubbled",r)}function wt(e,t){var r=e.stateNode;if(!r)return null;var n=ei(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}function oi(e,t,r){e&&r&&r._reactName&&(t=wt(e,r._reactName))&&(r._dispatchListeners==null&&(r._dispatchListeners=[]),r._dispatchInstances==null&&(r._dispatchInstances=[]),r._dispatchListeners.push(t),r._dispatchInstances.push(e))}function ai(e,t,r){var n=r._reactName;t==="captured"&&(n+="Capture"),(t=wt(e,n))&&(r._dispatchListeners==null&&(r._dispatchListeners=[]),r._dispatchInstances==null&&(r._dispatchInstances=[]),r._dispatchListeners.push(t),r._dispatchInstances.push(e))}var Nt={},li=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]);function ci(e){return function(t,r){if(V.isValidElement(t))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");if(Fe(t))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");var n="on"+e[0].toUpperCase()+e.slice(1),o=new si;o.target=t,o.type=e.toLowerCase();var a=Js(t),l=new Ps(n,o.type,a,o,t);l.persist(),A(l,r),li.has(e)?l&&l._reactName&&oi(l._targetInst,null,l):l&&l._reactName&&Lt(l._targetInst,ai,l),be.unstable_batchedUpdates(function(){if(ti(t),l){var u=l._dispatchListeners,i=l._dispatchInstances;if(ke(u))for(var s=0;s<u.length&&!l.isPropagationStopped();s++)lt(l,u[s],i[s]);else u&&lt(l,u,i);l._dispatchListeners=null,l._dispatchInstances=null,l.isPersistent()||l.constructor.release(l)}if(se)throw u=Te,se=!1,Te=null,u}),ri()}}"blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ").forEach(function(e){Nt[e]=ci(e)});S.Simulate=Nt;S.act=ni;S.findAllInRenderedTree=he;S.findRenderedComponentWithType=function(e,t){if(j(e,"findRenderedComponentWithType"),e=gt(e,t),e.length!==1)throw Error("Did not find exactly one match (found: "+e.length+") for componentType:"+t);return e[0]};S.findRenderedDOMComponentWithClass=function(e,t){if(j(e,"findRenderedDOMComponentWithClass"),e=vt(e,t),e.length!==1)throw Error("Did not find exactly one match (found: "+e.length+") for class:"+t);return e[0]};S.findRenderedDOMComponentWithTag=function(e,t){if(j(e,"findRenderedDOMComponentWithTag"),e=It(e,t),e.length!==1)throw Error("Did not find exactly one match (found: "+e.length+") for tag:"+t);return e[0]};S.isCompositeComponent=Fe;S.isCompositeComponentWithType=Rt;S.isDOMComponent=fe;S.isDOMComponentElement=function(e){return!!(e&&V.isValidElement(e)&&e.tagName)};S.isElement=function(e){return V.isValidElement(e)};S.isElementOfType=function(e,t){return V.isValidElement(e)&&e.type===t};S.mockComponent=function(e,t){return t=t||e.mockTagName||"div",e.prototype.render.mockImplementation(function(){return V.createElement(t,null,this.props.children)}),this};S.nativeTouchData=function(e,t){return{touches:[{pageX:e,pageY:t}]}};S.renderIntoDocument=function(e){var t=document.createElement("div");return be.render(e,t)};S.scryRenderedComponentsWithType=gt;S.scryRenderedDOMComponentsWithClass=vt;S.scryRenderedDOMComponentsWithTag=It;S.traverseTwoPhase=Lt;const{global:ui}=__STORYBOOK_MODULE_GLOBAL__;var fi={};kt(fi,{decorators:()=>Ri,mount:()=>di,parameters:()=>$i,render:()=>hi,renderToCanvas:()=>mi});var hi=(e,t)=>{let{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return B.createElement(n,{...e})};function pi(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var{FRAMEWORK_OPTIONS:we}=ui,Ei=class extends k.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:t}=this.props;e||t()}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:t}},ct=we!=null&&we.strictMode?k.StrictMode:k.Fragment;async function mi({storyContext:e,unboundStoryFn:t,showMain:r,showException:n,forceRemount:o},a){var p,L;let{renderElement:l,unmountElement:u}=await Ut(()=>import("./react-18-CtsMCmcS.js"),__vite__mapDeps([0,1,2]),import.meta.url),i=t,s=pi()?B.createElement(i,{...e}):B.createElement(Ei,{showMain:r,showException:n},B.createElement(i,{...e})),f=ct?B.createElement(ct,null,s):s;return o&&u(a),await l(f,a,(L=(p=e==null?void 0:e.parameters)==null?void 0:p.react)==null?void 0:L.rootOptions),()=>u(a)}var di=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),$i={renderer:"react"},Ri=[(e,t)=>{var o,a;if(!((a=(o=t.parameters)==null?void 0:o.react)!=null&&a.rsc))return k.createElement(e,null);let r=it.major(k.version),n=it.minor(k.version);if(r<18||r===18&&n<3)throw new Error("React Server Components require React >= 18.3");return k.createElement(k.Suspense,null,k.createElement(e,null))}];export{Ri as decorators,di as mount,$i as parameters,hi as render,mi as renderToCanvas};