securityos/node_modules/next/dist/client/link.js.map

1 line
11 KiB
Plaintext

{"version":3,"sources":["../../src/client/link.tsx"],"names":["prefetched","Set","prefetch","router","href","as","options","appOptions","isAppRouter","window","isLocalURL","bypassPrefetchedCheck","locale","undefined","prefetchedKey","has","add","prefetchPromise","Promise","resolve","catch","err","process","env","NODE_ENV","isModifiedEvent","event","eventTarget","currentTarget","target","getAttribute","metaKey","ctrlKey","shiftKey","altKey","nativeEvent","which","linkClicked","e","replace","shallow","scroll","prefetchEnabled","nodeName","isAnchorNodeName","toUpperCase","preventDefault","navigate","routerScroll","forceOptimisticNavigation","React","startTransition","formatStringOrUrl","urlObjOrString","formatUrl","Link","forwardRef","LinkComponent","props","forwardedRef","children","hrefProp","asProp","childrenProp","prefetchProp","passHref","onClick","onMouseEnter","onMouseEnterProp","onTouchStart","onTouchStartProp","legacyBehavior","restProps","a","pagesRouter","useContext","RouterContext","appRouter","AppRouterContext","appPrefetchKind","PrefetchKind","AUTO","FULL","createPropError","args","Error","key","expected","actual","requiredPropsGuard","requiredProps","Object","keys","forEach","_","optionalPropsGuard","optionalProps","valType","hasWarned","useRef","current","console","warn","pathname","hasDynamicSegment","split","some","segment","startsWith","endsWith","useMemo","resolvedHref","resolvedAs","resolveHref","previousHref","previousAs","child","Children","only","type","childRef","ref","setIntersectionRef","isVisible","resetVisible","useIntersection","rootMargin","setRef","useCallback","el","useEffect","kind","childProps","defaultPrevented","priority","isAbsoluteUrl","curLocale","localeDomain","isLocaleDomain","getDomainLocale","locales","domainLocales","addBasePath","addLocale","defaultLocale","cloneElement"],"mappings":"AAAA;;;;;+BAsvBA;;;eAAA;;;;gEA/uBkB;6BAEU;4BACD;2BACD;uBACI;2BACJ;4CACI;+CACG;iCAKD;iCACA;6BACJ;oCACC;AA0F7B,MAAMA,aAAa,IAAIC;AAUvB,SAASC,SACPC,MAAsC,EACtCC,IAAY,EACZC,EAAU,EACVC,OAAwB,EACxBC,UAAoC,EACpCC,WAAoB;IAEpB,IAAI,O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