"use strict";(self.webpackChunkweb_toolbox=self.webpackChunkweb_toolbox||[]).push([[788],{73931:(e,t,o)=>{o.d(t,{A:()=>c});var r=o(9950),a=o(82053);const n=(0,o(25131).A)((e=>({title:{wordBreak:"break-word"},titleWithIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:e.spacing(1)},icon:{height:"40px",width:"40px",marginRight:e.spacing(1)}}))),c=e=>{let{title:t,iconType:o}=e;const c=n();return r.createElement("div",{className:c.titleWithIcon},r.createElement(o,{className:c.icon}),r.createElement(a.A,{variant:"h5",className:c.title},t))}},33788:(e,t,o)=>{o.r(t),o.d(t,{default:()=>de});var r=o(9950),a=o(55858),n=o(98587),c=o(58168),l=o(72004),i=o(74061),s=o(39766),d=o(66455),u=o(68483);const p=(0,o(73891).Ay)();var m=o(62161),h=o(80237),f=o(12860),v=o(28286),b=o(47937),g=o(44414);const A=["component","direction","spacing","divider","children","className","useFlexGap"],y=(0,f.A)(),k=p("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function w(e){return(0,m.A)({props:e,name:"MuiStack",defaultTheme:y})}function x(e,t){const o=r.Children.toArray(e).filter(Boolean);return o.reduce(((e,a,n)=>(e.push(a),n<o.length-1&&e.push(r.cloneElement(t,{key:"separator-".concat(n)})),e)),[])}const S=e=>{let{ownerState:t,theme:o}=e,r=(0,c.A)({display:"flex",flexDirection:"column"},(0,v.NI)({theme:o},(0,v.kW)({values:t.direction,breakpoints:o.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,b.LX)(o),a=Object.keys(o.breakpoints.values).reduce(((e,o)=>(("object"===typeof t.spacing&&null!=t.spacing[o]||"object"===typeof t.direction&&null!=t.direction[o])&&(e[o]=!0),e)),{}),n=(0,v.kW)({values:t.direction,base:a}),c=(0,v.kW)({values:t.spacing,base:a});"object"===typeof n&&Object.keys(n).forEach(((e,t,o)=>{if(!n[e]){const r=t>0?n[o[t-1]]:"column";n[e]=r}}));const l=(o,r)=>{return t.useFlexGap?{gap:(0,b._W)(e,o)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((a=r?n[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[a]))]:(0,b._W)(e,o)}};var a};r=(0,d.A)(r,(0,v.NI)({theme:o},c,l))}return r=(0,v.iZ)(o.breakpoints,r),r};var C=o(59254),R=o(48283);const N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=k,useThemeProps:o=w,componentName:a="MuiStack"}=e,s=t(S),d=r.forwardRef((function(e,t){const r=o(e),d=(0,h.A)(r),{component:p="div",direction:m="column",spacing:f=0,divider:v,children:b,className:y,useFlexGap:k=!1}=d,w=(0,n.A)(d,A),S={direction:m,spacing:f,useFlexGap:k},C=(0,i.A)({root:["root"]},(e=>(0,u.Ay)(a,e)),{});return(0,g.jsx)(s,(0,c.A)({as:p,ownerState:S,ref:t,className:(0,l.A)(C.root,y)},w,{children:v?x(b,v):b}))}));return d}({createStyledComponent:(0,C.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,R.A)({props:e,name:"MuiStack"})}),P=N;var F=o(82053),j=o(61676),B=o(80863);function I(e){return(0,u.Ay)("MuiFormControlLabel",e)}const E=(0,B.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var M=o(68624);const T=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],z=(0,C.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{["& .".concat(E.label)]:t.label},t.root,t["labelPlacement".concat((0,j.A)(o.labelPlacement))]]}})((e=>{let{theme:t,ownerState:o}=e;return(0,c.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(E.disabled)]:{cursor:"default"}},"start"===o.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===o.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===o.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(E.label)]:{["&.".concat(E.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),O=(0,C.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(E.error)]:{color:(t.vars||t).palette.error.main}}})),L=r.forwardRef((function(e,t){var o,a;const d=(0,R.A)({props:e,name:"MuiFormControlLabel"}),{className:u,componentsProps:p={},control:m,disabled:h,disableTypography:f,label:v,labelPlacement:b="end",required:A,slotProps:y={}}=d,k=(0,n.A)(d,T),w=(0,s.A)(),x=null!=(o=null!=h?h:m.props.disabled)?o:null==w?void 0:w.disabled,S=null!=A?A:m.props.required,C={disabled:x,required:S};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof m.props[e]&&"undefined"!==typeof d[e]&&(C[e]=d[e])}));const N=(0,M.A)({props:d,muiFormControl:w,states:["error"]}),B=(0,c.A)({},d,{disabled:x,labelPlacement:b,required:S,error:N.error}),E=(e=>{const{classes:t,disabled:o,labelPlacement:r,error:a,required:n}=e,c={root:["root",o&&"disabled","labelPlacement".concat((0,j.A)(r)),a&&"error",n&&"required"],label:["label",o&&"disabled"],asterisk:["asterisk",a&&"error"]};return(0,i.A)(c,I,t)})(B),L=null!=(a=y.typography)?a:p.typography;let _=v;return null==_||_.type===F.A||f||(_=(0,g.jsx)(F.A,(0,c.A)({component:"span"},L,{className:(0,l.A)(E.label,null==L?void 0:L.className),children:_}))),(0,g.jsxs)(z,(0,c.A)({className:(0,l.A)(E.root,u),ownerState:B,ref:t},k,{children:[r.cloneElement(m,C),S?(0,g.jsxs)(P,{display:"block",children:[_,(0,g.jsxs)(O,{ownerState:B,"aria-hidden":!0,className:E.asterisk,children:["\u2009","*"]})]}):_]}))}));var _=o(99269),D=o(19608),q=o(48733),W=o(24184);function X(e){return(0,u.Ay)("PrivateSwitchBase",e)}(0,B.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const G=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],V=(0,C.Ay)(W.A)((e=>{let{ownerState:t}=e;return(0,c.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),H=(0,C.Ay)("input",{shouldForwardProp:D.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Q=r.forwardRef((function(e,t){const{autoFocus:o,checked:r,checkedIcon:a,className:d,defaultChecked:u,disabled:p,disableFocusRipple:m=!1,edge:h=!1,icon:f,id:v,inputProps:b,inputRef:A,name:y,onBlur:k,onChange:w,onFocus:x,readOnly:S,required:C=!1,tabIndex:R,type:N,value:P}=e,F=(0,n.A)(e,G),[B,I]=(0,q.A)({controlled:r,default:Boolean(u),name:"SwitchBase",state:"checked"}),E=(0,s.A)();let M=p;E&&"undefined"===typeof M&&(M=E.disabled);const T="checkbox"===N||"radio"===N,z=(0,c.A)({},e,{checked:B,disabled:M,disableFocusRipple:m,edge:h}),O=(e=>{const{classes:t,checked:o,disabled:r,edge:a}=e,n={root:["root",o&&"checked",r&&"disabled",a&&"edge".concat((0,j.A)(a))],input:["input"]};return(0,i.A)(n,X,t)})(z);return(0,g.jsxs)(V,(0,c.A)({component:"span",className:(0,l.A)(O.root,d),centerRipple:!0,focusRipple:!m,disabled:M,tabIndex:null,role:void 0,onFocus:e=>{x&&x(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{k&&k(e),E&&E.onBlur&&E.onBlur(e)},ownerState:z,ref:t},F,{children:[(0,g.jsx)(H,(0,c.A)({autoFocus:o,checked:r,defaultChecked:u,className:O.input,disabled:M,id:T?v:void 0,name:y,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),w&&w(e,t)},readOnly:S,ref:A,required:C,ownerState:z,tabIndex:R,type:N},"checkbox"===N&&void 0===P?{}:{value:P},b)),B?a:f]}))}));var Z=o(74719);function $(e){return(0,u.Ay)("MuiSwitch",e)}const J=(0,B.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),K=["className","color","edge","size","sx"],U=(0,Z.h)("MuiSwitch"),Y=(0,C.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.edge&&t["edge".concat((0,j.A)(o.edge))],t["size".concat((0,j.A)(o.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(J.thumb)]:{width:16,height:16},["& .".concat(J.switchBase)]:{padding:4,["&.".concat(J.checked)]:{transform:"translateX(16px)"}}}}]}),ee=(0,C.Ay)(Q,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.switchBase,{["& .".concat(J.input)]:t.input},"default"!==o.color&&t["color".concat((0,j.A)(o.color))]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(J.checked)]:{transform:"translateX(20px)"},["&.".concat(J.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(J.checked," + .").concat(J.track)]:{opacity:.5},["&.".concat(J.disabled," + .").concat(J.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(J.input)]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,_.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[o]=e;return{props:{color:o},style:{["&.".concat(J.checked)]:{color:(t.vars||t).palette[o].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[o].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,_.X4)(t.palette[o].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(J.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(o,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,_.a)(t.palette[o].main,.62):(0,_.e$)(t.palette[o].main,.55))}},["&.".concat(J.checked," + .").concat(J.track)]:{backgroundColor:(t.vars||t).palette[o].main}}}}))]}})),te=(0,C.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),oe=(0,C.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),re=r.forwardRef((function(e,t){const o=U({props:e,name:"MuiSwitch"}),{className:r,color:a="primary",edge:s=!1,size:d="medium",sx:u}=o,p=(0,n.A)(o,K),m=(0,c.A)({},o,{color:a,edge:s,size:d}),h=(e=>{const{classes:t,edge:o,size:r,color:a,checked:n,disabled:l}=e,s={root:["root",o&&"edge".concat((0,j.A)(o)),"size".concat((0,j.A)(r))],switchBase:["switchBase","color".concat((0,j.A)(a)),n&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,i.A)(s,$,t);return(0,c.A)({},t,d)})(m),f=(0,g.jsx)(oe,{className:h.thumb,ownerState:m});return(0,g.jsxs)(Y,{className:(0,l.A)(h.root,r),sx:u,ownerState:m,children:[(0,g.jsx)(ee,(0,c.A)({type:"checkbox",icon:f,checkedIcon:f,ref:t,ownerState:m},p,{classes:(0,c.A)({},h,{root:h.switchBase})})),(0,g.jsx)(te,{className:h.track,ownerState:m})]})}));var ae=o(2235),ne=o(25131),ce=o(72772),le=o(73931),ie=o(90038);const se=(0,ne.A)((e=>({root:{margin:e.spacing(2),padding:e.spacing(2)},topDivider:{marginBottom:e.spacing(8)},switch:{display:"flex",flex:1,justifyContent:"center"}}))),de=()=>{const e=se(),{isDark:t,toggleTheme:o}=(0,ie.CX)(),n="Application preferences";return r.createElement(r.Fragment,null,r.createElement(ce.m,{title:n}),r.createElement(ae.A,{className:e.root},r.createElement(le.A,{iconType:a.A,title:n}),r.createElement("div",{className:e.topDivider}),r.createElement("div",{className:e.switch},r.createElement(L,{control:r.createElement(re,{checked:t,onChange:()=>o()}),label:"Activate the Dark theme mode",labelPlacement:"end"}))))}},15866:(e,t,o)=>{o.d(t,{A:()=>r});const r=o(9950).createContext(void 0)},68624:(e,t,o)=>{function r(e){let{props:t,states:o,muiFormControl:r}=e;return o.reduce(((e,o)=>(e[o]=t[o],r&&"undefined"===typeof t[o]&&(e[o]=r[o]),e)),{})}o.d(t,{A:()=>r})},39766:(e,t,o)=>{o.d(t,{A:()=>n});var r=o(9950),a=o(15866);function n(){return r.useContext(a.A)}},73891:(e,t,o)=>{o.d(t,{Ay:()=>g,MC:()=>p});var r=o(58168),a=o(98587),n=o(10116),c=o(66455),l=o(12860),i=o(70505);const s=["ownerState"],d=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.A)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function f(e){let{defaultTheme:t,theme:o,themeId:r}=e;return a=o,0===Object.keys(a).length?t:o[r]||o;var a}function v(e){return e?(t,o)=>o[e]:null}function b(e,t){let{ownerState:o}=t,n=(0,a.A)(t,s);const c="function"===typeof e?e((0,r.A)({ownerState:o},n)):e;if(Array.isArray(c))return c.flatMap((e=>b(e,(0,r.A)({ownerState:o},n))));if(c&&"object"===typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let t=(0,a.A)(c,d);return e.forEach((e=>{let a=!0;"function"===typeof e.props?a=e.props((0,r.A)({ownerState:o},n,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&n[t]!==e.props[t]&&(a=!1)})),a&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,r.A)({ownerState:o},n,o)):e.style))})),t}return c}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:o=m,rootShouldForwardProp:l=p,slotShouldForwardProp:s=p}=e,d=e=>(0,i.A)((0,r.A)({},e,{theme:f((0,r.A)({},e,{defaultTheme:o,themeId:t}))}));return d.__mui_systemSx=!0,function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:m,slot:g,skipVariantsResolver:A,skipSx:y,overridesResolver:k=v(h(g))}=i,w=(0,a.A)(i,u),x=void 0!==A?A:g&&"Root"!==g&&"root"!==g||!1,S=y||!1;let C=p;"Root"===g||"root"===g?C=l:g?C=s:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const R=(0,n.default)(e,(0,r.A)({shouldForwardProp:C,label:undefined},w)),N=e=>"function"===typeof e&&e.__emotion_real!==e||(0,c.Q)(e)?a=>b(e,(0,r.A)({},a,{theme:f({theme:a.theme,defaultTheme:o,themeId:t})})):e,P=function(a){let n=N(a);for(var c=arguments.length,l=new Array(c>1?c-1:0),i=1;i<c;i++)l[i-1]=arguments[i];const s=l?l.map(N):[];m&&k&&s.push((e=>{const a=f((0,r.A)({},e,{defaultTheme:o,themeId:t}));if(!a.components||!a.components[m]||!a.components[m].styleOverrides)return null;const n=a.components[m].styleOverrides,c={};return Object.entries(n).forEach((t=>{let[o,n]=t;c[o]=b(n,(0,r.A)({},e,{theme:a}))})),k(e,c)})),m&&!x&&s.push((e=>{var a;const n=f((0,r.A)({},e,{defaultTheme:o,themeId:t}));return b({variants:null==n||null==(a=n.components)||null==(a=a[m])?void 0:a.variants},(0,r.A)({},e,{theme:n}))})),S||s.push(d);const u=s.length-l.length;if(Array.isArray(a)&&u>0){const e=new Array(u).fill("");n=[...a,...e],n.raw=[...a.raw,...e]}const p=R(n,...s);return e.muiName&&(p.muiName=e.muiName),p};return R.withConfig&&(P.withConfig=R.withConfig),P}}}}]);