You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.8 MiB
2 lines
1.8 MiB
3 years ago
|
/*! For license information please see 38.0a31dffb.chunk.js.LICENSE.txt */
|
||
|
(this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[38,4],{1374:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(730);function a(e,t){var n,a=null!==(n=e.pane)&&void 0!==n?n:t.pane;return a?Object(r.a)(Object(r.a)({},e),{},{pane:a}):e}},2234:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(730),a=n(902),i=n(2257),o=n(924),s=["position"],l=Object(i.a)((function(e,t){var n=e.position,i=Object(a.a)(e,s),l=new o.Marker(n,i);return{instance:l,context:Object(r.a)(Object(r.a)({},t),{},{overlayContainer:l})}}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())}))},2235:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(902),a=n(616),i=n(951),o=n(924),s=n(2),l=n.n(s),c=["children","className","id","placeholder","style","whenCreated"];function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){var t=e.children,n=e.className,f=e.id,h=e.placeholder,d=e.style,p=e.whenCreated,m=Object(r.a)(e,c),g=Object(s.useRef)(null),v=function(e,t){var n=Object(s.useState)(null),r=Object(a.a)(n,2),i=r[0],l=r[1];return Object(s.useEffect)((function(){if(null!==e.current&&null===i){var n=new o.Map(e.current,t);null!=t.center&&null!=t.zoom?n.setView(t.center,t.zoom):null!=t.bounds&&n.fitBounds(t.bounds,t.boundsOptions),null!=t.whenReady&&n.whenReady(t.whenReady),l(n)}}),[e,i,t]),i}(g,m),b=Object(s.useRef)(!1);Object(s.useEffect)((function(){null!=v&&!1===b.current&&null!=p&&(b.current=!0,p(v))}),[v,p]),Object(s.useEffect)((function(){return function(){null==v||v.remove()}}),[v]);var _=Object(s.useState)({className:n,id:f,style:d}),y=Object(a.a)(_,1)[0],w=Object(s.useMemo)((function(){return v?{__version:i.a,map:v}:null}),[v]),E=w?l.a.createElement(i.b,{value:w},t):null!==h&&void 0!==h?h:null;return l.a.createElement("div",u({},y,{ref:g}),E)}},2257:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));n(616);var r=n(2),a=n.n(r),i=(n(183),n(951));function o(e){function t(t,n){var o=e(t).current,s=o.instance,l=o.context;return Object(r.useImperativeHandle)(n,(function(){return s})),null==t.children?null:a.a.createElement(i.b,{value:l},t.children)}return Object(r.forwardRef)(t)}function s(e){function t(t,n){var a=e(t).current.instance;return Object(r.useImperativeHandle)(n,(function(){return a})),null}return Object(r.forwardRef)(t)}function l(e,t){return null==t?function(t,n){return Object(r.useRef)(e(t,n))}:function(n,a){var i=Object(r.useRef)(e(n,a)),o=Object(r.useRef)(n),s=i.current.instance;return Object(r.useEffect)((function(){o.current!==n&&(t(s,n,o.current),o.current=n)}),[s,n,a]),i}}function c(e,t){var n=Object(r.useRef)(t);Object(r.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}function u(e,t){var n=Object(r.useRef)();Object(r.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}var f=n(1374);function h(e,t){Object(r.useEffect)((function(){var n;return(null!==(n=t.layerContainer)&&void 0!==n?n:t.map).addLayer(e.instance),function(){var n;null==(n=t.layerContainer)||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}function d(e){return function(t){var n=Object(i.c)(),r=e(Object(f.a)(t,n),n);return c(n.map,t.attribution),u(r.current,t.eventHandlers),h(r.current,n),r}}function p(e,t){return o(d(l(e,t)))}function m(e,t){return s(d(l(e,t)))}},2258:function(e,t,n){"use strict";n.d(t,"a",
|