{"version":3,"file":"PopperArrow-3zhFfZwN.js","sources":["../../node_modules/reka-ui/dist/component/Arrow.js","../../node_modules/reka-ui/dist/Popper/PopperArrow.js"],"sourcesContent":["import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock } from 'vue';\nimport { u as useForwardExpose } from '../shared/useForwardExpose.js';\nimport { P as Primitive } from '../Primitive/Primitive.js';\n\nconst _hoisted_1 = {\n key: 0,\n d: \"M0 0L6 6L12 0\"\n};\nconst _hoisted_2 = {\n key: 1,\n d: \"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0\"\n};\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"Arrow\",\n props: {\n width: { default: 10 },\n height: { default: 5 },\n rounded: { type: Boolean },\n asChild: { type: Boolean },\n as: { default: \"svg\" }\n },\n setup(__props) {\n const props = __props;\n useForwardExpose();\n return (_ctx, _cache) => {\n return openBlock(), createBlock(unref(Primitive), mergeProps(props, {\n width: _ctx.width,\n height: _ctx.height,\n viewBox: _ctx.asChild ? undefined : \"0 0 12 6\",\n preserveAspectRatio: _ctx.asChild ? undefined : \"none\"\n }), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\", {}, () => [\n !_ctx.rounded ? (openBlock(), createElementBlock(\"path\", _hoisted_1)) : (openBlock(), createElementBlock(\"path\", _hoisted_2))\n ])\n ]),\n _: 3\n }, 16, [\"width\", \"height\", \"viewBox\", \"preserveAspectRatio\"]);\n };\n }\n});\n\nexport { _sfc_main as _ };\n//# sourceMappingURL=Arrow.js.map\n","import { defineComponent, computed, openBlock, createElementBlock, unref, normalizeStyle, createVNode, mergeProps, withCtx, renderSlot } from 'vue';\nimport { _ as _sfc_main$1 } from '../component/Arrow.js';\nimport { u as useForwardExpose } from '../shared/useForwardExpose.js';\nimport { i as injectPopperContentContext } from './PopperContent.js';\n\nconst OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n ...{\n inheritAttrs: false\n },\n __name: \"PopperArrow\",\n props: {\n width: {},\n height: {},\n rounded: { type: Boolean },\n asChild: { type: Boolean },\n as: { default: \"svg\" }\n },\n setup(__props) {\n const { forwardRef } = useForwardExpose();\n const contentContext = injectPopperContentContext();\n const baseSide = computed(() => OPPOSITE_SIDE[contentContext.placedSide.value]);\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"span\", {\n ref: (el) => {\n unref(contentContext).onArrowChange(el);\n return undefined;\n },\n style: normalizeStyle({\n position: \"absolute\",\n left: unref(contentContext).arrowX?.value ? `${unref(contentContext).arrowX?.value}px` : undefined,\n top: unref(contentContext).arrowY?.value ? `${unref(contentContext).arrowY?.value}px` : undefined,\n [baseSide.value]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[unref(contentContext).placedSide.value],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[unref(contentContext).placedSide.value],\n visibility: unref(contentContext).shouldHideArrow.value ? \"hidden\" : undefined\n })\n }, [\n createVNode(_sfc_main$1, mergeProps(_ctx.$attrs, {\n ref: unref(forwardRef),\n style: {\n display: \"block\"\n },\n as: _ctx.as,\n \"as-child\": _ctx.asChild,\n rounded: _ctx.rounded,\n width: _ctx.width,\n height: _ctx.height\n }), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"as\", \"as-child\", \"rounded\", \"width\", \"height\"])\n ], 4);\n };\n }\n});\n\nexport { _sfc_main as _ };\n//# sourceMappingURL=PopperArrow.js.map\n"],"names":["_hoisted_1","_hoisted_2","_sfc_main","defineComponent","__props","props","useForwardExpose","_ctx","_cache","openBlock","createBlock","unref","Primitive","mergeProps","withCtx","renderSlot","createElementBlock","OPPOSITE_SIDE","forwardRef","contentContext","injectPopperContentContext","baseSide","computed","el","normalizeStyle","_a","_b","_c","_d","createVNode","_sfc_main$1"],"mappings":"iIAIA,MAAMA,EAAa,CACjB,IAAK,EACL,EAAG,eACL,EACMC,EAAa,CACjB,IAAK,EACL,EAAG,2EACL,EACMC,EAA4BC,EAAgB,CAChD,OAAQ,QACR,MAAO,CACL,MAAO,CAAE,QAAS,EAAI,EACtB,OAAQ,CAAE,QAAS,CAAG,EACtB,QAAS,CAAE,KAAM,OAAS,EAC1B,QAAS,CAAE,KAAM,OAAS,EAC1B,GAAI,CAAE,QAAS,KAAK,CACrB,EACD,MAAMC,EAAS,CACb,MAAMC,EAAQD,EACd,OAAAE,EAAkB,EACX,CAACC,EAAMC,KACLC,EAAW,EAAEC,EAAYC,EAAMC,CAAS,EAAGC,EAAWR,EAAO,CAClE,MAAOE,EAAK,MACZ,OAAQA,EAAK,OACb,QAASA,EAAK,QAAU,OAAY,WACpC,oBAAqBA,EAAK,QAAU,OAAY,MACxD,CAAO,EAAG,CACF,QAASO,EAAQ,IAAM,CACrBC,EAAWR,EAAK,OAAQ,UAAW,CAAE,EAAE,IAAM,CAC1CA,EAAK,SAAmEE,EAAW,EAAEO,EAAmB,OAAQf,CAAU,IAA1GQ,EAAS,EAAIO,EAAmB,OAAQhB,CAAU,EACpE,CAAA,CACX,CAAS,EACD,EAAG,CACX,EAAS,GAAI,CAAC,QAAS,SAAU,UAAW,qBAAqB,CAAC,EAElE,CACA,CAAC,ECnCKiB,EAAgB,CACpB,IAAK,SACL,MAAO,OACP,OAAQ,MACR,KAAM,OACR,EACMf,EAA4BC,EAAgB,CAE9C,aAAc,GAEhB,OAAQ,cACR,MAAO,CACL,MAAO,CAAE,EACT,OAAQ,CAAE,EACV,QAAS,CAAE,KAAM,OAAS,EAC1B,QAAS,CAAE,KAAM,OAAS,EAC1B,GAAI,CAAE,QAAS,KAAK,CACrB,EACD,MAAMC,EAAS,CACb,KA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