import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{withRouter as e}from"react-router";import{useDevCenterRouter as o}from"../effects/useDevCenterRouter.js";import{jsx as n}from"react/jsx-runtime";var c=["location","router","params"];function i(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 a(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?i(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}function p(r){return r.displayName||r.name||"Component"}function u(r){var i=function(r){function o(e){var o=e.location;e.router,e.params;var i=t(e,c);return n(r,a({location:o},i))}return o.displayName="withReactRouterLocation(".concat(p(r),")"),e(o)}(r);function u(t){var e=o();return e?n(r,a(a({},t),{},{location:e.location})):n(i,a({},t))}return u.displayName="WithUniversalLocationHOC(".concat(p(r),")"),u}export{u as withUniversalLocationHOC};
