{"version":3,"file":"InfiniteEntryRaffleGroup.CDTOchKJ.mjs","names":["useState","useRef","forwardRef","useMemo","useState","useState","createContext","useState","useContext","useMemo","Fragment","useCallback","useCallback","useState","useCallback","useCallback","useRef","useCallback","useState","Fragment","Default","Default","useRef"],"sources":["https:/asset.29cm.co.kr/contents/framer/components/systems/curations/Slider/Slider.js","https:/asset.29cm.co.kr/contents/framer/utils/raffle/raffleStatus.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/InfiniteEntryRaffleGroup.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/Tooltip/Tooltip.js","https:/asset.29cm.co.kr/contents/framer/hooks/raffle/useRaffleStatus.js","https:/asset.29cm.co.kr/contents/framer/utils/raffle/timeUtils.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/styles.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/RaffleGroupProvider.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/RaffleEntryInfo.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/application/useRaffleAgreements.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/application/useRaffleModals.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/application/useRaffleApplicableCheck.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/application/useRaffleApplication.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/useWithLoginInRaffle.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/application/useRaffleVerification.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/application/useRaffleApplicationFlow.js","https:/asset.29cm.co.kr/contents/framer/utils/maskName.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/share/usePlatformSharing.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/share/useRaffleSharingAgreements.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/share/useRaffleOneLinkGeneration.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/share/useRaffleSharingFlow.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/useFirstRaffleShareTooltip.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/RaffleActionArea.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/RaffleInfo.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/RaffleThumbnail.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/RaffleCard.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/RaffleCardSkeleton.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/RaffleInfoArea.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/RaffleNotices.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/SingleTypeNotice.js","https:/asset.29cm.co.kr/contents/framer/utils/guest-cookie/manageGuestCookie.js","https:/asset.29cm.co.kr/contents/framer/utils/raffle/manageRaffleGuestCookie.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/hooks/useVisitReward.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/InfiniteEntryRaffleGroup.js","https:/framerusercontent.com/modules/m766lqh9GzkYS46zSkmh/jJjJTrIbcMC3NkldmMR4/InfiniteEntryRaffleGroup.js"],"sourcesContent":["import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useState, useRef, useEffect, useImperativeHandle } from \"react\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../hooks/useTheme.js\";\nimport { useBreakpoint } from \"../../../../hooks/useBreakpoint.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { ArrowIcon } from \"../ArrowIcon/ArrowIcon.js\";\nimport { Grid as Default$1 } from \"../../../@shared/layouts/Grid.js\";\nconst NAVIGATOR_SIZE = 50;\nconst SKELETONS_PER_PENDING = 3;\nconst Slider = ({\n  gap,\n  itemWidth,\n  items = [],\n  renderItem,\n  renderFallback\n}, ref) => {\n  const breakpoint = useBreakpoint();\n  const theme = useTheme();\n  const [hasPrevious, setHasPrevious] = useState(false);\n  const [hasNext, setHasNext] = useState(false);\n  const listRef = useRef(null);\n  const isScrolling = useRef(false);\n  const isPending = !items || items.length === 0;\n  useEffect(() => {\n    if (isPending) {\n      return;\n    }\n    const container = listRef.current;\n    if (container === null) {\n      return;\n    }\n    const hasNextContent = container.scrollWidth > container.clientWidth;\n    setHasNext(hasNextContent);\n  }, [isPending]);\n  const scrollTo = (direction) => {\n    if (isScrolling.current) {\n      return;\n    }\n    const container = listRef.current;\n    if (container === null) {\n      return;\n    }\n    const position = getScrollPosition(container, gap, direction);\n    setHasNext(position < Math.ceil(container.scrollWidth - container.clientWidth));\n    setHasPrevious(position > 0);\n    isScrolling.current = true;\n    container.scroll({\n      behavior: \"smooth\",\n      left: position\n    });\n    setTimeout(() => {\n      isScrolling.current = false;\n    }, 700);\n  };\n  const handlePreviousClick = () => {\n    if (hasPrevious) {\n      scrollTo(\"previous\");\n    }\n  };\n  const handleNextClick = () => {\n    if (hasNext) {\n      scrollTo(\"next\");\n    }\n  };\n  const shouldRenderNavigator = breakpoint === \"desktop\" && (hasPrevious || hasNext);\n  const applyScrollSnap = breakpoint !== \"desktop\";\n  useImperativeHandle(ref, () => ({\n    focusTo: (index) => {\n      const container = listRef.current;\n      if (container === null) {\n        return;\n      }\n      const left = (container.scrollWidth / items.length - 1) * index;\n      container.scroll({\n        behavior: \"smooth\",\n        left\n      });\n    }\n  }));\n  return /* @__PURE__ */ jsxs(\"div\", { style: containerStyle, children: [\n    shouldRenderNavigator ? /* @__PURE__ */ jsx(ArrowIcon, { style: {\n      ...baseNavigatorStyle,\n      ...leftNavigatorStyle\n    }, color: hasPrevious ? iconColorByTheme[theme] : disabledIconColorByTheme[theme], onClick: handlePreviousClick }) : null,\n    /* @__PURE__ */ jsx(Default$1, { ref: listRef, style: {\n      ...listStyle,\n      ...listStyleByBreakpoint[breakpoint],\n      overflowX: shouldRenderNavigator ? \"hidden\" : \"scroll\",\n      overflowY: \"hidden\",\n      scrollSnapType: applyScrollSnap ? \"x mandatory\" : \"none\",\n      WebkitScrollSnapType: applyScrollSnap ? \"x mandatory\" : \"none\"\n    }, row: {\n      count: 1\n    }, column: {\n      gap,\n      width: itemWidth\n    }, children: isPending ? Array.from({\n      length: SKELETONS_PER_PENDING\n    }).map((_, index) => /* @__PURE__ */ jsx(\"div\", { children: renderFallback == null ? void 0 : renderFallback() }, index)) : items.map((item, index) => /* @__PURE__ */ jsx(\"div\", { style: {\n      scrollSnapAlign: \"start\"\n    }, children: renderItem(item, index) }, index)) }),\n    shouldRenderNavigator ? /* @__PURE__ */ jsx(ArrowIcon, { style: {\n      ...baseNavigatorStyle,\n      ...rightNavigatorStyle\n    }, color: hasNext ? iconColorByTheme[theme] : disabledIconColorByTheme[theme], onClick: handleNextClick }) : null\n  ] });\n};\nconst Default = forwardRef(Slider);\nconst getScrollPosition = (container, inset, direction) => {\n  const offset = container.clientWidth + inset;\n  return Math.ceil(container.scrollLeft + (direction === \"previous\" ? -offset : offset));\n};\nconst containerStyle = {\n  position: \"relative\",\n  width: \"100%\"\n};\nconst iconColorByTheme = {\n  light: \"#000\",\n  dark: \"#fff\"\n};\nconst disabledIconColorByTheme = {\n  light: \"#a0a0a0\",\n  dark: \"#474747\"\n};\nconst baseNavigatorStyle = {\n  position: \"absolute\",\n  top: \"50%\",\n  cursor: \"pointer\"\n};\nconst leftNavigatorStyle = {\n  left: `-${NAVIGATOR_SIZE}px`,\n  transform: \"translateY(-50%) rotate(180deg)\"\n};\nconst rightNavigatorStyle = {\n  right: `-${NAVIGATOR_SIZE}px`,\n  transform: \"translateY(-50%)\"\n};\nconst listStyle = {\n  msOverflowStyle: \"none\",\n  scrollbarWidth: \"none\"\n};\nconst listStyleByBreakpoint = {\n  mobile: {\n    padding: \"0 20px\",\n    scrollPaddingLeft: 20,\n    scrollPaddingRight: 20\n  },\n  tablet: {\n    padding: \"0 20px\",\n    scrollPaddingLeft: 20,\n    scrollPaddingRight: 20\n  },\n  desktop: {\n    padding: 0\n  }\n};\nexport {\n  Default as Slider\n};\n","import { createKRTimeZoneDate } from \"../createUTCDate.js\";\nimport { compareDesc } from \"../../node_modules/date-fns/compareDesc.js\";\nimport { isBefore } from \"../../node_modules/date-fns/isBefore.js\";\nimport { isAfter } from \"../../node_modules/date-fns/isAfter.js\";\nimport { compareAsc } from \"../../node_modules/date-fns/compareAsc.js\";\nvar RaffleStatus = /* @__PURE__ */ ((RaffleStatus2) => {\n  RaffleStatus2[RaffleStatus2[\"UpComing\"] = 0] = \"UpComing\";\n  RaffleStatus2[RaffleStatus2[\"InProgress\"] = 1] = \"InProgress\";\n  RaffleStatus2[RaffleStatus2[\"Finished\"] = 2] = \"Finished\";\n  RaffleStatus2[RaffleStatus2[\"Unknown\"] = 3] = \"Unknown\";\n  return RaffleStatus2;\n})(RaffleStatus || {});\nconst getRaffleStatus = (raffle) => {\n  try {\n    const now = createKRTimeZoneDate();\n    const startDate = createKRTimeZoneDate(raffle.applyStartedAt);\n    const endDate = createKRTimeZoneDate(raffle.applyEndedAt);\n    if (isBefore(now, startDate)) {\n      return 0;\n    }\n    if (isAfter(now, endDate)) {\n      return 2;\n    }\n    return 1;\n  } catch (error) {\n    return 3;\n  }\n};\nconst sortRafflesByStatus = (raffles) => {\n  return [...raffles].sort((a, b) => {\n    const statusA = getRaffleStatus(a);\n    const statusB = getRaffleStatus(b);\n    const statusPriority = {\n      [\n        1\n        /* InProgress */\n      ]: 3,\n      [\n        0\n        /* UpComing */\n      ]: 2,\n      [\n        2\n        /* Finished */\n      ]: 1,\n      [\n        3\n        /* Unknown */\n      ]: 0\n    };\n    const priorityDiff = statusPriority[statusB] - statusPriority[statusA];\n    if (priorityDiff !== 0) {\n      return priorityDiff;\n    }\n    switch (statusA) {\n      case 0:\n        return compareAsc(a.applyStartedAt, b.applyStartedAt);\n      case 2:\n        return compareDesc(a.applyEndedAt, b.applyEndedAt);\n      case 1:\n        return compareAsc(a.applyEndedAt, b.applyEndedAt);\n      default:\n        return 0;\n    }\n  });\n};\nconst getCurrentAvailableRaffle = (raffles) => {\n  return raffles.find(\n    (raffle) => getRaffleStatus(raffle) === 1\n    /* InProgress */\n  ) || null;\n};\nconst getAvailableRafflesCount = (raffles) => {\n  return raffles.filter(\n    (raffle) => getRaffleStatus(raffle) === 1\n    /* InProgress */\n  ).length;\n};\nconst isRaffleAvailable = (raffle) => {\n  return getRaffleStatus(raffle) === 1;\n};\nexport {\n  RaffleStatus,\n  getAvailableRafflesCount,\n  getCurrentAvailableRaffle,\n  getRaffleStatus,\n  isRaffleAvailable,\n  sortRafflesByStatus\n};\n","import { useMemo } from \"react\";\nimport { useLazyFetchRaffleGroup } from \"../../../../hooks/fetchers/useLazyFetchRaffleGroup.js\";\nimport { sortRafflesByStatus } from \"../../../../utils/raffle/raffleStatus.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nconst useInfiniteRaffleGroup = (raffleGroupId) => {\n  const {\n    raffleGroup,\n    isPending,\n    fetch,\n    mutate\n  } = useLazyFetchRaffleGroup(raffleGroupId);\n  const sortedRaffles = useMemo(() => {\n    return (raffleGroup == null ? void 0 : raffleGroup.raffleList) ? sortRafflesByStatus(raffleGroup.raffleList) : [];\n  }, [raffleGroup == null ? void 0 : raffleGroup.raffleList]);\n  const sortedRaffleGroup = useMemo(() => {\n    if (!raffleGroup) {\n      return void 0;\n    }\n    return {\n      ...raffleGroup,\n      raffleList: sortedRaffles\n    };\n  }, [raffleGroup, sortedRaffles]);\n  return {\n    raffleGroup: sortedRaffleGroup,\n    isPending,\n    fetch,\n    mutate\n  };\n};\nexport {\n  useInfiniteRaffleGroup\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { useState } from \"react\";\nimport \"framer\";\nimport { typography } from \"../../../styles/typography.js\";\nimport { colors } from \"../../../styles/colors.js\";\nconst Tooltip = ({\n  children,\n  content,\n  visible,\n  onVisibilityChange,\n  wrapperStyle,\n  tooltipStyle\n}) => {\n  const [internalVisible, setInternalVisible] = useState(false);\n  const isVisible = visible !== void 0 ? visible : internalVisible;\n  const handleMouseEnter = () => {\n    if (visible !== void 0) {\n      onVisibilityChange == null ? void 0 : onVisibilityChange(true);\n    } else {\n      setInternalVisible(true);\n    }\n  };\n  const handleMouseLeave = () => {\n    if (visible !== void 0) {\n      onVisibilityChange == null ? void 0 : onVisibilityChange(false);\n    } else {\n      setInternalVisible(false);\n    }\n  };\n  return /* @__PURE__ */ jsxs(\"div\", { style: {\n    position: \"relative\",\n    width: \"100%\",\n    ...wrapperStyle\n  }, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [\n    children,\n    /* @__PURE__ */ jsxs(\"div\", { style: {\n      position: \"absolute\",\n      bottom: \"100%\",\n      left: \"50%\",\n      transform: \"translateX(-50%)\",\n      marginBottom: 10,\n      zIndex: 1e3,\n      padding: 8,\n      backgroundColor: colors.red500,\n      color: colors.gray00,\n      borderRadius: \"4px\",\n      pointerEvents: \"none\",\n      minWidth: \"max-content\",\n      // 내용 크기 보장\n      display: isVisible ? \"block\" : \"none\",\n      ...typography(13, 500),\n      ...tooltipStyle\n    }, children: [\n      content,\n      /* @__PURE__ */ jsx(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"10\", height: \"6\", viewBox: \"0 0 10 6\", style: {\n        position: \"absolute\",\n        top: \"100%\",\n        left: \"50%\",\n        transform: \"translateX(-50%)\"\n      }, children: /* @__PURE__ */ jsx(\"path\", { d: \"M0 0L4.23178 5.07813C4.63157 5.55789 5.36843 5.55789 5.76822 5.07813L10 0L0 0Z\", fill: (tooltipStyle == null ? void 0 : tooltipStyle.backgroundColor) || colors.red500 }) })\n    ] })\n  ] });\n};\nexport {\n  Tooltip\n};\n","import { useState, useEffect } from \"react\";\nimport { getRaffleStatus, RaffleStatus } from \"../../utils/raffle/raffleStatus.js\";\nimport \"../../node_modules/js-cookie/dist/js.cookie.js\";\nimport useInterval from \"../../node_modules/react-use/esm/useInterval.js\";\nconst MS_IN_SECOND = 1e3;\nconst getRaffleInterval = (status) => {\n  switch (status) {\n    case RaffleStatus.Finished:\n      return null;\n    case RaffleStatus.Unknown:\n      return MS_IN_SECOND / 2;\n    default:\n      return MS_IN_SECOND;\n  }\n};\nconst useRaffleStatus = (raffle) => {\n  const initialStatus = raffle ? getRaffleStatus(raffle) : RaffleStatus.Unknown;\n  const [status, setStatus] = useState(initialStatus);\n  useEffect(() => {\n    if (raffle) {\n      setStatus(getRaffleStatus(raffle));\n    }\n    setStatus(RaffleStatus.Unknown);\n  }, [raffle]);\n  const intervalCallback = () => {\n    if (!raffle) {\n      return;\n    }\n    setStatus(getRaffleStatus(raffle));\n  };\n  useInterval(intervalCallback, getRaffleInterval(status));\n  return status;\n};\nexport {\n  useRaffleStatus\n};\n","import { createKRTimeZoneDate } from \"../createUTCDate.js\";\nimport { differenceInHours } from \"../../node_modules/date-fns/differenceInHours.js\";\nimport { ko } from \"../../node_modules/date-fns/locale/ko.js\";\nimport { formatDate as format } from \"../../node_modules/date-fns/format.js\";\nconst isWithin24Hours = (endDate) => {\n  try {\n    const now = createKRTimeZoneDate();\n    const targetDate = createKRTimeZoneDate(endDate);\n    const hoursLeft = differenceInHours(targetDate, now);\n    return hoursLeft >= 0 && hoursLeft <= 24;\n  } catch {\n    return false;\n  }\n};\nconst formatKoreanDateTime = (dateString) => {\n  try {\n    const date = createKRTimeZoneDate(dateString);\n    return format(date, \"M.d (E) HH:mm\", {\n      locale: ko\n    });\n  } catch {\n    return dateString;\n  }\n};\nexport {\n  formatKoreanDateTime,\n  isWithin24Hours\n};\n","import \"react\";\nimport \"framer\";\nimport { typography } from \"../../../../styles/typography.js\";\nimport { colors } from \"../../../../styles/colors.js\";\nconst RAFFLE_CARD_WIDTH = 260;\nconst RAFFLE_CARD_GAP = 8;\nconst raffleGroupStyles = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: 12\n};\nconst raffleCardContainerStyles = {\n  flex: 1,\n  padding: 16,\n  borderRadius: 6,\n  display: \"flex\",\n  gap: 18,\n  flexDirection: \"column\"\n};\nconst raffleInfoAreaStyles = {\n  display: \"flex\",\n  gap: 16,\n  alignItems: \"center\",\n  flex: 1,\n  justifyContent: \"space-between\",\n  minHeight: 52,\n  paddingTop: 12\n};\nconst raffleInfoStyles = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: 6,\n  alignItems: \"center\",\n  marginTop: 2\n};\nconst raffleBrandTextStyles = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  ...typography(15, 500)\n};\nconst raffleProductNameStyles = {\n  marginTop: 2,\n  color: colors.gray400,\n  ...typography(15, 400)\n};\nconst rafflePriceStyles = {\n  display: \"flex\",\n  alignItems: \"center\",\n  gap: 6,\n  ...typography(16, 800)\n};\nconst raffleActionAreaStyles = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: 12,\n  alignItems: \"center\"\n};\nconst raffleStatusStyles = {\n  display: \"flex\",\n  alignItems: \"center\",\n  gap: 4,\n  ...typography(12, 400)\n};\nconst raffleEndDateStyles = {\n  color: colors.gray400\n};\nconst raffleEntryBaseTextStyles = {\n  ...typography(12, 400)\n};\nconst raffleEntryDateTextStyles = {\n  ...typography(12, 400),\n  color: colors.gray600\n  // 보조 텍스트\n};\nconst raffleEntryInfoContainerStyles = {\n  display: \"flex\",\n  alignItems: \"center\",\n  gap: 4,\n  justifyContent: \"center\",\n  ...typography(12, 400)\n};\nconst raffleThumbnailContainerStyles = {\n  borderRadius: 4,\n  position: \"relative\",\n  overflow: \"hidden\",\n  aspectRatio: \"4/3\"\n};\nconst raffleThumbnailStyles = {\n  backgroundColor: \"#e4e4e4\",\n  width: \"100%\",\n  height: \"100%\",\n  objectFit: \"cover\",\n  display: \"block\",\n  borderRadius: \"inherit\",\n  clipPath: \"inset(0 round 4px)\",\n  transform: \"translateZ(0)\"\n};\nconst raffleBadgeStyles = {\n  position: \"absolute\",\n  bottom: 10,\n  left: 10,\n  zIndex: 1\n};\nconst containerPaddingByBreakpoint = {\n  desktop: 0,\n  tablet: 20,\n  mobile: 20\n};\nconst textColorByTheme = {\n  light: {\n    color: colors.gray950\n  },\n  dark: {\n    color: colors.gray00\n  }\n};\nconst buttonColorByTheme = {\n  light: {\n    backgroundColor: colors.gray950,\n    color: colors.gray00\n  },\n  dark: {\n    backgroundColor: colors.gray700,\n    color: colors.gray00\n  }\n};\nconst buttonDisabledStyle = {\n  backgroundColor: colors.gray100,\n  color: colors.gray400\n};\nconst dividerColorByTheme = {\n  light: colors.gray950Alpha10,\n  dark: colors.gray700\n};\nexport {\n  RAFFLE_CARD_GAP,\n  RAFFLE_CARD_WIDTH,\n  buttonColorByTheme,\n  buttonDisabledStyle,\n  containerPaddingByBreakpoint,\n  dividerColorByTheme,\n  raffleActionAreaStyles,\n  raffleBadgeStyles,\n  raffleBrandTextStyles,\n  raffleCardContainerStyles,\n  raffleEndDateStyles,\n  raffleEntryBaseTextStyles,\n  raffleEntryDateTextStyles,\n  raffleEntryInfoContainerStyles,\n  raffleGroupStyles,\n  raffleInfoAreaStyles,\n  raffleInfoStyles,\n  rafflePriceStyles,\n  raffleProductNameStyles,\n  raffleStatusStyles,\n  raffleThumbnailContainerStyles,\n  raffleThumbnailStyles,\n  textColorByTheme\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { createContext, useState, useContext } from \"react\";\nconst RaffleGroupContext = createContext(null);\nconst RaffleGroupProvider = ({\n  raffleGroup,\n  revalidateRaffleGroup,\n  children\n}) => {\n  const [isGlobalTooltipHidden, setGlobalTooltipHidden] = useState(false);\n  const [isTooltipExposed, setTooltipExposed] = useState(false);\n  const hideGlobalTooltip = () => setGlobalTooltipHidden(true);\n  const setTooltipExposedHandler = () => setTooltipExposed(true);\n  return /* @__PURE__ */ jsx(RaffleGroupContext.Provider, { value: {\n    raffleGroup,\n    revalidateRaffleGroup,\n    hideGlobalTooltip,\n    isGlobalTooltipHidden,\n    isTooltipExposed,\n    setTooltipExposed: setTooltipExposedHandler\n  }, children });\n};\nconst useRaffleGroupContext = () => {\n  const context = useContext(RaffleGroupContext);\n  if (!context) {\n    throw new Error(\"useRaffleGroupContext must be used within RaffleGroupProvider\");\n  }\n  return context;\n};\nexport {\n  RaffleGroupProvider,\n  useRaffleGroupContext\n};\n","import { jsxs, jsx, Fragment } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { RaffleStatus } from \"../../../../utils/raffle/raffleStatus.js\";\nimport { formatKoreanDateTime, isWithin24Hours } from \"../../../../utils/raffle/timeUtils.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport { Countdown } from \"../../Countdown/Countdown.js\";\nimport { raffleEntryInfoContainerStyles, raffleEntryBaseTextStyles, textColorByTheme, raffleEntryDateTextStyles } from \"./styles.js\";\nimport { createKRTimeZoneDate } from \"../../../../utils/createUTCDate.js\";\nimport \"framer\";\nimport { colors } from \"../../../../styles/colors.js\";\nimport { useRaffleGroupContext } from \"./RaffleGroupProvider.js\";\nimport { Skeleton } from \"../../../@shared/Skeleton/Skeleton.js\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useThemeContext } from \"../../../@shared/providers/ThemeProvider/ThemeProvider.hooks.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../@shared/providers/SegmentProvider/SegmentProvider.js\";\nimport { ko } from \"../../../../node_modules/date-fns/locale/ko.js\";\nimport { formatDate as format } from \"../../../../node_modules/date-fns/format.js\";\nconst RaffleEntryInfo = ({\n  raffle,\n  status\n}) => {\n  const {\n    raffleGroup\n  } = useRaffleGroupContext();\n  const {\n    theme\n  } = useThemeContext();\n  const content = useMemo(() => {\n    switch (status) {\n      case RaffleStatus.UpComing:\n        return {\n          baseText: \"\",\n          dateText: `${formatKoreanDateTime(raffle.applyStartedAt)} 오픈`,\n          showCountdown: false\n        };\n      case RaffleStatus.InProgress: {\n        const baseText = `${raffle.applyCount}회 응모중`;\n        const isCloseToEnd = isWithin24Hours(raffle.applyEndedAt);\n        if (isCloseToEnd) {\n          return {\n            baseText,\n            dateText: \"\",\n            showCountdown: true,\n            countdownTarget: raffle.applyEndedAt\n          };\n        }\n        return {\n          baseText,\n          dateText: `${formatKoreanDateTime(raffle.applyEndedAt)} 까지`,\n          showCountdown: false\n        };\n      }\n      case RaffleStatus.Finished: {\n        const baseText = `${raffle.applyCount}회 응모완료`;\n        if (raffleGroup == null ? void 0 : raffleGroup.drawAt) {\n          const drawDate = formatKoreanDateTime(raffleGroup.drawAt);\n          return {\n            baseText,\n            dateText: `${drawDate} 당첨자 발표`,\n            showCountdown: false\n          };\n        }\n        return {\n          baseText,\n          dateText: \"\",\n          showCountdown: false\n        };\n      }\n      case RaffleStatus.Unknown:\n      default:\n        return {\n          baseText: \"\",\n          dateText: \"\",\n          showCountdown: false\n        };\n    }\n  }, [raffle, raffleGroup, status]);\n  const countdownTargetDate = useMemo(() => {\n    if (!content.countdownTarget) {\n      return void 0;\n    }\n    try {\n      const targetDate = createKRTimeZoneDate(content.countdownTarget);\n      const dateString = format(targetDate, \"yyyy-MM-dd\", {\n        locale: ko\n      });\n      const timeString = format(targetDate, \"HH:mm:ss\", {\n        locale: ko\n      });\n      return {\n        dateString,\n        timeString\n      };\n    } catch (error) {\n      return void 0;\n    }\n  }, [content.countdownTarget]);\n  return /* @__PURE__ */ jsxs(\"div\", { style: raffleEntryInfoContainerStyles, children: [\n    status === RaffleStatus.Unknown && /* @__PURE__ */ jsx(Skeleton, { style: {\n      height: 16\n    } }),\n    content.baseText && /* @__PURE__ */ jsx(\"span\", { style: {\n      ...raffleEntryBaseTextStyles,\n      ...textColorByTheme[theme]\n    }, children: content.baseText }),\n    content.showCountdown && countdownTargetDate ? /* @__PURE__ */ jsxs(Fragment, { children: [\n      /* @__PURE__ */ jsx(Countdown, { targetDateString: countdownTargetDate.dateString, targetTimeString: countdownTargetDate.timeString, dateDisplayFormat: \"none\", timeDisplayFormat: \"H:mm:ss\", fontSize: 12, color: colors.red500 }),\n      /* @__PURE__ */ jsx(\"span\", { style: {\n        color: colors.red500\n      }, children: \"남음\" })\n    ] }) : content.dateText && /* @__PURE__ */ jsx(\"span\", { style: raffleEntryDateTextStyles, children: content.dateText })\n  ] });\n};\nexport {\n  RaffleEntryInfo\n};\n","import useSWRMutation from \"../../../../../../node_modules/swr/mutation/dist/index.js\";\nimport { raffleApi } from \"../../../../../../apis/raffle/RaffleApiService.js\";\nimport { RaffleAgreementRequirement } from \"../../../../../../apis/raffle/RaffleApiService.types.js\";\nimport { useComponentId } from \"../../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { useAgreementsModal } from \"../../../../../../hooks/useAgreementsModal.js\";\nimport { entries } from \"../../../../../../utils/entries.js\";\nimport { shouldDisplayAgreeAllCheckbox } from \"../../../../../../utils/raffle/raffleAgreementUtils.js\";\nconst useRaffleAgreements = ({\n  raffleGroupId,\n  raffleId\n}) => {\n  const componentId = useComponentId();\n  const {\n    show: showAgreementsModal,\n    hide: hideAgreementsModal\n  } = useAgreementsModal();\n  const {\n    trigger: raffleAgree,\n    isMutating: isAgreeing\n  } = useSWRMutation(\"raffle-agree\", (_, {\n    arg\n  }) => raffleApi.postRaffleGroupAgreementsAgree({\n    raffleGroupId: arg.raffleGroupId,\n    raffleId: arg.raffleId,\n    agreementTypes: arg.agreementTypes\n  }));\n  const checkAllAgreed = (agreementInformation) => {\n    return agreementInformation.every((agreement) => agreement.isAgreed);\n  };\n  const handleAgreements = async ({\n    title,\n    description,\n    primaryButtonText,\n    agreementInformation,\n    onSuccess,\n    onError\n  }) => {\n    const agreements = agreementInformation.filter((agreement) => !agreement.isAgreed).map((agreement) => ({\n      type: agreement.agreementType,\n      label: agreement.label,\n      isRequired: agreement.agreementRequirement === RaffleAgreementRequirement.Required,\n      detailLink: agreement.linkUrl\n    }));\n    const displayAgreeAllCheckBox = shouldDisplayAgreeAllCheckbox(agreements);\n    showAgreementsModal({\n      title,\n      description,\n      primaryButtonText,\n      agreements,\n      displayAgreeAllCheckBox,\n      onSuccess: async (state) => {\n        const agreedTypes = entries(state).reduce((acc, [key, value]) => {\n          if (value) {\n            acc.push(key);\n          }\n          return acc;\n        }, []);\n        if (agreedTypes.length > 0 && !isAgreeing) {\n          try {\n            await raffleAgree({\n              raffleGroupId: raffleGroupId.toString(),\n              raffleId: raffleId.toString(),\n              agreementTypes: agreedTypes\n            });\n          } catch (error) {\n            hideAgreementsModal();\n            onError == null ? void 0 : onError(error);\n            return;\n          }\n        }\n        hideAgreementsModal();\n        onSuccess == null ? void 0 : onSuccess();\n      },\n      sectionName: componentId,\n      sectionTitle: componentId\n    });\n  };\n  return {\n    handleAgreements,\n    checkAllAgreed,\n    isAgreeing\n  };\n};\nexport {\n  useRaffleAgreements\n};\n","import { useCallback } from \"react\";\nimport { alertDialog } from \"../../../../../../containers/AlertDialogContainer/AlertDialogContainer.js\";\nimport { GENERAL_ERROR } from \"../../../../../../constants/error.js\";\nimport { useComponentId } from \"../../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { useTrackSnowplowEvent } from \"../../../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nconst useRaffleDialogActions = ({\n  onApplicationSuccess,\n  onShareRequired\n}) => {\n  const componentId = useComponentId();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const handleShowSuccessDialog = (raffleId, rewardItem) => {\n    onApplicationSuccess == null ? void 0 : onApplicationSuccess();\n    trackSnowplowEvent(\"impression_popup\", {\n      section_name: componentId,\n      section_title: componentId,\n      popup_type: \"dialog\",\n      popup_id: \"raffle_success\",\n      event_id: `raffle_${raffleId}`\n    });\n    alertDialog.show({\n      title: rewardItem ? `${rewardItem.brandName} ${rewardItem.itemName}에 응모되었어요!` : \"이벤트 참여가 완료되었어요\",\n      description: \"친구에게 공유하면 더 많이 응모할 수 있어요\",\n      primaryAction: {\n        label: \"확인\"\n      }\n    });\n  };\n  const handleShowInsufficientTicketsDialog = useCallback(() => {\n    alertDialog.show({\n      title: \"응모권이 없어요\",\n      description: \"친구에게 공유하면 더 많이 응모할 수 있어요\",\n      primaryAction: {\n        label: \"공유하기\",\n        onClick: () => {\n          onShareRequired == null ? void 0 : onShareRequired();\n        }\n      },\n      secondaryAction: {\n        label: \"닫기\",\n        onClick: () => {\n        }\n      }\n    });\n  }, [onShareRequired]);\n  const handleShowErrorDialog = useCallback((error) => {\n    let description = GENERAL_ERROR;\n    if (error instanceof Error) {\n      description = error.message;\n    }\n    alertDialog.show({\n      title: \"응모 중 문제가 발생했어요\",\n      description,\n      primaryAction: {\n        label: \"확인\"\n      }\n    });\n  }, []);\n  return {\n    showSuccessDialog: handleShowSuccessDialog,\n    showInsufficientTicketsDialog: handleShowInsufficientTicketsDialog,\n    showErrorDialog: handleShowErrorDialog\n  };\n};\nexport {\n  useRaffleDialogActions\n};\n","import useSWRMutation from \"../../../../../../node_modules/swr/mutation/dist/index.js\";\nimport { raffleApi } from \"../../../../../../apis/raffle/RaffleApiService.js\";\nconst useRaffleApplicableCheck = ({\n  raffleGroupId\n}) => {\n  const {\n    trigger: checkApplicable,\n    isMutating: isChecking\n  } = useSWRMutation(\"check-raffle-applicable\", () => raffleApi.getInfiniteEntryRaffleApplicable(raffleGroupId.toString()));\n  return {\n    checkApplicable,\n    isChecking\n  };\n};\nexport {\n  useRaffleApplicableCheck\n};\n","import useSWRMutation from \"../../../../../../node_modules/swr/mutation/dist/index.js\";\nimport { raffleApi } from \"../../../../../../apis/raffle/RaffleApiService.js\";\nconst useRaffleApplication = () => {\n  const {\n    trigger: raffleApply,\n    isMutating: isApplying\n  } = useSWRMutation(\"raffle-apply\", (_, {\n    arg\n  }) => raffleApi.fetchRaffleApply(arg.raffleGroupId, arg.raffleId));\n  return {\n    raffleApply,\n    isApplying\n  };\n};\nexport {\n  useRaffleApplication\n};\n","import { alertDialog } from \"../../../../../containers/AlertDialogContainer/AlertDialogContainer.js\";\nimport { useCurrentUser } from \"../../../../../hooks/useCurrentUser.js\";\nimport { redirectLoginWithRewardProgramKey } from \"../../../../../utils/redirectLoginWithRewardProgramKey.js\";\nimport { useComponentId } from \"../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../EventTrackingProvider/EventTrackingProvider.js\";\nconst useWithLoginInRaffle = (options) => {\n  const {\n    logged\n  } = useCurrentUser();\n  const componentId = useComponentId();\n  const withLoginInRaffle = (callback) => async (...args) => {\n    var _a, _b;\n    if (!logged) {\n      alertDialog.show({\n        title: ((_a = options.customMessages) == null ? void 0 : _a.title) || \"로그인이 필요한 서비스예요\",\n        description: ((_b = options.customMessages) == null ? void 0 : _b.description) || \"래플에 응모하려면 로그인이 필요해요\",\n        primaryAction: {\n          label: \"로그인\",\n          onClick: () => {\n            redirectLoginWithRewardProgramKey({\n              rewardProgramKey: `raffle_${options.raffleGroup.rewardProgramKey}`,\n              rewardKey: options.raffleGroup.rewardKey,\n              customRedirectUri: options.raffleGroup.link.webLink,\n              previousSectionName: componentId\n            });\n          }\n        },\n        secondaryAction: {\n          label: \"닫기\"\n        }\n      });\n      return;\n    }\n    await callback(...args);\n  };\n  return {\n    withLoginInRaffle\n  };\n};\nexport {\n  useWithLoginInRaffle\n};\n","import { useCallback } from \"react\";\nimport { useIdentityVerificationModal } from \"../../../../../../hooks/useIdentityVerificationModal.js\";\nconst useRaffleVerification = () => {\n  const {\n    show: showIdentityVerificationModal,\n    hide: hideIdentityVerificationModal\n  } = useIdentityVerificationModal();\n  const handleIdentityVerification = useCallback(({\n    onSuccess,\n    onError\n  }) => {\n    showIdentityVerificationModal({\n      onSuccess: () => {\n        hideIdentityVerificationModal();\n        onSuccess();\n      },\n      onFail: (error) => {\n        hideIdentityVerificationModal();\n        onError == null ? void 0 : onError(error);\n      }\n    });\n  }, [showIdentityVerificationModal, hideIdentityVerificationModal]);\n  return {\n    handleIdentityVerification\n  };\n};\nexport {\n  useRaffleVerification\n};\n","import \"../../../../../../apis/raffle/RaffleApiService.js\";\nimport { RaffleAgreementRequirement } from \"../../../../../../apis/raffle/RaffleApiService.types.js\";\nimport { useRaffleAgreements } from \"./useRaffleAgreements.js\";\nimport { useRaffleDialogActions } from \"./useRaffleModals.js\";\nimport { useRaffleApplicableCheck } from \"./useRaffleApplicableCheck.js\";\nimport { useRaffleApplication } from \"./useRaffleApplication.js\";\nimport { useWithLoginInRaffle } from \"../useWithLoginInRaffle.js\";\nimport { useRaffleGroupContext } from \"../../RaffleGroupProvider.js\";\nimport { APIError } from \"../../../../../../apis/APIService.types.js\";\nimport { useRequestUserAgreementBottomSheet } from \"../../../../../../hooks/useRequestUserAgreementBottomSheet.js\";\nimport \"../../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport \"framer\";\nimport \"react\";\nimport { isWebview } from \"../../../../../../utils/device.js\";\nimport { useRaffleVerification } from \"./useRaffleVerification.js\";\nconst INSUFFICIENT_ENTRY_TICKETS_ERROR_CODE = \"RAFFLE_INSUFFICIENT_ENTRY_TICKETS\";\nconst INSUFFICIENT_ENTRY_TICKETS_ERROR_MESSAGE = \"응모 가능한 티켓이 없습니다.\";\nconst isInsufficientTicketsError = (error) => {\n  if (error instanceof APIError) {\n    return error.message.includes(INSUFFICIENT_ENTRY_TICKETS_ERROR_MESSAGE) || error.errorCode === INSUFFICIENT_ENTRY_TICKETS_ERROR_CODE;\n  }\n  return false;\n};\nconst useRaffleApplicationFlow = ({\n  raffleId,\n  onApplicationSuccess,\n  onShareRequired\n}) => {\n  const {\n    raffleGroup,\n    revalidateRaffleGroup\n  } = useRaffleGroupContext();\n  const raffleGroupId = raffleGroup.raffleGroupId;\n  const currentRaffle = raffleGroup.raffleList.find((raffle) => raffle.raffleId === raffleId);\n  const {\n    checkApplicable,\n    isChecking\n  } = useRaffleApplicableCheck({\n    raffleGroupId\n  });\n  const {\n    handleIdentityVerification\n  } = useRaffleVerification();\n  const {\n    handleAgreements,\n    checkAllAgreed,\n    isAgreeing\n  } = useRaffleAgreements({\n    raffleGroupId,\n    raffleId\n  });\n  const {\n    requestUserAgreementBottomSheet\n  } = useRequestUserAgreementBottomSheet();\n  const {\n    raffleApply,\n    isApplying\n  } = useRaffleApplication();\n  const {\n    showSuccessDialog,\n    showInsufficientTicketsDialog,\n    showErrorDialog\n  } = useRaffleDialogActions({\n    onApplicationSuccess,\n    onShareRequired\n  });\n  const {\n    withLoginInRaffle\n  } = useWithLoginInRaffle({\n    raffleGroup\n  });\n  const isLoading = isApplying || isAgreeing || isChecking;\n  const handleOSNotification = (callback) => {\n    if (isWebview()) {\n      requestUserAgreementBottomSheet({\n        type: \"CONTENT_DETAIL_PAGE\",\n        onConfirm: callback,\n        onCancel: callback\n      });\n      return;\n    }\n    callback == null ? void 0 : callback();\n  };\n  const handleError = (error) => {\n    if (isInsufficientTicketsError(error)) {\n      showInsufficientTicketsDialog();\n    } else {\n      showErrorDialog(error);\n    }\n  };\n  const executeRaffleApplication = async () => {\n    try {\n      await raffleApply({\n        raffleGroupId: raffleGroupId.toString(),\n        raffleId: raffleId.toString()\n      });\n      revalidateRaffleGroup == null ? void 0 : revalidateRaffleGroup();\n      showSuccessDialog(raffleId, currentRaffle == null ? void 0 : currentRaffle.rewardItem);\n    } catch (error) {\n      handleError(error);\n    }\n  };\n  const createAgreementParams = (data) => {\n    var _a;\n    const hasRequiredAgreements = (_a = data.agreementInformation) == null ? void 0 : _a.some((agreement) => !agreement.isAgreed && agreement.agreementRequirement === RaffleAgreementRequirement.Required);\n    return {\n      title: data.popupTitle,\n      description: data.popupDescription,\n      primaryButtonText: hasRequiredAgreements ? \"동의 후 응모하기\" : \"응모하기\",\n      agreementInformation: data.agreementInformation\n    };\n  };\n  const processIdentityVerificationFlow = (data) => {\n    const isAllAgreed = checkAllAgreed(data.agreementInformation || []);\n    if (isAllAgreed) {\n      handleOSNotification(() => {\n        executeRaffleApplication();\n      });\n    } else {\n      processAgreementFlow(data);\n    }\n  };\n  const processAgreementFlow = (data) => {\n    const agreementParams = createAgreementParams(data);\n    handleAgreements({\n      ...agreementParams,\n      agreementInformation: data.agreementInformation || [],\n      onSuccess: () => handleOSNotification(() => {\n        executeRaffleApplication();\n      }),\n      onError: handleError\n    });\n  };\n  const handleApplication = async () => {\n    if (isLoading) {\n      return;\n    }\n    try {\n      const response = await checkApplicable();\n      const data = response.data;\n      await processApplicationFlow(data);\n    } catch (error) {\n      handleError(error);\n    }\n  };\n  const processApplicationFlow = async (data) => {\n    if (data.applicableCount === 0) {\n      showInsufficientTicketsDialog();\n      return;\n    }\n    if (data.isRaffleApplicable) {\n      await executeRaffleApplication();\n      return;\n    }\n    if (data.hasCi === false) {\n      handleIdentityVerification({\n        onSuccess: () => processIdentityVerificationFlow(data),\n        onError: handleError\n      });\n      return;\n    }\n    const hasUnagreedAgreements = !checkAllAgreed(data.agreementInformation || []);\n    if (hasUnagreedAgreements) {\n      processAgreementFlow(data);\n    }\n  };\n  return {\n    executeApply: withLoginInRaffle(handleApplication),\n    isLoading\n  };\n};\nexport {\n  INSUFFICIENT_ENTRY_TICKETS_ERROR_CODE,\n  INSUFFICIENT_ENTRY_TICKETS_ERROR_MESSAGE,\n  useRaffleApplicationFlow\n};\n","const MASKING_TEXT = \"*\";\nconst maskName = (name) => {\n  if (name.length <= 1) {\n    return name;\n  }\n  const firstChar = name.charAt(0);\n  const lastChar = name.charAt(name.length - 1);\n  if (name.length === 2) {\n    return `${firstChar}${MASKING_TEXT}`;\n  }\n  const maskedMiddle = MASKING_TEXT.repeat(name.length - 2);\n  return `${firstChar}${maskedMiddle}${lastChar}`;\n};\nexport {\n  maskName\n};\n","import { useState, useCallback } from \"react\";\nimport \"../../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../../config/index.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport { useCurrentUserName } from \"../../../../../../hooks/fetchers/useFetchUserInfo.js\";\nimport \"framer\";\nimport \"../../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport \"../../../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react/jsx-runtime\";\nimport \"react-dom\";\nimport \"../../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport { useToast } from \"../../../../../../hooks/useToast.js\";\nimport \"../../../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../../../utils/redirectLogin.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport { maskName } from \"../../../../../../utils/maskName.js\";\nimport { getUserName } from \"../../../../../../utils/getUserName.js\";\nimport { appShare } from \"../../../../../../utils/share/appshare.js\";\nimport { webShare } from \"../../../../../../utils/share/webshare.js\";\nimport { isShareInternalLinkAvailable } from \"../../../../../../utils/share/isShareInternalLinkAvailable.js\";\nconst getDisplayName = async ({\n  name,\n  isMasked\n}) => {\n  if (name) {\n    return `${isMasked ? name : maskName(name)}님이`;\n  }\n  const apiName = await getUserName(void 0);\n  if (!apiName) {\n    return \"친구가\";\n  }\n  return `${apiName}님이`;\n};\nconst useRaffleGroupSharing = ({\n  raffleGroupTitle\n}) => {\n  const toast = useToast();\n  const [isLoading, setIsLoading] = useState(false);\n  const {\n    name: userName,\n    isMasked: isUserNameMasked\n  } = useCurrentUserName();\n  const createWebShareData = useCallback(async (onelinkUrl) => {\n    const subject = await getDisplayName({\n      name: userName,\n      isMasked: isUserNameMasked\n    });\n    const message = `${subject} ${raffleGroupTitle} 추가 응모권을 받고 싶어해요. url을 열면 추가 응모권이 자동으로 전달돼요.`;\n    return {\n      title: message,\n      url: onelinkUrl\n    };\n  }, [userName, isUserNameMasked, raffleGroupTitle]);\n  const executeShare = async (onelinkUrl) => {\n    if (isLoading) {\n      return;\n    }\n    try {\n      setIsLoading(true);\n      const shareData = await createWebShareData(onelinkUrl);\n      if (isShareInternalLinkAvailable()) {\n        appShare(shareData);\n        return;\n      }\n      webShare(shareData, () => toast.show({\n        content: \"클립보드에 복사되었습니다.\"\n      }));\n    } finally {\n      setIsLoading(false);\n    }\n  };\n  return {\n    executeShare,\n    isLoading\n  };\n};\nexport {\n  getDisplayName,\n  useRaffleGroupSharing\n};\n","import { useCallback } from \"react\";\nimport { RaffleAgreementRequirement } from \"../../../../../../apis/raffle/RaffleApiService.types.js\";\nimport { raffleApi } from \"../../../../../../apis/raffle/RaffleApiService.js\";\nimport { hasUnagreedRequired, shouldDisplayAgreeAllCheckbox } from \"../../../../../../utils/raffle/raffleAgreementUtils.js\";\nimport { useAgreementsModal } from \"../../../../../../hooks/useAgreementsModal.js\";\nimport { entries } from \"../../../../../../utils/entries.js\";\nimport { useComponentId } from \"../../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { useRequestUserAgreementBottomSheet } from \"../../../../../../hooks/useRequestUserAgreementBottomSheet.js\";\nimport \"../../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport \"framer\";\nimport { isWebview } from \"../../../../../../utils/device.js\";\nconst useRaffleSharingAgreements = ({\n  raffleGroupId\n}) => {\n  const componentId = useComponentId();\n  const {\n    show: showAgreementsModal,\n    hide: hideAgreementsModal\n  } = useAgreementsModal();\n  const {\n    requestUserAgreementBottomSheet\n  } = useRequestUserAgreementBottomSheet();\n  const reshapeRaffleAgreements = useCallback((agreements) => agreements.filter((agreement) => !agreement.isAgreed).map((agreement) => ({\n    type: agreement.agreementType,\n    label: agreement.label,\n    isRequired: agreement.agreementRequirement === RaffleAgreementRequirement.Required,\n    detailLink: agreement.linkUrl\n  })), []);\n  const getAgreedAgreementTypes = useCallback((state) => {\n    return entries(state).reduce((acc, [key, value]) => {\n      if (value) {\n        acc.push(key);\n      }\n      return acc;\n    }, []);\n  }, []);\n  const saveAgreements = useCallback(async (agreementTypes) => {\n    try {\n      await raffleApi.postRaffleGroupAgreements({\n        raffleGroupId,\n        agreementTypes\n      });\n    } catch (error) {\n      throw new Error(\"약관 동의 저장에 실패했습니다.\");\n    }\n  }, [raffleGroupId]);\n  const handleOSNotification = (callback) => {\n    if (isWebview()) {\n      requestUserAgreementBottomSheet({\n        type: \"CONTENT_DETAIL_PAGE\",\n        onConfirm: callback,\n        onCancel: callback\n      });\n      return;\n    }\n    callback == null ? void 0 : callback();\n  };\n  const handleAgreementFlow = async ({\n    title,\n    description,\n    agreements\n  }) => {\n    if (!hasUnagreedRequired(agreements)) {\n      return;\n    }\n    const reshapedAgreements = reshapeRaffleAgreements(agreements);\n    await new Promise((resolve, reject) => {\n      const handleSuccess = async (state) => {\n        try {\n          const agreedTypes = getAgreedAgreementTypes(state);\n          await saveAgreements(agreedTypes);\n          hideAgreementsModal();\n          handleOSNotification(() => {\n            resolve();\n          });\n        } catch (error) {\n          reject(error);\n        }\n      };\n      const handleError = (error) => {\n        hideAgreementsModal();\n        reject(error || new Error(\"사용자가 약관 동의를 취소했습니다.\"));\n      };\n      showAgreementsModal({\n        title,\n        description,\n        agreements: reshapedAgreements,\n        displayAgreeAllCheckBox: shouldDisplayAgreeAllCheckbox(reshapedAgreements),\n        primaryButtonText: \"공유하기\",\n        onSuccess: handleSuccess,\n        onError: handleError,\n        onCancel: handleError,\n        // 오버레이 클릭도 동일하게 처리\n        sectionName: componentId,\n        sectionTitle: componentId\n      });\n    });\n  };\n  return {\n    handleAgreementFlow\n  };\n};\nexport {\n  useRaffleSharingAgreements\n};\n","import { useRef, useCallback } from \"react\";\nimport { onelinkApi } from \"../../../../../../apis/onelink/OnelinkAPIService.js\";\nimport { env } from \"../../../../../../config/index.js\";\nconst SOURCE_INFINITE_RAFFLE_SHARE = \"29cm_infinite_raffle\";\nconst useRaffleOneLinkGeneration = () => {\n  const pendingRequest = useRef(null);\n  const onelinkRef = useRef(null);\n  const processUrlForSharing = useCallback((url, raffleGroup) => {\n    const urlObj = new URL(url);\n    urlObj.searchParams.set(\"rewardEntryType\", \"share_link\");\n    if (raffleGroup.rewardProgramKey) {\n      urlObj.searchParams.set(\"rewardProgramKey\", `raffle_${raffleGroup.rewardProgramKey}`);\n    }\n    if (raffleGroup.rewardKey) {\n      urlObj.searchParams.set(\"rewardKey\", raffleGroup.rewardKey);\n    }\n    if (urlObj.hash && !urlObj.searchParams.has(\"29_fragment\")) {\n      urlObj.searchParams.set(\"29_fragment\", urlObj.hash.slice(1));\n      urlObj.hash = \"\";\n    }\n    return urlObj.toString();\n  }, []);\n  const mapShareDataToOneLinkParams = useCallback((shareData, raffleGroup) => {\n    const processedUrl = processUrlForSharing(shareData.targetUrl, raffleGroup);\n    const {\n      domain,\n      pathname,\n      searchParams\n    } = extractUrlComponents(processedUrl);\n    return {\n      appPath: domain,\n      pathname: `${pathname}?${searchParams.toString()}`,\n      options: {\n        is_retargeting: true,\n        af_click_lookback: \"7d\",\n        pid: SOURCE_INFINITE_RAFFLE_SHARE,\n        utm_source: SOURCE_INFINITE_RAFFLE_SHARE,\n        af_og_title: shareData.title,\n        af_og_description: shareData.description,\n        af_og_image: shareData.ogImage\n      }\n    };\n  }, [processUrlForSharing]);\n  const createNewOneLink = useCallback(async (shareData, raffleGroup) => {\n    const params = mapShareDataToOneLinkParams(shareData, raffleGroup);\n    const url = await onelinkApi.createOneLink(params).then((res) => res.link);\n    onelinkRef.current = url;\n    return url;\n  }, [mapShareDataToOneLinkParams]);\n  const generateOneLink = useCallback(async (shareData, raffleGroup) => {\n    if (onelinkRef.current !== null) {\n      return onelinkRef.current;\n    }\n    if (pendingRequest.current) {\n      return pendingRequest.current;\n    }\n    const generationPromise = createNewOneLink(shareData, raffleGroup).finally(() => {\n      pendingRequest.current = null;\n    });\n    pendingRequest.current = generationPromise;\n    return generationPromise;\n  }, [createNewOneLink]);\n  return {\n    generateOneLink,\n    processUrlForSharing\n  };\n};\nconst extractUrlComponents = (url) => {\n  const urlObj = new URL(url);\n  return {\n    domain: env.workspace.legacy.home,\n    pathname: urlObj.pathname,\n    searchParams: urlObj.searchParams\n  };\n};\nexport {\n  useRaffleOneLinkGeneration\n};\n","import { useState } from \"react\";\nimport { raffleApi } from \"../../../../../../apis/raffle/RaffleApiService.js\";\nimport { useRaffleGroupSharing } from \"./usePlatformSharing.js\";\nimport { useRaffleSharingAgreements } from \"./useRaffleSharingAgreements.js\";\nimport { useRaffleOneLinkGeneration } from \"./useRaffleOneLinkGeneration.js\";\nimport { getCurrentAvailableRaffle } from \"../../../../../../utils/raffle/raffleStatus.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport { alertDialog } from \"../../../../../../containers/AlertDialogContainer/AlertDialogContainer.js\";\nconst SHARING_CONSTANTS = {\n  SHARE_TITLE_SUFFIX: \"0원에 드려요\",\n  SHARE_DESCRIPTION: \"지금 래플 응모하러 가기\",\n  ERROR_RETRY_SUFFIX: \" 다시 시도해주세요.\"\n};\nconst useRaffleSharingFlow = ({\n  raffleGroup,\n  raffleId\n}) => {\n  const [isLoading, setIsLoading] = useState(false);\n  const raffleGroupId = String(raffleGroup.raffleGroupId);\n  const raffleGroupTitle = raffleGroup.title || \"래플\";\n  const {\n    generateOneLink,\n    processUrlForSharing\n  } = useRaffleOneLinkGeneration();\n  const {\n    executeShare\n  } = useRaffleGroupSharing({\n    raffleGroupTitle\n  });\n  const {\n    handleAgreementFlow\n  } = useRaffleSharingAgreements({\n    raffleGroupId\n  });\n  const currentRaffle = (() => {\n    if (raffleGroup.raffleList.length === 0) {\n      return null;\n    }\n    if (raffleId !== void 0) {\n      return raffleGroup.raffleList.find((raffle) => raffle.raffleId === raffleId) ?? null;\n    }\n    const availableRaffle = getCurrentAvailableRaffle(raffleGroup.raffleList);\n    return availableRaffle || raffleGroup.raffleList[0];\n  })();\n  const executeSharing = async () => {\n    if (isLoading || !currentRaffle) {\n      return;\n    }\n    if (!raffleGroup.rewardKey) {\n      alertDialog.show({\n        title: \"일시적인 오류로 공유할 수 없어요.\\n다시 시도해 주세요.\",\n        description: \"\",\n        primaryAction: {\n          label: \"확인\"\n        }\n      });\n      return;\n    }\n    setIsLoading(true);\n    try {\n      await processAgreements();\n      const shareData = createShareDataFromRaffle();\n      await executeShareWithFallback(shareData);\n    } finally {\n      setIsLoading(false);\n    }\n  };\n  const processAgreements = async () => {\n    const response = await raffleApi.getRaffleGroupAgreementStatus(raffleGroupId);\n    const agreementStatus = response.data;\n    await handleAgreementFlow({\n      title: agreementStatus.popupTitle,\n      description: agreementStatus.popupDescription ?? \"\",\n      agreements: agreementStatus.agreements\n    });\n  };\n  const createShareDataFromRaffle = () => {\n    var _a;\n    return {\n      ogImage: currentRaffle.rewardItem.imageUrl,\n      title: `${currentRaffle.rewardItem.brandName} ${currentRaffle.rewardItem.itemName} ${SHARING_CONSTANTS.SHARE_TITLE_SUFFIX}`,\n      description: SHARING_CONSTANTS.SHARE_DESCRIPTION,\n      targetUrl: ((_a = raffleGroup.link) == null ? void 0 : _a.webLink) || window.location.href\n    };\n  };\n  const executeShareWithFallback = async (shareData) => {\n    var _a;\n    try {\n      const oneLinkUrl = await generateOneLink(shareData, raffleGroup);\n      await executeShare(oneLinkUrl);\n    } catch {\n      const fallbackUrl = processUrlForSharing(((_a = raffleGroup.link) == null ? void 0 : _a.webLink) || window.location.href, raffleGroup);\n      await executeShare(fallbackUrl);\n    }\n  };\n  return {\n    executeSharing,\n    isLoading\n  };\n};\nexport {\n  useRaffleSharingFlow\n};\n","import { useEffect } from \"react\";\nimport { useCurrentUser } from \"../../../../../hooks/useCurrentUser.js\";\nimport { useRaffleGroupContext } from \"../RaffleGroupProvider.js\";\nimport { RaffleStatus } from \"../../../../../utils/raffle/raffleStatus.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nconst TOOLTIP_MESSAGE = `친구에게 공유한 만큼\n응모 기회를 얻을 수 있어요!`;\nconst useFirstRaffleShareTooltip = (index, status, applicableCount) => {\n  const {\n    logged\n  } = useCurrentUser();\n  const {\n    isGlobalTooltipHidden,\n    hideGlobalTooltip,\n    isTooltipExposed,\n    setTooltipExposed\n  } = useRaffleGroupContext();\n  const isFirstRaffle = index === 0;\n  const isInProgress = status === RaffleStatus.InProgress;\n  const hasNoApplicableCount = applicableCount === 0;\n  const isEligibleForTooltip = logged && isInProgress && hasNoApplicableCount;\n  const shouldShowTooltip = isFirstRaffle && isEligibleForTooltip;\n  const isTooltipVisible = shouldShowTooltip && !isGlobalTooltipHidden;\n  useEffect(() => {\n    if (isTooltipVisible && !isTooltipExposed) {\n      setTooltipExposed == null ? void 0 : setTooltipExposed();\n    }\n  }, [isTooltipVisible, isTooltipExposed, setTooltipExposed]);\n  return {\n    isTooltipVisible,\n    hideTooltip: () => {\n      if (isTooltipExposed && isEligibleForTooltip) {\n        hideGlobalTooltip == null ? void 0 : hideGlobalTooltip();\n      }\n    }\n  };\n};\nexport {\n  TOOLTIP_MESSAGE,\n  useFirstRaffleShareTooltip\n};\n","import { jsx, Fragment, jsxs } from \"react/jsx-runtime\";\nimport { Button as Default } from \"../../../@shared/Button/Button.js\";\nimport { Tooltip } from \"../../../@shared/Tooltip/Tooltip.js\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useThemeContext } from \"../../../@shared/providers/ThemeProvider/ThemeProvider.hooks.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"react\";\nimport \"../../../@shared/providers/SegmentProvider/SegmentProvider.js\";\nimport { useRaffleStatus } from \"../../../../hooks/raffle/useRaffleStatus.js\";\nimport { useTrackSnowplowEvent } from \"../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { useCurrentUser } from \"../../../../hooks/useCurrentUser.js\";\nimport { RaffleStatus } from \"../../../../utils/raffle/raffleStatus.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport { trackRaffleClickBraze } from \"../../../../utils/analytics/braze/trackRaffleClickBraze.js\";\nimport { useComponentId } from \"../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../EventTrackingProvider/EventTrackingProvider.js\";\nimport { RaffleEntryInfo } from \"./RaffleEntryInfo.js\";\nimport { useRaffleGroupContext } from \"./RaffleGroupProvider.js\";\nimport { useRaffleApplicationFlow } from \"./hooks/application/useRaffleApplicationFlow.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../apis/raffle/RaffleApiService.js\";\nimport { useRaffleSharingFlow } from \"./hooks/share/useRaffleSharingFlow.js\";\nimport \"../../../../utils/raffle/raffleAgreementUtils.js\";\nimport \"../../../../hooks/useAgreementsModal.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport { useFirstRaffleShareTooltip, TOOLTIP_MESSAGE } from \"./hooks/useFirstRaffleShareTooltip.js\";\nimport { raffleActionAreaStyles, buttonDisabledStyle } from \"./styles.js\";\nconst RaffleActionArea = ({\n  raffle,\n  index,\n  onApplicationSuccess\n}) => {\n  const status = useRaffleStatus(raffle);\n  const {\n    raffleGroup\n  } = useRaffleGroupContext();\n  const {\n    applicableCount\n  } = raffleGroup;\n  const {\n    logged\n  } = useCurrentUser();\n  const {\n    theme\n  } = useThemeContext();\n  const {\n    executeSharing\n  } = useRaffleSharingFlow({\n    raffleGroup,\n    raffleId: raffle.raffleId\n  });\n  const {\n    executeApply: handleApplication,\n    isLoading\n  } = useRaffleApplicationFlow({\n    raffleId: raffle.raffleId,\n    onApplicationSuccess,\n    onShareRequired: () => {\n      executeSharing();\n    }\n  });\n  const {\n    isTooltipVisible,\n    hideTooltip\n  } = useFirstRaffleShareTooltip(index, status, applicableCount);\n  const shouldShowShareFlow = logged && applicableCount === 0;\n  const getButtonLabel = () => {\n    switch (status) {\n      case RaffleStatus.Finished:\n        return raffle.finishedButtonText;\n      case RaffleStatus.UpComing:\n        return raffle.pendingButtonText;\n      case RaffleStatus.InProgress:\n        return shouldShowShareFlow ? \"공유하고 응모하기\" : \"응모하기\";\n      default:\n        return \"\";\n    }\n  };\n  const buttonLabel = getButtonLabel();\n  const isButtonDisabled = [RaffleStatus.Finished, RaffleStatus.UpComing, RaffleStatus.Unknown].includes(status);\n  const isButtonPending = status === RaffleStatus.Unknown || isLoading;\n  const componentId = useComponentId();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(\"div\", { style: raffleActionAreaStyles, children: [\n    /* @__PURE__ */ jsx(Tooltip, { tooltipStyle: {\n      whiteSpace: \"pre-wrap\",\n      textAlign: \"center\"\n    }, content: TOOLTIP_MESSAGE, visible: isTooltipVisible, children: /* @__PURE__ */ jsx(Default, { disabled: isButtonDisabled, pending: isButtonPending, variant: \"primary\", size: \"medium\", fill: true, theme, overrideDisabledBackgroundColor: buttonDisabledStyle.backgroundColor, overrideDisabledColor: buttonDisabledStyle.color, onClick: () => {\n      hideTooltip();\n      if (shouldShowShareFlow) {\n        executeSharing();\n        trackSnowplowEvent(\"click_button\", {\n          section_name: componentId,\n          section_title: componentId,\n          button_id: \"share_cta\",\n          button_name: buttonLabel,\n          position: -1\n        });\n      } else {\n        handleApplication();\n        trackSnowplowEvent(\"click_button\", {\n          section_name: componentId,\n          section_title: componentId,\n          button_id: `raffle_${raffle.raffleId}`,\n          button_name: buttonLabel,\n          position: -1\n        });\n        trackRaffleClickBraze(raffle.raffleId, buttonLabel);\n      }\n    }, children: buttonLabel }) }),\n    /* @__PURE__ */ jsx(RaffleEntryInfo, { raffle, status })\n  ] }) });\n};\nexport {\n  RaffleActionArea\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport \"react\";\nimport \"framer-motion\";\nimport \"react-dom\";\nimport { Icon } from \"../../../@shared/Icon/Icon.js\";\nimport { raffleInfoStyles, raffleBrandTextStyles, textColorByTheme, raffleProductNameStyles, rafflePriceStyles } from \"./styles.js\";\nimport \"framer\";\nimport { colors } from \"../../../../styles/colors.js\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useThemeContext } from \"../../../@shared/providers/ThemeProvider/ThemeProvider.hooks.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../@shared/providers/SegmentProvider/SegmentProvider.js\";\nconst WINNING_PRICE = 0;\nconst RaffleInfo = ({\n  rewardItem\n}) => {\n  const {\n    theme\n  } = useThemeContext();\n  return /* @__PURE__ */ jsxs(\"div\", { style: raffleInfoStyles, children: [\n    /* @__PURE__ */ jsxs(\"p\", { style: {\n      ...raffleBrandTextStyles,\n      ...textColorByTheme[theme]\n    }, children: [\n      rewardItem.brandName,\n      /* @__PURE__ */ jsx(\"span\", { style: raffleProductNameStyles, children: rewardItem.itemName })\n    ] }),\n    /* @__PURE__ */ jsxs(\"p\", { style: {\n      ...rafflePriceStyles,\n      ...textColorByTheme[theme]\n    }, children: [\n      rewardItem.originalPrice.toLocaleString(),\n      \"원\",\n      /* @__PURE__ */ jsx(Icon, { type: \"arrowRight\", size: 18, color: colors.gray400, weight: \"bold\" }),\n      WINNING_PRICE,\n      \"원\"\n    ] })\n  ] });\n};\nexport {\n  RaffleInfo\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useThemeContext } from \"../../../@shared/providers/ThemeProvider/ThemeProvider.hooks.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"react\";\nimport \"../../../@shared/providers/SegmentProvider/SegmentProvider.js\";\nimport { Badge } from \"../../../ruler/Badge/Badge.js\";\nimport { mediaBuilder } from \"../../../../utils/mediaBuilder.js\";\nimport { raffleThumbnailContainerStyles, raffleBadgeStyles, raffleThumbnailStyles } from \"./styles.js\";\nconst RAFFLE_THUMBNAIL_WIDTH = 564;\nconst RaffleThumbnail = ({\n  imageUrl,\n  participantCount,\n  alt\n}) => {\n  const {\n    theme\n  } = useThemeContext();\n  const image = mediaBuilder(imageUrl).setWidth(RAFFLE_THUMBNAIL_WIDTH);\n  return /* @__PURE__ */ jsxs(\"div\", { style: raffleThumbnailContainerStyles, children: [\n    /* @__PURE__ */ jsx(Badge, { label: `${participantCount}명`, size: \"medium\", style: raffleBadgeStyles, isWhite: theme === \"light\" }),\n    /* @__PURE__ */ jsx(\"img\", { style: raffleThumbnailStyles, src: image.getSrc(), alt })\n  ] });\n};\nexport {\n  RaffleThumbnail\n};\n","import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { Intersection } from \"../../../@shared/Intersection/Intersection.js\";\nimport \"react-dom\";\nimport \"../../../@shared/Icon/Icon.js\";\nimport { useTrackSnowplowEvent } from \"../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { getRaffleStatus, RaffleStatus } from \"../../../../utils/raffle/raffleStatus.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport { useComponentId } from \"../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../EventTrackingProvider/EventTrackingProvider.js\";\nimport { RaffleActionArea } from \"./RaffleActionArea.js\";\nimport { RaffleInfo } from \"./RaffleInfo.js\";\nimport { RaffleThumbnail } from \"./RaffleThumbnail.js\";\nimport { raffleCardContainerStyles } from \"./styles.js\";\nconst RaffleCard = ({\n  data,\n  index,\n  backgroundColor\n}) => {\n  const componentId = useComponentId();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  if (!data) {\n    return null;\n  }\n  return /* @__PURE__ */ jsx(Intersection, { threshold: 0.99, onView: () => {\n    trackSnowplowEvent(\"impression_content\", {\n      section_name: componentId,\n      section_title: componentId,\n      position: -1,\n      layout_id: `raffle_${data.raffleId}`,\n      is_open: getRaffleStatus(data) === RaffleStatus.InProgress\n    });\n  }, children: /* @__PURE__ */ jsxs(\"div\", { style: {\n    ...raffleCardContainerStyles,\n    backgroundColor\n  }, children: [\n    data.rewardItem && /* @__PURE__ */ jsx(RaffleThumbnail, { imageUrl: data.rewardItem.imageUrl, participantCount: data.winnerCount, alt: data.rewardItem.itemName }),\n    /* @__PURE__ */ jsx(RaffleInfo, { rewardItem: data.rewardItem }),\n    /* @__PURE__ */ jsx(RaffleActionArea, { raffle: data, index })\n  ] }) });\n};\nexport {\n  RaffleCard\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { Skeleton } from \"../../../@shared/Skeleton/Skeleton.js\";\nimport { raffleCardContainerStyles, raffleThumbnailContainerStyles, raffleInfoStyles, raffleActionAreaStyles } from \"./styles.js\";\nconst SKELETON_DIMENSIONS = {\n  info: {\n    line1: {\n      height: 21,\n      width: \"40%\"\n    },\n    line2: {\n      height: 21,\n      width: \"54%\"\n    },\n    line3: {\n      height: 22,\n      width: \"64%\"\n    }\n  },\n  action: {\n    button: {\n      height: 44,\n      width: \"100%\"\n    },\n    text: {\n      height: 17,\n      width: \"50%\"\n    }\n  },\n  borderRadius: {\n    small: 2,\n    medium: 4\n  }\n};\nconst SKELETON_BASE_STYLE = {\n  backgroundColor: \"#FFFFFF8F\"\n};\nconst RaffleCardSkeleton = () => {\n  return /* @__PURE__ */ jsxs(\"div\", { style: raffleCardContainerStyles, children: [\n    /* @__PURE__ */ jsx(Skeleton, { style: {\n      ...SKELETON_BASE_STYLE,\n      ...raffleThumbnailContainerStyles\n    } }),\n    /* @__PURE__ */ jsxs(\"div\", { style: raffleInfoStyles, children: [\n      /* @__PURE__ */ jsx(Skeleton, { style: {\n        ...SKELETON_BASE_STYLE,\n        ...SKELETON_DIMENSIONS.info.line1,\n        borderRadius: SKELETON_DIMENSIONS.borderRadius.small\n      } }),\n      /* @__PURE__ */ jsx(Skeleton, { style: {\n        ...SKELETON_BASE_STYLE,\n        ...SKELETON_DIMENSIONS.info.line2,\n        borderRadius: SKELETON_DIMENSIONS.borderRadius.small\n      } }),\n      /* @__PURE__ */ jsx(Skeleton, { style: {\n        ...SKELETON_BASE_STYLE,\n        ...SKELETON_DIMENSIONS.info.line3,\n        borderRadius: SKELETON_DIMENSIONS.borderRadius.small\n      } })\n    ] }),\n    /* @__PURE__ */ jsxs(\"div\", { style: raffleActionAreaStyles, children: [\n      /* @__PURE__ */ jsx(Skeleton, { style: {\n        ...SKELETON_BASE_STYLE,\n        ...SKELETON_DIMENSIONS.action.button,\n        borderRadius: SKELETON_DIMENSIONS.borderRadius.medium\n      } }),\n      /* @__PURE__ */ jsx(Skeleton, { style: {\n        ...SKELETON_BASE_STYLE,\n        ...SKELETON_DIMENSIONS.action.text,\n        borderRadius: SKELETON_DIMENSIONS.borderRadius.small\n      } })\n    ] })\n  ] });\n};\nexport {\n  RaffleCardSkeleton\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { Button as Default } from \"../../../@shared/Button/Button.js\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useThemeContext } from \"../../../@shared/providers/ThemeProvider/ThemeProvider.hooks.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"react\";\nimport \"../../../@shared/providers/SegmentProvider/SegmentProvider.js\";\nimport \"framer\";\nimport { typography } from \"../../../../styles/typography.js\";\nimport { raffleInfoAreaStyles, containerPaddingByBreakpoint, dividerColorByTheme, textColorByTheme, buttonColorByTheme } from \"./styles.js\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport { useBreakpoint } from \"../../../../hooks/useBreakpoint.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { useRaffleGroupContext } from \"./RaffleGroupProvider.js\";\nimport { useRaffleSharingFlow } from \"./hooks/share/useRaffleSharingFlow.js\";\nimport \"../../../../apis/raffle/RaffleApiService.js\";\nimport \"../../../../utils/raffle/raffleAgreementUtils.js\";\nimport \"../../../../hooks/useAgreementsModal.js\";\nimport { useComponentId } from \"../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../EventTrackingProvider/EventTrackingProvider.js\";\nimport { useTrackSnowplowEvent } from \"../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nconst SHARE_BUTTON_LABE = \"공유하기\";\nconst RaffleInfoArea = ({\n  remainingEntries\n}) => {\n  const {\n    theme\n  } = useThemeContext();\n  const breakpoint = useBreakpoint();\n  const {\n    raffleGroup\n  } = useRaffleGroupContext();\n  const {\n    executeSharing,\n    isLoading: isSharingLoading\n  } = useRaffleSharingFlow({\n    raffleGroup\n  });\n  const componentId = useComponentId();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  return /* @__PURE__ */ jsxs(\"div\", { style: {\n    ...raffleInfoAreaStyles,\n    marginLeft: containerPaddingByBreakpoint[breakpoint],\n    marginRight: containerPaddingByBreakpoint[breakpoint],\n    borderTop: `1px solid ${dividerColorByTheme[theme]}`\n  }, children: [\n    /* @__PURE__ */ jsxs(\"p\", { style: {\n      ...textColorByTheme[theme],\n      ...typography(15, 400)\n    }, children: [\n      \"나의 응모 기회 \",\n      /* @__PURE__ */ jsxs(\"strong\", { style: {\n        marginLeft: 4\n      }, children: [\n        remainingEntries,\n        \"회\"\n      ] })\n    ] }),\n    /* @__PURE__ */ jsx(Default, { variant: \"custom\", size: \"xSmall\", backgroundColor: buttonColorByTheme[theme].backgroundColor, color: buttonColorByTheme[theme].color, prefixIcon: \"share\", onClick: () => {\n      executeSharing();\n      trackSnowplowEvent(\"click_button\", {\n        section_name: componentId,\n        section_title: componentId,\n        button_id: \"share_cta\",\n        button_name: SHARE_BUTTON_LABE,\n        position: -1\n      });\n    }, disabled: isSharingLoading, children: SHARE_BUTTON_LABE })\n  ] });\n};\nexport {\n  RaffleInfoArea\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { FramerFoldableList } from \"../../FoldableList/FoldableList.js\";\nimport { containerPaddingByBreakpoint } from \"./styles.js\";\nimport \"react\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../hooks/useTheme.js\";\nimport { useBreakpoint } from \"../../../../hooks/useBreakpoint.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nconst RaffleNotices = ({\n  notices\n}) => {\n  const theme = useTheme();\n  const breakpoint = useBreakpoint();\n  return /* @__PURE__ */ jsx(\"div\", { style: {\n    paddingLeft: containerPaddingByBreakpoint[breakpoint]\n  }, children: /* @__PURE__ */ jsx(FramerFoldableList, { theme, title: \"유의사항\", list: notices }) });\n};\nexport {\n  RaffleNotices\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nconst SingleTypeNotice = () => /* @__PURE__ */ jsxs(\"section\", { role: \"alert\", style: {\n  padding: \"20px\",\n  backgroundColor: \"#fef7e6\",\n  border: \"1px solid #f4d03f\",\n  borderRadius: \"12px\",\n  margin: \"16px auto\",\n  maxWidth: \"500px\",\n  fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif',\n  boxShadow: \"0 2px 8px rgba(0, 0, 0, 0.08)\"\n}, children: [\n  /* @__PURE__ */ jsxs(\"header\", { style: {\n    display: \"flex\",\n    alignItems: \"center\",\n    marginBottom: \"12px\"\n  }, children: [\n    /* @__PURE__ */ jsx(\"span\", { style: {\n      fontSize: \"20px\",\n      marginRight: \"8px\"\n    }, role: \"img\", \"aria-label\": \"warning\", children: \"⚠️\" }),\n    /* @__PURE__ */ jsx(\"h3\", { style: {\n      margin: \"0\",\n      color: \"#7c4a03\",\n      fontSize: \"16px\",\n      fontWeight: \"600\",\n      letterSpacing: \"-0.01em\"\n    }, children: \"잘못된 컴포넌트 선택\" })\n  ] }),\n  /* @__PURE__ */ jsxs(\"div\", { style: {\n    color: \"#7c4a03\",\n    fontSize: \"14px\",\n    lineHeight: \"1.6\"\n  }, children: [\n    /* @__PURE__ */ jsxs(\"p\", { style: {\n      margin: \"0 0 12px 0\"\n    }, children: [\n      \"현재 선택된 래플은 \",\n      /* @__PURE__ */ jsx(\"strong\", { children: \"단일 응모\" }),\n      \" 래플입니다.\"\n    ] }),\n    /* @__PURE__ */ jsxs(\"p\", { style: {\n      margin: \"0 0 16px 0\"\n    }, children: [\n      \"이 컴포넌트는 \",\n      /* @__PURE__ */ jsx(\"strong\", { style: {\n        color: \"#0f5132\"\n      }, children: \"무한 응모 래플\" }),\n      \"에서만 사용할 수 있습니다.\"\n    ] }),\n    /* @__PURE__ */ jsxs(\"details\", { open: true, style: {\n      cursor: \"pointer\"\n    }, children: [\n      /* @__PURE__ */ jsx(\"summary\", { style: {\n        fontWeight: \"500\",\n        marginBottom: \"8px\"\n      }, children: \"어떻게 해결하나요?\" }),\n      /* @__PURE__ */ jsxs(\"div\", { style: {\n        backgroundColor: \"#fff\",\n        padding: \"12px\",\n        borderRadius: \"8px\",\n        marginTop: \"8px\"\n      }, children: [\n        /* @__PURE__ */ jsx(\"p\", { style: {\n          margin: \"0 0 8px 0\",\n          fontWeight: \"500\"\n        }, children: \"옵션 1: 다른 래플 사용\" }),\n        /* @__PURE__ */ jsx(\"p\", { style: {\n          margin: \"0 0 16px 0\",\n          fontSize: \"13px\",\n          color: \"#666\"\n        }, children: \"무한 응모가 가능한 래플 그룹 ID로 변경해주세요.\" }),\n        /* @__PURE__ */ jsx(\"p\", { style: {\n          margin: \"0 0 8px 0\",\n          fontWeight: \"500\"\n        }, children: \"옵션 2: 컴포넌트 변경\" }),\n        /* @__PURE__ */ jsxs(\"p\", { style: {\n          margin: \"0\",\n          fontSize: \"13px\",\n          color: \"#666\"\n        }, children: [\n          \"단일 응모 래플에는 \",\n          /* @__PURE__ */ jsx(\"strong\", { children: \"RaffleButton\" }),\n          \" 컴포넌트를 사용해주세요.\"\n        ] })\n      ] })\n    ] })\n  ] })\n] });\nexport {\n  SingleTypeNotice\n};\n","import { Cookies } from \"../cookies.js\";\nimport { isContentOrigin } from \"../location.js\";\nconst GUEST_ID_COOKIE_KEY = \"_guest_id\";\nconst COOKIE_OPTIONS = {\n  domain: \".29cm.co.kr\",\n  path: \"/\",\n  expires: 30,\n  secure: true\n};\nconst generateUuidV4 = () => {\n  return `${1e7}-${1e3}-${4e3}-${8e3}-${1e11}`.replace(/[018]/g, (c) => (Number(c) ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> Number(c) / 4).toString(16));\n};\nconst manageGuestCookie = (logged, cookieKey = GUEST_ID_COOKIE_KEY, context = \"guest\") => {\n  if (logged) {\n    return;\n  }\n  const cookies = new Cookies();\n  const guestId = cookies.get(cookieKey);\n  if (guestId) {\n    return;\n  }\n  try {\n    const newGuestId = generateUuidV4();\n    cookies.set(cookieKey, newGuestId, COOKIE_OPTIONS);\n  } catch (error) {\n    if (!isContentOrigin()) {\n      console.error(`[${context}] Failed to set guest cookie:`, error);\n    }\n  }\n};\nconst manageDefaultGuestCookie = (logged, context = \"guest\") => {\n  manageGuestCookie(logged, GUEST_ID_COOKIE_KEY, context);\n};\nexport {\n  GUEST_ID_COOKIE_KEY,\n  manageDefaultGuestCookie,\n  manageGuestCookie\n};\n","import { manageGuestCookie } from \"../guest-cookie/manageGuestCookie.js\";\nconst RAFFLE_GUEST_ID_KEY = \"_guest_id\";\nconst manageRaffleGuestCookie = (logged) => {\n  manageGuestCookie(logged, RAFFLE_GUEST_ID_KEY, \"RaffleVisitReward\");\n};\nexport {\n  manageRaffleGuestCookie\n};\n","import { useRef, useEffect } from \"react\";\nimport useSWRMutation from \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport { useCurrentUser } from \"../../../../../hooks/useCurrentUser.js\";\nimport \"framer\";\nimport { getQueryParams, isContentOrigin } from \"../../../../../utils/location.js\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../apis/user/UserApiService.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport \"../../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react/jsx-runtime\";\nimport \"react-dom\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { manageRaffleGuestCookie } from \"../../../../../utils/raffle/manageRaffleGuestCookie.js\";\nimport { raffleApi } from \"../../../../../apis/raffle/RaffleApiService.js\";\nconst useVisitReward = ({\n  raffleGroupId\n}) => {\n  const processedKeys = useRef(/* @__PURE__ */ new Set());\n  const isProcessing = useRef(false);\n  const user = useCurrentUser();\n  const {\n    trigger: postShareCallback\n  } = useSWRMutation(\"raffle-group-share-callback\", async (_key, {\n    arg\n  }) => raffleApi.postRaffleGroupShareCallback(arg.raffleGroupId, arg.rewardKey));\n  useEffect(() => {\n    const processVisitReward = async () => {\n      if (isProcessing.current) {\n        return;\n      }\n      const rewardKey = getQueryParams().rewardKey;\n      if (!rewardKey || processedKeys.current.has(rewardKey)) {\n        return;\n      }\n      isProcessing.current = true;\n      processedKeys.current.add(rewardKey);\n      try {\n        manageRaffleGuestCookie(Boolean(user.logged));\n        await postShareCallback({\n          raffleGroupId,\n          rewardKey\n        });\n      } catch (error) {\n        if (!isContentOrigin()) {\n          console.error(\"[RaffleVisitReward] Process failed:\", error);\n        }\n        processedKeys.current.delete(rewardKey);\n      } finally {\n        isProcessing.current = false;\n      }\n    };\n    processVisitReward();\n  }, [raffleGroupId, user, postShareCallback]);\n};\nexport {\n  useVisitReward\n};\n","import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { useEffect } from \"react\";\nimport { SectionLayout } from \"../SectionLayout/SectionLayout.js\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport { useCurrentUser } from \"../../../../hooks/useCurrentUser.js\";\nimport { isCanvas } from \"../../../../utils/framer/isCanvas.js\";\nimport { isFramerPreview } from \"../../../../utils/framer/isFramerPreview.js\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useBreakpoint } from \"../../../../hooks/useBreakpoint.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { createKRTimeZoneDate } from \"../../../../utils/createUTCDate.js\";\nimport { BREAKPOINT_CONTROLS } from \"../../../../libs/property-controls/breakpoint.js\";\nimport { COMPONENT_ID_PROPS } from \"../../../../libs/property-controls/component-id.js\";\nimport { SEGMENT_CONTROLS } from \"../../../../libs/property-controls/segment.js\";\nimport { THEME_CONTROLS } from \"../../../../libs/property-controls/theme.js\";\nimport { colors } from \"../../../../styles/colors.js\";\nimport { getResponsiveWidth } from \"../../../../utils/getResponsiveWidth.js\";\nimport \"../IntersectionProvider/IntersectionProvider.js\";\nimport { useIntersectionContext } from \"../IntersectionProvider/IntersectionProvider.hooks.js\";\nimport { SegmentGate } from \"../SegmentGate/SegmentGate.js\";\nimport { Slider as Default } from \"../Slider/Slider.js\";\nimport { useInfiniteRaffleGroup } from \"./InfiniteEntryRaffleGroup.hooks.js\";\nimport { RaffleCard } from \"./RaffleCard.js\";\nimport { RaffleCardSkeleton } from \"./RaffleCardSkeleton.js\";\nimport { RaffleGroupProvider, useRaffleGroupContext } from \"./RaffleGroupProvider.js\";\nimport { RaffleInfoArea } from \"./RaffleInfoArea.js\";\nimport { RaffleNotices } from \"./RaffleNotices.js\";\nimport { SingleTypeNotice } from \"./SingleTypeNotice.js\";\nimport { useVisitReward } from \"./hooks/useVisitReward.js\";\nimport { raffleGroupStyles, RAFFLE_CARD_GAP, RAFFLE_CARD_WIDTH } from \"./styles.js\";\nimport { isWithinInterval } from \"../../../../node_modules/date-fns/isWithinInterval.js\";\nconst InfiniteEntryRaffleGroup = ({\n  raffleGroupId,\n  theme,\n  breakpoint,\n  componentId,\n  segment,\n  cardBackgroundColor\n}) => {\n  return /* @__PURE__ */ jsx(SectionLayout, { theme, componentId, breakpoint, segment, children: /* @__PURE__ */ jsx(SegmentGate, { children: /* @__PURE__ */ jsx(InfiniteEntryRaffleGroupInner, { raffleGroupId, cardBackgroundColor }) }) });\n};\nconst InfiniteEntryRaffleGroupInner = ({\n  raffleGroupId,\n  cardBackgroundColor\n}) => {\n  const {\n    isInView\n  } = useIntersectionContext();\n  const {\n    raffleGroup,\n    fetch: fetchRaffleGroup,\n    mutate: revalidateRaffleGroup\n  } = useInfiniteRaffleGroup(raffleGroupId);\n  useVisitReward({\n    raffleGroupId\n  });\n  useEffect(() => {\n    if (isInView) {\n      fetchRaffleGroup();\n    }\n  }, [isInView]);\n  if (raffleGroup && raffleGroup.applyType !== \"MULTIPLE\") {\n    if (isCanvas() || isFramerPreview()) {\n      return /* @__PURE__ */ jsx(SingleTypeNotice, {});\n    }\n    return null;\n  }\n  return /* @__PURE__ */ jsx(RaffleGroupProvider, { raffleGroup, revalidateRaffleGroup: () => {\n    revalidateRaffleGroup();\n  }, children: /* @__PURE__ */ jsx(InfiniteEntryRaffleSlider, { cardBackgroundColor }) });\n};\nconst InfiniteEntryRaffleSlider = ({\n  cardBackgroundColor\n}) => {\n  const {\n    raffleGroup\n  } = useRaffleGroupContext();\n  const breakpoint = useBreakpoint();\n  const {\n    logged\n  } = useCurrentUser();\n  const now = createKRTimeZoneDate();\n  const isOngoing = raffleGroup && isWithinInterval(now, {\n    start: raffleGroup.displayStartedAt,\n    end: raffleGroup.displayEndedAt\n  });\n  return /* @__PURE__ */ jsxs(\"div\", { style: raffleGroupStyles, children: [\n    logged && isOngoing && /* @__PURE__ */ jsx(RaffleInfoArea, { remainingEntries: raffleGroup.applicableCount || 0 }),\n    /* @__PURE__ */ jsx(Default, { items: raffleGroup == null ? void 0 : raffleGroup.raffleList, itemWidth: columnWidthByBreakpoint[breakpoint], gap: RAFFLE_CARD_GAP, renderItem: (raffle, index) => /* @__PURE__ */ jsx(RaffleCard, { data: raffle, index, backgroundColor: cardBackgroundColor }, raffle.raffleId), renderFallback: () => /* @__PURE__ */ jsx(RaffleCardSkeleton, {}) }),\n    (raffleGroup == null ? void 0 : raffleGroup.eventTerms) && /* @__PURE__ */ jsx(RaffleNotices, { notices: raffleGroup.eventTerms })\n  ] });\n};\nconst columnWidthByBreakpoint = {\n  mobile: RAFFLE_CARD_WIDTH,\n  tablet: RAFFLE_CARD_WIDTH,\n  desktop: getResponsiveWidth(RAFFLE_CARD_GAP, 3)\n  // 3개씩 노출\n};\naddPropertyControls(InfiniteEntryRaffleGroup, {\n  ...BREAKPOINT_CONTROLS,\n  ...THEME_CONTROLS,\n  ...SEGMENT_CONTROLS,\n  ...COMPONENT_ID_PROPS,\n  raffleGroupId: {\n    type: ControlType.String,\n    title: \"래플 그룹 ID\",\n    placeholder: \"래플 그룹 ID\"\n  },\n  cardBackgroundColor: {\n    type: ControlType.Color,\n    title: \"카드 배경색\",\n    defaultValue: colors.gray800\n  }\n});\nexport {\n  InfiniteEntryRaffleGroup\n};\n","/** local */// import { TimeSaleCollection } from \"https://localhost:4173/components/systems/curations/KeywordCollectionV2/TimeSaleCollection.js\"\n/** dev */// import { InfiniteEntryRaffleGroup } from \"https://asset.29cm.co.kr/contents/framer/dev/components/systems/curations/InfiniteEntryRaffleGroup/InfiniteEntryRaffleGroup.js\"\n/** production */import{InfiniteEntryRaffleGroup}from\"https://asset.29cm.co.kr/contents/framer/components/systems/curations/InfiniteEntryRaffleGroup/InfiniteEntryRaffleGroup.js\";InfiniteEntryRaffleGroup.displayName=\"[완성형]InfiniteEntryRaffleGroup\";/**\n * @framerDisableUnlink\n */export default InfiniteEntryRaffleGroup;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InfiniteEntryRaffleGroup\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InfiniteEntryRaffleGroup.map"],"mappings":"y7DAA6C,IACuC,IACL,IACX,IACZ,IACc,IAClC,IACyB,KACc,IAClB,KACS,KACD,IACjB,KACM,KACiC,IACxE,IAC2D,IACd,IACF,IACF,IACc,IAChB,KACE,KACU,IACE,IAClD,IACwB,IACpB,IACoD,IAC9B,IACD,IACU,KACA,KACe,EAC9D,GAAiB,GACjB,GAAwB,EACxB,IAAU,CACd,MACA,YACA,QAAQ,CAAC,EACT,aACA,kBACC,IAAQ,CACT,IAAM,EA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