1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6597],{7762:(t,e,r)=>{"use strict";var n=r(24994);e.A=void 0;var a=n(r(79526)),o=r(44414);e.A=(0,a.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear")},36150:(t,e,r)=>{"use strict";r.d(e,{I:()=>o});var n=r(69347),a=r(1729);function o(t,e){return(0,a.t)(t,n.$,e)}},36220:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,a,o){var i=a.prototype;o.utc=function(t){return new a({date:t,utc:!0,args:arguments})},i.utc=function(e){var r=o(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var c=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var u=i.utcOffset;i.utcOffset=function(n,a){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof n&&(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var a=(""+n[0]).match(r)||["-",0,0],o=a[0],i=60*+a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(n),null===n))return this;var i=Math.abs(n)<=16?60*n:n,s=this;if(a)return s.$offset=i,s.$u=0===n,s;if(0!==n){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(i+c,t)).$offset=i,s.$x.$localOffset=c}else s=this.utc();return s};var l=i.format;i.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=i.diff;i.diff=function(t,e,r){if(t&&this.$u===t.$u)return h.call(this,t,e,r);var n=this.local(),a=o(t).local();return h.call(n,a,e,r)}}}()},39919:(t,e,r)=>{"use strict";r.d(e,{A:()=>x});var n=r(98587),a=r(58168),o=r(9950),i=r(72004),s=r(33136),c=r(3484),u=r(97497),l=r(24184),d=r(89548),h=r(18463),f=r(59254),p=r(64099),g=r(89786),v=r(92770);function m(t,e){return void 0!==e&&void 0!==t&&(Array.isArray(e)?e.indexOf(t)>=0:t===e)}var b=r(44414);const A=["value"],y=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],R=(0,f.Ay)(l.A,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e["size".concat((0,d.A)(r.size))]]}})((t=>{let e,{theme:r,ownerState:n}=t,o="standard"===n.color?r.palette.text.primary:r.palette[n.color].main;return r.vars&&(o="standard"===n.color?r.vars.palette.text.primary:r.vars.palette[n.color].main,e="standard"===n.color?r.vars.palette.text.primaryChannel:r.vars.palette[n.color].mainChannel),(0,a.A)({},r.typography.button,{borderRadius:(r.vars||r).shape.borderRadius,padding:11,border:"1px solid ".concat((r.vars||r).palette.divider),color:(r.vars||r).palette.action.active},n.fullWidth&&{width:"100%"},{["&.".concat(p.A.disabled)]:{color:(r.vars||r).palette.action.disabled,border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)},"&:hover":{textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.X4)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(p.A.selected)]:{color:o,backgroundColor:r.vars?"rgba(".concat(e," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,u.X4)(o,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?"rgba(".concat(e," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,u.X4)(o,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(e," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,u.X4)(o,r.palette.action.selectedOpacity)}}}},"small"===n.size&&{padding:7,fontSize:r.typography.pxToRem(13)},"large"===n.size&&{padding:15,fontSize:r.typography.pxToRem(15)})})),x=o.forwardRef((function(t,e){const r=o.useContext(g.A),{value:u}=r,l=(0,n.A)(r,A),f=o.useContext(v.A),x=(0,s.A)((0,a.A)({},l,{selected:m(t.value,u)}),t),C=(0,h.b)({props:x,name:"MuiToggleButton"}),{children:w,className:B,color:S="standard",disabled:M=!1,disableFocusRipple:$=!1,fullWidth:T=!1,onChange:O,onClick:k,selected:z,size:P="medium",value:D}=C,N=(0,n.A)(C,y),W=(0,a.A)({},C,{color:S,disabled:M,disableFocusRipple:$,fullWidth:T,size:P}),L=(t=>{const{classes:e,fullWidth:r,selected:n,disabled:a,size:o,color:i}=t,s={root:["root",n&&"selected",a&&"disabled",r&&"fullWidth","size".concat((0,d.A)(o)),i]};return(0,c.A)(s,p.J,e)})(W),F=f||"";return(0,b.jsx)(R,(0,a.A)({className:(0,i.A)(l.className,L.root,B,F),disabled:M,focusRipple:!$,ref:e,onClick:t=>{k&&(k(t,D),t.defaultPrevented)||O&&O(t,D)},onChange:O,value:D,ownerState:W,"aria-pressed":z},N,{children:w}))}))},52097:(t,e,r)=>{"use strict";r.d(e,{d7:()=>i});var n=r(9950);function a(t,e,r,a){var o=this,i=(0,n.useRef)(null),s=(0,n.useRef)(0),c=(0,n.useRef)(0),u=(0,n.useRef)(null),l=(0,n.useRef)([]),d=(0,n.useRef)(),h=(0,n.useRef)(),f=(0,n.useRef)(t),p=(0,n.useRef)(!0);f.current=t;var g="undefined"!=typeof window,v=!e&&0!==e&&g;if("function"!=typeof t)throw new TypeError("Expected a function");e=+e||0;var m=!!(r=r||{}).leading,b=!("trailing"in r)||!!r.trailing,A="maxWait"in r,y="debounceOnServer"in r&&!!r.debounceOnServer,R=A?Math.max(+r.maxWait||0,e):null;(0,n.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var x=(0,n.useMemo)((function(){var t=function(t){var e=l.current,r=d.current;return l.current=d.current=null,s.current=t,c.current=c.current||t,h.current=f.current.apply(r,e)},r=function(t,e){v&&cancelAnimationFrame(u.current),u.current=v?requestAnimationFrame(t):setTimeout(t,e)},n=function(t){if(!p.current)return!1;var r=t-i.current;return!i.current||r>=e||r<0||A&&t-s.current>=R},x=function(e){return u.current=null,b&&l.current?t(e):(l.current=d.current=null,h.current)},C=function t(){var a=Date.now();if(m&&c.current===s.current&&w(),n(a))return x(a);if(p.current){var o=e-(a-i.current),u=A?Math.min(o,R-(a-s.current)):o;r(t,u)}},w=function(){a&&a({})},B=function(){if(g||y){var a=Date.now(),c=n(a);if(l.current=[].slice.call(arguments),d.current=o,i.current=a,c){if(!u.current&&p.current)return s.current=i.current,r(C,e),m?t(i.current):h.current;if(A)return r(C,e),t(i.current)}return u.current||r(C,e),h.current}};return B.cancel=function(){u.current&&(v?cancelAnimationFrame(u.current):clearTimeout(u.current)),s.current=0,l.current=i.current=d.current=u.current=null},B.isPending=function(){return!!u.current},B.flush=function(){return u.current?x(Date.now()):h.current},B}),[m,A,e,R,b,v,g,y,a]);return x}function o(t,e){return t===e}function i(t,e,r){var i=r&&r.equalityFn||o,s=(0,n.useRef)(t),c=(0,n.useState)({})[1],u=a((0,n.useCallback)((function(t){s.current=t,c({})}),[c]),e,r,c),l=(0,n.useRef)(t);return i(l.current,t)||(u(t),l.current=t),[s.current,u]}},60010:(t,e,r)=>{"use strict";r.d(e,{q:()=>c});var n=r(89379),a=r(69347),o=r(45247),i=class extends a.${constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions((0,n.A)((0,n.A)({},t),{},{behavior:(0,o.PL)()}),e)}getOptimisticResult(t){return t.behavior=(0,o.PL)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch((0,n.A)((0,n.A)({},t),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch((0,n.A)((0,n.A)({},t),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){var r,a;const{state:i}=t,s=super.createResult(t,e),{isFetching:c,isRefetching:u}=s,l=c&&"forward"===(null===(r=i.fetchMeta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction),d=c&&"backward"===(null===(a=i.fetchMeta)||void 0===a||null===(a=a.fetchMore)||void 0===a?void 0:a.direction);return(0,n.A)((0,n.A)({},s),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.rB)(e,i.data),hasPreviousPage:(0,o.RQ)(e,i.data),isFetchingNextPage:l,isFetchingPreviousPage:d,isRefetching:u&&!l&&!d})}},s=r(1729);function c(t,e){return(0,s.t)(t,i,e)}},64099:(t,e,r)=>{"use strict";r.d(e,{A:()=>i,J:()=>o});var n=r(45558),a=r(1614);function o(t){return(0,a.Ay)("MuiToggleButton",t)}const i=(0,n.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"])},79739:(t,e,r)=>{"use strict";r.d(e,{A:()=>v});var n=r(98587),a=r(58168),o=r(9950),i=r(72004),s=r(3484),c=r(59254),u=r(18463),l=r(45558),d=r(1614);function h(t){return(0,d.Ay)("MuiDialogActions",t)}(0,l.A)("MuiDialogActions",["root","spacing"]);var f=r(44414);const p=["className","disableSpacing"],g=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})((t=>{let{ownerState:e}=t;return(0,a.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=o.forwardRef((function(t,e){const r=(0,u.b)({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:c=!1}=r,l=(0,n.A)(r,p),d=(0,a.A)({},r,{disableSpacing:c}),v=(t=>{const{classes:e,disableSpacing:r}=t,n={root:["root",!r&&"spacing"]};return(0,s.A)(n,h,e)})(d);return(0,f.jsx)(g,(0,a.A)({className:(0,i.A)(v.root,o),ownerState:d,ref:e},l))}))},82917:(t,e,r)=>{"use strict";r.d(e,{A:()=>k});var n=r(57528),a=r(98587),o=r(58168),i=r(9950),s=r(72004),c=r(88283),u=r(3484);function l(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d(t){return parseFloat(t)}var h=r(97497),f=r(59254),p=r(18463),g=r(45558),v=r(1614);function m(t){return(0,v.Ay)("MuiSkeleton",t)}(0,g.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var b,A,y,R,x=r(44414);const C=["animation","className","component","height","style","variant","width"];let w,B,S,M;const $=(0,c.i7)(w||(w=b||(b=(0,n.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),T=(0,c.i7)(B||(B=A||(A=(0,n.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),O=(0,f.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!1!==r.animation&&e[r.animation],r.hasChildren&&e.withChildren,r.hasChildren&&!r.width&&e.fitContent,r.hasChildren&&!r.height&&e.heightAuto]}})((t=>{let{theme:e,ownerState:r}=t;const n=l(e.shape.borderRadius)||"px",a=d(e.shape.borderRadius);return(0,o.A)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,h.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(n,"/").concat(Math.round(a/.6*10)/10).concat(n),"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(e.vars||e).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})}),(t=>{let{ownerState:e}=t;return"pulse"===e.animation&&(0,c.AH)(S||(S=y||(y=(0,n.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),$)}),(t=>{let{ownerState:e,theme:r}=t;return"wave"===e.animation&&(0,c.AH)(M||(M=R||(R=(0,n.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),T,(r.vars||r).palette.action.hover)})),k=i.forwardRef((function(t,e){const r=(0,p.b)({props:t,name:"MuiSkeleton"}),{animation:n="pulse",className:i,component:c="span",height:l,style:d,variant:h="text",width:f}=r,g=(0,a.A)(r,C),v=(0,o.A)({},r,{animation:n,component:c,variant:h,hasChildren:Boolean(g.children)}),b=(t=>{const{classes:e,variant:r,animation:n,hasChildren:a,width:o,height:i}=t,s={root:["root",r,n,a&&"withChildren",a&&!o&&"fitContent",a&&!i&&"heightAuto"]};return(0,u.A)(s,m,e)})(v);return(0,x.jsx)(O,(0,o.A)({as:c,ref:e,className:(0,s.A)(b.root,i),ownerState:v},g,{style:(0,o.A)({width:f,height:l},d)}))}))},89786:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(9950).createContext({})},92770:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(9950).createContext(void 0)},94367:(t,e,r)=>{"use strict";r.d(e,{A:()=>R});var n=r(98587),a=r(58168),o=r(9950),i=r(72004),s=r(3484);var c=r(59254),u=r(18463),l=r(89548),d=r(45558),h=r(1614);function f(t){return(0,h.Ay)("MuiToggleButtonGroup",t)}const p=(0,d.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var g=r(89786),v=r(92770),m=r(64099),b=r(44414);const A=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],y=(0,c.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{["& .".concat(p.grouped)]:e.grouped},{["& .".concat(p.grouped)]:e["grouped".concat((0,l.A)(r.orientation))]},{["& .".concat(p.firstButton)]:e.firstButton},{["& .".concat(p.lastButton)]:e.lastButton},{["& .".concat(p.middleButton)]:e.middleButton},e.root,"vertical"===r.orientation&&e.vertical,r.fullWidth&&e.fullWidth]}})((t=>{let{ownerState:e,theme:r}=t;return(0,a.A)({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{["& .".concat(p.grouped)]:(0,a.A)({},"horizontal"===e.orientation?{["&.".concat(p.selected," + .").concat(p.grouped,".").concat(p.selected)]:{borderLeft:0,marginLeft:0}}:{["&.".concat(p.selected," + .").concat(p.grouped,".").concat(p.selected)]:{borderTop:0,marginTop:0}})},"horizontal"===e.orientation?{["& .".concat(p.firstButton,",& .").concat(p.middleButton)]:{borderTopRightRadius:0,borderBottomRightRadius:0},["& .".concat(p.lastButton,",& .").concat(p.middleButton)]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{["& .".concat(p.firstButton,",& .").concat(p.middleButton)]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},["& .".concat(p.lastButton,",& .").concat(p.middleButton)]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===e.orientation?{["& .".concat(p.lastButton,".").concat(m.A.disabled,",& .").concat(p.middleButton,".").concat(m.A.disabled)]:{borderLeft:"1px solid transparent"}}:{["& .".concat(p.lastButton,".").concat(m.A.disabled,",& .").concat(p.middleButton,".").concat(m.A.disabled)]:{borderTop:"1px solid transparent"}})})),R=o.forwardRef((function(t,e){const r=(0,u.b)({props:t,name:"MuiToggleButtonGroup"}),{children:c,className:d,color:h="standard",disabled:p=!1,exclusive:m=!1,fullWidth:R=!1,onChange:x,orientation:C="horizontal",size:w="medium",value:B}=r,S=(0,n.A)(r,A),M=(0,a.A)({},r,{disabled:p,fullWidth:R,orientation:C,size:w}),$=(t=>{const{classes:e,orientation:r,fullWidth:n,disabled:a}=t,o={root:["root","vertical"===r&&"vertical",n&&"fullWidth"],grouped:["grouped","grouped".concat((0,l.A)(r)),a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,s.A)(o,f,e)})(M),T=o.useCallback(((t,e)=>{if(!x)return;const r=B&&B.indexOf(e);let n;B&&r>=0?(n=B.slice(),n.splice(r,1)):n=B?B.concat(e):[e],x(t,n)}),[x,B]),O=o.useCallback(((t,e)=>{x&&x(t,B===e?null:e)}),[x,B]),k=o.useMemo((()=>({className:$.grouped,onChange:m?O:T,value:B,size:w,fullWidth:R,color:h,disabled:p})),[$.grouped,m,O,T,B,w,R,h,p]),z=function(t){return o.Children.toArray(t).filter((t=>o.isValidElement(t)))}(c),P=z.length,D=t=>{const e=0===t,r=t===P-1;return e&&r?"":e?$.firstButton:r?$.lastButton:$.middleButton};return(0,b.jsx)(y,(0,a.A)({role:"group",className:(0,i.A)($.root,d),ref:e,ownerState:M},S,{children:(0,b.jsx)(g.A.Provider,{value:k,children:z.map(((t,e)=>(0,b.jsx)(v.A.Provider,{value:D(e),children:t},e)))})}))}))},97125:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(23235),a=r(44414);const o=(0,n.A)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")}}]); |