{"version":3,"file":"ProductCollection.CknDMoPc.mjs","names":["Gender","useState","useMemo","Fragment"],"sources":["https:/asset.29cm.co.kr/contents/framer/libs/property-controls/gender.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/Gender/Gender.js","https:/asset.29cm.co.kr/contents/framer/hooks/fetchers/useLazyFetchKeywordCollection.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/KeywordCollectionV2/KeywordCollectionTags/KeywordCollectionTags.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/KeywordCollectionV2/KeywordCollectionButton/KeywordCollectionButton.js","https:/asset.29cm.co.kr/contents/framer/hooks/fetchers/useFetchKeywordCollectionProducts.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/KeywordCollectionV2/KeywordCollectionProducts/KeywordCollectionProducts.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/KeywordCollectionV2/KeywordCollectionV2.js","https:/framerusercontent.com/modules/KCdMQ7OKXvHZV8auT4OZ/y5pgQ2ZMYPeWuaekSnmP/ProductCollection.js"],"sourcesContent":["import { ControlType } from \"framer\";\nvar Gender = /* @__PURE__ */ ((Gender2) => {\n  Gender2[\"ALL\"] = \"A\";\n  Gender2[\"FEMALE\"] = \"F\";\n  Gender2[\"MALE\"] = \"M\";\n  return Gender2;\n})(Gender || {});\nconst GENDER_CONTROLS = {\n  gender: {\n    type: ControlType.Enum,\n    title: \"성별 타겟팅\",\n    options: [\n      \"A\",\n      \"F\",\n      \"M\"\n      /* MALE */\n    ],\n    optionTitles: [\"전체\", \"여성\", \"남성\"],\n    displaySegmentedControl: true\n  }\n};\nexport {\n  GENDER_CONTROLS,\n  Gender\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { useState, useLayoutEffect } from \"react\";\nimport \"../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport { useCurrentUser } from \"../../../hooks/useCurrentUser.js\";\nimport { isCanvas } from \"../../../utils/framer/isCanvas.js\";\nimport \"framer\";\nimport \"../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../config/index.js\";\nimport \"../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../apis/preuser/PreuserApiService.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 \"../providers/ThemeProvider/ThemeProvider.js\";\nimport \"../providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../systems/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 { Gender as Gender$1 } from \"../../../libs/property-controls/gender.js\";\nconst Gender = ({\n  children,\n  gender\n}) => {\n  const user = useCurrentUser();\n  const [userGender, setUserGender] = useState(null);\n  useLayoutEffect(() => {\n    addStyle();\n  }, []);\n  useLayoutEffect(() => {\n    setUserGender(user.gender);\n  }, [user]);\n  if (isCanvas() || gender === Gender$1.ALL) {\n    return children;\n  }\n  return /* @__PURE__ */ jsx(\"div\", { \"data-gender\": userGender ?? \"F\", \"data-target\": gender, children });\n};\nconst STYLE_ID = \"gender-targeting-styles\";\nconst addStyle = () => {\n  let styleTag = document.getElementById(STYLE_ID);\n  if (!styleTag) {\n    styleTag = document.createElement(\"style\");\n    styleTag.id = STYLE_ID;\n    styleTag.type = \"text/css\";\n    styleTag.innerHTML = `\n      [data-gender='F'][data-target='M'] {\n        display: none;\n      }\n      [data-gender='M'][data-target='F'] {\n        display: none;\n      }\n    `;\n    document.head.appendChild(styleTag);\n  }\n};\nexport {\n  Gender\n};\n","import { keywordCollectionApi } from \"../../apis/keyword-collections/KeywordCollectionApiService.js\";\nimport { useLazySWR } from \"../swr/useLazySWR.js\";\nconst KEYWORD_COLLECTION_FETCHER_KEY = \"keyword-collection-v2\";\nconst useLazyFetchKeywordCollection = (collectionId) => {\n  const enabled = Boolean(collectionId);\n  const {\n    data,\n    isLoading,\n    error,\n    fetch\n  } = useLazySWR(enabled ? [KEYWORD_COLLECTION_FETCHER_KEY, collectionId] : null, () => keywordCollectionApi.getKeywordCollection(collectionId));\n  const hasError = error !== void 0;\n  const isPending = isLoading || hasError || !enabled;\n  return {\n    collection: data == null ? void 0 : data.data,\n    isPending,\n    fetch\n  };\n};\nexport {\n  useLazyFetchKeywordCollection\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { Tags } from \"../../Tags/index.js\";\nimport { useCollectionProductGroupList } from \"../../../KeywordCollection/KeywordCollectionTags/KeywordCollectionTags.hooks.js\";\nimport { useTrackSnowplowEvent } from \"../../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { useComponentId } from \"../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../EventTrackingProvider/EventTrackingProvider.js\";\nconst KeywordCollectionTags = ({\n  pending,\n  productGroups,\n  children\n}) => {\n  const componentId = useComponentId();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const {\n    collectionProductGroupList: list,\n    currentIndex\n  } = useCollectionProductGroupList(productGroups);\n  const handleClickTag = (title, index) => {\n    if (!title) {\n      return;\n    }\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId,\n      section_title: componentId,\n      position: -1,\n      button_id: \"tag\",\n      button_name: title,\n      layout_position: index + 1\n    });\n  };\n  return /* @__PURE__ */ jsxs(Tags.Root, { defaultValue: 0, value: currentIndex, loading: pending, children: [\n    /* @__PURE__ */ jsx(Tags.List, { list, children: ({\n      item: {\n        title\n      } = {},\n      index\n    }) => /* @__PURE__ */ jsx(Tags.Item, { value: index, onClick: () => handleClickTag(title, index), children: title }) }),\n    /* @__PURE__ */ jsx(Tags.Panels, { list, children: (props) => /* @__PURE__ */ jsx(Tags.Panel, { value: props.index, children: children(props) }) })\n  ] });\n};\nexport {\n  KeywordCollectionTags\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { Button as Default } from \"../../../../@shared/Button/Button.js\";\nimport { env } from \"../../../../../config/index.js\";\nimport { useNavigatePage } from \"../../../../../hooks/useNavigatePage.js\";\nimport { TextButton as Default$1 } from \"../../../../@shared/TextButton/TextButton.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 \"../../../../../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 { createContentEventProperties } from \"../../../../../utils/event-properties/content.js\";\nimport \"../../../../../utils/event-properties/source.js\";\nimport { createSearchParams } from \"../../../../../utils/createSearchParams.js\";\nimport { useTrackSnowplowEvent } from \"../../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { useEventTrackingContext } from \"../../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport { EventTrigger } from \"../../../../@shared/EventTrigger/index.js\";\nimport { PREVIOUS_SECTION_NAME_QUERY_STRING_KEY, PREVIOUS_SECTION_TITLE_QUERY_STRING_KEY, PREVIOUS_PAGE_NAME_QUERY_STRING_KEY, PREVIOUS_CONTENT_NO_QUERY_STRING_KEY } from \"../../../../../constants/query-params.js\";\nconst KeywordCollectionButton = ({\n  type = \"button\",\n  collectionId,\n  productGroupId,\n  sectionTitle,\n  children\n}) => {\n  const theme = useTheme();\n  const {\n    componentId\n  } = useEventTrackingContext();\n  const {\n    curr_screen,\n    content_no\n  } = createContentEventProperties();\n  const params = createSearchParams({\n    product_group: `${productGroupId ?? \"\"}`,\n    [PREVIOUS_SECTION_NAME_QUERY_STRING_KEY]: componentId,\n    [PREVIOUS_SECTION_TITLE_QUERY_STRING_KEY]: sectionTitle,\n    [PREVIOUS_PAGE_NAME_QUERY_STRING_KEY]: curr_screen,\n    [PREVIOUS_CONTENT_NO_QUERY_STRING_KEY]: content_no\n  });\n  const collectionUrl = `${env.workspace.content}/collection/${collectionId}?${params}`;\n  const navigateCollectionPage = useNavigatePage(collectionUrl, {\n    webview: {\n      home: true\n    }\n  });\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const handleClick = () => {\n    trackSnowplowEvent(\"click_button\", {\n      // TODO(한지원): section_name, position, layout_position 프로퍼티에 할당한 약속된 임의 값 수정\n      section_name: componentId,\n      section_title: componentId,\n      position: -1,\n      layout_position: -1,\n      button_id: \"more\",\n      button_name: \"전체보기\"\n    });\n    navigateCollectionPage();\n  };\n  if (type === \"button\") {\n    return /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: handleClick, children: /* @__PURE__ */ jsx(Default, { variant: \"custom\", size: \"xSmall\", backgroundColor: buttonColorByTheme[theme].backgroundColor, color: buttonColorByTheme[theme].color, postfixIcon: \"chevronRight\", children }) });\n  }\n  return /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: handleClick, children: /* @__PURE__ */ jsx(Default$1, { style: {\n    opacity: 0.6\n  }, variant: \"primary\", size: \"xSmall\", theme, postfixIcon: \"chevronRight\", children }) });\n};\nconst buttonColorByTheme = {\n  light: {\n    backgroundColor: \"#000000\",\n    color: \"#ffffff\"\n  },\n  dark: {\n    backgroundColor: \"#303033\",\n    color: \"#ffffff\"\n  }\n};\nexport {\n  KeywordCollectionButton\n};\n","import last from \"../../node_modules/lodash-es/last.js\";\nimport { useMemo } from \"react\";\nimport useSWRInfinite from \"../../node_modules/swr/infinite/dist/index.js\";\nimport { keywordCollectionApi } from \"../../apis/keyword-collections/KeywordCollectionApiService.js\";\nconst DEFAULT_SIZE = 20;\nconst DEFAULT_MAX_COUNT = 60;\nconst getKey = ({\n  collectionId,\n  productGroupId,\n  sort,\n  size = DEFAULT_SIZE,\n  enabled\n}) => (pageIndex, previousPageData) => {\n  if (enabled === false) {\n    return null;\n  }\n  const isValid = !Number.isNaN(collectionId) && productGroupId !== void 0 && sort !== void 0;\n  if (!isValid || (previousPageData == null ? void 0 : previousPageData.hasNext) === false) {\n    return null;\n  }\n  return {\n    collectionId,\n    productGroupId,\n    sort,\n    page: pageIndex,\n    size\n  };\n};\nconst fetcher = (params) => {\n  return keywordCollectionApi.getCollectionProducts(params);\n};\nconst useFetchKeywordCollectionProducts = (params) => {\n  const {\n    data,\n    isLoading,\n    error,\n    size,\n    isValidating,\n    setSize,\n    mutate\n  } = useSWRInfinite(getKey(params), fetcher, {\n    keepPreviousData: true,\n    revalidateFirstPage: false\n  });\n  const hasError = error !== void 0;\n  const isPending = isLoading || isValidating || hasError || !params.enabled;\n  const products = useMemo(() => {\n    return (data == null ? void 0 : data.flatMap(({\n      resultList\n    }) => resultList)) ?? [];\n  }, [data]);\n  const hasNext = useMemo(() => {\n    const prevData = last(data);\n    return products.length < (params.maxCount ?? DEFAULT_MAX_COUNT) && (prevData == null ? void 0 : prevData.hasNext);\n  }, [data, params.maxCount, products.length]);\n  return {\n    products,\n    isPending,\n    size,\n    setSize,\n    hasNext,\n    mutate\n  };\n};\nexport {\n  useFetchKeywordCollectionProducts\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { useFetchKeywordCollectionProducts } from \"../../../../../hooks/fetchers/useFetchKeywordCollectionProducts.js\";\nimport { Products } from \"../../Products/index.js\";\nimport { CARD_HORIZONTAL_AUTO } from \"../../Products/Root.constants.js\";\nconst KeywordCollectionProducts = ({\n  componentName,\n  collectionId,\n  productGroupId,\n  sort,\n  pending\n}) => {\n  const {\n    products,\n    isPending,\n    hasNext,\n    setSize\n  } = useFetchKeywordCollectionProducts({\n    enabled: pending !== true,\n    collectionId: Number(collectionId),\n    productGroupId,\n    sort\n  });\n  const onLastItemView = () => {\n    setSize((prev) => prev + 1);\n  };\n  const loading = pending || isPending;\n  return /* @__PURE__ */ jsx(Products.Root, { products, loading, options: CARD_HORIZONTAL_AUTO, hasNext, onLastItemView, children: ({\n    index\n  }) => {\n    return /* @__PURE__ */ jsx(Products.Card, { index, componentName });\n  } });\n};\nexport {\n  KeywordCollectionProducts\n};\n","import { jsx, jsxs, Fragment } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { useEffect } from \"react\";\nimport { Gender } from \"../../../@shared/Gender/Gender.js\";\nimport { Headline } from \"../../Headline/Headline.js\";\nimport { useLazyFetchKeywordCollection } from \"../../../../hooks/fetchers/useLazyFetchKeywordCollection.js\";\nimport { KeywordCollectionTags } from \"./KeywordCollectionTags/KeywordCollectionTags.js\";\nimport { KeywordCollectionButton } from \"./KeywordCollectionButton/KeywordCollectionButton.js\";\nimport { KeywordCollectionProducts } from \"./KeywordCollectionProducts/KeywordCollectionProducts.js\";\nimport { SECTION_CONTROLS } from \"../../../../libs/property-controls/section.js\";\nimport { GENDER_CONTROLS } from \"../../../../libs/property-controls/gender.js\";\nimport { SectionLayout } from \"../SectionLayout/SectionLayout.js\";\nimport \"../IntersectionProvider/IntersectionProvider.js\";\nimport { useIntersectionContext } from \"../IntersectionProvider/IntersectionProvider.hooks.js\";\nimport { useComponentId } from \"../EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../EventTrackingProvider/EventTrackingProvider.js\";\nimport { SWRErrorBoundary } from \"../../../@shared/SWRErrorBoundary/SWRErrorBoundary.js\";\nimport { NoContent } from \"../NoContent/NoContent.js\";\nconst KeywordCollectionV2Inner = ({\n  headline,\n  collectionId\n}) => {\n  const {\n    isInView\n  } = useIntersectionContext();\n  const componentId = useComponentId();\n  const {\n    collection,\n    fetch,\n    isPending\n  } = useLazyFetchKeywordCollection(Number(collectionId.trim()));\n  useEffect(() => {\n    if (isInView) {\n      fetch();\n    }\n  }, [fetch, isInView]);\n  const {\n    productGroups = []\n  } = collection ?? {};\n  const hasContent = Boolean(headline.title) || Boolean(headline.description);\n  const headlineProps = {\n    ...headline,\n    title: headline.title || (collection == null ? void 0 : collection.title) || \"\",\n    description: headline.description || (collection == null ? void 0 : collection.description) || \"\"\n  };\n  return /* @__PURE__ */ jsxs(Fragment, { children: [\n    /* @__PURE__ */ jsx(Headline, { ...headlineProps, priority: \"primary\", action: /* @__PURE__ */ jsx(KeywordCollectionButton, { collectionId, sectionTitle: headlineProps.title, children: \"전체보기\" }), loading: !hasContent && isPending }),\n    /* @__PURE__ */ jsx(KeywordCollectionTags, { productGroups, pending: isPending, children: ({\n      item,\n      pending\n    }) => /* @__PURE__ */ jsx(KeywordCollectionProducts, { collectionId, productGroupId: item == null ? void 0 : item.productGroupId, sort: item == null ? void 0 : item.sort, pending, componentName: componentId }) })\n  ] });\n};\nconst KeywordCollectionV2 = ({\n  breakpoint,\n  theme,\n  componentId,\n  gender,\n  headline,\n  ...rest\n}) => {\n  const hasContent = Boolean(headline.title) || Boolean(headline.description);\n  return /* @__PURE__ */ jsx(Gender, { gender, children: /* @__PURE__ */ jsx(SectionLayout, { theme, breakpoint, componentId, children: /* @__PURE__ */ jsx(SWRErrorBoundary, { fallback: (retry) => /* @__PURE__ */ jsxs(Fragment, { children: [\n    hasContent && /* @__PURE__ */ jsx(Headline, { ...headline, priority: \"primary\", action: /* @__PURE__ */ jsx(KeywordCollectionButton, { collectionId: rest.collectionId, sectionTitle: headline.title, children: \"전체보기\" }) }),\n    /* @__PURE__ */ jsx(NoContent, { onClick: retry })\n  ] }), children: /* @__PURE__ */ jsx(KeywordCollectionV2Inner, { ...rest, headline }) }) }) });\n};\naddPropertyControls(KeywordCollectionV2, {\n  ...SECTION_CONTROLS,\n  ...GENDER_CONTROLS,\n  collectionId: {\n    type: ControlType.String,\n    title: \"컬렉션 아이디\",\n    placeholder: \"1152\"\n  },\n  componentId: {\n    type: ControlType.String,\n    title: \"컴포넌트 ID\",\n    description: \"이벤트 수집 시에 상품 모듈을 구분하기 위한 값\\nex. 29welcoming\",\n    defaultValue: \"\"\n  }\n});\nexport {\n  KeywordCollectionV2\n};\n","/** local */// import { KeywordCollectionV2 } from \"https://localhost:4173/components/systems/curations/KeywordCollectionV2/KeywordCollectionV2.js\"\n/** dev */// import { KeywordCollectionV2 } from \"https://asset.29cm.co.kr/contents/framer/dev/components/systems/curations/KeywordCollectionV2/KeywordCollectionV2.js\"\n/** production */import{KeywordCollectionV2}from\"https://asset.29cm.co.kr/contents/framer/components/systems/curations/KeywordCollectionV2/KeywordCollectionV2.js\";KeywordCollectionV2.displayName=\"[curation]TaggedProducts\";/**\n * @framerDisableUnlink\n */export default KeywordCollectionV2;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"KeywordCollectionV2\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProductCollection.map"],"mappings":"urCAAqC,CACjCA,GAA2B,IAC7B,EAAQ,IAAS,IACjB,EAAQ,OAAY,IACpB,EAAQ,KAAU,IACX,IACNA,GAAU,EAAE,CAAC,CACV,EAAkB,CACtB,OAAQ,CACN,KAAM,EAAY,KAClB,MAAO,SACP,QAAS,CACP,IACA,IACA,IAED,CACD,aAAc,CAAC,KAAM,KAAM,KAAK,CAChC,wBAAyB,GAC1B,CACF,wBCpBuC,IACU,KAC2B,IACX,KACA,KACL,IAC7C,KACwD,IAClB,IACc,IAClC,IACmD,IAC1B,KACP,IACM,IACF,IACF,IACc,IAChB,KACC,IACU,IACG,IAC/C,IACgC,IAC5B,IACiD,IAC/B,IACU,IAC4B,CACzE,GAAU,CACd,WACA,YACI,CACJ,IAAM,EAAO,IAAgB,CACvB,CAAC,EAAY,GAAiBC,EAAS,KAAK,CAUlD,OATA,MAAsB,CACpB,GAAU,EACT,EAAE,CAAC,CACN,MAAsB,CACpB,EAAc,EAAK,OAAO,EACzB,CAAC,EAAK,CAAC,CACN,IAAU,EAAI,IAAW,EAAS,IAC7B,EAEc,EAAI,MAAO,CAAE,cAAe,GAAc,IAAK,cAAe,EAAQ,WAAU,CAAC,EAEpG,EAAW,0BACX,MAAiB,CACrB,IAAI,EAAW,SAAS,eAAe,EAAS,CAC3C,IACH,EAAW,SAAS,cAAc,QAAQ,CAC1C,EAAS,GAAK,EACd,EAAS,KAAO,WAChB,EAAS,UAAY;;;;;;;MAQrB,SAAS,KAAK,YAAY,EAAS,0BC7D8D,KACnD,CAC5C,GAAiC,wBACjC,EAAiC,GAAiB,CACtD,IAAM,EAAU,EAAQ,EAClB,CACJ,OACA,YACA,QACA,SACE,GAAW,EAAU,CAAC,GAAgC,EAAa,CAAG,SAAY,EAAqB,qBAAqB,EAAa,CAAC,CAExI,EAAY,GADD,IAAU,IAAK,IACW,CAAC,EAC5C,MAAO,CACL,WAAY,GAA6B,K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