Signed-off-by: Benjamin Perez <benjamin@bexsoft.net> Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[3141,1427,8173,5415,7521,2358],{3579:function(e,r,t){var o=t(64836);r.Z=void 0;var n=o(t(45649)),a=t(80184),i=(0,n.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye");r.Z=i},20165:function(e,r,t){var o=t(64836);r.Z=void 0;var n=o(t(45649)),a=t(80184),i=(0,n.default)((0,a.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");r.Z=i},93840:function(e,r,t){var o=t(72791).createContext(void 0);r.Z=o},76147:function(e,r,t){function o(e){var r=e.props,t=e.states,o=e.muiFormControl;return t.reduce((function(e,t){return e[t]=r[t],o&&"undefined"===typeof r[t]&&(e[t]=o[t]),e}),{})}t.d(r,{Z:function(){return o}})},52930:function(e,r,t){t.d(r,{Z:function(){return a}});var o=t(72791),n=t(93840);function a(){return o.useContext(n.Z)}},17133:function(e,r,t){var o=t(4942),n=t(63366),a=t(87462),i=t(72791),s=t(28182),l=t(94419),c=t(76147),d=t(52930),u=t(14036),p=t(31402),f=t(66934),v=t(10843),m=t(80184),h=["children","className","color","component","disabled","error","filled","focused","required"],Z=(0,f.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,r){var t=e.ownerState;return(0,a.Z)({},r.root,"secondary"===t.color&&r.colorSecondary,t.filled&&r.filled)}})((function(e){var r,t=e.theme,n=e.ownerState;return(0,a.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,(r={lineHeight:"1.4375em",padding:0,position:"relative"},(0,o.Z)(r,"&.".concat(v.Z.focused),{color:(t.vars||t).palette[n.color].main}),(0,o.Z)(r,"&.".concat(v.Z.disabled),{color:(t.vars||t).palette.text.disabled}),(0,o.Z)(r,"&.".concat(v.Z.error),{color:(t.vars||t).palette.error.main}),r))})),b=(0,f.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,r){return r.asterisk}})((function(e){var r=e.theme;return(0,o.Z)({},"&.".concat(v.Z.error),{color:(r.vars||r).palette.error.main})})),g=i.forwardRef((function(e,r){var t=(0,p.Z)({props:e,name:"MuiFormLabel"}),o=t.children,i=t.className,f=t.component,g=void 0===f?"label":f,x=(0,n.Z)(t,h),y=(0,d.Z)(),C=(0,c.Z)({props:t,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),k=(0,a.Z)({},t,{color:C.color||"primary",component:g,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required}),w=function(e){var r=e.classes,t=e.color,o=e.focused,n=e.disabled,a=e.error,i=e.filled,s=e.required,c={root:["root","color".concat((0,u.Z)(t)),n&&"disabled",a&&"error",i&&"filled",o&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,l.Z)(c,v.M,r)}(k);return(0,m.jsxs)(Z,(0,a.Z)({as:g,ownerState:k,className:(0,s.Z)(w.root,i),ref:r},x,{children:[o,C.required&&(0,m.jsxs)(b,{ownerState:k,"aria-hidden":!0,className:w.asterisk,children:["\u2009","*"]})]}))}));r.Z=g},10843:function(e,r,t){t.d(r,{M:function(){return a}});var o=t(75878),n=t(21217);function a(e){return(0,n.Z)("MuiFormLabel",e)}var i=(0,o.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);r.Z=i},30829:function(e,r,t){t.d(r,{Z:function(){return y}});var o=t(4942),n=t(63366),a=t(87462),i=t(72791),s=t(94419),l=t(28182),c=t(76147),d=t(52930),u=t(17133),p=t(10843),f=t(31402),v=t(66934),m=t(75878),h=t(21217);function Z(e){return(0,h.Z)("MuiInputLabel",e)}(0,m.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var b=t(80184),g=["disableAnimation","margin","shrink","variant","className"],x=(0,v.ZP)(u.Z,{shouldForwardProp:function(e){return(0,v.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,r){var t=e.ownerState;return[(0,o.Z)({},"& .".concat(p.Z.asterisk),r.asterisk),r.root,t.formControl&&r.formControl,"small"===t.size&&r.sizeSmall,t.shrink&&r.shrink,!t.disableAnimation&&r.animated,r[t.variant]]}})((function(e){var r=e.theme,t=e.ownerState;return(0,a.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:r.transitions.create(["color","transform","max-width"],{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut})},"filled"===t.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,a.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),y=i.forwardRef((function(e,r){var t=(0,f.Z)({name:"MuiInputLabel",props:e}),o=t.disableAnimation,i=void 0!==o&&o,u=t.shrink,p=t.className,v=(0,n.Z)(t,g),m=(0,d.Z)(),h=u;"undefined"===typeof h&&m&&(h=m.filled||m.focused||m.adornedStart);var y=(0,c.Z)({props:t,muiFormControl:m,states:["size","variant","required"]}),C=(0,a.Z)({},t,{disableAnimation:i,formControl:m,shrink:h,size:y.size,variant:y.variant,required:y.required}),k=function(e){var r=e.classes,t=e.formControl,o=e.size,n=e.shrink,i={root:["root",t&&"formControl",!e.disableAnimation&&"animated",n&&"shrink","small"===o&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},l=(0,s.Z)(i,Z,r);return(0,a.Z)({},r,l)}(C);return(0,b.jsx)(x,(0,a.Z)({"data-shrink":h,ownerState:C,ref:r,className:(0,l.Z)(k.root,p)},v,{classes:k}))}))},77865:function(e,r,t){t.d(r,{Z:function(){return M}});var o=t(4942),n=t(63366),a=t(87462),i=t(72791),s=t(28182),l=t(94419),c=t(12065),d=t(66934),u=t(31402),p=t(66199),f=t(95080),v=t(40162),m=t(42071),h=t(75878);var Z=(0,h.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),b=t(96014),g=t(29849),x=t(21217);function y(e){return(0,x.Z)("MuiMenuItem",e)}var C=(0,h.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),k=t(80184),w=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],z=(0,d.ZP)(f.Z,{shouldForwardProp:function(e){return(0,d.FO)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,r){var t=e.ownerState;return[r.root,t.dense&&r.dense,t.divider&&r.divider,!t.disableGutters&&r.gutters]}})((function(e){var r,t=e.theme,n=e.ownerState;return(0,a.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},(r={"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,o.Z)(r,"&.".concat(C.selected),(0,o.Z)({backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)},"&.".concat(C.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)})),(0,o.Z)(r,"&.".concat(C.selected,":hover"),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}),(0,o.Z)(r,"&.".concat(C.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),(0,o.Z)(r,"&.".concat(C.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),(0,o.Z)(r,"& + .".concat(Z.root),{marginTop:t.spacing(1),marginBottom:t.spacing(1)}),(0,o.Z)(r,"& + .".concat(Z.inset),{marginLeft:52}),(0,o.Z)(r,"& .".concat(g.Z.root),{marginTop:0,marginBottom:0}),(0,o.Z)(r,"& .".concat(g.Z.inset),{paddingLeft:36}),(0,o.Z)(r,"& .".concat(b.Z.root),{minWidth:36}),r),!n.dense&&(0,o.Z)({},t.breakpoints.up("sm"),{minHeight:"auto"}),n.dense&&(0,a.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,(0,o.Z)({},"& .".concat(b.Z.root," svg"),{fontSize:"1.25rem"})))})),M=i.forwardRef((function(e,r){var t=(0,u.Z)({props:e,name:"MuiMenuItem"}),o=t.autoFocus,c=void 0!==o&&o,d=t.component,f=void 0===d?"li":d,h=t.dense,Z=void 0!==h&&h,b=t.divider,g=void 0!==b&&b,x=t.disableGutters,C=void 0!==x&&x,M=t.focusVisibleClassName,P=t.role,O=void 0===P?"menuitem":P,S=t.tabIndex,R=t.className,F=(0,n.Z)(t,w),N=i.useContext(p.Z),q=i.useMemo((function(){return{dense:Z||N.dense||!1,disableGutters:C}}),[N.dense,Z,C]),E=i.useRef(null);(0,v.Z)((function(){c&&E.current&&E.current.focus()}),[c]);var I,L=(0,a.Z)({},t,{dense:q.dense,divider:g,disableGutters:C}),T=function(e){var r=e.disabled,t=e.dense,o=e.divider,n=e.disableGutters,i=e.selected,s=e.classes,c={root:["root",t&&"dense",r&&"disabled",!n&&"gutters",o&&"divider",i&&"selected"]},d=(0,l.Z)(c,y,s);return(0,a.Z)({},s,d)}(t),j=(0,m.Z)(E,r);return t.disabled||(I=void 0!==S?S:-1),(0,k.jsx)(p.Z.Provider,{value:q,children:(0,k.jsx)(z,(0,a.Z)({ref:j,role:O,tabIndex:I,component:f,focusVisibleClassName:(0,s.Z)(T.focusVisible,M),className:(0,s.Z)(T.root,R)},F,{ownerState:L,classes:T}))})}))},15473:function(e,r,t){t.d(r,{ZP:function(){return R}});var o=t(29439),n=t(87462),a=t(63366),i=t(72791),s=t(28182),l=t(94419),c=t(66934),d=t(31402),u=t(83199),p=t(98301),f=t(17602),v=t(42071),m=t(13208),h=t(73590),Z=t(35527),b=t(75878),g=t(21217);function x(e){return(0,g.Z)("MuiPopover",e)}(0,b.Z)("MuiPopover",["root","paper"]);var y=t(80184),C=["onEntering"],k=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function w(e,r){var t=0;return"number"===typeof r?t=r:"center"===r?t=e.height/2:"bottom"===r&&(t=e.height),t}function z(e,r){var t=0;return"number"===typeof r?t=r:"center"===r?t=e.width/2:"right"===r&&(t=e.width),t}function M(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function P(e){return"function"===typeof e?e():e}var O=(0,c.ZP)(h.Z,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,r){return r.root}})({}),S=(0,c.ZP)(Z.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,r){return r.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),R=i.forwardRef((function(e,r){var t=(0,d.Z)({props:e,name:"MuiPopover"}),c=t.action,h=t.anchorEl,Z=t.anchorOrigin,b=void 0===Z?{vertical:"top",horizontal:"left"}:Z,g=t.anchorPosition,R=t.anchorReference,F=void 0===R?"anchorEl":R,N=t.children,q=t.className,E=t.container,I=t.elevation,L=void 0===I?8:I,T=t.marginThreshold,j=void 0===T?16:T,W=t.open,A=t.PaperProps,V=void 0===A?{}:A,H=t.transformOrigin,B=void 0===H?{vertical:"top",horizontal:"left"}:H,G=t.TransitionComponent,D=void 0===G?m.Z:G,_=t.transitionDuration,X=void 0===_?"auto":_,Y=t.TransitionProps,J=(void 0===Y?{}:Y).onEntering,K=(0,a.Z)(t.TransitionProps,C),Q=(0,a.Z)(t,k),U=i.useRef(),$=(0,v.Z)(U,V.ref),ee=(0,n.Z)({},t,{anchorOrigin:b,anchorReference:F,elevation:L,marginThreshold:j,PaperProps:V,transformOrigin:B,TransitionComponent:D,transitionDuration:X,TransitionProps:K}),re=function(e){var r=e.classes;return(0,l.Z)({root:["root"],paper:["paper"]},x,r)}(ee),te=i.useCallback((function(){if("anchorPosition"===F)return g;var e=P(h),r=(e&&1===e.nodeType?e:(0,p.Z)(U.current).body).getBoundingClientRect();return{top:r.top+w(r,b.vertical),left:r.left+z(r,b.horizontal)}}),[h,b.horizontal,b.vertical,g,F]),oe=i.useCallback((function(e){return{vertical:w(e,B.vertical),horizontal:z(e,B.horizontal)}}),[B.horizontal,B.vertical]),ne=i.useCallback((function(e){var r={width:e.offsetWidth,height:e.offsetHeight},t=oe(r);if("none"===F)return{top:null,left:null,transformOrigin:M(t)};var o=te(),n=o.top-t.vertical,a=o.left-t.horizontal,i=n+r.height,s=a+r.width,l=(0,f.Z)(P(h)),c=l.innerHeight-j,d=l.innerWidth-j;if(n<j){var u=n-j;n-=u,t.vertical+=u}else if(i>c){var p=i-c;n-=p,t.vertical+=p}if(a<j){var v=a-j;a-=v,t.horizontal+=v}else if(s>d){var m=s-d;a-=m,t.horizontal+=m}return{top:"".concat(Math.round(n),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:M(t)}}),[h,F,te,oe,j]),ae=i.useState(W),ie=(0,o.Z)(ae,2),se=ie[0],le=ie[1],ce=i.useCallback((function(){var e=U.current;if(e){var r=ne(e);null!==r.top&&(e.style.top=r.top),null!==r.left&&(e.style.left=r.left),e.style.transformOrigin=r.transformOrigin,le(!0)}}),[ne]);i.useEffect((function(){W&&ce()})),i.useImperativeHandle(c,(function(){return W?{updatePosition:function(){ce()}}:null}),[W,ce]),i.useEffect((function(){if(W){var e=(0,u.Z)((function(){ce()})),r=(0,f.Z)(h);return r.addEventListener("resize",e),function(){e.clear(),r.removeEventListener("resize",e)}}}),[h,W,ce]);var de=X;"auto"!==X||D.muiSupportAuto||(de=void 0);var ue=E||(h?(0,p.Z)(P(h)).body:void 0);return(0,y.jsx)(O,(0,n.Z)({BackdropProps:{invisible:!0},className:(0,s.Z)(re.root,q),container:ue,open:W,ref:r,ownerState:ee},Q,{children:(0,y.jsx)(D,(0,n.Z)({appear:!0,in:W,onEntering:function(e,r){J&&J(e,r),ce()},onExited:function(){le(!1)},timeout:de},K,{children:(0,y.jsx)(S,(0,n.Z)({elevation:L},V,{ref:$,className:(0,s.Z)(re.paper,V.className)},se?void 0:{style:(0,n.Z)({},V.style,{opacity:0})},{ownerState:ee,children:N}))}))}))}))}}]);
|
|
//# sourceMappingURL=3141.5ca7fbda.chunk.js.map
|