Duffer Derek

Current Path : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/next/dist/build/
Upload File :
Current File : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/next/dist/build/file-classifier.js.map

{"version":3,"sources":["../../src/build/file-classifier.ts"],"sourcesContent":["import { normalizeAppPath } from '../shared/lib/router/utils/app-paths'\nimport { isParallelRouteSegment } from '../shared/lib/segment'\n\n// Slot information for parallel routes\nexport type SlotInfo = { name: string; parent: string }\n\n// Route information for route manifests\nexport type RouteInfo = { route: string; filePath: string }\n\n/**\n * Extract slot info from a page path if it contains a parallel route\n */\nexport function extractSlotFromPath(pagePath: string): SlotInfo | undefined {\n  const segments = pagePath.split('/')\n  for (let i = segments.length - 1; i >= 0; i--) {\n    const segment = segments[i]\n    if (isParallelRouteSegment(segment)) {\n      return {\n        name: segment.slice(1),\n        parent: normalizeAppPath(segments.slice(0, i).join('/')),\n      }\n    }\n  }\n  return undefined\n}\n\n/**\n * Add a slot to the slots array if it doesn't already exist\n */\nexport function addSlotIfNew(slots: SlotInfo[], pagePath: string): boolean {\n  const slot = extractSlotFromPath(pagePath)\n  if (!slot) return false\n  if (slots.some((s) => s.name === slot.name && s.parent === slot.parent))\n    return false\n  slots.push(slot)\n  return true\n}\n\n/**\n * Extract slots from a route mapping object\n */\nexport function extractSlotsFromRoutes(\n  routes: { [page: string]: string },\n  skipRoutes?: Set<string>\n): SlotInfo[] {\n  const slots: SlotInfo[] = []\n  for (const [route] of Object.entries(routes)) {\n    if (skipRoutes?.has(route)) continue\n    addSlotIfNew(slots, route)\n  }\n  return slots\n}\n\n/**\n * Combine and deduplicate slot arrays\n */\nexport function combineSlots(...slotArrays: SlotInfo[][]): SlotInfo[] {\n  const slotSet = new Set<string>()\n  const result: SlotInfo[] = []\n  for (const slots of slotArrays) {\n    for (const slot of slots) {\n      const key = `${slot.name}:${slot.parent}`\n      if (!slotSet.has(key)) {\n        slotSet.add(key)\n        result.push(slot)\n      }\n    }\n  }\n  return result\n}\n"],"names":["addSlotIfNew","combineSlots","extractSlotFromPath","extractSlotsFromRoutes","pagePath","segments","split","i","length","segment","isParallelRouteSegment","name","slice","parent","normalizeAppPath","join","undefined","slots","slot","some","s","push","routes","skipRoutes","route","Object","entries","has","slotArrays","slotSet","Set","result","key","add"],"mappings":";;;;;;;;;;;;;;;;;IA6BgBA,YAAY;eAAZA;;IA2BAC,YAAY;eAAZA;;IA5CAC,mBAAmB;eAAnBA;;IA6BAC,sBAAsB;eAAtBA;;;0BAzCiB;yBACM;AAWhC,SAASD,oBAAoBE,QAAgB;IAClD,MAAMC,WAAWD,SAASE,KAAK,CAAC;IAChC,IAAK,IAAIC,IAAIF,SAASG,MAAM,GAAG,GAAGD,KAAK,GAAGA,IAAK;QAC7C,MAAME,UAAUJ,QAAQ,CAACE,EAAE;QAC3B,IAAIG,IAAAA,+BAAsB,EAACD,UAAU;YACnC,OAAO;gBACLE,MAAMF,QAAQG,KAAK,CAAC;gBACpBC,QAAQC,IAAAA,0BAAgB,EAACT,SAASO,KAAK,CAAC,GAAGL,GAAGQ,IAAI,CAAC;YACrD;QACF;IACF;IACA,OAAOC;AACT;AAKO,SAAShB,aAAaiB,KAAiB,EAAEb,QAAgB;IAC9D,MAAMc,OAAOhB,oBAAoBE;IACjC,IAAI,CAACc,MAAM,OAAO;IAClB,IAAID,MAAME,IAAI,CAAC,CAACC,IAAMA,EAAET,IAAI,KAAKO,KAAKP,IAAI,IAAIS,EAAEP,MAAM,KAAKK,KAAKL,MAAM,GACpE,OAAO;IACTI,MAAMI,IAAI,CAACH;IACX,OAAO;AACT;AAKO,SAASf,uBACdmB,MAAkC,EAClCC,UAAwB;IAExB,MAAMN,QAAoB,EAAE;IAC5B,KAAK,MAAM,CAACO,MAAM,IAAIC,OAAOC,OAAO,CAACJ,QAAS;QAC5C,IAAIC,8BAAAA,WAAYI,GAAG,CAACH,QAAQ;QAC5BxB,aAAaiB,OAAOO;IACtB;IACA,OAAOP;AACT;AAKO,SAAShB,aAAa,GA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