Files
Express_console_build/build/static/js/2660.8ec125e1.chunk.js

1 line
15 KiB
JavaScript

"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2660],{2660:(e,t,n)=>{n.d(t,{A:()=>C});var o,r=n(98587),i=n(58168),l=n(9950),a=n(3484),d=n(59254),s=n(19608),u=n(44414);const c=["children","classes","className","label","notched"],p=(0,d.Ay)("fieldset",{shouldForwardProp:s.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),m=(0,d.Ay)("legend",{shouldForwardProp:s.A})((e=>{let{ownerState:t,theme:n}=e;return(0,i.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,i.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var h=n(39766),f=n(68624),b=n(79229),A=n(22302),g=n(18463);const y=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],v=(0,d.Ay)(A.Sh,{shouldForwardProp:e=>(0,s.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:A.WC})((e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,i.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(b.A.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):o}},["&.".concat(b.A.focused," .").concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat(b.A.error," .").concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(b.A.disabled," .").concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,i.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),w=(0,d.Ay)((function(e){const{className:t,label:n,notched:l}=e,a=(0,r.A)(e,c),d=null!=n&&""!==n,s=(0,i.A)({},e,{notched:l,withLabel:d});return(0,u.jsx)(p,(0,i.A)({"aria-hidden":!0,className:t,ownerState:s},a,{children:(0,u.jsx)(m,{ownerState:s,children:d?(0,u.jsx)("span",{children:n}):o||(o=(0,u.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),x=(0,d.Ay)(A.f3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:A.Oj})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),S=l.forwardRef((function(e,t){var n,o,d,s,c;const p=(0,g.b)({props:e,name:"MuiOutlinedInput"}),{components:m={},fullWidth:S=!1,inputComponent:C="input",label:R,multiline:k=!1,notched:O,slots:z={},type:W="text"}=p,F=(0,r.A)(p,y),B=(e=>{const{classes:t}=e,n=(0,a.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},b.v,t);return(0,i.A)({},t,n)})(p),I=(0,h.A)(),L=(0,f.A)({props:p,muiFormControl:I,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M=(0,i.A)({},p,{color:L.color||"primary",disabled:L.disabled,error:L.error,focused:L.focused,formControl:I,fullWidth:S,hiddenLabel:L.hiddenLabel,multiline:k,size:L.size,type:W}),j=null!=(n=null!=(o=z.root)?o:m.Root)?n:v,N=null!=(d=null!=(s=z.input)?s:m.Input)?d:x;return(0,u.jsx)(A.Ay,(0,i.A)({slots:{root:j,input:N},renderSuffix:e=>(0,u.jsx)(w,{ownerState:M,className:B.notchedOutline,label:null!=R&&""!==R&&L.required?c||(c=(0,u.jsxs)(l.Fragment,{children:[R,"\u2009","*"]})):R,notched:"undefined"!==typeof O?O:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:S,inputComponent:C,multiline:k,ref:t,type:W},F,{classes:(0,i.A)({},B,{notchedOutline:null})}))}));S.muiName="Input";const C=S},15866:(e,t,n)=>{n.d(t,{A:()=>o});const o=n(9950).createContext(void 0)},22302:(e,t,n)=>{n.d(t,{f3:()=>M,Sh:()=>L,Ay:()=>N,Oj:()=>I,WC:()=>B});var o=n(98587),r=n(58168),i=n(37750),l=n(9950),a=n(72004),d=n(3484),s=n(52014),u=n(49456),c=n(89222),p=n(95034),m=n(97654),h=n(44414);const f=["onChange","maxRows","minRows","style","value"];function b(e){return parseInt(e,10)||0}const A={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const g=l.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:a=1,style:d,value:s}=e,g=(0,o.A)(e,f),{current:y}=l.useRef(null!=s),v=l.useRef(null),w=(0,u.A)(t,v),x=l.useRef(null),S=l.useRef(null),C=l.useCallback((()=>{const t=v.current,n=(0,c.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const o=S.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const r=n.boxSizing,l=b(n.paddingBottom)+b(n.paddingTop),d=b(n.borderBottomWidth)+b(n.borderTopWidth),s=o.scrollHeight;o.value="x";const u=o.scrollHeight;let p=s;a&&(p=Math.max(Number(a)*u,p)),i&&(p=Math.min(Number(i)*u,p)),p=Math.max(p,u);return{outerHeightStyle:p+("border-box"===r?l+d:0),overflowing:Math.abs(p-s)<=1}}),[i,a,e.placeholder]),R=l.useCallback((()=>{const e=C();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,o=v.current;x.current!==n&&(x.current=n,o.style.height="".concat(n,"px")),o.style.overflow=e.overflowing?"hidden":""}),[C]);(0,p.A)((()=>{const e=()=>{R()};let t;const n=(0,m.A)(e),o=v.current,r=(0,c.A)(o);let i;return r.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(o)),()=>{n.clear(),cancelAnimationFrame(t),r.removeEventListener("resize",n),i&&i.disconnect()}}),[C,R]),(0,p.A)((()=>{R()}));return(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)("textarea",(0,r.A)({value:s,onChange:e=>{y||R(),n&&n(e)},ref:w,rows:a,style:d},g)),(0,h.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,r.A)({},A,d,{paddingTop:0,paddingBottom:0})})]})}));var y=n(68624),v=n(15866),w=n(39766),x=n(59254),S=n(18463),C=n(89548),R=n(31506),k=n(79044),O=n(71777),z=n(43317),W=n(63589);const F=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],B=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,C.A)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},I=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},L=(0,x.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:B})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(W.A.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,r.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),M=(0,x.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:I})((e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode,i=(0,r.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),l={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,r.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(W.A.formControl," &")]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},["&.".concat(W.A.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),j=(0,h.jsx)(O.A,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),N=l.forwardRef((function(e,t){var n;const u=(0,S.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:p,autoFocus:m,className:f,components:b={},componentsProps:A={},defaultValue:x,disabled:O,disableInjectingGlobalStyles:B,endAdornment:I,fullWidth:N=!1,id:E,inputComponent:T="input",inputProps:P={},inputRef:H,maxRows:q,minRows:K,multiline:D=!1,name:V,onBlur:_,onChange:U,onClick:G,onFocus:Z,onKeyDown:J,onKeyUp:Q,placeholder:X,readOnly:Y,renderSuffix:$,rows:ee,slotProps:te={},slots:ne={},startAdornment:oe,type:re="text",value:ie}=u,le=(0,o.A)(u,F),ae=null!=P.value?P.value:ie,{current:de}=l.useRef(null!=ae),se=l.useRef(),ue=l.useCallback((e=>{0}),[]),ce=(0,R.A)(se,H,P.ref,ue),[pe,me]=l.useState(!1),he=(0,w.A)();const fe=(0,y.A)({props:u,muiFormControl:he,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=he?he.focused:pe,l.useEffect((()=>{!he&&O&&pe&&(me(!1),_&&_())}),[he,O,pe,_]);const be=he&&he.onFilled,Ae=he&&he.onEmpty,ge=l.useCallback((e=>{(0,z.lq)(e)?be&&be():Ae&&Ae()}),[be,Ae]);(0,k.A)((()=>{de&&ge({value:ae})}),[ae,ge,de]);l.useEffect((()=>{ge(se.current)}),[]);let ye=T,ve=P;D&&"input"===ye&&(ve=ee?(0,r.A)({type:void 0,minRows:ee,maxRows:ee},ve):(0,r.A)({type:void 0,maxRows:q,minRows:K},ve),ye=g);l.useEffect((()=>{he&&he.setAdornedStart(Boolean(oe))}),[he,oe]);const we=(0,r.A)({},u,{color:fe.color||"primary",disabled:fe.disabled,endAdornment:I,error:fe.error,focused:fe.focused,formControl:he,fullWidth:N,hiddenLabel:fe.hiddenLabel,multiline:D,size:fe.size,startAdornment:oe,type:re}),xe=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:l,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:p,size:m,startAdornment:h,type:f}=e,b={root:["root","color".concat((0,C.A)(n)),o&&"disabled",r&&"error",s&&"fullWidth",l&&"focused",a&&"formControl",m&&"medium"!==m&&"size".concat((0,C.A)(m)),c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled","search"===f&&"inputTypeSearch",c&&"inputMultiline","small"===m&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return(0,d.A)(b,W.g,t)})(we),Se=ne.root||b.Root||L,Ce=te.root||A.root||{},Re=ne.input||b.Input||M;return ve=(0,r.A)({},ve,null!=(n=te.input)?n:A.input),(0,h.jsxs)(l.Fragment,{children:[!B&&j,(0,h.jsxs)(Se,(0,r.A)({},Ce,!(0,s.A)(Se)&&{ownerState:(0,r.A)({},we,Ce.ownerState)},{ref:t,onClick:e=>{se.current&&e.currentTarget===e.target&&se.current.focus(),G&&G(e)}},le,{className:(0,a.A)(xe.root,Ce.className,f,Y&&"MuiInputBase-readOnly"),children:[oe,(0,h.jsx)(v.A.Provider,{value:null,children:(0,h.jsx)(Re,(0,r.A)({ownerState:we,"aria-invalid":fe.error,"aria-describedby":c,autoComplete:p,autoFocus:m,defaultValue:x,disabled:fe.disabled,id:E,onAnimationStart:e=>{ge("mui-auto-fill-cancel"===e.animationName?se.current:{value:"x"})},name:V,placeholder:X,readOnly:Y,required:fe.required,rows:ee,value:ae,onKeyDown:J,onKeyUp:Q,type:re},ve,!(0,s.A)(Re)&&{as:ye,ownerState:(0,r.A)({},we,ve.ownerState)},{ref:ce,className:(0,a.A)(xe.input,ve.className,Y&&"MuiInputBase-readOnly"),onBlur:e=>{_&&_(e),P.onBlur&&P.onBlur(e),he&&he.onBlur?he.onBlur(e):me(!1)},onChange:function(e){if(!de){const t=e.target||se.current;if(null==t)throw new Error((0,i.A)(1));ge({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];P.onChange&&P.onChange(e,...n),U&&U(e,...n)},onFocus:e=>{fe.disabled?e.stopPropagation():(Z&&Z(e),P.onFocus&&P.onFocus(e),he&&he.onFocus?he.onFocus(e):me(!0))}}))}),I,$?$((0,r.A)({},fe,{startAdornment:oe})):null]}))]})}))},39766:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(9950),r=n(15866);function i(){return o.useContext(r.A)}},43317:(e,t,n)=>{function o(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(o(e.value)&&""!==e.value||t&&o(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{gr:()=>i,lq:()=>r})},63589:(e,t,n)=>{n.d(t,{A:()=>l,g:()=>i});var o=n(45558),r=n(1614);function i(e){return(0,r.Ay)("MuiInputBase",e)}const l=(0,o.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},68624:(e,t,n)=>{function o(e){let{props:t,states:n,muiFormControl:o}=e;return n.reduce(((e,n)=>(e[n]=t[n],o&&"undefined"===typeof t[n]&&(e[n]=o[n]),e)),{})}n.d(t,{A:()=>o})},79229:(e,t,n)=>{n.d(t,{A:()=>d,v:()=>a});var o=n(58168),r=n(45558),i=n(1614),l=n(63589);function a(e){return(0,i.Ay)("MuiOutlinedInput",e)}const d=(0,o.A)({},l.A,(0,r.A)("MuiOutlinedInput",["root","notchedOutline","input"]))}}]);