{"version":3,"sources":["../src/components/Dialog/DialogTrigger/DialogTrigger.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport type { FluentTriggerComponent } from '@fluentui/react-utilities';\nimport { useDialogTrigger } from './useDialogTrigger';\nimport type { DialogTriggerProps } from './DialogTrigger.types';\n\n/**\n * `DialogTrigger` clones its single child element and attaches click handling\n * to open or close the parent `Dialog`.\n *\n * When placed outside `DialogSurface`, it defaults to `action=\"open\"`.\n * When placed inside `DialogSurface`, it defaults to `action=\"close\"`.\n */\nexport const DialogTrigger: React.FC<DialogTriggerProps> = props => {\n  const state = useDialogTrigger(props);\n  return state.children;\n};\n\nDialogTrigger.displayName = 'DialogTrigger';\n\n/**\n * Marks the DialogTrigger component as a FluentTriggerComponent by setting the isFluentTriggerComponent flag.\n * Uses type-casting to avoid exposing internal types in the public API.\n */\n(DialogTrigger as FluentTriggerComponent).isFluentTriggerComponent = true;\n"],"names":["DialogTrigger","props","state","useDialogTrigger","children","displayName","isFluentTriggerComponent"],"mappings":"AAAA;;;;;+BAcaA;;;eAAAA;;;kCAVoB;AAU1B,MAAMA,gBAA8CC,CAAAA;IACzD,MAAMC,QAAQC,IAAAA,kCAAgB,EAACF;IAC/B,OAAOC,MAAME,QAAQ;AACvB;AAEAJ,cAAcK,WAAW,GAAG;AAE5B;;;CAGC,GACAL,cAAyCM,wBAAwB,GAAG"}