'use strict';
import { c } from 'react/compiler-runtime';
import { useRouter as useRouter$1, usePathname as usePathname$1, useSearchParams as useSearchParams$1 } from 'next/navigation.js';
import { useIsClient } from '../../../../fd-toolbox/hooks/use-is-client.js';
import { createError } from '../../../../fd-toolbox/errors/errors.js';
import { navigationMethodNames } from '../../../../base-repo/constants/internal-common-strings.js';

var __defProp=Object['defineProperty'],__name=(_0x1bed27,_0x115e77)=>__defProp(_0x1bed27,'name',{'value':_0x115e77,'configurable':!![]});const ssrRouterError='Router\x20method\x20{0}\x20is\x20not\x20implemented\x20on\x20the\x20server.',emptyRouter={'push':__name(()=>{throw createError(ssrRouterError['replace']('{0}',navigationMethodNames['push']));},'push'),'replace':__name(()=>{throw createError(ssrRouterError['replace']('{0}',navigationMethodNames['replace']));},'replace'),'refresh':__name(()=>{throw createError(ssrRouterError['replace']('{0}','refresh'));},'refresh'),'back':__name(()=>{throw createError(ssrRouterError['replace']('{0}','back'));},'back'),'forward':__name(()=>{throw createError(ssrRouterError['replace']('{0}','forward'));},'forward'),'prefetch':__name(async()=>{throw createError(ssrRouterError['replace']('{0}','prefetch'));},'prefetch')};function useRouter(){const _0x4cdcd4=useRouter$1(),_0x3e535b=useIsClient();return _0x3e535b?_0x4cdcd4:emptyRouter;}__name(useRouter,'useRouter');function usePathname(){const _0x2abb56=usePathname$1(),_0x4173d3=useIsClient();return _0x4173d3?_0x2abb56:'';}__name(usePathname,'usePathname');function useSearchParams(){const _0x3b0388=c(0xdea+-0x1ec3+0x10dc),_0x294110=useSearchParams$1(),_0xdaa627=useIsClient();let _0x3fd039;return _0x3b0388[0x1*-0x4cd+0x2417+-0x1f4a]!==_0xdaa627||_0x3b0388[-0x1fc0+0x419*-0x4+0x3025]!==_0x294110?(_0x3fd039=_0xdaa627?_0x294110:new URLSearchParams(),_0x3b0388[-0x1d3f*-0x1+-0x2596+-0x1ab*-0x5]=_0xdaa627,_0x3b0388[0x1*0x534+0x1f8f+0x2*-0x1261]=_0x294110,_0x3b0388[-0x12f4*-0x1+-0x11ea+-0x108]=_0x3fd039):_0x3fd039=_0x3b0388[0x1d75*-0x1+-0x12*0x17a+0x1*0x380b],_0x3fd039;}__name(useSearchParams,'useSearchParams');

export { usePathname, useRouter, useSearchParams };
