{"version":3,"file":"DropdownMenuArrow-D0j_KjKD.js","sources":["../../node_modules/reka-ui/dist/component/Arrow.js","../../node_modules/reka-ui/dist/Popper/PopperArrow.js","../../node_modules/reka-ui/dist/Menu/MenuArrow.js","../../node_modules/reka-ui/dist/DropdownMenu/DropdownMenuArrow.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","import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from 'vue';\nimport { _ as _sfc_main$1 } from '../Popper/PopperArrow.js';\n\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"MenuArrow\",\n props: {\n width: {},\n height: {},\n rounded: { type: Boolean },\n asChild: { type: Boolean },\n as: {}\n },\n setup(__props) {\n const props = __props;\n return (_ctx, _cache) => {\n return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(props)), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16);\n };\n }\n});\n\nexport { _sfc_main as _ };\n//# sourceMappingURL=MenuArrow.js.map\n","import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from 'vue';\nimport { _ as _sfc_main$1 } from '../Menu/MenuArrow.js';\nimport { u as useForwardExpose } from '../shared/useForwardExpose.js';\n\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"DropdownMenuArrow\",\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(_sfc_main$1), normalizeProps(guardReactiveProps(props)), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16);\n };\n }\n});\n\nexport { _sfc_main as _ };\n//# sourceMappingURL=DropdownMenuArrow.js.map\n"],"names":["_hoisted_1","key","d","_hoisted_2","_sfc_main","defineComponent","__name","props","width","default","height","rounded","type","Boolean","asChild","as","setup","__props","useForwardExpose","_ctx","_cache","openBlock","createBlock","unref","Primitive","mergeProps","viewBox","preserveAspectRatio","withCtx","renderSlot","$slots","createElementBlock","_","OPPOSITE_SIDE","top","right","bottom","left","inheritAttrs","forwardRef","contentContext","injectPopperContentContext","baseSide","computed","placedSide","value","ref","el","onArrowChange","style","normalizeStyle","position","_a","arrowX","_b","_c","arrowY","_d","transformOrigin","transform","visibility","shouldHideArrow","createVNode","_sfc_main$1","$attrs","display","normalizeProps","guardReactiveProps"],"mappings":"gjBAIA,MAAMA,EAAa,CACjBC,IAAK,EACLC,EAAG,iBAECC,EAAa,CACjBF,IAAK,EACLC,EAAG,6EAECE,EAA4CC,EAAA,CAChDC,OAAQ,QACRC,MAAO,CACLC,MAAO,CAAEC,QAAS,IAClBC,OAAQ,CAAED,QAAS,GACnBE,QAAS,CAAEC,KAAMC,SACjBC,QAAS,CAAEF,KAAMC,SACjBE,GAAI,CAAEN,QAAS,QAEjB,KAAAO,CAAMC,GACJ,MAAMV,EAAQU,EAEP,OADWC,IACX,CAACC,EAAMC,KACLC,IAAaC,EAAYC,EAAMC,GAAYC,EAAWlB,EAAO,CAClEC,MAAOW,EAAKX,MACZE,OAAQS,EAAKT,OACbgB,QAASP,EAAKL,aAAU,EAAY,WACpCa,oBAAqBR,EAAKL,aAAU,EAAY,SAC9C,CACFL,QAASmB,GAAQ,IAAM,CACrBC,EAAWV,EAAKW,OAAQ,UAAW,CAAE,GAAE,IAAM,CAC1CX,EAAKR,SAAmEU,IAAaU,EAAmB,OAAQ5B,KAAhGkB,IAAaU,EAAmB,OAAQ/B,UAG7DgC,EAAG,GACF,GAAI,CAAC,QAAS,SAAU,UAAW,wBAE5C,IClCMC,EAAgB,CACpBC,IAAK,SACLC,MAAO,OACPC,OAAQ,MACRC,KAAM,SAEFjC,EAA4CC,EAAA,CAE9CiC,cAAc,EAEhBhC,OAAQ,cACRC,MAAO,CACLC,MAAO,CAAE,EACTE,OAAQ,CAAE,EACVC,QAAS,CAAEC,KAAMC,SACjBC,QAAS,CAAEF,KAAMC,SACjBE,GAAI,CAAEN,QAAS,QAEjB,KAAAO,CAAMC,GACE,MAAAsB,WAAEA,GAAerB,IACjBsB,EAAiBC,IACjBC,EAAWC,GAAS,IAAMV,EAAcO,EAAeI,WAAWC,SACjE,MAAA,CAAC1B,EA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