{"version":3,"file":"LiveCardListV2.Dql6jqo5.mjs","names":["createContext","useMemo","useContext","useMemo","Fragment","createContext","useContext","MS_IN_SECOND","MS_IN_MINUTE","useMemo","useState","MS_IN_SECOND","useMemo","useCallback","Fragment","titleStyle","descriptionStyle","useCallback","useCallback","useRef","useState","Fragment","useMemo","useCallback","useMemo","useMemo","isWebview","useMemo","useState","Fragment"],"sources":["https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/ScheduleTags.utils.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/providers/CampaignsProvider/CampaignsProvider.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/providers/CampaignsProvider/CampaignsProvider.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/ScheduleTags.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/ShoplivePlugin.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/providers/CampaignProvider/CampaignProvider.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/providers/CampaignProvider/CampaignProvider.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/hooks/useCampaignStatus.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveCard/Layout/Layout.js","https:/asset.29cm.co.kr/contents/framer/utils/date-helpers/millisecondsToMinutes.js","https:/asset.29cm.co.kr/contents/framer/utils/date-helpers/millisecondsToSeconds.js","https:/asset.29cm.co.kr/contents/framer/utils/date-helpers/padZero.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/utils/getStatusText.js","https:/asset.29cm.co.kr/contents/framer/hooks/useCountdown.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveCard/Thumbnail/Thumbnail.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveCard/LiveBadge/LiveBadge.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/utils/getTeaserLink.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/utils/getTeaserButtonLabel.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/constants/event.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveCard/DesktopLiveCard/DesktopLiveCard.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveCard/MobileLiveCard/MobileLiveCard.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/hooks/useInAppLivePreview.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/hooks/event.js","https:/asset.29cm.co.kr/contents/framer/hooks/useIsNotificationRegistered.js","https:/asset.29cm.co.kr/contents/framer/components/primitives/Notification/Notification.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/hooks/useLiveNotification.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/hooks/useCampaignButton.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveCard/LiveCard.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveCards/LiveCards.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/constants/toastMessages.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/hooks/useLiveAllNotification.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveAllNotificationSwitch.js","https:/asset.29cm.co.kr/contents/framer/node_modules/date-fns/addMilliseconds.js","https:/asset.29cm.co.kr/contents/framer/node_modules/date-fns/addMinutes.js","https:/asset.29cm.co.kr/contents/framer/node_modules/date-fns/subMinutes.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveHeadline.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/hooks/useGroupSubscriptionState.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/LiveAllNotificationWarnings.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/utils/getAllNotificationWarnings.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/Live.js","https:/framerusercontent.com/modules/yYx2p9NNtdwW9fKLtv6S/fGt0xXPGng1F0CaY8Pfu/LiveCardListV2.js"],"sourcesContent":["import { formatISO } from \"../../../../node_modules/date-fns/formatISO.js\";\nimport { createKRTimeZoneDate } from \"../../../../utils/createUTCDate.js\";\nimport { compareAsc } from \"../../../../node_modules/date-fns/compareAsc.js\";\nimport { formatDate as format } from \"../../../../node_modules/date-fns/format.js\";\nimport { ko } from \"../../../../node_modules/date-fns/locale/ko.js\";\nimport { isSameDay } from \"../../../../node_modules/date-fns/isSameDay.js\";\nimport { isBefore } from \"../../../../node_modules/date-fns/isBefore.js\";\nconst groupBySchedule = (campaigns) => {\n  const scheduleMap = {};\n  campaigns.forEach((campaign) => {\n    const schedule = formatISO(createKRTimeZoneDate(campaign.scheduledAt ?? \"\"), {\n      representation: \"date\"\n    });\n    if (scheduleMap[schedule] === void 0) {\n      scheduleMap[schedule] = [campaign];\n      return;\n    }\n    scheduleMap[schedule] = [...scheduleMap[schedule], campaign];\n  });\n  const sortedScheduleMap = Object.entries(scheduleMap).map(([schedule, campaignList]) => [schedule, sortCampaignsByStatus(campaignList)]);\n  const result = orderByScheduleAsc(sortedScheduleMap);\n  return result;\n};\nconst sortCampaignsByStatus = (campaigns) => {\n  const now = createKRTimeZoneDate();\n  const activeCampaigns = [];\n  const endedCampaigns = [];\n  campaigns.forEach((campaign) => {\n    const endTime = campaign.scheduledEndAt ? createKRTimeZoneDate(campaign.scheduledEndAt) : null;\n    if (endTime && isBefore(endTime, now)) {\n      endedCampaigns.push(campaign);\n    } else {\n      activeCampaigns.push(campaign);\n    }\n  });\n  activeCampaigns.sort((a, b) => {\n    const startA = createKRTimeZoneDate(a.scheduledAt ?? \"\");\n    const startB = createKRTimeZoneDate(b.scheduledAt ?? \"\");\n    return compareAsc(startA, startB);\n  });\n  endedCampaigns.sort((a, b) => {\n    const endA = createKRTimeZoneDate(a.scheduledEndAt ?? \"\");\n    const endB = createKRTimeZoneDate(b.scheduledEndAt ?? \"\");\n    return compareAsc(endB, endA);\n  });\n  if (activeCampaigns.length === 0 && endedCampaigns.length > 0) {\n    const sortedEndedCampaigns = [...endedCampaigns];\n    sortedEndedCampaigns.sort((a, b) => {\n      const startA = createKRTimeZoneDate(a.scheduledAt ?? \"\");\n      const startB = createKRTimeZoneDate(b.scheduledAt ?? \"\");\n      return compareAsc(startA, startB);\n    });\n    return sortedEndedCampaigns;\n  }\n  return [...activeCampaigns, ...endedCampaigns];\n};\nconst orderByScheduleAsc = (list) => list.sort(([scheduleA], [scheduleB]) => compareAsc(scheduleA, scheduleB));\nconst formatSchedule = (schedule) => {\n  return format(createKRTimeZoneDate(schedule), \"M. d EEEEE\", {\n    locale: ko\n  });\n};\nconst getCurrentScheduleIndex = (list) => {\n  const now = createKRTimeZoneDate();\n  const currentIndex = list.findIndex(([schedule], index) => {\n    const nextSchedule = list[index + 1];\n    const start = createKRTimeZoneDate(schedule);\n    const isToday = isSameDay(now, start);\n    const isUpcoming = isBefore(now, start);\n    const isLast = nextSchedule === void 0;\n    return isToday || isUpcoming || isLast;\n  });\n  return currentIndex === -1 ? void 0 : currentIndex;\n};\nexport {\n  formatSchedule,\n  getCurrentScheduleIndex,\n  groupBySchedule,\n  sortCampaignsByStatus\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { createContext, useMemo, useEffect } from \"react\";\nimport { useLazyFetchLiveCampaigns } from \"../../../../../../hooks/fetchers/useLazyFetchLiveCampaigns.js\";\nconst CampaignsContext = createContext({});\nconst CampaignsProvider = ({\n  children,\n  campaigns = [],\n  pending = false\n}) => {\n  const campaignKeys = useMemo(() => campaigns.map(({\n    campaignKey\n  }) => campaignKey), [campaigns]);\n  const {\n    data,\n    fetch\n  } = useLazyFetchLiveCampaigns(campaignKeys);\n  useEffect(() => {\n    if (!pending) {\n      return;\n    }\n    fetch();\n  }, [fetch, pending]);\n  const richCampaigns = useMemo(() => data.map((campaign) => reshapeRichCampaign(campaigns, campaign)), [campaigns, data]);\n  return /* @__PURE__ */ jsx(CampaignsContext.Provider, { value: {\n    campaigns: richCampaigns\n  }, children });\n};\nconst reshapeRichCampaign = (campaigns, campaign) => {\n  const {\n    campaignKey,\n    scheduledAt,\n    scheduledEndAt\n  } = campaign;\n  const matched = campaigns.find((item) => item.campaignKey === campaignKey);\n  return {\n    ...matched,\n    scheduledAt,\n    scheduledEndAt\n  };\n};\nexport {\n  CampaignsContext,\n  CampaignsProvider\n};\n","import { useContext } from \"react\";\nimport { CampaignsContext } from \"./CampaignsProvider.js\";\nconst useCampaigns = () => {\n  return useContext(CampaignsContext);\n};\nexport {\n  useCampaigns\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { Tags } from \"../Tags/index.js\";\nimport { groupBySchedule, getCurrentScheduleIndex, formatSchedule } from \"./ScheduleTags.utils.js\";\nimport \"./providers/CampaignsProvider/CampaignsProvider.js\";\nimport { useCampaigns } from \"./providers/CampaignsProvider/CampaignsProvider.hooks.js\";\nimport { EventTrigger } from \"../../../@shared/EventTrigger/index.js\";\nimport { useTrackSnowplowEvent } from \"../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { useComponentId } from \"../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../EventTrackingProvider/EventTrackingProvider.js\";\nconst ScheduleTags = ({\n  children\n}) => {\n  const {\n    campaigns = []\n  } = useCampaigns();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const componentId = useComponentId();\n  const campaignsBySchedule = useMemo(() => groupBySchedule(campaigns), [campaigns]);\n  const currentIndex = useMemo(() => getCurrentScheduleIndex(campaignsBySchedule) ?? 0, [campaignsBySchedule]);\n  const handleClick = (index, schedule = \"\") => () => {\n    trackSnowplowEvent(\"click_button\", {\n      // TODO(임규민): section_name, position 프로퍼티에 할당한 약속된 임의 값 수정\n      section_name: componentId,\n      section_title: componentId,\n      position: -1,\n      layout_position: index + 1,\n      button_id: \"tag\",\n      button_name: formatSchedule(schedule)\n    });\n  };\n  return /* @__PURE__ */ jsxs(Tags.Root, { defaultValue: 0, value: currentIndex, loading: campaigns.length === 0, children: [\n    /* @__PURE__ */ jsx(Tags.List, { list: campaignsBySchedule, children: ({\n      item: [schedule] = [],\n      index\n    }) => /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: handleClick(index, schedule), children: /* @__PURE__ */ jsx(Tags.Item, { value: index, children: formatSchedule(schedule ?? \"\") }) }) }),\n    /* @__PURE__ */ jsx(Tags.Panels, { list: campaignsBySchedule, children: (props) => /* @__PURE__ */ jsx(Tags.Panel, { value: props.index, children: children(props) }) })\n  ] });\n};\nexport {\n  ScheduleTags\n};\n","import { jsx, Fragment } from \"react/jsx-runtime\";\nimport { env } from \"../../../../config/index.js\";\nimport { useScriptInjection } from \"../../../../hooks/useScriptInjection.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport { isServer } from \"../../../../utils/context.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport \"framer\";\nimport \"react\";\nconst SHOPLIVE_PLUGIN_SCRIPT_ID = \"shoplive-plugin\";\nconst SHOPLIVE_PLUGIN_SCRIPT_SRC = \"https://static.shoplive.cloud/shoplive.js\";\nconst getShopliveInstance = () => {\n  if (isServer() || !window.cloud.shoplive) {\n    return;\n  }\n  return window.cloud.shoplive;\n};\nconst ShoplivePlugin = () => {\n  useScriptInjection({\n    scriptId: SHOPLIVE_PLUGIN_SCRIPT_ID,\n    scriptSrc: SHOPLIVE_PLUGIN_SCRIPT_SRC,\n    onLoad: () => {\n      const shoplive = getShopliveInstance();\n      shoplive == null ? void 0 : shoplive.init({\n        accessKey: env.sdk.shoplive.pluginAccessKey\n      });\n    }\n  });\n  return /* @__PURE__ */ jsx(Fragment, {});\n};\nexport {\n  SHOPLIVE_PLUGIN_SCRIPT_ID,\n  SHOPLIVE_PLUGIN_SCRIPT_SRC,\n  ShoplivePlugin\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { createContext } from \"react\";\nconst CampaignContext = createContext({});\nconst CampaignProvider = ({\n  children,\n  campaign\n}) => {\n  return /* @__PURE__ */ jsx(CampaignContext.Provider, { value: {\n    campaign\n  }, children });\n};\nexport {\n  CampaignContext,\n  CampaignProvider\n};\n","import { useContext } from \"react\";\nimport { CampaignContext } from \"./CampaignProvider.js\";\nconst useCampaign = () => {\n  return useContext(CampaignContext);\n};\nexport {\n  useCampaign\n};\n","import { useMemo, useState } from \"react\";\nimport { differenceInMilliseconds } from \"../../../../../node_modules/date-fns/differenceInMilliseconds.js\";\nimport { parseISO } from \"../../../../../node_modules/date-fns/parseISO.js\";\nimport { diffFromNowInMilliseconds } from \"../../../../../utils/date-helpers/diffFromNowInMilliseconds.js\";\nimport useInterval from \"../../../../../node_modules/react-use/esm/useInterval.js\";\nconst MS_IN_SECOND = 1e3;\nconst MS_IN_MINUTE = MS_IN_SECOND * 60;\nconst getCurrentCampaignStatus = (remaining, duration) => {\n  switch (true) {\n    case remaining < MS_IN_SECOND:\n      return \"CLOSED\";\n    case remaining - duration < MS_IN_SECOND:\n      return \"ONAIR\";\n    case remaining - duration - MS_IN_MINUTE * 10 < MS_IN_SECOND:\n      return \"REHEARSAL\";\n    default:\n      return \"READY\";\n  }\n};\nconst useCampaignStatus = (campaign) => {\n  const initialRemaining = (campaign == null ? void 0 : campaign.scheduledEndAt) ? diffFromNowInMilliseconds(parseISO(campaign.scheduledEndAt)) : 0;\n  const duration = useMemo(() => (campaign == null ? void 0 : campaign.scheduledAt) && (campaign == null ? void 0 : campaign.scheduledEndAt) ? differenceInMilliseconds(parseISO(campaign.scheduledEndAt), parseISO(campaign.scheduledAt)) : 0, [campaign]);\n  const [status, setStatus] = useState(getCurrentCampaignStatus(initialRemaining, duration));\n  const intervalCallback = () => {\n    if (!(campaign == null ? void 0 : campaign.scheduledEndAt)) {\n      return;\n    }\n    const incoming = diffFromNowInMilliseconds(parseISO(campaign.scheduledEndAt));\n    const nextStatus = getCurrentCampaignStatus(incoming, duration);\n    setStatus(nextStatus);\n  };\n  useInterval(intervalCallback, status !== \"CLOSED\" ? MS_IN_SECOND : null);\n  return status;\n};\nexport {\n  useCampaignStatus\n};\n","import { jsx } from \"react/jsx-runtime\";\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 \"../../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../../apis/preuser/PreuserApiService.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 { 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 \"../../../../../../utils/redirectLogin.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport { Breakpoint } from \"../../../../../../styles/breakpoint.js\";\nconst Layout = ({\n  children\n}) => {\n  const breakpoint = useBreakpoint();\n  return /* @__PURE__ */ jsx(\"div\", { style: baseCardStyleByBreakpoint[breakpoint], children: /* @__PURE__ */ jsx(\"div\", { style: containerStyleByBreakpoint[breakpoint], children }) });\n};\nconst baseCardStyleByBreakpoint = {\n  [Breakpoint.DESKTOP]: {\n    height: 360,\n    backgroundColor: \"#27272A\",\n    borderRadius: 6\n  },\n  [Breakpoint.TABLET]: {\n    maxWidth: \"100%\",\n    scrollSnapAlign: \"start\"\n  },\n  [Breakpoint.MOBILE]: {\n    maxWidth: \"100%\",\n    scrollSnapAlign: \"start\"\n  }\n};\nconst containerStyleByBreakpoint = {\n  [Breakpoint.DESKTOP]: {\n    position: \"relative\",\n    display: \"flex\",\n    gap: 12\n  },\n  [Breakpoint.TABLET]: {\n    position: \"relative\",\n    flex: 1,\n    maxWidth: 1080,\n    borderRadius: 6,\n    overflow: \"hidden\",\n    aspectRatio: \"3 / 4\"\n  },\n  [Breakpoint.MOBILE]: {\n    position: \"relative\",\n    flex: 1,\n    maxWidth: 1080,\n    borderRadius: 6,\n    overflow: \"hidden\",\n    aspectRatio: \"3 / 4\"\n  }\n};\nexport {\n  Layout\n};\n","const MS_IN_MINUTE = 60 * 1e3;\nconst millisecondsToMinutes = (milliseconds) => {\n  return Math.floor(milliseconds / MS_IN_MINUTE % 60);\n};\nexport {\n  millisecondsToMinutes\n};\n","const MS_IN_SECOND = 1e3;\nconst millisecondsToSeconds = (milliseconds) => {\n  return Math.floor(milliseconds / MS_IN_SECOND % 60);\n};\nexport {\n  millisecondsToSeconds\n};\n","const padZero = (num) => String(num).padStart(2, \"0\");\nexport {\n  padZero\n};\n","import { millisecondsToMinutes } from \"../../../../../utils/date-helpers/millisecondsToMinutes.js\";\nimport { millisecondsToSeconds } from \"../../../../../utils/date-helpers/millisecondsToSeconds.js\";\nimport { padZero } from \"../../../../../utils/date-helpers/padZero.js\";\nimport { parseISO } from \"../../../../../node_modules/date-fns/parseISO.js\";\nimport { isValid } from \"../../../../../node_modules/date-fns/isValid.js\";\nimport { getMinutes } from \"../../../../../node_modules/date-fns/getMinutes.js\";\nimport { formatDate as format } from \"../../../../../node_modules/date-fns/format.js\";\nimport { ko } from \"../../../../../node_modules/date-fns/locale/ko.js\";\nconst getStatusText = (status, scheduledAt, remaining) => {\n  if (status === \"READY\") {\n    return formatLiveDate(scheduledAt);\n  }\n  if (status === \"REHEARSAL\") {\n    return formatLiveCountdown(remaining);\n  }\n  if (status === \"CLOSED\") {\n    return \"종료된 라이브\";\n  }\n  if (status === \"ONAIR\") {\n    return \"지금 방송 중\";\n  }\n  return \"\";\n};\nconst formatLiveDate = (scheduledAt) => {\n  const target = parseISO(scheduledAt);\n  if (!isValid(target)) {\n    return \"\";\n  }\n  const minutes = getMinutes(target);\n  return format(target, minutes === 0 ? \"M월 d일 eeee H시\" : \"M월 d일 eeee H시 m분\", {\n    locale: ko\n  });\n};\nconst formatLiveCountdown = (milliseconds) => {\n  if (!isValid(milliseconds)) {\n    return \"\";\n  }\n  const converters = [millisecondsToMinutes, millisecondsToSeconds];\n  const [minutes, seconds] = converters.map((converter) => converter(milliseconds));\n  const lastMinuteCountDown = seconds > 0 ? `${padZero(seconds)}초 후 라이브 시작` : \"라이브 시작\";\n  return minutes > 0 ? `${padZero(minutes)}분 ${padZero(seconds)}초 후 라이브 시작` : lastMinuteCountDown;\n};\nexport {\n  getStatusText\n};\n","import { differenceInMilliseconds } from \"../node_modules/date-fns/differenceInMilliseconds.js\";\nimport { useMemo } from \"react\";\nimport { useVisibilityAwareTimer } from \"./useVisibilityAwareTimer.js\";\nconst MS_IN_SECOND = 1e3;\nconst useCountdown = (target) => {\n  const {\n    now\n  } = useVisibilityAwareTimer();\n  const remaining = useMemo(() => {\n    const diff = differenceInMilliseconds(target, now);\n    const isEnd = diff < MS_IN_SECOND;\n    return isEnd ? 0 : diff;\n  }, [target, now]);\n  return remaining;\n};\nexport {\n  useCountdown\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { mediaBuilder } from \"../../../../../../utils/mediaBuilder.js\";\nimport \"../../providers/CampaignProvider/CampaignProvider.js\";\nimport { useCampaign } from \"../../providers/CampaignProvider/CampaignProvider.hooks.js\";\nconst SRC_SET_WIDTHS = [540, 1024, 1440];\nconst Thumbnail = ({\n  style\n}) => {\n  const {\n    campaign\n  } = useCampaign();\n  if (!campaign) {\n    return null;\n  }\n  if (!campaign.imageSrc) {\n    return /* @__PURE__ */ jsx(\"div\", { style: {\n      ...style,\n      ...skeletonStyle\n    } });\n  }\n  const result = mediaBuilder((campaign == null ? void 0 : campaign.imageSrc) ?? \"\").setFormat(\"auto\").setQuality(90);\n  return /* @__PURE__ */ jsx(\"img\", { style, loading: \"lazy\", sizes: \"100vw\", srcSet: result.getSrcSet(...SRC_SET_WIDTHS), src: result.getSrc(), alt: campaign == null ? void 0 : campaign.title });\n};\nconst skeletonStyle = {\n  background: \"#27272a\"\n};\nexport {\n  Thumbnail\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport \"react\";\nimport \"framer\";\nimport { typography } from \"../../../../../../styles/typography.js\";\nimport { colors } from \"../../../../../../styles/colors.js\";\nconst LiveBadge = ({\n  status\n}) => {\n  if (!(status === \"ONAIR\" || status === \"REHEARSAL\")) {\n    return null;\n  }\n  return /* @__PURE__ */ jsxs(\"div\", { style: layoutStyle, children: [\n    /* @__PURE__ */ jsxs(\"div\", { style: pulseContainerStyle, children: [\n      /* @__PURE__ */ jsx(\"div\", { style: pulseOuterStyle }),\n      /* @__PURE__ */ jsx(\"div\", { style: pulseMiddleStyle }),\n      /* @__PURE__ */ jsx(\"div\", { style: pulseInnerStyle })\n    ] }),\n    /* @__PURE__ */ jsx(\"span\", { style: textStyle, children: \"LIVE\" })\n  ] });\n};\nconst layoutStyle = {\n  position: \"absolute\",\n  top: 0,\n  right: 0,\n  left: 0,\n  display: \"flex\",\n  alignItems: \"center\",\n  gap: \"4px\",\n  padding: \"16px\"\n};\nconst pulseContainerStyle = {\n  position: \"relative\",\n  width: \"20px\",\n  height: \"20px\"\n};\nconst pulseOuterStyle = {\n  position: \"absolute\",\n  top: 0,\n  left: 0,\n  background: colors.red500,\n  opacity: 0.1,\n  width: \"20px\",\n  height: \"20px\",\n  borderRadius: \"50%\"\n};\nconst pulseMiddleStyle = {\n  position: \"absolute\",\n  top: 2,\n  left: 2,\n  background: colors.red500,\n  opacity: 0.3,\n  width: \"16px\",\n  height: \"16px\",\n  borderRadius: \"50%\"\n};\nconst pulseInnerStyle = {\n  position: \"absolute\",\n  top: 5,\n  left: 5,\n  background: colors.red500,\n  width: \"10px\",\n  height: \"10px\",\n  borderRadius: \"50%\"\n};\nconst textStyle = {\n  color: colors.red500,\n  ...typography(12, 500, \"19.6px\")\n};\nexport {\n  LiveBadge\n};\n","import { appendQuery } from \"../../../../../utils/appendQuery.js\";\nimport { createIsomorphicLink } from \"../../../../../utils/createIsomorphicLink.js\";\nconst getTeaserLink = (campaign, componentId) => {\n  if (campaign === void 0) {\n    return;\n  }\n  if (campaign.teaserLink === void 0 || campaign.teaserLink === \"\") {\n    return;\n  }\n  return createIsomorphicLink(getUrlWithSourceParam(campaign.teaserLink, componentId));\n};\nconst getUrlWithSourceParam = (link, componentId) => {\n  return appendQuery(link, {\n    source: componentId || void 0\n  });\n};\nexport {\n  getTeaserLink\n};\n","const getTeaserButtonLabel = (status) => {\n  if (status === \"CLOSED\") {\n    return \"상품 보러가기\";\n  }\n  return \"라이브 혜택 보기\";\n};\nexport {\n  getTeaserButtonLabel\n};\n","const isOpenByStatus = {\n  READY: false,\n  REHEARSAL: true,\n  ONAIR: true,\n  CLOSED: false\n};\nconst stageStatusIdByStatus = {\n  READY: \"stage_scheduled\",\n  REHEARSAL: \"stage_rehearsal\",\n  ONAIR: \"stage_live\",\n  CLOSED: \"stage_end\"\n};\nconst buttonIdByStatus = {\n  READY: \"subscribe_notification\",\n  REHEARSAL: \"enter_page\",\n  ONAIR: \"enter_page\",\n  CLOSED: \"watch_again\"\n};\nexport {\n  buttonIdByStatus,\n  isOpenByStatus,\n  stageStatusIdByStatus\n};\n","import { jsxs, Fragment, jsx } from \"react/jsx-runtime\";\nimport { useCallback } from \"react\";\nimport { Button as Default } from \"../../../../../@shared/Button/Button.js\";\nimport { typography } from \"../../../../../../styles/typography.js\";\nimport \"../../providers/CampaignProvider/CampaignProvider.js\";\nimport { useCampaign } from \"../../providers/CampaignProvider/CampaignProvider.hooks.js\";\nimport { getStatusText } from \"../../utils/getStatusText.js\";\nimport { useCountdown } from \"../../../../../../hooks/useCountdown.js\";\nimport { useComponentId } from \"../../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { EventTrigger } from \"../../../../../@shared/EventTrigger/index.js\";\nimport { useTrackSnowplowEvent } from \"../../../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { Thumbnail } from \"../Thumbnail/Thumbnail.js\";\nimport { LiveBadge } from \"../LiveBadge/LiveBadge.js\";\nimport { getTeaserLink } from \"../../utils/getTeaserLink.js\";\nimport { getTeaserButtonLabel } from \"../../utils/getTeaserButtonLabel.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 \"../../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../../apis/preuser/PreuserApiService.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 \"../../../../../@shared/providers/BreakpointProvider/BreakpointProvider.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 \"../../../../../../utils/redirectLogin.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport { stageStatusIdByStatus } from \"../../constants/event.js\";\nimport { parseISO } from \"../../../../../../node_modules/date-fns/parseISO.js\";\nconst DesktopLiveCard = ({\n  status,\n  layoutPosition,\n  buttonState,\n  groupKey,\n  tagName\n}) => {\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const theme = useTheme();\n  const {\n    campaign\n  } = useCampaign();\n  const componentId = useComponentId();\n  const {\n    buttonLabel,\n    buttonPrefixIcon,\n    disabled,\n    handleClick,\n    buttonId,\n    alarmStatusOnClick\n  } = buttonState;\n  const scheduledAt = (campaign == null ? void 0 : campaign.scheduledAt) ?? \"\";\n  const remaining = useCountdown(parseISO(scheduledAt));\n  const link = getTeaserLink(campaign, componentId);\n  const label = getTeaserButtonLabel(status);\n  const handleClickMoreButton = useCallback(() => {\n    if (status === \"NOT_EXIST\") {\n      return;\n    }\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      layout_position: layoutPosition,\n      layout_id: `live_${campaign == null ? void 0 : campaign.campaignKey}`,\n      button_id: \"more\",\n      button_name: buttonLabel,\n      stage_status: stageStatusIdByStatus[status],\n      position: -1\n    });\n  }, [status, componentId, layoutPosition, campaign == null ? void 0 : campaign.campaignKey, buttonLabel, trackSnowplowEvent]);\n  const handleClickButton = useCallback(() => {\n    if (status === \"NOT_EXIST\") {\n      return;\n    }\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      layout_position: layoutPosition,\n      layout_id: `live_${campaign == null ? void 0 : campaign.campaignKey}`,\n      button_id: buttonId,\n      button_name: buttonLabel,\n      stage_status: stageStatusIdByStatus[status],\n      live_name: campaign == null ? void 0 : campaign.title,\n      round_date: tagName,\n      group_key: groupKey,\n      event_key: campaign == null ? void 0 : campaign.eventKey,\n      alarm_status: alarmStatusOnClick,\n      position: -1\n    });\n    handleClick();\n  }, [status, componentId, layoutPosition, groupKey, tagName, campaign == null ? void 0 : campaign.campaignKey, campaign == null ? void 0 : campaign.eventKey, campaign == null ? void 0 : campaign.title, buttonId, buttonLabel, alarmStatusOnClick, trackSnowplowEvent, handleClick]);\n  return /* @__PURE__ */ jsxs(Fragment, { children: [\n    /* @__PURE__ */ jsx(Thumbnail, { style: {\n      height: 360,\n      objectFit: \"cover\",\n      aspectRatio: \"3 / 4\",\n      borderTopLeftRadius: 6,\n      borderBottomLeftRadius: 6,\n      borderTopRightRadius: 0,\n      borderBottomRightRadius: 0\n    } }),\n    /* @__PURE__ */ jsx(LiveBadge, { status }),\n    /* @__PURE__ */ jsxs(\"div\", { style: containerStyle, children: [\n      /* @__PURE__ */ jsxs(\"div\", { style: contentStyle, children: [\n        /* @__PURE__ */ jsx(\"span\", { style: statusStyle, children: getStatusText(status, scheduledAt, remaining) }),\n        /* @__PURE__ */ jsxs(\"div\", { style: titleLayoutStyle, children: [\n          /* @__PURE__ */ jsx(\"span\", { style: titleStyle, children: campaign == null ? void 0 : campaign.title }),\n          /* @__PURE__ */ jsx(\"span\", { style: descriptionStyle, children: campaign == null ? void 0 : campaign.description })\n        ] })\n      ] }),\n      /* @__PURE__ */ jsxs(\"div\", { style: buttonStyle, children: [\n        status === \"ONAIR\" || !link ? null : /* @__PURE__ */ jsx(EventTrigger.Target, { style: {\n          width: \"100%\"\n        }, onClick: handleClickMoreButton, children: /* @__PURE__ */ jsx(Default, { as: \"a\", href: link, target: \"_blank\", rel: \"noreferrer\", variant: \"custom\", size: \"large\", fill: true, backgroundColor: \"#3D3D3D\", color: \"#fff\", children: label }) }),\n        /* @__PURE__ */ jsx(EventTrigger.Target, { style: {\n          width: \"100%\"\n        }, onClick: handleClickButton, children: disabled ? /* @__PURE__ */ jsx(Default, { variant: \"custom\", theme, size: \"large\", fill: true, disabled, backgroundColor: \"#F4F4F4\", color: \"#5D5D5D66\", prefixIcon: buttonPrefixIcon, children: buttonLabel }) : /* @__PURE__ */ jsx(Default, { variant: \"primary\", theme: \"dark\", size: \"large\", fill: true, prefixIcon: buttonPrefixIcon, children: buttonLabel }) })\n      ] })\n    ] })\n  ] });\n};\nconst containerStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: 24,\n  width: \"100%\",\n  padding: 24\n};\nconst contentStyle = {\n  flex: 1,\n  display: \"flex\",\n  flexDirection: \"column\",\n  justifyContent: \"center\",\n  gap: 32\n};\nconst titleLayoutStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: 4\n};\nconst titleStyle = {\n  color: \"#ffffff\",\n  ...typography(36, 700, 1.36)\n};\nconst descriptionStyle = {\n  ...typography(16, 400, 1.4),\n  color: \"#A0A0A0\"\n};\nconst statusStyle = {\n  backgroundColor: \"#3D3D3D\",\n  width: \"fit-content\",\n  padding: \"10px 16px\",\n  borderRadius: 4,\n  color: \"#ffffff\",\n  ...typography(14, 400, 1.4)\n};\nconst buttonStyle = {\n  width: \"100%\",\n  display: \"flex\",\n  gap: 10\n};\nexport {\n  DesktopLiveCard\n};\n","(function() {\n  \"use strict\";\n  try {\n    if (typeof document != \"undefined\") {\n      var elementStyle = document.createElement(\"style\");\n      elementStyle.appendChild(document.createTextNode(\".thumbnail-card-gradient-blur::before {\\n  content: '';\\n  position: absolute;\\n  inset: 0;\\n  backdrop-filter: blur(25px);\\n  mask-image: linear-gradient(to top, black 40%, transparent 100%);\\n  -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);\\n}\"));\n      document.head.appendChild(elementStyle);\n    }\n  } catch (e) {\n    console.error(\"vite-plugin-css-injected-by-js\", e);\n  }\n})();\nimport { jsxs, jsx } from \"react/jsx-runtime\";\nimport { 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 \"../../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../../apis/preuser/PreuserApiService.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 \"../../../../../@shared/providers/BreakpointProvider/BreakpointProvider.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 \"../../../../../../utils/redirectLogin.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport { typography } from \"../../../../../../styles/typography.js\";\nimport { LiveBadge } from \"../LiveBadge/LiveBadge.js\";\nimport { Thumbnail } from \"../Thumbnail/Thumbnail.js\";\nimport \"../../providers/CampaignProvider/CampaignProvider.js\";\nimport { useCampaign } from \"../../providers/CampaignProvider/CampaignProvider.hooks.js\";\nimport { EventTrigger } from \"../../../../../@shared/EventTrigger/index.js\";\nimport { useComponentId } from \"../../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { useTrackSnowplowEvent } from \"../../../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { Button as Default } from \"../../../../../@shared/Button/Button.js\";\nimport { useCountdown } from \"../../../../../../hooks/useCountdown.js\";\nimport { getStatusText } from \"../../utils/getStatusText.js\";\nimport { Icon } from \"../../../../../@shared/Icon/Icon.js\";\nimport { getTeaserLink } from \"../../utils/getTeaserLink.js\";\nimport { getTeaserButtonLabel } from \"../../utils/getTeaserButtonLabel.js\";\n\nimport { useNavigatePage } from \"../../../../../../hooks/useNavigatePage.js\";\nimport A from \"../../../../../../node_modules/react-wrap-balancer/dist/index.js\";\nimport { stageStatusIdByStatus } from \"../../constants/event.js\";\nimport { parseISO } from \"../../../../../../node_modules/date-fns/parseISO.js\";\nconst MobileLiveCard = ({\n  status,\n  layoutPosition,\n  buttonState,\n  groupKey,\n  tagName\n}) => {\n  const {\n    campaign\n  } = useCampaign();\n  const theme = useTheme();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const {\n    disabled,\n    buttonLabel,\n    buttonPrefixIcon,\n    handleClick,\n    buttonId,\n    alarmStatusOnClick\n  } = buttonState;\n  const scheduledAt = (campaign == null ? void 0 : campaign.scheduledAt) ?? \"\";\n  const remaining = useCountdown(parseISO(scheduledAt));\n  const componentId = useComponentId();\n  const link = getTeaserLink(campaign, componentId);\n  const navigateTeaserPage = useNavigatePage((campaign == null ? void 0 : campaign.teaserLink) ?? \"#\");\n  const handleNavigateTeaserPage = useCallback(() => {\n    if (!(campaign == null ? void 0 : campaign.teaserLink) || campaign.teaserLink === \"\") {\n      return;\n    }\n    navigateTeaserPage();\n  }, [navigateTeaserPage, campaign == null ? void 0 : campaign.teaserLink]);\n  const label = getTeaserButtonLabel(status);\n  const handleClickMoreButton = useCallback((event) => {\n    event.stopPropagation();\n    if (status === \"NOT_EXIST\" || status === \"ONAIR\") {\n      return;\n    }\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      layout_position: layoutPosition,\n      layout_id: `live_${campaign == null ? void 0 : campaign.campaignKey}`,\n      button_id: \"more\",\n      button_name: label,\n      stage_status: stageStatusIdByStatus[status],\n      position: -1\n    });\n    handleNavigateTeaserPage();\n  }, [status, componentId, layoutPosition, campaign == null ? void 0 : campaign.campaignKey, label, trackSnowplowEvent, handleNavigateTeaserPage]);\n  const handleClickButton = useCallback(() => {\n    if (status === \"NOT_EXIST\") {\n      return;\n    }\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      layout_position: layoutPosition,\n      layout_id: `live_${campaign == null ? void 0 : campaign.campaignKey}`,\n      button_id: buttonId,\n      button_name: buttonLabel,\n      stage_status: stageStatusIdByStatus[status],\n      live_name: campaign == null ? void 0 : campaign.title,\n      round_date: tagName,\n      group_key: groupKey,\n      event_key: campaign == null ? void 0 : campaign.eventKey,\n      alarm_status: alarmStatusOnClick,\n      position: -1\n    });\n    handleClick();\n  }, [status, componentId, layoutPosition, groupKey, tagName, campaign == null ? void 0 : campaign.campaignKey, campaign == null ? void 0 : campaign.eventKey, campaign == null ? void 0 : campaign.title, buttonId, buttonLabel, alarmStatusOnClick, trackSnowplowEvent, handleClick]);\n  return /* @__PURE__ */ jsxs(EventTrigger.Target, { onClick: () => {\n    if (status === \"ONAIR\") {\n      handleClickButton();\n      return;\n    }\n    handleNavigateTeaserPage();\n  }, style: {\n    position: \"relative\",\n    width: \"100%\",\n    height: \"100%\"\n  }, children: [\n    /* @__PURE__ */ jsx(Thumbnail, { style: {\n      width: \"100%\",\n      height: \"100%\",\n      objectFit: \"cover\"\n    } }),\n    /* @__PURE__ */ jsx(LiveBadge, { status }),\n    status !== \"ONAIR\" && status !== \"NOT_EXIST\" && link && /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: handleClickMoreButton, children: /* @__PURE__ */ jsxs(\"div\", { style: teaserButtonLayoutStyle, children: [\n      /* @__PURE__ */ jsx(\"span\", { children: label }),\n      /* @__PURE__ */ jsx(Icon, { type: \"arrowRight\", size: 16, color: \"#ffffff\" })\n    ] }) }),\n    /* @__PURE__ */ jsx(\"div\", { className: \"thumbnail-card-gradient-blur\", style: gradientStyle, children: /* @__PURE__ */ jsxs(\"div\", { style: contentLayoutStyle, children: [\n      /* @__PURE__ */ jsxs(\"div\", { style: bodyStyle, children: [\n        /* @__PURE__ */ jsx(\"p\", { style: titleStyle, children: campaign == null ? void 0 : campaign.title }),\n        /* @__PURE__ */ jsx(\"p\", { style: descriptionStyle, children: /* @__PURE__ */ jsx(A, { children: campaign == null ? void 0 : campaign.description }) })\n      ] }),\n      /* @__PURE__ */ jsxs(\"div\", { style: buttonContainerStyle, children: [\n        /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: (event) => {\n          event.stopPropagation();\n          handleClickButton();\n        }, children: disabled ? /* @__PURE__ */ jsx(Default, { variant: \"custom\", theme, size: \"medium\", fill: true, disabled, backgroundColor: \"#F4F4F4\", color: \"#5D5D5D66\", prefixIcon: buttonPrefixIcon, children: buttonLabel }) : /* @__PURE__ */ jsx(Default, { variant: \"primary\", theme: \"dark\", size: \"medium\", fill: true, prefixIcon: buttonPrefixIcon, children: buttonLabel }) }),\n        status !== \"ONAIR\" && status !== \"NOT_EXIST\" && /* @__PURE__ */ jsx(\"span\", { style: statusTextStyle, children: getStatusText(status, scheduledAt, remaining) })\n      ] })\n    ] }) })\n  ] });\n};\nconst teaserButtonLayoutStyle = {\n  position: \"absolute\",\n  top: 0,\n  right: 0,\n  left: 0,\n  width: \"fit-content\",\n  display: \"flex\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  gap: 4,\n  color: \"#ffffff\",\n  backgroundColor: \"#5D5D5D80\",\n  padding: \"6px 12px\",\n  borderRadius: 9999,\n  cursor: \"pointer\",\n  fontSize: 12,\n  marginLeft: \"auto\",\n  marginTop: \"12px\",\n  marginRight: \"12px\"\n};\nconst gradientStyle = {\n  position: \"absolute\",\n  inset: \"auto 0 0\",\n  bottom: 0,\n  width: \"100%\",\n  padding: \"16px\",\n  background: \"linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4))\"\n};\nconst contentLayoutStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  gap: 24\n};\nconst bodyStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  gap: 4,\n  zIndex: 0,\n  wordBreak: \"keep-all\",\n  whiteSpace: \"pre-wrap\"\n};\nconst titleStyle = {\n  margin: 0,\n  width: \"100%\",\n  textAlign: \"center\",\n  color: \"#ffffff\",\n  ...typography(22, 700, 1.36)\n};\nconst descriptionStyle = {\n  margin: 0,\n  width: \"100%\",\n  textAlign: \"center\",\n  color: \"#ffffff\",\n  ...typography(14, 500, 1.4)\n};\nconst buttonContainerStyle = {\n  zIndex: 0,\n  width: \"100%\",\n  display: \"flex\",\n  flexDirection: \"column\",\n  borderRadius: 4,\n  background: \"rgba(255, 255, 255, 0.13)\"\n};\nconst statusTextStyle = {\n  color: \"#ffffff\",\n  padding: \"8px 16px\",\n  textAlign: \"center\",\n  ...typography(12, 400, 1.4)\n};\nexport {\n  MobileLiveCard\n};\n","import { useEffect } from \"react\";\nimport { useCampaignStatus } from \"./useCampaignStatus.js\";\nimport \"../providers/CampaignProvider/CampaignProvider.js\";\nimport { useCampaign } from \"../providers/CampaignProvider/CampaignProvider.hooks.js\";\nimport { postMessage } from \"../../../../../utils/postMessage.js\";\nconst useInAppLivePreview = (enabled) => {\n  const {\n    campaign\n  } = useCampaign();\n  const status = useCampaignStatus(campaign);\n  useEffect(() => {\n    if (enabled && campaign !== void 0 && status === \"ONAIR\") {\n      openLivePreviewPopup(campaign.campaignKey);\n    }\n  }, [campaign, status]);\n};\nconst openLivePreviewPopup = (campaignKey) => {\n  postMessage(\"openLivePreviewPopup\", {\n    campaignKey\n  });\n};\nexport {\n  useInAppLivePreview\n};\n","import { useAnalytics } from \"../../../../../hooks/analytics/useAnalytics.js\";\nconst useTrackClickPlayLiveContent = () => {\n  const {\n    trackAmplitude\n  } = useAnalytics();\n  const trackClickPlayLiveContent = (campaignKey) => {\n    const properties = {\n      campaign_key: campaignKey\n    };\n    trackAmplitude(\"click_play_live_content\", properties);\n  };\n  return {\n    trackClickPlayLiveContent\n  };\n};\nconst useTrackSubscribeLiveContent = () => {\n  const {\n    trackAmplitude\n  } = useAnalytics();\n  const trackSubscribeLiveContent = (campaignKey) => {\n    const properties = {\n      campaign_key: campaignKey\n    };\n    trackAmplitude(\"subscribe_live_content\", properties);\n  };\n  return {\n    trackSubscribeLiveContent\n  };\n};\nexport {\n  useTrackClickPlayLiveContent,\n  useTrackSubscribeLiveContent\n};\n","import useSWR from \"../node_modules/swr/core/dist/index.js\";\nimport { useEffect } from \"react\";\nimport \"./stores/content/content.store.js\";\nimport { isClient } from \"../utils/context.js\";\nimport \"../utils/event-properties/source.js\";\nimport \"framer\";\nconst useIsNotificationRegistered = (key) => {\n  const {\n    data: isRegistered,\n    mutate\n  } = useSWR(key, () => {\n    return isClient() ? isNotificationAlreadyRegistered(key) : false;\n  });\n  const markAsRegistered = () => {\n    if (!key) {\n      return;\n    }\n    window.localStorage.setItem(key, \"true\");\n    mutate();\n  };\n  useEffect(() => {\n    if (!key) {\n      return;\n    }\n    mutate();\n  }, [key, mutate]);\n  return {\n    isRegistered,\n    markAsRegistered\n  };\n};\nconst isNotificationAlreadyRegistered = (key) => {\n  try {\n    const value = JSON.parse(window.localStorage.getItem(key) ?? \"false\");\n    return value === true;\n  } catch (error) {\n    return false;\n  }\n};\nexport {\n  useIsNotificationRegistered\n};\n","import { useAnalytics } from \"../../../hooks/analytics/useAnalytics.js\";\nimport { useContentStore } from \"../../../hooks/stores/content/content.store.js\";\nimport { useDialog } from \"../../../hooks/useDialog.js\";\nimport { useIsNotificationRegistered } from \"../../../hooks/useIsNotificationRegistered.js\";\nimport { useNotificationRequirements } from \"../../../hooks/useNotificationRequirements.js\";\nimport { useRequestUserAgreementBottomSheet } from \"../../../hooks/useRequestUserAgreementBottomSheet.js\";\nimport { useWithApp } from \"../../../hooks/useWithApp.js\";\nimport { useWithLogin } from \"../../../hooks/useWithLogin.js\";\nimport { isContentOrigin } from \"../../../utils/location.js\";\nconst NOTIFICATION_AGREEMENTS_API_END_POINT = \"content-detail-page\";\nconst ACCESS_FROM_APP_MESSAGE = \"알림 신청 기능은 APP에서만 사용할 수 있어요\\nAPP에서 다시 시도해 주세요.\";\nconst useNotification = (key, options) => {\n  const requestRequirements = useNotificationRequirements();\n  const {\n    isTargetAppVersion,\n    requestUserAgreementBottomSheet\n  } = useRequestUserAgreementBottomSheet();\n  const trackClickNotificationEvent = useTrackClickNotificationEvent(key);\n  const {\n    isRegistered,\n    markAsRegistered\n  } = useIsNotificationRegistered(key);\n  const dialog = useDialog();\n  const withLogin = useWithLogin();\n  const withApp = useWithApp({\n    content: ACCESS_FROM_APP_MESSAGE\n  });\n  const onNotificationEnabled = () => {\n    var _a;\n    markAsRegistered();\n    if (!(options == null ? void 0 : options.bypassNotificationEventTracking)) {\n      trackClickNotificationEvent();\n    }\n    (_a = options == null ? void 0 : options.onNotificationEnabled) == null ? void 0 : _a.call(options);\n  };\n  const registerNotification = withApp(withLogin(() => {\n    if (isTargetAppVersion) {\n      requestUserAgreementBottomSheet({\n        type: \"CONTENT_DETAIL_PAGE\",\n        onConfirm: onNotificationEnabled\n      });\n    } else {\n      requestRequirements({\n        apiEndpoint: NOTIFICATION_AGREEMENTS_API_END_POINT,\n        onNotificationEnabled\n      });\n    }\n  }));\n  const notifyAlreadyRegistered = () => {\n    dialog.show({\n      title: \"알림 신청이 이미 되어 있어요.\",\n      content: \"잊지 않도록 알림을 보내드릴게요.\",\n      primaryButtonText: \"확인\"\n    });\n  };\n  return {\n    isRegistered,\n    registerNotification,\n    notifyAlreadyRegistered\n  };\n};\nconst useTrackClickNotificationEvent = (key) => {\n  const {\n    trackFirebase,\n    trackAmplitude\n  } = useAnalytics();\n  const trackClickNotificationEvent = () => {\n    if (!isContentOrigin()) {\n      return;\n    }\n    const {\n      contentId\n    } = useContentStore.getState().summary;\n    const properties = {\n      notification_key: key,\n      curr_screen: getCurrentScreen(),\n      content_no: contentId,\n      format_type: \"FRAMER\",\n      target_status: \"on\"\n    };\n    trackFirebase(\"click_notification\", properties);\n    trackAmplitude(\"click_notification\", properties);\n  };\n  return trackClickNotificationEvent;\n};\nconst getCurrentScreen = () => new URL(document.location.href).pathname.substring(1);\nexport {\n  useNotification,\n  useTrackClickNotificationEvent\n};\n","import { useCallback } from \"react\";\nimport { useNotification } from \"../../../primitives/Notification/Notification.hooks.js\";\nimport { useHandleSubscription } from \"../SubscriptionButton/SubscriptionButton.hooks.js\";\nconst useLiveNotification = ({\n  campaignKey,\n  eventKey,\n  groupKey,\n  sectionKey,\n  subscribedEventKeys,\n  onLegacySubscribed\n}) => {\n  const normalizedEventKey = (eventKey == null ? void 0 : eventKey.trim()) ?? \"\";\n  const normalizedGroupKey = (groupKey == null ? void 0 : groupKey.trim()) || void 0;\n  const shouldUseSubscriptionApi = Boolean(normalizedEventKey);\n  const {\n    isRegistered,\n    registerNotification\n  } = useNotification(campaignKey, {\n    bypassNotificationEventTracking: true,\n    onNotificationEnabled: onLegacySubscribed\n  });\n  const {\n    isSubscribed,\n    toggleSubscription\n  } = useHandleSubscription({\n    sectionKey: sectionKey || normalizedGroupKey || normalizedEventKey,\n    groupKey: normalizedGroupKey,\n    eventKey: normalizedEventKey,\n    restEventKeys: []\n  }, shouldUseSubscriptionApi);\n  const isNotificationEnabled = shouldUseSubscriptionApi ? (subscribedEventKeys == null ? void 0 : subscribedEventKeys.has(normalizedEventKey)) ?? isSubscribed : isRegistered;\n  const toggleNotification = useCallback(() => {\n    if (shouldUseSubscriptionApi) {\n      toggleSubscription({\n        shouldTrackClickEvent: false\n      });\n      return;\n    }\n    registerNotification();\n  }, [registerNotification, shouldUseSubscriptionApi, toggleSubscription]);\n  return {\n    shouldUseSubscriptionApi,\n    isNotificationEnabled,\n    toggleNotification\n  };\n};\nexport {\n  useLiveNotification\n};\n","import { useTrackSubscribeLiveContent, useTrackClickPlayLiveContent } from \"./event.js\";\nimport { isWebview } from \"../../../../../utils/device.js\";\nimport { useAppLinkDialog } from \"../../../../@shared/dialogs/AppLinkDialog/AppLinkDialog.hooks.js\";\nimport { useLiveNotification } from \"../../hooks/useLiveNotification.js\";\nvar LIVE_CAMPAIGN_BUTTON_TEXT = /* @__PURE__ */ ((LIVE_CAMPAIGN_BUTTON_TEXT2) => {\n  LIVE_CAMPAIGN_BUTTON_TEXT2[\"REHEARSAL\"] = \"리허설 입장하기\";\n  LIVE_CAMPAIGN_BUTTON_TEXT2[\"ONAIR\"] = \"라이브 보러가기\";\n  LIVE_CAMPAIGN_BUTTON_TEXT2[\"CLOSED\"] = \"라이브 다시보기\";\n  return LIVE_CAMPAIGN_BUTTON_TEXT2;\n})(LIVE_CAMPAIGN_BUTTON_TEXT || {});\nconst useCampaignButton = (campaignKey, eventKey, status, options) => {\n  const {\n    trackSubscribeLiveContent\n  } = useTrackSubscribeLiveContent();\n  const {\n    trackClickPlayLiveContent\n  } = useTrackClickPlayLiveContent();\n  const {\n    isNotificationEnabled,\n    shouldUseSubscriptionApi,\n    toggleNotification\n  } = useLiveNotification({\n    campaignKey,\n    eventKey,\n    groupKey: options == null ? void 0 : options.groupKey,\n    sectionKey: \"\",\n    subscribedEventKeys: options == null ? void 0 : options.subscribedEventKeys,\n    onLegacySubscribed: () => {\n      if (!campaignKey) {\n        return;\n      }\n      trackSubscribeLiveContent(campaignKey);\n    }\n  });\n  const appLinkDialog = useAppLinkDialog({\n    content: `'라이브 방송은 APP 전용 서비스예요!\nAPP에서 다시 시도해주세요.`,\n    displayDesktopQRCode: false\n  });\n  const getButtonLabel = () => {\n    switch (status) {\n      case \"REHEARSAL\":\n      case \"ONAIR\":\n      case \"CLOSED\":\n        return LIVE_CAMPAIGN_BUTTON_TEXT[status];\n      case \"READY\":\n        if (!isNotificationEnabled) {\n          return \"알림 받기\";\n        }\n        return shouldUseSubscriptionApi ? \"알림 해제\" : \"알림 받기 완료\";\n      default:\n        return \"\";\n    }\n  };\n  const getButtonPrefixIcon = () => {\n    if (!shouldUseSubscriptionApi) {\n      return void 0;\n    }\n    switch (status) {\n      case \"READY\":\n        if (!isNotificationEnabled) {\n          return \"bell\";\n        }\n        return \"bellOff\";\n      default:\n        return void 0;\n    }\n  };\n  const getButtonId = () => {\n    if (status === \"READY\") {\n      if (!isNotificationEnabled) {\n        return \"subscribe_notification\";\n      }\n      return \"unsubscribe_notification\";\n    }\n    if (status === \"REHEARSAL\" || status === \"ONAIR\") {\n      return \"enter_page\";\n    }\n    if (status === \"CLOSED\") {\n      return \"watch_again\";\n    }\n    return \"ready\";\n  };\n  const getAlarmStatusOnClick = () => {\n    if (status !== \"READY\") {\n      return void 0;\n    }\n    if (shouldUseSubscriptionApi || !isNotificationEnabled) {\n      return !isNotificationEnabled;\n    }\n    return Boolean(isNotificationEnabled);\n  };\n  const handleClick = () => {\n    if (status === \"NOT_EXIST\" || !campaignKey) {\n      return;\n    }\n    if (status === \"READY\" && (shouldUseSubscriptionApi || !isNotificationEnabled)) {\n      toggleNotification();\n      return;\n    }\n    if (status === \"READY\" && isNotificationEnabled) {\n      return;\n    }\n    if (!isWebview()) {\n      appLinkDialog.show();\n      return;\n    }\n    trackClickPlayLiveContent(campaignKey);\n    document.location.href = `app29cm://content/live/${campaignKey}`;\n  };\n  return {\n    disabled: status === \"READY\" && Boolean(isNotificationEnabled) && !shouldUseSubscriptionApi,\n    buttonId: getButtonId(),\n    buttonLabel: getButtonLabel(),\n    buttonPrefixIcon: getButtonPrefixIcon(),\n    isCurrentAlarmEnabled: Boolean(isNotificationEnabled),\n    alarmStatusOnClick: getAlarmStatusOnClick(),\n    handleClick\n  };\n};\nexport {\n  useCampaignButton\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport \"../providers/CampaignProvider/CampaignProvider.js\";\nimport { useCampaign } from \"../providers/CampaignProvider/CampaignProvider.hooks.js\";\nimport { useCampaignStatus } from \"../hooks/useCampaignStatus.js\";\nimport { Skeleton } from \"../../../../@shared/Skeleton/Skeleton.js\";\nimport { Layout } from \"./Layout/Layout.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 \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.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 { 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 \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { Breakpoint } from \"../../../../../styles/breakpoint.js\";\nimport { DesktopLiveCard } from \"./DesktopLiveCard/DesktopLiveCard.js\";\nimport { EventTrigger } from \"../../../../@shared/EventTrigger/index.js\";\nimport { useTrackSnowplowEvent } from \"../../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { useComponentId } from \"../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { MobileLiveCard } from \"./MobileLiveCard/MobileLiveCard.js\";\nimport { isOpenByStatus, stageStatusIdByStatus } from \"../constants/event.js\";\nimport { useInAppLivePreview } from \"../hooks/useInAppLivePreview.js\";\nimport { useCampaignButton } from \"../hooks/useCampaignButton.js\";\nconst LiveCard = ({\n  pending,\n  layoutPosition = 1,\n  shouldRenderInAppLivePreview,\n  groupKey,\n  tagName,\n  subscribedEventKeys\n}) => {\n  const {\n    campaign\n  } = useCampaign();\n  const breakpoint = useBreakpoint();\n  const componentId = useComponentId();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const status = useCampaignStatus(campaign);\n  const buttonState = useCampaignButton(campaign == null ? void 0 : campaign.campaignKey, campaign == null ? void 0 : campaign.eventKey, status, {\n    groupKey,\n    subscribedEventKeys\n  });\n  const isPending = pending === true || campaign === void 0;\n  useInAppLivePreview(shouldRenderInAppLivePreview);\n  if (isPending || status === \"NOT_EXIST\") {\n    return /* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsx(Skeleton, { style: {\n      height: \"100%\",\n      backgroundColor: \"#27272A\"\n    } }) });\n  }\n  const handleImpression = () => {\n    trackSnowplowEvent(\"impression_content\", {\n      section_name: componentId,\n      section_title: componentId,\n      layout_position: layoutPosition,\n      layout_id: `live_${campaign == null ? void 0 : campaign.campaignKey}`,\n      is_open: isOpenByStatus[status],\n      stage_status: stageStatusIdByStatus[status],\n      live_name: campaign == null ? void 0 : campaign.title,\n      round_date: tagName,\n      alarm_status: buttonState.isCurrentAlarmEnabled,\n      position: -1\n    });\n  };\n  return /* @__PURE__ */ jsx(EventTrigger.Root, { types: [\"impression\"], onImpression: handleImpression, children: /* @__PURE__ */ jsx(Layout, { children: breakpoint === Breakpoint.DESKTOP ? /* @__PURE__ */ jsx(DesktopLiveCard, { status, layoutPosition, buttonState, groupKey, tagName }) : /* @__PURE__ */ jsx(MobileLiveCard, { status, layoutPosition, buttonState, groupKey, tagName }) }) });\n};\nexport {\n  LiveCard\n};\n","import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { useRef, useState, useEffect, Fragment } from \"react\";\nimport { CampaignProvider } from \"../providers/CampaignProvider/CampaignProvider.js\";\nimport { LiveCard } from \"../LiveCard/LiveCard.js\";\nimport \"../../IntersectionProvider/IntersectionProvider.js\";\nimport { useIntersectionContext } from \"../../IntersectionProvider/IntersectionProvider.hooks.js\";\nimport { Breakpoint } from \"../../../../../styles/breakpoint.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 \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.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 \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { ArrowIcon } from \"../../ArrowIcon/ArrowIcon.js\";\nconst NAVIGATOR_SIZE = 50;\nconst LiveCards = ({\n  campaigns,\n  pending,\n  shouldRenderInAppLivePreview,\n  groupKey,\n  tagName,\n  subscribedEventKeys\n}) => {\n  const listRef = useRef(null);\n  const isScrolling = useRef(false);\n  const [hasPrevious, setHasPrevious] = useState(false);\n  const [hasNext, setHasNext] = useState(false);\n  const breakpoint = useBreakpoint();\n  const {\n    isInView\n  } = useIntersectionContext();\n  const theme = useTheme();\n  const shouldRenderNavigator = breakpoint === \"desktop\" && (hasPrevious || hasNext);\n  const hasMultipleCampaigns = ((campaigns == null ? void 0 : campaigns.length) ?? 0) > 1;\n  useEffect(() => {\n    const container = listRef.current;\n    if (container === null) {\n      return;\n    }\n    const hasNextContent = container.scrollWidth > container.clientWidth;\n    setHasNext(hasNextContent);\n  }, []);\n  const scrollTo = (direction) => {\n    const container = listRef.current;\n    if (isScrolling.current || container === null) {\n      return;\n    }\n    const position = getScrollPosition(container, 10, 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 getScrollPosition = (container, inset, direction) => {\n    const contentWidth = container.clientWidth * 0.8;\n    const offset = contentWidth + inset;\n    return Math.ceil(container.scrollLeft + (direction === \"previous\" ? -offset : offset));\n  };\n  if (pending || !campaigns) {\n    return /* @__PURE__ */ jsx(\"div\", { style: {\n      ...liveCardLayoutStyleByBreakpoint[breakpoint],\n      gridAutoColumns: \"100%\"\n    }, children: /* @__PURE__ */ jsx(LiveCard, { pending: true, shouldRenderInAppLivePreview, groupKey, tagName, subscribedEventKeys }) });\n  }\n  const gridAutoColumns = gridAutoColumnsByBreakpoint[breakpoint]({\n    shouldRenderNavigator,\n    hasMultipleCampaigns\n  });\n  return /* @__PURE__ */ jsxs(\"div\", { style: {\n    position: \"relative\",\n    width: \"100%\"\n  }, children: [\n    shouldRenderNavigator ? /* @__PURE__ */ jsx(ArrowIcon, { style: {\n      ...baseNavigatorStyle,\n      ...leftNavigatorStyle\n    }, color: hasPrevious ? iconColorByTheme[theme] : disabledIconColorByTheme[theme], onClick: handlePreviousClick }) : null,\n    /* @__PURE__ */ jsx(\"div\", { ref: listRef, style: {\n      ...liveCardLayoutStyleByBreakpoint[breakpoint],\n      gridAutoColumns\n    }, children: campaigns.map((campaign, index) => {\n      return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(CampaignProvider, { campaign, children: /* @__PURE__ */ jsx(LiveCard, { pending: !isInView, layoutPosition: index + 1, shouldRenderInAppLivePreview, groupKey, tagName, subscribedEventKeys }) }) }, campaign.campaignKey);\n    }) }),\n    shouldRenderNavigator ? /* @__PURE__ */ jsx(ArrowIcon, { style: {\n      ...baseNavigatorStyle,\n      ...rightNavigatorStyle\n    }, color: hasNext ? iconColorByTheme[theme] : disabledIconColorByTheme[theme], onClick: handleNextClick }) : null,\n    shouldRenderNavigator && hasNext && /* @__PURE__ */ jsx(\"div\", { style: {\n      position: \"absolute\",\n      zIndex: 8,\n      inset: \"0px 0px 0px auto\",\n      pointerEvents: \"none\",\n      width: \"60px\",\n      background: rightOverlayGradientByTheme[theme],\n      opacity: 1\n    } })\n  ] });\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 iconColorByTheme = {\n  light: \"#000\",\n  dark: \"#fff\"\n};\nconst disabledIconColorByTheme = {\n  light: \"#a0a0a0\",\n  dark: \"#474747\"\n};\nconst rightOverlayGradientByTheme = {\n  light: \"\",\n  dark: \"linear-gradient(270deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%)\"\n};\nconst liveCardLayoutStyleByBreakpoint = {\n  [Breakpoint.DESKTOP]: {\n    display: \"grid\",\n    gridAutoFlow: \"column\",\n    overflowX: \"hidden\",\n    gap: \"10px\"\n  },\n  [Breakpoint.TABLET]: {\n    display: \"grid\",\n    gridAutoFlow: \"column\",\n    gridAutoColumns: \"100%\",\n    overflowX: \"auto\",\n    gap: \"6px\",\n    padding: \"0px 20px\",\n    scrollPadding: \"0px 20px\",\n    scrollSnapType: \"x mandatory\",\n    WebkitScrollSnapType: \"x mandatory\",\n    msOverflowStyle: \"none\",\n    scrollbarWidth: \"none\"\n  },\n  [Breakpoint.MOBILE]: {\n    display: \"grid\",\n    gridAutoFlow: \"column\",\n    gridAutoColumns: \"100%\",\n    overflowX: \"auto\",\n    gap: \"6px\",\n    padding: \"0px 20px\",\n    scrollPadding: \"0px 20px\",\n    scrollSnapType: \"x mandatory\",\n    WebkitScrollSnapType: \"x mandatory\",\n    msOverflowStyle: \"none\",\n    scrollbarWidth: \"none\"\n  }\n};\nconst gridAutoColumnsByBreakpoint = {\n  [Breakpoint.DESKTOP]: ({\n    shouldRenderNavigator\n  }) => shouldRenderNavigator ? \"80%\" : \"100%\",\n  [Breakpoint.TABLET]: ({\n    hasMultipleCampaigns\n  }) => hasMultipleCampaigns ? \"80%\" : \"100%\",\n  [Breakpoint.MOBILE]: ({\n    hasMultipleCampaigns\n  }) => hasMultipleCampaigns ? \"80%\" : \"100%\"\n};\nexport {\n  LiveCards\n};\n","const LIVE_ALL_NOTIFICATION_TOAST_MESSAGES = {\n  SUBSCRIBED: \"전체 알림 설정이 완료되었습니다.\",\n  UNSUBSCRIBED: \"전체 알림 설정이 취소되었습니다.\",\n  ERROR_WHILE_SUBSCRIBE: \"일시적인 오류로 알림 설정에 실패했습니다.\",\n  ERROR_WHILE_UNSUBSCRIBE: \"일시적인 오류로 알림 취소에 실패했습니다.\"\n};\nexport {\n  LIVE_ALL_NOTIFICATION_TOAST_MESSAGES\n};\n","import { useMemo, useCallback } from \"react\";\nimport { useRequestSubscription } from \"../../../../../hooks/useRequestSubscription.js\";\nimport { useNotificationAgreementsToast } from \"../../../../@shared/toasts/NotificationAgreementsToast/NotificationAgreementsToast.hooks.js\";\nimport { useWithLogin } from \"../../../../../hooks/useWithLogin.js\";\nimport { useWithApp } from \"../../../../../hooks/useWithApp.js\";\nimport { useRequestUserAgreementBottomSheet } from \"../../../../../hooks/useRequestUserAgreementBottomSheet.js\";\nimport { LIVE_ALL_NOTIFICATION_TOAST_MESSAGES } from \"../constants/toastMessages.js\";\nconst useLiveAllNotification = ({\n  groupKey,\n  eventKeys,\n  subscribedEventKeys,\n  onOptimisticSubscribedChange,\n  refreshSubscriptions,\n  enabled = true\n}) => {\n  const toast = useNotificationAgreementsToast();\n  const normalizedEventKeys = useMemo(() => Array.from(new Set(eventKeys.map((eventKey) => eventKey.trim()).filter(Boolean))), [eventKeys]);\n  const normalizedGroupKey = groupKey.trim();\n  const primaryEventKey = normalizedEventKeys[0] ?? \"\";\n  const {\n    subscriptions,\n    requestSubscribe,\n    requestUnsubscribe\n  } = useRequestSubscription(primaryEventKey, normalizedGroupKey, enabled);\n  const withLogin = useWithLogin();\n  const withApp = useWithApp({\n    content: \"알림 신청 기능은 APP에서만 사용할 수 있어요\\nAPP에서 다시 시도해 주세요.\"\n  });\n  const requestRequirements = useSubscriptionRequirements();\n  const currentSubscribedEventKeys = useMemo(() => subscribedEventKeys ?? new Set(subscriptions), [subscribedEventKeys, subscriptions]);\n  const isSubscribed = normalizedEventKeys.length > 0 && normalizedEventKeys.every((eventKey) => currentSubscribedEventKeys.has(eventKey));\n  const eventKeysToSubscribe = useMemo(() => normalizedEventKeys.filter((eventKey) => !currentSubscribedEventKeys.has(eventKey)), [currentSubscribedEventKeys, normalizedEventKeys]);\n  const eventKeysToUnsubscribe = useMemo(() => normalizedEventKeys.filter((eventKey) => currentSubscribedEventKeys.has(eventKey)), [currentSubscribedEventKeys, normalizedEventKeys]);\n  const subscribeAll = useCallback(async () => {\n    if (eventKeysToSubscribe.length === 0) {\n      return;\n    }\n    const isReadyToSubscribe = await requestRequirements();\n    if (!isReadyToSubscribe) {\n      return;\n    }\n    const previous = new Set(currentSubscribedEventKeys);\n    const optimistic = new Set(previous);\n    eventKeysToSubscribe.forEach((eventKey) => optimistic.add(eventKey));\n    onOptimisticSubscribedChange(optimistic);\n    let hasSubscribeError = false;\n    try {\n      await requestSubscribe(eventKeysToSubscribe);\n    } catch {\n      hasSubscribeError = true;\n    }\n    let hasRefreshError = false;\n    try {\n      await refreshSubscriptions();\n    } catch {\n      hasRefreshError = true;\n    } finally {\n      onOptimisticSubscribedChange(null);\n    }\n    if (hasSubscribeError || hasRefreshError) {\n      toast.show(LIVE_ALL_NOTIFICATION_TOAST_MESSAGES.ERROR_WHILE_SUBSCRIBE, true);\n      return;\n    }\n  }, [currentSubscribedEventKeys, eventKeysToSubscribe, onOptimisticSubscribedChange, refreshSubscriptions, requestSubscribe, requestRequirements, toast]);\n  const unsubscribeAll = useCallback(async () => {\n    if (eventKeysToUnsubscribe.length === 0) {\n      return;\n    }\n    const previous = new Set(currentSubscribedEventKeys);\n    const optimistic = new Set(previous);\n    eventKeysToUnsubscribe.forEach((eventKey) => optimistic.delete(eventKey));\n    onOptimisticSubscribedChange(optimistic);\n    const unsubscribeRequests = [];\n    eventKeysToUnsubscribe.forEach((eventKey) => {\n      unsubscribeRequests.push(requestUnsubscribe(eventKey));\n    });\n    const unsubscribeResults = await Promise.allSettled(unsubscribeRequests);\n    const hasUnsubscribeError = unsubscribeResults.some((result) => result.status === \"rejected\");\n    let hasRefreshError = false;\n    try {\n      await refreshSubscriptions();\n    } catch {\n      hasRefreshError = true;\n    } finally {\n      onOptimisticSubscribedChange(null);\n    }\n    if (hasUnsubscribeError || hasRefreshError) {\n      toast.show(LIVE_ALL_NOTIFICATION_TOAST_MESSAGES.ERROR_WHILE_UNSUBSCRIBE, true);\n      return;\n    }\n    toast.show(LIVE_ALL_NOTIFICATION_TOAST_MESSAGES.UNSUBSCRIBED, true);\n  }, [currentSubscribedEventKeys, eventKeysToUnsubscribe, onOptimisticSubscribedChange, refreshSubscriptions, requestUnsubscribe, toast]);\n  const toggleSubscription = useCallback(async () => {\n    if (isSubscribed) {\n      await unsubscribeAll();\n      return;\n    }\n    await subscribeAll();\n  }, [isSubscribed, subscribeAll, unsubscribeAll]);\n  return {\n    isSubscribed,\n    eventKeysToSubscribe,\n    eventKeysToUnsubscribe,\n    toggleSubscription: withApp(withLogin(toggleSubscription))\n  };\n};\nconst useSubscriptionRequirements = () => {\n  const {\n    isTargetAppVersion,\n    requestUserAgreementBottomSheet\n  } = useRequestUserAgreementBottomSheet();\n  const request = () => {\n    return new Promise((resolve) => {\n      if (!isTargetAppVersion) {\n        requestUserAgreementBottomSheet({\n          type: \"CONTENT_DETAIL_PAGE\"\n        });\n        resolve(false);\n        return;\n      }\n      requestUserAgreementBottomSheet({\n        snackBarTitle: LIVE_ALL_NOTIFICATION_TOAST_MESSAGES.SUBSCRIBED,\n        type: \"CONTENT_DETAIL_PAGE\",\n        onCancel: () => resolve(false),\n        onConfirm: () => resolve(true)\n      });\n    });\n  };\n  return request;\n};\nexport {\n  useLiveAllNotification\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { SwitchButton } from \"../../../@shared/SwitchButton/SwitchButton.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 \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport { isCanvas } from \"../../../../utils/framer/isCanvas.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 \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.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 \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { useTrackSnowplowEvent } from \"../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { useComponentId } from \"../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../EventTrackingProvider/EventTrackingProvider.js\";\nimport { useLiveAllNotification } from \"./hooks/useLiveAllNotification.js\";\nconst LiveAllNotificationSwitch = ({\n  groupKey,\n  eventKeys,\n  buttonText,\n  activeColor,\n  disabled = false,\n  subscribedEventKeys,\n  onOptimisticSubscribedChange,\n  refreshSubscriptions\n}) => {\n  const theme = useTheme();\n  const componentId = useComponentId();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const {\n    isSubscribed,\n    eventKeysToSubscribe,\n    eventKeysToUnsubscribe,\n    toggleSubscription\n  } = useLiveAllNotification({\n    groupKey,\n    eventKeys,\n    subscribedEventKeys,\n    onOptimisticSubscribedChange,\n    refreshSubscriptions\n  });\n  const handleClick = () => {\n    if (disabled) {\n      return;\n    }\n    const nextAlarmStatus = !isSubscribed;\n    const trackingEventKeys = nextAlarmStatus ? eventKeysToSubscribe : eventKeysToUnsubscribe;\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      position: -1,\n      layout_position: -1,\n      button_id: \"toggle_notification\",\n      button_name: buttonText,\n      alarm_status: nextAlarmStatus,\n      group_key: groupKey,\n      event_key: trackingEventKeys.join(\",\")\n    });\n    toggleSubscription();\n  };\n  return /* @__PURE__ */ jsx(SwitchButton, { theme, activeColor, active: isSubscribed || isCanvas(), style: disabled ? disabledSwitchStyle : void 0, onClick: handleClick, children: buttonText });\n};\nconst disabledSwitchStyle = {\n  opacity: 0.5,\n  pointerEvents: \"none\"\n};\nexport {\n  LiveAllNotificationSwitch\n};\n","import { toDate } from \"./toDate.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nfunction addMilliseconds(date, amount) {\n  const timestamp = +toDate(date);\n  return constructFrom(date, timestamp + amount);\n}\nexport {\n  addMilliseconds,\n  addMilliseconds as default\n};\n","import { addMilliseconds } from \"./addMilliseconds.js\";\nimport { millisecondsInMinute } from \"./constants.js\";\nfunction addMinutes(date, amount) {\n  return addMilliseconds(date, amount * millisecondsInMinute);\n}\nexport {\n  addMinutes,\n  addMinutes as default\n};\n","import { addMinutes } from \"./addMinutes.js\";\nfunction subMinutes(date, amount) {\n  return addMinutes(date, -amount);\n}\nexport {\n  subMinutes as default,\n  subMinutes\n};\n","import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { Headline } from \"../Headline/index.js\";\nimport { Skeleton } from \"../../../@shared/Skeleton/Skeleton.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 \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../apis/preuser/PreuserApiService.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 \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.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 \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { createKRTimeZoneDate } from \"../../../../utils/createUTCDate.js\";\nimport { splitToStringArray } from \"../../../../utils/splitToStringArray.js\";\nimport { LiveAllNotificationSwitch } from \"./LiveAllNotificationSwitch.js\";\nimport \"./providers/CampaignsProvider/CampaignsProvider.js\";\nimport { useCampaigns } from \"./providers/CampaignsProvider/CampaignsProvider.hooks.js\";\nimport { subMinutes } from \"../../../../node_modules/date-fns/subMinutes.js\";\nimport { isValid } from \"../../../../node_modules/date-fns/isValid.js\";\nimport { isBefore } from \"../../../../node_modules/date-fns/isBefore.js\";\nconst LiveHeadline = ({\n  pending,\n  groupKey,\n  allNotification,\n  campaigns = [],\n  subscribedEventKeys,\n  onOptimisticSubscribedChange,\n  refreshSubscriptions\n}) => {\n  const theme = useTheme();\n  const {\n    campaigns: richCampaigns\n  } = useCampaigns();\n  const {\n    headlineTitle,\n    gap,\n    switchButtonText,\n    switchActiveColor\n  } = allNotification;\n  const eventKeys = useMemo(() => {\n    const now = createKRTimeZoneDate();\n    const campaignScheduledAtByCampaignKey = new Map((richCampaigns ?? []).map((campaign) => [campaign.campaignKey, campaign.scheduledAt]));\n    const allEventKeys = campaigns.flatMap((campaign) => {\n      const scheduledAt = campaignScheduledAtByCampaignKey.get(campaign.campaignKey);\n      const startDate = scheduledAt ? createKRTimeZoneDate(scheduledAt) : null;\n      const rehearsalStartDate = startDate !== null && isValid(startDate) ? subMinutes(startDate, 10) : null;\n      const isBeforeRehearsal = rehearsalStartDate !== null && isBefore(now, rehearsalStartDate);\n      if (!isBeforeRehearsal) {\n        return [];\n      }\n      return splitToStringArray(campaign.eventKey ?? \"\").filter(Boolean);\n    });\n    return Array.from(new Set(allEventKeys));\n  }, [campaigns, richCampaigns]);\n  const isGroupKeyMissing = !(groupKey == null ? void 0 : groupKey.trim());\n  return /* @__PURE__ */ jsx(Headline.Root, { priority: \"tertiary\", children: /* @__PURE__ */ jsxs(Headline.Content, { style: {\n    paddingBottom: `${Math.max(0, gap)}px`\n  }, children: [\n    /* @__PURE__ */ jsx(Headline.Body, { children: /* @__PURE__ */ jsx(Headline.Title, { children: pending ? /* @__PURE__ */ jsx(Skeleton, { style: {\n      ...headlineTitleSkeletonStyle,\n      ...skeletonStyleByTheme[theme]\n    } }) : headlineTitle }) }),\n    /* @__PURE__ */ jsx(Headline.Action, { style: {\n      color: \"#FFFFFF\"\n    }, children: pending ? /* @__PURE__ */ jsx(Skeleton, { style: {\n      ...headlineTitleSkeletonStyle,\n      ...skeletonStyleByTheme[theme]\n    } }) : /* @__PURE__ */ jsx(LiveAllNotificationSwitch, { groupKey: groupKey ?? \"\", eventKeys, buttonText: switchButtonText, activeColor: switchActiveColor, disabled: isGroupKeyMissing, subscribedEventKeys, onOptimisticSubscribedChange, refreshSubscriptions }) })\n  ] }) });\n};\nconst headlineTitleSkeletonStyle = {\n  width: 90,\n  height: 21,\n  borderRadius: 2\n};\nconst skeletonStyleByTheme = {\n  light: {\n    backgroundColor: \"#dee2e6\"\n  },\n  dark: {\n    backgroundColor: \"#27272a\"\n  }\n};\nexport {\n  LiveHeadline\n};\n","import { useMemo } from \"react\";\nimport { useFetchSubscriptions } from \"../../../../../hooks/fetchers/useFetchSubscriptions.js\";\nconst useGroupSubscriptionState = ({\n  groupKey,\n  eventKeys,\n  enabled = true\n}) => {\n  const normalizedGroupKey = (groupKey == null ? void 0 : groupKey.trim()) || void 0;\n  const normalizedEventKeys = useMemo(() => Array.from(new Set(eventKeys.map((eventKey) => eventKey.trim()).filter(Boolean))), [eventKeys]);\n  const primaryEventKey = normalizedEventKeys[0] ?? \"\";\n  const canUseGroupSubscription = Boolean(normalizedGroupKey) && normalizedEventKeys.length > 0;\n  const {\n    subscriptions,\n    mutate\n  } = useFetchSubscriptions(primaryEventKey, normalizedGroupKey, enabled && canUseGroupSubscription);\n  const subscribedEventKeys = useMemo(() => new Set(subscriptions), [subscriptions]);\n  const isEventSubscribed = (eventKey) => {\n    return subscribedEventKeys.has(eventKey.trim());\n  };\n  const isAllSubscribed = normalizedEventKeys.length > 0 && normalizedEventKeys.every((eventKey) => subscribedEventKeys.has(eventKey));\n  const refreshSubscriptions = () => {\n    return mutate();\n  };\n  return {\n    subscribedEventKeys,\n    isEventSubscribed,\n    isAllSubscribed,\n    refreshSubscriptions\n  };\n};\nexport {\n  useGroupSubscriptionState\n};\n","import { jsx } from \"react/jsx-runtime\";\nconst LiveAllNotificationWarnings = ({\n  warnings\n}) => {\n  return /* @__PURE__ */ jsx(\"div\", { style: warningContainerStyle, children: warnings.map((warning) => /* @__PURE__ */ jsx(\"p\", { style: warningTextStyle, children: warning }, warning)) });\n};\nconst warningTextStyle = {\n  margin: 0,\n  color: \"#f03e3e\",\n  fontSize: \"13px\",\n  lineHeight: \"18px\",\n  fontWeight: 500\n};\nconst warningContainerStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: \"4px\",\n  padding: \"0 16px 8px\"\n};\nexport {\n  LiveAllNotificationWarnings\n};\n","import { splitToStringArray } from \"../../../../../utils/splitToStringArray.js\";\nconst WARNING_MESSAGES = {\n  MISSING_GROUP_KEY: \"라이브 전체 알림 기능을 사용하려면 알림 그룹 키를 입력해 주세요.\",\n  MISSING_EVENT_KEY: \"라이브 전체 알림 기능을 사용하려면 모든 라이브 카드에 알림 이벤트 키를 입력해 주세요.\",\n  DUPLICATE_EVENT_KEY: \"라이브 전체 알림 기능을 사용하려면 라이브 카드의 알림 이벤트 키가 서로 중복되지 않도록 설정해 주세요.\"\n};\nfunction getNormalizedCampaignEventKeys(liveCampaigns) {\n  return liveCampaigns.flatMap((campaign) => normalizeEventKeys(campaign.eventKey));\n}\nfunction getLiveAllNotificationWarnings({\n  groupKey,\n  liveCampaigns,\n  eventKeys\n}) {\n  const warnings = [];\n  if (!groupKey) {\n    warnings.push(WARNING_MESSAGES.MISSING_GROUP_KEY);\n  }\n  if (hasMissingEventKey(liveCampaigns)) {\n    warnings.push(WARNING_MESSAGES.MISSING_EVENT_KEY);\n  }\n  if (hasDuplicateEventKey(eventKeys)) {\n    warnings.push(WARNING_MESSAGES.DUPLICATE_EVENT_KEY);\n  }\n  return warnings;\n}\nconst hasMissingEventKey = (liveCampaigns) => {\n  const normalizedEventKeyCount = getNormalizedCampaignEventKeys(liveCampaigns).length;\n  const hasInvalidEventKeyCountPerCampaign = liveCampaigns.some((campaign) => normalizeEventKeys(campaign.eventKey).length !== 1);\n  return hasInvalidEventKeyCountPerCampaign || normalizedEventKeyCount !== liveCampaigns.length;\n};\nconst hasDuplicateEventKey = (eventKeys) => {\n  const uniqueEventKeys = /* @__PURE__ */ new Set();\n  return eventKeys.some((eventKey) => {\n    if (uniqueEventKeys.has(eventKey)) {\n      return true;\n    }\n    uniqueEventKeys.add(eventKey);\n    return false;\n  });\n};\nconst normalizeEventKeys = (eventKey) => splitToStringArray(eventKey ?? \"\").map((value) => value.trim()).filter((value) => value.length > 0);\nexport {\n  getLiveAllNotificationWarnings,\n  getNormalizedCampaignEventKeys\n};\n","import { jsx, jsxs, Fragment } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { ScheduleTags } from \"./ScheduleTags.js\";\nimport { useDeviceInfo } from \"../../../../hooks/useDeviceInfo.js\";\nimport { ShoplivePlugin } from \"./ShoplivePlugin.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport { isTabView } from \"../../../../utils/custom-tab/isTabView.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { isCanvas } from \"../../../../utils/framer/isCanvas.js\";\nimport { useMemo, useState } from \"react\";\nimport { CampaignsProvider } from \"./providers/CampaignsProvider/CampaignsProvider.js\";\nimport { useIsMounted } from \"../../../../hooks/useIsMounted.js\";\nimport { BREAKPOINT_CONTROLS } from \"../../../../libs/property-controls/breakpoint.js\";\nimport { THEME_CONTROLS } from \"../../../../libs/property-controls/theme.js\";\nimport { Intersection } from \"../../../@shared/Intersection/Intersection.js\";\nimport \"react-dom\";\nimport \"../../../@shared/Icon/Icon.js\";\nimport { SectionLayout } from \"../SectionLayout/SectionLayout.js\";\nimport { SWRErrorBoundary } from \"../../../@shared/SWRErrorBoundary/SWRErrorBoundary.js\";\nimport { NoContent } from \"../NoContent/NoContent.js\";\nimport \"../IntersectionProvider/IntersectionProvider.js\";\nimport { useIntersectionContext } from \"../IntersectionProvider/IntersectionProvider.hooks.js\";\nimport { LiveCards } from \"./LiveCards/LiveCards.js\";\nimport { LiveHeadline } from \"./LiveHeadline.js\";\nimport { useGroupSubscriptionState } from \"./hooks/useGroupSubscriptionState.js\";\nimport { LiveAllNotificationWarnings } from \"./LiveAllNotificationWarnings.js\";\nimport { getNormalizedCampaignEventKeys, getLiveAllNotificationWarnings } from \"./utils/getAllNotificationWarnings.js\";\nimport { formatSchedule } from \"./ScheduleTags.utils.js\";\nconst defaultAllNotification = {\n  enabled: false,\n  groupKey: \"\",\n  headlineTitle: \"라이브 전체 알림\",\n  gap: 8,\n  switchButtonText: \"전체 알림 받기\",\n  switchActiveColor: \"#1E3CF2\"\n};\nconst LiveInner = ({\n  allNotification,\n  liveCampaigns,\n  showPreviewBanner\n}) => {\n  const {\n    isInView\n  } = useIntersectionContext();\n  const {\n    isWebview\n  } = useDeviceInfo();\n  const isMounted = useIsMounted();\n  const shouldRenderPreviewBanner = showPreviewBanner && isMounted && !isCanvas();\n  const shouldRenderShoplivePlugin = shouldRenderPreviewBanner && !isWebview;\n  const shouldRenderInAppLivePreview = shouldRenderPreviewBanner && isWebview && !isTabView();\n  const isPending = !shouldRenderInAppLivePreview && !isInView;\n  const resolvedAllNotification = {\n    ...defaultAllNotification,\n    ...allNotification\n  };\n  const normalizedGroupKey = resolvedAllNotification.groupKey.trim();\n  const eventKeys = useMemo(() => getNormalizedCampaignEventKeys(liveCampaigns), [liveCampaigns]);\n  const allNotificationWarnings = useMemo(() => {\n    return getLiveAllNotificationWarnings({\n      groupKey: normalizedGroupKey,\n      liveCampaigns,\n      eventKeys\n    });\n  }, [normalizedGroupKey, liveCampaigns, eventKeys]);\n  const [optimisticSubscribedEventKeys, setOptimisticSubscribedEventKeys] = useState(null);\n  const {\n    subscribedEventKeys,\n    refreshSubscriptions: refreshSubscriptionsRaw\n  } = useGroupSubscriptionState({\n    groupKey: normalizedGroupKey,\n    eventKeys,\n    enabled: !isPending\n  });\n  const refreshSubscriptions = refreshSubscriptionsRaw;\n  const mergedSubscribedEventKeys = optimisticSubscribedEventKeys ?? subscribedEventKeys;\n  const refreshLiveSubscriptions = async () => refreshSubscriptions();\n  const isFramer = isCanvas();\n  const shouldRenderAllNotificationWarnings = resolvedAllNotification.enabled && allNotificationWarnings.length > 0 && isFramer;\n  return /* @__PURE__ */ jsxs(Fragment, { children: [\n    shouldRenderShoplivePlugin && /* @__PURE__ */ jsx(ShoplivePlugin, {}),\n    /* @__PURE__ */ jsx(Intersection, { children: /* @__PURE__ */ jsxs(CampaignsProvider, { campaigns: liveCampaigns, pending: isPending, children: [\n      resolvedAllNotification.enabled && /* @__PURE__ */ jsx(LiveHeadline, { pending: isPending, groupKey: normalizedGroupKey, allNotification: resolvedAllNotification, campaigns: liveCampaigns, subscribedEventKeys: mergedSubscribedEventKeys, onOptimisticSubscribedChange: setOptimisticSubscribedEventKeys, refreshSubscriptions: refreshLiveSubscriptions }),\n      shouldRenderAllNotificationWarnings && /* @__PURE__ */ jsx(LiveAllNotificationWarnings, { warnings: allNotificationWarnings }),\n      /* @__PURE__ */ jsx(ScheduleTags, { children: ({\n        item,\n        pending\n      }) => {\n        const [schedule, campaigns] = item ?? [];\n        return /* @__PURE__ */ jsx(LiveCards, { campaigns, pending, shouldRenderInAppLivePreview, groupKey: normalizedGroupKey, tagName: formatSchedule(schedule ?? \"\"), subscribedEventKeys: mergedSubscribedEventKeys });\n      } })\n    ] }) })\n  ] });\n};\nconst Live = ({\n  breakpoint,\n  theme,\n  componentId,\n  ...rest\n}) => {\n  return /* @__PURE__ */ jsx(SectionLayout, { theme, breakpoint, componentId, children: /* @__PURE__ */ jsx(SWRErrorBoundary, { fallback: (retry) => /* @__PURE__ */ jsx(NoContent, { onClick: retry }), children: /* @__PURE__ */ jsx(LiveInner, { ...rest }) }) });\n};\naddPropertyControls(Live, {\n  ...BREAKPOINT_CONTROLS,\n  ...THEME_CONTROLS,\n  allNotification: {\n    type: ControlType.Object,\n    title: \"전체 알림 사용\",\n    defaultValue: defaultAllNotification,\n    controls: {\n      enabled: {\n        type: ControlType.Boolean,\n        title: \"사용 여부\",\n        defaultValue: defaultAllNotification.enabled\n      },\n      groupKey: {\n        type: ControlType.String,\n        title: \"알림 그룹 키\",\n        description: \"LiveV2 전체/개별 알림 상태를 동기화하기 위한 그룹 키입니다.\",\n        defaultValue: defaultAllNotification.groupKey,\n        hidden: ({\n          enabled\n        }) => !enabled\n      },\n      headlineTitle: {\n        type: ControlType.String,\n        title: \"헤드라인 타이틀\",\n        defaultValue: defaultAllNotification.headlineTitle,\n        hidden: ({\n          enabled\n        }) => !enabled\n      },\n      gap: {\n        type: ControlType.Number,\n        title: \"헤드라인 Gap\",\n        defaultValue: defaultAllNotification.gap,\n        min: 0,\n        step: 1,\n        unit: \"px\",\n        hidden: ({\n          enabled\n        }) => !enabled\n      },\n      switchButtonText: {\n        type: ControlType.String,\n        title: \"스위치 버튼 텍스트\",\n        defaultValue: defaultAllNotification.switchButtonText,\n        hidden: ({\n          enabled\n        }) => !enabled\n      },\n      switchActiveColor: {\n        type: ControlType.Color,\n        title: \"스위치 Active Color\",\n        defaultValue: defaultAllNotification.switchActiveColor,\n        hidden: ({\n          enabled\n        }) => !enabled\n      }\n    }\n  },\n  liveCampaigns: {\n    title: \"라이브 카드\",\n    type: ControlType.Array,\n    description: \"라이브 카드 관련 상세 옵션 설정\",\n    control: {\n      type: ControlType.Object,\n      controls: {\n        campaignKey: {\n          type: ControlType.String,\n          title: \"캠페인 키\"\n        },\n        eventKey: {\n          type: ControlType.String,\n          title: \"알림 이벤트 키\",\n          description: \"발급받은 알림 키를 입력해 주세요. 미입력 시 캠페인 키를 기준으로 알림이 설정되며, 알림 이벤트 키 사용을 권장합니다.\"\n        },\n        title: {\n          type: ControlType.String,\n          title: \"제목\",\n          placeholder: \"카드 제목 텍스트 입력\"\n        },\n        description: {\n          type: ControlType.String,\n          title: \"설명\",\n          placeholder: \"카드 설명 텍스트 입력\",\n          displayTextArea: true\n        },\n        imageSrc: {\n          type: ControlType.String,\n          title: \"이미지 URL\",\n          placeholder: \"이미지 URL 입력\"\n        },\n        teaserLink: {\n          type: ControlType.Link,\n          title: \"티저 콘텐츠 링크\"\n        }\n      }\n    }\n  },\n  showPreviewBanner: {\n    type: ControlType.Boolean,\n    title: \"PiP 미리보기 사용 여부\",\n    defaultValue: true\n  },\n  componentId: {\n    type: ControlType.String,\n    title: \"컴포넌트 ID\",\n    description: \"이벤트 수집 시에 상품 모듈을 구분하기 위한 값\\nex. 29welcoming\",\n    defaultValue: \"\"\n  }\n});\nexport {\n  Live\n};\n","/** local */// import { Live } from \"https://localhost:4173/components/systems/curations/LiveV2/Live.js\"\n/** dev */// import { Live } from \"https://asset.29cm.co.kr/contents/framer/dev/components/systems/curations/LiveV2/Live.js\"\n/** production */import{Live}from\"https://asset.29cm.co.kr/contents/framer/components/systems/curations/LiveV2/Live.js\";Live.displayName=\"[완성형]LiveCardListV2\";/**\n * @framerDisableUnlink\n */export default Live;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Live\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LiveCardListV2.map"],"x_google_ignoreList":[32,33,34],"mappings":"s9DAA2E,KACD,KACG,KACM,KACf,KACO,KACF,CACnE,GAAmB,GAAc,CACrC,IAAM,EAAc,EAAE,CAatB,OAZA,EAAU,QAAS,GAAa,CAC9B,IAAM,EAAW,GAAU,EAAqB,EAAS,aAAe,GAAG,CAAE,CAC3E,eAAgB,OACjB,CAAC,CACF,GAAI,EAAY,KAAc,IAAK,GAAG,CACpC,EAAY,GAAY,CAAC,EAAS,CAClC,OAEF,EAAY,GAAY,CAAC,GAAG,EAAY,GAAW,EAAS,EAC5D,CAEa,GADW,OAAO,QAAQ,EAAY,CAAC,KAAK,CAAC,EAAU,KAAkB,CAAC,EAAU,GAAsB,EAAa,CAAC,CAAC,CACpF,EAGhD,GAAyB,GAAc,CAC3C,IAAM,EAAM,GAAsB,CAC5B,EAAkB,EAAE,CACpB,EAAiB,EAAE,CAmBzB,GAlBA,EAAU,QAAS,GAAa,CAC9B,IAAM,EAAU,EAAS,eAAiB,EAAqB,EAAS,eAAe,CAAG,KACtF,GAAW,GAAS,EAAS,EAAI,CACnC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AAY,OAClB,MAAO,KACP,YAAa,eACb,gBAAiB,GAClB,CACD,SAAU,CACR,KAAM,EAAY,OAClB,MAAO,UACP,YAAa,aACd,CACD,WAAY,CACV,KAAM,EAAY,KAClB,MAAO,YACR,CACF,CACF,CACF,CACD,kBAAmB,CACjB,KAAM,EAAY,QAClB,MAAO,iBACP,aAAc,GACf,CACD,YAAa,CACX,KAAM,EAAY,OAClB,MAAO,UACP,YAAa;iBACb,aAAc,GACf,CACF,CAAC,sBCjNsH,IAAK,YAAY,yBAEvH"}