{"version":3,"file":"LiveCardListV2.CSf91Gfe.mjs","names":["useMemo","useMemo","useCallback","createContext","useMemo","useContext","useMemo","Fragment","createContext","useContext","MS_IN_SECOND","MS_IN_MINUTE","useMemo","useState","MS_IN_SECOND","useCallback","Fragment","titleStyle","descriptionStyle","useCallback","useCallback","useRef","useCallback","useState","useRef","useState","useCallback","Fragment","Fragment$1","useState","useMemo","useMemo","useState","Fragment","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","oe","pe","x","de","window","p","B","ne","init_jsx_runtime","init_npm_react_dom_18_3_1","l","ce","_e","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_CaDWdxiz","ControlType","init_isSameDay","init_ToggleTag","isBefore","init_breakpoint","isValid","env","init_bottom_sheet_store","init_SWRErrorBoundary","init_NotificationAgreementsToast_hooks","init_global_layout_store","init_parseISO","useRequestUserAgreementBottomSheet","BREAKPOINT_CONTROLS","formatISO","useRequestSubscription","init_format","init_useRequestSubscription","THEME_CONTROLS","init_IntersectionProvider_hooks","init_useTrackSnowplowEvent","init_NoContent","init_EventTrigger","init_ComponentTimingContext","init_content_store","init_theme","useIntersectionContext","useTrackSnowplowEvent","init_useWithLogin","useNavigatePage","Tags","SegmentGate","Default","init_snowplow","init_EventTrackingProvider_hooks","useWithLogin","init_BreakpointProvider","init_useComponentTiming","init_useDeviceInfo","init_useTheme","init_breakpoint$1","init_formatISO","init_useFetchSubscriptions","init_DialogContainer_emitter","useComponentTiming","useDeviceInfo","useTheme","init_createIsomorphicLink","P","useUpdatedRef","init_isBefore","useComponentId","init_ThemeProvider","mediaBuilder","init_useRequestUserAgreementBottomSheet","init_useFeatureFlag","format","init_differenceInMilliseconds","useComponentTimingContext","ComponentTimingProvider","isServer","useNotificationAgreementsToast","init_dialog_store","NoContent","init_EventTrackingProvider","EventTrigger","init_dist$2","useInterval","init_dist$1","constructFrom","init_Tags","init_useInterval","init_SegmentGate","createIsomorphicLink","init_useUpdatedRef","init_PreuserApiService","init_index_esm","init_createUTCDate","init_DraggableTabs","init_Skeleton","init_Intersection","init_ArrowIcon","init_isTabView","ko","SwitchButton","isCanvas","Icon","useHandleSubscription","init_device","init_UserApiService","isSameDay","init_HighlightProductsApiService","init_Icon","SEGMENT_CONTROLS","init_useWithApp","isWebview","useIsMounted","init_CategoryFirstOrderApiService","createKRTimeZoneDate","init_useIsMounted","init_FramerApiService","init_compareAsc","useAppLinkDialog","DraggableTabs","init_config","Breakpoint","init_isValid","init_js_cookie","useFetchSubscriptions","init_Dialog_module_css","SectionLayout","init_useBreakpoint","init_SwitchButton","init_postMessage","toDate","compareAsc","init_AppLinkDialog_hooks","init_redirectLogin","init_typography","splitToStringArray","useAnalytics","init_TasteSharingApiService","colors","init_segment","useWithApp","init_source","init_Button","init_dist","init_useNavigatePage","millisecondsInMinute","typography","init_OneBrandDaysApiService","init_ko","init_colors","init_isCanvas","init_constants","init_splitToStringArray","init_useAnalytics","init_SectionLayout","init_BrandMixApiService","useBreakpoint","init_SubscriptionButton_hooks","postMessage","init_index_esm2017","init_useVisibilityAwareInterval","init_IntersectionProvider","parseISO","differenceInMilliseconds","init_mediaBuilder","isTabView","Skeleton","Intersection","ArrowIcon","useVisibilityAwareInterval","SWRErrorBoundary","init_context","init_toast_store","getMinutes","init_diffFromNowInMilliseconds","init_useLazyFetchLiveCampaigns","useLazyFetchLiveCampaigns","init_appendQuery","init_useScriptInjection","init_dist$3","init_getMinutes","appendQuery","diffFromNowInMilliseconds","A","useScriptInjection","useCountdown","init_useCountdown","useNotification","init_Notification_hooks","init_HeadlineNotificationRow","HeadlineNotificationRow","useGroupSubscriptionState","init_useGroupSubscriptionState","normalizedGroupKey","groupKey","normalizedEventKeys","eventKeys","eventKey","primaryEventKey","canUseGroupSubscription","enabled","subscribedEventKeys","subscriptions","mutate","LIVE_ALL_NOTIFICATION_TOAST_MESSAGES","init_toastMessages","useLiveAllNotification","useSubscriptionRequirements","init_useLiveAllNotification","toast","withLogin","withApp","requestRequirements","currentSubscribedEventKeys","isSubscribed","eventKeysToSubscribe","eventKeysToUnsubscribe","subscribeAll","previous","optimistic","onOptimisticSubscribedChange","hasSubscribeError","requestSubscribe","hasRefreshError","refreshSubscriptions","unsubscribeAll","unsubscribeRequests","requestUnsubscribe","hasUnsubscribeError","result","isTargetAppVersion","requestUserAgreementBottomSheet","resolve","groupBySchedule","sortCampaignsByStatus","orderByScheduleAsc","formatSchedule","getCurrentScheduleIndex","init_ScheduleTags_utils","scheduleMap","campaigns","schedule","campaign","sortedScheduleMap","campaignList","now","activeCampaigns","endedCampaigns","endTime","startA","a","startB","b","endA","endB","sortedEndedCampaigns","list","scheduleA","scheduleB","currentIndex","nextSchedule","index","start","isToday","isUpcoming","CampaignsContext","CampaignsProvider","reshapeRichCampaign","init_CampaignsProvider","campaignKeys","campaignKey","pending","fetch","richCampaigns","data","markReady","item","useCampaigns","init_CampaignsProvider_hooks","ScheduleTags","init_ScheduleTags","trackSnowplowEvent","componentId","campaignsBySchedule","handleClick","props","children","SHOPLIVE_PLUGIN_SCRIPT_ID","SHOPLIVE_PLUGIN_SCRIPT_SRC","getShopliveInstance","ShoplivePlugin","init_ShoplivePlugin","CampaignContext","CampaignProvider","init_CampaignProvider","useCampaign","init_CampaignProvider_hooks","MS_IN_SECOND$2","MS_IN_MINUTE$1","getCurrentCampaignStatus","useCampaignStatus","init_useCampaignStatus","remaining","duration","initialRemaining","status","setStatus","incoming","nextStatus","Layout","baseCardStyleByBreakpoint","baseCardStyleByTheme","containerStyleByBreakpoint","init_Layout","breakpoint","theme","MS_IN_MINUTE","millisecondsToMinutes","init_millisecondsToMinutes","milliseconds","MS_IN_SECOND$1","millisecondsToSeconds","init_millisecondsToSeconds","padZero","init_padZero","num","getStatusText","formatLiveDate","formatLiveCountdown","init_getStatusText","scheduledAt","target","minutes","seconds","converter","lastMinuteCountDown","Thumbnail","skeletonStyle","init_Thumbnail","style","LiveBadge","layoutStyle","pulseContainerStyle","pulseOuterStyle","pulseMiddleStyle","pulseInnerStyle","textStyle","init_LiveBadge","textStyleOverride","getTeaserLink","getUrlWithSourceParam","init_getTeaserLink","link","getTeaserButtonLabel","init_getTeaserButtonLabel","isOpenByStatus","stageStatusIdByStatus","init_event","DesktopLiveCard","containerStyle","containerStyleByTheme","contentStyle","titleLayoutStyle","titleStyle$1","titleStyleByTheme","descriptionStyle$1","descriptionStyleByTheme","statusStyle","onAirStatusStyle","buttonStyle","teaserButtonBackgroundColorByTheme","init_DesktopLiveCard","buttonState","label","handleClickMoreButton","layoutPosition","buttonLabel","handleClickButton","buttonId","tagName","alarmStatusOnClick","disabled","buttonPrefixIcon","MobileLiveCard","teaserButtonLayoutStyle","liveBadgeTextStyle","gradientStyle","contentLayoutStyle","bodyStyle","titleStyle","descriptionStyle","buttonContainerStyle","statusTextStyle","init_MobileLiveCard","elementStyle","navigateTeaserPage","handleNavigateTeaserPage","event","useInAppLivePreview","openLivePreviewPopup","init_useInAppLivePreview","useTrackClickPlayLiveContent","useTrackSubscribeLiveContent","init_event$1","trackAmplitude","useLiveNotification","init_useLiveNotification","normalizedEventKey","shouldUseSubscriptionApi","onLegacySubscribed","sectionKey","isSubscribedFromGroupState","isRegistered","toggleSubscription","registerNotification","LIVE_CAMPAIGN_BUTTON_TEXT","useCampaignButton","init_useCampaignButton","\"REHEARSAL\"","\"ONAIR\"","\"CLOSED\"","LIVE_CAMPAIGN_BUTTON_TEXT2","options","trackSubscribeLiveContent","appLinkDialog","isNotificationEnabled","toggleNotification","trackClickPlayLiveContent","LiveCard","isFullyVisible","getVisibilityThresholds","init_LiveCard","isPending","hasTrackedImpressionRef","rootRef","shouldRenderInAppLivePreview","trackImpressionContent","trackImpressionOnce","isActiveCampaign","layoutVersion","setLayoutVersion","element","bump","version","resizeObserver","observer","entries","box","visible","fullHeight","rootBounds","fullRatio","step","LiveCampaignTags","listStyle","init_LiveCampaignTags","handleTagClick","activeIndex","title","onTagClick","NAVIGATOR_SIZE","TAG_SCROLL_DURATION_MS","LiveCards","baseNavigatorStyle","leftNavigatorStyle","rightNavigatorStyle","iconColorByTheme","disabledIconColorByTheme","liveCardLayoutStyleByBreakpoint","gridAutoColumnsByBreakpoint","getActiveCampaignIndex","init_LiveCards","listRef","isScrolling","isTagScrolling","activeCampaignIndexRef","tagScrollTimeoutRef","hasPrevious","setHasPrevious","hasNext","setHasNext","activeCampaignIndex","setActiveCampaignIndex","shouldRenderNavigator","hasMultipleCampaigns","updateScrollState","container","hasNextContent","scrollTo","position","getScrollPosition","direction","handlePreviousClick","handleNextClick","offset","inset","scrollToCampaign","isInterrupting","gridAutoColumns","isInView","scrollLeft","currentDistance","closestIndex","child","LiveAllNotificationSwitch","init_LiveAllNotificationSwitch","nextAlarmStatus","buttonText","addMilliseconds","timestamp","date","amount","init_addMilliseconds","addMinutes","init_addMinutes","subMinutes","init_subMinutes","getBeforeRehearsalEventKeys","init_LiveHeadline_utils","campaignScheduledAtByCampaignKey","allEventKeys","startDate","rehearsalStartDate","MS_IN_SECOND","LiveHeadline","headlineTitleSkeletonStyle","skeletonStyleByTheme","init_LiveHeadline","allNotification","setNow","nextNow","isGroupKeyMissing","headlineTitle","switchButtonText","switchActiveColor","LiveAllNotificationWarnings","warningTextStyle","warningContainerStyle","init_LiveAllNotificationWarnings","warnings","warning","getNormalizedCampaignEventKeys","liveCampaigns","normalizeEventKeys","getLiveAllNotificationWarnings","WARNING_MESSAGES","hasMissingEventKey","hasDuplicateEventKey","init_getAllNotificationWarnings","normalizedEventKeyCount","uniqueEventKeys","value","defaultAllNotification","LiveInner","Live","init_Live","isMounted","shouldRenderPreviewBanner","showPreviewBanner","shouldRenderShoplivePlugin","resolvedAllNotification","allNotificationWarnings","optimisticSubscribedEventKeys","setOptimisticSubscribedEventKeys","refreshSubscriptionsRaw","mergedSubscribedEventKeys","refreshLiveSubscriptions","isFramer","shouldRenderAllNotificationWarnings","rest","timing","retry","LiveCardListV2_default","init_LiveCardListV2"],"sources":["https:/asset.29cm.co.kr/contents/framer/hooks/subscription/useGroupSubscriptionState.js","https:/asset.29cm.co.kr/contents/framer/hooks/subscription/toastMessages.js","https:/asset.29cm.co.kr/contents/framer/hooks/subscription/useLiveAllNotification.js","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/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/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/LiveCampaignTags.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/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.utils.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/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/M7tsgUlsWy231PZn8THy/LiveCardListV2.js"],"sourcesContent":["import { useMemo } from \"react\";\nimport { useFetchSubscriptions } from \"../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    isLoading,\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    isLoading,\n    isEventSubscribed,\n    isAllSubscribed,\n    refreshSubscriptions\n  };\n};\nexport {\n  useGroupSubscriptionState\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 \"../useRequestSubscription.js\";\nimport { useNotificationAgreementsToast } from \"../../components/@shared/toasts/NotificationAgreementsToast/NotificationAgreementsToast.hooks.js\";\nimport { useWithLogin } from \"../useWithLogin.js\";\nimport { useWithApp } from \"../useWithApp.js\";\nimport { useRequestUserAgreementBottomSheet } from \"../useRequestUserAgreementBottomSheet.js\";\nimport { LIVE_ALL_NOTIFICATION_TOAST_MESSAGES } from \"./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 { 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\";\nimport { useComponentTimingContext } from \"../../../../../../hooks/beacon/ComponentTimingContext.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  const {\n    markReady\n  } = useComponentTimingContext();\n  useEffect(() => {\n    if (richCampaigns.length > 0) {\n      markReady();\n    }\n  }, [richCampaigns, markReady]);\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, style: {\n      marginBottom: 0\n    }, 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  var _a, _b;\n  if (isServer() || !((_a = window.cloud) == null ? void 0 : _a.shoplive)) {\n    return;\n  }\n  return (_b = window.cloud) == null ? void 0 : _b.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 \"../../../../../../apis/framer/FramerApiService.js\";\nimport \"../../../../../../config/index.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../../apis/user/UserApiService.js\";\nimport \"../../../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"framer\";\nimport \"../../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../../hooks/useTheme.js\";\nimport { useBreakpoint } from \"../../../../../../hooks/useBreakpoint.js\";\nimport \"../../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../../../utils/redirectLogin.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport { Breakpoint } from \"../../../../../../styles/breakpoint.js\";\nconst Layout = ({\n  children\n}) => {\n  const breakpoint = useBreakpoint();\n  const theme = useTheme();\n  return /* @__PURE__ */ jsx(\"div\", { style: {\n    ...baseCardStyleByBreakpoint[breakpoint],\n    ...baseCardStyleByTheme[theme]\n  }, children: /* @__PURE__ */ jsx(\"div\", { style: containerStyleByBreakpoint[breakpoint], children }) });\n};\nconst baseCardStyleByBreakpoint = {\n  [Breakpoint.DESKTOP]: {\n    height: 340,\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 baseCardStyleByTheme = {\n  light: {\n    backgroundColor: \"rgba(93, 93, 93, 0.06)\"\n  },\n  dark: {\n    backgroundColor: \"#27272A\"\n  }\n};\nconst containerStyleByBreakpoint = {\n  [Breakpoint.DESKTOP]: {\n    position: \"relative\",\n    display: \"flex\"\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 { 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 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) ?? \"\");\n  return /* @__PURE__ */ jsx(\"img\", { style, loading: \"lazy\", sizes: \"100vw\", srcSet: result.getSrcSet(), 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  textStyle: textStyleOverride\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: {\n      ...textStyle,\n      ...textStyleOverride\n    }, 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 \"../../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 \"../../../../../../apis/framer/FramerApiService.js\";\nimport \"../../../../../../config/index.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../../apis/user/UserApiService.js\";\nimport \"../../../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"framer\";\nimport \"../../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../../hooks/useTheme.js\";\nimport \"../../../../../@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 \"../../../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../../../utils/redirectLogin.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport { colors } from \"../../../../../../styles/colors.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: 340,\n      objectFit: \"cover\",\n      objectPosition: \"top\",\n      aspectRatio: \"1 / 1\",\n      borderTopLeftRadius: 6,\n      borderBottomLeftRadius: 6,\n      borderTopRightRadius: 0,\n      borderBottomRightRadius: 0\n    } }),\n    /* @__PURE__ */ jsx(LiveBadge, { status }),\n    /* @__PURE__ */ jsxs(\"div\", { style: {\n      ...containerStyle,\n      ...containerStyleByTheme[theme]\n    }, children: [\n      /* @__PURE__ */ jsxs(\"div\", { style: contentStyle, children: [\n        /* @__PURE__ */ jsx(\"span\", { style: {\n          ...statusStyle,\n          ...status === \"ONAIR\" ? onAirStatusStyle : void 0\n        }, children: getStatusText(status, scheduledAt, remaining) }),\n        /* @__PURE__ */ jsxs(\"div\", { style: titleLayoutStyle, children: [\n          /* @__PURE__ */ jsx(\"span\", { style: {\n            ...titleStyle,\n            ...titleStyleByTheme[theme]\n          }, children: campaign == null ? void 0 : campaign.title }),\n          /* @__PURE__ */ jsx(\"span\", { style: {\n            ...descriptionStyle,\n            ...descriptionStyleByTheme[theme]\n          }, 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\", theme, size: \"medium\", fill: true, backgroundColor: teaserButtonBackgroundColorByTheme[theme], color: theme === \"light\" ? \"#000\" : \"#fff\", children: label }) }),\n        /* @__PURE__ */ jsx(EventTrigger.Target, { style: {\n          width: \"100%\"\n        }, onClick: handleClickButton, 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, size: \"medium\", fill: true, prefixIcon: buttonPrefixIcon, children: buttonLabel }) })\n      ] })\n    ] })\n  ] });\n};\nconst containerStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  gap: 32,\n  width: \"100%\",\n  padding: 24,\n  borderTopRightRadius: 6,\n  borderBottomRightRadius: 6\n};\nconst containerStyleByTheme = {\n  light: {\n    backgroundColor: \"#F0F0F0\"\n  },\n  dark: {\n    backgroundColor: \"#1C1C1C\"\n  }\n};\nconst contentStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  gap: 24\n};\nconst titleLayoutStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  gap: 4\n};\nconst titleStyle = {\n  fontSize: 28,\n  fontWeight: 600,\n  // 상단 배지와의 간격(24px)이 행간의 half-leading 만큼 넓어 보여 136%로 맞춤\n  lineHeight: 1.36\n};\nconst titleStyleByTheme = {\n  light: {\n    color: \"#000000\"\n  },\n  dark: {\n    color: \"#ffffff\"\n  }\n};\nconst descriptionStyle = {\n  fontSize: 14,\n  fontWeight: 500,\n  lineHeight: 1.4,\n  textAlign: \"center\",\n  whiteSpace: \"pre-wrap\"\n};\nconst descriptionStyleByTheme = {\n  light: {\n    color: \"#6A6A6A\"\n  },\n  dark: {\n    color: \"#ADADAD\"\n  }\n};\nconst statusStyle = {\n  backgroundColor: \"rgba(93, 93, 93, 0.50)\",\n  backdropFilter: \"blur(5px)\",\n  width: \"fit-content\",\n  padding: \"4px 8px\",\n  borderRadius: 2,\n  color: \"#ffffff\",\n  fontSize: 12,\n  fontWeight: 500,\n  lineHeight: 1.36\n};\nconst onAirStatusStyle = {\n  color: colors.red500\n};\nconst buttonStyle = {\n  width: \"320px\",\n  display: \"flex\",\n  gap: 6\n};\nconst teaserButtonBackgroundColorByTheme = {\n  light: \"rgba(93, 93, 93, 0.08)\",\n  dark: \"rgba(244, 244, 244, 0.08)\"\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 \"../../../../../../apis/framer/FramerApiService.js\";\nimport \"../../../../../../config/index.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../../apis/user/UserApiService.js\";\nimport \"../../../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"framer\";\nimport \"../../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../../hooks/useTheme.js\";\nimport \"../../../../../@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 \"../../../../../../hooks/useFeatureFlag.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, textStyle: liveBadgeTextStyle }),\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  backdropFilter: \"blur(5px)\",\n  WebkitBackdropFilter: \"blur(5px)\",\n  padding: \"6px 12px\",\n  borderRadius: 4,\n  cursor: \"pointer\",\n  fontSize: 12,\n  fontWeight: 500,\n  lineHeight: 1.36,\n  marginLeft: \"auto\",\n  marginTop: \"16px\",\n  marginRight: \"16px\"\n};\nconst liveBadgeTextStyle = {\n  fontSize: 14,\n  fontWeight: 500\n};\nconst gradientStyle = {\n  position: \"absolute\",\n  inset: \"auto 0 0\",\n  bottom: 0,\n  width: \"100%\",\n  padding: \"14px\",\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: 18\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  fontSize: 12,\n  fontWeight: 400,\n  lineHeight: 1.36\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 { 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 isSubscribedFromGroupState = normalizedGroupKey ? subscribedEventKeys == null ? void 0 : subscribedEventKeys.has(normalizedEventKey) : void 0;\n  const isNotificationEnabled = shouldUseSubscriptionApi ? isSubscribedFromGroupState ?? 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 { useRef, useCallback, useEffect, useState } from \"react\";\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 \"../../../../../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 \"../../../../../apis/framer/FramerApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../apis/user/UserApiService.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useBreakpoint } from \"../../../../../hooks/useBreakpoint.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { 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\";\nimport { useUpdatedRef } from \"../../../../../hooks/useUpdatedRef.js\";\nconst LiveCard = ({\n  pending,\n  isActiveCampaign = true,\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  const hasTrackedImpressionRef = useRef(false);\n  const rootRef = useRef(null);\n  useInAppLivePreview(shouldRenderInAppLivePreview);\n  const trackImpressionContent = useCallback(() => {\n    if (status === \"NOT_EXIST\" || campaign === void 0) {\n      return;\n    }\n    trackSnowplowEvent(\"impression_content\", {\n      section_name: componentId,\n      section_title: componentId,\n      layout_position: layoutPosition,\n      layout_id: `live_${campaign.campaignKey}`,\n      is_open: isOpenByStatus[status],\n      stage_status: stageStatusIdByStatus[status],\n      live_name: campaign.title,\n      round_date: tagName,\n      alarm_status: buttonState.isCurrentAlarmEnabled,\n      position: -1\n    });\n  }, [buttonState.isCurrentAlarmEnabled, campaign, componentId, layoutPosition, status, tagName, trackSnowplowEvent]);\n  const trackImpressionOnce = useUpdatedRef(() => {\n    if (isPending || status === \"NOT_EXIST\" || !isActiveCampaign || hasTrackedImpressionRef.current) {\n      return;\n    }\n    trackImpressionContent();\n    hasTrackedImpressionRef.current = true;\n  });\n  useEffect(() => {\n    if (!isActiveCampaign) {\n      hasTrackedImpressionRef.current = false;\n    }\n  }, [isActiveCampaign]);\n  const [layoutVersion, setLayoutVersion] = useState(0);\n  useEffect(() => {\n    const element = rootRef.current;\n    if (element === null || !isActiveCampaign || isPending) {\n      return;\n    }\n    const bump = () => setLayoutVersion((version) => version + 1);\n    const resizeObserver = new ResizeObserver(bump);\n    resizeObserver.observe(element);\n    window.addEventListener(\"resize\", bump);\n    return () => {\n      resizeObserver.disconnect();\n      window.removeEventListener(\"resize\", bump);\n    };\n  }, [isActiveCampaign, isPending]);\n  useEffect(() => {\n    const element = rootRef.current;\n    if (element === null || !isActiveCampaign || isPending) {\n      return;\n    }\n    const observer = new IntersectionObserver((entries) => {\n      if (entries.some(isFullyVisible)) {\n        trackImpressionOnce.current();\n      }\n    }, {\n      threshold: getVisibilityThresholds(element)\n    });\n    const handleClick = () => trackImpressionOnce.current();\n    observer.observe(element);\n    element.addEventListener(\"click\", handleClick, true);\n    return () => {\n      observer.disconnect();\n      element.removeEventListener(\"click\", handleClick, true);\n    };\n  }, [isActiveCampaign, isPending, status, layoutVersion, trackImpressionOnce]);\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  return /* @__PURE__ */ jsx(EventTrigger.Root, { ref: rootRef, types: [], 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};\nconst isFullyVisible = ({\n  boundingClientRect: box,\n  intersectionRect: visible,\n  rootBounds\n}) => {\n  const fullHeight = Math.min(box.height, (rootBounds == null ? void 0 : rootBounds.height) ?? window.innerHeight);\n  return box.width > 0 && visible.width >= box.width - 1 && visible.height >= fullHeight - 1;\n};\nconst getVisibilityThresholds = (element) => {\n  const fullRatio = element.offsetHeight > 0 ? Math.min(1, (window.innerHeight - 1) / element.offsetHeight) : 1;\n  return [0, 0.5, 0.9, 0.95, 0.98, 0.99, 0.995, 1].map((step) => step * fullRatio);\n};\nexport {\n  LiveCard\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { ToggleTag as P } from \"../../../../../node_modules/@29cm/ruler-ui/dist/components/Tag/ToggleTag/ToggleTag.js\";\nimport { DraggableTabs } from \"../../../../@shared/DraggableTabs/index.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 { Tags } from \"../../Tags/index.js\";\nconst LiveCampaignTags = ({\n  campaigns,\n  activeIndex,\n  theme,\n  tagName,\n  onTagClick\n}) => {\n  const componentId = useComponentId();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const handleTagClick = (index, title) => () => {\n    if (index === activeIndex) {\n      return;\n    }\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      position: -1,\n      layout_position: index + 1,\n      button_id: \"tag\",\n      button_name: title,\n      round_date: tagName\n    });\n    onTagClick(index);\n  };\n  return /* @__PURE__ */ jsx(Tags.Root, { defaultValue: 0, loading: false, children: /* @__PURE__ */ jsx(Tags.List, { list: campaigns, style: listStyle, children: ({\n    item: campaign,\n    index\n  }) => {\n    if (!campaign) {\n      return null;\n    }\n    return /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: handleTagClick(index, campaign.title), children: /* @__PURE__ */ jsx(DraggableTabs.Trigger, { value: index, children: /* @__PURE__ */ jsx(P, { active: index === activeIndex, theme, surfaceStyle: \"outlined\", className: \"whitespace-nowrap\", children: campaign.title }) }) }, campaign.campaignKey);\n  } }) });\n};\nconst listStyle = {\n  marginTop: 8,\n  marginBottom: 0\n};\nexport {\n  LiveCampaignTags\n};\n","import { jsx, jsxs, Fragment } from \"react/jsx-runtime\";\nimport { useRef, useState, useCallback, useEffect, Fragment as Fragment$1 } 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 \"../../../../../apis/framer/FramerApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../apis/user/UserApiService.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../hooks/useTheme.js\";\nimport { useBreakpoint } from \"../../../../../hooks/useBreakpoint.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { ArrowIcon } from \"../../ArrowIcon/ArrowIcon.js\";\nimport { LiveCampaignTags } from \"./LiveCampaignTags.js\";\nconst NAVIGATOR_SIZE = 50;\nconst TAG_SCROLL_DURATION_MS = 700;\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 isTagScrolling = useRef(false);\n  const activeCampaignIndexRef = useRef(0);\n  const tagScrollTimeoutRef = useRef(null);\n  const [hasPrevious, setHasPrevious] = useState(false);\n  const [hasNext, setHasNext] = useState(false);\n  const [activeCampaignIndex, setActiveCampaignIndex] = useState(0);\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  const updateScrollState = useCallback(() => {\n    const container = listRef.current;\n    if (container === null) {\n      return;\n    }\n    const hasNextContent = container.scrollWidth > container.clientWidth;\n    setHasNext(hasNextContent);\n    setHasPrevious(container.scrollLeft > 0);\n    if (!isTagScrolling.current) {\n      setActiveCampaignIndex(getActiveCampaignIndex(container));\n    }\n  }, []);\n  useEffect(() => {\n    activeCampaignIndexRef.current = activeCampaignIndex;\n  }, [activeCampaignIndex]);\n  useEffect(() => {\n    return () => {\n      if (tagScrollTimeoutRef.current !== null) {\n        window.clearTimeout(tagScrollTimeoutRef.current);\n      }\n    };\n  }, []);\n  useEffect(() => {\n    setActiveCampaignIndex(0);\n    activeCampaignIndexRef.current = 0;\n    updateScrollState();\n  }, [campaigns == null ? void 0 : campaigns.length, updateScrollState]);\n  useEffect(() => {\n    const container = listRef.current;\n    if (container === null) {\n      return;\n    }\n    container.addEventListener(\"scroll\", updateScrollState, {\n      passive: true\n    });\n    return () => {\n      container.removeEventListener(\"scroll\", updateScrollState);\n    };\n  }, [updateScrollState]);\n  const scrollTo = (direction) => {\n    const container = listRef.current;\n    if (isScrolling.current || container === null) {\n      return;\n    }\n    const position = getScrollPosition(container, 8, 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  const scrollToCampaign = useCallback((index) => {\n    if (index === activeCampaignIndexRef.current) {\n      return;\n    }\n    const container = listRef.current;\n    const target = container == null ? void 0 : container.children[index];\n    if (!container || !target) {\n      return;\n    }\n    if (tagScrollTimeoutRef.current !== null) {\n      window.clearTimeout(tagScrollTimeoutRef.current);\n    }\n    const isInterrupting = isTagScrolling.current;\n    setActiveCampaignIndex(index);\n    activeCampaignIndexRef.current = index;\n    isTagScrolling.current = true;\n    container.scrollTo({\n      left: target.offsetLeft,\n      behavior: isInterrupting ? \"auto\" : \"smooth\"\n    });\n    tagScrollTimeoutRef.current = window.setTimeout(() => {\n      isTagScrolling.current = false;\n      tagScrollTimeoutRef.current = null;\n      updateScrollState();\n    }, TAG_SCROLL_DURATION_MS);\n  }, [updateScrollState]);\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(Fragment, { children: [\n    hasMultipleCampaigns ? /* @__PURE__ */ jsx(LiveCampaignTags, { campaigns, activeIndex: activeCampaignIndex, theme, tagName, onTagClick: scrollToCampaign }) : null,\n    /* @__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$1, { children: /* @__PURE__ */ jsx(CampaignProvider, { campaign, children: /* @__PURE__ */ jsx(LiveCard, { pending: !isInView, isActiveCampaign: index === activeCampaignIndex, 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        opacity: 1\n      } })\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: \"8px\",\n    marginTop: 16\n  },\n  [Breakpoint.TABLET]: {\n    display: \"grid\",\n    gridAutoFlow: \"column\",\n    gridAutoColumns: \"100%\",\n    overflowX: \"auto\",\n    gap: \"6px\",\n    padding: \"0px 16px\",\n    scrollPadding: \"0px 16px\",\n    scrollSnapType: \"x mandatory\",\n    WebkitScrollSnapType: \"x mandatory\",\n    msOverflowStyle: \"none\",\n    scrollbarWidth: \"none\",\n    marginTop: 12\n  },\n  [Breakpoint.MOBILE]: {\n    display: \"grid\",\n    gridAutoFlow: \"column\",\n    gridAutoColumns: \"100%\",\n    overflowX: \"auto\",\n    gap: \"6px\",\n    padding: \"0px 16px\",\n    scrollPadding: \"0px 16px\",\n    scrollSnapType: \"x mandatory\",\n    WebkitScrollSnapType: \"x mandatory\",\n    msOverflowStyle: \"none\",\n    scrollbarWidth: \"none\",\n    marginTop: 12\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};\nconst getActiveCampaignIndex = (container) => {\n  const children = Array.from(container.children);\n  if (children.length === 0) {\n    return 0;\n  }\n  const scrollLeft = container.scrollLeft;\n  return children.reduce((closestIndex, child, index) => {\n    const currentDistance = Math.abs(children[closestIndex].offsetLeft - scrollLeft);\n    const nextDistance = Math.abs(child.offsetLeft - scrollLeft);\n    return nextDistance < currentDistance ? index : closestIndex;\n  }, 0);\n};\nexport {\n  LiveCards\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 \"../../../../apis/framer/FramerApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport { 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 \"../../../../hooks/useFeatureFlag.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/subscription/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(), disabled, onClick: handleClick, children: buttonText });\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 { createKRTimeZoneDate } from \"../../../../utils/createUTCDate.js\";\nimport { splitToStringArray } from \"../../../../utils/splitToStringArray.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 getBeforeRehearsalEventKeys = (campaigns, richCampaigns, now) => {\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};\nexport {\n  getBeforeRehearsalEventKeys\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { useState, useMemo } from \"react\";\nimport { HeadlineNotificationRow } from \"../HeadlineNotificationRow/HeadlineNotificationRow.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 \"../../../../apis/framer/FramerApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/brand-mix/BrandMixApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../hooks/useTheme.js\";\nimport \"../../../@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 \"../../../../hooks/useFeatureFlag.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { createKRTimeZoneDate } from \"../../../../utils/createUTCDate.js\";\nimport { useVisibilityAwareInterval } from \"../../../../hooks/useVisibilityAwareInterval.js\";\nimport { LiveAllNotificationSwitch } from \"./LiveAllNotificationSwitch.js\";\nimport \"./providers/CampaignsProvider/CampaignsProvider.js\";\nimport { useCampaigns } from \"./providers/CampaignsProvider/CampaignsProvider.hooks.js\";\nimport { getBeforeRehearsalEventKeys } from \"./LiveHeadline.utils.js\";\nconst MS_IN_SECOND = 1e3;\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    switchButtonText,\n    switchActiveColor\n  } = allNotification;\n  const [now, setNow] = useState(() => createKRTimeZoneDate());\n  const eventKeys = useMemo(() => getBeforeRehearsalEventKeys(campaigns, richCampaigns, now), [campaigns, richCampaigns, now]);\n  useVisibilityAwareInterval(() => {\n    const nextNow = createKRTimeZoneDate();\n    if (getBeforeRehearsalEventKeys(campaigns, richCampaigns, nextNow).length === eventKeys.length) {\n      return;\n    }\n    setNow(nextNow);\n  }, eventKeys.length > 0 ? MS_IN_SECOND : null);\n  const isGroupKeyMissing = !(groupKey == null ? void 0 : groupKey.trim());\n  return /* @__PURE__ */ jsx(HeadlineNotificationRow, { label: pending ? \"\" : headlineTitle, 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};\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 { 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 { SegmentGate } from \"../SegmentGate/SegmentGate.js\";\nimport { SEGMENT_CONTROLS } from \"../../../../libs/property-controls/segment.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/subscription/useGroupSubscriptionState.js\";\nimport { LiveAllNotificationWarnings } from \"./LiveAllNotificationWarnings.js\";\nimport { getNormalizedCampaignEventKeys, getLiveAllNotificationWarnings } from \"./utils/getAllNotificationWarnings.js\";\nimport { formatSchedule } from \"./ScheduleTags.utils.js\";\nimport { useComponentTiming } from \"../../../../hooks/beacon/useComponentTiming.js\";\nimport { ComponentTimingProvider } from \"../../../../hooks/beacon/ComponentTimingContext.js\";\nconst defaultAllNotification = {\n  enabled: false,\n  groupKey: \"\",\n  headlineTitle: \"모든 라이브 챙겨보기\",\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.enabled ? 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  segment,\n  ...rest\n}) => {\n  const timing = useComponentTiming(\"LiveV2\");\n  return /* @__PURE__ */ jsx(ComponentTimingProvider, { timing, children: /* @__PURE__ */ jsx(SectionLayout, { theme, breakpoint, componentId, segment, onVisible: timing.markVisible, children: /* @__PURE__ */ jsx(SegmentGate, { children: /* @__PURE__ */ jsx(SWRErrorBoundary, { fallback: (retry) => /* @__PURE__ */ jsx(NoContent, { onClick: retry }), reportFailure: true, children: /* @__PURE__ */ jsx(LiveInner, { ...rest }) }) }) }) });\n};\naddPropertyControls(Live, {\n  ...BREAKPOINT_CONTROLS,\n  ...THEME_CONTROLS,\n  ...SEGMENT_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      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\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LiveCardListV2.map"],"ignoreList":[31,32,33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