1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
|
{"version":3,"sources":["../../src/client/link.tsx"],"names":["React","resolveHref","isLocalURL","formatUrl","isAbsoluteUrl","addLocale","RouterContext","AppRouterContext","useIntersection","getDomainLocale","addBasePath","PrefetchKind","prefetched","Set","prefetch","router","href","as","options","appOptions","isAppRouter","window","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","startTransition","formatStringOrUrl","urlObjOrString","Link","forwardRef","LinkComponent","props","forwardedRef","children","hrefProp","asProp","childrenProp","prefetchProp","passHref","onClick","onMouseEnter","onMouseEnterProp","onTouchStart","onTouchStartProp","legacyBehavior","restProps","a","pagesRouter","useContext","appRouter","appPrefetchKind","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","previousHref","previousAs","child","Children","only","type","childRef","ref","setIntersectionRef","isVisible","resetVisible","rootMargin","setRef","useCallback","el","useEffect","kind","childProps","defaultPrevented","priority","curLocale","localeDomain","isLocaleDomain","locales","domainLocales","defaultLocale","cloneElement"],"mappings":"AAAA;AAOA,OAAOA,WAAW,QAAO;AAEzB,SAASC,WAAW,QAAQ,iBAAgB;AAC5C,SAASC,UAAU,QAAQ,0CAAyC;AACpE,SAASC,SAAS,QAAQ,wCAAuC;AACjE,SAASC,aAAa,QAAQ,sBAAqB;AACnD,SAASC,SAAS,QAAQ,eAAc;AACxC,SAASC,aAAa,QAAQ,8CAA6C;AAC3E,SAASC,gBAAgB,Q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