"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("react-router"),n=require("../effects/useDevCenterRouter.js"),o=require("react/jsx-runtime");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=i(e),u=i(r),a=["location","router","params"];function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?s(Object(t),!0).forEach((function(r){c.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function l(e){return e.displayName||e.name||"Component"}exports.withUniversalLocationHOC=function(e){var r=function(e){function r(r){var t=r.location;r.router,r.params;var n=u.default(r,a);return o.jsx(e,p({location:t},n))}return r.displayName="withReactRouterLocation(".concat(l(e),")"),t.withRouter(r)}(e);function i(t){var i=n.useDevCenterRouter();return i?o.jsx(e,p(p({},t),{},{location:i.location})):o.jsx(r,p({},t))}return i.displayName="WithUniversalLocationHOC(".concat(l(e),")"),i};
