This commit is contained in:
github-actions-bot 2025-04-04 21:39:01 +00:00
parent 8c22686543
commit 7be8124295
5 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkkeycloakify=self.webpackChunkkeycloakify||[]).push([[5025],{"./dist/login/pages/LoginOtp.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>LoginOtp});__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/jsx-runtime.js"),react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),_login_lib_kcClsx__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./dist/login/lib/kcClsx.js"),_lib_kcSanitize__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./dist/lib/kcSanitize/index.js");function LoginOtp(props){var kcContext=props.kcContext,i18n=props.i18n,doUseDefaultCss=props.doUseDefaultCss,Template=props.Template,classes=props.classes,kcClsx=(0,_login_lib_kcClsx__WEBPACK_IMPORTED_MODULE_4__.$)({doUseDefaultCss,classes}).kcClsx,otpLogin=kcContext.otpLogin,url=kcContext.url,messagesPerField=kcContext.messagesPerField,msg=i18n.msg,msgStr=i18n.msgStr;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Template,Object.assign({kcContext,i18n,doUseDefaultCss,classes,displayMessage:!messagesPerField.existsError("totp"),headerNode:msg("doLogIn")},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("form",Object.assign({id:"kc-otp-login-form",className:kcClsx("kcFormClass"),action:url.loginAction,method:"post"},{children:[otpLogin.userOtpCredentials.length>1&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",Object.assign({className:kcClsx("kcFormGroupClass")},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",Object.assign({className:kcClsx("kcInputWrapperClass")},{children:otpLogin.userOtpCredentials.map((function(otpCredential,index){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react__WEBPACK_IMPORTED_MODULE_3__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("input",{id:"kc-otp-credential-"+index,className:kcClsx("kcLoginOTPListInputClass"),type:"radio",name:"selectedCredentialId",value:otpCredential.id,defaultChecked:otpCredential.id===otpLogin.selectedCredentialId}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("label",Object.assign({htmlFor:"kc-otp-credential-"+index,className:kcClsx("kcLoginOTPListClass"),tabIndex:index},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("span",Object.assign({className:kcClsx("kcLoginOTPListItemHeaderClass")},{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span",Object.assign({className:kcClsx("kcLoginOTPListItemIconBodyClass")},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("i",{className:kcClsx("kcLoginOTPListItemIconClass"),"aria-hidden":"true"})})),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span",Object.assign({className:kcClsx("kcLoginOTPListItemTitleClass")},{children:otpCredential.userLabel}))]}))}))]},index)}))}))})),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div",Object.assign({className:kcClsx("kcFormGroupClass")},{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",Object.assign({className:kcClsx("kcLabelWrapperClass")},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("label",Object.assign({htmlFor:"otp",className:kcClsx("kcLabelClass")},{children:msg("loginOtpOneTime")}))})),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div",Object.assign({className:kcClsx("kcInputWrapperClass")},{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("input",{id:"otp",name:"otp",autoComplete:"off",type:"text",className:kcClsx("kcInputClass"),autoFocus:!0,"aria-invalid":messagesPerField.existsError("totp")}),messagesPerField.existsError("totp")&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span",{id:"input-error-otp-code",className:kcClsx("kcInputErrorMessageClass"),"aria-live":"polite",dangerouslySetInnerHTML:{__html:(0,_lib_kcSanitize__WEBPACK_IMPORTED_MODULE_5__.p)(messagesPerField.get("totp"))}})]}))]})),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div",Object.assign({className:kcClsx("kcFormGroupClass")},{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",Object.assign({id:"kc-form-options",className:kcClsx("kcFormOptionsClass")},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{className:kcClsx("kcFormOptionsWrapperClass")})})),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",Object.assign({id:"kc-form-buttons",className:kcClsx("kcFormButtonsClass")},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("input",{className:kcClsx("kcButtonClass","kcButtonPrimaryClass","kcButtonBlockClass","kcButtonLargeClass"),name:"login",id:"kc-login",type:"submit",value:msgStr("doLogIn")})}))]}))]}))}))}}}]);

View File

@ -375,4 +375,4 @@
window['STORIES'] = [{"titlePrefix":"","directory":"./stories","files":"**/*.stories.tsx","importPathMatcher":"^\\.[\\\\/](?:stories(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.tsx)$"}];</script><script src="runtime~main.ed0f32a8.iframe.bundle.js"></script><script src="7548.4ee09190.iframe.bundle.js"></script><script src="main.3ed477c4.iframe.bundle.js"></script></body></html>
window['STORIES'] = [{"titlePrefix":"","directory":"./stories","files":"**/*.stories.tsx","importPathMatcher":"^\\.[\\\\/](?:stories(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.tsx)$"}];</script><script src="runtime~main.487578e7.iframe.bundle.js"></script><script src="7548.4ee09190.iframe.bundle.js"></script><script src="main.3ed477c4.iframe.bundle.js"></script></body></html>

View File

@ -1 +1 @@
{"generatedAt":1742559887928,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.22"},"storybookVersion":"6.5.16","language":"typescript","storybookPackages":{"@storybook/builder-webpack5":{"version":"6.5.16"},"@storybook/manager-webpack5":{"version":"6.5.16"},"@storybook/react":{"version":"6.5.16"},"eslint-plugin-storybook":{"version":"0.6.11"}},"framework":{"name":"react"},"addons":{"storybook-dark-mode":{"version":"1.1.2"},"@storybook/addon-a11y":{"version":"6.5.16"}}}
{"generatedAt":1743802695166,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.22"},"storybookVersion":"6.5.16","language":"typescript","storybookPackages":{"@storybook/builder-webpack5":{"version":"6.5.16"},"@storybook/manager-webpack5":{"version":"6.5.16"},"@storybook/react":{"version":"6.5.16"},"eslint-plugin-storybook":{"version":"0.6.11"}},"framework":{"name":"react"},"addons":{"storybook-dark-mode":{"version":"1.1.2"},"@storybook/addon-a11y":{"version":"6.5.16"}}}

File diff suppressed because one or more lines are too long