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