{"version":3,"sources":["../../../src/shared/lib/instant-messages.ts"],"sourcesContent":["export function createUnrenderedSegmentError(\n  route: string,\n  missingFiles: readonly string[]\n): Error {\n  let message = `Route \"${route}\": Could not validate that a segment in your UI has instant navigation.`\n  if (missingFiles.length > 0) {\n    const label =\n      missingFiles.length === 1 ? 'Dropped segment' : 'Dropped segments'\n    message +=\n      `\\n\\nThis segment was dropped from rendering. Issues that would prevent instant navigation will go undetected.` +\n      `\\n\\n${label}:\\n${missingFiles.map((p) => `  ${p}`).join('\\n')}` +\n      `\\n\\nWays to fix this:` +\n      `\\n  - [render] Render the dropped segment` +\n      `\\n  - [ignore] Set \\`export const instant = false\\` to opt the dropped segment out of instant-navigation validation` +\n      `\\n\\nLearn more: https://nextjs.org/docs/messages/instant-unrendered-segment`\n  }\n  return new Error(message)\n}\n\nexport function createLinkPrefetchPartialError(pathname: string): Error {\n  return new Error(\n    `Next.js encountered dynamic data during prefetching for \"${pathname}\".\\n\\n` +\n      `This will lead to slower, more expensive prefetches.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [upgrade] Opt into Partial Prefetching by exporting \\`const prefetch = 'partial'\\` from the page or layout, or by setting \\`partialPrefetching: true\\` in next.config to opt the whole app in\\n` +\n      `  - [disable] Remove \\`prefetch={true}\\` from the <Link> to use the default prefetch\\n` +\n      `  - [ignore] Set \\`export const instant = false\\` to opt the route out of instant-navigation validation\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/instant-link-prefetch-partial`\n  )\n}\n"],"names":["createLinkPrefetchPartialError","createUnrenderedSegmentError","route","missingFiles","message","length","label","map","p","join","Error","pathname"],"mappings":";;;;;;;;;;;;;;;IAmBgBA,8BAA8B;eAA9BA;;IAnBAC,4BAA4B;eAA5BA;;;AAAT,SAASA,6BACdC,KAAa,EACbC,YAA+B;IAE/B,IAAIC,UAAU,CAAC,OAAO,EAAEF,MAAM,uEAAuE,CAAC;IACtG,IAAIC,aAAaE,MAAM,GAAG,GAAG;QAC3B,MAAMC,QACJH,aAAaE,MAAM,KAAK,IAAI,oBAAoB;QAClDD,WACE,CAAC,6GAA6G,CAAC,GAC/G,CAAC,IAAI,EAAEE,MAAM,GAAG,EAAEH,aAAaI,GAAG,CAAC,CAACC,IAAM,CAAC,EAAE,EAAEA,GAAG,EAAEC,IAAI,CAAC,OAAO,GAChE,CAAC,qBAAqB,CAAC,GACvB,CAAC,yCAAyC,CAAC,GAC3C,CAAC,mHAAmH,CAAC,GACrH,CAAC,2EAA2E,CAAC;IACjF;IACA,OAAO,qBAAkB,CAAlB,IAAIC,MAAMN,UAAV,qBAAA;eAAA;oBAAA;sBAAA;IAAiB;AAC1B;AAEO,SAASJ,+BAA+BW,QAAgB;IAC7D,OAAO,qBAQN,CARM,IAAID,MACT,CAAC,yDAAyD,EAAEC,SAAS,MAAM,CAAC,GAC1E,CAAC,wDAAwD,CAAC,GAC1D,CAAC,mBAAmB,CAAC,GACrB,CAAC,mMAAmM,CAAC,GACrM,CAAC,sFAAsF,CAAC,GACxF,CAAC,2GAA2G,CAAC,GAC7G,CAAC,0EAA0E,CAAC,GAPzE,qBAAA;eAAA;oBAAA;sBAAA;IAQP;AACF","ignoreList":[0]}