(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[705],{3457:function(e,r,n){"use strict";n.d(r,{Z:function(){return y}});var t=n(3366),o=n(7462),l=n(7294),i=n(6010),a=n(7192),s=n(1496),u=n(3616),c=n(8979);function d(e){return(0,c.Z)("MuiFormGroup",e)}(0,n(6087).Z)("MuiFormGroup",["root","row","error"]);var p=n(4423),f=n(5704),h=n(5893);const v=["className","row"],m=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,n.row&&r.row]}})((({ownerState:e})=>(0,o.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})));var y=l.forwardRef((function(e,r){const n=(0,u.Z)({props:e,name:"MuiFormGroup"}),{className:l,row:s=!1}=n,c=(0,t.Z)(n,v),y=(0,p.Z)(),b=(0,f.Z)({props:n,muiFormControl:y,states:["error"]}),x=(0,o.Z)({},n,{row:s,error:b.error}),g=(e=>{const{classes:r,row:n,error:t}=e,o={root:["root",n&&"row",t&&"error"]};return(0,a.Z)(o,d,r)})(x);return(0,h.jsx)(m,(0,o.Z)({className:(0,i.Z)(g.root,l),ownerState:x,ref:r},c))}))},3187:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/prepare-host",function(){return n(9093)}])},9093:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return Le}});var t=n(5893),o=n(9008),l=n(5716),i=n(7504),a=n(5697),s=n(2186),u=n(7357),c=n(4799),d=n(7294),p=n(7169),f=n(4188),h=n(4390),v=n(1770),m=n(9914),y=n(157),b=n(4825),x=n(4690),g=n(9434),j=n(7869),w=n(6284),Z=n(2152);function P(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"===typeof e)return P(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var A={width:"100%"},I="identifier",M="passphrase",R="accessError",V="identifierInputError",N="passphraseInputError",_=(0,d.forwardRef)((function(e,r){var n,o,l,a=e.allowSubmit,s=void 0===a||a,u=e.gridProps,c=void 0===u?{}:u,p=c.columns,h=void 0===p?{xs:1,sm:2}:p,v=(c.layout,c.spacing),y=void 0===v?"1em":v,P=e.identifierLabel,_=e.identifierOutlinedInputWithLabelProps,B=void 0===_?{}:_,E=B.formControlProps,F=void 0===E?{}:E,H=B.inputProps,T=e.identifierInputTestBatchBuilder,L=e.onIdentifierBlurAppend,U=e.onSubmit,z=e.onSubmitAppend,G=e.passphraseLabel,$=e.passphraseOutlinedInputWithLabelProps,D=void 0===$?{}:$,W=D.formControlProps,q=void 0===W?{}:W,K=D.inputProps,X=e.submitLabel,Y=O(e.gridProps,["columns","layout","spacing"]),J=O(e.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),Q=O(e.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ee=F.sx,re=O(F,["sx"]),ne=q.sx,te=O(q,["sx"]),oe=(0,d.useRef)({}),le=(0,d.useRef)({}),ie=(0,d.useRef)({}),ae=(0,d.useState)(!1),se=ae[0],ue=ae[1],ce=(0,d.useState)(!1),de=ce[0],pe=ce[1],fe=(0,d.useState)(!1),he=fe[0],ve=fe[1],me=(0,d.useCallback)((function(e){var r;null===(r=ie.current.setMessage)||void 0===r||r.call(null,R,e)}),[]),ye=(0,d.useCallback)((function(e){var r;null===(r=ie.current.setMessage)||void 0===r||r.call(null,V,e)}),[]),be=(0,d.useCallback)((function(e){var r;null===(r=ie.current.setMessage)||void 0===r||r.call(null,N,e)}),[]),xe=(0,d.useMemo)((function(){return s?void 0:"none"}),[s]),ge=(0,d.useMemo)((function(){return null!==(n=null===T||void 0===T?void 0:T.call(null,ye,oe.current))&&void 0!==n?n:(0,m.Gn)(P,(function(){ye()}),{getValue:oe.current.getValue},(function(e){ye({children:e,type:"warning"})}))}),[P,T,ye]),je=(0,d.useMemo)((function(){var e;return S(e={},I,ge),S(e,M,(0,m.Gn)(G,(function(){be()}),{getValue:le.current.getValue},(function(e){be({children:e,type:"warning"})}))),e}),[ge,G,be]),we=(0,d.useMemo)((function(){return null!==U&&void 0!==U?U:function(){for(var e=arguments.length,r=new Array(e),n=0;n(0,T.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},r.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));var J=function(e){const{checked:r=!1,classes:n={},fontSize:o}=e,l=(0,T.Z)({},e,{checked:r});return(0,t.jsxs)(K,{className:n.root,ownerState:l,children:[(0,t.jsx)(X,{fontSize:o,className:n.background,ownerState:l}),(0,t.jsx)(Y,{fontSize:o,className:n.dot,ownerState:l})]})},Q=n(8216),ee=n(7450);var re=d.createContext(void 0);var ne=n(8979);function te(e){return(0,ne.Z)("MuiRadio",e)}var oe=(0,n(6087).Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const le=["checked","checkedIcon","color","icon","name","onChange","size"],ie=(0,q.ZP)(z.Z,{shouldForwardProp:e=>(0,q.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,r[`color${(0,Q.Z)(n.color)}`]]}})((({theme:e,ownerState:r})=>(0,T.Z)({color:e.palette.text.secondary,"&:hover":{backgroundColor:(0,U.Fq)("default"===r.color?e.palette.action.active:e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{[`&.${oe.checked}`]:{color:e.palette[r.color].main}},{[`&.${oe.disabled}`]:{color:e.palette.action.disabled}})));const ae=(0,t.jsx)(J,{checked:!0}),se=(0,t.jsx)(J,{});var ue=d.forwardRef((function(e,r){var n,o;const l=(0,G.Z)({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=ae,color:s="primary",icon:u=se,name:c,onChange:p,size:f="medium"}=l,h=(0,H.Z)(l,le),v=(0,T.Z)({},l,{color:s,size:f}),m=(e=>{const{classes:r,color:n}=e,t={root:["root",`color${(0,Q.Z)(n)}`]};return(0,T.Z)({},r,(0,L.Z)(t,te,r))})(v),y=d.useContext(re);let b=i;const x=(0,ee.Z)(p,y&&y.onChange);let g=c;var j,w;return y&&("undefined"===typeof b&&(j=y.value,b="object"===typeof(w=l.value)&&null!==w?j===w:String(j)===String(w)),"undefined"===typeof g&&(g=y.name)),(0,t.jsx)(ie,(0,T.Z)({type:"radio",icon:d.cloneElement(u,{fontSize:null!=(n=se.props.fontSize)?n:f}),checkedIcon:d.cloneElement(a,{fontSize:null!=(o=ae.props.fontSize)?o:f}),ownerState:v,classes:m,name:g,checked:b,onChange:x,ref:r},h))})),ce=n(3640),de=n(476),pe=n(3457),fe=n(1705),he=n(9299),ve=n(7909);const me=["actions","children","defaultValue","name","onChange","value"];var ye=d.forwardRef((function(e,r){const{actions:n,children:o,defaultValue:l,name:i,onChange:a,value:s}=e,u=(0,H.Z)(e,me),c=d.useRef(null),[p,f]=(0,he.Z)({controlled:s,default:l,name:"RadioGroup"});d.useImperativeHandle(n,(()=>({focus:()=>{let e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const h=(0,fe.Z)(r,c),v=(0,ve.Z)(i);return(0,t.jsx)(re.Provider,{value:{name:v,onChange:e=>{f(e.target.value),a&&a(e,e.target.value)},value:p},children:(0,t.jsx)(pe.Z,(0,T.Z)({role:"radiogroup",ref:h},u,{children:o}))})})),be=n(2416);function xe(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ze(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,l=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(l.push(t.value),!r||l.length!==r);i=!0);}catch(s){a=!0,o=s}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return l}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return xe(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xe(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pe=function(e){var r=e.formControlProps,n=e.formControlLabelProps,o=e.formLabelProps,l=e.id,i=e.label,a=e.onChange,s=e.radioItems,u=e.radioProps,c=(void 0===u?{}:u).sx,f=e.radioGroupProps,h=we(e.radioProps,["sx"]),v=(0,d.useMemo)((function(){return"string"===typeof i?(0,t.jsx)(be.Ac,{children:i}):i}),[i]),m=(0,d.useMemo)((function(){return Object.entries(s).map((function(e){var r=Ze(e,2),o=r[0],i=r[1],a=i.label,s=i.value,u="string"===typeof a?(0,t.jsx)(be.Ac,{children:a}):a;return(0,t.jsx)(F.Z,je({control:(0,t.jsx)(ue,je({},h,{sx:je(ge({},"&.".concat(oe.root),{color:p.s7}),c)})),value:s,label:u},n),"".concat(l,"-").concat(o))}))}),[n,l,s,c,h]);return(0,t.jsxs)(ce.Z,je({},r,{children:[(0,t.jsx)(de.Z,je({},o,{children:v})),(0,t.jsx)(ye,je({onChange:a,row:!0},f,{children:m}))]}))},Se=n(3144),Ce=n(2749);function Oe(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n