{"version":3,"file":"LiveCardListV2.CFMF6vEC.mjs","names":["createContext","useMemo","useContext","useMemo","Fragment","createContext","useContext","MS_IN_SECOND","MS_IN_MINUTE","useMemo","useState","MS_IN_SECOND","useState","useCallback","Fragment","titleStyle","descriptionStyle","useCallback","useRef","useState","Fragment","isWebview","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/hooks/event.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/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/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/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 \"../../../../../../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 { useState } from \"react\";\nimport useInterval from \"../node_modules/react-use/esm/useInterval.js\";\nconst MS_IN_SECOND = 1e3;\nconst useCountdown = (target) => {\n  const [remaining, setRemaining] = useState(differenceInMilliseconds(target, /* @__PURE__ */ new Date()));\n  const isRunning = remaining !== 0;\n  const intervalCallback = () => {\n    const diff = differenceInMilliseconds(target, /* @__PURE__ */ new Date());\n    const isEnd = diff < MS_IN_SECOND;\n    setRemaining(isEnd ? 0 : diff);\n  };\n  useInterval(intervalCallback, isRunning ? MS_IN_SECOND : null);\n  return remaining;\n};\nexport {\n  useCountdown\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 { useTrackSubscribeLiveContent, useTrackClickPlayLiveContent } from \"./event.js\";\nimport { useNotification } from \"../../../../primitives/Notification/Notification.hooks.js\";\nimport { isWebview } from \"../../../../../utils/device.js\";\nimport { useAppLinkDialog } from \"../../../../@shared/dialogs/AppLinkDialog/AppLinkDialog.hooks.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, status) => {\n  const {\n    trackSubscribeLiveContent\n  } = useTrackSubscribeLiveContent();\n  const {\n    trackClickPlayLiveContent\n  } = useTrackClickPlayLiveContent();\n  const {\n    isRegistered,\n    registerNotification\n  } = useNotification(campaignKey, {\n    bypassNotificationEventTracking: true,\n    onNotificationEnabled: () => {\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        return isRegistered ? \"알림 받기 완료\" : \"알림 받기\";\n      default:\n        return \"\";\n    }\n  };\n  const handleClick = () => {\n    if (status === \"NOT_EXIST\" || !campaignKey) {\n      return;\n    }\n    if (status === \"READY\" && !isRegistered) {\n      registerNotification();\n      return;\n    }\n    if (status === \"READY\" && isRegistered) {\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\" && isRegistered,\n    buttonLabel: getButtonLabel(),\n    handleClick\n  };\n};\nexport {\n  useCampaignButton\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 { useCampaignButton } from \"../../hooks/useCampaignButton.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 \"../../../../../../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, buttonIdByStatus } from \"../../constants/event.js\";\nimport { parseISO } from \"../../../../../../node_modules/date-fns/parseISO.js\";\nconst DesktopLiveCard = ({\n  status,\n  layoutPosition\n}) => {\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const theme = useTheme();\n  const {\n    campaign\n  } = useCampaign();\n  const componentId = useComponentId();\n  const {\n    buttonLabel,\n    disabled,\n    handleClick\n  } = useCampaignButton(campaign == null ? void 0 : campaign.campaignKey, status);\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: buttonIdByStatus[status],\n      button_name: buttonLabel,\n      stage_status: stageStatusIdByStatus[status],\n      position: -1\n    });\n    handleClick();\n  }, [status, componentId, layoutPosition, campaign == null ? void 0 : campaign.campaignKey, buttonLabel, trackSnowplowEvent, handleClick]);\n  return /* @__PURE__ */ jsxs(Fragment, { children: [\n    /* @__PURE__ */ jsx(Thumbnail, { style: {\n      height: 360,\n      objectFit: \"cover\",\n      aspectRatio: \"3 / 4\",\n      borderRadius: 6\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\", children: buttonLabel }) : /* @__PURE__ */ jsx(Default, { variant: \"primary\", theme, size: \"large\", fill: true, 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 \"../../../../../../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 { useCampaignButton } from \"../../hooks/useCampaignButton.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, buttonIdByStatus } from \"../../constants/event.js\";\nimport { parseISO } from \"../../../../../../node_modules/date-fns/parseISO.js\";\nconst MobileLiveCard = ({\n  status,\n  layoutPosition\n}) => {\n  const {\n    campaign\n  } = useCampaign();\n  const theme = useTheme();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const {\n    disabled,\n    buttonLabel,\n    handleClick\n  } = useCampaignButton(campaign == null ? void 0 : campaign.campaignKey, status);\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: buttonIdByStatus[status],\n      button_name: buttonLabel,\n      stage_status: stageStatusIdByStatus[status],\n      position: -1\n    });\n    handleClick();\n  }, [status, componentId, layoutPosition, campaign == null ? void 0 : campaign.campaignKey, buttonLabel, 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: {\n          ...titleStyle,\n          color: textColorByTheme[theme]\n        }, children: campaign == null ? void 0 : campaign.title }),\n        /* @__PURE__ */ jsx(\"p\", { style: {\n          ...descriptionStyle,\n          color: textColorByTheme[theme]\n        }, 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\", children: buttonLabel }) : /* @__PURE__ */ jsx(Default, { variant: \"primary\", theme, size: \"medium\", fill: true, 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  ...typography(22, 700, 1.36)\n};\nconst descriptionStyle = {\n  margin: 0,\n  width: \"100%\",\n  textAlign: \"center\",\n  ...typography(14, 500, 1.4)\n};\nconst textColorByTheme = {\n  light: \"#000000\",\n  dark: \"#ffffff\"\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 { 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 \"../../../../../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\";\nconst LiveCard = ({\n  pending,\n  layoutPosition = 1,\n  shouldRenderInAppLivePreview\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 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      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 }) : /* @__PURE__ */ jsx(MobileLiveCard, { status, layoutPosition }) }) });\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 \"../../../../../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}) => {\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  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 }) });\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: shouldRenderNavigator ? \"80%\" : \"100%\"\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 }) }) }, 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: \"linear-gradient(270deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%)\",\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 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};\nexport {\n  LiveCards\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 \"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\";\nconst LiveInner = ({\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  return /* @__PURE__ */ jsxs(Fragment, { children: [\n    shouldRenderShoplivePlugin && /* @__PURE__ */ jsx(ShoplivePlugin, {}),\n    /* @__PURE__ */ jsx(Intersection, { children: /* @__PURE__ */ jsx(CampaignsProvider, { campaigns: liveCampaigns, pending: isPending, children: /* @__PURE__ */ jsx(ScheduleTags, { children: ({\n      item: [, campaigns] = [],\n      pending\n    }) => {\n      return /* @__PURE__ */ jsx(LiveCards, { campaigns, pending, shouldRenderInAppLivePreview });\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  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        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"],"mappings":"2jDAA2E,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,EAAe,KAAK,EAAS,CAE7B,EAAgB,KAAK,EAAS,EAEhC,CACF,EAAgB,MAAM,EAAG,IAGhB,EAFQ,EAAqB,EAAE,aAAe,GAAG,CACzC,EAAqB,EAAE,aAAe,GAAG,CACvB,CACjC,CACF,EAAe,MAAM,EAAG,IAAM,CAC5B,IAAM,EAAO,EAAqB,EAAE,gBAAkB,GAAG,CAEzD,OAAO,EADM,EAAqB,EAAE,gBAA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