{"version":3,"file":"constants.cjs","names":[],"sources":["../../src/Slots/constants.ts"],"sourcesContent":["/** Marker used to identify `Slot` components created by `useSlots`. */\nexport const SLOT_COMPONENT = Symbol.for('@pastweb/react.slot');\n\n/** Marker used to identify `Slots` boundary components. */\nexport const SLOTS_COMPONENT = Symbol.for('@pastweb/react.slots');\n\n/** Marker used to identify `Template` slot marker components. */\nexport const TEMPLATE_COMPONENT = Symbol.for('@pastweb/react.template');\n\n/**\n * Adds a non-enumerable marker to a component function.\n *\n * The marker lets slot helpers detect components reliably after re-exports,\n * wrapping, or test-local component creation.\n *\n * @param component - Component function to mark.\n * @param marker - Symbol marker to attach.\n * @returns The same component function.\n */\nexport function markComponent<T extends Function>(component: T, marker: symbol): T {\n  if (!Object.hasOwn(component, marker)) {\n    Object.defineProperty(component, marker, { value: true });\n  }\n\n  return component;\n}\n"],"mappings":";;;AACA,MAAa,iBAAiB,OAAO,IAAI,qBAAqB;;AAG9D,MAAa,kBAAkB,OAAO,IAAI,sBAAsB;;AAGhE,MAAa,qBAAqB,OAAO,IAAI,yBAAyB;;;;;;;;;;;AAYtE,SAAgB,cAAkC,WAAc,QAAmB;CACjF,IAAI,CAAC,OAAO,OAAO,WAAW,MAAM,GAClC,OAAO,eAAe,WAAW,QAAQ,EAAE,OAAO,KAAK,CAAC;CAG1D,OAAO;AACT"}