{
  "version": 3,
  "sources": ["ssg:https://asset.29cm.co.kr/contents/framer/libs/property-controls/coupon.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/Coupon/Root.constants.js", "ssg:https://asset.29cm.co.kr/contents/framer/utils/object.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/Coupon/Root.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/Coupon/Root.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/Coupon/Description.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/Coupon/Divider.js", "ssg:https://asset.29cm.co.kr/contents/framer/utils/playHaptic.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/Coupon/Button.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/Coupon/Summary.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/Coupon/Title.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/Coupon/index.js", "ssg:https://asset.29cm.co.kr/contents/framer/utils/error/error.js", "ssg:https://asset.29cm.co.kr/contents/framer/node_modules/map-obj/index.js", "ssg:https://asset.29cm.co.kr/contents/framer/node_modules/camelcase/index.js", "ssg:https://asset.29cm.co.kr/contents/framer/node_modules/quick-lru/index.js", "ssg:https://asset.29cm.co.kr/contents/framer/node_modules/camelcase-keys/index.js", "ssg:https://asset.29cm.co.kr/contents/framer/apis/coupon/CouponApiService.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/fetchers/useFetchDownloadableCouponSummaries.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/mutations/useDownloadCouponsMutation.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/canvas/CouponDownloadCTA/CouponDownloadCTA.constants.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/mutations/useDownloadRandomCouponMutation.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/useDownloadCoupons.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/RandomDiscountValue/RandomDiscountValue.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/CouponElement/CouponElement.utils.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/CouponElement/CouponElement.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/CouponModule.utils.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/CouponModule.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/FoldableList/Root.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/FoldableList/Root.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/FoldableList/Content.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/FoldableList/Content.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/FoldableList/Root.constants.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/FoldableList/Item.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/FoldableList/Trigger.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/FoldableList/index.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/NoticesElement/NoticesElement.utils.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/NoticesElement/NoticesElement.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/useInViewport.js", "ssg:https://asset.29cm.co.kr/contents/framer/utils/react/mergeRefs.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/EventTrigger/Root.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/EventTrigger/Root.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/EventTrigger/Target.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/EventTrigger/index.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/CouponElement/CouponElement.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/LinkedCouponModule/LinkedCouponModule.js", "ssg:https://asset.29cm.co.kr/contents/framer/libs/property-controls/coupon-notices.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/CouponModule.controls.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/CouponModule.js", "ssg:https://framerusercontent.com/modules/v2w1uRsZPJslVNIRLCeW/cDblINI0HGV04yCjN6VP/CouponModule.js"],
  "sourcesContent": ["import { ControlType } from \"framer\";\nvar CouponColorType = /* @__PURE__ */ ((CouponColorType2) => {\n  CouponColorType2[\"DEFAULT\"] = \"default\";\n  CouponColorType2[\"SOLID\"] = \"solid\";\n  CouponColorType2[\"GRADIENT\"] = \"gradient\";\n  return CouponColorType2;\n})(CouponColorType || {});\nconst COUPON_CONTROLS = {\n  backgroundColor: {\n    type: ControlType.Object,\n    title: \"\uCFE0\uD3F0 \uBC30\uACBD\uC0C9\",\n    controls: {\n      colorType: {\n        type: ControlType.Enum,\n        title: \"\uC720\uD615\",\n        optionTitles: [\"\uAE30\uBCF8\", \"\uB2E8\uC0C9\", \"\uADF8\uB77C\uB514\uC5B8\uD2B8\"],\n        options: [\n          \"default\",\n          \"solid\",\n          \"gradient\"\n          /* GRADIENT */\n        ]\n      },\n      color: {\n        type: ControlType.Color,\n        title: \"\uB2E8\uC0C9\",\n        optional: true,\n        hidden: ({\n          colorType\n        }) => colorType !== \"solid\"\n        /* SOLID */\n      },\n      gradient: {\n        type: ControlType.Object,\n        title: \"\uADF8\uB77C\uB514\uC5B8\uD2B8\",\n        controls: {\n          stops: {\n            type: ControlType.Array,\n            title: \"\uC0C9\uC0C1 \uBC0F \uC815\uC9C0\uC810\uB4E4\",\n            control: {\n              type: ControlType.Object,\n              title: \"\uC0C9\uC0C1 \uBC0F \uC815\uC9C0\uC810\",\n              controls: {\n                color: {\n                  type: ControlType.Color,\n                  title: \"\uC0C9\uC0C1\",\n                  optional: true\n                },\n                offsetPercent: {\n                  type: ControlType.Number,\n                  title: \"\uC815\uC9C0\uC810\",\n                  unit: \"%\",\n                  min: 0,\n                  max: 100,\n                  defaultValue: 0,\n                  step: 1,\n                  displayStepper: true\n                }\n              }\n            }\n          },\n          degree: {\n            type: ControlType.Number,\n            title: \"\uAC01\uB3C4\",\n            unit: \"deg\",\n            defaultValue: 0,\n            step: 1,\n            displayStepper: true\n          }\n        },\n        hidden: ({\n          colorType\n        }) => colorType !== \"gradient\"\n        /* GRADIENT */\n      }\n    }\n  }\n};\nconst toBackgroundColor = (backgroundColor) => {\n  const {\n    colorType,\n    color,\n    gradient\n  } = backgroundColor;\n  const backgroundColorByType = {\n    [\n      \"default\"\n      /* DEFAULT */\n    ]: void 0,\n    [\n      \"solid\"\n      /* SOLID */\n    ]: color,\n    [\n      \"gradient\"\n      /* GRADIENT */\n    ]: gradient\n  };\n  return backgroundColorByType[colorType];\n};\nexport {\n  COUPON_CONTROLS,\n  CouponColorType,\n  toBackgroundColor\n};\n", "const variantByType = {\n  neutral: {\n    background: {\n      light: \"#dee2e6\",\n      dark: \"#27272a\"\n    },\n    primary: {\n      light: \"#000\",\n      dark: \"#fff\"\n    },\n    secondary: {\n      light: \"#474747\",\n      dark: \"#a0a0a0\"\n    },\n    tertiary: {\n      light: \"rgba(0, 0, 0, 0.5)\",\n      dark: \"rgba(255, 255, 255, 0.5)\"\n    },\n    border: \"rgba(255, 255, 255, 0.13)\"\n  },\n  accent: {\n    // NOTE(\uC784\uADDC\uBBFC): \uAE30\uBCF8 key color, \uC678\uBD80\uC5D0\uC11C \uCEE4\uC2A4\uD130\uB9C8\uC774\uC988\uAC00 \uAC00\uB2A5\uD55C \uAC12\uC785\uB2C8\uB2E4.\n    background: {\n      light: \"#ff4800\",\n      dark: \"#ff4800\"\n    },\n    primary: {\n      light: \"#000\",\n      dark: \"#fff\"\n    },\n    secondary: {\n      light: \"#000\",\n      dark: \"#fff\"\n    },\n    tertiary: {\n      light: \"#000\",\n      dark: \"#fff\"\n    },\n    border: \"rgba(255, 255, 255, 0.5)\"\n  },\n  disabled: {\n    background: {\n      light: \"#dee2e6\",\n      dark: \"#27272a\"\n    },\n    primary: {\n      light: \"#474747\",\n      dark: \"#a0a0a0\"\n    },\n    secondary: {\n      light: \"#474747\",\n      dark: \"#a0a0a0\"\n    },\n    tertiary: {\n      light: \"rgba(0, 0, 0, 0.5)\",\n      dark: \"rgba(255, 255, 255, 0.5)\"\n    },\n    border: \"rgba(255, 255, 255, 0.13)\"\n  }\n};\nconst variantByStatus = {\n  upcoming: variantByType.neutral,\n  downloadable: variantByType.accent,\n  downloaded: variantByType.neutral,\n  expired: variantByType.disabled\n};\nexport {\n  variantByStatus,\n  variantByType\n};\n", "const pick = (obj, keys) => {\n  const picked = {};\n  keys.forEach((key) => {\n    picked[key] = obj[key];\n  });\n  return picked;\n};\nconst isObject = (object) => {\n  return typeof object === \"object\" && object !== null && !Array.isArray(object);\n};\nexport {\n  isObject,\n  pick\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef, useCallback } from \"react\";\nimport { variantByStatus } from \"./Root.constants.js\";\nimport { Skeleton } from \"../Skeleton/Skeleton.js\";\nimport { isObject } from \"../../../utils/object.js\";\nconst CouponContext = createContext(null);\nconst Root = forwardRef(({\n  children,\n  style,\n  theme = \"light\",\n  loading = false,\n  status = \"downloadable\",\n  backgroundColor: _backgroundColor,\n  ...rest\n}, ref) => {\n  const variant = variantByStatus[status];\n  const backgroundColor = status === \"downloadable\" ? _backgroundColor ?? variant.background : variant.background;\n  const getBackground = useCallback(() => {\n    if (!isObject(backgroundColor)) {\n      return backgroundColor;\n    }\n    if (\"stops\" in backgroundColor) {\n      return getLinearGradient(backgroundColor);\n    }\n    return backgroundColor[theme];\n  }, [backgroundColor, theme]);\n  return /* @__PURE__ */ jsx(CouponContext.Provider, { value: {\n    status,\n    variant\n  }, children: /* @__PURE__ */ jsx(\"div\", { ref, style: {\n    ...containerStyle,\n    ...style\n  }, ...rest, children: loading ? /* @__PURE__ */ jsx(Skeleton, { style: {\n    ...skeletonStyle,\n    ...skeletonStyleByTheme[theme]\n  } }) : /* @__PURE__ */ jsx(\"div\", { style: {\n    ...wrapperStyle,\n    background: getBackground()\n  }, children }) }) });\n});\nconst getLinearGradient = (linearGradient) => {\n  const {\n    stops,\n    degree\n  } = linearGradient;\n  const gradient = [...stops].sort((x, y) => x.offsetPercent - y.offsetPercent).map((stop) => `${stop.color} ${stop.offsetPercent}%`).join(\", \");\n  return `linear-gradient(${degree}deg, ${gradient})`;\n};\nconst containerStyle = {\n  width: \"100%\"\n};\nconst wrapperStyle = {\n  position: \"relative\",\n  width: \"100%\",\n  height: 76,\n  display: \"flex\",\n  borderRadius: 4,\n  overflow: \"hidden\",\n  WebkitMaskImage: `url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"16\" viewBox=\"0 0 8 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.00022 8C8.00022 12.4183 4.4185 16 0.000218398 16C1.66131e-06 10.4911 0.000218398 5.52413 0.000218398 0C4.4185 0 8.00022 3.58172 8.00022 8Z\" fill=\"white\"/></svg>'), linear-gradient(#fff,#fff)`,\n  maskImage: `url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"16\" viewBox=\"0 0 8 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.00022 8C8.00022 12.4183 4.4185 16 0.000218398 16C1.66131e-06 10.4911 0.000218398 5.52413 0.000218398 0C4.4185 0 8.00022 3.58172 8.00022 8Z\" fill=\"white\"/></svg>'), linear-gradient(#fff,#fff)`,\n  WebkitMaskComposite: \"exclude\",\n  maskComposite: \"exclude\",\n  WebkitMaskPosition: \"0 50%\",\n  maskPosition: \"0 50%\",\n  WebkitMaskSize: \"8px 16px, auto\",\n  maskSize: \"8px 16px, auto\",\n  WebkitMaskRepeat: \"no-repeat\",\n  maskRepeat: \"no-repeat\"\n};\nconst skeletonStyle = {\n  width: \"100%\",\n  height: 76,\n  borderRadius: 4\n};\nconst skeletonStyleByTheme = {\n  light: {\n    backgroundColor: \"#dee2e6\"\n  },\n  dark: {\n    backgroundColor: \"#27272a\"\n  }\n};\nexport {\n  CouponContext,\n  Root\n};\n", "import { useContext } from \"react\";\nimport { CouponContext } from \"./Root.js\";\nconst useCouponContext = () => {\n  const context = useContext(CouponContext);\n  if (!context) {\n    throw new Error(\"useCouponContext should be used with in Root\");\n  }\n  return context;\n};\nexport {\n  useCouponContext\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport \"framer\";\nimport { typography } from \"../../../styles/typography.js\";\nimport { useCouponContext } from \"./Root.hooks.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 \"../../../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 \"../../../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 \"../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\";\nconst Description = forwardRef(({\n  children,\n  style,\n  ...rest\n}, ref) => {\n  const {\n    variant\n  } = useCouponContext();\n  const theme = useTheme();\n  return /* @__PURE__ */ jsx(\"div\", { ref, ...rest, style: {\n    ...typography(12, 400),\n    color: variant.tertiary[theme],\n    ...style\n  }, children });\n});\nexport {\n  Description\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } 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 \"../../../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 \"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 \"../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\";\nconst Divider = forwardRef(({\n  children,\n  style,\n  ...rest\n}, ref) => {\n  const theme = useTheme();\n  return /* @__PURE__ */ jsx(\"div\", { ref, ...rest, style: {\n    ...containerStyle,\n    ...containerStyleByTheme[theme],\n    ...style\n  }, children });\n});\nconst containerStyle = {\n  zIndex: 1,\n  height: \"100%\",\n  borderLeftWidth: \"1px\",\n  borderLeftStyle: \"dashed\",\n  opacity: 0.2\n};\nconst containerStyleByTheme = {\n  light: {\n    borderColor: \"#000\"\n  },\n  dark: {\n    borderColor: \"#fff\"\n  }\n};\nexport {\n  Divider\n};\n", "import { postMessage } from \"./postMessage.js\";\nconst DURATION_BY_INTENSITY = {\n  [\n    \"heavy\"\n    /* HEAVY */\n  ]: 100,\n  [\n    \"medium\"\n    /* MEDIUM */\n  ]: 50,\n  [\n    \"light\"\n    /* LIGHT */\n  ]: 30,\n  [\n    \"soft\"\n    /* SOFT */\n  ]: 20,\n  [\n    \"rigid\"\n    /* RIGID */\n  ]: 5\n};\nconst playHaptic = (intensity) => {\n  postMessage(\"playHaptic\", {\n    type: intensity,\n    duration: DURATION_BY_INTENSITY[intensity]\n  });\n};\nexport {\n  playHaptic\n};\n", "import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { Icon } from \"../Icon/Icon.js\";\nimport \"framer\";\nimport { typography } from \"../../../styles/typography.js\";\nimport { useCouponContext } from \"./Root.hooks.js\";\nimport { playHaptic } from \"../../../utils/playHaptic.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 \"../../../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 \"../../../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 \"../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\";\nconst Button = forwardRef(({\n  style,\n  onClick,\n  ...rest\n}, ref) => {\n  const {\n    variant,\n    status\n  } = useCouponContext();\n  const theme = useTheme();\n  const {\n    icon,\n    text\n  } = contentByStatus[status];\n  const handleClick = (e) => {\n    if (status === \"upcoming\" || status === \"expired\") {\n      return;\n    }\n    playHaptic(\"rigid\");\n    onClick == null ? void 0 : onClick(e);\n  };\n  return /* @__PURE__ */ jsxs(\"div\", { ref, ...rest, style: {\n    ...containerStyle,\n    ...style,\n    ...containerStyleByStatus[status]\n  }, onClick: handleClick, children: [\n    /* @__PURE__ */ jsx(Icon, { type: icon, weight: \"light\", size: 24, color: variant.secondary[theme] }),\n    /* @__PURE__ */ jsx(\"div\", { style: {\n      ...typography(12, 400),\n      color: variant.secondary[theme]\n    }, children: text })\n  ] });\n});\nconst contentByStatus = {\n  upcoming: {\n    icon: \"clock\",\n    text: \"\uBC1C\uD589 \uC608\uC815\"\n  },\n  downloadable: {\n    icon: \"download\",\n    text: \"\uB2E4\uC6B4\uB85C\uB4DC\"\n  },\n  /**\n   * TODO:(\uAE40\uD64D\uB3D9) downloadable API \uAC1C\uC120\uC774 \uC774\uB8E8\uC5B4\uC9C4 \uC774\uD6C4 \uC138\uBD80\uC801\uC778 \uB2E4\uC6B4 \uBD88\uAC00 \uC0AC\uC720\uC5D0 \uB530\uB978 \uC0C1\uD0DC \uCD94\uAC00 \uC791\uC5C5 \uD544\uC694\n   * e.g) \uB2E4\uC6B4\uC744 \uBC1B\uC740 \uD6C4\uC5D4 '\uB2E4\uC6B4 \uC644\uB8CC', \uCFE0\uD3F0 \uC218\uB7C9\uC774 \uC5C6\uB294 \uACBD\uC6B0 '\uC120\uCC29\uC21C \uB9C8\uAC10'\n   */\n  downloaded: {\n    icon: \"close\",\n    text: \"\uB2E4\uC6B4 \uBD88\uAC00\"\n  },\n  expired: {\n    icon: \"close\",\n    text: \"\uB9CC\uB8CC\uB428\"\n  }\n};\nconst containerStyle = {\n  zIndex: 1,\n  aspectRatio: \"1 / 1\",\n  height: \"100%\",\n  display: \"flex\",\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  gap: 4\n};\nconst containerStyleByStatus = {\n  upcoming: {\n    cursor: \"not-allowed\"\n  },\n  downloadable: {\n    cursor: \"pointer\"\n  },\n  downloaded: {\n    cursor: \"pointer\"\n  },\n  expired: {\n    cursor: \"not-allowed\"\n  }\n};\nexport {\n  Button\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nconst Summary = forwardRef(({\n  children,\n  style,\n  ...rest\n}, ref) => {\n  return /* @__PURE__ */ jsx(\"div\", { ref, ...rest, style: {\n    ...containerStyle,\n    ...style\n  }, children });\n});\nconst containerStyle = {\n  zIndex: 1,\n  flex: 1,\n  height: \"100%\",\n  display: \"flex\",\n  flexDirection: \"column\",\n  justifyContent: \"center\",\n  gap: 2,\n  padding: \"0px 8px 0px 26px\"\n};\nexport {\n  Summary\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport \"framer\";\nimport { typography } from \"../../../styles/typography.js\";\nimport { useCouponContext } from \"./Root.hooks.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 \"../../../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 \"../../../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 \"../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\";\nconst Title = forwardRef(({\n  children,\n  style,\n  ...rest\n}, ref) => {\n  const {\n    variant\n  } = useCouponContext();\n  const theme = useTheme();\n  return /* @__PURE__ */ jsx(\"div\", { ref, ...rest, style: {\n    ...typography(15, 700),\n    color: variant.primary[theme],\n    ...style\n  }, children });\n});\nexport {\n  Title\n};\n", "import { Description } from \"./Description.js\";\nimport { Divider } from \"./Divider.js\";\nimport { Root } from \"./Root.js\";\nimport { Button } from \"./Button.js\";\nimport { Summary } from \"./Summary.js\";\nimport { Title } from \"./Title.js\";\nconst Coupon = {\n  Root,\n  Summary,\n  Title,\n  Description,\n  Divider,\n  Button\n};\nexport {\n  Coupon\n};\n", "const parseErrorMessage = (err, fallbackMessage) => {\n  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;\n  const error = err;\n  const errors = error == null ? void 0 : error.errors;\n  if (isArrayErrorDetail(errors == null ? void 0 : errors.detail) && typeof ((_a = errors == null ? void 0 : errors.detail) == null ? void 0 : _a[0]) === \"string\") {\n    return errors.detail[0] || fallbackMessage;\n  }\n  if (isArrayErrorDetail(errors == null ? void 0 : errors.detail) && typeof ((_c = (_b = errors == null ? void 0 : errors.detail) == null ? void 0 : _b[0]) == null ? void 0 : _c.warning) === \"string\") {\n    return errors.detail[0].warning || fallbackMessage;\n  }\n  if (isArrayErrorDetail(errors == null ? void 0 : errors.detail) && typeof ((_f = (_e = (_d = errors == null ? void 0 : errors.detail) == null ? void 0 : _d[0]) == null ? void 0 : _e.warning) == null ? void 0 : _f[0]) === \"string\") {\n    return errors.detail[0].warning[0] || fallbackMessage;\n  }\n  if (isArrayErrorDetail(errors == null ? void 0 : errors.detail) && typeof ((_h = (_g = errors == null ? void 0 : errors.detail) == null ? void 0 : _g[0]) == null ? void 0 : _h.message) === \"string\") {\n    return errors.detail[0].message || fallbackMessage;\n  }\n  if (isArrayErrorDetail(errors == null ? void 0 : errors.detail) && typeof ((_k = (_j = (_i = errors == null ? void 0 : errors.detail) == null ? void 0 : _i[0]) == null ? void 0 : _j.message) == null ? void 0 : _k[0]) === \"string\") {\n    return errors.detail[0].message[0] || fallbackMessage;\n  }\n  if (isErrorDetail(errors == null ? void 0 : errors.detail) && typeof ((_l = errors == null ? void 0 : errors.detail) == null ? void 0 : _l.warning) === \"string\") {\n    return errors.detail.warning || fallbackMessage;\n  }\n  if (isErrorDetail(errors == null ? void 0 : errors.detail) && typeof ((_n = (_m = errors == null ? void 0 : errors.detail) == null ? void 0 : _m.warning) == null ? void 0 : _n[0]) === \"string\") {\n    return errors.detail.warning[0] || fallbackMessage;\n  }\n  if (isErrorDetail(errors == null ? void 0 : errors.detail) && typeof ((_o = errors == null ? void 0 : errors.detail) == null ? void 0 : _o.message) === \"string\") {\n    return errors.detail.message || fallbackMessage;\n  }\n  if (isErrorDetail(errors == null ? void 0 : errors.detail) && typeof ((_q = (_p = errors == null ? void 0 : errors.detail) == null ? void 0 : _p.message) == null ? void 0 : _q[0]) === \"string\") {\n    return errors.detail.message[0] || fallbackMessage;\n  }\n  if (error == null ? void 0 : error.message) {\n    return error.message;\n  }\n  const message = (errors == null ? void 0 : errors.message) ?? fallbackMessage;\n  if (message) {\n    return message;\n  }\n  return \"\";\n};\nconst parseDirectionCode = (err) => {\n  var _a, _b, _c;\n  const error = err;\n  const errors = error == null ? void 0 : error.errors;\n  if (isArrayErrorDetail(errors == null ? void 0 : errors.detail) && errors && Array.isArray((_b = (_a = errors == null ? void 0 : errors.detail) == null ? void 0 : _a[0]) == null ? void 0 : _b.direction_code)) {\n    return errors.detail[0].direction_code;\n  }\n  if (isErrorDetail(errors == null ? void 0 : errors.detail) && errors && Array.isArray((_c = errors == null ? void 0 : errors.detail) == null ? void 0 : _c.direction_code)) {\n    return errors.detail.direction_code;\n  }\n  return null;\n};\nconst isArrayErrorDetail = (detail) => {\n  return Array.isArray(detail);\n};\nconst isErrorDetail = (detail) => {\n  return typeof detail === \"object\" && detail !== null && !(\"length\" in detail);\n};\nexport {\n  parseDirectionCode,\n  parseErrorMessage\n};\n", "const isObject = (value) => typeof value === \"object\" && value !== null;\nconst isObjectCustom = (value) => isObject(value) && !(value instanceof RegExp) && !(value instanceof Error) && !(value instanceof Date);\nconst mapObjectSkip = Symbol(\"mapObjectSkip\");\nconst _mapObject = (object, mapper, options, isSeen = /* @__PURE__ */ new WeakMap()) => {\n  options = {\n    deep: false,\n    target: {},\n    ...options\n  };\n  if (isSeen.has(object)) {\n    return isSeen.get(object);\n  }\n  isSeen.set(object, options.target);\n  const { target } = options;\n  delete options.target;\n  const mapArray = (array) => array.map((element) => isObjectCustom(element) ? _mapObject(element, mapper, options, isSeen) : element);\n  if (Array.isArray(object)) {\n    return mapArray(object);\n  }\n  for (const [key, value] of Object.entries(object)) {\n    const mapResult = mapper(key, value, object);\n    if (mapResult === mapObjectSkip) {\n      continue;\n    }\n    let [newKey, newValue, { shouldRecurse = true } = {}] = mapResult;\n    if (newKey === \"__proto__\") {\n      continue;\n    }\n    if (options.deep && shouldRecurse && isObjectCustom(newValue)) {\n      newValue = Array.isArray(newValue) ? mapArray(newValue) : _mapObject(newValue, mapper, options, isSeen);\n    }\n    target[newKey] = newValue;\n  }\n  return target;\n};\nfunction mapObject(object, mapper, options) {\n  if (!isObject(object)) {\n    throw new TypeError(`Expected an object, got \\`${object}\\` (${typeof object})`);\n  }\n  return _mapObject(object, mapper, options);\n}\nexport {\n  mapObject as default,\n  mapObjectSkip\n};\n", "const UPPERCASE = /[\\p{Lu}]/u;\nconst LOWERCASE = /[\\p{Ll}]/u;\nconst LEADING_CAPITAL = /^[\\p{Lu}](?![\\p{Lu}])/gu;\nconst IDENTIFIER = /([\\p{Alpha}\\p{N}_]|$)/u;\nconst SEPARATORS = /[_.\\- ]+/;\nconst LEADING_SEPARATORS = new RegExp(\"^\" + SEPARATORS.source);\nconst SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, \"gu\");\nconst NUMBERS_AND_IDENTIFIER = new RegExp(\"\\\\d+\" + IDENTIFIER.source, \"gu\");\nconst preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {\n  let isLastCharLower = false;\n  let isLastCharUpper = false;\n  let isLastLastCharUpper = false;\n  let isLastLastCharPreserved = false;\n  for (let index = 0; index < string.length; index++) {\n    const character = string[index];\n    isLastLastCharPreserved = index > 2 ? string[index - 3] === \"-\" : true;\n    if (isLastCharLower && UPPERCASE.test(character)) {\n      string = string.slice(0, index) + \"-\" + string.slice(index);\n      isLastCharLower = false;\n      isLastLastCharUpper = isLastCharUpper;\n      isLastCharUpper = true;\n      index++;\n    } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase2)) {\n      string = string.slice(0, index - 1) + \"-\" + string.slice(index - 1);\n      isLastLastCharUpper = isLastCharUpper;\n      isLastCharUpper = false;\n      isLastCharLower = true;\n    } else {\n      isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;\n      isLastLastCharUpper = isLastCharUpper;\n      isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;\n    }\n  }\n  return string;\n};\nconst preserveConsecutiveUppercase = (input, toLowerCase) => {\n  LEADING_CAPITAL.lastIndex = 0;\n  return input.replaceAll(LEADING_CAPITAL, (match) => toLowerCase(match));\n};\nconst postProcess = (input, toUpperCase) => {\n  SEPARATORS_AND_IDENTIFIER.lastIndex = 0;\n  NUMBERS_AND_IDENTIFIER.lastIndex = 0;\n  return input.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => [\"_\", \"-\"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match)).replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));\n};\nfunction camelCase(input, options) {\n  if (!(typeof input === \"string\" || Array.isArray(input))) {\n    throw new TypeError(\"Expected the input to be `string | string[]`\");\n  }\n  options = {\n    pascalCase: false,\n    preserveConsecutiveUppercase: false,\n    ...options\n  };\n  if (Array.isArray(input)) {\n    input = input.map((x) => x.trim()).filter((x) => x.length).join(\"-\");\n  } else {\n    input = input.trim();\n  }\n  if (input.length === 0) {\n    return \"\";\n  }\n  const toLowerCase = options.locale === false ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale);\n  const toUpperCase = options.locale === false ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);\n  if (input.length === 1) {\n    if (SEPARATORS.test(input)) {\n      return \"\";\n    }\n    return options.pascalCase ? toUpperCase(input) : toLowerCase(input);\n  }\n  const hasUpperCase = input !== toLowerCase(input);\n  if (hasUpperCase) {\n    input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);\n  }\n  input = input.replace(LEADING_SEPARATORS, \"\");\n  input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);\n  if (options.pascalCase) {\n    input = toUpperCase(input.charAt(0)) + input.slice(1);\n  }\n  return postProcess(input, toUpperCase);\n}\nexport {\n  camelCase as default\n};\n", "class QuickLRU extends Map {\n  constructor(options = {}) {\n    super();\n    if (!(options.maxSize && options.maxSize > 0)) {\n      throw new TypeError(\"`maxSize` must be a number greater than 0\");\n    }\n    if (typeof options.maxAge === \"number\" && options.maxAge === 0) {\n      throw new TypeError(\"`maxAge` must be a number greater than 0\");\n    }\n    this.maxSize = options.maxSize;\n    this.maxAge = options.maxAge || Number.POSITIVE_INFINITY;\n    this.onEviction = options.onEviction;\n    this.cache = /* @__PURE__ */ new Map();\n    this.oldCache = /* @__PURE__ */ new Map();\n    this._size = 0;\n  }\n  // TODO: Use private class methods when targeting Node.js 16.\n  _emitEvictions(cache) {\n    if (typeof this.onEviction !== \"function\") {\n      return;\n    }\n    for (const [key, item] of cache) {\n      this.onEviction(key, item.value);\n    }\n  }\n  _deleteIfExpired(key, item) {\n    if (typeof item.expiry === \"number\" && item.expiry <= Date.now()) {\n      if (typeof this.onEviction === \"function\") {\n        this.onEviction(key, item.value);\n      }\n      return this.delete(key);\n    }\n    return false;\n  }\n  _getOrDeleteIfExpired(key, item) {\n    const deleted = this._deleteIfExpired(key, item);\n    if (deleted === false) {\n      return item.value;\n    }\n  }\n  _getItemValue(key, item) {\n    return item.expiry ? this._getOrDeleteIfExpired(key, item) : item.value;\n  }\n  _peek(key, cache) {\n    const item = cache.get(key);\n    return this._getItemValue(key, item);\n  }\n  _set(key, value) {\n    this.cache.set(key, value);\n    this._size++;\n    if (this._size >= this.maxSize) {\n      this._size = 0;\n      this._emitEvictions(this.oldCache);\n      this.oldCache = this.cache;\n      this.cache = /* @__PURE__ */ new Map();\n    }\n  }\n  _moveToRecent(key, item) {\n    this.oldCache.delete(key);\n    this._set(key, item);\n  }\n  *_entriesAscending() {\n    for (const item of this.oldCache) {\n      const [key, value] = item;\n      if (!this.cache.has(key)) {\n        const deleted = this._deleteIfExpired(key, value);\n        if (deleted === false) {\n          yield item;\n        }\n      }\n    }\n    for (const item of this.cache) {\n      const [key, value] = item;\n      const deleted = this._deleteIfExpired(key, value);\n      if (deleted === false) {\n        yield item;\n      }\n    }\n  }\n  get(key) {\n    if (this.cache.has(key)) {\n      const item = this.cache.get(key);\n      return this._getItemValue(key, item);\n    }\n    if (this.oldCache.has(key)) {\n      const item = this.oldCache.get(key);\n      if (this._deleteIfExpired(key, item) === false) {\n        this._moveToRecent(key, item);\n        return item.value;\n      }\n    }\n  }\n  set(key, value, { maxAge = this.maxAge } = {}) {\n    const expiry = typeof maxAge === \"number\" && maxAge !== Number.POSITIVE_INFINITY ? Date.now() + maxAge : void 0;\n    if (this.cache.has(key)) {\n      this.cache.set(key, {\n        value,\n        expiry\n      });\n    } else {\n      this._set(key, { value, expiry });\n    }\n    return this;\n  }\n  has(key) {\n    if (this.cache.has(key)) {\n      return !this._deleteIfExpired(key, this.cache.get(key));\n    }\n    if (this.oldCache.has(key)) {\n      return !this._deleteIfExpired(key, this.oldCache.get(key));\n    }\n    return false;\n  }\n  peek(key) {\n    if (this.cache.has(key)) {\n      return this._peek(key, this.cache);\n    }\n    if (this.oldCache.has(key)) {\n      return this._peek(key, this.oldCache);\n    }\n  }\n  delete(key) {\n    const deleted = this.cache.delete(key);\n    if (deleted) {\n      this._size--;\n    }\n    return this.oldCache.delete(key) || deleted;\n  }\n  clear() {\n    this.cache.clear();\n    this.oldCache.clear();\n    this._size = 0;\n  }\n  resize(newSize) {\n    if (!(newSize && newSize > 0)) {\n      throw new TypeError(\"`maxSize` must be a number greater than 0\");\n    }\n    const items = [...this._entriesAscending()];\n    const removeCount = items.length - newSize;\n    if (removeCount < 0) {\n      this.cache = new Map(items);\n      this.oldCache = /* @__PURE__ */ new Map();\n      this._size = items.length;\n    } else {\n      if (removeCount > 0) {\n        this._emitEvictions(items.slice(0, removeCount));\n      }\n      this.oldCache = new Map(items.slice(removeCount));\n      this.cache = /* @__PURE__ */ new Map();\n      this._size = 0;\n    }\n    this.maxSize = newSize;\n  }\n  *keys() {\n    for (const [key] of this) {\n      yield key;\n    }\n  }\n  *values() {\n    for (const [, value] of this) {\n      yield value;\n    }\n  }\n  *[Symbol.iterator]() {\n    for (const item of this.cache) {\n      const [key, value] = item;\n      const deleted = this._deleteIfExpired(key, value);\n      if (deleted === false) {\n        yield [key, value.value];\n      }\n    }\n    for (const item of this.oldCache) {\n      const [key, value] = item;\n      if (!this.cache.has(key)) {\n        const deleted = this._deleteIfExpired(key, value);\n        if (deleted === false) {\n          yield [key, value.value];\n        }\n      }\n    }\n  }\n  *entriesDescending() {\n    let items = [...this.cache];\n    for (let i = items.length - 1; i >= 0; --i) {\n      const item = items[i];\n      const [key, value] = item;\n      const deleted = this._deleteIfExpired(key, value);\n      if (deleted === false) {\n        yield [key, value.value];\n      }\n    }\n    items = [...this.oldCache];\n    for (let i = items.length - 1; i >= 0; --i) {\n      const item = items[i];\n      const [key, value] = item;\n      if (!this.cache.has(key)) {\n        const deleted = this._deleteIfExpired(key, value);\n        if (deleted === false) {\n          yield [key, value.value];\n        }\n      }\n    }\n  }\n  *entriesAscending() {\n    for (const [key, value] of this._entriesAscending()) {\n      yield [key, value.value];\n    }\n  }\n  get size() {\n    if (!this._size) {\n      return this.oldCache.size;\n    }\n    let oldCacheSize = 0;\n    for (const key of this.oldCache.keys()) {\n      if (!this.cache.has(key)) {\n        oldCacheSize++;\n      }\n    }\n    return Math.min(this._size + oldCacheSize, this.maxSize);\n  }\n  entries() {\n    return this.entriesAscending();\n  }\n  forEach(callbackFunction, thisArgument = this) {\n    for (const [key, value] of this.entriesAscending()) {\n      callbackFunction.call(thisArgument, value, key, this);\n    }\n  }\n  get [Symbol.toStringTag]() {\n    return JSON.stringify([...this.entriesAscending()]);\n  }\n}\nexport {\n  QuickLRU as default\n};\n", "import mapObject from \"../map-obj/index.js\";\nimport camelCase from \"../camelcase/index.js\";\nimport QuickLRU from \"../quick-lru/index.js\";\nconst has = (array, key) => array.some((element) => {\n  if (typeof element === \"string\") {\n    return element === key;\n  }\n  element.lastIndex = 0;\n  return element.test(key);\n});\nconst cache = new QuickLRU({ maxSize: 1e5 });\nconst isObject = (value) => typeof value === \"object\" && value !== null && !(value instanceof RegExp) && !(value instanceof Error) && !(value instanceof Date);\nconst transform = (input, options = {}) => {\n  if (!isObject(input)) {\n    return input;\n  }\n  const {\n    exclude,\n    pascalCase = false,\n    stopPaths,\n    deep = false,\n    preserveConsecutiveUppercase = false\n  } = options;\n  const stopPathsSet = new Set(stopPaths);\n  const makeMapper = (parentPath) => (key, value) => {\n    if (deep && isObject(value)) {\n      const path = parentPath === void 0 ? key : `${parentPath}.${key}`;\n      if (!stopPathsSet.has(path)) {\n        value = mapObject(value, makeMapper(path));\n      }\n    }\n    if (!(exclude && has(exclude, key))) {\n      const cacheKey = pascalCase ? `${key}_` : key;\n      if (cache.has(cacheKey)) {\n        key = cache.get(cacheKey);\n      } else {\n        const returnValue = camelCase(key, { pascalCase, locale: false, preserveConsecutiveUppercase });\n        if (key.length < 100) {\n          cache.set(cacheKey, returnValue);\n        }\n        key = returnValue;\n      }\n    }\n    return [key, value];\n  };\n  return mapObject(input, makeMapper(void 0));\n};\nfunction camelcaseKeys(input, options) {\n  if (Array.isArray(input)) {\n    return Object.keys(input).map((key) => transform(input[key], options));\n  }\n  return transform(input, options);\n}\nexport {\n  camelcaseKeys as default\n};\n", "import { parseErrorMessage, parseDirectionCode } from \"../../utils/error/error.js\";\nimport { GENERAL_ERROR } from \"../../constants/error.js\";\nimport camelcaseKeys from \"../../node_modules/camelcase-keys/index.js\";\nimport { environments, env } from \"../../config/index.js\";\nconst COUPONS_PER_REQUEST = 50;\nclass CouponApiService {\n  async getCoupons(couponIdList, isDevMode = false) {\n    const slicedCouponIdList = couponIdList.slice(0, COUPONS_PER_REQUEST);\n    const baseUrl = isDevMode ? environments.development.api.content : env.api.content;\n    const response = await fetch(`${baseUrl}/api/v4/framers/proxy/promotion-api/api/v1/coupon?couponIdList=${slicedCouponIdList.join(\",\")}`).then((res) => res.json()).then((res) => camelcaseKeys(res, {\n      deep: true\n    }));\n    if (response.result === \"FAIL\" || response.data === null) {\n      throw new Error(response.message ?? GENERAL_ERROR);\n    }\n    return response;\n  }\n  async downloadCouponBulk(couponNoList) {\n    return fetch(`${env.api.promotion}/api/v4/coupons/download:bulk`, {\n      method: \"POST\",\n      body: JSON.stringify({\n        couponList: couponNoList.map((couponId) => ({\n          couponId,\n          downloadCount: 1\n        }))\n      }),\n      headers: {\n        \"Content-Type\": \"application/json\",\n        \"accept\": \"application/json\"\n      },\n      credentials: \"include\"\n    }).then((res) => res.json());\n  }\n  async downloadCoupon(couponNo, downloadCount) {\n    return fetch(`${env.api.promotion}/api/v4/coupons/download`, {\n      method: \"POST\",\n      body: JSON.stringify({\n        couponId: couponNo,\n        downloadCount\n      }),\n      headers: {\n        \"Content-Type\": \"application/json\",\n        \"accept\": \"application/json\"\n      },\n      credentials: \"include\"\n    }).then((res) => res.json());\n  }\n  async downloadLimitedCoupons(couponNoList) {\n    const promises = couponNoList.map(async (couponId) => {\n      return fetch(`${env.api.promotion}/api/v4/coupons/download:limited`, {\n        method: \"POST\",\n        body: JSON.stringify({\n          couponId\n        }),\n        headers: {\n          \"Content-Type\": \"application/json\",\n          \"accept\": \"application/json\"\n        },\n        credentials: \"include\"\n      }).then((res) => res.json());\n    });\n    const [response] = await Promise.all(promises);\n    return response;\n  }\n  async downloadRandomCoupon() {\n    return fetch(`${env.api.promotion}/api/v1/random-coupon/${env.name === \"qa\" ? \"issue-test\" : \"issue\"}`, {\n      method: \"POST\",\n      headers: {\n        \"Content-Type\": \"application/json\",\n        \"accept\": \"application/json\"\n      },\n      credentials: \"include\"\n    }).then((res) => res.json());\n  }\n  async getMaxIssueCount(couponId) {\n    const result = await fetch(`${env.api.promotion}/api/v4/coupons/max-issue-count/${couponId}`);\n    const response = await result.json();\n    if (response.result === \"FAIL\" || response.data === null) {\n      throw new Error(response.errorCode ?? GENERAL_ERROR);\n    }\n    return response;\n  }\n  async getDownloadableCouponSummaries(couponIdList, userId) {\n    const result = await fetch(`${env.api.promotion}/api/v4/coupons/downloadable?userId=${userId}`, {\n      method: \"POST\",\n      body: JSON.stringify({\n        couponIdList\n      }),\n      headers: {\n        \"Content-Type\": \"application/json\",\n        \"accept\": \"application/json\"\n      },\n      credentials: \"include\"\n    });\n    const response = await result.json();\n    if (response.result === \"FAIL\" || response.data === null) {\n      throw new Error(response.errorCode ?? GENERAL_ERROR);\n    }\n    return response.data.downloadableCouponInfoList;\n  }\n  parseDownloadCouponError(error, fallbackMessage) {\n    const message = parseErrorMessage(error, fallbackMessage) ?? \"\";\n    const directionCode = parseDirectionCode(error);\n    const isAuthError = (directionCode == null ? void 0 : directionCode[0]) === \"auth\";\n    return {\n      message,\n      callbackUrl: isAuthError ? \"/mypage/edit/info\" : void 0\n    };\n  }\n}\nconst couponApi = new CouponApiService();\nexport {\n  couponApi\n};\n", "import useSWR from \"../../node_modules/swr/core/dist/index.js\";\nimport { couponApi } from \"../../apis/coupon/CouponApiService.js\";\nconst DOWNLOADABLE_COUPON_SUMMARIES_FETCHER_KEY = \"@coupon/downloadable-coupon-summaries\";\nconst useFetchDownloadableCouponSummaries = (couponIds, userNo, enabled = true) => {\n  const canFetch = couponIds.length > 0 && Boolean(userNo) && enabled;\n  const {\n    isLoading,\n    data,\n    ...rest\n  } = useSWR(canFetch ? [DOWNLOADABLE_COUPON_SUMMARIES_FETCHER_KEY, ...couponIds] : null, () => couponApi.getDownloadableCouponSummaries(couponIds, Number(userNo)), {\n    revalidateIfStale: true\n  });\n  return {\n    isLoading: isLoading || !canFetch,\n    summaries: data ?? [],\n    ...rest\n  };\n};\nexport {\n  useFetchDownloadableCouponSummaries\n};\n", "import useSWRMutation from \"../../node_modules/swr/mutation/dist/index.js\";\nimport { couponApi } from \"../../apis/coupon/CouponApiService.js\";\nconst COUPON_MULTI_ISSUE_FETCHER_KEY = \"coupon-multi-issue\";\nconst downloadCoupons = (_key, {\n  arg\n}) => {\n  const {\n    couponIds,\n    downloadCount\n  } = arg;\n  const [couponId] = couponIds;\n  return couponIds.length > 1 ? couponApi.downloadCouponBulk(couponIds) : couponApi.downloadCoupon(couponId, downloadCount);\n};\nconst downloadLimitedCoupons = (_key, {\n  arg\n}) => {\n  return couponApi.downloadLimitedCoupons(arg.couponIds);\n};\nconst useDownloadCouponsMutation = ({\n  isLimited = false,\n  enabled = true,\n  onError,\n  onSuccess\n} = {}) => {\n  return useSWRMutation(enabled ? COUPON_MULTI_ISSUE_FETCHER_KEY : null, isLimited ? downloadLimitedCoupons : downloadCoupons, {\n    onError,\n    onSuccess\n  });\n};\nexport {\n  COUPON_MULTI_ISSUE_FETCHER_KEY,\n  useDownloadCouponsMutation\n};\n", "const DOWNLOAD_COUPON_MESSAGES = {\n  SUCCESS: \"\uCFE0\uD3F0\uC744 \uBC1B\uC558\uC5B4\uC694.\\n\uBC1B\uC740 \uCFE0\uD3F0\uC740 \uB9C8\uC774\uD398\uC774\uC9C0\uC5D0\uC11C \uD655\uC778\uD558\uC138\uC694.\",\n  BULK_SUCCESS: \"\uCFE0\uD3F0\uC744 \uBAA8\uB450 \uBC1B\uC558\uC5B4\uC694.\\n\uBC1B\uC740 \uCFE0\uD3F0\uC740 \uB9C8\uC774\uD398\uC774\uC9C0\uC5D0\uC11C \uD655\uC778\uD558\uC138\uC694.\",\n  LOADING: \"\uCFE0\uD3F0 \uBC1C\uAE09\uC744 \uC2DC\uB3C4\uD558\uACE0 \uC788\uC5B4\uC694. \uC7A0\uC2DC \uAE30\uB2E4\uB824\uC8FC\uC138\uC694.\\n\uC2E0\uCCAD \uC21C\uC11C\uB300\uB85C \uCC98\uB9AC\uB418\uBA70 \uC2E0\uCCAD\uB7C9\uC774 \uB9CE\uC740 \uACBD\uC6B0 \uCFE0\uD3F0\uC774 \uC18C\uC9C4\uB420 \uC218 \uC788\uC5B4\uC694\",\n  NEED_IDENTIFICATION: \"\uCFE0\uD3F0 \uBC1C\uAE09\uC744 \uC704\uD574 \uBCF8\uC778\uD655\uC778\uC774 \uD544\uC694\uD574\uC694.\",\n  FAILED_SOME_COUPON_DOWNLOAD: \"\uCFE0\uD3F0\uC744 \uBAA8\uB450 \uBC1B\uC558\uC5B4\uC694. \uBC1B\uC740 \uCFE0\uD3F0\uC740 MY>\uCFE0\uD3F0\uD568\uC5D0\uC11C \uD655\uC778\uD558\uC138\uC694.\",\n  FAILED_COUPON_DOWNLOAD: \"\uCFE0\uD3F0\uC744 \uBAA8\uB450 \uBC1B\uC558\uC5B4\uC694. \uBC1B\uC740 \uCFE0\uD3F0\uC740 MY>\uCFE0\uD3F0\uD568\uC5D0\uC11C \uD655\uC778\uD558\uC138\uC694.\",\n  NOT_FOUND_USER_ID: \"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD574\uC694.\",\n  GENERAL_ERROR: \"\uCFE0\uD3F0 \uBC1C\uAE09\uC5D0 \uC2E4\uD328\uD588\uC5B4\uC694.\"\n};\nexport {\n  DOWNLOAD_COUPON_MESSAGES\n};\n", "import useSWRMutation from \"../../node_modules/swr/mutation/dist/index.js\";\nimport { couponApi } from \"../../apis/coupon/CouponApiService.js\";\nconst DOWNLOAD_RANDOM_COUPON_MUTATION_KEY = \"@coupon/download-random-coupon\";\nconst useDownloadRandomCouponMutation = ({\n  enabled = true,\n  onError,\n  onSuccess\n} = {}) => {\n  return useSWRMutation(enabled ? DOWNLOAD_RANDOM_COUPON_MUTATION_KEY : null, () => couponApi.downloadRandomCoupon(), {\n    onError,\n    onSuccess\n  });\n};\nexport {\n  DOWNLOAD_RANDOM_COUPON_MUTATION_KEY,\n  useDownloadRandomCouponMutation\n};\n", "import { useCurrentUser } from \"./useCurrentUser.js\";\nimport { useRedirectLoginDialog } from \"./useRedirectLoginDialog.js\";\nimport { useDownloadCouponsMutation } from \"./mutations/useDownloadCouponsMutation.js\";\nimport \"../node_modules/swr/mutation/dist/index.js\";\nimport \"../config/index.js\";\nimport { useDialog } from \"./useDialog.js\";\nimport { isContentOrigin } from \"../utils/location.js\";\nimport { DOWNLOAD_COUPON_MESSAGES } from \"../components/canvas/CouponDownloadCTA/CouponDownloadCTA.constants.js\";\nimport { useDownloadRandomCouponMutation } from \"./mutations/useDownloadRandomCouponMutation.js\";\nimport { CouponType, DiscountType } from \"../types/models/coupon.js\";\nimport { useTrackSnowplowEvent } from \"./snowplow/useTrackSnowplowEvent.js\";\nconst useDownloadCoupons = (couponType = CouponType.NORMAL, discountType = DiscountType.FIXED_RATE, handleCouponDownloadSuccess) => {\n  const {\n    logged\n  } = useCurrentUser();\n  const {\n    showRedirectLoginDialog\n  } = useRedirectLoginDialog();\n  const isValidOrigin = isContentOrigin();\n  const dialog = useDialog();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const {\n    trigger: downloadCoupons,\n    isMutating: isLoading\n  } = useDownloadCouponsMutation({\n    isLimited: couponType === CouponType.LIMITED,\n    enabled: isValidOrigin\n  });\n  const {\n    trigger: downloadRandomCoupon,\n    isMutating: isRandomCouponLoading\n  } = useDownloadRandomCouponMutation({\n    enabled: isValidOrigin\n  });\n  const handleSuccess = (couponNoList) => (response) => {\n    if ((response == null ? void 0 : response.result) === \"FAIL\") {\n      dialog.show({\n        content: getErrorMessage(response.errorCode, response.message)\n      });\n      return;\n    }\n    if (isRandomCouponResponse(couponType, response)) {\n      trackSnowplowEvent(\"click_download_coupon\", {\n        coupon_no_list: `${response.data.couponId}`\n      });\n    } else {\n      trackSnowplowEvent(\"click_download_coupon\", {\n        coupon_no_list: couponNoList.join(\",\")\n      });\n    }\n    handleCouponDownloadSuccess == null ? void 0 : handleCouponDownloadSuccess();\n    dialog.show({\n      content: getSuccessMessage(response, discountType)\n    });\n  };\n  const validate = () => {\n    if (!isValidOrigin) {\n      return false;\n    }\n    if (!logged) {\n      showRedirectLoginDialog();\n      return false;\n    }\n    if (isLoading || isRandomCouponLoading) {\n      dialog.show({\n        content: DOWNLOAD_COUPON_MESSAGES.LOADING\n      });\n      return false;\n    }\n    return true;\n  };\n  const download = async (couponNoList = [], downloadCount = 1, skipValidation = false) => {\n    if (!skipValidation && !validate()) {\n      return;\n    }\n    if (couponType === CouponType.NORMAL || couponType === CouponType.LIMITED) {\n      await downloadCoupons({\n        couponIds: couponNoList,\n        downloadCount\n      }, {\n        onSuccess: handleSuccess(couponNoList)\n      });\n      return;\n    }\n    if (couponType === CouponType.RANDOM) {\n      await downloadRandomCoupon(void 0, {\n        onSuccess: handleSuccess(couponNoList)\n      });\n      return;\n    }\n  };\n  return {\n    validate,\n    download\n  };\n};\nconst getSuccessMessage = (response, discountType) => {\n  const {\n    data\n  } = response;\n  const isBulk = data && \"downloadSummaryList\" in data;\n  const isRandom = data && \"couponId\" in data;\n  if (isRandom) {\n    return createRandomCouponSuccessMessage(data.discountValue)[discountType];\n  }\n  return isBulk ? DOWNLOAD_COUPON_MESSAGES.BULK_SUCCESS : DOWNLOAD_COUPON_MESSAGES.SUCCESS;\n};\nconst createRandomCouponSuccessMessage = (discountValue) => ({\n  [DiscountType.FIXED_PRICE]: `${discountValue.toLocaleString(\"ko-KR\")}\uC6D0 \uCFE0\uD3F0\uC5D0 \uB2F9\uCCA8\uB410\uC5B4\uC694.\n\uBC1B\uC740 \uCFE0\uD3F0\uC740 \uB9C8\uC774\uD398\uC774\uC9C0\uC5D0\uC11C \uD655\uC778\uD558\uC138\uC694.`,\n  [DiscountType.FIXED_RATE]: `${discountValue}% \uCFE0\uD3F0\uC5D0 \uB2F9\uCCA8\uB410\uC5B4\uC694.\n\uBC1B\uC740 \uCFE0\uD3F0\uC740 \uB9C8\uC774\uD398\uC774\uC9C0\uC5D0\uC11C \uD655\uC778\uD558\uC138\uC694.`\n});\nconst getErrorMessage = (errorCode, errorMessage) => {\n  switch (errorCode) {\n    case \"FAILED_SOME_COUPON_DOWNLOAD\":\n      return DOWNLOAD_COUPON_MESSAGES.FAILED_SOME_COUPON_DOWNLOAD;\n    case \"FAILED_COUPON_DOWNLOAD\":\n      return DOWNLOAD_COUPON_MESSAGES.FAILED_COUPON_DOWNLOAD;\n    case \"NOT_FOUND_USER_ID\":\n      return DOWNLOAD_COUPON_MESSAGES.NOT_FOUND_USER_ID;\n    default:\n      return errorMessage || DOWNLOAD_COUPON_MESSAGES.GENERAL_ERROR;\n  }\n};\nconst toCouponNos = (couponNosStr) => {\n  return couponNosStr.split(\",\").map((item) => Number(item.trim()));\n};\nconst isRandomCouponResponse = (couponType, response) => {\n  var _a;\n  return couponType === CouponType.RANDOM && ((_a = response.data) == null ? void 0 : _a.couponId) !== void 0;\n};\nexport {\n  toCouponNos,\n  useDownloadCoupons\n};\n", "import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { useState } from \"react\";\nimport { DiscountType } from \"../../../types/models/coupon.js\";\nimport \"../Countdown/Countdown.js\";\nimport \"react-dom\";\nimport \"../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../Expandable/Expandable.js\";\nimport \"../FixedScrollProgressBar/FixedScrollProgressBar.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 \"../../../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 \"../../../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 \"framer\";\nimport \"../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../Products/Products.js\";\nimport \"../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport \"../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../utils/redirectLogin.js\";\nimport \"../../../utils/event-properties/source.js\";\nimport \"../../../constants/snowplow/snowplowSchema.js\";\nimport \"../ResponsiveSplitView/ResponsiveSplitView.js\";\nimport \"../ResponsiveSplitViewOverlayButton/ResponsiveSplitViewOverlayButton.js\";\nimport { RollingNumber } from \"../RollingNumber/RollingNumber.js\";\nimport \"../TabBar/TabBar.js\";\nimport \"../TimeProgressBar/TimeProgressBar.js\";\nimport \"../ViewportContainer/ViewportContainer.js\";\nimport useInterval from \"../../../node_modules/react-use/esm/useInterval.js\";\nconst RandomDiscountValue = ({\n  discountType,\n  discountValues\n}) => {\n  const [index, setIndex] = useState(0);\n  useInterval(() => {\n    setIndex((index + 1) % discountValues.length);\n  }, 800);\n  return /* @__PURE__ */ jsxs(\"div\", { style: {\n    display: \"flex\",\n    alignItems: \"center\"\n  }, children: [\n    /* @__PURE__ */ jsx(RollingNumber, { value: discountValues[index] ?? 0 }),\n    discountType === DiscountType.FIXED_RATE ? \"%\" : \"\uC6D0\"\n  ] });\n};\nexport {\n  RandomDiscountValue\n};\n", "import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { Countdown } from \"../../../systems/Countdown/Countdown.js\";\nimport \"react-dom\";\nimport \"react\";\nimport \"../../../systems/Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../systems/Expandable/Expandable.js\";\nimport \"../../../systems/FixedScrollProgressBar/FixedScrollProgressBar.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 \"../../../../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 \"../../../../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 { isCanvas } from \"../../../../utils/framer/isCanvas.js\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../systems/Products/Products.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport \"../../../../constants/snowplow/snowplowSchema.js\";\nimport \"../../../systems/ResponsiveSplitView/ResponsiveSplitView.js\";\nimport \"../../../systems/ResponsiveSplitViewOverlayButton/ResponsiveSplitViewOverlayButton.js\";\nimport \"../../../systems/RollingNumber/RollingNumber.js\";\nimport \"../../../systems/TabBar/TabBar.js\";\nimport \"../../../systems/TimeProgressBar/TimeProgressBar.js\";\nimport \"../../../systems/ViewportContainer/ViewportContainer.js\";\nimport \"framer\";\nimport { typography } from \"../../../../styles/typography.js\";\nimport { CouponType, AvailableDayType, DiscountType } from \"../../../../types/models/coupon.js\";\nimport { createKRTimeZoneDate } from \"../../../../utils/createUTCDate.js\";\nimport { RandomDiscountValue } from \"../../../systems/RandomDiscountValue/RandomDiscountValue.js\";\nimport { QueryType } from \"../../types.js\";\nimport head from \"../../../../node_modules/lodash-es/head.js\";\nimport { isBefore } from \"../../../../node_modules/date-fns/isBefore.js\";\nimport { isAfter } from \"../../../../node_modules/date-fns/isAfter.js\";\nimport { formatDate as format } from \"../../../../node_modules/date-fns/format.js\";\nimport { ko } from \"../../../../node_modules/date-fns/locale/ko.js\";\nconst getCouponUseEndAt = (coupon) => {\n  if (coupon.useAvailableDayType === AvailableDayType.RANGE) {\n    return createKRTimeZoneDate(coupon.couponUseEndAt);\n  }\n  return void 0;\n};\nconst getCouponStatus = (coupon, canDownload, logged, query) => {\n  if (!coupon) {\n    return \"downloadable\";\n  }\n  if (isCanvas()) {\n    return \"downloadable\";\n  }\n  if (query.type === QueryType.Coupon && query.couponType === CouponType.RANDOM) {\n    return \"downloadable\";\n  }\n  const now = createKRTimeZoneDate();\n  const issueStartAt = createKRTimeZoneDate(coupon.couponIssueStartAt);\n  const issueEndAt = createKRTimeZoneDate(coupon.couponIssueEndAt);\n  const useEndAt = getCouponUseEndAt(coupon);\n  const isUpcoming = isBefore(now, issueStartAt);\n  const isEnd = isAfter(now, issueEndAt);\n  const isExpired = useEndAt !== void 0 && isAfter(now, useEndAt);\n  if (isUpcoming) {\n    return \"upcoming\";\n  }\n  if (isExpired || isEnd) {\n    return \"expired\";\n  }\n  if (!canDownload && logged) {\n    return \"downloaded\";\n  }\n  return \"downloadable\";\n};\nconst getDescriptionByStatus = (coupon) => {\n  const issueStartAt = createKRTimeZoneDate(coupon.couponIssueStartAt);\n  const issueEndAt = createKRTimeZoneDate(coupon.couponIssueEndAt);\n  const useEndAt = getCouponUseEndAt(coupon);\n  return {\n    upcoming: format(issueStartAt, \"M/d EEEE a h\uC2DC \uBC1C\uD589 \uC608\uC815\", {\n      locale: ko\n    }),\n    downloadable: /* @__PURE__ */ jsxs(\"div\", { style: descriptionStyle, children: [\n      /* @__PURE__ */ jsx(Countdown, { targetDateString: format(issueEndAt, \"yyyy-MM-dd\"), targetTimeString: format(issueEndAt, \"HH:mm:ss\"), dateDisplayFormat: \"D\uC77C\", timeDisplayFormat: \"H\uC2DC\uAC04 m\uBD84 s\uCD08\", fontSize: 12, color: \"inherit\", style: typography(12, 400) }),\n      \"\uB0A8\uC74C\"\n    ] }),\n    downloaded: useEndAt ? /* @__PURE__ */ jsxs(\"div\", { style: descriptionStyle, children: [\n      /* @__PURE__ */ jsx(Countdown, { targetDateString: format(useEndAt, \"yyyy-MM-dd\"), targetTimeString: format(useEndAt, \"HH:mm:ss\"), dateDisplayFormat: \"D\uC77C\", timeDisplayFormat: \"H\uC2DC\uAC04 m\uBD84 s\uCD08\", fontSize: 12, color: \"inherit\", style: typography(12, 400) }),\n      \"\uB0A8\uC74C\"\n    ] }) : null,\n    expired: \"\uAE30\uAC04\uC774 \uB9CC\uB8CC\uB41C \uCFE0\uD3F0\"\n  };\n};\nconst descriptionStyle = {\n  display: \"flex\",\n  alignItems: \"center\",\n  gap: 3,\n  color: \"inherit\"\n};\nconst markAsDownloaded = (summaries, couponIds) => {\n  return summaries.map((summary) => ({\n    ...summary,\n    canDownload: !couponIds.includes(summary.couponId) && summary.canDownload\n  }));\n};\nconst getCouponCollectionCouponName = (query) => {\n  var _a, _b;\n  return `${(_a = query.coupon) == null ? void 0 : _a.couponName} ${(_b = query.coupon) == null ? void 0 : _b.personMaxIssueCount}\uC7A5`;\n};\nconst getRandomCouponName = (coupons) => {\n  var _a;\n  const sortByDiscountValue = sortCouponsByDiscountValueAscending(coupons);\n  const couponDiscountValues = sortByDiscountValue.map((coupon) => coupon.discountValue);\n  return /* @__PURE__ */ jsxs(\"div\", { style: {\n    display: \"flex\",\n    alignItems: \"center\",\n    gap: 6\n  }, children: [\n    /* @__PURE__ */ jsx(\"div\", { children: /* @__PURE__ */ jsx(RandomDiscountValue, { discountType: ((_a = head(coupons)) == null ? void 0 : _a.discountType) ?? DiscountType.FIXED_RATE, discountValues: couponDiscountValues }) }),\n    /* @__PURE__ */ jsx(\"span\", { children: \"\uCFE0\uD3F0\" })\n  ] });\n};\nconst getGeneralCouponName = (coupons) => {\n  if (coupons.length === 1) {\n    return getCouponNameByDiscountType(coupons[0]);\n  }\n  const couponKindTypes = new Set(coupons.map((coupon) => coupon.couponKindType));\n  if (couponKindTypes.size > 1) {\n    return \"\";\n  }\n  const isAllFixedRateCoupon = coupons.every((coupon) => coupon.discountType === DiscountType.FIXED_RATE);\n  const maxDiscountValue = Math.max(...coupons.map((coupon) => coupon.discountValue), 0).toLocaleString(\"ko-KR\");\n  if (isAllFixedRateCoupon) {\n    return `${maxDiscountValue}% \uCFE0\uD3F0 \uC678 ${coupons.length - 1}\uC7A5`;\n  }\n  return `${maxDiscountValue}\uC6D0 \uCFE0\uD3F0 \uC678 ${coupons.length - 1}\uC7A5`;\n};\nconst getCouponNameByCouponType = (coupons, query) => {\n  switch (query.couponType) {\n    case CouponType.RANDOM:\n      return getRandomCouponName(coupons);\n    case CouponType.LIMITED:\n    case CouponType.NORMAL:\n      return getGeneralCouponName(coupons);\n  }\n};\nconst getCouponName = (coupons, query) => {\n  if (coupons.length === 0) {\n    return \"\";\n  }\n  switch (query.type) {\n    case QueryType.CouponCollection:\n      return getCouponCollectionCouponName(query);\n    case QueryType.Coupon:\n      return getCouponNameByCouponType(coupons, query);\n  }\n};\nconst getCouponNameByDiscountType = (coupon) => {\n  if (!coupon) {\n    return \"\";\n  }\n  const {\n    discountType,\n    discountValue\n  } = coupon;\n  const postfix = discountType === DiscountType.FIXED_PRICE ? \"\uC6D0 \uCFE0\uD3F0\" : \"% \uCFE0\uD3F0\";\n  return discountValue.toLocaleString(\"ko-KR\") + postfix;\n};\nconst sortCouponsByDiscountValueAscending = (coupons) => {\n  return [...coupons].sort((x, y) => x.discountValue - y.discountValue);\n};\nexport {\n  getCouponName,\n  getCouponStatus,\n  getDescriptionByStatus,\n  markAsDownloaded\n};\n", "import { toCouponNos } from \"../../../../hooks/useDownloadCoupons.js\";\nimport { CouponUpdateType } from \"../CouponModule.types.js\";\nimport { CouponType } from \"../../../../types/models/coupon.js\";\nimport { shallowUnique } from \"../../../../utils/unique.js\";\nimport { useState, useEffect } from \"react\";\nimport { QueryType } from \"../../types.js\";\nimport { createKRTimeZoneDate } from \"../../../../utils/createUTCDate.js\";\nimport { isAbove } from \"../../../../utils/date.js\";\nimport useInterval from \"../../../../node_modules/react-use/esm/useInterval.js\";\nimport { isWithinInterval } from \"../../../../node_modules/date-fns/isWithinInterval.js\";\nimport { differenceInCalendarDays } from \"../../../../node_modules/date-fns/differenceInCalendarDays.js\";\nconst MS_IN_SECOND = 1e3;\nconst defaultCouponItemEntry = {\n  couponIds: [],\n  updateType: CouponUpdateType.NORMAL,\n  couponType: CouponType.NORMAL\n};\nconst useCouponIds = ({\n  query\n}) => {\n  const [couponItemEntry, setCouponItemEntry] = useState(init({\n    query\n  }) ?? defaultCouponItemEntry);\n  useInterval(() => {\n    if (couponItemEntry.updateType === CouponUpdateType.NORMAL) {\n      return;\n    }\n    const currentSchedule = findCurrentSchedule(couponItemEntry.schedules ?? []);\n    setCouponItemEntry((prev) => ({\n      ...prev,\n      couponIds: shallowUnique(toCouponNos(currentSchedule.couponIdList ?? \"\"))\n    }));\n  }, MS_IN_SECOND);\n  useEffect(() => {\n    setCouponItemEntry(init({\n      query\n    }) ?? defaultCouponItemEntry);\n  }, [query]);\n  return {\n    couponIds: couponItemEntry.couponIds,\n    couponType: couponItemEntry.couponType\n  };\n};\nconst initCouponCollectionCouponItemEntry = ({\n  coupon\n}) => {\n  return {\n    couponIds: coupon ? [coupon.couponId] : [],\n    updateType: CouponUpdateType.NORMAL,\n    couponType: CouponType.NORMAL\n  };\n};\nconst initRandomCouponItemEntry = (query) => {\n  const {\n    couponType,\n    couponIds = \"\"\n  } = query;\n  return {\n    couponIds: shallowUnique(toCouponNos(couponIds)),\n    updateType: CouponUpdateType.NORMAL,\n    couponType\n  };\n};\nconst initNormalCouponItemEntry = (query) => {\n  const {\n    couponType,\n    couponIds = \"\",\n    couponUpdateType\n  } = query;\n  return {\n    couponIds: shallowUnique(toCouponNos(couponIds)),\n    updateType: couponUpdateType,\n    couponType\n  };\n};\nconst initDailyCouponItemEntry = (query) => {\n  const {\n    couponType,\n    dailyCouponOptions = [],\n    couponUpdateType\n  } = query;\n  const schedules = toSchedule(dailyCouponOptions);\n  const currentSchedule = findCurrentSchedule(schedules);\n  return {\n    couponIds: shallowUnique(toCouponNos(currentSchedule.couponIdList ?? \"\")),\n    updateType: couponUpdateType,\n    couponType,\n    schedules\n  };\n};\nconst initByCouponUpdateType = (query) => {\n  switch (query.couponUpdateType) {\n    case CouponUpdateType.NORMAL:\n      return initNormalCouponItemEntry(query);\n    case CouponUpdateType.DAILY:\n      return initDailyCouponItemEntry(query);\n    default:\n      return null;\n  }\n};\nconst initByCouponType = (query) => {\n  switch (query.couponType) {\n    case CouponType.RANDOM:\n      return initRandomCouponItemEntry(query);\n    case CouponType.LIMITED:\n    case CouponType.NORMAL:\n      return initByCouponUpdateType(query);\n    default:\n      return null;\n  }\n};\nconst init = ({\n  query\n}) => {\n  if (query === void 0) {\n    return null;\n  }\n  switch (query.type) {\n    case QueryType.CouponCollection:\n      return initCouponCollectionCouponItemEntry(query);\n    case QueryType.Coupon:\n      return initByCouponType(query);\n    default:\n      return null;\n  }\n};\nconst findCurrentSchedule = (schedule) => {\n  const now = createKRTimeZoneDate();\n  const scheduleIndex = schedule.findIndex((item, index) => {\n    const {\n      shouldUpdateAt\n    } = item;\n    const next = schedule[index + 1];\n    const hasNext = next !== void 0;\n    const isWithin = hasNext && isWithinInterval(now, {\n      start: shouldUpdateAt,\n      end: next.shouldUpdateAt\n    });\n    const isLast = !hasNext && isAbove(now, shouldUpdateAt);\n    return isWithin || isLast;\n  });\n  return schedule[scheduleIndex];\n};\nconst toSchedule = (options) => sortScheduleAscending(toCouponSchedule(options));\nconst sortScheduleAscending = (schedule) => {\n  return [...schedule].sort((x, y) => x.shouldUpdateAt.getTime() - y.shouldUpdateAt.getTime());\n};\nconst toCouponSchedule = (options) => {\n  return options.flatMap((option) => {\n    const {\n      dailyCouponIds,\n      updateSchedule,\n      updateAt\n    } = option;\n    const {\n      startAt,\n      endAt\n    } = updateSchedule;\n    if (!startAt || !endAt) {\n      return [];\n    }\n    const diff = differenceInCalendarDays(endAt, startAt);\n    return Array.from({\n      length: diff + 1\n    }, (_, index) => {\n      const {\n        hours,\n        minutes,\n        seconds\n      } = updateAt;\n      const date = createKRTimeZoneDate(startAt);\n      date.setDate(date.getDate() + index);\n      date.setHours(hours, minutes, seconds);\n      return {\n        shouldUpdateAt: date,\n        couponIdList: dailyCouponIds[index]\n      };\n    });\n  });\n};\nexport {\n  findCurrentSchedule,\n  toSchedule,\n  useCouponIds\n};\n", "const formatToCoupon = (coupon) => {\n  if (!coupon) {\n    return void 0;\n  }\n  return {\n    ...coupon,\n    id: coupon.couponId\n  };\n};\nexport {\n  formatToCoupon\n};\n", "import { QueryType } from \"../types.js\";\nimport useSWR from \"../../../node_modules/swr/core/dist/index.js\";\nimport { couponApi } from \"../../../apis/coupon/CouponApiService.js\";\nimport { formatToCoupon } from \"./CouponModule.utils.js\";\nconst COUPONS_FETCHER_KEY = \"@coupon/coupons\";\nconst useCouponsQuery = ({\n  query,\n  couponIds,\n  enabled = true\n}) => {\n  const canFetch = couponIds.length > 0 && enabled && query !== void 0;\n  const {\n    data\n  } = useSWR(canFetch ? [COUPONS_FETCHER_KEY, couponIds] : null, () => queryCoupons(couponIds, query));\n  return {\n    coupons: (data == null ? void 0 : data.coupons) ?? []\n  };\n};\nconst fetchCoupons = async (couponIds) => {\n  const {\n    data\n  } = await couponApi.getCoupons(couponIds);\n  return {\n    coupons: data\n  };\n};\nconst fetchCouponCollectionCoupon = (query) => {\n  const coupon = formatToCoupon(query.coupon);\n  return {\n    coupons: coupon ? [coupon] : []\n  };\n};\nconst queryCoupons = (couponIds, query) => {\n  if (query === void 0) {\n    return {\n      coupons: []\n    };\n  }\n  switch (query.type) {\n    case QueryType.Coupon:\n      return fetchCoupons(couponIds);\n    case QueryType.CouponCollection:\n      return fetchCouponCollectionCoupon(query);\n    default:\n      return {\n        coupons: []\n      };\n  }\n};\nexport {\n  useCouponsQuery\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef } from \"react\";\nimport { ComponentName } from \"../../../styles/ComponentName.js\";\nimport { createWithStyle } from \"../../../styles/createWithStyle.js\";\nimport { css } from \"../../../styles/css.js\";\nimport { useFold } from \"./Root.hooks.js\";\nimport { cx } from \"framer\";\nimport { Skeleton } from \"../Skeleton/Skeleton.js\";\nconst {\n  classNames,\n  withStyle\n} = createWithStyle(ComponentName.FoldableListRoot, {\n  container: css`\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n  `\n});\nconst FoldableListContext = createContext(null);\nconst Root = withStyle(forwardRef(({\n  children,\n  className,\n  theme = \"light\",\n  pending = false,\n  ...rest\n}, ref) => {\n  const {\n    isFolded,\n    toggleFold\n  } = useFold();\n  if (pending) {\n    return /* @__PURE__ */ jsx(Skeleton, { style: {\n      ...skeletonStyle,\n      ...skeletonStyleByTheme[theme]\n    } });\n  }\n  return /* @__PURE__ */ jsx(FoldableListContext.Provider, { value: {\n    theme,\n    isFolded,\n    toggleFold\n  }, children: /* @__PURE__ */ jsx(\"div\", { className: cx(className, classNames.container), ref, ...rest, children }) });\n}));\nconst skeletonStyle = {\n  width: 100,\n  height: 20,\n  borderRadius: 4\n};\nconst skeletonStyleByTheme = {\n  light: {\n    backgroundColor: \"#dee2e6\"\n  },\n  dark: {\n    backgroundColor: \"#27272a\"\n  }\n};\nexport {\n  FoldableListContext,\n  Root\n};\n", "import { useState, useContext } from \"react\";\nimport { FoldableListContext } from \"./Root.js\";\nconst useFold = () => {\n  const [isFolded, setIsFolded] = useState(true);\n  const toggleFold = () => {\n    setIsFolded((prev) => !prev);\n  };\n  return {\n    isFolded,\n    toggleFold\n  };\n};\nconst useFoldableListContext = () => {\n  const context = useContext(FoldableListContext);\n  if (!context) {\n    throw new Error(\"useFoldableListContext should be used within Root\");\n  }\n  return context;\n};\nexport {\n  useFold,\n  useFoldableListContext\n};\n", "import { useAnimationControls } from \"framer-motion\";\nimport { useFoldableListContext } from \"./Root.hooks.js\";\nimport { useEffect } from \"react\";\nconst useFoldControls = () => {\n  const {\n    isFolded\n  } = useFoldableListContext();\n  const controls = useAnimationControls();\n  useEffect(() => {\n    if (isFolded) {\n      controls.start({\n        height: 0\n      });\n    } else {\n      controls.start({\n        height: \"auto\"\n      });\n    }\n  }, [isFolded]);\n  return controls;\n};\nexport {\n  useFoldControls\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { ComponentName } from \"../../../styles/ComponentName.js\";\nimport { createWithStyle } from \"../../../styles/createWithStyle.js\";\nimport { css } from \"../../../styles/css.js\";\nimport { motion } from \"framer-motion\";\nimport { cx } from \"framer\";\nimport { useFoldControls } from \"./Content.hooks.js\";\nconst {\n  classNames,\n  withStyle\n} = createWithStyle(ComponentName.FoldableListContent, {\n  container: css`\n    display: flex;\n    flex-direction: column;\n    gap: 2px;\n    padding-top: 7px;\n  `\n});\nconst Content = withStyle(forwardRef(({\n  children,\n  className,\n  ...rest\n}, ref) => {\n  const controls = useFoldControls();\n  return /* @__PURE__ */ jsx(motion.div, { ref, initial: {\n    height: 0\n  }, animate: controls, style: {\n    overflow: \"hidden\"\n  }, transition: {\n    type: \"spring\",\n    stiffness: 500,\n    damping: 60,\n    mass: 1\n  }, children: /* @__PURE__ */ jsx(\"div\", { className: cx(className, classNames.container), ...rest, children }) });\n}));\nexport {\n  Content\n};\n", "const textStyleByTheme = {\n  light: {\n    color: \"#474747\"\n  },\n  dark: {\n    color: \"#a0a0a0\"\n  }\n};\nexport {\n  textStyleByTheme\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { cx } from \"framer\";\nimport { forwardRef } from \"react\";\nimport { ComponentName } from \"../../../styles/ComponentName.js\";\nimport { createWithStyle } from \"../../../styles/createWithStyle.js\";\nimport { css } from \"../../../styles/css.js\";\nimport { typographyCSS } from \"../../../styles/typography.js\";\nimport { useFoldableListContext } from \"./Root.hooks.js\";\nimport { textStyleByTheme } from \"./Root.constants.js\";\nconst {\n  classNames,\n  withStyle\n} = createWithStyle(ComponentName.FoldableListItem, {\n  \"container\": css`\n    display: flex;\n\n    ${typographyCSS(12, 400)};\n\n    line-height: 1.6em;\n    white-space: pre-wrap;\n    word-break: keep-all;\n  `,\n  \"container::before\": css`\n    content: '\u2022';\n    font-size: 16px;\n    margin-right: 6px;\n  `\n});\nconst Item = withStyle(forwardRef(({\n  children,\n  className,\n  style,\n  ...rest\n}, ref) => {\n  const {\n    theme\n  } = useFoldableListContext();\n  return /* @__PURE__ */ jsx(\"div\", { ref, className: cx(className, classNames.container), style: {\n    ...textStyleByTheme[theme],\n    ...style\n  }, ...rest, children });\n}));\nexport {\n  Item\n};\n", "import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { AnimatePresence, motion } from \"framer-motion\";\nimport { forwardRef } from \"react\";\nimport { ComponentName } from \"../../../styles/ComponentName.js\";\nimport { createWithStyle } from \"../../../styles/createWithStyle.js\";\nimport { css } from \"../../../styles/css.js\";\nimport { typographyCSS } from \"../../../styles/typography.js\";\nimport { Icon } from \"../Icon/Icon.js\";\nimport { cx } from \"framer\";\nimport { useFoldableListContext } from \"./Root.hooks.js\";\nimport \"../../../hooks/stores/content/content.store.js\";\nimport \"../../../utils/event-properties/source.js\";\nimport { isCanvas } from \"../../../utils/framer/isCanvas.js\";\nimport { textStyleByTheme } from \"./Root.constants.js\";\nconst {\n  classNames,\n  withStyle\n} = createWithStyle(ComponentName.FoldableListTrigger, {\n  container: css`\n    display: flex;\n    align-items: center;\n    gap: 4px;\n    cursor: pointer;\n  `,\n  text: typographyCSS(14, 500, 1.6)\n});\nconst Trigger = withStyle(forwardRef(({\n  children,\n  className,\n  textStyle,\n  icons,\n  onClick,\n  ...rest\n}, ref) => {\n  const {\n    theme,\n    isFolded,\n    toggleFold\n  } = useFoldableListContext();\n  const {\n    initial = \"chevronDown\",\n    active = \"chevronUp\",\n    size = 14\n  } = icons ?? {};\n  const handleClick = (e) => {\n    onClick == null ? void 0 : onClick(e);\n    toggleFold();\n  };\n  return /* @__PURE__ */ jsxs(\"div\", { ref, className: cx(className, classNames.container), onClick: handleClick, ...rest, children: [\n    /* @__PURE__ */ jsx(\"div\", { className: classNames.text, style: {\n      ...textStyleByTheme[theme],\n      ...baseTextStyle,\n      ...textStyle\n    }, children }),\n    /* @__PURE__ */ jsx(AnimatePresence, { mode: \"wait\", children: /* @__PURE__ */ jsx(motion.div, { style: {\n      display: \"flex\",\n      alignItems: \"center\",\n      justifyContent: \"center\"\n    }, animate: {\n      opacity: 1\n    }, initial: {\n      opacity: isCanvas() ? 1 : 0\n    }, exit: {\n      opacity: 0\n    }, transition: {\n      duration: 0.2\n    }, children: /* @__PURE__ */ jsx(Icon, { type: isFolded ? initial : active, color: textStyleByTheme[theme].color, size, weight: \"bold\" }) }, isFolded ? \"plus\" : \"minus\") })\n  ] });\n}));\nconst baseTextStyle = {\n  minHeight: 20,\n  display: \"flex\",\n  alignItems: \"center\"\n};\nexport {\n  Trigger\n};\n", "import { Content } from \"./Content.js\";\nimport { Item } from \"./Item.js\";\nimport { Root } from \"./Root.js\";\nimport { Trigger } from \"./Trigger.js\";\nconst FoldableList = {\n  Root,\n  Trigger,\n  Content,\n  Item\n};\nexport {\n  FoldableList\n};\n", "import { CouponType, DiscountType, AvailableDayType } from \"../../../../types/models/coupon.js\";\nimport { deduplicate } from \"../../../../utils/deduplicate.js\";\nimport head from \"../../../../node_modules/lodash-es/head.js\";\nimport { parseISO } from \"../../../../node_modules/date-fns/parseISO.js\";\nimport { formatDate as format } from \"../../../../node_modules/date-fns/format.js\";\nconst DATE_FORMAT = \"yyyy/MM/dd HH:mm\";\nconst HOURS_IN_DAY = 24;\nconst getCouponNotices = (couponType, coupons) => {\n  const coupon = head(coupons);\n  if (!coupon) {\n    return [];\n  }\n  const formattedAvailablePeriod = formatAvailablePeriod(coupon);\n  const formattedMaxDiscountPrice = formatMaxDiscountPrice(couponType, sortCouponsByDiscountValueAscending(coupons));\n  const maxIssueCountNotice = createMaxIssueCountNotice(coupon.personMaxIssueCount);\n  if (couponType === CouponType.RANDOM) {\n    return getRandomCouponNotices(formattedAvailablePeriod, formattedMaxDiscountPrice);\n  }\n  if (coupon.discountType === DiscountType.FIXED_RATE) {\n    return getRateCouponNotices(formattedAvailablePeriod, formattedMaxDiscountPrice, maxIssueCountNotice);\n  }\n  return getAmountCouponNotices(formattedAvailablePeriod, formattedMaxDiscountPrice, maxIssueCountNotice);\n};\nconst createMaxIssueCountNotice = (maxIssueCount) => {\n  if (!maxIssueCount) {\n    return \"\";\n  }\n  const hasMaxIssueCount = maxIssueCount > 0;\n  if (!hasMaxIssueCount) {\n    return \"\uCFE0\uD3F0\uC740 \uC774\uBCA4\uD2B8 \uAE30\uAC04 \uC911\uBCF5 \uBC1C\uAE09 \uAC00\uB2A5\uD569\uB2C8\uB2E4.\";\n  }\n  return `\uCFE0\uD3F0\uC740 \uC774\uBCA4\uD2B8 \uAE30\uAC04 \uB3D9\uC548 \uD558\uB098\uC758 ID \uB2F9 ${maxIssueCount}\uD68C \uBC1C\uAE09 \uBC0F \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4.`;\n};\nconst formatMaxDiscountPrice = (couponType, coupons) => {\n  const hasMaxDiscountPrice = coupons.some((coupon2) => coupon2.maxDiscountPrice > 0);\n  if (!hasMaxDiscountPrice) {\n    return \"\uC81C\uD55C \uC5C6\uC74C\";\n  }\n  const [coupon] = coupons;\n  if (couponType === CouponType.RANDOM) {\n    return formatRandomCouponMaxDiscountPrice(coupons);\n  }\n  if (coupon.discountType === DiscountType.FIXED_PRICE) {\n    return formatAmountCouponMaxDiscountPrice(coupons);\n  }\n  return formatRateCouponMaxDiscountPrice(coupons);\n};\nconst formatRateCouponMaxDiscountPrice = (coupons) => {\n  return `${composeWithUnit(getMaxDiscountPrice(coupons), \"\uC6D0\")}`;\n};\nconst formatAmountCouponMaxDiscountPrice = (coupons) => {\n  const uniquified = uniquifyCouponsByMinPayAmount(coupons);\n  const formatted = uniquified.reduce((acc, curr) => {\n    const {\n      maxDiscountPrice,\n      minPayAmount\n    } = curr;\n    acc.push(`${composeWithUnit(minPayAmount, \"\uC6D0\")} \uC774\uC0C1 \uAD6C\uB9E4 \uC2DC ${composeWithUnit(maxDiscountPrice, \"\uC6D0\")} \uD560\uC778`);\n    return acc;\n  }, []);\n  return formatted.join(\", \");\n};\nconst formatRandomCouponMaxDiscountPrice = (coupons) => {\n  const uniquified = uniquifyCouponsByDiscountValue(coupons);\n  const formatted = uniquified.reduce((acc, curr) => {\n    const {\n      discountType,\n      discountValue,\n      maxDiscountPrice\n    } = curr;\n    acc.push(`${composeWithUnitByType(discountType, discountValue)} \uCFE0\uD3F0 ${composeWithUnit(maxDiscountPrice, \"\uC6D0\")} \uD560\uC778`);\n    return acc;\n  }, []);\n  return formatted.join(\", \");\n};\nconst formatAvailablePeriod = (coupon) => {\n  if (coupon.useAvailableDayType === AvailableDayType.DAY) {\n    return `\uCFE0\uD3F0 \uBC1C\uAE09 \uD6C4 ${coupon.couponUseAfterDay * HOURS_IN_DAY}\uC2DC\uAC04 \uC774\uB0B4`;\n  }\n  if (coupon.useAvailableDayType === AvailableDayType.RANGE) {\n    const availableStartAt = parseISO(coupon.couponUseStartAt);\n    const availableEndAt = parseISO(coupon.couponUseEndAt);\n    return `${format(availableStartAt, DATE_FORMAT)} - ${format(availableEndAt, DATE_FORMAT)}`;\n  }\n  return \"\uC5C6\uC74C\";\n};\nconst uniquifyCouponsByDiscountValue = (coupons) => {\n  return deduplicate(coupons, (x, y) => x.discountValue === y.discountValue && x.maxDiscountPrice === y.maxDiscountPrice);\n};\nconst uniquifyCouponsByMinPayAmount = (coupons) => {\n  return deduplicate(coupons, (x, y) => x.minPayAmount === y.minPayAmount && x.maxDiscountPrice === y.maxDiscountPrice);\n};\nconst sortCouponsByDiscountValueAscending = (coupons) => {\n  return [...coupons].sort((x, y) => x.discountValue - y.discountValue);\n};\nconst getMaxDiscountPrice = (coupons) => {\n  return Math.max(...coupons.map((coupon) => coupon.maxDiscountPrice));\n};\nconst getRandomCouponNotices = (availablePeriod, maxDiscountPrice) => [`\uCFE0\uD3F0 \uC0AC\uC6A9 \uAE30\uAC04 : ${availablePeriod}`, `\uCFE0\uD3F0 \uCD5C\uB300 \uD560\uC778 \uAE08\uC561 : ${maxDiscountPrice}`, `\uB2E4\uC6B4\uB85C\uB4DC\uD55C \uCFE0\uD3F0\uC740 'MY PAGE > \uC0AC\uC6A9 \uAC00\uB2A5 \uCFE0\uD3F0'\uC5D0\uC11C \uD655\uC778 \uAC00\uB2A5\uD569\uB2C8\uB2E4.`, `\uCFE0\uD3F0\uC744 \uC0AC\uC6A9\uD55C \uC774\uB825\uC774 \uC788\uB294 \uACBD\uC6B0 \uCFE0\uD3F0\uC740 \uBCF4\uC774\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`, `\uCFE0\uD3F0 \uC18C\uBA78, \uBC1C\uAE09 \uC911\uB2E8, \uC0AC\uC6A9 \uC644\uB8CC\uB41C \uCFE0\uD3F0\uC740 \uAD6C\uB9E4 \uCDE8\uC18C \uC2DC \uBCC4\uB3C4 \uC7AC\uBC1C\uAE09\uC774 \uBD88\uAC00\uD569\uB2C8\uB2E4.`, `\uBE0C\uB79C\uB4DC \uC815\uCC45\uC5D0 \uB530\uB77C \uC77C\uBD80 \uC0C1\uD488 \uCFE0\uD3F0 \uC801\uC6A9\uC774 \uBD88\uAC00\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`];\nconst getRateCouponNotices = (availablePeriod, maxDiscountPrice, maxIssueCountNotice) => [`\uCFE0\uD3F0 \uC0AC\uC6A9 \uAE30\uAC04 : ${availablePeriod}`, `\uCFE0\uD3F0 \uCD5C\uB300 \uD560\uC778 \uAE08\uC561 : ${maxDiscountPrice}`, maxIssueCountNotice, `\uB2E4\uC6B4\uB85C\uB4DC\uD55C \uCFE0\uD3F0\uC740 'MY PAGE > \uC0AC\uC6A9 \uAC00\uB2A5 \uCFE0\uD3F0'\uC5D0\uC11C \uD655\uC778 \uAC00\uB2A5\uD569\uB2C8\uB2E4.`, `\uD574\uB2F9 \uCFE0\uD3F0\uC740 \uC774\uBCA4\uD2B8 \uCC38\uC5EC \uC0C1\uD488 \uB300\uC0C1\uC73C\uB85C\uB9CC \uC801\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4.`, `\uCFE0\uD3F0 \uC801\uC6A9 \uAC00\uB2A5 \uC0C1\uD488\uC740 \uC218\uC2DC\uB85C \uBCC0\uACBD\uB418\uBA70, \uC77C\uBD80 \uD488\uBAA9\uC5D0 \uD55C\uD558\uC5EC \uCFE0\uD3F0 \uC801\uC6A9\uC774 \uC81C\uD55C\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`, `\uBE0C\uB79C\uB4DC \uC7AC\uACE0 \uC0AC\uC815\uC5D0 \uB530\uB77C \uD488\uC808\uC774\uB098 \uD658\uBD88 \uC548\uB0B4\uB97C \uBC1B\uAC8C \uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`];\nconst getAmountCouponNotices = (availablePeriod, maxDiscountPrice, maxIssueCountNotice) => {\n  return [`\uCFE0\uD3F0 \uC0AC\uC6A9 \uAE30\uAC04 : ${availablePeriod}`, `\uCFE0\uD3F0 \uCD5C\uB300 \uD560\uC778 \uAE08\uC561 : ${maxDiscountPrice}`, maxIssueCountNotice, `\uB2E4\uC6B4\uB85C\uB4DC\uD55C \uCFE0\uD3F0\uC740 'MY PAGE > \uC0AC\uC6A9 \uAC00\uB2A5 \uCFE0\uD3F0'\uC5D0\uC11C \uD655\uC778 \uAC00\uB2A5\uD569\uB2C8\uB2E4.`, `\uD574\uB2F9 \uCFE0\uD3F0\uC740 \uC774\uBCA4\uD2B8 \uCC38\uC5EC \uC0C1\uD488 \uB300\uC0C1\uC73C\uB85C\uB9CC \uC801\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4.`, `\uCFE0\uD3F0 \uC801\uC6A9 \uAC00\uB2A5 \uC0C1\uD488\uC740 \uC218\uC2DC\uB85C \uBCC0\uACBD\uB418\uBA70, \uC77C\uBD80 \uD488\uBAA9\uC5D0 \uD55C\uD558\uC5EC \uCFE0\uD3F0 \uC801\uC6A9\uC774 \uC81C\uD55C\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`, `\uBE0C\uB79C\uB4DC \uC7AC\uACE0 \uC0AC\uC815\uC5D0 \uB530\uB77C \uD488\uC808\uC774\uB098 \uD658\uBD88 \uC548\uB0B4\uB97C \uBC1B\uAC8C \uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`];\n};\nconst composeWithUnitByType = (discountType, discountValue) => {\n  switch (discountType) {\n    case DiscountType.FIXED_RATE:\n      return composeWithUnit(discountValue, \"%\");\n    case DiscountType.FIXED_PRICE:\n      return composeWithUnit(discountValue, \"\uC6D0\");\n  }\n};\nconst composeWithUnit = (discountValue, unit) => {\n  return `${discountValue.toLocaleString(\"ko-KR\")}${unit}`;\n};\nexport {\n  composeWithUnit,\n  composeWithUnitByType,\n  getCouponNotices\n};\n", "import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { FoldableList } from \"../../../@shared/FoldableList/index.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 \"../../../../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 \"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 \"../../../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 { typography } from \"../../../../styles/typography.js\";\nimport { getCouponNotices } from \"./NoticesElement.utils.js\";\nimport { filterMap } from \"../../../../utils/filterMap.js\";\nconst NoticesElement = ({\n  couponType,\n  coupons,\n  mainNotices,\n  hasAdditionalNotices,\n  additionalNotices\n}) => {\n  const theme = useTheme();\n  const uniqueMainNotices = [...new Set(mainNotices)];\n  const mergedAdditionalNotices = useMemo(() => [...getCouponNotices(couponType, coupons), ...additionalNotices], [couponType, coupons, additionalNotices]);\n  const uniqueAdditionalNotices = [...new Set(mergedAdditionalNotices)];\n  const hasMainNotices = mainNotices.length > 0;\n  const hasNotices = hasMainNotices || hasAdditionalNotices;\n  if (!hasNotices) {\n    return null;\n  }\n  return /* @__PURE__ */ jsxs(\"div\", { style: noticesLayout, children: [\n    hasMainNotices ? /* @__PURE__ */ jsx(\"div\", { style: mainNoticesStyle, children: uniqueMainNotices.map((notice) => /* @__PURE__ */ jsxs(\"div\", { style: {\n      ...typography(12, 400),\n      ...mainNoticeStyleByTheme[theme]\n    }, children: [\n      \"*\",\n      notice\n    ] }, notice)) }) : null,\n    hasAdditionalNotices ? /* @__PURE__ */ jsxs(FoldableList.Root, { theme, children: [\n      /* @__PURE__ */ jsx(FoldableList.Trigger, { style: {\n        gap: 2\n      }, textStyle: typography(12, 700), icons: {\n        initial: \"chevronDown\",\n        active: \"chevronUp\",\n        size: 12\n      }, children: \"\uC720\uC758\uC0AC\uD56D \uB354\uBCF4\uAE30\" }),\n      /* @__PURE__ */ jsx(FoldableList.Content, { children: filterMap(uniqueAdditionalNotices, (notice) => notice !== \"\", (notice) => /* @__PURE__ */ jsx(FoldableList.Item, { children: notice }, notice)) })\n    ] }) : null\n  ] });\n};\nconst noticesLayout = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: \"12px\",\n  marginTop: \"8px\"\n};\nconst mainNoticesStyle = {\n  width: \"100%\",\n  display: \"flex\",\n  flexDirection: \"column\"\n};\nconst mainNoticeStyleByTheme = {\n  light: {\n    color: \"#474747\"\n  },\n  dark: {\n    color: \"#a0a0a0\"\n  }\n};\nexport {\n  NoticesElement\n};\n", "import { useRef, useCallback } from \"react\";\nimport { useUpdatedRef } from \"./useUpdatedRef.js\";\nimport { useWindowEventListener } from \"./useWindowEventListener.js\";\nconst useInViewport = (callback) => {\n  const ref = useRef(null);\n  const prevIsInViewport = useRef(false);\n  const updatedCallback = useUpdatedRef(callback);\n  const handleScroll = useCallback(() => {\n    if (ref.current === null) {\n      return;\n    }\n    const isInViewport = getIsInViewport(ref.current);\n    if (isInViewport !== prevIsInViewport.current) {\n      updatedCallback.current(isInViewport);\n    }\n    prevIsInViewport.current = isInViewport;\n  }, []);\n  useWindowEventListener(\"scroll\", handleScroll);\n  return ref;\n};\nconst getIsInViewport = (element) => {\n  const {\n    offsetHeight\n  } = element;\n  const top = getAbsoluteOffsetTop(element);\n  const bottom = top + offsetHeight;\n  const isElementInViewport = window.scrollY <= top && bottom <= window.scrollY + window.innerHeight;\n  const isViewportInElement = top <= window.scrollY && window.scrollY + window.innerHeight <= bottom;\n  return isViewportInElement || isElementInViewport;\n};\nconst getAbsoluteOffsetTop = (element) => {\n  return Math.round(element.getBoundingClientRect().top + window.scrollY);\n};\nexport {\n  useInViewport\n};\n", "function mergeRefs(refs) {\n  return (value) => {\n    refs.forEach((ref) => {\n      if (typeof ref === \"function\") {\n        ref(value);\n      } else if (ref != null) {\n        ref.current = value;\n      }\n    });\n  };\n}\nexport {\n  mergeRefs\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef, useRef } from \"react\";\nimport { useInViewport } from \"../../../hooks/useInViewport.js\";\nimport \"../../../hooks/stores/content/content.store.js\";\nimport \"../../../utils/event-properties/source.js\";\nimport \"framer\";\nimport { mergeRefs } from \"../../../utils/react/mergeRefs.js\";\nconst EventTriggerContext = createContext({\n  isViewportEntered: () => false,\n  canTriggerFallbackImpression: () => false,\n  setCanTriggerFallbackImpression: () => {\n  },\n  types: [],\n  onImpression: void 0\n});\nconst Root = forwardRef(({\n  children,\n  className,\n  style,\n  types,\n  onImpression\n}, ref) => {\n  const isViewportEntered = useRef(false);\n  const canTriggerFallbackImpression = useRef(true);\n  const observeViewport = types.includes(\"impression\");\n  const handleViewportEnter = () => {\n    if (canTriggerFallbackImpression.current) {\n      onImpression == null ? void 0 : onImpression();\n    }\n    isViewportEntered.current = true;\n    canTriggerFallbackImpression.current = false;\n  };\n  const handleViewportLeave = () => {\n    isViewportEntered.current = false;\n    canTriggerFallbackImpression.current = true;\n  };\n  const containerRef = useInViewport((isInViewport) => {\n    if (!observeViewport) {\n      return;\n    }\n    if (isInViewport) {\n      handleViewportEnter();\n    } else {\n      handleViewportLeave();\n    }\n  });\n  return /* @__PURE__ */ jsx(EventTriggerContext.Provider, { value: {\n    isViewportEntered: () => isViewportEntered.current,\n    canTriggerFallbackImpression: () => canTriggerFallbackImpression.current,\n    setCanTriggerFallbackImpression: (next) => canTriggerFallbackImpression.current = next,\n    types,\n    onImpression\n  }, children: /* @__PURE__ */ jsx(\"div\", { ref: mergeRefs([containerRef, ref]), className, style: {\n    width: \"100%\",\n    ...style\n  }, children }) });\n});\nexport {\n  EventTriggerContext,\n  Root\n};\n", "import { useContext } from \"react\";\nimport { EventTriggerContext } from \"./Root.js\";\nconst useEventTriggerContext = () => useContext(EventTriggerContext);\nexport {\n  useEventTriggerContext\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { useEventTriggerContext } from \"./Root.hooks.js\";\nconst Target = forwardRef(({\n  children,\n  onClick,\n  ...rest\n}, ref) => {\n  const {\n    isViewportEntered,\n    canTriggerFallbackImpression,\n    setCanTriggerFallbackImpression,\n    types,\n    onImpression\n  } = useEventTriggerContext();\n  const handleClick = (e) => {\n    onClick == null ? void 0 : onClick(e);\n    const shouldTriggerFallbackImpression = types.includes(\"impression\") && !isViewportEntered() && canTriggerFallbackImpression();\n    if (shouldTriggerFallbackImpression) {\n      onImpression == null ? void 0 : onImpression();\n      setCanTriggerFallbackImpression(false);\n    }\n  };\n  return /* @__PURE__ */ jsx(\"div\", { ref, ...rest, onClick: handleClick, children });\n});\nexport {\n  Target\n};\n", "import { Root } from \"./Root.js\";\nimport { Target } from \"./Target.js\";\nconst EventTrigger = {\n  Root,\n  Target\n};\nexport {\n  EventTrigger\n};\n", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { Coupon } from \"../../../@shared/Coupon/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 { useCurrentUser } from \"../../../../hooks/useCurrentUser.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/core/dist/index.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 \"../../../../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 \"../../../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 \"../../../systems/curations/IntersectionProvider/IntersectionProvider.js\";\nimport { useIntersectionContext } from \"../../../systems/curations/IntersectionProvider/IntersectionProvider.hooks.js\";\nimport { useFetchDownloadableCouponSummaries } from \"../../../../hooks/fetchers/useFetchDownloadableCouponSummaries.js\";\nimport { useDownloadCoupons } from \"../../../../hooks/useDownloadCoupons.js\";\nimport { getCouponName, getCouponStatus, getDescriptionByStatus, markAsDownloaded } from \"./CouponElement.utils.js\";\nimport { useCouponIds } from \"./CouponElement.hooks.js\";\nimport { useCouponsQuery } from \"../CouponModule.hooks.js\";\nimport { NoticesElement } from \"../NoticesElement/NoticesElement.js\";\nimport { toBackgroundColor } from \"../../../../libs/property-controls/coupon.js\";\nimport { useTrackSnowplowEvent } from \"../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nimport { useComponentId } from \"../../../systems/curations/EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../../../systems/curations/EventTrackingProvider/EventTrackingProvider.js\";\nimport { EventTrigger } from \"../../../@shared/EventTrigger/index.js\";\nimport { getPaddingStyle } from \"../../../../utils/spacing.js\";\nimport head from \"../../../../node_modules/lodash-es/head.js\";\nconst CouponElement = ({\n  query,\n  layout\n}) => {\n  const {\n    logged,\n    userNo\n  } = useCurrentUser();\n  const componentId = useComponentId();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const theme = useTheme();\n  const {\n    isInView\n  } = useIntersectionContext();\n  const {\n    couponIds,\n    couponType\n  } = useCouponIds({\n    query\n  });\n  const {\n    coupons\n  } = useCouponsQuery({\n    query,\n    couponIds,\n    enabled: isInView\n  });\n  const headCoupon = head(coupons);\n  const hasCoupon = headCoupon !== void 0;\n  const {\n    isLoading,\n    summaries,\n    mutate\n  } = useFetchDownloadableCouponSummaries(couponIds, userNo, isInView);\n  const handleCouponDownloadSuccess = () => {\n    if (!headCoupon) {\n      return;\n    }\n    trackSnowplowEvent(\"click_button\", {\n      section_name: componentId || \"unknown_section\",\n      section_title: componentId || \"unknown_section\",\n      position: -1,\n      button_id: `coupondown_${headCoupon.id}`,\n      button_name: headCoupon.couponName,\n      layout_position: -1\n    });\n  };\n  const {\n    validate,\n    download\n  } = useDownloadCoupons(couponType, headCoupon == null ? void 0 : headCoupon.discountType, handleCouponDownloadSuccess);\n  const shouldRender = query && hasCoupon && (!isLoading || !logged);\n  if (!shouldRender) {\n    return /* @__PURE__ */ jsx(Coupon.Root, { loading: true, theme });\n  }\n  const downloadCount = Math.max(headCoupon.personMaxIssueCount ?? 1, 1);\n  const downloadCoupon = async () => {\n    await download(couponIds, downloadCount, true);\n    return markAsDownloaded(summaries, couponIds);\n  };\n  const handleClick = () => {\n    if (!validate()) {\n      return;\n    }\n    mutate(downloadCoupon(), {\n      optimisticData: markAsDownloaded(summaries, couponIds),\n      rollbackOnError: true,\n      populateCache: true,\n      revalidate: true\n    });\n  };\n  const handleImpression = () => {\n    trackSnowplowEvent(\"impression_content\", {\n      section_name: componentId || \"unknown_section\",\n      section_title: componentId || \"unknown_section\",\n      position: -1,\n      layout_position: -1,\n      layout_id: `coupondown_${headCoupon.id}`\n    });\n  };\n  const canDownload = summaries.every((summary) => summary.canDownload);\n  const couponName = getCouponName(coupons, query);\n  const status = getCouponStatus(headCoupon, canDownload, logged, query);\n  const description = getDescriptionByStatus(headCoupon)[status];\n  const {\n    backgroundColor,\n    ...rest\n  } = layout;\n  return /* @__PURE__ */ jsxs(EventTrigger.Root, { types: [\"impression\"], onImpression: handleImpression, children: [\n    /* @__PURE__ */ jsxs(Coupon.Root, { theme, style: {\n      padding: getPaddingStyle(layout)\n    }, backgroundColor: toBackgroundColor(backgroundColor), status, children: [\n      /* @__PURE__ */ jsxs(Coupon.Summary, { children: [\n        /* @__PURE__ */ jsx(Coupon.Title, { children: couponName }),\n        /* @__PURE__ */ jsx(Coupon.Description, { children: description })\n      ] }),\n      /* @__PURE__ */ jsx(Coupon.Divider, {}),\n      /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: handleClick, style: {\n        aspectRatio: \"1 / 1\"\n      }, children: /* @__PURE__ */ jsx(Coupon.Button, {}) })\n    ] }),\n    /* @__PURE__ */ jsx(NoticesElement, { couponType, coupons, ...rest })\n  ] });\n};\nexport {\n  CouponElement\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { useQueryStore } from \"../../query-store/query.store.js\";\nimport { CouponElement } from \"../CouponElement/CouponElement.js\";\nimport { createKey } from \"../../utils/key.js\";\nconst LinkedCouponModule = ({\n  value,\n  layout\n}) => {\n  const query = useQueryStore((state) => state.queries[value]);\n  return /* @__PURE__ */ jsx(CouponElement, { query, layout }, createKey(query));\n};\nexport {\n  LinkedCouponModule\n};\n", "import { ControlType } from \"framer\";\nconst COUPON_NOTICES_CONTROLS = {\n  mainNotices: {\n    type: ControlType.Array,\n    title: \"\uBA54\uC778 \uC720\uC758\uC0AC\uD56D\",\n    description: \"\uC0C1\uC2DC \uB178\uCD9C\uB418\uB294 \uC720\uC758\uC0AC\uD56D\uC73C\uB85C, \uCD5C\uB300 \uB450 \uC904 \uC785\uB825\uC774 \uAC00\uB2A5\uD569\uB2C8\uB2E4.\",\n    control: {\n      type: ControlType.String\n    },\n    maxCount: 2\n  },\n  hasAdditionalNotices: {\n    type: ControlType.Boolean,\n    title: \"\uCD94\uAC00 \uC720\uC758\uC0AC\uD56D \uB178\uCD9C\",\n    enabledTitle: \"\uB178\uCD9C\",\n    disabledTitle: \"\uBBF8\uB178\uCD9C\",\n    defaultValue: false\n  },\n  additionalNotices: {\n    hidden: ({\n      hasAdditionalNotices\n    }) => hasAdditionalNotices === false,\n    type: ControlType.Array,\n    title: \"\uCD94\uAC00 \uC720\uC758\uC0AC\uD56D\",\n    description: \"\uB354\uBCF4\uAE30 \uD074\uB9AD \uC2DC \uB178\uCD9C\uB418\uB294 \uCD94\uAC00 \uC720\uC758\uC0AC\uD56D\uC785\uB2C8\uB2E4.\",\n    control: {\n      type: ControlType.String\n    }\n  }\n};\nexport {\n  COUPON_NOTICES_CONTROLS\n};\n", "import { combineObjectPropertyControls } from \"../../../libs/property-controls/helpers.js\";\nimport { QUERY_CONTROL, COUPON_CONTROLS } from \"../controls.js\";\nconst MANUAL_COUPON_MODULE_QUERY = {\n  ...QUERY_CONTROL,\n  controls: combineObjectPropertyControls(COUPON_CONTROLS)\n};\nexport {\n  MANUAL_COUPON_MODULE_QUERY\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { COUPON_CONTROLS } from \"../../../libs/property-controls/coupon.js\";\nimport { THEME_CONTROLS } from \"../../../libs/property-controls/theme.js\";\nimport { CouponModuleInputType } from \"./CouponModule.types.js\";\nimport { LinkedCouponModule } from \"./LinkedCouponModule/LinkedCouponModule.js\";\nimport { COUPON_NOTICES_CONTROLS } from \"../../../libs/property-controls/coupon-notices.js\";\nimport { COMPONENT_ID_PROPS } from \"../../../libs/property-controls/component-id.js\";\nimport { CouponElement } from \"./CouponElement/CouponElement.js\";\nimport { SectionLayout } from \"../../systems/curations/SectionLayout/SectionLayout.js\";\nimport { MANUAL_COUPON_MODULE_QUERY } from \"./CouponModule.controls.js\";\nconst CouponModuleInner = ({\n  input,\n  layout\n}) => {\n  switch (input.type) {\n    case CouponModuleInputType.Linked:\n      return /* @__PURE__ */ jsx(LinkedCouponModule, { value: input.value, layout });\n    case CouponModuleInputType.Manual:\n      return /* @__PURE__ */ jsx(CouponElement, { query: input.query, layout });\n    default:\n      return null;\n  }\n};\nconst CouponModule = ({\n  theme,\n  componentId,\n  ...rest\n}) => {\n  return /* @__PURE__ */ jsx(SectionLayout, { componentId, theme, children: /* @__PURE__ */ jsx(CouponModuleInner, { ...rest }) });\n};\naddPropertyControls(CouponModule, {\n  ...THEME_CONTROLS,\n  ...COMPONENT_ID_PROPS,\n  input: {\n    type: ControlType.Object,\n    title: \"\uC785\uB825 \uAC12\",\n    controls: {\n      type: {\n        type: ControlType.Enum,\n        title: \"\uC720\uD615\",\n        options: [CouponModuleInputType.Manual, CouponModuleInputType.Linked],\n        optionTitles: [\"\uC218\uB3D9\", \"\uC5F0\uACB0\"]\n      },\n      value: {\n        hidden: ({\n          type\n        }) => type !== CouponModuleInputType.Linked,\n        type: ControlType.String,\n        title: \"\uCD9C\uB825 \uAC12\",\n        defaultValue: \"\"\n      },\n      query: {\n        hidden: ({\n          type\n        }) => type !== CouponModuleInputType.Manual,\n        ...MANUAL_COUPON_MODULE_QUERY\n      }\n    }\n  },\n  layout: {\n    type: ControlType.Object,\n    title: \"\uB808\uC774\uC544\uC6C3\",\n    controls: {\n      ...COUPON_CONTROLS,\n      ...COUPON_NOTICES_CONTROLS,\n      padding: {\n        type: ControlType.FusedNumber,\n        title: \"\uD328\uB529\",\n        defaultValue: 0,\n        toggleKey: \"isMixed\",\n        toggleTitles: [\"All\", \"Individual\"],\n        valueKeys: [\"paddingTop\", \"paddingRight\", \"paddingBottom\", \"paddingLeft\"],\n        valueLabels: [\"T\", \"R\", \"B\", \"L\"],\n        min: 0\n      }\n    }\n  }\n});\nexport {\n  CouponModule\n};\n", "import{CouponModule}from\"https://asset.29cm.co.kr/contents/framer/components/modules/CouponModule/CouponModule.js\";CouponModule.displayName=\"CouponModule\";export default CouponModule;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CouponModule\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CouponModule.map"],
  "mappings": "qrBAOA,IAAMA,GAAkB,CACtB,gBAAiB,CACf,KAAMC,EAAY,OAClB,MAAO,kCACP,SAAU,CACR,UAAW,CACT,KAAMA,EAAY,KAClB,MAAO,eACP,aAAc,CAAC,eAAM,eAAM,gCAAO,EAClC,QAAS,CACP,UACA,QACA,UAEF,CACF,EACA,MAAO,CACL,KAAMA,EAAY,MAClB,MAAO,eACP,SAAU,GACV,OAAQ,CAAC,CACP,UAAAC,CACF,IAAMA,IAAc,OAEtB,EACA,SAAU,CACR,KAAMD,EAAY,OAClB,MAAO,iCACP,SAAU,CACR,MAAO,CACL,KAAMA,EAAY,MAClB,MAAO,+CACP,QAAS,CACP,KAAMA,EAAY,OAClB,MAAO,yCACP,SAAU,CACR,MAAO,CACL,KAAMA,EAAY,MAClB,MAAO,eACP,SAAU,EACZ,EACA,cAAe,CACb,KAAMA,EAAY,OAClB,MAAO,qBACP,KAAM,IACN,IAAK,EACL,IAAK,IACL,aAAc,EACd,KAAM,EACN,eAAgB,EAClB,CACF,CACF,CACF,EACA,OAAQ,CACN,KAAMA,EAAY,OAClB,MAAO,eACP,KAAM,MACN,aAAc,EACd,KAAM,EACN,eAAgB,EAClB,CACF,EACA,OAAQ,CAAC,CACP,UAAAC,CACF,IAAMA,IAAc,UAEtB,CACF,CACF,CACF,EACMC,GAAqBC,GAAoB,CAC7C,GAAM,CACJ,UAAAF,EAC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,YAClB,MAAO,eACP,aAAc,EACd,UAAW,UACX,aAAc,CAAC,MAAO,YAAY,EAClC,UAAW,CAAC,aAAc,eAAgB,gBAAiB,aAAa,EACxE,YAAa,CAAC,IAAK,IAAK,IAAK,GAAG,EAChC,IAAK,CACP,CACF,CACF,CACF,CAAC,EC9EkHK,GAAa,YAAY,eAAe,IAAOC,GAAQD",
  "names": ["COUPON_CONTROLS", "ControlType", "colorType", "toBackgroundColor", "backgroundColor", "color", "gradient", "variantByType", "variantByStatus", "isObject", "object", "CouponContext", "z", "Root", "Y", "children", "style", "theme", "loading", "status", "_backgroundColor", "rest", "ref", "variant", "variantByStatus", "backgroundColor", "getBackground", "te", "isObject", "getLinearGradient", "p", "containerStyle", "Skeleton", "skeletonStyle", "skeletonStyleByTheme", "wrapperStyle", "linearGradient", "stops", "degree", "gradient", "x", "y", "stop", "useCouponContext", "context", "re", "CouponContext", "Description", "Y", "children", "style", "rest", "ref", "variant", "useCouponContext", "theme", "useTheme", "p", "typography", "Divider", "Y", "children", "style", "rest", "ref", "theme", "useTheme", "p", "containerStyle", "containerStyleByTheme", "DURATION_BY_INTENSITY", "playHaptic", "intensity", "postMessage", "Button", "Y", "style", "onClick", "rest", "ref", "variant", "status", "useCouponContext", "theme", "useTheme", "icon", "text", "contentByStatus", "handleClick", "e", "playHaptic", "u", "containerStyle", "containerStyleByStatus", "p", "Icon", "typography", "Summary", "Y", "children", "style", "rest", "ref", "p", "containerStyle", "Title", "Y", "children", "style", "rest", "ref", "variant", "useCouponContext", "theme", "useTheme", "p", "typography", "Coupon", "Root", "Summary", "Title", "Description", "Divider", "Button", "parseErrorMessage", "err", "fallbackMessage", "_a", "_b", "_c", "_d", "_e", "_f", "_g", "_h", "_i", "_j", "_k", "_l", "_m", "_n", "_o", "_p", "_q", "error", "errors", "isArrayErrorDetail", "isErrorDetail", "message", "parseDirectionCode", "detail", "isObject", "value", "isObjectCustom", "mapObjectSkip", "_mapObject", "object", "mapper", "options", "isSeen", "target", "mapArray", "array", "element", "key", "mapResult", "newKey", "newValue", "shouldRecurse", "mapObject", "UPPERCASE", "LOWERCASE", "LEADING_CAPITAL", "IDENTIFIER", "SEPARATORS", "LEADING_SEPARATORS", "SEPARATORS_AND_IDENTIFIER", "NUMBERS_AND_IDENTIFIER", "preserveCamelCase", "string", "toLowerCase", "toUpperCase", "preserveConsecutiveUppercase2", "isLastCharLower", "isLastCharUpper", "isLastLastCharUpper", "isLastLastCharPreserved", "index", "character", "preserveConsecutiveUppercase", "input", "match", "postProcess", "pattern", "offset", "_", "identifier", "camelCase", "options", "x", "QuickLRU", "options", "cache", "key", "item", "value", "maxAge", "expiry", "deleted", "newSize", "items", "removeCount", "i", "oldCacheSize", "callbackFunction", "thisArgument", "has", "array", "key", "element", "cache", "QuickLRU", "isObject", "value", "transform", "input", "options", "exclude", "pascalCase", "stopPaths", "deep", "preserveConsecutiveUppercase", "stopPathsSet", "makeMapper", "parentPath", "path", "mapObject", "cacheKey", "returnValue", "camelCase", "camelcaseKeys", "COUPONS_PER_REQUEST", "CouponApiService", "couponIdList", "isDevMode", "slicedCouponIdList", "baseUrl", "environments", "env", "response", "res", "camelcaseKeys", "GENERAL_ERROR", "couponNoList", "couponId", "couponNo", "downloadCount", "promises", "userId", "error", "fallbackMessage", "message", "parseErrorMessage", "directionCode", "parseDirectionCode", "isAuthError", "couponApi", "DOWNLOADABLE_COUPON_SUMMARIES_FETCHER_KEY", "useFetchDownloadableCouponSummaries", "couponIds", "userNo", "enabled", "canFetch", "isLoading", "data", "rest", "useSWR", "couponApi", "COUPON_MULTI_ISSUE_FETCHER_KEY", "downloadCoupons", "_key", "arg", "couponIds", "downloadCount", "couponId", "couponApi", "downloadLimitedCoupons", "useDownloadCouponsMutation", "isLimited", "enabled", "onError", "onSuccess", "useSWRMutation", "DOWNLOAD_COUPON_MESSAGES", "DOWNLOAD_RANDOM_COUPON_MUTATION_KEY", "useDownloadRandomCouponMutation", "enabled", "onError", "onSuccess", "useSWRMutation", "couponApi", "useDownloadCoupons", "couponType", "CouponType", "discountType", "DiscountType", "handleCouponDownloadSuccess", "logged", "useCurrentUser", "showRedirectLoginDialog", "useRedirectLoginDialog", "isValidOrigin", "isContentOrigin", "dialog", "useDialog", "trackSnowplowEvent", "useTrackSnowplowEvent", "downloadCoupons", "isLoading", "useDownloadCouponsMutation", "downloadRandomCoupon", "isRandomCouponLoading", "useDownloadRandomCouponMutation", "handleSuccess", "couponNoList", "response", "getErrorMessage", "isRandomCouponResponse", "getSuccessMessage", "validate", "DOWNLOAD_COUPON_MESSAGES", "downloadCount", "skipValidation", "data", "isBulk", "createRandomCouponSuccessMessage", "discountValue", "errorCode", "errorMessage", "toCouponNos", "couponNosStr", "item", "_a", "RandomDiscountValue", "discountType", "discountValues", "index", "setIndex", "ye", "useInterval", "u", "p", "RollingNumber", "DiscountType", "getCouponUseEndAt", "coupon", "AvailableDayType", "createKRTimeZoneDate", "getCouponStatus", "canDownload", "logged", "query", "isCanvas", "QueryType", "CouponType", "now", "issueStartAt", "issueEndAt", "useEndAt", "isUpcoming", "isBefore", "isEnd", "isAfter", "isExpired", "getDescriptionByStatus", "format", "ko", "u", "descriptionStyle", "p", "Countdown", "typography", "markAsDownloaded", "summaries", "couponIds", "summary", "getCouponCollectionCouponName", "_a", "_b", "getRandomCouponName", "coupons", "couponDiscountValues", "sortCouponsByDiscountValueAscending", "RandomDiscountValue", "head", "DiscountType", "getGeneralCouponName", "getCouponNameByDiscountType", "isAllFixedRateCoupon", "maxDiscountValue", "getCouponNameByCouponType", "getCouponName", "discountType", "discountValue", "postfix", "x", "y", "MS_IN_SECOND", "defaultCouponItemEntry", "CouponUpdateType", "CouponType", "useCouponIds", "query", "couponItemEntry", "setCouponItemEntry", "ye", "init", "useInterval", "currentSchedule", "findCurrentSchedule", "prev", "shallowUnique", "toCouponNos", "ue", "initCouponCollectionCouponItemEntry", "coupon", "initRandomCouponItemEntry", "couponType", "couponIds", "initNormalCouponItemEntry", "couponUpdateType", "initDailyCouponItemEntry", "dailyCouponOptions", "schedules", "toSchedule", "initByCouponUpdateType", "initByCouponType", "QueryType", "schedule", "now", "createKRTimeZoneDate", "scheduleIndex", "item", "index", "shouldUpdateAt", "next", "hasNext", "isWithin", "isWithinInterval", "isLast", "isAbove", "options", "sortScheduleAscending", "toCouponSchedule", "x", "y", "option", "dailyCouponIds", "updateSchedule", "updateAt", "startAt", "endAt", "diff", "differenceInCalendarDays", "_", "hours", "minutes", "seconds", "date", "formatToCoupon", "coupon", "COUPONS_FETCHER_KEY", "useCouponsQuery", "query", "couponIds", "enabled", "canFetch", "data", "useSWR", "queryCoupons", "fetchCoupons", "couponApi", "fetchCouponCollectionCoupon", "coupon", "formatToCoupon", "QueryType", "classNames", "withStyle", "createWithStyle", "ComponentName", "css", "FoldableListContext", "z", "Root", "Y", "children", "className", "theme", "pending", "rest", "ref", "isFolded", "toggleFold", "useFold", "p", "Skeleton", "skeletonStyle", "skeletonStyleByTheme", "cx", "useFold", "isFolded", "setIsFolded", "ye", "prev", "useFoldableListContext", "context", "re", "FoldableListContext", "useFoldControls", "isFolded", "useFoldableListContext", "controls", "useAnimationControls", "ue", "classNames", "withStyle", "createWithStyle", "ComponentName", "css", "Content", "Y", "children", "className", "rest", "ref", "controls", "useFoldControls", "p", "motion", "cx", "textStyleByTheme", "classNames", "withStyle", "createWithStyle", "ComponentName", "css", "typographyCSS", "Item", "Y", "children", "className", "style", "rest", "ref", "theme", "useFoldableListContext", "p", "cx", "textStyleByTheme", "classNames", "withStyle", "createWithStyle", "ComponentName", "css", "typographyCSS", "Trigger", "Y", "children", "className", "textStyle", "icons", "onClick", "rest", "ref", "theme", "isFolded", "toggleFold", "useFoldableListContext", "initial", "active", "size", "handleClick", "e", "u", "cx", "p", "textStyleByTheme", "baseTextStyle", "AnimatePresence", "motion", "isCanvas", "Icon", "FoldableList", "Root", "Trigger", "Content", "Item", "DATE_FORMAT", "HOURS_IN_DAY", "getCouponNotices", "couponType", "coupons", "coupon", "head", "formattedAvailablePeriod", "formatAvailablePeriod", "formattedMaxDiscountPrice", "formatMaxDiscountPrice", "sortCouponsByDiscountValueAscending", "maxIssueCountNotice", "createMaxIssueCountNotice", "CouponType", "getRandomCouponNotices", "DiscountType", "getRateCouponNotices", "getAmountCouponNotices", "maxIssueCount", "coupon2", "formatRandomCouponMaxDiscountPrice", "formatAmountCouponMaxDiscountPrice", "formatRateCouponMaxDiscountPrice", "composeWithUnit", "getMaxDiscountPrice", "uniquifyCouponsByMinPayAmount", "acc", "curr", "maxDiscountPrice", "minPayAmount", "uniquifyCouponsByDiscountValue", "discountType", "discountValue", "composeWithUnitByType", "AvailableDayType", "availableStartAt", "parseISO", "availableEndAt", "format", "deduplicate", "x", "y", "availablePeriod", "unit", "NoticesElement", "couponType", "coupons", "mainNotices", "hasAdditionalNotices", "additionalNotices", "theme", "useTheme", "uniqueMainNotices", "mergedAdditionalNotices", "se", "getCouponNotices", "uniqueAdditionalNotices", "hasMainNotices", "u", "noticesLayout", "p", "mainNoticesStyle", "notice", "typography", "mainNoticeStyleByTheme", "FoldableList", "filterMap", "useInViewport", "callback", "ref", "pe", "prevIsInViewport", "updatedCallback", "useUpdatedRef", "handleScroll", "te", "isInViewport", "getIsInViewport", "useWindowEventListener", "element", "offsetHeight", "top", "getAbsoluteOffsetTop", "bottom", "isElementInViewport", "window", "mergeRefs", "refs", "value", "ref", "EventTriggerContext", "z", "Root", "Y", "children", "className", "style", "types", "onImpression", "ref", "isViewportEntered", "pe", "canTriggerFallbackImpression", "observeViewport", "handleViewportEnter", "handleViewportLeave", "containerRef", "useInViewport", "isInViewport", "p", "next", "mergeRefs", "useEventTriggerContext", "re", "EventTriggerContext", "Target", "Y", "children", "onClick", "rest", "ref", "isViewportEntered", "canTriggerFallbackImpression", "setCanTriggerFallbackImpression", "types", "onImpression", "useEventTriggerContext", "p", "e", "EventTrigger", "Root", "Target", "CouponElement", "query", "layout", "logged", "userNo", "useCurrentUser", "componentId", "useComponentId", "trackSnowplowEvent", "useTrackSnowplowEvent", "theme", "useTheme", "isInView", "useIntersectionContext", "couponIds", "couponType", "useCouponIds", "coupons", "useCouponsQuery", "headCoupon", "head", "hasCoupon", "isLoading", "summaries", "mutate", "useFetchDownloadableCouponSummaries", "handleCouponDownloadSuccess", "validate", "download", "useDownloadCoupons", "p", "Coupon", "downloadCount", "downloadCoupon", "markAsDownloaded", "handleClick", "handleImpression", "canDownload", "summary", "couponName", "getCouponName", "status", "getCouponStatus", "description", "getDescriptionByStatus", "backgroundColor", "rest", "u", "EventTrigger", "getPaddingStyle", "toBackgroundColor", "NoticesElement", "LinkedCouponModule", "value", "layout", "query", "useQueryStore", "state", "p", "CouponElement", "createKey", "COUPON_NOTICES_CONTROLS", "ControlType", "hasAdditionalNotices", "MANUAL_COUPON_MODULE_QUERY", "QUERY_CONTROL", "combineObjectPropertyControls", "COUPON_CONTROLS", "CouponModuleInner", "input", "layout", "CouponModuleInputType", "p", "LinkedCouponModule", "CouponElement", "CouponModule", "theme", "componentId", "rest", "SectionLayout", "addPropertyControls", "THEME_CONTROLS", "COMPONENT_ID_PROPS", "ControlType", "type", "MANUAL_COUPON_MODULE_QUERY", "COUPON_CONTROLS", "COUPON_NOTICES_CONTROLS", "CouponModule", "CouponModule_default"]
}
