{"version":3,"file":"PopperAnchor-xP5I3xxj.js","sources":["../../node_modules/reka-ui/dist/Popper/PopperAnchor.js"],"sourcesContent":["import { defineComponent, watchPostEffect, openBlock, createBlock, unref, withCtx, renderSlot } from 'vue';\nimport { u as useForwardExpose } from '../shared/useForwardExpose.js';\nimport { i as injectPopperRootContext } from './PopperRoot.js';\nimport { P as Primitive } from '../Primitive/Primitive.js';\n\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"PopperAnchor\",\n props: {\n reference: {},\n asChild: { type: Boolean },\n as: {}\n },\n setup(__props) {\n const props = __props;\n const { forwardRef, currentElement } = useForwardExpose();\n const rootContext = injectPopperRootContext();\n watchPostEffect(() => {\n rootContext.onAnchorChange(props.reference ?? currentElement.value);\n });\n return (_ctx, _cache) => {\n return openBlock(), createBlock(unref(Primitive), {\n ref: unref(forwardRef),\n as: _ctx.as,\n \"as-child\": _ctx.asChild\n }, {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"as\", \"as-child\"]);\n };\n }\n});\n\nexport { _sfc_main as _ };\n//# sourceMappingURL=PopperAnchor.js.map\n"],"names":["_sfc_main","defineComponent","__props","props","forwardRef","currentElement","useForwardExpose","rootContext","injectPopperRootContext","watchPostEffect","_ctx","_cache","openBlock","createBlock","unref","Primitive","withCtx","renderSlot"],"mappings":"0GAKK,MAACA,EAA4BC,EAAgB,CAChD,OAAQ,eACR,MAAO,CACL,UAAW,CAAE,EACb,QAAS,CAAE,KAAM,OAAS,EAC1B,GAAI,CAAA,CACL,EACD,MAAMC,EAAS,CACb,MAAMC,EAAQD,EACR,CAAE,WAAAE,EAAY,eAAAC,CAAgB,EAAGC,EAAkB,EACnDC,EAAcC,EAAyB,EAC7C,OAAAC,EAAgB,IAAM,CACpBF,EAAY,eAAeJ,EAAM,WAAaE,EAAe,KAAK,CACxE,CAAK,EACM,CAACK,EAAMC,KACLC,EAAS,EAAIC,EAAYC,EAAMC,CAAS,EAAG,CAChD,IAAKD,EAAMV,CAAU,EACrB,GAAIM,EAAK,GACT,WAAYA,EAAK,OACzB,EAAS,CACD,QAASM,EAAQ,IAAM,CACrBC,EAAWP,EAAK,OAAQ,SAAS,CAC3C,CAAS,EACD,EAAG,CACJ,EAAE,EAAG,CAAC,KAAM,UAAU,CAAC,EAE9B,CACA,CAAC","x_google_ignoreList":[0]}