1 line
9.7 KiB
JavaScript
1 line
9.7 KiB
JavaScript
"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3256],{50581:function(t,e,n){n.d(e,{D:function(){return q}});var r,i,u,o,s,a,l=n(1413),c=n(29439),f=n(47313),v=n(15671),h=n(43144),Z=n(97326),p=n(60136),d=n(27277),b=n(40101),y=n(72346),m=n(86033),w=n(43889),k=n(13092),O=n(73547),g=n(28127),S=n(27542),C=n(66587),M=(r=new WeakMap,i=new WeakMap,u=new WeakMap,o=new WeakMap,s=new WeakSet,a=new WeakSet,function(t){(0,p.Z)(n,t);var e=(0,d.Z)(n);function n(t,l){var c;return(0,v.Z)(this,n),c=e.call(this),(0,b.Z)((0,Z.Z)(c),a),(0,b.Z)((0,Z.Z)(c),s),(0,y.Z)((0,Z.Z)(c),r,{writable:!0,value:void 0}),(0,y.Z)((0,Z.Z)(c),i,{writable:!0,value:void 0}),(0,y.Z)((0,Z.Z)(c),u,{writable:!0,value:void 0}),(0,y.Z)((0,Z.Z)(c),o,{writable:!0,value:void 0}),(0,k.Z)((0,Z.Z)(c),r,t),c.setOptions(l),c.bindMethods(),(0,w.Z)((0,Z.Z)(c),s,E).call((0,Z.Z)(c)),c}return(0,h.Z)(n,[{key:"bindMethods",value:function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}},{key:"setOptions",value:function(t){var e,n=this.options;(this.options=(0,m.Z)(this,r).defaultMutationOptions(t),(0,C.VS)(this.options,n)||(0,m.Z)(this,r).getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,m.Z)(this,u),observer:this}),null!==n&&void 0!==n&&n.mutationKey&&this.options.mutationKey&&(0,C.Ym)(n.mutationKey)!==(0,C.Ym)(this.options.mutationKey))?this.reset():null===(e=(0,m.Z)(this,u))||void 0===e||e.setOptions(this.options)}},{key:"onUnsubscribe",value:function(){var t;this.hasListeners()||(null===(t=(0,m.Z)(this,u))||void 0===t||t.removeObserver(this))}},{key:"onMutationUpdate",value:function(t){(0,w.Z)(this,s,E).call(this),(0,w.Z)(this,a,Q).call(this,t)}},{key:"getCurrentResult",value:function(){return(0,m.Z)(this,i)}},{key:"reset",value:function(){var t;null===(t=(0,m.Z)(this,u))||void 0===t||t.removeObserver(this),(0,k.Z)(this,u,void 0),(0,w.Z)(this,s,E).call(this),(0,w.Z)(this,a,Q).call(this)}},{key:"mutate",value:function(t,e){var n;return(0,k.Z)(this,o,e),null===(n=(0,m.Z)(this,u))||void 0===n||n.removeObserver(this),(0,k.Z)(this,u,(0,m.Z)(this,r).getMutationCache().build((0,m.Z)(this,r),this.options)),(0,m.Z)(this,u).addObserver(this),(0,m.Z)(this,u).execute(t)}}]),n}(S.l));function E(){var t,e,n=null!==(t=null===(e=(0,m.Z)(this,u))||void 0===e?void 0:e.state)&&void 0!==t?t:(0,O.R)();(0,k.Z)(this,i,(0,l.Z)((0,l.Z)({},n),{},{isPending:"pending"===n.status,isSuccess:"success"===n.status,isError:"error"===n.status,isIdle:"idle"===n.status,mutate:this.mutate,reset:this.reset}))}function Q(t){var e=this;g.V.batch((function(){if((0,m.Z)(e,o)&&e.hasListeners()){var n,r,u,s,a=(0,m.Z)(e,i).variables,l=(0,m.Z)(e,i).context;if("success"===(null===t||void 0===t?void 0:t.type))null===(n=(r=(0,m.Z)(e,o)).onSuccess)||void 0===n||n.call(r,t.data,a,l),null===(u=(s=(0,m.Z)(e,o)).onSettled)||void 0===u||u.call(s,t.data,null,a,l);else if("error"===(null===t||void 0===t?void 0:t.type)){var c,f,v,h;null===(c=(f=(0,m.Z)(e,o)).onError)||void 0===c||c.call(f,t.error,a,l),null===(v=(h=(0,m.Z)(e,o)).onSettled)||void 0===v||v.call(h,void 0,t.error,a,l)}}e.listeners.forEach((function(t){t((0,m.Z)(e,i))}))}))}var W=n(67109),R=n(24772);function q(t,e){var n=(0,W.NL)(e),r=f.useState((function(){return new M(n,t)})),i=(0,c.Z)(r,1)[0];f.useEffect((function(){i.setOptions(t)}),[i,t]);var u=f.useSyncExternalStore(f.useCallback((function(t){return i.subscribe(g.V.batchCalls(t))}),[i]),(function(){return i.getCurrentResult()}),(function(){return i.getCurrentResult()})),o=f.useCallback((function(t,e){i.mutate(t,e).catch(L)}),[i]);if(u.error&&(0,R.L)(i.options.throwOnError,[u.error]))throw u.error;return(0,l.Z)((0,l.Z)({},u),{},{mutate:o,mutateAsync:u.mutate})}function L(){}},71559:function(t,e,n){n.d(e,{h:function(){return J}});var r,i,u,o,s,a,l,c,f,v,h,Z=n(29439),p=n(45987),d=n(47313),b=n(15671),y=n(43144),m=n(97326),w=n(60136),k=n(27277),O=n(40101),g=n(72346),S=n(86033),C=n(43889),M=n(13092),E=n(28127),Q=n(18948),W=n(27542),R=n(66587);function q(t,e){return t.filter((function(t){return!e.includes(t)}))}var L=(r=new WeakMap,i=new WeakMap,u=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakSet,c=new WeakSet,f=new WeakSet,v=new WeakSet,h=new WeakSet,function(t){(0,w.Z)(n,t);var e=(0,k.Z)(n);function n(t,Z,p){var d;return(0,b.Z)(this,n),d=e.call(this),(0,O.Z)((0,m.Z)(d),h),(0,O.Z)((0,m.Z)(d),v),(0,O.Z)((0,m.Z)(d),f),(0,O.Z)((0,m.Z)(d),c),(0,O.Z)((0,m.Z)(d),l),(0,g.Z)((0,m.Z)(d),r,{writable:!0,value:void 0}),(0,g.Z)((0,m.Z)(d),i,{writable:!0,value:void 0}),(0,g.Z)((0,m.Z)(d),u,{writable:!0,value:void 0}),(0,g.Z)((0,m.Z)(d),o,{writable:!0,value:void 0}),(0,g.Z)((0,m.Z)(d),s,{writable:!0,value:void 0}),(0,g.Z)((0,m.Z)(d),a,{writable:!0,value:void 0}),(0,M.Z)((0,m.Z)(d),r,t),(0,M.Z)((0,m.Z)(d),u,[]),(0,M.Z)((0,m.Z)(d),o,[]),(0,C.Z)((0,m.Z)(d),l,x).call((0,m.Z)(d),[]),d.setQueries(Z,p),d}return(0,y.Z)(n,[{key:"onSubscribe",value:function(){var t=this;1===this.listeners.size&&(0,S.Z)(this,o).forEach((function(e){e.subscribe((function(n){(0,C.Z)(t,v,V).call(t,e,n)}))}))}},{key:"onUnsubscribe",value:function(){this.listeners.size||this.destroy()}},{key:"destroy",value:function(){this.listeners=new Set,(0,S.Z)(this,o).forEach((function(t){t.destroy()}))}},{key:"setQueries",value:function(t,e,n){var r=this;(0,M.Z)(this,u,t),(0,M.Z)(this,s,e),E.V.batch((function(){var t=(0,S.Z)(r,o),e=(0,C.Z)(r,f,P).call(r,(0,S.Z)(r,u));e.forEach((function(t){return t.observer.setOptions(t.defaultedQueryOptions,n)}));var i=e.map((function(t){return t.observer})),s=i.map((function(t){return t.getCurrentResult()})),a=i.some((function(e,n){return e!==t[n]}));(t.length!==i.length||a)&&((0,M.Z)(r,o,i),(0,C.Z)(r,l,x).call(r,s),r.hasListeners()&&(q(t,i).forEach((function(t){t.destroy()})),q(i,t).forEach((function(t){t.subscribe((function(e){(0,C.Z)(r,v,V).call(r,t,e)}))})),(0,C.Z)(r,h,_).call(r)))}))}},{key:"getCurrentResult",value:function(){return(0,S.Z)(this,a)}},{key:"getQueries",value:function(){return(0,S.Z)(this,o).map((function(t){return t.getCurrentQuery()}))}},{key:"getObservers",value:function(){return(0,S.Z)(this,o)}},{key:"getOptimisticResult",value:function(t,e){var n=this,r=(0,C.Z)(this,f,P).call(this,t),i=r.map((function(t){return t.observer.getOptimisticResult(t.defaultedQueryOptions)}));return[i,function(t){return(0,C.Z)(n,c,H).call(n,null!==t&&void 0!==t?t:i,e)},function(){return r.map((function(t,e){var n=i[e];return t.defaultedQueryOptions.notifyOnChangeProps?n:t.observer.trackResult(n)}))}]}}]),n}(W.l));function x(t){var e;(0,M.Z)(this,i,t),(0,M.Z)(this,a,(0,C.Z)(this,c,H).call(this,t,null===(e=(0,S.Z)(this,s))||void 0===e?void 0:e.combine))}function H(t,e){return e?(0,R.Q$)((0,S.Z)(this,a),e(t)):t}function P(t){var e=this,n=(0,S.Z)(this,o),i=new Map(n.map((function(t){return[t.options.queryHash,t]}))),u=t.map((function(t){return(0,S.Z)(e,r).defaultQueryOptions(t)})),s=u.flatMap((function(t){var e=i.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]})),a=new Set(s.map((function(t){return t.defaultedQueryOptions.queryHash}))),l=u.filter((function(t){return!a.has(t.queryHash)})),c=function(t){var n=(0,S.Z)(e,r).defaultQueryOptions(t),i=(0,S.Z)(e,o).find((function(t){return t.options.queryHash===n.queryHash}));return null!==i&&void 0!==i?i:new Q.z((0,S.Z)(e,r),n)},f=l.map((function(t){return{defaultedQueryOptions:t,observer:c(t)}}));return s.concat(f).sort((function(t,e){return u.indexOf(t.defaultedQueryOptions)-u.indexOf(e.defaultedQueryOptions)}))}function V(t,e){var n=(0,S.Z)(this,o).indexOf(t);-1!==n&&((0,C.Z)(this,l,x).call(this,function(t,e,n){var r=t.slice(0);return r[e]=n,r}((0,S.Z)(this,i),n,e)),(0,C.Z)(this,h,_).call(this))}function _(){var t=this;E.V.batch((function(){t.listeners.forEach((function(e){e((0,S.Z)(t,i))}))}))}var K=n(67109),z=n(36055),U=n(70048),B=n(27958),N=n(56526),j=["queries"];function J(t,e){var n=t.queries,r=(0,p.Z)(t,j),i=(0,K.NL)(e),u=(0,z.S)(),o=(0,U._)(),s=d.useMemo((function(){return n.map((function(t){var e=i.defaultQueryOptions(t);return e._optimisticResults=u?"isRestoring":"optimistic",e}))}),[n,i,u]);s.forEach((function(t){(0,N.Fb)(t),(0,B.pf)(t,o)})),(0,B.JN)(o);var a=d.useState((function(){return new L(i,s,r)})),l=(0,Z.Z)(a,1)[0],c=l.getOptimisticResult(s,r.combine),f=(0,Z.Z)(c,3),v=f[0],h=f[1],b=f[2];d.useSyncExternalStore(d.useCallback((function(t){return u?function(){}:l.subscribe(E.V.batchCalls(t))}),[l,u]),(function(){return l.getCurrentResult()}),(function(){return l.getCurrentResult()})),d.useEffect((function(){l.setQueries(s,r,{listeners:!1})}),[s,r,l]);var y=v.some((function(t,e){return(0,N.SB)(s[e],t)}))?v.flatMap((function(t,e){var n=s[e];if(n){var r=new Q.z(i,n);if((0,N.SB)(n,t))return(0,N.j8)(n,r,o);(0,N.Z$)(t,u)&&(0,N.j8)(n,r,o)}return[]})):[];if(y.length>0)throw Promise.all(y);var m=v.find((function(t,e){var n=s[e];return n&&(0,B.KJ)({result:t,errorResetBoundary:o,throwOnError:n.throwOnError,query:i.getQueryCache().get(n.queryHash)})}));if(null!==m&&void 0!==m&&m.error)throw m.error;return h(b())}},93854:function(t,e,n){n.d(e,{G:function(){return s}});var r=n(53042),i=n(57828),u=n(87248),o=n(47313),s=(0,r.SO)((function(t,e){var n=new u.Popup(t,e.overlayContainer);return(0,i.O)(n,e)}),(function(t,e,n,r){var i=n.position;(0,o.useEffect)((function(){var n=t.instance;function u(t){t.popup===n&&(n.update(),r(!0))}function o(t){t.popup===n&&r(!1)}return e.map.on({popupopen:u,popupclose:o}),null==e.overlayContainer?(null!=i&&n.setLatLng(i),n.openOn(e.map)):e.overlayContainer.bindPopup(n),function(){var t;e.map.off({popupopen:u,popupclose:o}),null===(t=e.overlayContainer)||void 0===t||t.unbindPopup(),e.map.removeLayer(n)}}),[t,e,r,i])}))},45158:function(t,e,n){n.d(e,{L:function(){return u}});var r=n(53042),i=n(87248),u=(0,r.vm)((function(t){return new i.Control.Zoom(t)}))},84536:function(t,e,n){n.d(e,{Sx:function(){return i}});var r=n(17096);n(47313);function i(){return(0,r.mE)().map}}}]); |