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,QAA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