Files
dailygrubs_console_build/build/static/js/2305.8d0e1271.chunk.js

1 line
8.9 KiB
JavaScript

"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2305],{63331:function(){},17096:function(n,t,e){e.d(t,{Hb:function(){return i},UO:function(){return a},mE:function(){return f},sj:function(){return o}});var r=e(1413),u=e(47313);function i(n){return Object.freeze({__version:1,map:n})}function o(n,t){return Object.freeze((0,r.Z)((0,r.Z)({},n),t))}var c=(0,u.createContext)(null),a=c.Provider;function f(){var n=(0,u.useContext)(c);if(null==n)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return n}},57828:function(n,t,e){e.d(t,{I:function(){return i},O:function(){return u}});var r=e(47313);function u(n,t,e){return Object.freeze({instance:n,context:t,container:e})}function i(n,t){return null==t?function(t,e){var u=(0,r.useRef)();return u.current||(u.current=n(t,e)),u}:function(e,u){var i=(0,r.useRef)();i.current||(i.current=n(e,u));var o=(0,r.useRef)(e),c=i.current.instance;return(0,r.useEffect)((function(){o.current!==e&&(t(c,e,o.current),o.current=e)}),[c,e,u]),i}}},53042:function(n,t,e){e.d(t,{vm:function(){return m},dW:function(){return g},SO:function(){return y},Au:function(){return b},Lf:function(){return Z}});var r=e(29439),u=e(47313),i=e(1168),o=e(17096);function c(n){function t(t,e){var r=n(t).current,i=r.instance,c=r.context;return(0,u.useImperativeHandle)(e,(function(){return i})),null==t.children?null:u.createElement(o.UO,{value:c},t.children)}return(0,u.forwardRef)(t)}function a(n){function t(t,e){var r=n(t).current.instance;return(0,u.useImperativeHandle)(e,(function(){return r})),null}return(0,u.forwardRef)(t)}var f=e(57828);function l(n,t){var e=(0,u.useRef)(t);(0,u.useEffect)((function(){t!==e.current&&null!=n.attributionControl&&(null!=e.current&&n.attributionControl.removeAttribution(e.current),null!=t&&n.attributionControl.addAttribution(t)),e.current=t}),[n,t])}function s(n,t){var e=(0,u.useRef)();(0,u.useEffect)((function(){return null!=t&&n.instance.on(t),e.current=t,function(){null!=e.current&&n.instance.off(e.current),e.current=null}}),[n,t])}var v=e(4552);function d(n,t){(0,u.useEffect)((function(){var e;return(null!==(e=t.layerContainer)&&void 0!==e?e:t.map).addLayer(n.instance),function(){var e;null===(e=t.layerContainer)||void 0===e||e.removeLayer(n.instance),t.map.removeLayer(n.instance)}}),[t,n])}function p(n){return function(t){var e=(0,o.mE)(),r=n((0,v.q)(t,e),e);return l(e.map,t.attribution),s(r.current,t.eventHandlers),d(r.current,e),r}}function h(n){return function(t){var e=(0,o.mE)(),r=n((0,v.q)(t,e),e);return s(r.current,t.eventHandlers),d(r.current,e),function(n,t){var e=(0,u.useRef)();(0,u.useEffect)((function(){if(t.pathOptions!==e.current){var r,u=null!==(r=t.pathOptions)&&void 0!==r?r:{};n.instance.setStyle(u),e.current=u}}),[n,t])}(r.current,t),r}}function m(n){var t=function(n){return function(t){var e=(0,o.mE)(),r=n(t,e),i=r.current.instance,c=(0,u.useRef)(t.position),a=t.position;return(0,u.useEffect)((function(){return i.addTo(e.map),function(){i.remove()}}),[e.map,i]),(0,u.useEffect)((function(){null!=a&&a!==c.current&&(i.setPosition(a),c.current=a)}),[i,a]),r}}((0,f.I)((function(t,e){return(0,f.O)(n(t),e)})));return a(t)}function g(n,t){return c(p((0,f.I)(n,t)))}function y(n,t){var e=function(n,t){return function(e,r){var u=(0,o.mE)(),i=n((0,v.q)(e,u),u);return l(u.map,e.attribution),s(i.current,e.eventHandlers),t(i.current,u,e,r),i}}((0,f.I)(n),t);return function(n){function t(t,e){var o=(0,u.useState)(!1),c=(0,r.Z)(o,2),a=c[0],f=c[1],l=n(t,f).current.instance;(0,u.useImperativeHandle)(e,(function(){return l})),(0,u.useEffect)((function(){a&&l.update()}),[l,a,t.children]);var s=l._contentNode;return s?(0,i.createPortal)(t.children,s):null}return(0,u.forwardRef)(t)}(e)}function b(n,t){return c(h((0,f.I)(n,t)))}function Z(n,t){return a(p((0,f.I)(n,t)))}},4552:function(n,t,e){e.d(t,{q:function(){return u}});var r=e(1413);function u(n,t){var e,u=null!==(e=n.pane)&&void 0!==e?e:t.pane;return u?(0,r.Z)((0,r.Z)({},n),{},{pane:u}):n}},25963:function(n,t,e){e.d(t,{N:function(){return p}});var r=e(1413),u=e(15671),i=e(43144),o=e(11752),c=e(61120),a=e(60136),f=e(27277),l=e(18948),s=e(52100),v=function(n){(0,a.Z)(e,n);var t=(0,f.Z)(e);function e(n,r){return(0,u.Z)(this,e),t.call(this,n,r)}return(0,i.Z)(e,[{key:"bindMethods",value:function(){(0,o.Z)((0,c.Z)(e.prototype),"bindMethods",this).call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}},{key:"setOptions",value:function(n,t){(0,o.Z)((0,c.Z)(e.prototype),"setOptions",this).call(this,(0,r.Z)((0,r.Z)({},n),{},{behavior:(0,s.Gm)()}),t)}},{key:"getOptimisticResult",value:function(n){return n.behavior=(0,s.Gm)(),(0,o.Z)((0,c.Z)(e.prototype),"getOptimisticResult",this).call(this,n)}},{key:"fetchNextPage",value:function(n){return this.fetch((0,r.Z)((0,r.Z)({},n),{},{meta:{fetchMore:{direction:"forward"}}}))}},{key:"fetchPreviousPage",value:function(n){return this.fetch((0,r.Z)((0,r.Z)({},n),{},{meta:{fetchMore:{direction:"backward"}}}))}},{key:"createResult",value:function(n,t){var u,i,a,f,l=n.state,v=(0,o.Z)((0,c.Z)(e.prototype),"createResult",this).call(this,n,t),d=v.isFetching,p=v.isRefetching,h=d&&"forward"===(null===(u=l.fetchMeta)||void 0===u||null===(i=u.fetchMore)||void 0===i?void 0:i.direction),m=d&&"backward"===(null===(a=l.fetchMeta)||void 0===a||null===(f=a.fetchMore)||void 0===f?void 0:f.direction);return(0,r.Z)((0,r.Z)({},v),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.Qy)(t,l.data),hasPreviousPage:(0,s.ZF)(t,l.data),isFetchingNextPage:h,isFetchingPreviousPage:m,isRefetching:p&&!h&&!m})}}]),e}(l.z),d=e(51695);function p(n,t){return(0,d.r)(n,v,t)}},41962:function(n,t,e){e.d(t,{a:function(){return i}});var r=e(18948),u=e(51695);function i(n,t){return(0,u.r)(n,r.z,t)}},74580:function(n,t,e){e.d(t,{h:function(){return s}});var r=e(29439),u=e(45987),i=e(17096),o=e(87248),c=e(47313),a=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function f(){return f=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},f.apply(this,arguments)}function l(n,t){var e=n.bounds,l=n.boundsOptions,s=n.center,v=n.children,d=n.className,p=n.id,h=n.placeholder,m=n.style,g=n.whenReady,y=n.zoom,b=(0,u.Z)(n,a),Z=(0,c.useState)({className:d,id:p,style:m}),O=(0,r.Z)(Z,1)[0],P=(0,c.useState)(null),w=(0,r.Z)(P,2),x=w[0],I=w[1];(0,c.useImperativeHandle)(t,(function(){var n;return null!==(n=null===x||void 0===x?void 0:x.map)&&void 0!==n?n:null}),[x]);var R=(0,c.useCallback)((function(n){if(null!==n&&null===x){var t=new o.Map(n,b);null!=s&&null!=y?t.setView(s,y):null!=e&&t.fitBounds(e,l),null!=g&&t.whenReady(g),I((0,i.Hb)(t))}}),[]);(0,c.useEffect)((function(){return function(){null===x||void 0===x||x.map.remove()}}),[x]);var E=x?c.createElement(i.UO,{value:x},v):null!==h&&void 0!==h?h:null;return c.createElement("div",f({},O,{ref:R}),E)}var s=(0,c.forwardRef)(l)},39062:function(n,t,e){e.d(t,{J:function(){return f}});var r=e(45987),u=e(53042),i=e(57828),o=e(17096),c=e(87248),a=["position"],f=(0,u.dW)((function(n,t){var e=n.position,u=(0,r.Z)(n,a),f=new c.Marker(e,u);return(0,i.O)(f,(0,o.sj)(t,{overlayContainer:f}))}),(function(n,t,e){t.position!==e.position&&n.setLatLng(t.position),null!=t.icon&&t.icon!==e.icon&&n.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==e.zIndexOffset&&n.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==e.opacity&&n.setOpacity(t.opacity),null!=n.dragging&&t.draggable!==e.draggable&&(!0===t.draggable?n.dragging.enable():n.dragging.disable())}))},98817:function(n,t,e){e.d(t,{a:function(){return f}});var r=e(45987),u=e(53042),i=e(57828),o=e(17096),c=e(87248),a=["positions"],f=(0,u.Au)((function(n,t){var e=n.positions,u=(0,r.Z)(n,a),f=new c.Polyline(e,u);return(0,i.O)(f,(0,o.sj)(t,{overlayContainer:f}))}),(function(n,t,e){t.positions!==e.positions&&n.setLatLngs(t.positions)}))},88153:function(n,t,e){e.d(t,{I:function(){return f}});var r=e(45987),u=e(53042),i=e(4552),o=e(57828);var c=e(87248),a=["url"],f=(0,u.Lf)((function(n,t){var e=n.url,u=(0,r.Z)(n,a),f=new c.TileLayer(e,(0,i.q)(u,t));return(0,o.O)(f,t)}),(function(n,t,e){!function(n,t,e){var r=t.opacity,u=t.zIndex;null!=r&&r!==e.opacity&&n.setOpacity(r),null!=u&&u!==e.zIndex&&n.setZIndex(u)}(n,t,e);var r=t.url;null!=r&&r!==e.url&&n.setUrl(r)}))},73999:function(n,t,e){e.d(t,{u:function(){return c}});var r=e(53042),u=e(57828),i=e(87248),o=e(47313),c=(0,r.SO)((function(n,t){var e=new i.Tooltip(n,t.overlayContainer);return(0,u.O)(e,t)}),(function(n,t,e,r){var u=e.position;(0,o.useEffect)((function(){var e=t.overlayContainer;if(null!=e){var i=n.instance,o=function(n){n.tooltip===i&&(null!=u&&i.setLatLng(u),i.update(),r(!0))},c=function(n){n.tooltip===i&&r(!1)};return e.on({tooltipopen:o,tooltipclose:c}),e.bindTooltip(i),function(){e.off({tooltipopen:o,tooltipclose:c}),null!=e._map&&e.unbindTooltip()}}}),[n,t,r,u])}))}}]);