{
  "version": 3,
  "sources": ["ssg:https://asset.29cm.co.kr/contents/framer/components/ruler/Badge/Badge.constants.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/ruler/Badge/Badge.utils.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/ruler/Badge/Badge.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/ruler/Badge/Badge.types.js", "ssg:https://asset.29cm.co.kr/contents/framer/libs/property-controls/badge.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/Badge/Badge.js", "ssg:https://framerusercontent.com/modules/ujMK2tuF8Uh4yfdgJfeZ/IubTds5GYI6HTrke7tQJ/RulerBadge.js"],
  "sourcesContent": ["import \"react/jsx-runtime\";\nimport { plus } from \"../../@shared/Icon/assets/plus.js\";\nimport { heart } from \"../../@shared/Icon/assets/heart.js\";\nimport { bell } from \"../../@shared/Icon/assets/bell.js\";\nimport { gift } from \"../../@shared/Icon/assets/gift.js\";\nimport { share } from \"../../@shared/Icon/assets/share.js\";\nimport { scrap } from \"../../@shared/Icon/assets/scrap.js\";\nimport { lock } from \"../../@shared/Icon/assets/lock.js\";\nimport { lockOff } from \"../../@shared/Icon/assets/lockOff.js\";\nconst UNSET_COLOR = {\n  backgroundColor: \"#000000\",\n  color: \"#FFFFFF\"\n};\nconst prefixIconAssets = {\n  plus,\n  scrap,\n  lock,\n  lockOff,\n  heart,\n  bell,\n  gift,\n  share\n};\nconst BADGE_PREFIX_ICON_OPTIONS = Object.keys(prefixIconAssets);\nexport {\n  BADGE_PREFIX_ICON_OPTIONS,\n  UNSET_COLOR\n};\n", "const getBadgeBackgroundColor = (backgroundColor, isBlur) => {\n  if (typeof backgroundColor === \"string\") {\n    return backgroundColor;\n  }\n  if (isBlur) {\n    return backgroundColor.hasBlur;\n  }\n  return backgroundColor.default;\n};\nconst getBadgeTextColor = (color, isBlur) => {\n  if (typeof color === \"string\") {\n    return color;\n  }\n  if (isBlur) {\n    return color.hasBlur;\n  }\n  return color.default;\n};\nexport {\n  getBadgeBackgroundColor,\n  getBadgeTextColor\n};\n", "import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { Icon } from \"../../@shared/Icon/Icon.js\";\nimport { typography } from \"../../../styles/typography.js\";\nimport { UNSET_COLOR } from \"./Badge.constants.js\";\nimport { getBadgeBackgroundColor, getBadgeTextColor } from \"./Badge.utils.js\";\nconst Badge = forwardRef(({\n  variant = \"system\",\n  priority = \"primary\",\n  tone = \"default\",\n  size = \"small\",\n  isWhite = false,\n  isBlur = false,\n  prefixIcon,\n  label = \"Label\",\n  customBackgroundColor = \"#000000\",\n  customTextColor = \"#FFFFFF\",\n  style,\n  ...rest\n}, ref) => {\n  var _a;\n  const theme = isWhite ? \"light\" : \"dark\";\n  const customizedBadgeColor = {\n    backgroundColor: customBackgroundColor,\n    color: customTextColor\n  };\n  const configuredBadgeColors = ((_a = badgeStyleByVariant[priority][tone]) == null ? void 0 : _a[theme]) ?? UNSET_COLOR;\n  const {\n    backgroundColor,\n    color\n  } = variant === \"custom\" ? customizedBadgeColor : configuredBadgeColors;\n  const badgeBackgroundColor = getBadgeBackgroundColor(backgroundColor, isBlur);\n  const badgeTextColor = getBadgeTextColor(color, isBlur);\n  const badgePadding = prefixIcon ? badgeStyleBySize[size].padding.withPrefixIcon : badgeStyleBySize[size].padding.default;\n  const badgeStyle = {\n    ...baseBadgeStyle,\n    ...badgeStyleBySize[size],\n    padding: badgePadding,\n    backgroundColor: badgeBackgroundColor,\n    color: badgeTextColor\n  };\n  return /* @__PURE__ */ jsxs(\"div\", { style: {\n    ...badgeStyle,\n    ...style\n  }, ref, ...rest, children: [\n    prefixIcon ? /* @__PURE__ */ jsx(Icon, { type: prefixIcon, fill: true, size: iconSizeByBadgeSize[size], color: badgeTextColor, weight: \"bold\" }) : null,\n    /* @__PURE__ */ jsx(\"span\", { children: label })\n  ] });\n});\nconst baseBadgeStyle = {\n  display: \"flex\",\n  gap: \"2px\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  borderRadius: \"2px\",\n  whiteSpace: \"nowrap\"\n};\nconst badgeStyleBySize = {\n  medium: {\n    ...typography(12, 500, \"16.32px\"),\n    padding: {\n      default: \"4px 8px\",\n      withPrefixIcon: \"4px 8px 4px 6px\"\n    }\n  },\n  small: {\n    ...typography(10, 500, \"12px\"),\n    padding: {\n      default: \"2px 6px\",\n      withPrefixIcon: \"2px 6px 2px 4px\"\n    }\n  }\n};\nconst badgeStyleByVariant = {\n  primary: {\n    default: {\n      light: {\n        backgroundColor: \"#FFFFFF\",\n        color: \"#000000\"\n      },\n      dark: {\n        backgroundColor: \"#000000\",\n        color: \"#FFFFFF\"\n      }\n    },\n    information: {\n      dark: {\n        backgroundColor: \"#375FFF\",\n        color: \"#FFFFFF\"\n      }\n    },\n    positive: {\n      dark: {\n        backgroundColor: \"#12BA23\",\n        color: \"#FFFFFF\"\n      }\n    },\n    negative: {\n      dark: {\n        backgroundColor: \"#D53F00\",\n        color: \"#FFFFFF\"\n      }\n    }\n  },\n  secondary: {\n    default: {\n      dark: {\n        backgroundColor: {\n          default: \"#F4F4F4\",\n          hasBlur: \"#5D5D5D80\"\n        },\n        color: {\n          default: \"#474747\",\n          hasBlur: \"#FFFFFF\"\n        }\n      }\n    },\n    information: {\n      dark: {\n        backgroundColor: \"#345FFF14\",\n        color: \"#375FFF\"\n      }\n    },\n    positive: {\n      dark: {\n        backgroundColor: \"#16BA2214\",\n        color: \"#12BA23\"\n      }\n    },\n    negative: {\n      dark: {\n        backgroundColor: \"#FF480014\",\n        color: \"#D53F00\"\n      }\n    }\n  },\n  tertiary: {\n    default: {\n      dark: {\n        backgroundColor: \"#F4F4F4\",\n        color: \"#A0A0A0\"\n      }\n    }\n  }\n};\nconst iconSizeByBadgeSize = {\n  medium: 12,\n  small: 10\n};\nexport {\n  Badge\n};\n", "var BadgeVariant = /* @__PURE__ */ ((BadgeVariant2) => {\n  BadgeVariant2[\"CUSTOM\"] = \"custom\";\n  BadgeVariant2[\"SYSTEM\"] = \"system\";\n  return BadgeVariant2;\n})(BadgeVariant || {});\nvar BadgePriority = /* @__PURE__ */ ((BadgePriority2) => {\n  BadgePriority2[\"PRIMARY\"] = \"primary\";\n  BadgePriority2[\"SECONDARY\"] = \"secondary\";\n  BadgePriority2[\"TERTIARY\"] = \"tertiary\";\n  return BadgePriority2;\n})(BadgePriority || {});\nvar BadgeTone = /* @__PURE__ */ ((BadgeTone2) => {\n  BadgeTone2[\"DEFAULT\"] = \"default\";\n  BadgeTone2[\"INFORMATION\"] = \"information\";\n  BadgeTone2[\"POSITIVE\"] = \"positive\";\n  BadgeTone2[\"NEGATIVE\"] = \"negative\";\n  return BadgeTone2;\n})(BadgeTone || {});\nvar BadgeSize = /* @__PURE__ */ ((BadgeSize2) => {\n  BadgeSize2[\"SMALL\"] = \"small\";\n  BadgeSize2[\"medium\"] = \"medium\";\n  return BadgeSize2;\n})(BadgeSize || {});\nexport {\n  BadgePriority,\n  BadgeSize,\n  BadgeTone,\n  BadgeVariant\n};\n", "import { ControlType } from \"framer\";\nimport { BADGE_PREFIX_ICON_OPTIONS } from \"../../components/ruler/Badge/Badge.constants.js\";\nimport { BadgeVariant, BadgePriority, BadgeTone, BadgeSize } from \"../../components/ruler/Badge/Badge.types.js\";\nconst BADGE_CONTROL_ITEMS = {\n  variant: {\n    type: ControlType.Enum,\n    title: \"variant\",\n    options: [BadgeVariant.SYSTEM, BadgeVariant.CUSTOM],\n    defaultValue: BadgeVariant.SYSTEM\n  },\n  priority: {\n    type: ControlType.Enum,\n    title: \"priority\",\n    options: [BadgePriority.PRIMARY, BadgePriority.SECONDARY, BadgePriority.TERTIARY],\n    defaultValue: BadgePriority.PRIMARY\n  },\n  customBackgroundColor: {\n    hidden: ({\n      variant\n    }) => variant !== BadgeVariant.CUSTOM,\n    type: ControlType.Color,\n    title: \"\uBC30\uACBD \uC0C9\uC0C1\",\n    defaultValue: \"#000000\"\n  },\n  customTextColor: {\n    hidden: ({\n      variant\n    }) => variant !== BadgeVariant.CUSTOM,\n    type: ControlType.Color,\n    title: \"\uD14D\uC2A4\uD2B8 \uC0C9\uC0C1\",\n    defaultValue: \"#FFFFFF\"\n  },\n  tone: {\n    hidden: ({\n      variant\n    }) => variant === BadgeVariant.CUSTOM,\n    type: ControlType.Enum,\n    title: \"tone\",\n    options: [BadgeTone.DEFAULT, BadgeTone.INFORMATION, BadgeTone.NEGATIVE, BadgeTone.POSITIVE],\n    defaultValue: BadgeTone.DEFAULT\n  },\n  size: {\n    type: ControlType.Enum,\n    title: \"\uD06C\uAE30\",\n    options: [BadgeSize.SMALL, BadgeSize.medium],\n    defaultValue: BadgeSize.SMALL\n  },\n  isWhite: {\n    hidden: ({\n      variant\n    }) => variant === BadgeVariant.CUSTOM,\n    type: ControlType.Boolean,\n    defaultValue: false,\n    title: \"\uD654\uC774\uD2B8 \uC18D\uC131 \uC5EC\uBD80\"\n  },\n  isBlur: {\n    hidden: ({\n      variant\n    }) => variant === BadgeVariant.CUSTOM,\n    type: ControlType.Boolean,\n    defaultValue: false,\n    title: \"\uD22C\uBA85\uB3C4 \uC5EC\uBD80\"\n  },\n  prefixIcon: {\n    type: ControlType.Enum,\n    title: \"\uC88C\uCE21 \uC544\uC774\uCF58\",\n    options: [void 0, ...BADGE_PREFIX_ICON_OPTIONS],\n    optionTitles: [\"\uC120\uD0DD \uC548 \uD568\", ...BADGE_PREFIX_ICON_OPTIONS],\n    defaultValue: void 0\n  },\n  label: {\n    type: ControlType.String,\n    defaultValue: \"\uB77C\uBCA8 \uD14D\uC2A4\uD2B8\",\n    title: \"\uB77C\uBCA8\"\n  }\n};\nconst BADGE_CONTROLS = {\n  badge: ControlType.Object,\n  title: \"\uBC43\uC9C0\",\n  controls: BADGE_CONTROL_ITEMS\n};\nexport {\n  BADGE_CONTROLS,\n  BADGE_CONTROL_ITEMS\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls } from \"framer\";\nimport { Badge } from \"../../ruler/Badge/Badge.js\";\nimport { BADGE_CONTROL_ITEMS } from \"../../../libs/property-controls/badge.js\";\nconst FramerBadge = (props) => {\n  return /* @__PURE__ */ jsx(Badge, { ...props });\n};\naddPropertyControls(FramerBadge, {\n  ...BADGE_CONTROL_ITEMS\n});\nexport {\n  FramerBadge\n};\n", "/** local */// import { Badge } from \"https://localhost:4173/components/systems/Badge/Badge.js\"\n/** dev */// import { Badge } from \"https://asset.29cm.co.kr/contents/framer/dev/components/systems/Badge/Badge.js\"\n/** production */import{Badge}from\"https://asset.29cm.co.kr/contents/framer/components/systems/Badge/index.js\";/**\n * @framerDisableUnlink\n */export default Badge;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Badge\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RulerBadge.map"],
  "mappings": "gLASA,IAAMA,EAAc,CAClB,gBAAiB,UACjB,MAAO,SACT,EACMC,EAAmB,CACvB,KAAAC,EACA,MAAAC,EACA,KAAAC,EACA,QAAAC,EACA,MAAAC,EACA,KAAAC,EACA,KAAAC,EACA,MAAAC,CACF,EACMC,EAA4B,OAAO,KAAKT,CAAgB,ECvB9D,IAAMU,EAA0B,CAACC,EAAiBC,IAC5C,OAAOD,GAAoB,SACtBA,EAELC,EACKD,EAAgB,QAElBA,EAAgB,QAEnBE,EAAoB,CAACC,EAAOF,IAC5B,OAAOE,GAAU,SACZA,EAELF,EACKE,EAAM,QAERA,EAAM,QCVf,IAAMC,EAAQC,EAAW,CAAC,CACxB,QAAAC,EAAU,SACV,SAAAC,EAAW,UACX,KAAAC,EAAO,UACP,KAAAC,EAAO,QACP,QAAAC,EAAU,GACV,OAAAC,EAAS,GACT,WAAAC,EACA,MAAAC,EAAQ,QACR,sBAAAC,EAAwB,UACxB,gBAAAC,EAAkB,UAClB,MAAAC,EACA,GAAGC,CACL,EAAGC,IAAQ,CACT,IAAIC,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
  "names": ["UNSET_COLOR", "prefixIconAssets", "plus", "scrap", "lock", "lockOff", "heart", "bell", "gift", "share", "BADGE_PREFIX_ICON_OPTIONS", "getBadgeBackgroundColor", "backgroundColor", "isBlur", "getBadgeTextColor", "color", "Badge", "Y", "variant", "priority", "tone", "size", "isWhite", "isBlur", "prefixIcon", "label", "customBackgroundColor", "customTextColor", "style", "rest", "ref", "_a", "theme", "customizedBadgeColor", "configuredBadgeColors", "badgeStyleByVariant", "UNSET_COLOR", "backgroundColor", "color", "badgeBackgroundColor", "getBadgeBackgroundColor", "badgeTextColor", "getBadgeTextColor", "badgePadding", "badgeStyleBySize", "badgeStyle", "baseBadgeStyle", "u", "Icon", "iconSizeByBadgeSize", "typography", "BadgeVariant", "BadgeVariant2", "BadgePriority", "BadgePriority2", "BadgeTone", "BadgeTone2", "BadgeSize", "BadgeSize2", "BADGE_CONTROL_ITEMS", "ControlType", "BadgeVariant", "BadgePriority", "variant", "BadgeTone", "BadgeSize", "BADGE_PREFIX_ICON_OPTIONS", "BADGE_CONTROLS", "FramerBadge", "props", "Badge", "addPropertyControls", "BADGE_CONTROL_ITEMS", "RulerBadge_default", "FramerBadge"]
}
