{"version":3,"file":"BrandLookbookCollection.CK_OcUt7.mjs","names":["isLast","memo","useMemo","containerStyle","wrapperStyleByBreakpoint","wrapperStyle","useMemo","Headline","skeletonStyleByTheme","Default","useContext","forwardRef","useRef","useState","containerStyle","Default","createContext","forwardRef","useState","Fragment","createContext","useMemo","useContext","Fragment","isBefore","Fragment","Headline"],"sources":["https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/CalendarTags/CalendarTags.utils.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/CalendarTags/CalendarTags.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandLookbookCollection.utils.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/CalendarTags/CalendarTags.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/Brand/Brand.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/Brand/BrandHeadline/BrandHeadline.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/Brand/Brand.constants.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProducts/Root.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProducts/HorizontalList.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProducts/Item.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProducts/Root.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProducts/Card.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProducts/index.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/Brand/BrandLookbook/BrandLookbook.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProducts/Root.utils.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/Brand/Brand.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProfiles/BrandProfiles.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProfiles/BrandProfiles.utils.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/provider/BrandScheduleProvider/BrandScheduleProvider.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/provider/BrandScheduleProvider/BrandScheduleProvider.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProfiles/BrandProfiles.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandProfilesHeadline/BrandProfilesHeadline.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandLookbookCollection.types.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandLookbookCollection.js","https:/framerusercontent.com/modules/0ouOSgnI1TbdXpuELWAn/82wcAJmkxt1TszAGFXHD/BrandLookbookCollection.js"],"sourcesContent":["import { createKRTimeZoneDate } from \"../../../../../utils/createUTCDate.js\";\nimport { isAbove } from \"../../../../../utils/date.js\";\nimport { ko } from \"../../../../../node_modules/date-fns/locale/ko.js\";\nimport { isWithinInterval } from \"../../../../../node_modules/date-fns/isWithinInterval.js\";\nimport { formatDate as format } from \"../../../../../node_modules/date-fns/format.js\";\nimport { differenceInHours } from \"../../../../../node_modules/date-fns/differenceInHours.js\";\nconst STANDARD_DIFF_HOURS = 48;\nconst getCurrentBrandSaleIndex = (brandSaleList) => {\n  const now = createKRTimeZoneDate();\n  const currentIndex = brandSaleList.findIndex((brandSale, index) => {\n    const nextInterval = brandSaleList[index + 1];\n    const hasNext = nextInterval !== void 0;\n    const start = new Date(brandSale.displayStartAt);\n    const end = new Date(brandSale.displayEndAt);\n    const isWithin = hasNext && isWithinInterval(now, {\n      start,\n      end\n    });\n    const isLast = !hasNext && isAbove(now, start);\n    return isWithin || isLast;\n  });\n  return currentIndex === -1 ? void 0 : currentIndex;\n};\nconst getCalendarTagName = ({\n  displayStartAt,\n  displayEndAt\n}) => {\n  const defaultTagName = format(displayStartAt, \"M. d eeeee\", {\n    locale: ko\n  });\n  if (!displayEndAt) {\n    return defaultTagName;\n  }\n  const diff = differenceInHours(displayEndAt, displayStartAt);\n  if (diff > STANDARD_DIFF_HOURS) {\n    return `${defaultTagName} 시작`;\n  }\n  return defaultTagName;\n};\nexport {\n  getCalendarTagName,\n  getCurrentBrandSaleIndex\n};\n","import { useFetchBrandSaleGroup } from \"../../../../../hooks/fetchers/useFetchBrandSaleGroup.js\";\nimport \"../../IntersectionProvider/IntersectionProvider.js\";\nimport { useIntersectionContext } from \"../../IntersectionProvider/IntersectionProvider.hooks.js\";\nconst useBrandSaleGroup = (brandSaleGroupId) => {\n  const {\n    isInView\n  } = useIntersectionContext();\n  const {\n    isLoading,\n    error,\n    data\n  } = useFetchBrandSaleGroup(brandSaleGroupId, isInView);\n  const hasError = error !== void 0;\n  const isPending = isLoading || hasError;\n  const brandSaleList = (data == null ? void 0 : data.data.brandSaleList) ?? [];\n  const title = data == null ? void 0 : data.data.title;\n  return {\n    title,\n    brandSaleList,\n    isPending\n  };\n};\nexport {\n  useBrandSaleGroup\n};\n","const findCurrentIndex = ({\n  list,\n  queryId,\n  idKey,\n  fallbackIndex = 0,\n  getCurrentIndex\n}) => {\n  if (queryId !== void 0) {\n    const targetIndex = list.findIndex((item) => {\n      const itemId = item == null ? void 0 : item[idKey];\n      return itemId === Number(queryId);\n    });\n    if (targetIndex !== -1) {\n      return targetIndex;\n    }\n  }\n  if (getCurrentIndex) {\n    const currentIndex = getCurrentIndex(list);\n    if (currentIndex !== void 0) {\n      return currentIndex;\n    }\n  }\n  return fallbackIndex;\n};\nconst findCurrentIndexByValue = (list, targetValue, compareKey) => {\n  if (targetValue !== void 0) {\n    const targetIndex = list.findIndex((item) => {\n      const itemValue = item == null ? void 0 : item[compareKey];\n      return itemValue === targetValue;\n    });\n    return targetIndex;\n  }\n  return -1;\n};\nexport {\n  findCurrentIndex,\n  findCurrentIndexByValue\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { memo, useMemo } from \"react\";\nimport { useComponentId, useTrackEvent } from \"../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { getCurrentBrandSaleIndex, getCalendarTagName } from \"./CalendarTags.utils.js\";\nimport { useBrandSaleGroup } from \"./CalendarTags.hooks.js\";\nimport { Tags } from \"../../Tags/index.js\";\nimport { Tag } from \"../../../../@shared/Tag/Tag.js\";\nimport \"framer-motion\";\nimport \"react-dom\";\nimport { Icon } from \"../../../../@shared/Icon/Icon.js\";\nimport \"../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useBreakpoint } from \"../../../../../hooks/useBreakpoint.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { useTrackSnowplowEvent } from \"../../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { EventTrigger } from \"../../../../@shared/EventTrigger/index.js\";\nimport { findCurrentIndexByValue } from \"../BrandLookbookCollection.utils.js\";\nconst DEFAULT_INDEX = 0;\nconst SCHEDULE_BUTTON_NAME = \"스케줄\";\nconst CalendarTags = memo(({\n  children,\n  brandSaleGroupId,\n  scheduleTag,\n  queryBrandSaleId\n}) => {\n  const componentId = useComponentId();\n  const {\n    trackEvent\n  } = useTrackEvent();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const breakpoint = useBreakpoint();\n  const {\n    brandSaleList,\n    isPending\n  } = useBrandSaleGroup(brandSaleGroupId);\n  const currentIndex = useMemo(() => {\n    const foundIndex = findCurrentIndexByValue(brandSaleList, queryBrandSaleId ? Number(queryBrandSaleId) : void 0, \"brandSaleId\");\n    if (foundIndex === -1) {\n      return getCurrentBrandSaleIndex(brandSaleList) ?? 0;\n    }\n    return foundIndex;\n  }, [brandSaleList, queryBrandSaleId]);\n  const handleClickSchedule = () => {\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      position: -1,\n      button_id: \"brand_schedule\",\n      button_name: SCHEDULE_BUTTON_NAME,\n      layout_position: -1\n    });\n  };\n  const handleClick = (item, index) => () => {\n    if (!item) {\n      return;\n    }\n    trackEvent({\n      component_type: \"tag\",\n      tag_type: \"time\",\n      tag_name: item.title,\n      position: index + 1\n    });\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      position: index + 1,\n      button_id: \"tag\",\n      button_name: getCalendarTagName({\n        displayStartAt: item.displayStartAt,\n        displayEndAt: item.displayEndAt\n      }),\n      layout_position: -1\n    });\n  };\n  return /* @__PURE__ */ jsxs(Tags.Root, { defaultValue: DEFAULT_INDEX, value: currentIndex, loading: isPending, dragPaddingLeft: scheduleTag.visible ? 8 : void 0, children: [\n    /* @__PURE__ */ jsxs(\"div\", { style: containerStyle, children: [\n      scheduleTag.visible ? /* @__PURE__ */ jsx(\"div\", { style: {\n        ...wrapperStyleByBreakpoint[breakpoint],\n        ...wrapperStyle\n      }, children: /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: handleClickSchedule, children: /* @__PURE__ */ jsx(\"a\", { style: anchorStyle, href: scheduleTag.href, target: \"_blank\", rel: \"noreferrer\", children: /* @__PURE__ */ jsxs(Tag, { style: {\n        ...tagStyle,\n        color: scheduleTag.color,\n        borderColor: scheduleTag.color\n      }, children: [\n        /* @__PURE__ */ jsx(Icon, { type: \"checkCalendar\", color: scheduleTag.color, weight: \"bold\", size: 16 }),\n        SCHEDULE_BUTTON_NAME\n      ] }) }) }) }) : null,\n      /* @__PURE__ */ jsx(Tags.List, { list: brandSaleList, style: {\n        marginBottom: 0\n      }, children: ({\n        index,\n        item\n      }) => /* @__PURE__ */ jsx(Tags.Item, { value: index, onClick: handleClick(item, index), children: item ? getCalendarTagName({\n        displayStartAt: item.displayStartAt,\n        displayEndAt: item.displayEndAt\n      }) : \"\" }) })\n    ] }),\n    /* @__PURE__ */ jsx(Tags.Panels, { list: brandSaleList, children: ({\n      item,\n      index,\n      pending\n    }) => {\n      return /* @__PURE__ */ jsx(Tags.Panel, { value: index, children: children({\n        brandSaleId: item == null ? void 0 : item.brandSaleId,\n        startDate: item ? new Date(item.displayStartAt) : void 0,\n        endDate: item ? new Date(item.displayEndAt) : void 0,\n        index,\n        pending\n      }) }, item == null ? void 0 : item.brandSaleId);\n    } })\n  ] });\n});\nconst containerStyle = {\n  width: \"100%\",\n  display: \"flex\",\n  alignItems: \"center\"\n};\nconst wrapperStyle = {\n  boxSizing: \"border-box\"\n};\nconst wrapperStyleByBreakpoint = {\n  desktop: {\n    paddingLeft: 0\n  },\n  tablet: {\n    paddingLeft: 20\n  },\n  mobile: {\n    paddingLeft: 20\n  }\n};\nconst anchorStyle = {\n  textDecoration: \"none\"\n};\nconst tagStyle = {\n  display: \"flex\",\n  alignItems: \"center\",\n  gap: 2,\n  paddingRight: 12,\n  paddingLeft: 10,\n  backgroundColor: \"transparent\",\n  borderWidth: 1,\n  borderStyle: \"solid\"\n};\nexport {\n  CalendarTags\n};\n","import { useMemo } from \"react\";\nimport useSWR from \"../../../../../node_modules/swr/core/dist/index.js\";\nimport { framerApi } from \"../../../../../apis/framer/FramerApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport { useFetchCouponCollectionProducts } from \"../../../../../hooks/fetchers/useFetchCouponCollectionProducts.js\";\nconst PRODUCT_LIST_FETCHER_QUERY_KEY = \"product-list\";\nconst useCouponCollectionProducts = (couponCollectionId, lookbookProductIdList, sort) => {\n  const hasCouponCollectionId = couponCollectionId !== void 0;\n  const enabled = hasCouponCollectionId;\n  const {\n    products,\n    isPending,\n    hasNext,\n    setSize\n  } = useFetchCouponCollectionProducts(couponCollectionId ?? 0, enabled, sort);\n  const filteredProducts = useMemo(() => {\n    return products.filter((product) => !lookbookProductIdList.includes(product.productId));\n  }, [products, lookbookProductIdList]);\n  return {\n    isPending,\n    products: filteredProducts,\n    setSize,\n    hasNext\n  };\n};\nconst useBrandLookbookProducts = (productIdList) => {\n  const enabled = productIdList.length > 0;\n  const {\n    data: productList,\n    isLoading\n  } = useSWR(enabled ? [PRODUCT_LIST_FETCHER_QUERY_KEY, productIdList] : null, () => framerApi.getFramerProductListV2(productIdList));\n  return {\n    isLoading,\n    lookbookProducts: productList ?? []\n  };\n};\nexport {\n  useBrandLookbookProducts,\n  useCouponCollectionProducts\n};\n","import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { EventTrigger } from \"../../../../../@shared/EventTrigger/index.js\";\nimport { Skeleton } from \"../../../../../@shared/Skeleton/Skeleton.js\";\nimport { TextButton as Default } from \"../../../../../@shared/TextButton/TextButton.js\";\nimport { useComponentId } from \"../../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { Headline } from \"../../../Headline/index.js\";\nimport { env } from \"../../../../../../config/index.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/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../../hooks/useTheme.js\";\nimport \"../../../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../../utils/redirectLogin.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport { useTrackSnowplowEvent } from \"../../../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { useNavigatePage } from \"../../../../../../hooks/useNavigatePage.js\";\nconst DEFAULT_COMPONENT_ID = \"CouponCollection\";\nconst ACTION_BUTTON_NAME = \"전체보기\";\nconst BrandHeadline = ({\n  couponCollectionId,\n  isPending,\n  sort\n}) => {\n  const theme = useTheme();\n  const componentId = useComponentId();\n  const couponCollectionSearchParams = new URLSearchParams({\n    source: componentId || DEFAULT_COMPONENT_ID,\n    sort\n  }).toString();\n  const couponCollectionPageUrl = `${env.workspace.content}/coupon-collection/${couponCollectionId}?${couponCollectionSearchParams}`;\n  const navigateCouponCollectionPage = useNavigatePage(couponCollectionPageUrl);\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const handleButtonClick = () => {\n    if (!couponCollectionId) {\n      return;\n    }\n    navigateCouponCollectionPage();\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      position: -1,\n      button_id: \"more\",\n      button_name: ACTION_BUTTON_NAME,\n      layout_position: -1\n    });\n  };\n  return /* @__PURE__ */ jsx(Headline.Root, { priority: \"tertiary\", children: /* @__PURE__ */ jsxs(Headline.Content, { children: [\n    !isPending ? /* @__PURE__ */ jsx(Headline.Title, { children: \"대표 아이템\" }) : /* @__PURE__ */ jsx(\"div\", { style: {\n      width: \"100%\"\n    }, children: /* @__PURE__ */ jsx(Skeleton, { style: {\n      height: 19.6,\n      width: 160,\n      borderRadius: 2,\n      ...skeletonStyleByTheme[theme]\n    } }) }),\n    /* @__PURE__ */ jsx(Headline.Action, { children: /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: handleButtonClick, children: /* @__PURE__ */ jsx(Default, { style: {\n      opacity: 0.6\n    }, theme, variant: \"primary\", size: \"xSmall\", postfixIcon: \"chevronRight\", children: ACTION_BUTTON_NAME }) }) })\n  ] }) });\n};\nconst skeletonStyleByTheme = {\n  light: {\n    backgroundColor: \"#dee2e6\"\n  },\n  dark: {\n    backgroundColor: \"#27272a\"\n  }\n};\nexport {\n  BrandHeadline\n};\n","import { ProductCardType } from \"../../../../@shared/ProductCard/ProductCard.types.js\";\nimport { getResponsiveWidth } from \"../../../../../utils/getResponsiveWidth.js\";\nconst BRAND_LOOK_BOOK_OPTIONS = {\n  base: {\n    card: {\n      type: ProductCardType.CARD,\n      hasBadges: false,\n      hasPriceUnit: false\n    },\n    column: {\n      gap: 6\n    },\n    row: {\n      gap: 17\n    }\n  },\n  mobile: {\n    row: {\n      count: 1\n    },\n    column: {\n      displayCount: 3,\n      width: getResponsiveWidth(6, 3)\n    }\n  },\n  tablet: {\n    row: {\n      count: 2\n    },\n    column: {\n      displayCount: 4,\n      width: getResponsiveWidth(6, 4)\n    }\n  },\n  desktop: {\n    navigator: true,\n    row: {\n      count: 2\n    },\n    column: {\n      displayCount: 6,\n      width: getResponsiveWidth(6, 6)\n    }\n  }\n};\nexport {\n  BRAND_LOOK_BOOK_OPTIONS\n};\n","import { useContext } from \"react\";\nimport { ProductsContext } from \"./Root.js\";\nconst useProductsContext = () => {\n  const context = useContext(ProductsContext);\n  if (!context) {\n    throw new Error(\"useProductsContext should be used within Root\");\n  }\n  return context;\n};\nexport {\n  useProductsContext\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useRef, useState, useEffect } from \"react\";\nimport { Grid as Default } from \"../../../../@shared/layouts/Grid.js\";\nimport { ProductCardType } from \"../../../../@shared/ProductCard/ProductCard.types.js\";\nimport \"../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../hooks/useTheme.js\";\nimport { useBreakpoint } from \"../../../../../hooks/useBreakpoint.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { mergeRefs } from \"../../../../../utils/react/mergeRefs.js\";\nimport { useProductsContext } from \"./Root.hooks.js\";\nimport { ArrowIcon } from \"../../ArrowIcon/ArrowIcon.js\";\nconst NAVIGATOR_SIZE = 50;\nconst HorizontalList = forwardRef(({\n  style,\n  children,\n  options,\n  pagination = false\n}, ref) => {\n  const breakpoint = useBreakpoint();\n  const theme = useTheme();\n  const {\n    pending,\n    initialHasNext\n  } = useProductsContext();\n  const gridRef = useRef(null);\n  const isScrolling = useRef(false);\n  const {\n    card,\n    row,\n    column,\n    navigator\n  } = options;\n  const {\n    type = ProductCardType.CARD\n  } = card ?? {};\n  const [hasPrevious, setHasPrevious] = useState(false);\n  const [hasNext, setHasNext] = useState(initialHasNext);\n  const inset = (column == null ? void 0 : column.gap) ?? 0;\n  const isBarType = type === ProductCardType.BAR;\n  const applyScrollSnap = isBarType && breakpoint !== \"desktop\";\n  const shouldRenderNavigator = pagination && navigator;\n  const scrollTo = (direction) => {\n    if (isScrolling.current || pending) {\n      return;\n    }\n    const container = gridRef.current;\n    if (container === null) {\n      return;\n    }\n    const position = getScrollPosition(container, inset, direction);\n    const hasRemainingNextOffset = position < Math.ceil(container.scrollWidth - container.clientWidth);\n    const hasRemainingPrevOffset = position > 0;\n    setHasNext(hasRemainingNextOffset || initialHasNext);\n    setHasPrevious(hasRemainingPrevOffset);\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  useEffect(() => {\n    if (pending) {\n      return;\n    }\n    const container = gridRef.current;\n    if (container === null) {\n      return;\n    }\n    setHasNext(container.scrollWidth > container.clientWidth || initialHasNext);\n  }, [pending, initialHasNext, pagination]);\n  return /* @__PURE__ */ jsxs(\"div\", { style: {\n    ...containerStyle,\n    ...style\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(Default, { ref: mergeRefs([ref, gridRef]), style: {\n      ...wrapperResetStyle,\n      ...wrapperStyle,\n      ...wrapperStyleByBreakpoint[breakpoint],\n      overflowX: navigator ? \"hidden\" : \"scroll\",\n      overflowY: \"hidden\",\n      scrollSnapType: applyScrollSnap ? \"x mandatory\" : \"none\",\n      WebkitScrollSnapType: applyScrollSnap ? \"x mandatory\" : \"none\"\n    }, row: {\n      ...row,\n      gap: isBarType ? 0 : row == null ? void 0 : row.gap\n    }, column, children }),\n    shouldRenderNavigator ? /* @__PURE__ */ jsx(ArrowIcon, { style: {\n      ...baseNavigatorStyle,\n      ...rightNavigatorStyle\n    }, color: hasNext ? iconColorByTheme[theme] : disabledIconColorByTheme[theme], onClick: handleNextClick }) : null\n  ] });\n});\nconst getScrollPosition = (container, inset, direction) => {\n  const offset = container.clientWidth + inset;\n  return Math.ceil(container.scrollLeft + (direction === \"previous\" ? -offset : offset));\n};\nconst containerStyle = {\n  position: \"relative\",\n  width: \"100%\"\n};\nconst iconColorByTheme = {\n  light: \"#000\",\n  dark: \"#fff\"\n};\nconst disabledIconColorByTheme = {\n  light: \"#a0a0a0\",\n  dark: \"#474747\"\n};\nconst baseNavigatorStyle = {\n  position: \"absolute\",\n  top: \"50%\",\n  cursor: \"pointer\"\n};\nconst leftNavigatorStyle = {\n  left: `-${NAVIGATOR_SIZE}px`,\n  transform: \"translateY(-50%) rotate(180deg)\"\n};\nconst rightNavigatorStyle = {\n  right: `-${NAVIGATOR_SIZE}px`,\n  transform: \"translateY(-50%)\"\n};\nconst wrapperResetStyle = {\n  padding: 0,\n  margin: 0\n};\nconst wrapperStyle = {\n  padding: \"0 20px\",\n  msOverflowStyle: \"none\",\n  scrollbarWidth: \"none\"\n};\nconst wrapperStyleByBreakpoint = {\n  mobile: {\n    padding: \"0 20px\",\n    scrollPaddingLeft: 20,\n    scrollPaddingRight: 20\n  },\n  tablet: {\n    padding: \"0 20px\",\n    scrollPaddingLeft: 20,\n    scrollPaddingRight: 20\n  },\n  desktop: {\n    padding: 0\n  }\n};\nexport {\n  HorizontalList\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { Intersection } from \"../../../../@shared/Intersection/Intersection.js\";\nimport \"react-dom\";\nimport \"../../../../@shared/Icon/Icon.js\";\nimport { ProductCardType } from \"../../../../@shared/ProductCard/ProductCard.types.js\";\nimport { useProductsContext } from \"./Root.hooks.js\";\nimport { isLast } from \"../../../../../utils/isLast.js\";\nimport \"react\";\nimport \"../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../hooks/useTheme.js\";\nimport \"../../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport noop from \"../../../../../node_modules/lodash-es/noop.js\";\nconst Item = ({\n  children,\n  index,\n  options,\n  onLastItemView = noop\n}) => {\n  const {\n    products,\n    card,\n    initialHasNext\n  } = useProductsContext();\n  const theme = useTheme();\n  const {\n    type = ProductCardType.CARD\n  } = card ?? {};\n  const isBarType = type === ProductCardType.BAR;\n  const itemStyle = isBarType ? barWrapperStyle(index, options, products.length, theme) : baseItemStyle;\n  if (isLast(products, index) && initialHasNext) {\n    return /* @__PURE__ */ jsx(Intersection, { style: itemStyle, margin: \"200px\", onView: onLastItemView, children });\n  }\n  return /* @__PURE__ */ jsx(\"div\", { style: itemStyle, children });\n};\nconst baseItemStyle = {\n  scrollSnapAlign: \"start\"\n};\nconst borderStyleByTheme = {\n  light: \"1px solid #E4E4E4\",\n  dark: \"1px solid #27272A\"\n};\nconst barWrapperStyle = (index, options, length, theme) => {\n  var _a;\n  const {\n    row\n  } = options;\n  const rowCount = (row == null ? void 0 : row.count) === \"auto\" ? 0 : (row == null ? void 0 : row.count) ?? 0;\n  const rowPadding = (((_a = options.row) == null ? void 0 : _a.gap) ?? 0) / 2;\n  const needTopSpacing = !isFirstOfColumn(index, rowCount);\n  const needBottomSpacing = !isLastOfColumn(index, rowCount);\n  const needBottomBorder = !isLastOfColumn(index, rowCount) && index !== length - 1;\n  return {\n    ...baseItemStyle,\n    boxSizing: \"border-box\",\n    paddingTop: needTopSpacing ? rowPadding : 0,\n    paddingBottom: needBottomSpacing ? rowPadding : 0,\n    borderBottom: needBottomBorder ? borderStyleByTheme[theme] : \"none\"\n  };\n};\nconst isFirstOfColumn = (index, rows) => index % rows === 0;\nconst isLastOfColumn = (index, rows) => (index + 1) % rows === 0;\nexport {\n  Item\n};\n","import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { createContext, forwardRef } from \"react\";\nimport { useProductGroupHeart } from \"../../../../../hooks/product/useProductGroupHeart.js\";\nimport \"../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useBreakpoint } from \"../../../../../hooks/useBreakpoint.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { HorizontalList } from \"./HorizontalList.js\";\nimport { Item } from \"./Item.js\";\nconst ProductsContext = createContext(null);\nconst Root = forwardRef(({\n  style,\n  children,\n  products: _products,\n  loading = false,\n  options: responsiveOptions,\n  hasNext: initialHasNext = false,\n  onLastItemView,\n  brandlookBook\n}, ref) => {\n  const breakpoint = useBreakpoint();\n  const {\n    isHeartOn,\n    handleHeartOn,\n    handleHeartOff\n  } = useProductGroupHeart();\n  const options = responsiveOptions[breakpoint];\n  const {\n    card = {},\n    row,\n    column\n  } = options;\n  const rowCount = (row == null ? void 0 : row.count) === \"auto\" ? 0 : (row == null ? void 0 : row.count) ?? 0;\n  const columnCount = (column == null ? void 0 : column.count) === \"auto\" ? 0 : (column == null ? void 0 : column.count) ?? 0;\n  const displayCount = getDisplayCount(options);\n  const products = slice(_products, rowCount * columnCount);\n  const pagination = displayCount < products.length + 4 || initialHasNext;\n  const pending = loading && products.length === 0;\n  const handleLastItemView = () => {\n    if (loading) {\n      return;\n    }\n    onLastItemView == null ? void 0 : onLastItemView();\n  };\n  return /* @__PURE__ */ jsx(ProductsContext.Provider, { value: {\n    card,\n    products,\n    pending,\n    initialHasNext,\n    isHeartOn,\n    onHeartOn: handleHeartOn,\n    onHeartOff: handleHeartOff\n  }, children: /* @__PURE__ */ jsxs(HorizontalList, { ref, style, options, pagination, children: [\n    brandlookBook,\n    products.map((product, index) => /* @__PURE__ */ jsx(Item, { index, options, onLastItemView: handleLastItemView, children: children({\n      index,\n      product,\n      pending\n    }) }, product.productId)),\n    pending ? Array.from({\n      length: displayCount\n    }, (_, index) => /* @__PURE__ */ jsx(Item, { index, options, children: children({\n      index,\n      pending\n    }) }, index)) : null\n  ] }) });\n});\nconst getDisplayCount = (options) => {\n  const {\n    column,\n    row\n  } = options;\n  const {\n    displayCount: columnDisplayCount = 0\n  } = column ?? {};\n  const {\n    count: rowCount = 0\n  } = row ?? {};\n  const isAutoRow = rowCount === \"auto\";\n  return columnDisplayCount * (isAutoRow ? 0 : rowCount);\n};\nconst slice = (list, count) => {\n  return count > 0 ? list.slice(0, count) : list;\n};\nexport {\n  ProductsContext,\n  Root\n};\n","import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { ProductCard } from \"../../../../@shared/ProductCard/ProductCard.js\";\nimport { useProductsContext } from \"./Root.hooks.js\";\nimport { ProductCardSkeleton } from \"../../../../@shared/ProductCardSkeleton/ProductCardSkeleton.js\";\nimport \"react\";\nimport \"../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../hooks/useTheme.js\";\nimport \"../../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { Lazy as Default } from \"../../../../@shared/Lazy/Lazy.js\";\nimport { typography } from \"../../../../../styles/typography.js\";\nimport { ProductCardType } from \"../../../../@shared/ProductCard/ProductCard.types.js\";\nconst Card = ({\n  index,\n  componentName,\n  ...rest\n}) => {\n  const theme = useTheme();\n  const {\n    products,\n    card,\n    pending,\n    isHeartOn,\n    onHeartOn,\n    onHeartOff\n  } = useProductsContext();\n  const product = products[index];\n  const isBarType = card.type === ProductCardType.BAR;\n  const isCardType = card.type === ProductCardType.CARD || card.type === ProductCardType.CARD_DETAILED;\n  const hideBarTypeRank = !isBarType || !card.hasRank;\n  const hideCardTypeRank = !isCardType || !card.hasRank;\n  const position = index + 1;\n  if (pending) {\n    return /* @__PURE__ */ jsx(ProductRank, { hidden: hideBarTypeRank, position, children: /* @__PURE__ */ jsx(ProductCardSkeleton, { theme, ...card }) });\n  }\n  return /* @__PURE__ */ jsx(Default, { margin: \"0px 200px\", fallback: /* @__PURE__ */ jsx(ProductRank, { hidden: hideBarTypeRank, position, children: /* @__PURE__ */ jsx(ProductCardSkeleton, { theme, ...card }) }), children: /* @__PURE__ */ jsx(ProductRank, { hidden: hideBarTypeRank, position, children: /* @__PURE__ */ jsx(ProductCard, { ...rest, ...card, hasRank: !hideCardTypeRank, theme, product, positionNo: position, isHeartOn: isHeartOn(product.productId), onHeartOn, onHeartOff, eventProperties: {\n    product,\n    isProductGroup: true,\n    componentName,\n    positionNo: position\n  } }) }) });\n};\nconst ProductRank = ({\n  children,\n  hidden = false,\n  position\n}) => {\n  const theme = useTheme();\n  if (hidden) {\n    return children;\n  }\n  return /* @__PURE__ */ jsxs(\"div\", { style: containerStyle, children: [\n    /* @__PURE__ */ jsx(\"div\", { style: rankAreaStyle, children: /* @__PURE__ */ jsx(\"div\", { style: {\n      ...typography(16, 700),\n      ...rankTextStyleByTheme[theme]\n    }, children: position }) }),\n    children\n  ] });\n};\nconst containerStyle = {\n  display: \"flex\",\n  alignItems: \"center\",\n  gap: \"12px\"\n};\nconst rankAreaStyle = {\n  minWidth: 40,\n  height: \"100%\",\n  display: \"flex\",\n  alignItems: \"center\",\n  justifyContent: \"center\"\n};\nconst rankTextStyleByTheme = {\n  light: {\n    color: \"#000\"\n  },\n  dark: {\n    color: \"#fff\"\n  }\n};\nexport {\n  Card\n};\n","import { Root } from \"./Root.js\";\nimport { Card } from \"./Card.js\";\nconst BrandProducts = {\n  Root,\n  Card\n};\nexport {\n  BrandProducts\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { useState } from \"react\";\nimport \"../../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../../config/index.js\";\nimport \"../../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../../hooks/useTheme.js\";\nimport { useBreakpoint } from \"../../../../../../hooks/useBreakpoint.js\";\nimport \"../../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../../utils/redirectLogin.js\";\nimport \"../../../../../../utils/event-properties/source.js\";\nimport { typography } from \"../../../../../../styles/typography.js\";\nimport { Skeleton } from \"../../../../../@shared/Skeleton/Skeleton.js\";\nconst BrandLookbook = ({\n  lookbook\n}) => {\n  const breakpoint = useBreakpoint();\n  const theme = useTheme();\n  const [isLoaded, setIsLoaded] = useState(false);\n  const baseSrc = lookbook.lookImageUrl;\n  return /* @__PURE__ */ jsxs(\"div\", { style: {\n    ...layoutStyle,\n    ...layoutStyleByBreakpoint[breakpoint]\n  }, children: [\n    /* @__PURE__ */ jsxs(\"picture\", { children: [\n      /* @__PURE__ */ jsx(\"source\", { media: \"(max-width: 799px)\", srcSet: `${baseSrc}?format=jpeg&width=1024` }),\n      /* @__PURE__ */ jsx(\"source\", { media: \"(min-width: 800px)\", srcSet: `${baseSrc}?format=jpeg&width=720` }),\n      /* @__PURE__ */ jsx(\"img\", { style: {\n        ...imageStyle,\n        ...imageStyleByBreakpoint[breakpoint]\n      }, src: baseSrc, alt: lookbook.lookTitle, loading: \"lazy\", onLoad: () => setIsLoaded(true) }),\n      !isLoaded ? /* @__PURE__ */ jsx(Skeleton, { style: {\n        ...imageSkeletonStyle,\n        ...imageSkeletonStyleByBreakpoint[breakpoint],\n        ...imageSkeletonStyleByTheme[theme]\n      } }) : null\n    ] }),\n    /* @__PURE__ */ jsx(\"div\", { style: {\n      ...titleGroupStyle,\n      ...titleGroupStyleByBreakpoint[breakpoint]\n    }, children: /* @__PURE__ */ jsxs(\"div\", { style: titleGroupWrapperStyle, children: [\n      /* @__PURE__ */ jsx(\"span\", { style: {\n        ...typography(18, 700, \"24.48px\"),\n        ...titleStyle\n      }, children: lookbook == null ? void 0 : lookbook.lookTitle }),\n      /* @__PURE__ */ jsx(\"span\", { style: {\n        ...typography(13, 500, \"18.2px\"),\n        ...descriptionStyle\n      }, children: lookbook == null ? void 0 : lookbook.lookDescription })\n    ] }) })\n  ] });\n};\nconst layoutStyle = {\n  position: \"relative\",\n  borderRadius: \"4px\"\n};\nconst layoutStyleByBreakpoint = {\n  mobile: {\n    padding: \"0px 20px 20px\"\n  },\n  tablet: {\n    marginRight: \"4px\",\n    gridColumn: \"1 / 3\",\n    gridRow: \"1 / 3\",\n    maxHeight: \"520px\"\n  },\n  desktop: {\n    marginRight: \"4px\",\n    gridColumn: \"1 / 3\",\n    gridRow: \"1 / 3\",\n    maxHeight: \"520px\"\n  }\n};\nconst imageStyle = {\n  width: \"100%\",\n  height: \"100%\",\n  objectFit: \"cover\",\n  borderRadius: \"4px\",\n  objectPosition: \"top\"\n};\nconst imageStyleByBreakpoint = {\n  mobile: {\n    aspectRatio: \"1 / 1\"\n  },\n  tablet: {},\n  desktop: {}\n};\nconst imageSkeletonStyle = {\n  position: \"absolute\",\n  top: 0,\n  borderRadius: \"4px\"\n};\nconst imageSkeletonStyleByBreakpoint = {\n  mobile: {\n    left: 20,\n    right: 20,\n    bottom: 20\n  },\n  tablet: {\n    left: 0,\n    width: \"100%\",\n    height: \"100%\"\n  },\n  desktop: {\n    left: 0,\n    width: \"100%\",\n    height: \"100%\"\n  }\n};\nconst imageSkeletonStyleByTheme = {\n  light: {\n    backgroundColor: \"#dee2e6\"\n  },\n  dark: {\n    backgroundColor: \"#27272a\"\n  }\n};\nconst titleGroupStyle = {\n  position: \"absolute\",\n  borderRadius: \"4px\",\n  left: 0,\n  width: \"100%\",\n  height: \"126px\",\n  display: \"flex\",\n  alignItems: \"flex-end\",\n  padding: \"32px 12px 24px\",\n  background: \"linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 60%)\"\n};\nconst titleGroupStyleByBreakpoint = {\n  mobile: {\n    bottom: \"20px\",\n    left: \"20px\",\n    width: \"calc(100% - 40px)\"\n  },\n  tablet: {\n    bottom: \"0px\"\n  },\n  desktop: {\n    bottom: \"0px\"\n  }\n};\nconst titleGroupWrapperStyle = {\n  width: \"100%\",\n  display: \"flex\",\n  flexDirection: \"column\",\n  justifyContent: \"center\",\n  textAlign: \"center\"\n};\nconst titleStyle = {\n  color: \"#FFFFFF\"\n};\nconst descriptionStyle = {\n  color: \"#FFFFFFE5\"\n};\nexport {\n  BrandLookbook\n};\n","import { entries } from \"../../../../../utils/entries.js\";\nimport merge from \"../../../../../node_modules/lodash-es/merge.js\";\nimport cloneDeep from \"../../../../../node_modules/lodash-es/cloneDeep.js\";\nconst createOptionTemplate = (options) => {\n  const {\n    base,\n    mobile = {},\n    tablet = {},\n    desktop = {}\n  } = options;\n  return Object.fromEntries(entries({\n    mobile,\n    tablet,\n    desktop\n  }).map(([key, value]) => [key, merge(cloneDeep(base), value)]));\n};\nconst getResponsiveWidth = (gap, column = 1, inset = 0) => {\n  return `calc((100% - ${gap * Math.max(column - 1, 1) + inset}px) / ${column})`;\n};\nexport {\n  createOptionTemplate,\n  getResponsiveWidth\n};\n","import { jsxs, Fragment, jsx } from \"react/jsx-runtime\";\nimport { useComponentId } from \"../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { useBrandLookbookProducts, useCouponCollectionProducts } from \"./Brand.hooks.js\";\nimport { BrandHeadline } from \"./BrandHeadline/BrandHeadline.js\";\nimport { BRAND_LOOK_BOOK_OPTIONS } from \"./Brand.constants.js\";\nimport { BrandProducts } from \"../BrandProducts/index.js\";\nimport \"react\";\nimport \"../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useBreakpoint } from \"../../../../../hooks/useBreakpoint.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { BrandLookbook } from \"./BrandLookbook/BrandLookbook.js\";\nimport { createOptionTemplate } from \"../BrandProducts/Root.utils.js\";\nconst Brand = ({\n  couponCollectionId,\n  frontBrand,\n  lookbook,\n  layout,\n  sort\n}) => {\n  const componentId = useComponentId();\n  const breakpoint = useBreakpoint();\n  const lookbookProductIdList = (lookbook == null ? void 0 : lookbook.lookProductIds) ? lookbook == null ? void 0 : lookbook.lookProductIds.split(\",\").map(Number) : [];\n  const {\n    isLoading,\n    lookbookProducts\n  } = useBrandLookbookProducts(lookbookProductIdList);\n  const {\n    isPending,\n    products,\n    hasNext,\n    setSize\n  } = useCouponCollectionProducts(couponCollectionId, lookbookProductIdList, sort);\n  const allProducts = [...lookbookProducts, ...products];\n  const loading = isLoading || isPending || allProducts.length === 0;\n  return /* @__PURE__ */ jsxs(Fragment, { children: [\n    breakpoint === \"mobile\" && lookbook ? /* @__PURE__ */ jsx(BrandLookbook, { lookbook }) : null,\n    /* @__PURE__ */ jsx(BrandHeadline, { isPending: !frontBrand, couponCollectionId, sort }),\n    /* @__PURE__ */ jsx(BrandProducts.Root, { hasNext, options: createOptions(layout), products: allProducts, loading, brandlookBook: breakpoint !== \"mobile\" && lookbook ? /* @__PURE__ */ jsx(BrandLookbook, { lookbook }) : null, onLastItemView: () => {\n      setSize((prev) => prev + 1);\n    }, children: ({\n      index\n    }) => /* @__PURE__ */ jsx(BrandProducts.Card, { index, componentName: componentId }) })\n  ] });\n};\nconst createOptions = (layout) => {\n  return createOptionTemplate({\n    ...BRAND_LOOK_BOOK_OPTIONS,\n    mobile: {\n      ...BRAND_LOOK_BOOK_OPTIONS.mobile,\n      row: {\n        count: layout.columnDisplayCount ?? 1\n      }\n    }\n  });\n};\nexport {\n  Brand\n};\n","import { useFetchBrandSales } from \"../../../../../hooks/fetchers/useFetchBrandSales.js\";\nconst useBrandSales = (brandSaleId) => {\n  var _a;\n  const hasBrandSaleId = brandSaleId !== void 0;\n  const enabled = hasBrandSaleId;\n  const {\n    isLoading,\n    error,\n    data\n  } = useFetchBrandSales(brandSaleId ?? 0, enabled);\n  const brandSaleCouponList = ((_a = data == null ? void 0 : data.data) == null ? void 0 : _a.brandSaleCouponList) ?? [];\n  const hasError = error !== void 0;\n  const isPending = isLoading || hasError || !enabled;\n  return {\n    isPending,\n    brandSaleCouponList\n  };\n};\nexport {\n  useBrandSales\n};\n","import { DiscountType } from \"../../../../../types/models/coupon.js\";\nconst formatCoupon = (coupon, startDate, brandName) => {\n  if (!coupon) {\n    return void 0;\n  }\n  const couponNamePostfix = coupon.discountType === DiscountType.FIXED_PRICE ? \"원\" : \"%\";\n  const couponName = `${brandName ?? \"\"} ${coupon == null ? void 0 : coupon.discountValue}${couponNamePostfix} 쿠폰 `;\n  return {\n    ...coupon,\n    id: coupon.couponId,\n    // NOTE:(김홍동) 이미 쿠폰이 발행된 상황인 경우 이벤트 시작일에 맞춰 발행 예정으로 수정합니다.\n    couponIssueStartAt: startDate ? startDate.toISOString() : coupon.couponIssueStartAt,\n    couponName,\n    personMaxIssueCount: coupon.personMaxIssueCount || 1\n  };\n};\nexport {\n  formatCoupon\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { createContext, useMemo } from \"react\";\nimport { isBefore } from \"../../../../../../node_modules/date-fns/isBefore.js\";\nconst CouponScheduleContext = createContext(null);\nconst BrandScheduleProvider = ({\n  children,\n  startDate,\n  endDate\n}) => {\n  const hasDate = startDate !== void 0 && endDate !== void 0;\n  const isBefore$1 = useMemo(() => hasDate && isBefore(/* @__PURE__ */ new Date(), startDate), [hasDate, startDate]);\n  const isAfter = useMemo(() => hasDate && isBefore(endDate, /* @__PURE__ */ new Date()), [hasDate, endDate]);\n  const isActive = useMemo(() => hasDate && isBefore(startDate, /* @__PURE__ */ new Date()) && isBefore(/* @__PURE__ */ new Date(), endDate), [hasDate, startDate, endDate]);\n  return /* @__PURE__ */ jsx(CouponScheduleContext.Provider, { value: {\n    startDate,\n    endDate,\n    isBefore: isBefore$1,\n    isAfter,\n    isActive\n  }, children });\n};\nexport {\n  BrandScheduleProvider,\n  CouponScheduleContext\n};\n","import { useContext } from \"react\";\nimport { CouponScheduleContext } from \"./BrandScheduleProvider.js\";\nconst useCouponScheduleContext = () => {\n  const context = useContext(CouponScheduleContext);\n  if (!context) {\n    throw new Error(\"useCouponScheduleContext should be used within CouponCollection\");\n  }\n  return context;\n};\nexport {\n  useCouponScheduleContext\n};\n","import { jsxs, jsx, Fragment } from \"react/jsx-runtime\";\nimport { useBrandSales } from \"./BrandProfiles.hooks.js\";\nimport { useComponentId, useTrackEvent } from \"../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../EventTrackingProvider/EventTrackingProvider.js\";\nimport { Profiles } from \"../../Profiles/index.js\";\nimport \"react\";\nimport \"../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport { ThemeProvider } from \"../../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useBreakpoint } from \"../../../../../hooks/useBreakpoint.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { DownloadableCoupon } from \"../../DownloadableCoupon/DownloadableCoupon.js\";\nimport { formatCoupon } from \"./BrandProfiles.utils.js\";\nimport { useTrackSnowplowEvent } from \"../../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { useCouponScheduleContext } from \"../provider/BrandScheduleProvider/BrandScheduleProvider.hooks.js\";\nimport { findCurrentIndexByValue } from \"../BrandLookbookCollection.utils.js\";\nconst ConditionalThemeProvider = ({\n  theme,\n  children\n}) => theme ? /* @__PURE__ */ jsx(ThemeProvider, { theme, children }) : /* @__PURE__ */ jsx(Fragment, { children });\nconst COUPON_MAX_WIDTH = 429;\nconst GAP = 16;\nconst BrandProfiles = ({\n  children,\n  brandSaleId,\n  couponColor,\n  couponLayout,\n  couponTheme,\n  queryBrandSaleCouponId\n}) => {\n  const breakpoint = useBreakpoint();\n  const componentId = useComponentId();\n  const {\n    startDate\n  } = useCouponScheduleContext();\n  const {\n    trackEvent,\n    trackClickTagSnowplowEvent\n  } = useTrackEvent();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const {\n    isPending,\n    brandSaleCouponList\n  } = useBrandSales(brandSaleId);\n  const foundIndex = findCurrentIndexByValue(brandSaleCouponList, queryBrandSaleCouponId ? Number(queryBrandSaleCouponId) : void 0, \"brandSaleCouponId\");\n  const currentIndex = foundIndex === -1 ? 0 : foundIndex;\n  const handleClick = (brand, index) => () => {\n    if (!brand) {\n      return;\n    }\n    trackEvent({\n      component_type: \"tag\",\n      tag_type: \"brand\",\n      tag_name: brand.nameKor,\n      tag_value: brand.frontBrandId,\n      position: index + 1\n    });\n    trackClickTagSnowplowEvent({\n      tag_type: \"brand\",\n      tag_value: brand.nameKor\n    });\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      position: -1,\n      button_id: \"brand_tag\",\n      button_name: brand.nameKor,\n      layout_position: index + 1\n    });\n  };\n  return /* @__PURE__ */ jsxs(Profiles.Root, { loading: isPending, value: currentIndex, children: [\n    /* @__PURE__ */ jsxs(\"div\", { style: {\n      ...profilesLayoutBaseStyle,\n      ...profilesLayoutStyleByBreakpoint[breakpoint]\n    }, children: [\n      /* @__PURE__ */ jsx(\"div\", { style: profilesListStyleByBreakpoint[breakpoint], children: /* @__PURE__ */ jsx(Profiles.List, { list: brandSaleCouponList, children: ({\n        item,\n        index\n      }) => /* @__PURE__ */ jsx(Profiles.Item, { value: index, name: (item == null ? void 0 : item.frontBrand.nameKor) ?? \"\", imageSrc: (item == null ? void 0 : item.frontBrand.iconImageUrl) ?? \"\", onClick: handleClick(item == null ? void 0 : item.frontBrand, index) }) }) }),\n      /* @__PURE__ */ jsx(\"div\", { style: {\n        ...brandCouponBaseStyle,\n        ...brandCouponStyleByBreakpoint[breakpoint]\n      }, children: /* @__PURE__ */ jsx(Profiles.Panels, { list: brandSaleCouponList, children: ({\n        item,\n        index\n      }) => /* @__PURE__ */ jsx(Profiles.Panel, { value: index, children: /* @__PURE__ */ jsx(ConditionalThemeProvider, { theme: couponTheme, children: /* @__PURE__ */ jsx(DownloadableCoupon, { coupon: formatCoupon(item == null ? void 0 : item.coupon, startDate, item == null ? void 0 : item.frontBrand.nameKor), backgroundColor: couponColor, layout: couponLayout }) }) }) }) })\n    ] }),\n    /* @__PURE__ */ jsx(Profiles.Panels, { list: brandSaleCouponList, children: ({\n      item,\n      index\n    }) => /* @__PURE__ */ jsx(Profiles.Panel, { value: index, children: children(item == null ? void 0 : item.couponCollectionId, item == null ? void 0 : item.frontBrand, item == null ? void 0 : item.lookbook) }) })\n  ] });\n};\nconst profilesLayoutBaseStyle = {\n  display: \"flex\",\n  width: \"100%\"\n};\nconst profilesLayoutStyleByBreakpoint = {\n  desktop: {\n    flexDirection: \"row\",\n    gap: GAP\n  },\n  tablet: {\n    flexDirection: \"row\",\n    gap: GAP\n  },\n  mobile: {\n    flexDirection: \"column\"\n  }\n};\nconst profilesListStyleByBreakpoint = {\n  desktop: {\n    width: `calc(100% - ${COUPON_MAX_WIDTH}px - ${GAP}px)`\n  },\n  tablet: {\n    width: `calc(100% - ${COUPON_MAX_WIDTH}px - ${GAP}px)`\n  },\n  mobile: {\n    width: \"100%\"\n  }\n};\nconst brandCouponBaseStyle = {\n  width: \"100%\"\n};\nconst brandCouponStyleByBreakpoint = {\n  desktop: {\n    maxWidth: COUPON_MAX_WIDTH,\n    padding: 0\n  },\n  tablet: {\n    maxWidth: COUPON_MAX_WIDTH,\n    padding: \"0px 20px 0px 0px\"\n  },\n  mobile: {\n    padding: \"0px 20px 16px\"\n  }\n};\nexport {\n  BrandProfiles\n};\n","import { jsxs, Fragment, jsx } from \"react/jsx-runtime\";\nimport { Skeleton } from \"../../../../@shared/Skeleton/Skeleton.js\";\nimport { Countdown } from \"../../../Countdown/Countdown.js\";\nimport { Headline } from \"../../Headline/index.js\";\nimport { SectionDivider } from \"../../SectionDivider/SectionDivider.js\";\nimport { SubscriptionButton } from \"../../SubscriptionButton/SubscriptionButton.js\";\nimport \"react\";\nimport \"../../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../../config/index.js\";\nimport \"../../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../../hooks/useTheme.js\";\nimport \"../../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../../utils/redirectLogin.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { typography } from \"../../../../../styles/typography.js\";\nimport { formatScheduleTime } from \"../../../../../utils/formatScheduleTime.js\";\nimport { restOf } from \"../../../../../utils/restOf.js\";\nimport { splitToStringArray } from \"../../../../../utils/splitToStringArray.js\";\nimport { useCouponScheduleContext } from \"../provider/BrandScheduleProvider/BrandScheduleProvider.hooks.js\";\nimport { formatDate as format } from \"../../../../../node_modules/date-fns/format.js\";\nconst BrandProfilesHeadline = ({\n  brandSaleGroupId,\n  subscription,\n  index,\n  isPending\n}) => {\n  const {\n    isActive,\n    isBefore,\n    isAfter,\n    startDate,\n    endDate\n  } = useCouponScheduleContext();\n  const theme = useTheme();\n  const eventKeys = splitToStringArray(subscription.eventKeys);\n  const renderHeadlineAction = () => {\n    if (isActive && endDate) {\n      return /* @__PURE__ */ jsx(Countdown, { targetDateString: format(endDate, \"yyyy-MM-dd\"), targetTimeString: format(endDate, \"HH:mm:ss\"), dateDisplayFormat: \"D일\", timeDisplayFormat: \"H시간 m분 s초\", fontSize: 15, color: countdownColorByTheme[theme], style: {\n        ...typography(15, 500)\n      } });\n    }\n    if (isBefore) {\n      return subscription.visible ? /* @__PURE__ */ jsx(SubscriptionButton, { activeColor: subscription.activeColor, sectionKey: `${brandSaleGroupId}`, eventKey: eventKeys[index] ?? \"\", restEventKeys: restOf(eventKeys, index) }) : null;\n    }\n    return null;\n  };\n  const renderHeadlineTitle = () => {\n    if (isActive) {\n      return \"종료까지 남은 시간\";\n    }\n    if (isBefore && startDate) {\n      return formatScheduleTime(startDate, \"오픈\");\n    }\n    if (isAfter) {\n      return \"종료된 이벤트\";\n    }\n    return \"\";\n  };\n  return /* @__PURE__ */ jsxs(Fragment, { children: [\n    /* @__PURE__ */ jsx(Headline.Root, { priority: \"secondary\", style: {\n      paddingTop: 0\n    }, children: /* @__PURE__ */ jsxs(Headline.Content, { contentStyle: {\n      minHeight: \"unset\"\n    }, style: {\n      paddingTop: 18,\n      paddingBottom: 16\n    }, children: [\n      /* @__PURE__ */ jsx(Headline.Body, { style: headlineTitleStyle, children: /* @__PURE__ */ jsx(Headline.Title, { children: isPending ? /* @__PURE__ */ jsx(Skeleton, { style: {\n        ...headlineTitleSkeletonStyle,\n        ...skeletonStyleByTheme[theme]\n      } }) : renderHeadlineTitle() }) }),\n      /* @__PURE__ */ jsx(Headline.Action, { style: {\n        color: \"#FFFFFF\"\n      }, children: isPending ? /* @__PURE__ */ jsx(Skeleton, { style: {\n        ...headlineTitleSkeletonStyle,\n        ...skeletonStyleByTheme[theme]\n      } }) : renderHeadlineAction() })\n    ] }) }),\n    /* @__PURE__ */ jsx(SectionDivider, { style: {\n      marginBottom: 16\n    } })\n  ] });\n};\nconst headlineTitleStyle = {\n  display: \"flex\",\n  alignItems: \"center\",\n  justifyContent: \"center\"\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};\nconst countdownColorByTheme = {\n  light: \"#FF4800\",\n  dark: \"#D53E00\"\n};\nexport {\n  BrandProfilesHeadline\n};\n","const TARGET_FRAGMENT = \"#brandlookbookcollection\";\nconst COUPON_COLLECTION_SORT_TYPE = {\n  BEST: \"BEST\",\n  // 추천순\n  NEW: \"NEW\",\n  // 신상품순\n  REVIEW_DESC: \"REVIEW_DESC\",\n  // 리뷰많은순\n  PRICE_DESC: \"PRICE_DESC\",\n  // 높은가격순\n  PRICE_ASC: \"PRICE_ASC\",\n  // 낮은가격순\n  DISCOUNT_DESC: \"DISCOUNT_DESC\",\n  // 높은 할인순\n  LIKE_DESC: \"LIKE_DESC\",\n  // 좋아요 많은순\n  ORDER_DESC: \"ORDER_DESC\"\n  // 판매순\n};\nconst COUPON_COLLECTION_SORT_LABELS = {\n  [COUPON_COLLECTION_SORT_TYPE.BEST]: \"추천순\",\n  [COUPON_COLLECTION_SORT_TYPE.NEW]: \"신상품순\",\n  [COUPON_COLLECTION_SORT_TYPE.REVIEW_DESC]: \"리뷰많은순\",\n  [COUPON_COLLECTION_SORT_TYPE.PRICE_DESC]: \"높은가격순\",\n  [COUPON_COLLECTION_SORT_TYPE.PRICE_ASC]: \"낮은가격순\",\n  [COUPON_COLLECTION_SORT_TYPE.DISCOUNT_DESC]: \"높은 할인순\",\n  [COUPON_COLLECTION_SORT_TYPE.LIKE_DESC]: \"좋아요 많은순\",\n  [COUPON_COLLECTION_SORT_TYPE.ORDER_DESC]: \"판매순\"\n};\nexport {\n  COUPON_COLLECTION_SORT_LABELS,\n  COUPON_COLLECTION_SORT_TYPE,\n  TARGET_FRAGMENT\n};\n","import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { CalendarTags } from \"./CalendarTags/CalendarTags.js\";\nimport { Brand } from \"./Brand/Brand.js\";\nimport { BrandProfiles } from \"./BrandProfiles/BrandProfiles.js\";\nimport { BrandScheduleProvider } from \"./provider/BrandScheduleProvider/BrandScheduleProvider.js\";\nimport { SECTION_CONTROLS } from \"../../../../libs/property-controls/section.js\";\nimport { Headline } from \"../../Headline/Headline.js\";\nimport { COUPON_CONTROLS, COUPON_THEME_CONTROLS, toBackgroundColor, resolveCouponTheme, resolveCouponLayout } from \"../../../../libs/property-controls/coupon.js\";\nimport { SUBSCRIPTION_CONTROLS } from \"../../../../libs/property-controls/subscription.js\";\nimport { BrandProfilesHeadline } from \"./BrandProfilesHeadline/BrandProfilesHeadline.js\";\nimport { SectionLayout } from \"../SectionLayout/SectionLayout.js\";\nimport { useTrackSnowplowEvent } from \"../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { Intersection } from \"../../../@shared/Intersection/Intersection.js\";\nimport \"react-dom\";\nimport \"../../../@shared/Icon/Icon.js\";\nimport { SWRErrorBoundary } from \"../../../@shared/SWRErrorBoundary/SWRErrorBoundary.js\";\nimport { NoContent } from \"../NoContent/NoContent.js\";\nimport { COUPON_COLLECTION_SORT_TYPE, COUPON_COLLECTION_SORT_LABELS, TARGET_FRAGMENT } from \"./BrandLookbookCollection.types.js\";\nimport { GENDER_CONTROLS } from \"../../../../libs/property-controls/gender.js\";\nimport { Gender } from \"../../../@shared/Gender/Gender.js\";\nimport { Breakpoint } from \"../../../../styles/breakpoint.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport { getQueryParams } from \"../../../../utils/location.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport \"react\";\nimport { isClient } from \"../../../../utils/context.js\";\nconst BrandLookbookCollection = ({\n  brandSaleGroupId,\n  gender,\n  componentId,\n  headline,\n  theme,\n  breakpoint,\n  backgroundColor,\n  couponLayout,\n  couponTheme,\n  subscription,\n  scheduleTag,\n  layout,\n  sort = COUPON_COLLECTION_SORT_TYPE.NEW\n}) => {\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const resolvedCouponLayout = resolveCouponLayout(couponLayout, breakpoint);\n  const query = getQueryParams();\n  const hash = isClient() ? window.location.hash : \"\";\n  const isTargetFragment = hash === TARGET_FRAGMENT;\n  const queryBrandSaleId = isTargetFragment ? query.brandSaleId : void 0;\n  const queryBrandSaleCouponId = isTargetFragment ? query.brandSaleCouponId : void 0;\n  const handleView = () => {\n    trackSnowplowEvent(\"view_content\", {\n      source: componentId || null\n    });\n  };\n  return /* @__PURE__ */ jsx(Intersection, { onView: handleView, children: /* @__PURE__ */ jsx(Gender, { gender, children: /* @__PURE__ */ jsxs(SectionLayout, { theme, breakpoint, componentId, children: [\n    /* @__PURE__ */ jsx(Headline, { ...headline, priority: \"primary\" }),\n    /* @__PURE__ */ jsx(SWRErrorBoundary, { fallback: (retry) => /* @__PURE__ */ jsx(NoContent, { onClick: retry }), children: /* @__PURE__ */ jsx(CalendarTags, { brandSaleGroupId, scheduleTag, queryBrandSaleId, children: ({\n      brandSaleId,\n      startDate,\n      endDate,\n      index,\n      pending\n    }) => /* @__PURE__ */ jsxs(BrandScheduleProvider, { startDate, endDate, children: [\n      /* @__PURE__ */ jsx(BrandProfilesHeadline, { isPending: pending, brandSaleGroupId, subscription, index }),\n      /* @__PURE__ */ jsx(BrandProfiles, { brandSaleId, couponColor: toBackgroundColor(backgroundColor), couponLayout: resolvedCouponLayout, couponTheme: resolveCouponTheme(couponTheme), queryBrandSaleCouponId, children: (couponCollectionId, frontBrand, lookbook) => /* @__PURE__ */ jsx(Brand, { couponCollectionId, frontBrand, lookbook, layout, sort }) })\n    ] }) }) })\n  ] }) }) });\n};\naddPropertyControls(BrandLookbookCollection, {\n  ...SECTION_CONTROLS,\n  ...GENDER_CONTROLS,\n  ...COUPON_CONTROLS,\n  ...COUPON_THEME_CONTROLS,\n  brandSaleGroupId: {\n    type: ControlType.String,\n    title: \"브랜드 세일 그룹 ID\"\n  },\n  ...SUBSCRIPTION_CONTROLS,\n  scheduleTag: {\n    type: ControlType.Object,\n    title: \"스케줄 태그\",\n    controls: {\n      visible: {\n        type: ControlType.Boolean,\n        title: \"노출 여부\",\n        defaultValue: true\n      },\n      color: {\n        type: ControlType.Color,\n        title: \"색상\",\n        defaultValue: \"#000\"\n      },\n      href: {\n        type: ControlType.Link,\n        title: \"URL\"\n      }\n    }\n  },\n  layout: {\n    hidden: ({\n      breakpoint\n    }) => breakpoint !== Breakpoint.MOBILE,\n    type: ControlType.Object,\n    title: \"레이아웃\",\n    controls: {\n      columnDisplayCount: {\n        type: ControlType.Number,\n        title: \"노출 열 개수\",\n        unit: \"개\",\n        description: \"뷰포트에 노출될 열 개수를 설정할 수 있습니다.\",\n        defaultValue: 1,\n        min: 1,\n        max: 2\n      }\n    }\n  },\n  sort: {\n    type: ControlType.Enum,\n    title: \"상품 정렬\",\n    description: \"쿠폰 컬렉션 상품 목록의 정렬 기준을 설정합니다.\",\n    options: Object.values(COUPON_COLLECTION_SORT_TYPE),\n    optionTitles: Object.values(COUPON_COLLECTION_SORT_TYPE).map((sortType) => COUPON_COLLECTION_SORT_LABELS[sortType]),\n    defaultValue: COUPON_COLLECTION_SORT_TYPE.NEW\n  }\n});\nexport {\n  BrandLookbookCollection\n};\n","/** local */// import { BrandLookbookCollection } from \"https://localhost:4173/components/systems/curations/BrandLookbookCollection/BrandLookbookCollection.js\"\n/** dev */// import { BrandLookbookCollection } from \"https://asset.29cm.co.kr/contents/framer/dev/components/systems/curations/BrandLookbookCollection/BrandLookbookCollection.js\"\n/** production */import{BrandLookbookCollection}from\"https://asset.29cm.co.kr/contents/framer/components/systems/curations/BrandLookbookCollection/BrandLookbookCollection.js\";BrandLookbookCollection.displayName=\"[완성형]BrandLookbookCollection\";/**\n * @framerDisableUnlink\n */export default BrandLookbookCollection;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BrandLookbookCollection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BrandLookbookCollection.map"],"mappings":"yiEAA6E,KACtB,KACgB,KACqB,KACN,KACQ,CACxF,GAAsB,GACtB,GAA4B,GAAkB,CAClD,IAAM,EAAM,IAAsB,CAC5B,EAAe,EAAc,WAAW,EAAW,IAAU,CAEjE,IAAM,EADe,EAAc,EAAQ,KACV,IAAK,GAChC,EAAQ,IAAI,KAAK,EAAU,eAAe,CAC1C,EAAM,IAAI,KAAK,EAAU,aAAa,CACtC,EAAW,GAAW,GAAiB,EAAK,CAChD,QACA,MACD,CAAC,CACIA,EAAS,CAAC,GAAW,GAAQ,EAAK,EAAM,CAC9C,OAAO,GAAYA,GACnB,CACF,OAAO,IAAiB,GAAK,IAAK,GAAI,GAElC,IAAsB,CAC1B,iBACA,kBACI,CACJ,IAAM,EAAiB,GAAO,EAAgB,aAAc,CAC1D,OAAQ,GACT,CAAC,CAQF,OAPK,GAGQ,EAAkB,EAAc,EAAe,CACjD,GACF,GAAG,EAAe,KAEpB,wBCrCwF,KACrC,KACsC,CAC5F,GAAqB,GAAqB,CAC9C,GAAM,CACJ,YACE,IAAwB,CACtB,CACJ,YACA,QACA,QACE,GAAuB,EAAkB,EAAS,CAEhD,EAAY,GADD,IAAU,IAAK,GAE1B,EAAiB,GAA6B,KAAK,eAAkB,EAAE,CAE7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