{"version":3,"file":"index-B-vz2qu6.cjs","sources":["../../lib/vowel/components/web-components/VowelInstructionsWebComponent.tsx","../../lib/vowel/components/web-components/index.ts"],"sourcesContent":["/**\n * @fileoverview VowelInstructions Web Component Wrapper\n * \n * Exports the VowelInstructions as a web component using r2wc.\n * Registers as <vowel-instructions> custom element.\n * \n * @module @vowel.to/client/components/web-components\n * @author vowel.to\n * @license Proprietary\n */\n\nimport { VowelInstructions } from \"../VowelInstructions\";\n\nlet VowelInstructionsWebComponent: CustomElementConstructor | undefined;\n\nasync function getVowelInstructionsWebComponent(): Promise<CustomElementConstructor> {\n  if (!VowelInstructionsWebComponent) {\n    const { default: r2wc } = await import(\"@r2wc/react-to-web-component\");\n    VowelInstructionsWebComponent = r2wc(VowelInstructions, {\n      props: {\n        id: \"string\",\n        content: \"string\",\n      },\n    });\n  }\n  return VowelInstructionsWebComponent;\n}\n\nexport function registerVowelInstructionsWebComponent() {\n  if (typeof window === \"undefined\" || !window.customElements) {\n    console.warn(\n      \"⚠️ [VowelInstructionsWebComponent] Window or customElements not available\"\n    );\n    return;\n  }\n\n  if (!window.customElements.get(\"vowel-instructions\")) {\n    console.log(\"📝 [VowelInstructionsWebComponent] Registering custom element...\");\n    getVowelInstructionsWebComponent().then((wc) => {\n      window.customElements.define(\"vowel-instructions\", wc);\n      console.log(\"✅ [VowelInstructionsWebComponent] Custom element registered\");\n    });\n  } else {\n    console.log(\"⏭️ [VowelInstructionsWebComponent] Already registered\");\n  }\n}\n\nif (typeof window !== \"undefined\") {\n  registerVowelInstructionsWebComponent();\n}\n","import {\n  registerFloatingCursorWebComponent,\n} from \"./FloatingCursorWebComponent\";\n\nimport {\n  registerControlledBannerWebComponent,\n} from \"./ControlledBannerWebComponent\";\n\nimport {\n  registerFloatingMicButtonWebComponent,\n} from \"./FloatingMicButtonWebComponent\";\n\nimport {\n  registerVowelInstructionsWebComponent,\n} from \"./VowelInstructionsWebComponent\";\n\nexport {\n  registerFloatingCursorWebComponent,\n  registerControlledBannerWebComponent,\n  registerFloatingMicButtonWebComponent,\n  registerVowelInstructionsWebComponent,\n};\n\nexport function registerAllVowelWebComponents() {\n  if (typeof window === \"undefined\") {\n    return;\n  }\n\n  const startTime = performance.now();\n  console.log(\"🎨 [VowelWebComponents] Registering all web components...\");\n  \n  registerFloatingCursorWebComponent();\n  registerControlledBannerWebComponent();\n  registerFloatingMicButtonWebComponent();\n  registerVowelInstructionsWebComponent();\n\n  const duration = (performance.now() - startTime).toFixed(2);\n  console.log(`✅ [VowelWebComponents] All web components registered in ${duration}ms`);\n}\n\n"],"names":["VowelInstructions","registerFloatingCursorWebComponent","registerControlledBannerWebComponent","registerFloatingMicButtonWebComponent"],"mappings":";;;;;;;;AAaA,IAAI,6BAAA;AAEJ,eAAe,gCAAA,GAAsE;AACnF,EAAA,IAAI,CAAC,6BAAA,EAA+B;AAClC,IAAA,MAAM,EAAE,OAAA,EAAS,IAAA,EAAK,GAAI,MAAM,OAAO,8BAA8B,CAAA;AACrE,IAAA,6BAAA,GAAgC,KAAKA,4BAAA,EAAmB;AAAA,MACtD,KAAA,EAAO;AAAA,QACL,EAAA,EAAI,QAAA;AAAA,QACJ,OAAA,EAAS;AAAA;AACX,KACD,CAAA;AAAA,EACH;AACA,EAAA,OAAO,6BAAA;AACT;AAEO,SAAS,qCAAA,GAAwC;AACtD,EAAA,IAAI,OAAO,MAAA,KAAW,WAAA,IAAe,CAAC,OAAO,cAAA,EAAgB;AAC3D,IAAA,OAAA,CAAQ,IAAA;AAAA,MACN;AAAA,KACF;AACA,IAAA;AAAA,EACF;AAEA,EAAA,IAAI,CAAC,MAAA,CAAO,cAAA,CAAe,GAAA,CAAI,oBAAoB,CAAA,EAAG;AACpD,IAAA,OAAA,CAAQ,IAAI,kEAAkE,CAAA;AAC9E,IAAA,gCAAA,EAAiC,CAAE,IAAA,CAAK,CAAC,EAAA,KAAO;AAC9C,MAAA,MAAA,CAAO,cAAA,CAAe,MAAA,CAAO,oBAAA,EAAsB,EAAE,C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