Files
Express_console_build/build/static/js/8488.66789285.chunk.js

1 line
14 KiB
JavaScript

"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8488],{12010:(t,e,r)=>{r.d(e,{A:()=>Q});var i=r(57528),s=r(84849),n=r(27326),o=r(85672),a=r(72574),u=r(25234),c=r(8913),l=r(16775),h=r(38009),d=r(60308),p=r(37300),f=r(10644);function v(t){return(0,f.Ay)("MuiCircularProgress",t)}(0,p.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var A,b,m,y,g=r(65908);const O=["className","color","disableShrink","size","style","thickness","value","variant"];let P,w,k,x;const C=44,S=(0,c.i7)(P||(P=A||(A=(0,i.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,c.i7)(w||(w=b||(b=(0,i.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),M=(0,d.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e["color".concat((0,l.A)(r.color))]]}})((t=>{let{ownerState:e,theme:r}=t;return(0,n.A)({display:"inline-block"},"determinate"===e.variant&&{transition:r.transitions.create("transform")},"inherit"!==e.color&&{color:(r.vars||r).palette[e.color].main})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&(0,c.AH)(k||(k=m||(m=(0,i.A)(["\n animation: "," 1.4s linear infinite;\n "]))),S)})),j=(0,d.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),E=(0,d.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e["circle".concat((0,l.A)(r.variant))],r.disableShrink&&e.circleDisableShrink]}})((t=>{let{ownerState:e,theme:r}=t;return(0,n.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&!e.disableShrink&&(0,c.AH)(x||(x=y||(y=(0,i.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),Q=o.forwardRef((function(t,e){const r=(0,h.b)({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:c=!1,size:d=40,style:p,thickness:f=3.6,value:A=0,variant:b="indeterminate"}=r,m=(0,s.A)(r,O),y=(0,n.A)({},r,{color:o,disableShrink:c,size:d,thickness:f,value:A,variant:b}),P=(t=>{const{classes:e,variant:r,color:i,disableShrink:s}=t,n={root:["root",r,"color".concat((0,l.A)(i))],svg:["svg"],circle:["circle","circle".concat((0,l.A)(r)),s&&"circleDisableShrink"]};return(0,u.A)(n,v,e)})(y),w={},k={},x={};if("determinate"===b){const t=2*Math.PI*((C-f)/2);w.strokeDasharray=t.toFixed(3),x["aria-valuenow"]=Math.round(A),w.strokeDashoffset="".concat(((100-A)/100*t).toFixed(3),"px"),k.transform="rotate(-90deg)"}return(0,g.jsx)(M,(0,n.A)({className:(0,a.A)(P.root,i),style:(0,n.A)({width:d,height:d},k,p),ownerState:y,ref:e,role:"progressbar"},x,m,{children:(0,g.jsx)(j,{className:P.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,g.jsx)(E,{className:P.circle,style:w,ownerState:y,cx:C,cy:C,r:(C-f)/2,fill:"none",strokeWidth:f})})}))}))},13437:(t,e,r)=>{r.d(e,{p:()=>n});var i=r(91323),s=r(73413);const n=(0,i.T7)((function(t){return new s.Control.Zoom(t)}))},19283:(t,e,r)=>{r.d(e,{z:()=>a});var i=r(91323),s=r(81501),n=r(73413),o=r(85672);const a=(0,i.wk)((function(t,e){const r=new n.Popup(t,e.overlayContainer);return(0,s.Q)(r,e)}),(function(t,e,r,i){let{position:s}=r;(0,o.useEffect)((function(){const{instance:r}=t;function n(t){t.popup===r&&(r.update(),i(!0))}function o(t){t.popup===r&&i(!1)}return e.map.on({popupopen:n,popupclose:o}),null==e.overlayContainer?(null!=s&&r.setLatLng(s),r.openOn(e.map)):e.overlayContainer.bindPopup(r),function(){var t;e.map.off({popupopen:n,popupclose:o}),null===(t=e.overlayContainer)||void 0===t||t.unbindPopup(),e.map.removeLayer(r)}}),[t,e,i,s])}))},38965:(t,e,r)=>{r.d(e,{ko:()=>s});var i=r(12414);r(85672);function s(){return(0,i.U$)().map}},41033:(t,e,r)=>{r.d(e,{q:()=>u});var i=r(22555),s=r(48149),n=r(59949),o=class extends s.${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,i.A)((0,i.A)({},t),{},{behavior:(0,n.PL)()}),e)}getOptimisticResult(t){return t.behavior=(0,n.PL)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch((0,i.A)((0,i.A)({},t),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch((0,i.A)((0,i.A)({},t),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){var r,s,o,a;const{state:u}=t,c=super.createResult(t,e),{isFetching:l,isRefetching:h}=c,d=l&&"forward"===(null===(r=u.fetchMeta)||void 0===r||null===(s=r.fetchMore)||void 0===s?void 0:s.direction),p=l&&"backward"===(null===(o=u.fetchMeta)||void 0===o||null===(a=o.fetchMore)||void 0===a?void 0:a.direction);return(0,i.A)((0,i.A)({},c),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(e,u.data),hasPreviousPage:(0,n.RQ)(e,u.data),isFetchingNextPage:d,isFetchingPreviousPage:p,isRefetching:h&&!d&&!p})}},a=r(59363);function u(t,e){return(0,a.t)(t,o,e)}},68220:(t,e,r)=>{r.d(e,{n:()=>P});var i,s,n,o,a,u,c=r(22555),l=r(85672),h=r(4473),d=r(68341),p=r(9600),f=r(86547),v=r(30138),A=r(90010),b=(i=(0,d.A)("client"),s=(0,d.A)("currentResult"),n=(0,d.A)("currentMutation"),o=(0,d.A)("mutateOptions"),a=(0,d.A)("updateResult"),u=(0,d.A)("notify"),class extends v.Q{constructor(t,e){super(),Object.defineProperty(this,u,{value:y}),Object.defineProperty(this,a,{value:m}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),(0,h.A)(this,s)[s]=void 0,(0,h.A)(this,i)[i]=t,this.setOptions(e),this.bindMethods(),(0,h.A)(this,a)[a]()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const r=this.options;this.options=(0,h.A)(this,i)[i].defaultMutationOptions(t),(0,A.f8)(r,this.options)||(0,h.A)(this,i)[i].getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,h.A)(this,n)[n],observer:this}),null===(e=(0,h.A)(this,n)[n])||void 0===e||e.setOptions(this.options),null!==r&&void 0!==r&&r.mutationKey&&this.options.mutationKey&&(0,A.EN)(r.mutationKey)!==(0,A.EN)(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var t;this.hasListeners()||(null===(t=(0,h.A)(this,n)[n])||void 0===t||t.removeObserver(this))}onMutationUpdate(t){(0,h.A)(this,a)[a](),(0,h.A)(this,u)[u](t)}getCurrentResult(){return(0,h.A)(this,s)[s]}reset(){var t;null===(t=(0,h.A)(this,n)[n])||void 0===t||t.removeObserver(this),(0,h.A)(this,n)[n]=void 0,(0,h.A)(this,a)[a](),(0,h.A)(this,u)[u]()}mutate(t,e){var r;return(0,h.A)(this,o)[o]=e,null===(r=(0,h.A)(this,n)[n])||void 0===r||r.removeObserver(this),(0,h.A)(this,n)[n]=(0,h.A)(this,i)[i].getMutationCache().build((0,h.A)(this,i)[i],this.options),(0,h.A)(this,n)[n].addObserver(this),(0,h.A)(this,n)[n].execute(t)}});function m(){var t,e;const r=null!==(t=null===(e=(0,h.A)(this,n)[n])||void 0===e?void 0:e.state)&&void 0!==t?t:(0,p.$)();(0,h.A)(this,s)[s]=(0,c.A)((0,c.A)({},r),{},{isPending:"pending"===r.status,isSuccess:"success"===r.status,isError:"error"===r.status,isIdle:"idle"===r.status,mutate:this.mutate,reset:this.reset})}function y(t){f.j.batch((()=>{if((0,h.A)(this,o)[o]&&this.hasListeners()){const d=(0,h.A)(this,s)[s].variables,p=(0,h.A)(this,s)[s].context;var e,r,i,n;if("success"===(null===t||void 0===t?void 0:t.type))null===(e=(r=(0,h.A)(this,o)[o]).onSuccess)||void 0===e||e.call(r,t.data,d,p),null===(i=(n=(0,h.A)(this,o)[o]).onSettled)||void 0===i||i.call(n,t.data,null,d,p);else if("error"===(null===t||void 0===t?void 0:t.type)){var a,u,c,l;null===(a=(u=(0,h.A)(this,o)[o]).onError)||void 0===a||a.call(u,t.error,d,p),null===(c=(l=(0,h.A)(this,o)[o]).onSettled)||void 0===c||c.call(l,void 0,t.error,d,p)}}this.listeners.forEach((t=>{t((0,h.A)(this,s)[s])}))}))}var g=r(66299),O=r(42948);function P(t,e){const r=(0,g.jE)(e),[i]=l.useState((()=>new b(r,t)));l.useEffect((()=>{i.setOptions(t)}),[i,t]);const s=l.useSyncExternalStore(l.useCallback((t=>i.subscribe(f.j.batchCalls(t))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),n=l.useCallback(((t,e)=>{i.mutate(t,e).catch(w)}),[i]);if(s.error&&(0,O.G)(i.options.throwOnError,[s.error]))throw s.error;return(0,c.A)((0,c.A)({},s),{},{mutate:n,mutateAsync:s.mutate})}function w(){}},68320:(t,e,r)=>{r.d(e,{I:()=>n});var i=r(48149),s=r(59363);function n(t,e){return(0,s.t)(t,i.$,e)}},69810:(t,e,r)=>{r.d(e,{m:()=>a});var i=r(91323),s=r(81501),n=r(73413),o=r(85672);const a=(0,i.wk)((function(t,e){const r=new n.Tooltip(t,e.overlayContainer);return(0,s.Q)(r,e)}),(function(t,e,r,i){let{position:s}=r;(0,o.useEffect)((function(){const r=e.overlayContainer;if(null==r)return;const{instance:n}=t,o=t=>{t.tooltip===n&&(null!=s&&n.setLatLng(s),n.update(),i(!0))},a=t=>{t.tooltip===n&&i(!1)};return r.on({tooltipopen:o,tooltipclose:a}),r.bindTooltip(n),function(){r.off({tooltipopen:o,tooltipclose:a}),null!=r._map&&r.unbindTooltip()}}),[t,e,i,s])}))},91001:(t,e,r)=>{r.d(e,{R:()=>c});var i=r(53986),s=r(91323),n=r(81501),o=r(12414),a=r(73413);const u=["positions"],c=(0,s.Lt)((function(t,e){let{positions:r}=t,s=(0,i.A)(t,u);const c=new a.Polyline(r,s);return(0,n.Q)(c,(0,o.W4)(e,{overlayContainer:c}))}),(function(t,e,r){e.positions!==r.positions&&t.setLatLngs(e.positions)}))},97448:(t,e,r)=>{r.d(e,{E:()=>q});var i,s,n,o,a,u,c,l,h,d,p,f=r(53986),v=r(85672),A=r(4473),b=r(68341),m=r(86547),y=r(48149),g=r(30138),O=r(90010);function P(t,e){return t.filter((t=>!e.includes(t)))}var w=(i=(0,b.A)("client"),s=(0,b.A)("result"),n=(0,b.A)("queries"),o=(0,b.A)("observers"),a=(0,b.A)("options"),u=(0,b.A)("combinedResult"),c=(0,b.A)("setResult"),l=(0,b.A)("combineResult"),h=(0,b.A)("findMatchingObservers"),d=(0,b.A)("onUpdate"),p=(0,b.A)("notify"),class extends g.Q{constructor(t,e,r){super(),Object.defineProperty(this,p,{value:R}),Object.defineProperty(this,d,{value:S}),Object.defineProperty(this,h,{value:C}),Object.defineProperty(this,l,{value:x}),Object.defineProperty(this,c,{value:k}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),(0,A.A)(this,i)[i]=t,(0,A.A)(this,n)[n]=[],(0,A.A)(this,o)[o]=[],(0,A.A)(this,c)[c]([]),this.setQueries(e,r)}onSubscribe(){1===this.listeners.size&&(0,A.A)(this,o)[o].forEach((t=>{t.subscribe((e=>{(0,A.A)(this,d)[d](t,e)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,(0,A.A)(this,o)[o].forEach((t=>{t.destroy()}))}setQueries(t,e,r){(0,A.A)(this,n)[n]=t,(0,A.A)(this,a)[a]=e,m.j.batch((()=>{const t=(0,A.A)(this,o)[o],e=(0,A.A)(this,h)[h]((0,A.A)(this,n)[n]);e.forEach((t=>t.observer.setOptions(t.defaultedQueryOptions,r)));const i=e.map((t=>t.observer)),s=i.map((t=>t.getCurrentResult())),a=i.some(((e,r)=>e!==t[r]));(t.length!==i.length||a)&&((0,A.A)(this,o)[o]=i,(0,A.A)(this,c)[c](s),this.hasListeners()&&(P(t,i).forEach((t=>{t.destroy()})),P(i,t).forEach((t=>{t.subscribe((e=>{(0,A.A)(this,d)[d](t,e)}))})),(0,A.A)(this,p)[p]()))}))}getCurrentResult(){return(0,A.A)(this,u)[u]}getQueries(){return(0,A.A)(this,o)[o].map((t=>t.getCurrentQuery()))}getObservers(){return(0,A.A)(this,o)[o]}getOptimisticResult(t,e){const r=(0,A.A)(this,h)[h](t),i=r.map((t=>t.observer.getOptimisticResult(t.defaultedQueryOptions)));return[i,t=>(0,A.A)(this,l)[l](null!==t&&void 0!==t?t:i,e),()=>r.map(((t,e)=>{const r=i[e];return t.defaultedQueryOptions.notifyOnChangeProps?r:t.observer.trackResult(r)}))]}});function k(t){var e;(0,A.A)(this,s)[s]=t,(0,A.A)(this,u)[u]=(0,A.A)(this,l)[l](t,null===(e=(0,A.A)(this,a)[a])||void 0===e?void 0:e.combine)}function x(t,e){return e?(0,O.BH)((0,A.A)(this,u)[u],e(t)):t}function C(t){const e=(0,A.A)(this,o)[o],r=new Map(e.map((t=>[t.options.queryHash,t]))),s=t.map((t=>(0,A.A)(this,i)[i].defaultQueryOptions(t))),n=s.flatMap((t=>{const e=r.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]})),a=new Set(n.map((t=>t.defaultedQueryOptions.queryHash))),u=s.filter((t=>!a.has(t.queryHash))),c=t=>{const e=(0,A.A)(this,i)[i].defaultQueryOptions(t),r=(0,A.A)(this,o)[o].find((t=>t.options.queryHash===e.queryHash));return null!==r&&void 0!==r?r:new y.$((0,A.A)(this,i)[i],e)},l=u.map((t=>({defaultedQueryOptions:t,observer:c(t)})));return n.concat(l).sort(((t,e)=>s.indexOf(t.defaultedQueryOptions)-s.indexOf(e.defaultedQueryOptions)))}function S(t,e){const r=(0,A.A)(this,o)[o].indexOf(t);-1!==r&&((0,A.A)(this,c)[c](function(t,e,r){const i=t.slice(0);return i[e]=r,i}((0,A.A)(this,s)[s],r,e)),(0,A.A)(this,p)[p]())}function R(){m.j.batch((()=>{this.listeners.forEach((t=>{t((0,A.A)(this,s)[s])}))}))}var M=r(66299),j=r(89404),E=r(40154),Q=r(98964),L=r(50505);const N=["queries"];function q(t,e){let{queries:r}=t,i=(0,f.A)(t,N);const s=(0,M.jE)(e),n=(0,j.w)(),o=(0,E.h)(),a=v.useMemo((()=>r.map((t=>{const e=s.defaultQueryOptions(t);return e._optimisticResults=n?"isRestoring":"optimistic",e}))),[r,s,n]);a.forEach((t=>{(0,L.tu)(t),(0,Q.LJ)(t,o)})),(0,Q.wZ)(o);const[u]=v.useState((()=>new w(s,a,i))),[c,l,h]=u.getOptimisticResult(a,i.combine);v.useSyncExternalStore(v.useCallback((t=>n?()=>{}:u.subscribe(m.j.batchCalls(t))),[u,n]),(()=>u.getCurrentResult()),(()=>u.getCurrentResult())),v.useEffect((()=>{u.setQueries(a,i,{listeners:!1})}),[a,i,u]);const d=c.some(((t,e)=>(0,L.EU)(a[e],t)))?c.flatMap(((t,e)=>{const r=a[e];if(r){const e=new y.$(s,r);if((0,L.EU)(r,t))return(0,L.iL)(r,e,o);(0,L.nE)(t,n)&&(0,L.iL)(r,e,o)}return[]})):[];if(d.length>0)throw Promise.all(d);const p=c.find(((t,e)=>{const r=a[e];return r&&(0,Q.$1)({result:t,errorResetBoundary:o,throwOnError:r.throwOnError,query:s.getQueryCache().get(r.queryHash)})}));if(null!==p&&void 0!==p&&p.error)throw p.error;return l(h())}}}]);