const require_rolldown_runtime = require('../rolldown-runtime.cjs');
const require_shared_useForwardExpose = require('../shared/useForwardExpose.cjs');
const require_Primitive_Primitive = require('../Primitive/Primitive.cjs');
const require_Listbox_ListboxItem = require('./ListboxItem.cjs');
const vue = require_rolldown_runtime.__toESM(require("vue"));

//#region src/Listbox/ListboxItemIndicator.vue?vue&type=script&setup=true&lang.ts
var ListboxItemIndicator_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
	__name: "ListboxItemIndicator",
	props: {
		asChild: {
			type: Boolean,
			required: false
		},
		as: {
			type: null,
			required: false,
			default: "span"
		}
	},
	setup(__props) {
		const props = __props;
		require_shared_useForwardExpose.useForwardExpose();
		const itemContext = require_Listbox_ListboxItem.injectListboxItemContext();
		return (_ctx, _cache) => {
			return (0, vue.unref)(itemContext).isSelected.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Primitive_Primitive.Primitive), (0, vue.mergeProps)({
				key: 0,
				"aria-hidden": "true"
			}, props), {
				default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
				_: 3
			}, 16)) : (0, vue.createCommentVNode)("v-if", true);
		};
	}
});

//#endregion
//#region src/Listbox/ListboxItemIndicator.vue
var ListboxItemIndicator_default = ListboxItemIndicator_vue_vue_type_script_setup_true_lang_default;

//#endregion
Object.defineProperty(exports, 'ListboxItemIndicator_default', {
  enumerable: true,
  get: function () {
    return ListboxItemIndicator_default;
  }
});
//# sourceMappingURL=ListboxItemIndicator.cjs.map