{"version":3,"sources":["../src/events.ts"],"names":["BEACIO_EVENTS"],"mappings":"AAiBO,IAAMA,CAAAA,CAAgB,CAG3B,YAAA,CAAc,oBAAA,CAEd,MAAO,cAAA,CAEP,kBAAA,CAAoB,0BAAA,CAEpB,aAAA,CAAe,qBAAA,CAIf,eAAA,CAAiB,yBAEjB,cAAA,CAAgB,uBAAA,CAEhB,cAAA,CAAgB,uBAAA,CAEhB,0BAAA,CAA4B,mCAAA,CAE5B,0BAA2B,kCAAA,CAE3B,mBAAA,CAAqB,4BAAA,CAErB,uBAAA,CAAyB,+BAC3B","file":"chunk-3BDZNBBD.mjs","sourcesContent":["/**\n * Canonical beacio CustomEvent names — the single source of truth shared by the\n * detect dispatcher (@beacio/detect), the react-sdk listeners (@beacio/react),\n * the extension in-page handshake, and the CDN bundle.\n *\n * Lives in @beacio/core for the same reason as `urls.ts`: core depends on\n * nothing, while @beacio/detect (the dispatcher) and @beacio/react (a listener)\n * both peer-depend on core — so importing the event-name constants FROM core\n * introduces no dependency cycle. Both the dispatch side and every listen side\n * reference these literals, so a diverged or typo'd event name becomes a\n * compile error rather than a silent half-rebrand break (a listener registered\n * on a name nobody dispatches).\n *\n * `as const` pins each value to its string-literal type (not widened to\n * `string`); dispatch/listen sites typed against {@link BeacioEventName} reject\n * any non-member string at compile time.\n */\nexport const BEACIO_EVENTS = {\n  // ── @beacio/detect package lifecycle (public) ────────────────────────────\n  /** Fired on every initBeacio() run with the resolved install state. */\n  STATE_CHANGE: 'beacio:statechange',\n  /** Fired when the extension is detected and active/ready. */\n  READY: 'beacio:ready',\n  /** Fired when the extension is installed but Safari still needs activation. */\n  INSTALLED_INACTIVE: 'beacio:installedinactive',\n  /** Fired when the extension is not installed. */\n  NOT_INSTALLED: 'beacio:notinstalled',\n\n  // ── In-page extension handshake (extension ⇄ page / cdn / react-sdk) ──────\n  /** The extension's injected script announces it is live and active. */\n  EXTENSION_READY: 'beacio:extension:ready',\n  /** Page → extension liveness probe. */\n  EXTENSION_PING: 'beacio:extension:ping',\n  /** Extension → page liveness response. */\n  EXTENSION_PONG: 'beacio:extension:pong',\n  /** Page → extension request to activate the API. */\n  EXTENSION_ACTIVATE_REQUEST: 'beacio:extension:activate-request',\n  /** Extension → page result of an activate request. */\n  EXTENSION_ACTIVATE_RESULT: 'beacio:extension:activate-result',\n  /** Extension announces it is installed (present, not yet active). */\n  EXTENSION_INSTALLED: 'beacio:extension:installed',\n  /** Extension → page: the injected script's __beacio status transitioned. */\n  EXTENSION_STATUS_CHANGE: 'beacio:extension:statuschange',\n} as const;\n\n/**\n * The union of every canonical beacio CustomEvent name. A value typed as this\n * cannot be any string other than a {@link BEACIO_EVENTS} member, so a typo at a\n * dispatch or listen site fails to compile.\n */\nexport type BeacioEventName = (typeof BEACIO_EVENTS)[keyof typeof BEACIO_EVENTS];\n"]}