import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{withRouter as e}from"react-router-dom";import o from"query-string";import{useDevCenterRouter as n}from"../effects/useDevCenterRouter.js";import{jsx as i}from"react/jsx-runtime";var c=["location","history","match"];function a(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,o)}return e}function p(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}function u(r){return r.displayName||r.name||"Component"}function s(r){var a=function(r){function n(e){var n=e.location;e.history,e.match;var a=t(e,c),u=p(p({},n),{},{query:o.parse(n.search)});return i(r,p({location:u},a))}return n.displayName="withReactRouterLocation(".concat(u(r),")"),e(n)}(r);function s(t){var e=n();return e?i(r,p(p({},t),{},{location:e.location})):i(a,p({},t))}return s.displayName="WithUniversalLocationHOC(".concat(u(r),")"),s}export{s as withUniversalLocationHOC};
//# sourceMappingURL=withUniversalLocationHOC.js.map
