{"version":3,"file":"JDivider.vue.cjs","sources":["../../../../src/components/atoms/JDivider.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { Separator } from '@/components/shadcn'\n\ntype StyleType = 'default' | 'primary' | 'secondary' | 'muted' | 'sm' | 'lg'\n\nconst props = withDefaults(\n  defineProps<{\n    /** 구분선 방향 */\n    orientation?: 'horizontal' | 'vertical'\n    /** 구분선 스타일 테마 */\n    styletype?: StyleType\n    /** 추가 CSS 클래스 */\n    class?: string\n  }>(),\n  {\n    orientation: 'horizontal',\n    styletype: 'default',\n  },\n)\n\nconst STYLE_PRESETS: Record<StyleType, { class?: string }> = {\n  default: { class: 'bg-border' },\n  primary: { class: 'bg-primary' },\n  secondary: { class: 'bg-secondary' },\n  muted: { class: 'bg-muted' },\n  sm: { class: 'h-px' },\n  lg: { class: 'h-0.5' },\n}\n\nconst mapped = computed(() => {\n  const styleKey = props.styletype || 'default'\n  const preset = STYLE_PRESETS[styleKey] ?? STYLE_PRESETS.default\n  const finalClass = [preset?.class, props.class].filter(Boolean).join(' ')\n\n  return {\n    orientation: props.orientation,\n    class: finalClass,\n  }\n})\n</script>\n\n<template>\n  <Separator v-bind=\"mapped\" />\n</template>\n"],"names":["props","__props","STYLE_PRESETS","mapped","computed","styleKey","finalClass","_openBlock","_createBlock","_unref"],"mappings":"mVAMA,MAAMA,EAAQC,EAeRC,EAAuD,CAC3D,QAAS,CAAE,MAAO,WAAA,EAClB,QAAS,CAAE,MAAO,YAAA,EAClB,UAAW,CAAE,MAAO,cAAA,EACpB,MAAO,CAAE,MAAO,UAAA,EAChB,GAAI,CAAE,MAAO,MAAA,EACb,GAAI,CAAE,MAAO,OAAA,CAAQ,EAGjBC,EAASC,EAAAA,SAAS,IAAM,CAC5B,MAAMC,EAAWL,EAAM,WAAa,UAE9BM,EAAa,EADJJ,EAAcG,CAAQ,GAAKH,EAAc,UAC5B,MAAOF,EAAM,KAAK,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAExE,MAAO,CACL,YAAaA,EAAM,YACnB,MAAOM,CAAA,CAEX,CAAC,gBAICC,EAAAA,UAAA,EAAAC,EAAAA,YAA6BC,EAAAA,uDAAVN,EAAA,KAAM,CAAA,EAAA,KAAA,EAAA"}