????
Current Path : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/ |
Current File : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/AppForm-f1bbd83a.js |
import{b as x,g as K,a as Z,s as O,_,u as ee,e as te,j as s,f as B,p as a,i as Ie,h as re,av as Ue,aw as ut,c as Ae,ax as dt,ay as pt,az as ft,aA as _e,aB as Re,al as pe,G as ie,I as mt,S as vt,a4 as ht,E as Y,T as Me,x as bt,V as gt,ai as yt,aj as $e}from"./index-9bcd78a9.js";import{w as xt}from"./warning-d8cd23a0.js";import{R as _t,a as fe}from"./RadioGroup-75efda1a.js";import{F as oe}from"./FormControlLabel-a1a576f7.js";import{C as Ft}from"./Checkbox-60209323.js";import{S as St}from"./Stack-6f785cc2.js";import"./SwitchBase-f2562236.js";import"./FormGroup-c4ebc22e.js";const ze=x.createContext({});ze.displayName="StepperContext";const ce=ze,ke=x.createContext({});ke.displayName="StepContext";const Fe=ke;function wt(e){return K("MuiStep",e)}Z("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const jt=["active","children","className","component","completed","disabled","expanded","index","last"],Ct=e=>{const{classes:t,orientation:o,alternativeLabel:r,completed:n}=e;return re({root:["root",o,r&&"alternativeLabel",n&&"completed"]},wt,t)},Pt=O("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>_({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),We=x.forwardRef(function(t,o){const r=ee({props:t,name:"MuiStep"}),{active:n,children:u,className:l,component:p="div",completed:f,disabled:i,expanded:c=!1,index:d,last:b}=r,g=te(r,jt),{activeStep:h,connector:j,alternativeLabel:D,orientation:I,nonLinear:v}=x.useContext(ce);let[m=!1,P=!1,w=!1]=[n,f,i];h===d?m=n!==void 0?n:!0:!v&&h>d?P=f!==void 0?f:!0:!v&&h<d&&(w=i!==void 0?i:!0);const F=x.useMemo(()=>({index:d,last:b,expanded:c,icon:d+1,active:m,completed:P,disabled:w}),[d,b,c,m,P,w]),M=_({},r,{active:m,orientation:I,alternativeLabel:D,completed:P,disabled:w,expanded:c,component:p}),N=Ct(M),T=s.jsxs(Pt,_({as:p,className:B(N.root,l),ref:o,ownerState:M},g,{children:[j&&D&&d!==0?j:null,u]}));return s.jsx(Fe.Provider,{value:F,children:j&&!D&&d!==0?s.jsxs(x.Fragment,{children:[j,T]}):T})});We.propTypes={active:a.bool,children:a.node,classes:a.object,className:a.string,completed:a.bool,component:a.elementType,disabled:a.bool,expanded:a.bool,index:Ie,last:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])};const Tt=We,Rt=Ue(s.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Mt=Ue(s.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function $t(e){return K("MuiStepIcon",e)}const Lt=Z("MuiStepIcon",["root","active","completed","error","text"]),me=Lt;var Le;const Dt=["active","className","completed","error","icon"],Et=e=>{const{classes:t,active:o,completed:r,error:n}=e;return re({root:["root",o&&"active",r&&"completed",n&&"error"],text:["text"]},$t,t)},ve=O(ut,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${me.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${me.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${me.error}`]:{color:(e.vars||e).palette.error.main}})),Ot=O("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),Be=x.forwardRef(function(t,o){const r=ee({props:t,name:"MuiStepIcon"}),{active:n=!1,className:u,completed:l=!1,error:p=!1,icon:f}=r,i=te(r,Dt),c=_({},r,{active:n,completed:l,error:p}),d=Et(c);if(typeof f=="number"||typeof f=="string"){const b=B(u,d.root);return p?s.jsx(ve,_({as:Mt,className:b,ref:o,ownerState:c},i)):l?s.jsx(ve,_({as:Rt,className:b,ref:o,ownerState:c},i)):s.jsxs(ve,_({className:b,ref:o,ownerState:c},i,{children:[Le||(Le=s.jsx("circle",{cx:"12",cy:"12",r:"12"})),s.jsx(Ot,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:c,children:f})]}))}return f});Be.propTypes={active:a.bool,classes:a.object,className:a.string,completed:a.bool,error:a.bool,icon:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])};const Vt=Be;function Nt(e){return K("MuiStepLabel",e)}const qt=Z("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),k=qt,It=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],Ut=e=>{const{classes:t,orientation:o,active:r,completed:n,error:u,disabled:l,alternativeLabel:p}=e;return re({root:["root",o,u&&"error",l&&"disabled",p&&"alternativeLabel"],label:["label",r&&"active",n&&"completed",u&&"error",l&&"disabled",p&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",n&&"completed",u&&"error",l&&"disabled",p&&"alternativeLabel"],labelContainer:["labelContainer",p&&"alternativeLabel"]},Nt,t)},At=O("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>_({display:"flex",alignItems:"center",[`&.${k.alternativeLabel}`]:{flexDirection:"column"},[`&.${k.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),zt=O("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>_({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${k.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${k.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${k.alternativeLabel}`]:{marginTop:16},[`&.${k.error}`]:{color:(e.vars||e).palette.error.main}})),kt=O("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${k.alternativeLabel}`]:{paddingRight:0}})),Wt=O("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${k.alternativeLabel}`]:{textAlign:"center"}})),Se=x.forwardRef(function(t,o){var r;const n=ee({props:t,name:"MuiStepLabel"}),{children:u,className:l,componentsProps:p={},error:f=!1,icon:i,optional:c,slotProps:d={},StepIconComponent:b,StepIconProps:g}=n,h=te(n,It),{alternativeLabel:j,orientation:D}=x.useContext(ce),{active:I,disabled:v,completed:m,icon:P}=x.useContext(Fe),w=i||P;let F=b;w&&!F&&(F=Vt);const M=_({},n,{active:I,alternativeLabel:j,completed:m,disabled:v,error:f,orientation:D}),N=Ut(M),T=(r=d.label)!=null?r:p.label;return s.jsxs(At,_({className:B(N.root,l),ref:o,ownerState:M},h,{children:[w||F?s.jsx(kt,{className:N.iconContainer,ownerState:M,children:s.jsx(F,_({completed:m,active:I,error:f,icon:w},g))}):null,s.jsxs(Wt,{className:N.labelContainer,ownerState:M,children:[u?s.jsx(zt,_({ownerState:M},T,{className:B(N.label,T==null?void 0:T.className),children:u})):null,c]})]}))});Se.propTypes={children:a.node,classes:a.object,className:a.string,componentsProps:a.shape({label:a.object}),error:a.bool,icon:a.node,optional:a.node,slotProps:a.shape({label:a.object}),StepIconComponent:a.elementType,StepIconProps:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])};Se.muiName="StepLabel";const Bt=Se;function Gt(e){return K("MuiStepConnector",e)}Z("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const Ht=["className"],Qt=e=>{const{classes:t,orientation:o,alternativeLabel:r,active:n,completed:u,disabled:l}=e,p={root:["root",o,r&&"alternativeLabel",n&&"active",u&&"completed",l&&"disabled"],line:["line",`line${Ae(o)}`]};return re(p,Gt,t)},Yt=O("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>_({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),Xt=O("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${Ae(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return _({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),Ge=x.forwardRef(function(t,o){const r=ee({props:t,name:"MuiStepConnector"}),{className:n}=r,u=te(r,Ht),{alternativeLabel:l,orientation:p="horizontal"}=x.useContext(ce),{active:f,disabled:i,completed:c}=x.useContext(Fe),d=_({},r,{alternativeLabel:l,orientation:p,active:f,completed:c,disabled:i}),b=Qt(d);return s.jsx(Yt,_({className:B(b.root,n),ref:o,ownerState:d},u,{children:s.jsx(Xt,{className:b.line,ownerState:d})}))});Ge.propTypes={classes:a.object,className:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])};const Jt=Ge;function Kt(e){return K("MuiStepper",e)}Z("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const Zt=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],er=e=>{const{orientation:t,alternativeLabel:o,classes:r}=e;return re({root:["root",t,o&&"alternativeLabel"]},Kt,r)},tr=O("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>_({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),rr=s.jsx(Jt,{}),He=x.forwardRef(function(t,o){const r=ee({props:t,name:"MuiStepper"}),{activeStep:n=0,alternativeLabel:u=!1,children:l,className:p,component:f="div",connector:i=rr,nonLinear:c=!1,orientation:d="horizontal"}=r,b=te(r,Zt),g=_({},r,{alternativeLabel:u,orientation:d,component:f}),h=er(g),j=x.Children.toArray(l).filter(Boolean),D=j.map((v,m)=>x.cloneElement(v,_({index:m,last:m+1===j.length},v.props))),I=x.useMemo(()=>({activeStep:n,alternativeLabel:u,connector:i,nonLinear:c,orientation:d}),[n,u,i,c,d]);return s.jsx(ce.Provider,{value:I,children:s.jsx(tr,_({as:f,ownerState:g,className:B(h.root,p),ref:o},b,{children:D}))})});He.propTypes={activeStep:Ie,alternativeLabel:a.bool,children:a.node,classes:a.object,className:a.string,component:a.elementType,connector:a.element,nonLinear:a.bool,orientation:a.oneOf(["horizontal","vertical"]),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])};const nr=He,or=Object.freeze(Object.defineProperty({__proto__:null,default:dt,getTextFieldUtilityClass:pt,textFieldClasses:ft},Symbol.toStringTag,{value:"Module"}));let De=!1;const ar=()=>{De||(console.warn(["MUI: The DatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.","","You should use `import { DatePicker } from '@mui/x-date-pickers'`","or `import { DatePicker } from '@mui/x-date-pickers/DatePicker'`","","More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/."].join(` `)),De=!0)},ir=x.forwardRef(function(){return ar(),null}),sr=ir;let Ee=!1;const lr=()=>{Ee||(console.warn(["MUI: The LocalizationProvider component was moved from `@mui/lab` to `@mui/x-date-pickers`.","","You should use `import { LocalizationProvider } from '@mui/x-date-pickers'`","or `import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'`","","More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/."].join(` `)),Ee=!0)},cr=x.forwardRef(function(){return lr(),null}),ur=cr;let Oe=!1;const dr=()=>{Oe||(console.warn(["MUI: The AdapterDateFns class was moved from `@mui/lab` to `@mui/x-date-pickers`","","You should use `import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns'`","","More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/."].join(` `)),Oe=!0)};class pr{constructor(){dr()}}var H={},we={};function fr(e){var t=this.constructor;return this.then(function(o){return t.resolve(e()).then(function(){return o})},function(o){return t.resolve(e()).then(function(){return t.reject(o)})})}var mr=setTimeout;function vr(){}function hr(e,t){return function(){e.apply(t,arguments)}}function S(e){if(!(this instanceof S))throw new TypeError("Promises must be constructed via new");if(typeof e!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Ye(e,this)}function Qe(e,t){for(;e._state===3;)e=e._value;if(e._state===0){e._deferreds.push(t);return}e._handled=!0,S._immediateFn(function(){var o=e._state===1?t.onFulfilled:t.onRejected;if(o===null){(e._state===1?ye:J)(t.promise,e._value);return}var r;try{r=o(e._value)}catch(n){J(t.promise,n);return}ye(t.promise,r)})}function ye(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&(typeof t=="object"||typeof t=="function")){var o=t.then;if(t instanceof S){e._state=3,e._value=t,xe(e);return}else if(typeof o=="function"){Ye(hr(o,t),e);return}}e._state=1,e._value=t,xe(e)}catch(r){J(e,r)}}function J(e,t){e._state=2,e._value=t,xe(e)}function xe(e){e._state===2&&e._deferreds.length===0&&S._immediateFn(function(){e._handled||S._unhandledRejectionFn(e._value)});for(var t=0,o=e._deferreds.length;t<o;t++)Qe(e,e._deferreds[t]);e._deferreds=null}function br(e,t,o){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.promise=o}function Ye(e,t){var o=!1;try{e(function(r){o||(o=!0,ye(t,r))},function(r){o||(o=!0,J(t,r))})}catch(r){if(o)return;o=!0,J(t,r)}}S.prototype.catch=function(e){return this.then(null,e)};S.prototype.then=function(e,t){var o=new this.constructor(vr);return Qe(this,new br(e,t,o)),o};S.prototype.finally=fr;S.all=function(e){return new S(function(t,o){if(!e||typeof e.length>"u")throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(r.length===0)return t([]);var n=r.length;function u(p,f){try{if(f&&(typeof f=="object"||typeof f=="function")){var i=f.then;if(typeof i=="function"){i.call(f,function(c){u(p,c)},o);return}}r[p]=f,--n===0&&t(r)}catch(c){o(c)}}for(var l=0;l<r.length;l++)u(l,r[l])})};S.resolve=function(e){return e&&typeof e=="object"&&e.constructor===S?e:new S(function(t){t(e)})};S.reject=function(e){return new S(function(t,o){o(e)})};S.race=function(e){return new S(function(t,o){for(var r=0,n=e.length;r<n;r++)e[r].then(t,o)})};S._immediateFn=typeof setImmediate=="function"&&function(e){setImmediate(e)}||function(e){mr(e,0)};S._unhandledRejectionFn=function(t){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};const gr=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),Xe=_e(gr);function Je(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Ke(e){function t(o){var r=this.constructor.getDerivedStateFromProps(e,o);return r??null}this.setState(t.bind(this))}function Ze(e,t){try{var o=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,r)}finally{this.props=o,this.state=r}}Je.__suppressDeprecationWarning=!0;Ke.__suppressDeprecationWarning=!0;Ze.__suppressDeprecationWarning=!0;function yr(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var o=null,r=null,n=null;if(typeof t.componentWillMount=="function"?o="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(o="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?n="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),o!==null||r!==null||n!==null){var u=e.displayName||e.name,l=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+u+" uses "+l+" but also contains the following legacy lifecycles:"+(o!==null?` `+o:"")+(r!==null?` `+r:"")+(n!==null?` `+n:"")+` The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Je,t.componentWillReceiveProps=Ke),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Ze;var p=t.componentDidUpdate;t.componentDidUpdate=function(i,c,d){var b=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;p.call(this,i,c,b)}}return e}const xr=Object.freeze(Object.defineProperty({__proto__:null,polyfill:yr},Symbol.toStringTag,{value:"Module"})),_r=_e(xr);var Q={},se={},Fr={get exports(){return se},set exports(e){se=e}},le={},Sr={get exports(){return le},set exports(e){le=e}},Ve="__global_unique_id__",wr=function(){return Re[Ve]=(Re[Ve]||0)+1};(function(e,t){t.__esModule=!0;var o=x;i(o);var r=a,n=i(r),u=wr,l=i(u),p=xt,f=i(p);function i(v){return v&&v.__esModule?v:{default:v}}function c(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function b(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var g=1073741823;function h(v,m){return v===m?v!==0||1/v===1/m:v!==v&&m!==m}function j(v){var m=[];return{on:function(w){m.push(w)},off:function(w){m=m.filter(function(F){return F!==w})},get:function(){return v},set:function(w,F){v=w,m.forEach(function(M){return M(v,F)})}}}function D(v){return Array.isArray(v)?v[0]:v}function I(v,m){var P,w,F="__create-react-context-"+(0,l.default)()+"__",M=function(T){b(C,T);function C(){var $,y,L;c(this,C);for(var U=arguments.length,R=Array(U),q=0;q<U;q++)R[q]=arguments[q];return L=($=(y=d(this,T.call.apply(T,[this].concat(R))),y),y.emitter=j(y.props.value),$),d(y,L)}return C.prototype.getChildContext=function(){var y;return y={},y[F]=this.emitter,y},C.prototype.componentWillReceiveProps=function(y){if(this.props.value!==y.value){var L=this.props.value,U=y.value,R=void 0;h(L,U)?R=0:(R=typeof m=="function"?m(L,U):g,(0,f.default)((R&g)===R,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",R),R|=0,R!==0&&this.emitter.set(y.value,R))}},C.prototype.render=function(){return this.props.children},C}(o.Component);M.childContextTypes=(P={},P[F]=n.default.object.isRequired,P);var N=function(T){b(C,T);function C(){var $,y,L;c(this,C);for(var U=arguments.length,R=Array(U),q=0;q<U;q++)R[q]=arguments[q];return L=($=(y=d(this,T.call.apply(T,[this].concat(R))),y),y.state={value:y.getValue()},y.onUpdate=function(Nn,lt){var ct=y.observedBits|0;ct<&&y.setState({value:y.getValue()})},$),d(y,L)}return C.prototype.componentWillReceiveProps=function(y){var L=y.observedBits;this.observedBits=L??g},C.prototype.componentDidMount=function(){this.context[F]&&this.context[F].on(this.onUpdate);var y=this.props.observedBits;this.observedBits=y??g},C.prototype.componentWillUnmount=function(){this.context[F]&&this.context[F].off(this.onUpdate)},C.prototype.getValue=function(){return this.context[F]?this.context[F].get():v},C.prototype.render=function(){return D(this.props.children)(this.state.value)},C}(o.Component);return N.contextTypes=(w={},w[F]=n.default.object,w),{Provider:M,Consumer:N}}t.default=I,e.exports=t.default})(Sr,le);(function(e,t){t.__esModule=!0;var o=x,r=l(o),n=le,u=l(n);function l(p){return p&&p.__esModule?p:{default:p}}t.default=r.default.createContext||u.default,e.exports=t.default})(Fr,se);var et=function(t){return t!=null},E=function(t){return t instanceof Array?t.length===0:t===""||!et(t)},jr=function(t){return typeof t=="string"?t.trim()==="":!0},V={matchRegexp:function(t,o){var r=o instanceof RegExp?o:new RegExp(o);return E(t)||r.test(t)},isEmail:function(t){return V.matchRegexp(t,/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i)},isEmpty:function(t){return E(t)},required:function(t){return!E(t)},trim:function(t){return!jr(t)},isNumber:function(t){return V.matchRegexp(t,/^-?[0-9]\d*(\d+)?$/i)},isFloat:function(t){return V.matchRegexp(t,/^(?:-?[1-9]\d*|-?0)?(?:\.\d+)?$/i)},isPositive:function(t){return et(t)?(V.isNumber(t)||V.isFloat(t))&&t>=0:!0},maxNumber:function(t,o){return E(t)||parseInt(t,10)<=parseInt(o,10)},minNumber:function(t,o){return E(t)||parseInt(t,10)>=parseInt(o,10)},maxFloat:function(t,o){return E(t)||parseFloat(t)<=parseFloat(o)},minFloat:function(t,o){return E(t)||parseFloat(t)>=parseFloat(o)},isString:function(t){return E(t)||typeof t=="string"||t instanceof String},minStringLength:function(t,o){return V.isString(t)&&t.length>=o},maxStringLength:function(t,o){return V.isString(t)&&t.length<=o},isFile:function(t){return E(t)||t instanceof File},maxFileSize:function(t,o){return E(t)||V.isFile(t)&&t.size<=parseInt(o,10)},allowedExtensions:function(t,o){return E(t)||V.isFile(t)&&o.split(",").indexOf(t.type)!==-1}},tt=V;Object.defineProperty(Q,"__esModule",{value:!0});Q.FormContext=void 0;var Cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Pr=function(){function e(t,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),Tr=x,he=ne(Tr),Rr=a,X=ne(Rr),Mr=Xe,ae=ne(Mr),$r=se,Lr=ne($r),Dr=tt,G=ne(Dr);function ne(e){return e&&e.__esModule?e:{default:e}}function Er(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function Or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var rt=(0,Lr.default)("form");Q.FormContext=rt;var W=function(e){Vr(t,e);function t(){var o,r,n,u;Or(this,t);for(var l=arguments.length,p=Array(l),f=0;f<l;f++)p[f]=arguments[f];return u=(r=(n=Ne(this,(o=t.__proto__||Object.getPrototypeOf(t)).call.apply(o,[this].concat(p))),n),n.getFormHelpers=function(){return{form:{attachToForm:n.attachToForm,detachFromForm:n.detachFromForm,instantValidate:n.instantValidate,debounceTime:n.debounceTime}}},n.instantValidate=n.props.instantValidate!==void 0?n.props.instantValidate:!0,n.debounceTime=n.props.debounceTime,n.childs=[],n.errors=[],n.attachToForm=function(i){n.childs.indexOf(i)===-1&&n.childs.push(i)},n.detachFromForm=function(i){var c=n.childs.indexOf(i);c!==-1&&(n.childs=n.childs.slice(0,c).concat(n.childs.slice(c+1)))},n.submit=function(i){i&&(i.preventDefault(),i.persist()),n.errors=[],n.walk(n.childs).then(function(c){return n.errors.length&&n.props.onError(n.errors),c&&n.props.onSubmit(i),c})},n.walk=function(i,c){var d=n;return new ae.default(function(b){var g=!0;Array.isArray(i)?ae.default.all(i.map(function(h){return d.checkInput(h,c)})).then(function(h){h.forEach(function(j){j||(g=!1)}),b(g)}):d.walk([i],c).then(function(h){return b(h)})})},n.checkInput=function(i,c){return new ae.default(function(d){var b=!0,g=i.props.validators;g?n.validate(i,!0,c).then(function(h){h||(b=!1),d(b)}):d(b)})},n.validate=function(i,c,d){return new ae.default(function(b){var g=i.props.value;i.validate(g,c,d).then(function(h){h||n.errors.push(i),b(h)})})},n.find=function(i,c){for(var d=0,b=i.length;d<b;d++){var g=i[d];if(c(g))return g}return null},n.resetValidations=function(){n.childs.forEach(function(i){i.validateDebounced.cancel(),i.setState({isValid:!0})})},n.isFormValid=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n.walk(n.childs,i)},r),Ne(n,u)}return Pr(t,[{key:"render",value:function(){var r=this.props;r.onSubmit,r.instantValidate,r.onError,r.debounceTime;var n=r.children,u=Er(r,["onSubmit","instantValidate","onError","debounceTime","children"]);return he.default.createElement(rt.Provider,{value:this.getFormHelpers()},he.default.createElement("form",Cr({},u,{onSubmit:this.submit}),n))}}]),t}(he.default.Component);W.getValidator=function(e,t,o){var r=!0,n=e;if(n!=="required"||o){var u=void 0,l=e.indexOf(":");l!==-1&&(n=e.substring(0,l),u=e.substring(l+1)),r=G.default[n](t,u)}return r};W.addValidationRule=function(e,t){G.default[e]=t};W.getValidationRule=function(e){return G.default[e]};W.hasValidationRule=function(e){return G.default[e]&&typeof G.default[e]=="function"};W.removeValidationRule=function(e){delete G.default[e]};W.propTypes={onSubmit:X.default.func.isRequired,instantValidate:X.default.bool,children:X.default.node,onError:X.default.func,debounceTime:X.default.number};W.defaultProps={onError:function(){},debounceTime:0};Q.default=W;var je={};Object.defineProperty(je,"__esModule",{value:!0});var Nr=function(t,o,r){var n=void 0;function u(){n!==void 0&&clearTimeout(n)}var l=function(){for(var f=arguments.length,i=Array(f),c=0;c<f;c++)i[c]=arguments[c];var d=this,b=function(){n=null,r||t.apply(d,i)},g=r&&!n;clearTimeout(n),n=setTimeout(b,o),g&&t.apply(d,i)};return l.cancel=u,l};je.debounce=Nr;Object.defineProperty(we,"__esModule",{value:!0});var qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ir=function(){function e(t,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),Ur=x,be=ue(Ur),Ar=a,A=ue(Ar),zr=Xe,kr=ue(zr),Wr=_r,nt=Q,Br=ue(nt),Gr=je;function ue(e){return e&&e.__esModule?e:{default:e}}function Hr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Qr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var de=function(e){Qr(t,e);function t(){var o,r,n,u;Hr(this,t);for(var l=arguments.length,p=Array(l),f=0;f<l;f++)p[f]=arguments[f];return u=(r=(n=qe(this,(o=t.__proto__||Object.getPrototypeOf(t)).call.apply(o,[this].concat(p))),n),n.state={isValid:!0,value:n.props.value,errorMessages:n.props.errorMessages,validators:n.props.validators},n.getErrorMessage=function(){var i=n.state.errorMessages,c=typeof i>"u"?"undefined":qr(i);return c==="string"?i:c==="object"&&n.invalid.length>0?i[n.invalid[0]]:(console.log("unknown errorMessages type",i),!0)},n.instantValidate=!0,n.invalid=[],n.configure=function(){n.form.attachToForm(n),n.instantValidate=n.form.instantValidate,n.debounceTime=n.form.debounceTime,n.validateDebounced=(0,Gr.debounce)(n.validate,n.debounceTime)},n.validate=function(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,b=kr.default.all(n.state.validators.map(function(g){return Br.default.getValidator(g,i,c)}));return b.then(function(g){n.invalid=[];var h=!0;return g.forEach(function(j,D){j||(h=!1,n.invalid.push(D))}),d||n.setState({isValid:h},function(){n.props.validatorListener(n.state.isValid)}),h})},n.isValid=function(){return n.state.isValid},n.makeInvalid=function(){n.setState({isValid:!1})},n.makeValid=function(){n.setState({isValid:!0})},n.renderComponent=function(i){return n.form||(n.form=i),n.renderValidatorComponent()},r),qe(n,u)}return Ir(t,[{key:"componentDidMount",value:function(){this.configure()}},{key:"shouldComponentUpdate",value:function(r,n){return this.state!==n||this.props!==r}},{key:"componentDidUpdate",value:function(r,n){this.instantValidate&&this.props.value!==n.value&&this.validateDebounced(this.props.value,this.props.withRequiredValidator)}},{key:"componentWillUnmount",value:function(){this.form.detachFromForm(this),this.validateDebounced.cancel()}},{key:"render",value:function(){var r=this;return be.default.createElement(nt.FormContext.Consumer,null,function(n){var u=n.form;return be.default.createElement("div",r.props.containerProps,r.renderComponent(u))})}}],[{key:"getDerivedStateFromProps",value:function(r,n){return r.validators&&r.errorMessages&&(n.validators!==r.validators||n.errorMessages!==r.errorMessages)?{value:r.value,validators:r.validators,errorMessages:r.errorMessages}:{value:r.value}}}]),t}(be.default.Component);de.propTypes={errorMessages:A.default.oneOfType([A.default.array,A.default.string]),validators:A.default.array,value:A.default.any,validatorListener:A.default.func,withRequiredValidator:A.default.bool,containerProps:A.default.object};de.defaultProps={errorMessages:"error",validators:[],validatorListener:function(){}};(0,Wr.polyfill)(de);we.default=de;var Yr=we,Xr=Ce(Yr),Jr=Q,Kr=Ce(Jr),Zr=tt,en=Ce(Zr);function Ce(e){return e&&e.__esModule?e:{default:e}}H.ValidatorComponent=Xr.default;H.ValidatorForm=Kr.default;H.ValidationRules=en.default;var Pe={};const ot=_e(or);Object.defineProperty(Pe,"__esModule",{value:!0});var tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},rn=function(){function e(t,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),nn=x,on=at(nn),an=ot,sn=at(an),ln=H;function at(e){return e&&e.__esModule?e:{default:e}}function cn(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var fn=function(e){pn(t,e);function t(){return un(this,t),dn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return rn(t,[{key:"renderValidatorComponent",value:function(){var r=this.props,n=r.error;r.errorMessages,r.validators,r.requiredError;var u=r.helperText;r.validatorListener,r.withRequiredValidator,r.containerProps;var l=cn(r,["error","errorMessages","validators","requiredError","helperText","validatorListener","withRequiredValidator","containerProps"]),p=this.state.isValid;return on.default.createElement(sn.default,tn({},l,{select:!0,error:!p||n,helperText:!p&&this.getErrorMessage()||u}))}}]),t}(ln.ValidatorComponent);Pe.default=fn;var Te={};Object.defineProperty(Te,"__esModule",{value:!0});var mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},vn=function(){function e(t,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),hn=x,bn=it(hn),gn=ot,yn=it(gn),xn=H;function it(e){return e&&e.__esModule?e:{default:e}}function _n(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function Fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function wn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var jn=function(e){wn(t,e);function t(){return Fn(this,t),Sn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return vn(t,[{key:"renderValidatorComponent",value:function(){var r=this.props,n=r.error;r.errorMessages,r.validators,r.requiredError;var u=r.helperText;r.validatorListener,r.withRequiredValidator,r.containerProps;var l=_n(r,["error","errorMessages","validators","requiredError","helperText","validatorListener","withRequiredValidator","containerProps"]),p=this.state.isValid;return bn.default.createElement(yn.default,mn({},l,{error:!p||n,helperText:!p&&this.getErrorMessage()||u}))}}]),t}(xn.ValidatorComponent);Te.default=jn;var Cn=H,Pn=Pe,Tn=st(Pn),Rn=Te,Mn=st(Rn);function st(e){return e&&e.__esModule?e:{default:e}}Tn.default;var $n=Mn.default,ge=Cn.ValidatorForm;const z=O($n)(()=>({width:"100%",marginBottom:"16px"})),Ln=()=>{const[e,t]=x.useState({date:new Date});x.useEffect(()=>(ge.addValidationRule("isPasswordMatch",h=>h===e.password),()=>ge.removeValidationRule("isPasswordMatch")),[e.password]);const o=h=>{},r=h=>{h.persist(),t({...e,[h.target.name]:h.target.value})},n=h=>t({...e,date:h}),{username:u,firstName:l,creditCard:p,mobile:f,password:i,confirmPassword:c,gender:d,date:b,email:g}=e;return s.jsx("div",{children:s.jsxs(ge,{onSubmit:o,onError:()=>null,children:[s.jsxs(pe,{container:!0,spacing:6,children:[s.jsxs(pe,{item:!0,lg:6,md:6,sm:12,xs:12,sx:{mt:2},children:[s.jsx(z,{type:"text",name:"username",id:"standard-basic",value:u||"",onChange:r,errorMessages:["this field is required"],label:"Username (Min length 4, Max length 9)",validators:["required","minStringLength: 4","maxStringLength: 9"]}),s.jsx(z,{type:"text",name:"firstName",label:"First Name",onChange:r,value:l||"",validators:["required"],errorMessages:["this field is required"]}),s.jsx(z,{type:"email",name:"email",label:"Email",value:g||"",onChange:r,validators:["required","isEmail"],errorMessages:["this field is required","email is not valid"]}),s.jsx(ur,{dateAdapter:pr,children:s.jsx(sr,{value:b,onChange:n,renderInput:h=>s.jsx(z,{...h,label:"Date picker",id:"mui-pickers-date",sx:{mb:2,width:"100%"}})})}),s.jsx(z,{sx:{mb:4},type:"number",name:"creditCard",label:"Credit Card",onChange:r,value:p||"",errorMessages:["this field is required"],validators:["required","minStringLength:16","maxStringLength: 16"]})]}),s.jsxs(pe,{item:!0,lg:6,md:6,sm:12,xs:12,sx:{mt:2},children:[s.jsx(z,{type:"text",name:"mobile",value:f||"",label:"Mobile Nubmer",onChange:r,validators:["required"],errorMessages:["this field is required"]}),s.jsx(z,{name:"password",type:"password",label:"Password",value:i||"",onChange:r,validators:["required"],errorMessages:["this field is required"]}),s.jsx(z,{type:"password",name:"confirmPassword",onChange:r,label:"Confirm Password",value:c||"",validators:["required","isPasswordMatch"],errorMessages:["this field is required","password didn't match"]}),s.jsxs(_t,{row:!0,name:"gender",sx:{mb:2},value:d||"",onChange:r,children:[s.jsx(oe,{value:"Male",label:"Male",labelPlacement:"end",control:s.jsx(fe,{color:"secondary"})}),s.jsx(oe,{value:"Female",label:"Female",labelPlacement:"end",control:s.jsx(fe,{color:"secondary"})}),s.jsx(oe,{value:"Others",label:"Others",labelPlacement:"end",control:s.jsx(fe,{color:"secondary"})})]}),s.jsx(oe,{control:s.jsx(Ft,{}),label:"I have read and agree to the terms of service."})]})]}),s.jsxs(ie,{color:"primary",variant:"contained",type:"submit",children:[s.jsx(mt,{children:"send"}),s.jsx(vt,{sx:{pl:1,textTransform:"capitalize"},children:"Submit"})]})]})})};function Dn(){return["Select master blaster campaign settings","Create an ad group","Create an ad"]}function En(e){switch(e){case 0:return"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus non tincidunt velit. Quisque laoreet, lectus id tincidunt fringilla, eros est bibendum felis, sit amet lobortis ante sem non diam. Donec viverra a nisi eu eleifend. Mauris vel leo tempor, commodo felis in, sollicitudin velit. Nullam eu sem id lacus venenatis commodo nec a lacus. Donec in egestas justo. Quisque elementum diam felis. In a ullamcorper leo. In lorem urna, mollis in feugiat sed, aliquet nec diam. Mauris tempus dui at gravida pharetra. Etiam nec lectus metus. In dapibus placerat consequat. Quisque ornare ut lacus ac tempus. Pellentesque sed ornare tellus. Curabitur dictum turpis quam, at feugiat mi elementum a.";case 1:return"Integer euismod dapibus sapien, a interdum augue blandit eget. Donec pellentesque, sapien iaculis dignissim sagittis, risus nulla auctor eros, sed suscipit eros mauris id lorem. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer porttitor mauris egestas consequat molestie. Nam egestas iaculis malesuada. Praesent sagittis venenatis finibus. Praesent porttitor ipsum et sapien cursus, eu mattis augue ornare.";case 2:return"In laoreet, dui vel tristique facilisis, velit dui dictum diam, nec feugiat mi mauris eu nunc. Nullam auctor eget ante ac laoreet. Aliquam et ante ligula. Nam imperdiet augue magna, ac tincidunt neque mollis nec. Sed eu nunc sit amet tellus commodo elementum non sit amet sem. Etiam ipsum nibh, rutrum vel ultrices in, vulputate ac dolor. Morbi dictum lectus id orci dapibus, et faucibus nulla viverra. Nulla consectetur ex vitae pretium vehicula. Quisque varius tempor erat et semper. Vivamus consectetur, eros sit amet ornare facilisis, nulla felis laoreet tortor, sit amet egestas risus ipsum sed eros.";default:return"Aenean arcu ligula, porttitor id neque imperdiet, congue convallis erat. Integer libero sapien, convallis a vulputate vel, pretium vulputate metus. Donec leo justo, viverra ut tempor commodo, laoreet eu velit. Donec vel sem quis velit pharetra elementum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam in commodo mauris. Ut iaculis ipsum velit."}}function On(){const[e,t]=ht.useState(0),o=Dn(),r=()=>t(l=>l+1),n=()=>t(l=>l-1),u=()=>t(0);return s.jsxs(Y,{children:[s.jsx(nr,{activeStep:e,alternativeLabel:!0,children:o.map(l=>s.jsx(Tt,{children:s.jsx(Bt,{children:l})},l))}),s.jsx(Y,{mt:4,children:e===o.length?s.jsxs(Y,{children:[s.jsx(Me,{children:"All steps completed"}),s.jsx(ie,{sx:{mt:2},variant:"contained",color:"secondary",onClick:u,children:"Reset"})]}):s.jsxs(Y,{children:[s.jsx(Me,{children:En(e)}),s.jsxs(Y,{pt:2,children:[s.jsx(ie,{variant:"contained",color:"secondary",disabled:e===0,onClick:n,children:"Back"}),s.jsx(ie,{sx:{ml:2},variant:"contained",color:"primary",onClick:r,children:e===o.length-1?"Finish":"Next"})]})]})})]})}const Vn=bt("div")(({theme:e})=>({margin:"30px",[e.breakpoints.down("sm")]:{margin:"16px"},"& .breadcrumb":{marginBottom:"30px",[e.breakpoints.down("sm")]:{marginBottom:"16px"}}})),Gn=()=>s.jsxs(Vn,{children:[s.jsx(gt,{className:"breadcrumb",children:s.jsx(yt,{routeSegments:[{name:"Material",path:"/material"},{name:"Form"}]})}),s.jsxs(St,{spacing:3,children:[s.jsx($e,{title:"Simple Form",children:s.jsx(Ln,{})}),s.jsx($e,{title:"stepper form",children:s.jsx(On,{})})]})]});export{Gn as default};