{"version":3,"file":"index-DqZfT9HW.js","sources":["../../../node_modules/reka-ui/dist/shared/renderSlotFragments.js","../../../node_modules/reka-ui/dist/Primitive/Slot.js","../../../node_modules/reka-ui/dist/Primitive/Primitive.js","../../../app/javascript/components/ui/input/Input.vue","../../../app/javascript/components/ui/button/Button.vue","../../../app/javascript/components/ui/button/index.ts"],"sourcesContent":["import { Fragment } from 'vue';\n\nfunction renderSlotFragments(children) {\n if (!children)\n return [];\n return children.flatMap((child) => {\n if (child.type === Fragment)\n return renderSlotFragments(child.children);\n return [child];\n });\n}\n\nexport { renderSlotFragments as r };\n//# sourceMappingURL=renderSlotFragments.js.map\n","import { defineComponent, Comment, mergeProps, cloneVNode } from 'vue';\nimport { r as renderSlotFragments } from '../shared/renderSlotFragments.js';\n\nconst Slot = defineComponent({\n name: \"PrimitiveSlot\",\n inheritAttrs: false,\n setup(_, { attrs, slots }) {\n return () => {\n if (!slots.default)\n return null;\n const childrens = renderSlotFragments(slots.default());\n const firstNonCommentChildrenIndex = childrens.findIndex((child) => child.type !== Comment);\n if (firstNonCommentChildrenIndex === -1)\n return childrens;\n const firstNonCommentChildren = childrens[firstNonCommentChildrenIndex];\n delete firstNonCommentChildren.props?.ref;\n const mergedProps = firstNonCommentChildren.props ? mergeProps(attrs, firstNonCommentChildren.props) : attrs;\n if (attrs.class && firstNonCommentChildren.props?.class)\n delete firstNonCommentChildren.props.class;\n const cloned = cloneVNode(firstNonCommentChildren, mergedProps);\n for (const prop in mergedProps) {\n if (prop.startsWith(\"on\")) {\n cloned.props ||= {};\n cloned.props[prop] = mergedProps[prop];\n }\n }\n if (childrens.length === 1)\n return cloned;\n childrens[firstNonCommentChildrenIndex] = cloned;\n return childrens;\n };\n }\n});\n\nexport { Slot as S };\n//# sourceMappingURL=Slot.js.map\n","import { defineComponent, h } from 'vue';\nimport { S as Slot } from './Slot.js';\n\nconst Primitive = defineComponent({\n name: \"Primitive\",\n inheritAttrs: false,\n props: {\n asChild: {\n type: Boolean,\n default: false\n },\n as: {\n type: [String, Object],\n default: \"div\"\n }\n },\n setup(props, { attrs, slots }) {\n const asTag = props.asChild ? \"template\" : props.as;\n const SELF_CLOSING_TAGS = [\"area\", \"img\", \"input\"];\n if (typeof asTag === \"string\" && SELF_CLOSING_TAGS.includes(asTag))\n return () => h(asTag, attrs);\n if (asTag !== \"template\")\n return () => h(props.as, attrs, { default: slots.default });\n return () => h(Slot, attrs, { default: slots.default });\n }\n});\n\nexport { Primitive as P };\n//# sourceMappingURL=Primitive.js.map\n","\n\n\n","\n\n\n","import { cva, type VariantProps } from 'class-variance-authority'\n\nexport { default as Button } from './Button.vue'\n\nexport const buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground shadow hover:bg-primary/90',\n destructive:\n 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90',\n outline:\n 'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground',\n secondary:\n 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n default: 'h-9 px-4 py-2',\n xs: 'h-7 rounded px-2',\n sm: 'h-8 rounded-md px-3 text-xs',\n lg: 'h-10 rounded-md px-8',\n icon: 'h-9 w-9',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n)\n\nexport type ButtonVariants = VariantProps\n"],"names":["renderSlotFragments","children","child","Fragment","Slot","defineComponent","_","attrs","slots","childrens","firstNonCommentChildrenIndex","Comment","firstNonCommentChildren","_a","mergedProps","mergeProps","_b","cloned","cloneVNode","prop","Primitive","props","asTag","h","__props","modelValue","useVModel","__emit","buttonVariants","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