{"version":3,"file":"SelectItem.vue.cjs","sources":["../../../../src/components/shadcn/SelectItem.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { SelectItemProps } from \"reka-ui\"\nimport type { HTMLAttributes } from \"vue\"\nimport { reactiveOmit } from \"@vueuse/core\"\nimport { Check } from \"lucide-vue-next\"\nimport {\n  SelectItem,\n  SelectItemIndicator,\n\n  SelectItemText,\n  useForwardProps,\n} from \"reka-ui\"\nimport { cn } from \"@/lib/utils\"\n\nconst props = defineProps<SelectItemProps & { class?: HTMLAttributes[\"class\"] }>()\n\nconst delegatedProps = reactiveOmit(props, \"class\")\n\nconst forwardedProps = useForwardProps(delegatedProps)\n</script>\n\n<template>\n  <SelectItem\n    v-bind=\"forwardedProps\"\n    :class=\"\n      cn(\n        'relative flex w-full cursor-default select-none items-center rounded-sm py-1 pl-7 pr-2 text-xs outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n        props.class,\n      )\n    \"\n  >\n    <span class=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <SelectItemIndicator>\n        <Check class=\"h-3.5 w-3.5\" />\n      </SelectItemIndicator>\n    </span>\n\n    <SelectItemText>\n      <slot />\n    </SelectItemText>\n  </SelectItem>\n</template>\n"],"names":["props","__props","delegatedProps","reactiveOmit","forwardedProps","useForwardProps","_createBlock","_unref","SelectItem","_mergeProps","cn","_createElementVNode","_hoisted_1","_createVNode","SelectItemIndicator","Check","SelectItemText","_renderSlot","_ctx"],"mappings":"ucAcA,MAAMA,EAAQC,EAERC,EAAiBC,EAAAA,aAAaH,EAAO,OAAO,EAE5CI,EAAiBC,EAAAA,gBAAgBH,CAAc,8BAInDI,EAAAA,YAkBaC,EAAAA,MAAAC,EAAAA,UAAA,EAlBbC,EAAAA,WAkBaF,QAAAH,CAAA,EAjBW,CACrB,MAAcG,EAAAA,MAAAG,IAAA,4NAA+OV,EAAM,KAAA,uBAOpQ,IAIO,CAJPW,EAAAA,mBAIO,OAJPC,EAIO,CAHLC,EAAAA,YAEsBN,EAAAA,MAAAO,qBAAA,EAAA,KAAA,mBADpB,IAA6B,CAA7BD,EAAAA,YAA6BN,EAAAA,MAAAQ,EAAAA,KAAA,EAAA,CAAtB,MAAM,cAAa,CAAA,WAI9BF,EAAAA,YAEiBN,EAAAA,MAAAS,gBAAA,EAAA,KAAA,mBADf,IAAQ,CAARC,aAAQC,EAAA,OAAA,SAAA,CAAA"}