{"version":3,"file":"Notification.DDvAvl4d.mjs","names":["isWebview","text","e","container","text","container","wrapper","DIALOG_ID","useState","container","titleText","title","REQUEST_TYPE","useRef","useRef","useMemo","isIos","title","useRef","row","text","e"],"sources":["https:/asset.29cm.co.kr/contents/framer/hooks/useCreateIsomorphicAppSchemeLink.js","https:/asset.29cm.co.kr/contents/framer/utils/getAnchorTarget.js","https:/asset.29cm.co.kr/contents/framer/components/systems/Button/Button.utils.js","https:/asset.29cm.co.kr/contents/framer/components/systems/Button/Button.js","https:/framerusercontent.com/modules/StvG2c1V7uA5IIqUxIaE/vbcf7LFrQUhWMAfEAWy2/Button.js","https:/asset.29cm.co.kr/contents/framer/hooks/useIsNotificationRegistered.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/checkbox/Checkbox.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/icons/CloseIcon.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/dialogs/PrivacyAgreementDetailDialog/PrivacyAgreementDetailDialog.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/dialogs/PrivacyAgreementDetailDialog/PrivacyAgreementDetailDialog.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/bottom-sheets/NotificationAgreementsBottomSheet/NotificationAgreementsBottomSheet.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/bottom-sheets/NotificationAgreementsBottomSheet/NotificationAgreementsBottomSheet.hooks.js","https:/asset.29cm.co.kr/contents/framer/hooks/fetchers/useFetchAgreements.js","https:/asset.29cm.co.kr/contents/framer/hooks/useAppNotificationState.js","https:/asset.29cm.co.kr/contents/framer/hooks/useMarketingPushNotification.js","https:/asset.29cm.co.kr/contents/framer/hooks/mutations/usePostAgreementsMutation.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/toasts/NotificationAgreementsToast/NotificationAgreementsToast.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/toasts/NotificationAgreementsToast/NotificationAgreementsToast.hooks.js","https:/asset.29cm.co.kr/contents/framer/hooks/fetchers/useFetchNotfiicationPermission.js","https:/asset.29cm.co.kr/contents/framer/hooks/useNotificationRequirements.js","https:/asset.29cm.co.kr/contents/framer/hooks/useShowUpdateAppDialog.js","https:/asset.29cm.co.kr/contents/framer/hooks/useRequestUserAgreementBottomSheet.js","https:/asset.29cm.co.kr/contents/framer/hooks/useCreateAppSchemeLink.js","https:/asset.29cm.co.kr/contents/framer/hooks/useCreateOneLink.js","https:/asset.29cm.co.kr/contents/framer/utils/getCurrentHref.js","https:/asset.29cm.co.kr/contents/framer/node_modules/qrcode.react/lib/esm/index.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/dialogs/AppLinkDialog/AppLinkDialog.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/dialogs/AppLinkDialog/AppLinkDialog.hooks.js","https:/asset.29cm.co.kr/contents/framer/hooks/useWithApp.js","https:/asset.29cm.co.kr/contents/framer/hooks/useWithLogin.js","https:/asset.29cm.co.kr/contents/framer/components/primitives/Notification/Notification.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/primitives/Notification/Notification.js","https:/framerusercontent.com/modules/Y5P4KUxfwofaqfFoGMRK/916PgJs74EAEHPoPo2Ge/Notification.js"],"sourcesContent":["import { useDeviceInfo } from \"./useDeviceInfo.js\";\nconst useCreateIsomorphicAppSchemeLink = (url) => {\n  const {\n    isWebview\n  } = useDeviceInfo();\n  return isWebview && url ? `app29cm://web/${url}` : url;\n};\nexport {\n  useCreateIsomorphicAppSchemeLink\n};\n","import { isServer } from \"./context.js\";\nconst getAnchorTarget = (url) => {\n  if (isServer()) {\n    return \"_self\";\n  }\n  return normalizeURL(url) === normalizeURL(window.location.href) ? \"_self\" : \"_blank\";\n};\nconst normalizeURL = (url) => {\n  const hasOrigin = !url.startsWith(\"/\");\n  try {\n    const {\n      origin,\n      pathname\n    } = new URL(hasOrigin ? url : `${window.location.origin}${url}`);\n    return `${origin}${pathname}`;\n  } catch (error) {\n    return \"\";\n  }\n};\nexport {\n  getAnchorTarget\n};\n","import { getAnchorTarget } from \"../../../utils/getAnchorTarget.js\";\nconst reshapeProps = (props) => {\n  const {\n    url,\n    onTap,\n    prefixIcon,\n    postfixIcon,\n    fillIcon,\n    ...rest\n  } = props;\n  const disabled = rest.variant === \"disabled\";\n  return {\n    as: url ? \"a\" : \"button\",\n    href: url,\n    target: url ? getAnchorTarget(url) : \"_self\",\n    disabled,\n    onClick: onTap,\n    ...toPropsWithIcon(fillIcon, prefixIcon, postfixIcon),\n    ...rest\n  };\n};\nconst toPropsWithIcon = (fill, prefixIcon, postfixIcon) => {\n  if (!postfixIcon) {\n    return {\n      prefixIcon: toIconOptions(fill, prefixIcon)\n    };\n  }\n  return {\n    postfixIcon: toIconOptions(fill, postfixIcon)\n  };\n};\nconst toIconOptions = (fill, icon) => {\n  if (icon && typeof icon === \"string\") {\n    return {\n      type: icon,\n      fill\n    };\n  }\n  return void 0;\n};\nexport {\n  reshapeProps\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { ButtonVariant, ButtonTheme, ButtonSize, UrlType } from \"../../@shared/Button/Button.types.js\";\nimport { useCreateIsomorphicAppSchemeLink } from \"../../../hooks/useCreateIsomorphicAppSchemeLink.js\";\nimport { Button as Default } from \"../../@shared/Button/Button.js\";\nimport { PREFIX_ICON_OPTIONS, POSTFIX_ICON_OPTIONS } from \"./Button.constants.js\";\nimport { reshapeProps } from \"./Button.utils.js\";\nconst FramerButton = (props) => {\n  const url = useCreateIsomorphicAppSchemeLink(props.url);\n  const {\n    text,\n    ...rest\n  } = reshapeProps({\n    ...props,\n    url: props.urlType === UrlType.ONELINK ? props.url : url\n  });\n  return /* @__PURE__ */ jsx(Default, { ...rest, children: text });\n};\naddPropertyControls(FramerButton, {\n  variant: {\n    type: ControlType.Enum,\n    title: \"변형\",\n    options: [ButtonVariant.PRIMARY, ButtonVariant.SECONDARY, ButtonVariant.TERTIARY, ButtonVariant.CUSTOM, ButtonVariant.DISABLED],\n    optionTitles: [\"primary\", \"secondary\", \"tertiary\", \"custom\", \"disabled\"]\n  },\n  theme: {\n    type: ControlType.Enum,\n    title: \"테마\",\n    options: [ButtonTheme.LIGHT, ButtonTheme.DARK],\n    optionTitles: [\"light\", \"dark\"],\n    defaultValue: ButtonTheme.LIGHT,\n    displaySegmentedControl: true\n  },\n  backgroundColor: {\n    hidden: ({\n      variant\n    }) => variant !== ButtonVariant.CUSTOM,\n    type: ControlType.Color,\n    title: \"배경 색상\",\n    optional: true\n  },\n  color: {\n    hidden: ({\n      variant\n    }) => variant !== ButtonVariant.CUSTOM,\n    type: ControlType.Color,\n    title: \"텍스트 색상\",\n    optional: true\n  },\n  size: {\n    type: ControlType.Enum,\n    title: \"크기\",\n    options: [ButtonSize.LARGE, ButtonSize.MEDIUM, ButtonSize.SMALL, ButtonSize.X_SMALL],\n    optionTitles: [\"large\", \"medium\", \"small\", \"xSmall\"],\n    defaultValue: ButtonSize.MEDIUM\n  },\n  fill: {\n    type: ControlType.Boolean,\n    title: \"반응형 너비\",\n    defaultValue: false\n  },\n  text: {\n    type: ControlType.String,\n    title: \"텍스트\",\n    defaultValue: \"텍스트\"\n  },\n  prefixIcon: {\n    hidden: ({\n      postfixIcon\n    }) => Boolean(postfixIcon),\n    type: ControlType.Enum,\n    title: \"좌측 아이콘\",\n    options: [void 0, ...PREFIX_ICON_OPTIONS],\n    optionTitles: [\"선택 안 함\", ...PREFIX_ICON_OPTIONS]\n  },\n  postfixIcon: {\n    hidden: ({\n      prefixIcon\n    }) => Boolean(prefixIcon),\n    type: ControlType.Enum,\n    title: \"우측 아이콘\",\n    options: [void 0, ...POSTFIX_ICON_OPTIONS],\n    optionTitles: [\"선택 안 함\", ...POSTFIX_ICON_OPTIONS]\n  },\n  fillIcon: {\n    type: ControlType.Boolean,\n    title: \"아이콘 채우기\",\n    defaultValue: false\n  },\n  url: {\n    hidden: ({\n      variant\n    }) => variant === ButtonVariant.DISABLED,\n    type: ControlType.Link,\n    title: \"URL\"\n  },\n  urlType: {\n    type: ControlType.Enum,\n    title: \"URL 타입\",\n    options: [UrlType.DEFAULT, UrlType.ONELINK],\n    optionTitles: [\"기본\", \"OneLink\"],\n    defaultValue: UrlType.DEFAULT,\n    description: \"onelink 타입을 선택하면 deeplink 변환없이 해당 url을 그대로 사용합니다.\"\n  },\n  onTap: {\n    hidden: ({\n      variant\n    }) => variant === ButtonVariant.DISABLED,\n    type: ControlType.EventHandler\n  }\n});\nexport {\n  FramerButton\n};\n","import{FramerButton}from\"https://asset.29cm.co.kr/contents/framer/components/systems/Button/Button.js\";FramerButton.displayName=\"Button\";/**\n * @framerDisableUnlink\n */export default FramerButton;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button.map","import useSWR from \"../node_modules/swr/core/dist/index.js\";\nimport { useEffect } from \"react\";\nimport \"./stores/content/content.store.js\";\nimport { isClient } from \"../utils/context.js\";\nimport \"../utils/event-properties/source.js\";\nimport \"framer\";\nconst useIsNotificationRegistered = (key) => {\n  const {\n    data: isRegistered,\n    mutate\n  } = useSWR(key, () => {\n    return isClient() ? isNotificationAlreadyRegistered(key) : false;\n  });\n  const markAsRegistered = () => {\n    if (!key) {\n      return;\n    }\n    window.localStorage.setItem(key, \"true\");\n    mutate();\n  };\n  useEffect(() => {\n    if (!key) {\n      return;\n    }\n    mutate();\n  }, [key, mutate]);\n  return {\n    isRegistered,\n    markAsRegistered\n  };\n};\nconst isNotificationAlreadyRegistered = (key) => {\n  try {\n    const value = JSON.parse(window.localStorage.getItem(key) ?? \"false\");\n    return value === true;\n  } catch (error) {\n    return false;\n  }\n};\nexport {\n  useIsNotificationRegistered\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport _JSXStyle from \"../../../node_modules/styled-jsx/style.js\";\nconst Checkbox = ({\n  id,\n  name,\n  checked,\n  disabled,\n  size = \"medium\",\n  children,\n  onChange\n}) => {\n  const handleClick = (e) => {\n    e.preventDefault();\n    if (disabled) {\n      return;\n    }\n    onChange == null ? void 0 : onChange(!checked);\n  };\n  const handleChange = (e) => {\n    onChange == null ? void 0 : onChange(e.target.checked);\n  };\n  return /* @__PURE__ */ jsxs(\"span\", { className: container.className, id, \"data-size\": size, children: [\n    /* @__PURE__ */ jsx(\"input\", { className: input.className, name, type: \"checkbox\", checked, disabled, onChange: handleChange }),\n    /* @__PURE__ */ jsx(\"label\", { className: label.className, htmlFor: name, title: name, \"data-checked\": checked, \"data-size\": size, onMouseUp: handleClick, onTouchEnd: handleClick, children: /* @__PURE__ */ jsx(\"p\", { className: text.className, \"data-size\": size, children }) }),\n    input.styles,\n    label.styles,\n    container.styles,\n    text.styles\n  ] });\n};\nconst container = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"3880026199\", children: [\"span.jsx-3880026199{padding:var(--checkbox-py) 0;position:relative;overflow:hidden;display:inline-block;min-width:var(--checkbox-size-width);min-height:var(--checkbox-size-height);vertical-align:top;}\", \"span[data-size='medium'].jsx-3880026199{--checkbox-size-width:24px;--checkbox-size-height:24px;--checkbox-py:8px;}\", \"span[data-size='small'].jsx-3880026199{--checkbox-size-width:16px;--checkbox-size-height:16px;--checkbox-py:5px;}\"] }),\n  className: \"jsx-3880026199\"\n};\nconst label = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"1230890958\", children: [\"label.jsx-1230890958{cursor:pointer;position:relative;z-index:1;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:var(--checkbox-padding-left);vertical-align:top;}\", \"label[data-size='medium'].jsx-1230890958{--checkbox-padding-left:32px;}\", \"label[data-size='small'].jsx-1230890958{--checkbox-padding-left:24px;}\", \"label.jsx-1230890958::before{content:'';position:absolute;top:0;left:0;width:var(--checkbox-size-width);height:var(--checkbox-size-height);text-align:center;background:#fff;border:1px solid #d4d4d4;box-sizing:border-box;border-radius:2px;-webkit-transition:background-color 0.2s;transition:background-color 0.2s;}\", \"label.jsx-1230890958::after{content:'';position:absolute;top:var(--checkbox-check-icon-top);left:var(--checkbox-check-icon-left);-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);box-sizing:content-box;width:var(--checkbox-check-icon-width);height:var(--checkbox-check-icon-height);box-sizing:border-box;border:1px solid #a0a0a0;border-width:0 1px 1px 0;}\", \"label[data-size='medium'].jsx-1230890958::after{--checkbox-check-icon-top:3px;--checkbox-check-icon-left:8px;--checkbox-check-icon-width:8px;--checkbox-check-icon-height:13px;}\", \"label[data-size='small'].jsx-1230890958::after{--checkbox-check-icon-top:2px;--checkbox-check-icon-left:6px;--checkbox-check-icon-width:5px;--checkbox-check-icon-height:9px;}\", \"label[data-checked='true'].jsx-1230890958::before{background:#000000;border-color:#000000;}\", \"label[data-checked='true'].jsx-1230890958::after{border-color:#fff;}\"] }),\n  className: \"jsx-1230890958\"\n};\nconst text = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"2091972032\", children: [\"p.jsx-2091972032{font-size:var(--checkbox-font-size);font-weight:400;line-height:var(--checkbox-line-height);color:#000000;}\", \"p[data-size='medium'].jsx-2091972032{--checkbox-font-size:16px;--checkbox-line-height:24px;}\", \"p[data-size='small'].jsx-2091972032{--checkbox-font-size:13px;--checkbox-line-height:16px;}\"] }),\n  className: \"jsx-2091972032\"\n};\nconst input = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"839637289\", children: [\"input.jsx-839637289{position:absolute;z-index:-1;top:2px;left:2px;overflow:hidden;width:1px;height:1px;-webkit-appearance:none;-moz-appearance:none;appearance:none;visibility:hidden;background:transparent;border:0;}\"] }),\n  className: \"jsx-839637289\"\n};\nexport {\n  Checkbox\n};\n","import { jsx } from \"react/jsx-runtime\";\nconst CloseIcon = ({\n  className\n}) => {\n  return /* @__PURE__ */ jsx(\"svg\", { className, style: {\n    width: \"20px\",\n    height: \"20px\"\n  }, xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 84 82\", children: /* @__PURE__ */ jsx(\"g\", { fill: \"none\", fillRule: \"evenodd\", stroke: \"#000000\", strokeWidth: 4, strokeLinecap: \"square\", children: /* @__PURE__ */ jsx(\"path\", { d: \"M82.655.345L1.156 81.844M82.655 81.655L1.156.156\" }) }) });\n};\nexport {\n  CloseIcon\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport _JSXStyle from \"../../../../node_modules/styled-jsx/style.js\";\nimport { CloseIcon } from \"../../icons/CloseIcon.js\";\nconst PrivacyAgreementDetailDialog = ({\n  onClose\n}) => {\n  return /* @__PURE__ */ jsxs(\"div\", { className: container.className, children: [\n    /* @__PURE__ */ jsx(\"button\", { type: \"button\", className: closeButton.className, onClick: onClose, children: /* @__PURE__ */ jsx(CloseIcon, {}) }),\n    /* @__PURE__ */ jsxs(\"dl\", { children: [\n      /* @__PURE__ */ jsx(\"dt\", { className: title.className, children: \"(선택) 개인정보 수집 및 이용 동의\" }),\n      /* @__PURE__ */ jsx(\"dd\", { children: /* @__PURE__ */ jsx(\"div\", { className: wrapper.className, children: /* @__PURE__ */ jsxs(\"article\", { className: article.className, children: [\n        /* @__PURE__ */ jsx(\"p\", { className: paragraph.className, children: \"(주)무신사(29CM)는 아래의 목적으로 개인정보를 수집 및 이용하며, 회원의 개인정보를 안전하게 처리하는데 최선을 다하고 있습니다. 아래의 내용을 확인 후 동의하여 주시기 바랍니다.\" }),\n        /* @__PURE__ */ jsx(\"h2\", { className: subtitle.className, children: \"1. 수집 및 이용 목적\" }),\n        /* @__PURE__ */ jsxs(\"ul\", { className: list.className, children: [\n          /* @__PURE__ */ jsx(\"li\", { className: highlightedItem.className, children: \"개인 맞춤형 상품·서비스 혜택 정보 제공\" }),\n          /* @__PURE__ */ jsx(\"li\", { className: highlightedItem.className, children: \"이벤트 및 광고성 정보 제공 및 참여 기회 제공\" }),\n          /* @__PURE__ */ jsx(\"li\", { className: item.className, children: \"상품·서비스 이용 실적 정보 통계·분석을 통한 신규 서비스(제품) 개발\" })\n        ] }),\n        /* @__PURE__ */ jsx(\"h2\", { className: subtitle.className, children: \"2. 수집 및 이용 항목\" }),\n        /* @__PURE__ */ jsxs(\"ul\", { className: list.className, children: [\n          /* @__PURE__ */ jsx(\"li\", { className: item.className, children: \"회원 정보(이름, 휴대폰 번호, 이메일, 성별, 생년월일, 회원등급, 가입일시)\" }),\n          /* @__PURE__ */ jsx(\"li\", { className: item.className, children: \"쇼핑 및 서비스 이용 정보(장바구니의 상품, 구매일시, 배송지역)\" })\n        ] }),\n        /* @__PURE__ */ jsx(\"h2\", { className: subtitle.className, children: \"3. 보유 및 이용기간\" }),\n        /* @__PURE__ */ jsxs(\"ul\", { className: list.className, children: [\n          /* @__PURE__ */ jsx(\"li\", { className: highlightedItem.className, children: \"회원 탈퇴 요청 시 또는 동의 철회 시 지체 없이 파기합니다.\" }),\n          /* @__PURE__ */ jsx(\"li\", { className: highlightedItem.className, children: \"단, 관계 법령에 따라 일정 기간 보존해야 하는 경우 해당 기간 보관 후 파기합니다.\" })\n        ] }),\n        /* @__PURE__ */ jsx(\"br\", {}),\n        \"선택적인 개인정보 수집 및 이용에 동의하지 않을 권리가 있습니다. 동의하지 않아도 서비스 이용이 가능합니다. 다만, 동의하지 않을 경우 관련 할인 정보, 이벤트 등의 혜택 정보 제공이 제한됩니다.\"\n      ] }) }) })\n    ] }),\n    container.styles,\n    closeButton.styles,\n    title.styles,\n    wrapper.styles,\n    article.styles,\n    subtitle.styles,\n    paragraph.styles,\n    highlightedItem.styles,\n    item.styles,\n    list.styles\n  ] });\n};\nconst container = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"4193539139\", children: [\"div.jsx-4193539139{width:100%;padding:10px 8px;text-align:left;word-break:break-word;}\"] }),\n  className: \"jsx-4193539139\"\n};\nconst closeButton = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"3873915725\", children: [\"button.jsx-3873915725{position:absolute;top:0;right:0;width:60px;height:60px;outline:none;border:none;background-color:transparent;}\"] }),\n  className: \"jsx-3873915725\"\n};\nconst title = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"3876639978\", children: [\"dt.jsx-3876639978{padding-bottom:11px;font-size:20px;font-weight:bold;border-bottom:4px solid #000;}\"] }),\n  className: \"jsx-3876639978\"\n};\nconst article = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"2551450005\", children: [\"article.jsx-2551450005{padding:5px 0;font-size:13px;line-height:24px;}\"] }),\n  className: \"jsx-2551450005\"\n};\nconst wrapper = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"3570035704\", children: [\"div.jsx-3570035704{position:absolute;inset:110px 0 22px 20px;height:auto;overflow-y:scroll;margin-top:15px;padding-right:30px;}\"] }),\n  className: \"jsx-3570035704\"\n};\nconst subtitle = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"1444760618\", children: [\"h2.jsx-1444760618{margin:20px 0 5px;font-size:16px;}\"] }),\n  className: \"jsx-1444760618\"\n};\nconst list = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"57726673\", children: [\"ul.jsx-57726673{margin:0;padding:0;}\"] }),\n  className: \"jsx-57726673\"\n};\nconst item = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"1482811883\", children: [\"li.jsx-1482811883{margin-left:20px;list-style-type:disc;}\"] }),\n  className: \"jsx-1482811883\"\n};\nconst highlightedItem = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"4100544401\", children: [\"li.jsx-4100544401{margin-left:20px;font-size:15px;font-weight:bold;-webkit-text-decoration:underline;text-decoration:underline;list-style-type:disc;}\"] }),\n  className: \"jsx-4100544401\"\n};\nconst paragraph = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"3509134407\", children: [\"p.jsx-3509134407{padding-bottom:10px;}\"] }),\n  className: \"jsx-3509134407\"\n};\nexport {\n  PrivacyAgreementDetailDialog\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { useDialog } from \"../../../../hooks/useDialog.js\";\nimport { PrivacyAgreementDetailDialog } from \"./PrivacyAgreementDetailDialog.js\";\nconst DIALOG_ID = \"privacy-agreement-detail-dialog-id\";\nconst usePrivacyAgreementDetailDialog = () => {\n  const dialog = useDialog();\n  const show = () => {\n    dialog.show({\n      id: DIALOG_ID,\n      responsiveFullSize: true,\n      hideButtons: true,\n      content: /* @__PURE__ */ jsx(PrivacyAgreementDetailDialog, { onClose: hide }),\n      needInAppLayer: false\n    });\n  };\n  const hide = () => {\n    dialog.hide(DIALOG_ID, false);\n  };\n  return {\n    show,\n    hide\n  };\n};\nexport {\n  usePrivacyAgreementDetailDialog\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport _JSXStyle from \"../../../../node_modules/styled-jsx/style.js\";\nimport { useState } from \"react\";\nimport { Button as Default } from \"../../Button/Button.js\";\nimport { Checkbox } from \"../../checkbox/Checkbox.js\";\nimport { usePrivacyAgreementDetailDialog } from \"../../dialogs/PrivacyAgreementDetailDialog/PrivacyAgreementDetailDialog.hooks.js\";\nconst NotificationAgreementsBottomSheet = ({\n  title = \"알림을 받으려면\\n동의가 필요해요\",\n  buttonText = \"동의하고 알림 받기\",\n  privacyAgreement,\n  pushAdvertisingAgreement,\n  onSubmit,\n  onCancel\n}) => {\n  const dialog = usePrivacyAgreementDetailDialog();\n  const [isPrivacyAgreementAgreed, setIsPrivacyAgreementAgreed] = useState(privacyAgreement);\n  const [isPushAdvertisingAgreementAgreed, setIsPushAdvertisingAgreementAgreed] = useState(pushAdvertisingAgreement);\n  const canSubmit = isPrivacyAgreementAgreed && isPushAdvertisingAgreementAgreed;\n  const handleClick = () => dialog.show();\n  return /* @__PURE__ */ jsxs(\"div\", { className: container.className, children: [\n    /* @__PURE__ */ jsxs(\"div\", { className: wrapper.className, children: [\n      /* @__PURE__ */ jsx(\"span\", { className: titleText.className, children: title }),\n      /* @__PURE__ */ jsx(\"span\", { className: hr.className }),\n      privacyAgreement ? null : /* @__PURE__ */ jsxs(\"div\", { className: row.className, children: [\n        /* @__PURE__ */ jsx(Checkbox, { checked: isPrivacyAgreementAgreed, onChange: setIsPrivacyAgreementAgreed, children: \"마케팅 목적의 개인정보 수집 및 이용 동의\" }),\n        /* @__PURE__ */ jsx(\"button\", { className: detailButton.className, onClick: handleClick, children: \"자세히\" })\n      ] }),\n      pushAdvertisingAgreement ? null : /* @__PURE__ */ jsx(\"div\", { className: row.className, children: /* @__PURE__ */ jsx(Checkbox, { checked: isPushAdvertisingAgreementAgreed, onChange: setIsPushAdvertisingAgreementAgreed, children: \"광고성 정보 수신 동의\" }) }),\n      /* @__PURE__ */ jsxs(\"div\", { className: buttons.className, children: [\n        /* @__PURE__ */ jsx(Default, { variant: \"primary\", fill: true, disabled: !canSubmit, onClick: onSubmit, children: buttonText }),\n        /* @__PURE__ */ jsx(\"button\", { className: cancelButton.className, onClick: onCancel, children: \"다음에\" })\n      ] })\n    ] }),\n    titleText.styles,\n    detailButton.styles,\n    cancelButton.styles,\n    buttons.styles,\n    row.styles,\n    hr.styles,\n    container.styles,\n    wrapper.styles\n  ] });\n};\nconst container = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"130359274\", children: [\"div.jsx-130359274{background-color:#fff;}\"] }),\n  className: \"jsx-130359274\"\n};\nconst wrapper = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"2833505254\", children: [\"div.jsx-2833505254{padding:30px 20px 20px;text-align:left;}\"] }),\n  className: \"jsx-2833505254\"\n};\nconst hr = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"2753252006\", children: [\"span.jsx-2753252006{display:block;width:100%;height:1px;margin:24px 0;background-color:#e4e4e4;}\"] }),\n  className: \"jsx-2753252006\"\n};\nconst row = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"2027943628\", children: [\"div.jsx-2027943628{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px;}\", \"div.jsx-2027943628+div.jsx-2027943628{margin-top:10px;}\"] }),\n  className: \"jsx-2027943628\"\n};\nconst buttons = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"3286403566\", children: [\"div.jsx-3286403566{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:12px;margin-top:26px;}\"] }),\n  className: \"jsx-3286403566\"\n};\nconst cancelButton = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"642015552\", children: [\"button.jsx-642015552{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;margin:0;padding:0;background:none;outline:none;border:none;font-weight:700;font-size:14px;color:#474747;}\"] }),\n  className: \"jsx-642015552\"\n};\nconst detailButton = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"2879314183\", children: [\"button.jsx-2879314183{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;margin:0;padding:0;background:none;border:none;outline:none;border-bottom:1px solid;border-color:#474747;font-weight:500;font-size:14px;color:#474747;line-height:140%;}\"] }),\n  className: \"jsx-2879314183\"\n};\nconst titleText = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"249968650\", children: [\"span.jsx-249968650{font-weight:700;font-size:24px;line-height:136%;white-space:pre-line;color:#000;}\"] }),\n  className: \"jsx-249968650\"\n};\nexport {\n  NotificationAgreementsBottomSheet\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { useBottomSheet } from \"../../../../hooks/useBottomSheet.js\";\nimport { NotificationAgreementsBottomSheet } from \"./NotificationAgreementsBottomSheet.js\";\nconst useNotificationAgreementsBottomSheet = () => {\n  const bottomSheet = useBottomSheet();\n  const show = ({\n    onCancel,\n    ...props\n  }) => {\n    const handleCancel = () => {\n      onCancel();\n      bottomSheet.hide();\n    };\n    bottomSheet.show({\n      content: /* @__PURE__ */ jsx(NotificationAgreementsBottomSheet, { ...props, onCancel: handleCancel }),\n      draggable: false,\n      closeOnOverlayClick: false,\n      detent: \"content-height\"\n    });\n  };\n  return {\n    show,\n    hide: bottomSheet.hide\n  };\n};\nexport {\n  useNotificationAgreementsBottomSheet\n};\n","import useSWR from \"../../node_modules/swr/core/dist/index.js\";\nimport { userApi } from \"../../apis/user/UserApiService.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 \"../useCurrentUser.js\";\nimport \"framer\";\nimport \"../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../config/index.js\";\nimport \"../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../apis/preuser/PreuserApiService.js\";\nimport \"../../node_modules/swr/mutation/dist/index.js\";\nimport \"../stores/content/content.store.js\";\nimport \"../stores/dialog/dialog.store.js\";\nimport \"../stores/global-layout/global-layout.store.js\";\nimport \"../stores/toast/toast.store.js\";\nimport \"../../components/@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport \"../../components/@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react/jsx-runtime\";\nimport \"react-dom\";\nimport \"../../components/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 AGREEMENTS_FETCHER_KEY = \"@user/agreements\";\nconst useFetchAgreements = () => {\n  const {\n    logged\n  } = useCurrentUser();\n  return useSWR(logged ? [AGREEMENTS_FETCHER_KEY] : null, () => userApi.getAgreements());\n};\nexport {\n  AGREEMENTS_FETCHER_KEY,\n  useFetchAgreements\n};\n","import { useRef } from \"react\";\nimport { getAppBuildNumber, isIos } from \"../utils/device.js\";\nimport { useReceiveMessage } from \"./useReceiveMessage.js\";\nimport { postMessage } from \"../utils/postMessage.js\";\nconst APP_CRASH_FIX_IOS_BUILD_NUMBER = 719;\nconst REQUEST_TYPE = \"fetchAppNotificationState\";\nconst useAppNotificationState = () => {\n  const callbackFunction = useRef();\n  const isLoading = useRef(false);\n  const isAvailableIosBuildNumber = () => {\n    const buildNumber = getAppBuildNumber();\n    const isAdhocVersion = isIos() && Number.isNaN(buildNumber);\n    if (isAdhocVersion) {\n      return true;\n    }\n    if (!isIos()) {\n      return true;\n    }\n    if (buildNumber < APP_CRASH_FIX_IOS_BUILD_NUMBER) {\n      return false;\n    }\n    return true;\n  };\n  const fetchNotificationState = () => {\n    return new Promise((resolve, reject) => {\n      if (!isAvailableIosBuildNumber()) {\n        reject(\"UNAVAILABLE_IOS_BUILD_NUMBER\");\n      }\n      callbackFunction.current = (...args) => resolve(...args);\n      postMessage(REQUEST_TYPE, {});\n      isLoading.current = true;\n    });\n  };\n  useReceiveMessage(REQUEST_TYPE, (payload) => {\n    if (!isLoading.current || !callbackFunction.current || !payload) {\n      return;\n    }\n    callbackFunction.current(payload.result);\n    callbackFunction.current = void 0;\n    isLoading.current = false;\n  });\n  return {\n    fetchNotificationState\n  };\n};\nexport {\n  useAppNotificationState\n};\n","import { useRef, useMemo } from \"react\";\nimport { useFetchAgreements } from \"./fetchers/useFetchAgreements.js\";\nimport { postMessage } from \"../utils/postMessage.js\";\nimport { useReceiveMessage } from \"./useReceiveMessage.js\";\nimport { useDeviceInfo } from \"./useDeviceInfo.js\";\nconst IOS_REQUEST_TYPE = \"fetchNotificationState\";\nconst ANDROID_REQUEST_TYPE = \"requestMarketingPushNotification\";\nconst useMarketingPushNotification = () => {\n  const callbackFunction = useRef();\n  const {\n    data: response\n  } = useFetchAgreements();\n  const {\n    isIos\n  } = useDeviceInfo();\n  const agreements = response == null ? void 0 : response.data;\n  const privacyAgreementAlreadyAgreed = useMemo(() => {\n    if (!agreements) {\n      return false;\n    }\n    return agreements.privacyAgreement;\n  }, [agreements]);\n  const advertisingAgreementAlreadyAgreed = useMemo(() => {\n    if (!agreements) {\n      return false;\n    }\n    const {\n      privacyAgreement: _,\n      ...advertisingAgreements\n    } = agreements;\n    return Object.values(advertisingAgreements).every((value) => value);\n  }, [agreements]);\n  const requestType = isIos ? IOS_REQUEST_TYPE : ANDROID_REQUEST_TYPE;\n  const requestMarketingPushNotification = ({\n    type,\n    params = {},\n    shouldShowMarketingPushBottomSheet,\n    marketingPushBottomSheetActivateCycle = \"noLimit\",\n    osBottomSheetTitle = \"휴대폰 알림이 꺼져 있어 알림을 받을 수 없어요\",\n    marketingBottomSheetTitle = \"\"\n  }) => {\n    return new Promise((resolve) => {\n      callbackFunction.current = (...args) => resolve(...args);\n      postMessage(requestType, {\n        type,\n        shouldShowMarketingPushBottomSheet,\n        marketingPushBottomSheetActivateCycle,\n        osBottomSheetTitle,\n        marketingBottomSheetTitle,\n        ...params\n      });\n    });\n  };\n  useReceiveMessage(requestType, ({\n    marketingPushAlreadyActivated: _,\n    ...rest\n  }) => {\n    if (!callbackFunction.current) {\n      return;\n    }\n    const payload = {\n      ...rest,\n      privacyAgreementAlreadyAgreed,\n      advertisingAgreementAlreadyAgreed\n    };\n    callbackFunction.current(payload);\n    callbackFunction.current = void 0;\n  });\n  return {\n    requestMarketingPushNotification\n  };\n};\nexport {\n  useMarketingPushNotification\n};\n","import useSWRMutation from \"../../node_modules/swr/mutation/dist/index.js\";\nimport { userApi } from \"../../apis/user/UserApiService.js\";\nconst POST_AGREEMENT_MUTATION_KEY = \"@user/post-agreement\";\nconst usePostAgreementsMutation = (params) => {\n  const {\n    onSuccess,\n    onError\n  } = params ?? {};\n  return useSWRMutation(POST_AGREEMENT_MUTATION_KEY, (_, {\n    arg\n  }) => userApi.postAgreements({\n    endpoint: arg,\n    privacyAgreement: true,\n    advertisingAgreement: true\n  }), {\n    onSuccess,\n    onError\n  });\n};\nexport {\n  POST_AGREEMENT_MUTATION_KEY,\n  usePostAgreementsMutation\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport _JSXStyle from \"../../../../node_modules/styled-jsx/style.js\";\nimport { useFetchAgreements } from \"../../../../hooks/fetchers/useFetchAgreements.js\";\nimport { formatDate as format } from \"../../../../node_modules/date-fns/format.js\";\nconst NotificationAgreementsToast = ({\n  title,\n  hideDescription = false\n}) => {\n  const {\n    data: response\n  } = useFetchAgreements();\n  const {\n    pushAdvertisingAgreement = false\n  } = (response == null ? void 0 : response.data) ?? {};\n  const formattedNow = format(/* @__PURE__ */ new Date(), \"yy.MM.dd\");\n  const shouldRenderDescription = !hideDescription && pushAdvertisingAgreement;\n  return /* @__PURE__ */ jsxs(\"div\", { children: [\n    /* @__PURE__ */ jsx(\"p\", { className: titleText.className, children: title ?? \"알림 설정이 완료되었습니다.\" }),\n    shouldRenderDescription ? /* @__PURE__ */ jsx(\"p\", { className: descriptionText.className, children: `${formattedNow} 마케팅 수신 동의 완료 / 거부 : MY > 회원정보 수정 / 전송자 : 29CM ((주)무신사)` }) : null,\n    titleText.styles,\n    descriptionText.styles\n  ] });\n};\nconst descriptionText = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"112177068\", children: [\"p.jsx-112177068{margin-top:4px;font-size:12px;font-weight:400;line-height:136%;color:#a0a0a0;}\"] }),\n  className: \"jsx-112177068\"\n};\nconst titleText = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"3358454669\", children: [\"p.jsx-3358454669{font-size:14px;font-weight:400;line-height:140%;color:#fff;}\"] }),\n  className: \"jsx-3358454669\"\n};\nexport {\n  NotificationAgreementsToast\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { useToast } from \"../../../../hooks/useToast.js\";\nimport { NotificationAgreementsToast } from \"./NotificationAgreementsToast.js\";\nconst useNotificationAgreementsToast = () => {\n  const toast = useToast();\n  const show = (title, hideDescription) => {\n    toast.show({\n      content: /* @__PURE__ */ jsx(NotificationAgreementsToast, { title, hideDescription })\n    });\n  };\n  return {\n    show,\n    hide: toast.hide\n  };\n};\nexport {\n  useNotificationAgreementsToast\n};\n","import useSWR from \"../../node_modules/swr/core/dist/index.js\";\nimport { useAppNotificationState } from \"../useAppNotificationState.js\";\nconst NOTIFICATION_PERMISSION_FETCHER_KEY = \"@notification/permission\";\nconst useFetchNotificationPermission = () => {\n  const {\n    fetchNotificationState\n  } = useAppNotificationState();\n  return useSWR([NOTIFICATION_PERMISSION_FETCHER_KEY], () => fetchNotificationState());\n};\nexport {\n  NOTIFICATION_PERMISSION_FETCHER_KEY,\n  useFetchNotificationPermission\n};\n","import { useNotificationAgreementsBottomSheet } from \"../components/@shared/bottom-sheets/NotificationAgreementsBottomSheet/NotificationAgreementsBottomSheet.hooks.js\";\nimport { useFetchAgreements } from \"./fetchers/useFetchAgreements.js\";\nimport { useAppNotificationState } from \"./useAppNotificationState.js\";\nimport { useMarketingPushNotification } from \"./useMarketingPushNotification.js\";\nimport { usePostAgreementsMutation } from \"./mutations/usePostAgreementsMutation.js\";\nimport { parseErrorMessage } from \"../utils/error/error.js\";\nimport { useNotificationAgreementsToast } from \"../components/@shared/toasts/NotificationAgreementsToast/NotificationAgreementsToast.hooks.js\";\nimport { useFetchNotificationPermission } from \"./fetchers/useFetchNotfiicationPermission.js\";\nconst useNotificationRequirements = () => {\n  const requestAgreements = useNotificationAgreements();\n  const requestPermission = useNotificationPermission();\n  const requestRequirements = async (options) => {\n    try {\n      await requestAgreements(options);\n      await requestPermission(options);\n    } catch (error) {\n      notificationRequirementsErrorHandler(error);\n    }\n  };\n  return requestRequirements;\n};\nconst notificationRequirementsErrorHandler = (error) => {\n  switch (parseErrorMessage(error)) {\n    case \"AGREEMENTS_CANCELED\":\n      return;\n    case \"NO_AGREEMENTS_DATA\":\n      return;\n    case \"UNAVAILABLE_IOS_BUILD_NUMBER\":\n      return;\n  }\n};\nconst useNotificationAgreements = () => {\n  const {\n    data: response,\n    mutate\n  } = useFetchAgreements();\n  const {\n    trigger\n  } = usePostAgreementsMutation();\n  const {\n    show,\n    hide\n  } = useNotificationAgreementsBottomSheet();\n  const agreements = response == null ? void 0 : response.data;\n  const {\n    privacyAgreement = false,\n    pushAdvertisingAgreement = false\n  } = agreements ?? {};\n  const postAgreements = (options) => {\n    const {\n      apiEndpoint,\n      onNotificationAgreementsError\n    } = options;\n    return trigger(apiEndpoint, {\n      onSuccess: () => {\n        hide();\n        mutate();\n      },\n      onError: () => {\n        hide();\n        onNotificationAgreementsError == null ? void 0 : onNotificationAgreementsError();\n      }\n    });\n  };\n  const requestAgreements = (options) => {\n    const {\n      onNotificationAgreementsSubmit,\n      onNotificationAgreementsCancel,\n      ...rest\n    } = options;\n    return new Promise((resolve, reject) => {\n      if (!agreements) {\n        reject(\n          \"NO_AGREEMENTS_DATA\"\n          /* NO_AGREEMENTS_DATA */\n        );\n        return;\n      }\n      if (privacyAgreement && pushAdvertisingAgreement) {\n        resolve(void 0);\n        return;\n      }\n      show({\n        ...rest,\n        privacyAgreement,\n        pushAdvertisingAgreement,\n        // eslint-disable-next-line @typescript-eslint/no-misused-promises\n        onSubmit: async () => {\n          await postAgreements(options);\n          resolve(void 0);\n          onNotificationAgreementsSubmit == null ? void 0 : onNotificationAgreementsSubmit(privacyAgreement, pushAdvertisingAgreement);\n        },\n        onCancel: () => {\n          reject(\n            \"AGREEMENTS_CANCELED\"\n            /* AGREEMENTS_CANCELED */\n          );\n          onNotificationAgreementsCancel == null ? void 0 : onNotificationAgreementsCancel(privacyAgreement, pushAdvertisingAgreement);\n        }\n      });\n    });\n  };\n  return requestAgreements;\n};\nconst useNotificationPermission = () => {\n  const {\n    fetchNotificationState\n  } = useAppNotificationState();\n  const {\n    mutate\n  } = useFetchNotificationPermission();\n  const {\n    requestMarketingPushNotification\n  } = useMarketingPushNotification();\n  const toast = useNotificationAgreementsToast();\n  const hasNotificationPermission = async () => await fetchNotificationState() === \"on\";\n  const requestPermission = async (options) => {\n    const {\n      osBottomSheetType = \"null\",\n      showToastOnSuccess = true,\n      toastTitle,\n      onNotificationEnabled,\n      onNotificationDisabled\n    } = options;\n    try {\n      if (await hasNotificationPermission()) {\n        if (showToastOnSuccess) {\n          toast.show(toastTitle);\n        }\n        onNotificationEnabled == null ? void 0 : onNotificationEnabled();\n        return;\n      }\n      await requestMarketingPushNotification({\n        type: osBottomSheetType\n      });\n      if (await hasNotificationPermission()) {\n        if (showToastOnSuccess) {\n          toast.show(toastTitle);\n        }\n        mutate();\n        onNotificationEnabled == null ? void 0 : onNotificationEnabled();\n      } else {\n        onNotificationDisabled == null ? void 0 : onNotificationDisabled();\n      }\n    } catch (error) {\n      throw new Error(\n        \"UNAVAILABLE_IOS_BUILD_NUMBER\"\n        /* UNAVAILABLE_IOS_BUILD_NUMBER */\n      );\n    }\n  };\n  return requestPermission;\n};\nexport {\n  useNotificationRequirements\n};\n","import { useDialog } from \"./useDialog.js\";\nimport { isIos, isAndroid } from \"../utils/device.js\";\nconst UPDATE_APP_DIALOG_ID = \"update-app-dialog\";\nconst APP_STORE_LINK = \"https://apps.apple.com/kr/app/29cm/id789634744\";\nconst GOOGLE_PLAY_STORE_LINK = \"https://play.google.com/store/apps/details?id=com.the29cm.app29cm\";\nconst useShowUpdateAppDialog = () => {\n  const dialog = useDialog();\n  const showUpdateAppDialog = (content) => {\n    dialog.show({\n      id: UPDATE_APP_DIALOG_ID,\n      title: \"앱 업데이트 안내\",\n      content: content ?? \"해당 기능을 사용하기 위해서는 최신 버전으로 앱 업데이트가 필요해요.\",\n      primaryButtonText: \"업데이트\",\n      onPrimaryButtonClick: () => {\n        dialog.hide(UPDATE_APP_DIALOG_ID);\n        if (isIos()) {\n          document.location.href = `app29cm://outlink/${APP_STORE_LINK}`;\n          return;\n        }\n        if (isAndroid()) {\n          document.location.href = GOOGLE_PLAY_STORE_LINK;\n          return;\n        }\n      },\n      secondaryButtonText: \"취소\",\n      onSecondaryButtonClick: () => {\n        dialog.hide(UPDATE_APP_DIALOG_ID);\n      },\n      needInAppLayer: false\n    });\n  };\n  return {\n    showUpdateAppDialog\n  };\n};\nexport {\n  useShowUpdateAppDialog\n};\n","import { useRef } from \"react\";\nimport { useTargetAppVersion } from \"./useTargetAppVersion.js\";\nimport { postMessage } from \"../utils/postMessage.js\";\nimport { useReceiveMessage } from \"./useReceiveMessage.js\";\nimport { useShowUpdateAppDialog } from \"./useShowUpdateAppDialog.js\";\nconst REQUEST_TYPE = \"requestUserAgreementBottomSheet\";\nconst useRequestUserAgreementBottomSheet = () => {\n  const confirmHandlerRef = useRef();\n  const cancelHandlerRef = useRef();\n  const {\n    isTargetAppVersion\n  } = useTargetAppVersion({\n    minIosVersion: 1072,\n    minAndroidVersion: 722\n  });\n  const {\n    showUpdateAppDialog\n  } = useShowUpdateAppDialog();\n  const requestUserAgreementBottomSheet = ({\n    type,\n    title = \"알림을 받으려면\\n동의가 필요해요\",\n    confirmButtonText = \"동의하고 알림받기\",\n    cancelButtonText = \"다음에 하기\",\n    snackBarTitle,\n    onConfirm,\n    onCancel\n  }) => {\n    if (!isTargetAppVersion) {\n      showUpdateAppDialog();\n      return;\n    }\n    postMessage(REQUEST_TYPE, {\n      type,\n      title,\n      confirmButtonText,\n      cancelButtonText,\n      snackBarTitle,\n      currentScreen: \"content\"\n      // NOTE: 콘텐츠(프레이머 등) 관련 화면인 경우 currentScreen이 'content'로 고정됨\n    });\n    confirmHandlerRef.current = onConfirm;\n    cancelHandlerRef.current = onCancel;\n  };\n  useReceiveMessage(REQUEST_TYPE, (payload) => {\n    const {\n      isPrivacyAndAdvertisingAgreed,\n      isPushNotificationGranted\n    } = payload;\n    const isUserAgree = isPrivacyAndAdvertisingAgreed && isPushNotificationGranted;\n    if (confirmHandlerRef.current && isUserAgree) {\n      confirmHandlerRef.current(payload);\n    } else if (cancelHandlerRef.current && (!isPrivacyAndAdvertisingAgreed || !isPushNotificationGranted)) {\n      cancelHandlerRef.current(payload);\n    }\n    confirmHandlerRef.current = void 0;\n    cancelHandlerRef.current = void 0;\n  });\n  return {\n    requestUserAgreementBottomSheet,\n    isTargetAppVersion\n  };\n};\nexport {\n  useRequestUserAgreementBottomSheet\n};\n","const CONTENT_DOMAIN_HOSTNAME = \"https://content.29cm.co.kr\";\nconst useCreateAppSchemeLink = () => {\n  const createAppSchemeLink = (href, options = {}) => {\n    const fullPath = href.includes(\"https://\") ? href : `${CONTENT_DOMAIN_HOSTNAME}${href}`;\n    const params = [];\n    if (options.home !== void 0) {\n      params.push(`29cm_nav_home=${getOnOffValue(options.home)}`);\n    }\n    if (options.cart !== void 0) {\n      params.push(`29cm_nav_cart=${getOnOffValue(options.cart)}`);\n    }\n    if (options.search !== void 0) {\n      params.push(`29cm_nav_search=${getOnOffValue(options.search)}`);\n    }\n    if (options.title !== void 0) {\n      params.push(`29cm_title=${encodeURIComponent(options.title)}`);\n    }\n    const hasExistingParams = fullPath.includes(\"?\");\n    const queryDelimiter = hasExistingParams ? \"&\" : \"?\";\n    const queryString = params.length ? `${queryDelimiter}${params.join(\"&\")}` : \"\";\n    return `app29cm://web/${encodeURIComponent(`${fullPath}${queryString}`)}`;\n  };\n  return {\n    createAppSchemeLink\n  };\n};\nconst getOnOffValue = (value) => value ? \"on\" : \"off\";\nexport {\n  useCreateAppSchemeLink\n};\n","import { useCreateAppSchemeLink } from \"./useCreateAppSchemeLink.js\";\nconst useCreateOneLink = (href, webviewNavOptions) => {\n  const {\n    createAppSchemeLink\n  } = useCreateAppSchemeLink();\n  const webLink = encodeURIComponent(href);\n  const appLink = createAppSchemeLink(href, webviewNavOptions);\n  const oneLink = `https://29cm.onelink.me/1080201211?af_dp=${appLink}&deep_link_value=${appLink}&af_web_dp=${webLink}`;\n  return {\n    oneLink\n  };\n};\nexport {\n  useCreateOneLink\n};\n","import { isServer } from \"./context.js\";\nconst getCleanUrl = () => {\n  const urlObj = new URL(document.location.href);\n  urlObj.search = \"\";\n  return urlObj.toString();\n};\nconst getCurrentHref = ({\n  removeQueryParams\n} = {}) => {\n  if (isServer()) {\n    return \"\";\n  }\n  if (removeQueryParams) {\n    return getCleanUrl();\n  }\n  return document.location.href;\n};\nexport {\n  getCurrentHref\n};\n","import React__default from \"react\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\nvar __objRest = (source, exclude) => {\n  var target = {};\n  for (var prop in source)\n    if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n      target[prop] = source[prop];\n  if (source != null && __getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(source)) {\n      if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n        target[prop] = source[prop];\n    }\n  return target;\n};\n/**\n * @license QR Code generator library (TypeScript)\n * Copyright (c) Project Nayuki.\n * SPDX-License-Identifier: MIT\n */\nvar qrcodegen;\n((qrcodegen2) => {\n  const _QrCode = class {\n    constructor(version, errorCorrectionLevel, dataCodewords, msk) {\n      this.version = version;\n      this.errorCorrectionLevel = errorCorrectionLevel;\n      this.modules = [];\n      this.isFunction = [];\n      if (version < _QrCode.MIN_VERSION || version > _QrCode.MAX_VERSION)\n        throw new RangeError(\"Version value out of range\");\n      if (msk < -1 || msk > 7)\n        throw new RangeError(\"Mask value out of range\");\n      this.size = version * 4 + 17;\n      let row = [];\n      for (let i = 0; i < this.size; i++)\n        row.push(false);\n      for (let i = 0; i < this.size; i++) {\n        this.modules.push(row.slice());\n        this.isFunction.push(row.slice());\n      }\n      this.drawFunctionPatterns();\n      const allCodewords = this.addEccAndInterleave(dataCodewords);\n      this.drawCodewords(allCodewords);\n      if (msk == -1) {\n        let minPenalty = 1e9;\n        for (let i = 0; i < 8; i++) {\n          this.applyMask(i);\n          this.drawFormatBits(i);\n          const penalty = this.getPenaltyScore();\n          if (penalty < minPenalty) {\n            msk = i;\n            minPenalty = penalty;\n          }\n          this.applyMask(i);\n        }\n      }\n      assert(0 <= msk && msk <= 7);\n      this.mask = msk;\n      this.applyMask(msk);\n      this.drawFormatBits(msk);\n      this.isFunction = [];\n    }\n    static encodeText(text, ecl) {\n      const segs = qrcodegen2.QrSegment.makeSegments(text);\n      return _QrCode.encodeSegments(segs, ecl);\n    }\n    static encodeBinary(data, ecl) {\n      const seg = qrcodegen2.QrSegment.makeBytes(data);\n      return _QrCode.encodeSegments([seg], ecl);\n    }\n    static encodeSegments(segs, ecl, minVersion = 1, maxVersion = 40, mask = -1, boostEcl = true) {\n      if (!(_QrCode.MIN_VERSION <= minVersion && minVersion <= maxVersion && maxVersion <= _QrCode.MAX_VERSION) || mask < -1 || mask > 7)\n        throw new RangeError(\"Invalid value\");\n      let version;\n      let dataUsedBits;\n      for (version = minVersion; ; version++) {\n        const dataCapacityBits2 = _QrCode.getNumDataCodewords(version, ecl) * 8;\n        const usedBits = QrSegment.getTotalBits(segs, version);\n        if (usedBits <= dataCapacityBits2) {\n          dataUsedBits = usedBits;\n          break;\n        }\n        if (version >= maxVersion)\n          throw new RangeError(\"Data too long\");\n      }\n      for (const newEcl of [_QrCode.Ecc.MEDIUM, _QrCode.Ecc.QUARTILE, _QrCode.Ecc.HIGH]) {\n        if (boostEcl && dataUsedBits <= _QrCode.getNumDataCodewords(version, newEcl) * 8)\n          ecl = newEcl;\n      }\n      let bb = [];\n      for (const seg of segs) {\n        appendBits(seg.mode.modeBits, 4, bb);\n        appendBits(seg.numChars, seg.mode.numCharCountBits(version), bb);\n        for (const b of seg.getData())\n          bb.push(b);\n      }\n      assert(bb.length == dataUsedBits);\n      const dataCapacityBits = _QrCode.getNumDataCodewords(version, ecl) * 8;\n      assert(bb.length <= dataCapacityBits);\n      appendBits(0, Math.min(4, dataCapacityBits - bb.length), bb);\n      appendBits(0, (8 - bb.length % 8) % 8, bb);\n      assert(bb.length % 8 == 0);\n      for (let padByte = 236; bb.length < dataCapacityBits; padByte ^= 236 ^ 17)\n        appendBits(padByte, 8, bb);\n      let dataCodewords = [];\n      while (dataCodewords.length * 8 < bb.length)\n        dataCodewords.push(0);\n      bb.forEach((b, i) => dataCodewords[i >>> 3] |= b << 7 - (i & 7));\n      return new _QrCode(version, ecl, dataCodewords, mask);\n    }\n    getModule(x, y) {\n      return 0 <= x && x < this.size && 0 <= y && y < this.size && this.modules[y][x];\n    }\n    getModules() {\n      return this.modules;\n    }\n    drawFunctionPatterns() {\n      for (let i = 0; i < this.size; i++) {\n        this.setFunctionModule(6, i, i % 2 == 0);\n        this.setFunctionModule(i, 6, i % 2 == 0);\n      }\n      this.drawFinderPattern(3, 3);\n      this.drawFinderPattern(this.size - 4, 3);\n      this.drawFinderPattern(3, this.size - 4);\n      const alignPatPos = this.getAlignmentPatternPositions();\n      const numAlign = alignPatPos.length;\n      for (let i = 0; i < numAlign; i++) {\n        for (let j = 0; j < numAlign; j++) {\n          if (!(i == 0 && j == 0 || i == 0 && j == numAlign - 1 || i == numAlign - 1 && j == 0))\n            this.drawAlignmentPattern(alignPatPos[i], alignPatPos[j]);\n        }\n      }\n      this.drawFormatBits(0);\n      this.drawVersion();\n    }\n    drawFormatBits(mask) {\n      const data = this.errorCorrectionLevel.formatBits << 3 | mask;\n      let rem = data;\n      for (let i = 0; i < 10; i++)\n        rem = rem << 1 ^ (rem >>> 9) * 1335;\n      const bits = (data << 10 | rem) ^ 21522;\n      assert(bits >>> 15 == 0);\n      for (let i = 0; i <= 5; i++)\n        this.setFunctionModule(8, i, getBit(bits, i));\n      this.setFunctionModule(8, 7, getBit(bits, 6));\n      this.setFunctionModule(8, 8, getBit(bits, 7));\n      this.setFunctionModule(7, 8, getBit(bits, 8));\n      for (let i = 9; i < 15; i++)\n        this.setFunctionModule(14 - i, 8, getBit(bits, i));\n      for (let i = 0; i < 8; i++)\n        this.setFunctionModule(this.size - 1 - i, 8, getBit(bits, i));\n      for (let i = 8; i < 15; i++)\n        this.setFunctionModule(8, this.size - 15 + i, getBit(bits, i));\n      this.setFunctionModule(8, this.size - 8, true);\n    }\n    drawVersion() {\n      if (this.version < 7)\n        return;\n      let rem = this.version;\n      for (let i = 0; i < 12; i++)\n        rem = rem << 1 ^ (rem >>> 11) * 7973;\n      const bits = this.version << 12 | rem;\n      assert(bits >>> 18 == 0);\n      for (let i = 0; i < 18; i++) {\n        const color = getBit(bits, i);\n        const a = this.size - 11 + i % 3;\n        const b = Math.floor(i / 3);\n        this.setFunctionModule(a, b, color);\n        this.setFunctionModule(b, a, color);\n      }\n    }\n    drawFinderPattern(x, y) {\n      for (let dy = -4; dy <= 4; dy++) {\n        for (let dx = -4; dx <= 4; dx++) {\n          const dist = Math.max(Math.abs(dx), Math.abs(dy));\n          const xx = x + dx;\n          const yy = y + dy;\n          if (0 <= xx && xx < this.size && 0 <= yy && yy < this.size)\n            this.setFunctionModule(xx, yy, dist != 2 && dist != 4);\n        }\n      }\n    }\n    drawAlignmentPattern(x, y) {\n      for (let dy = -2; dy <= 2; dy++) {\n        for (let dx = -2; dx <= 2; dx++)\n          this.setFunctionModule(x + dx, y + dy, Math.max(Math.abs(dx), Math.abs(dy)) != 1);\n      }\n    }\n    setFunctionModule(x, y, isDark) {\n      this.modules[y][x] = isDark;\n      this.isFunction[y][x] = true;\n    }\n    addEccAndInterleave(data) {\n      const ver = this.version;\n      const ecl = this.errorCorrectionLevel;\n      if (data.length != _QrCode.getNumDataCodewords(ver, ecl))\n        throw new RangeError(\"Invalid argument\");\n      const numBlocks = _QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];\n      const blockEccLen = _QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver];\n      const rawCodewords = Math.floor(_QrCode.getNumRawDataModules(ver) / 8);\n      const numShortBlocks = numBlocks - rawCodewords % numBlocks;\n      const shortBlockLen = Math.floor(rawCodewords / numBlocks);\n      let blocks = [];\n      const rsDiv = _QrCode.reedSolomonComputeDivisor(blockEccLen);\n      for (let i = 0, k = 0; i < numBlocks; i++) {\n        let dat = data.slice(k, k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1));\n        k += dat.length;\n        const ecc = _QrCode.reedSolomonComputeRemainder(dat, rsDiv);\n        if (i < numShortBlocks)\n          dat.push(0);\n        blocks.push(dat.concat(ecc));\n      }\n      let result = [];\n      for (let i = 0; i < blocks[0].length; i++) {\n        blocks.forEach((block, j) => {\n          if (i != shortBlockLen - blockEccLen || j >= numShortBlocks)\n            result.push(block[i]);\n        });\n      }\n      assert(result.length == rawCodewords);\n      return result;\n    }\n    drawCodewords(data) {\n      if (data.length != Math.floor(_QrCode.getNumRawDataModules(this.version) / 8))\n        throw new RangeError(\"Invalid argument\");\n      let i = 0;\n      for (let right = this.size - 1; right >= 1; right -= 2) {\n        if (right == 6)\n          right = 5;\n        for (let vert = 0; vert < this.size; vert++) {\n          for (let j = 0; j < 2; j++) {\n            const x = right - j;\n            const upward = (right + 1 & 2) == 0;\n            const y = upward ? this.size - 1 - vert : vert;\n            if (!this.isFunction[y][x] && i < data.length * 8) {\n              this.modules[y][x] = getBit(data[i >>> 3], 7 - (i & 7));\n              i++;\n            }\n          }\n        }\n      }\n      assert(i == data.length * 8);\n    }\n    applyMask(mask) {\n      if (mask < 0 || mask > 7)\n        throw new RangeError(\"Mask value out of range\");\n      for (let y = 0; y < this.size; y++) {\n        for (let x = 0; x < this.size; x++) {\n          let invert;\n          switch (mask) {\n            case 0:\n              invert = (x + y) % 2 == 0;\n              break;\n            case 1:\n              invert = y % 2 == 0;\n              break;\n            case 2:\n              invert = x % 3 == 0;\n              break;\n            case 3:\n              invert = (x + y) % 3 == 0;\n              break;\n            case 4:\n              invert = (Math.floor(x / 3) + Math.floor(y / 2)) % 2 == 0;\n              break;\n            case 5:\n              invert = x * y % 2 + x * y % 3 == 0;\n              break;\n            case 6:\n              invert = (x * y % 2 + x * y % 3) % 2 == 0;\n              break;\n            case 7:\n              invert = ((x + y) % 2 + x * y % 3) % 2 == 0;\n              break;\n            default:\n              throw new Error(\"Unreachable\");\n          }\n          if (!this.isFunction[y][x] && invert)\n            this.modules[y][x] = !this.modules[y][x];\n        }\n      }\n    }\n    getPenaltyScore() {\n      let result = 0;\n      for (let y = 0; y < this.size; y++) {\n        let runColor = false;\n        let runX = 0;\n        let runHistory = [0, 0, 0, 0, 0, 0, 0];\n        for (let x = 0; x < this.size; x++) {\n          if (this.modules[y][x] == runColor) {\n            runX++;\n            if (runX == 5)\n              result += _QrCode.PENALTY_N1;\n            else if (runX > 5)\n              result++;\n          } else {\n            this.finderPenaltyAddHistory(runX, runHistory);\n            if (!runColor)\n              result += this.finderPenaltyCountPatterns(runHistory) * _QrCode.PENALTY_N3;\n            runColor = this.modules[y][x];\n            runX = 1;\n          }\n        }\n        result += this.finderPenaltyTerminateAndCount(runColor, runX, runHistory) * _QrCode.PENALTY_N3;\n      }\n      for (let x = 0; x < this.size; x++) {\n        let runColor = false;\n        let runY = 0;\n        let runHistory = [0, 0, 0, 0, 0, 0, 0];\n        for (let y = 0; y < this.size; y++) {\n          if (this.modules[y][x] == runColor) {\n            runY++;\n            if (runY == 5)\n              result += _QrCode.PENALTY_N1;\n            else if (runY > 5)\n              result++;\n          } else {\n            this.finderPenaltyAddHistory(runY, runHistory);\n            if (!runColor)\n              result += this.finderPenaltyCountPatterns(runHistory) * _QrCode.PENALTY_N3;\n            runColor = this.modules[y][x];\n            runY = 1;\n          }\n        }\n        result += this.finderPenaltyTerminateAndCount(runColor, runY, runHistory) * _QrCode.PENALTY_N3;\n      }\n      for (let y = 0; y < this.size - 1; y++) {\n        for (let x = 0; x < this.size - 1; x++) {\n          const color = this.modules[y][x];\n          if (color == this.modules[y][x + 1] && color == this.modules[y + 1][x] && color == this.modules[y + 1][x + 1])\n            result += _QrCode.PENALTY_N2;\n        }\n      }\n      let dark = 0;\n      for (const row of this.modules)\n        dark = row.reduce((sum, color) => sum + (color ? 1 : 0), dark);\n      const total = this.size * this.size;\n      const k = Math.ceil(Math.abs(dark * 20 - total * 10) / total) - 1;\n      assert(0 <= k && k <= 9);\n      result += k * _QrCode.PENALTY_N4;\n      assert(0 <= result && result <= 2568888);\n      return result;\n    }\n    getAlignmentPatternPositions() {\n      if (this.version == 1)\n        return [];\n      else {\n        const numAlign = Math.floor(this.version / 7) + 2;\n        const step = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (numAlign * 2 - 2)) * 2;\n        let result = [6];\n        for (let pos = this.size - 7; result.length < numAlign; pos -= step)\n          result.splice(1, 0, pos);\n        return result;\n      }\n    }\n    static getNumRawDataModules(ver) {\n      if (ver < _QrCode.MIN_VERSION || ver > _QrCode.MAX_VERSION)\n        throw new RangeError(\"Version number out of range\");\n      let result = (16 * ver + 128) * ver + 64;\n      if (ver >= 2) {\n        const numAlign = Math.floor(ver / 7) + 2;\n        result -= (25 * numAlign - 10) * numAlign - 55;\n        if (ver >= 7)\n          result -= 36;\n      }\n      assert(208 <= result && result <= 29648);\n      return result;\n    }\n    static getNumDataCodewords(ver, ecl) {\n      return Math.floor(_QrCode.getNumRawDataModules(ver) / 8) - _QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] * _QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];\n    }\n    static reedSolomonComputeDivisor(degree) {\n      if (degree < 1 || degree > 255)\n        throw new RangeError(\"Degree out of range\");\n      let result = [];\n      for (let i = 0; i < degree - 1; i++)\n        result.push(0);\n      result.push(1);\n      let root = 1;\n      for (let i = 0; i < degree; i++) {\n        for (let j = 0; j < result.length; j++) {\n          result[j] = _QrCode.reedSolomonMultiply(result[j], root);\n          if (j + 1 < result.length)\n            result[j] ^= result[j + 1];\n        }\n        root = _QrCode.reedSolomonMultiply(root, 2);\n      }\n      return result;\n    }\n    static reedSolomonComputeRemainder(data, divisor) {\n      let result = divisor.map((_) => 0);\n      for (const b of data) {\n        const factor = b ^ result.shift();\n        result.push(0);\n        divisor.forEach((coef, i) => result[i] ^= _QrCode.reedSolomonMultiply(coef, factor));\n      }\n      return result;\n    }\n    static reedSolomonMultiply(x, y) {\n      if (x >>> 8 != 0 || y >>> 8 != 0)\n        throw new RangeError(\"Byte out of range\");\n      let z = 0;\n      for (let i = 7; i >= 0; i--) {\n        z = z << 1 ^ (z >>> 7) * 285;\n        z ^= (y >>> i & 1) * x;\n      }\n      assert(z >>> 8 == 0);\n      return z;\n    }\n    finderPenaltyCountPatterns(runHistory) {\n      const n = runHistory[1];\n      assert(n <= this.size * 3);\n      const core = n > 0 && runHistory[2] == n && runHistory[3] == n * 3 && runHistory[4] == n && runHistory[5] == n;\n      return (core && runHistory[0] >= n * 4 && runHistory[6] >= n ? 1 : 0) + (core && runHistory[6] >= n * 4 && runHistory[0] >= n ? 1 : 0);\n    }\n    finderPenaltyTerminateAndCount(currentRunColor, currentRunLength, runHistory) {\n      if (currentRunColor) {\n        this.finderPenaltyAddHistory(currentRunLength, runHistory);\n        currentRunLength = 0;\n      }\n      currentRunLength += this.size;\n      this.finderPenaltyAddHistory(currentRunLength, runHistory);\n      return this.finderPenaltyCountPatterns(runHistory);\n    }\n    finderPenaltyAddHistory(currentRunLength, runHistory) {\n      if (runHistory[0] == 0)\n        currentRunLength += this.size;\n      runHistory.pop();\n      runHistory.unshift(currentRunLength);\n    }\n  };\n  let QrCode = _QrCode;\n  QrCode.MIN_VERSION = 1;\n  QrCode.MAX_VERSION = 40;\n  QrCode.PENALTY_N1 = 3;\n  QrCode.PENALTY_N2 = 3;\n  QrCode.PENALTY_N3 = 40;\n  QrCode.PENALTY_N4 = 10;\n  QrCode.ECC_CODEWORDS_PER_BLOCK = [\n    [-1, 7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],\n    [-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28],\n    [-1, 13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],\n    [-1, 17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]\n  ];\n  QrCode.NUM_ERROR_CORRECTION_BLOCKS = [\n    [-1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25],\n    [-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49],\n    [-1, 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68],\n    [-1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81]\n  ];\n  qrcodegen2.QrCode = QrCode;\n  function appendBits(val, len, bb) {\n    if (len < 0 || len > 31 || val >>> len != 0)\n      throw new RangeError(\"Value out of range\");\n    for (let i = len - 1; i >= 0; i--)\n      bb.push(val >>> i & 1);\n  }\n  function getBit(x, i) {\n    return (x >>> i & 1) != 0;\n  }\n  function assert(cond) {\n    if (!cond)\n      throw new Error(\"Assertion error\");\n  }\n  const _QrSegment = class {\n    constructor(mode, numChars, bitData) {\n      this.mode = mode;\n      this.numChars = numChars;\n      this.bitData = bitData;\n      if (numChars < 0)\n        throw new RangeError(\"Invalid argument\");\n      this.bitData = bitData.slice();\n    }\n    static makeBytes(data) {\n      let bb = [];\n      for (const b of data)\n        appendBits(b, 8, bb);\n      return new _QrSegment(_QrSegment.Mode.BYTE, data.length, bb);\n    }\n    static makeNumeric(digits) {\n      if (!_QrSegment.isNumeric(digits))\n        throw new RangeError(\"String contains non-numeric characters\");\n      let bb = [];\n      for (let i = 0; i < digits.length; ) {\n        const n = Math.min(digits.length - i, 3);\n        appendBits(parseInt(digits.substr(i, n), 10), n * 3 + 1, bb);\n        i += n;\n      }\n      return new _QrSegment(_QrSegment.Mode.NUMERIC, digits.length, bb);\n    }\n    static makeAlphanumeric(text) {\n      if (!_QrSegment.isAlphanumeric(text))\n        throw new RangeError(\"String contains unencodable characters in alphanumeric mode\");\n      let bb = [];\n      let i;\n      for (i = 0; i + 2 <= text.length; i += 2) {\n        let temp = _QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)) * 45;\n        temp += _QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i + 1));\n        appendBits(temp, 11, bb);\n      }\n      if (i < text.length)\n        appendBits(_QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)), 6, bb);\n      return new _QrSegment(_QrSegment.Mode.ALPHANUMERIC, text.length, bb);\n    }\n    static makeSegments(text) {\n      if (text == \"\")\n        return [];\n      else if (_QrSegment.isNumeric(text))\n        return [_QrSegment.makeNumeric(text)];\n      else if (_QrSegment.isAlphanumeric(text))\n        return [_QrSegment.makeAlphanumeric(text)];\n      else\n        return [_QrSegment.makeBytes(_QrSegment.toUtf8ByteArray(text))];\n    }\n    static makeEci(assignVal) {\n      let bb = [];\n      if (assignVal < 0)\n        throw new RangeError(\"ECI assignment value out of range\");\n      else if (assignVal < 1 << 7)\n        appendBits(assignVal, 8, bb);\n      else if (assignVal < 1 << 14) {\n        appendBits(2, 2, bb);\n        appendBits(assignVal, 14, bb);\n      } else if (assignVal < 1e6) {\n        appendBits(6, 3, bb);\n        appendBits(assignVal, 21, bb);\n      } else\n        throw new RangeError(\"ECI assignment value out of range\");\n      return new _QrSegment(_QrSegment.Mode.ECI, 0, bb);\n    }\n    static isNumeric(text) {\n      return _QrSegment.NUMERIC_REGEX.test(text);\n    }\n    static isAlphanumeric(text) {\n      return _QrSegment.ALPHANUMERIC_REGEX.test(text);\n    }\n    getData() {\n      return this.bitData.slice();\n    }\n    static getTotalBits(segs, version) {\n      let result = 0;\n      for (const seg of segs) {\n        const ccbits = seg.mode.numCharCountBits(version);\n        if (seg.numChars >= 1 << ccbits)\n          return Infinity;\n        result += 4 + ccbits + seg.bitData.length;\n      }\n      return result;\n    }\n    static toUtf8ByteArray(str) {\n      str = encodeURI(str);\n      let result = [];\n      for (let i = 0; i < str.length; i++) {\n        if (str.charAt(i) != \"%\")\n          result.push(str.charCodeAt(i));\n        else {\n          result.push(parseInt(str.substr(i + 1, 2), 16));\n          i += 2;\n        }\n      }\n      return result;\n    }\n  };\n  let QrSegment = _QrSegment;\n  QrSegment.NUMERIC_REGEX = /^[0-9]*$/;\n  QrSegment.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\\/:-]*$/;\n  QrSegment.ALPHANUMERIC_CHARSET = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:\";\n  qrcodegen2.QrSegment = QrSegment;\n})(qrcodegen || (qrcodegen = {}));\n((qrcodegen2) => {\n  ((QrCode2) => {\n    const _Ecc = class {\n      constructor(ordinal, formatBits) {\n        this.ordinal = ordinal;\n        this.formatBits = formatBits;\n      }\n    };\n    let Ecc = _Ecc;\n    Ecc.LOW = new _Ecc(0, 1);\n    Ecc.MEDIUM = new _Ecc(1, 0);\n    Ecc.QUARTILE = new _Ecc(2, 3);\n    Ecc.HIGH = new _Ecc(3, 2);\n    QrCode2.Ecc = Ecc;\n  })(qrcodegen2.QrCode || (qrcodegen2.QrCode = {}));\n})(qrcodegen || (qrcodegen = {}));\n((qrcodegen2) => {\n  ((QrSegment2) => {\n    const _Mode = class {\n      constructor(modeBits, numBitsCharCount) {\n        this.modeBits = modeBits;\n        this.numBitsCharCount = numBitsCharCount;\n      }\n      numCharCountBits(ver) {\n        return this.numBitsCharCount[Math.floor((ver + 7) / 17)];\n      }\n    };\n    let Mode = _Mode;\n    Mode.NUMERIC = new _Mode(1, [10, 12, 14]);\n    Mode.ALPHANUMERIC = new _Mode(2, [9, 11, 13]);\n    Mode.BYTE = new _Mode(4, [8, 16, 16]);\n    Mode.KANJI = new _Mode(8, [8, 10, 12]);\n    Mode.ECI = new _Mode(7, [0, 0, 0]);\n    QrSegment2.Mode = Mode;\n  })(qrcodegen2.QrSegment || (qrcodegen2.QrSegment = {}));\n})(qrcodegen || (qrcodegen = {}));\nvar qrcodegen_default = qrcodegen;\n/**\n * @license qrcode.react\n * Copyright (c) Paul O'Shannessy\n * SPDX-License-Identifier: ISC\n */\nvar ERROR_LEVEL_MAP = {\n  L: qrcodegen_default.QrCode.Ecc.LOW,\n  M: qrcodegen_default.QrCode.Ecc.MEDIUM,\n  Q: qrcodegen_default.QrCode.Ecc.QUARTILE,\n  H: qrcodegen_default.QrCode.Ecc.HIGH\n};\nvar DEFAULT_SIZE = 128;\nvar DEFAULT_LEVEL = \"L\";\nvar DEFAULT_BGCOLOR = \"#FFFFFF\";\nvar DEFAULT_FGCOLOR = \"#000000\";\nvar DEFAULT_INCLUDEMARGIN = false;\nvar MARGIN_SIZE = 4;\nvar DEFAULT_IMG_SCALE = 0.1;\nfunction generatePath(modules, margin = 0) {\n  const ops = [];\n  modules.forEach(function(row, y) {\n    let start = null;\n    row.forEach(function(cell, x) {\n      if (!cell && start !== null) {\n        ops.push(`M${start + margin} ${y + margin}h${x - start}v1H${start + margin}z`);\n        start = null;\n        return;\n      }\n      if (x === row.length - 1) {\n        if (!cell) {\n          return;\n        }\n        if (start === null) {\n          ops.push(`M${x + margin},${y + margin} h1v1H${x + margin}z`);\n        } else {\n          ops.push(`M${start + margin},${y + margin} h${x + 1 - start}v1H${start + margin}z`);\n        }\n        return;\n      }\n      if (cell && start === null) {\n        start = x;\n      }\n    });\n  });\n  return ops.join(\"\");\n}\nfunction excavateModules(modules, excavation) {\n  return modules.slice().map((row, y) => {\n    if (y < excavation.y || y >= excavation.y + excavation.h) {\n      return row;\n    }\n    return row.map((cell, x) => {\n      if (x < excavation.x || x >= excavation.x + excavation.w) {\n        return cell;\n      }\n      return false;\n    });\n  });\n}\nfunction getImageSettings(cells, size, includeMargin, imageSettings) {\n  if (imageSettings == null) {\n    return null;\n  }\n  const margin = includeMargin ? MARGIN_SIZE : 0;\n  const numCells = cells.length + margin * 2;\n  const defaultSize = Math.floor(size * DEFAULT_IMG_SCALE);\n  const scale = numCells / size;\n  const w = (imageSettings.width || defaultSize) * scale;\n  const h = (imageSettings.height || defaultSize) * scale;\n  const x = imageSettings.x == null ? cells.length / 2 - w / 2 : imageSettings.x * scale;\n  const y = imageSettings.y == null ? cells.length / 2 - h / 2 : imageSettings.y * scale;\n  let excavation = null;\n  if (imageSettings.excavate) {\n    let floorX = Math.floor(x);\n    let floorY = Math.floor(y);\n    let ceilW = Math.ceil(w + x - floorX);\n    let ceilH = Math.ceil(h + y - floorY);\n    excavation = { x: floorX, y: floorY, w: ceilW, h: ceilH };\n  }\n  return { x, y, h, w, excavation };\n}\n(function() {\n  try {\n    new Path2D().addPath(new Path2D());\n  } catch (e) {\n    return false;\n  }\n  return true;\n})();\nfunction QRCodeSVG(props) {\n  const _a = props, {\n    value,\n    size = DEFAULT_SIZE,\n    level = DEFAULT_LEVEL,\n    bgColor = DEFAULT_BGCOLOR,\n    fgColor = DEFAULT_FGCOLOR,\n    includeMargin = DEFAULT_INCLUDEMARGIN,\n    imageSettings\n  } = _a, otherProps = __objRest(_a, [\n    \"value\",\n    \"size\",\n    \"level\",\n    \"bgColor\",\n    \"fgColor\",\n    \"includeMargin\",\n    \"imageSettings\"\n  ]);\n  let cells = qrcodegen_default.QrCode.encodeText(value, ERROR_LEVEL_MAP[level]).getModules();\n  const margin = includeMargin ? MARGIN_SIZE : 0;\n  const numCells = cells.length + margin * 2;\n  const calculatedImageSettings = getImageSettings(cells, size, includeMargin, imageSettings);\n  let image = null;\n  if (imageSettings != null && calculatedImageSettings != null) {\n    if (calculatedImageSettings.excavation != null) {\n      cells = excavateModules(cells, calculatedImageSettings.excavation);\n    }\n    image = /* @__PURE__ */ React__default.createElement(\"image\", {\n      xlinkHref: imageSettings.src,\n      height: calculatedImageSettings.h,\n      width: calculatedImageSettings.w,\n      x: calculatedImageSettings.x + margin,\n      y: calculatedImageSettings.y + margin,\n      preserveAspectRatio: \"none\"\n    });\n  }\n  const fgPath = generatePath(cells, margin);\n  return /* @__PURE__ */ React__default.createElement(\"svg\", __spreadValues({\n    height: size,\n    width: size,\n    viewBox: `0 0 ${numCells} ${numCells}`\n  }, otherProps), /* @__PURE__ */ React__default.createElement(\"path\", {\n    fill: bgColor,\n    d: `M0,0 h${numCells}v${numCells}H0z`,\n    shapeRendering: \"crispEdges\"\n  }), /* @__PURE__ */ React__default.createElement(\"path\", {\n    fill: fgColor,\n    d: fgPath,\n    shapeRendering: \"crispEdges\"\n  }), image);\n}\nexport {\n  QRCodeSVG\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport _JSXStyle from \"../../../../node_modules/styled-jsx/style.js\";\nimport { QRCodeSVG } from \"../../../../node_modules/qrcode.react/lib/esm/index.js\";\nimport { useIsMobileDevice } from \"../../../../hooks/useIsMobileDevice.js\";\nconst AppLinkDialog = ({\n  content,\n  oneLink,\n  displayDesktopQRCode = true\n}) => {\n  const isMobile = useIsMobileDevice();\n  if (isMobile || !displayDesktopQRCode) {\n    return /* @__PURE__ */ jsxs(\"span\", { className: text.className, children: [\n      content,\n      text.styles\n    ] });\n  }\n  return /* @__PURE__ */ jsxs(\"div\", { className: container.className, children: [\n    /* @__PURE__ */ jsx(QRCodeSVG, { value: oneLink, size: 150, bgColor: \"#ffffff\", fgColor: \"#000000\", includeMargin: false }),\n    /* @__PURE__ */ jsx(\"span\", { className: text.className, children: content }),\n    container.styles,\n    text.styles\n  ] });\n};\nconst container = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"2940926304\", children: [\"div.jsx-2940926304{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:20px;}\"] }),\n  className: \"jsx-2940926304\"\n};\nconst text = {\n  styles: /* @__PURE__ */ jsx(_JSXStyle, { id: \"1263816186\", children: [\"span.jsx-1263816186{font-size:14px;font-weight:400;line-height:140%;color:#000;}\"] }),\n  className: \"jsx-1263816186\"\n};\nexport {\n  AppLinkDialog\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { useCreateOneLink } from \"../../../../hooks/useCreateOneLink.js\";\nimport { useDialog } from \"../../../../hooks/useDialog.js\";\nimport { useIsMobileDevice } from \"../../../../hooks/useIsMobileDevice.js\";\nimport { getCurrentHref } from \"../../../../utils/getCurrentHref.js\";\nimport { AppLinkDialog } from \"./AppLinkDialog.js\";\nconst DIALOG_ID = \"app-link-dialog-id\";\nconst useAppLinkDialog = ({\n  webviewNavOptions,\n  href,\n  displayDesktopQRCode = true,\n  content\n}) => {\n  const dialog = useDialog();\n  const isMobile = useIsMobileDevice();\n  const {\n    oneLink\n  } = useCreateOneLink(href ?? getCurrentHref({\n    removeQueryParams: true\n  }), webviewNavOptions);\n  const redirectApp = () => {\n    if (!isMobile) {\n      return;\n    }\n    document.location.href = oneLink;\n  };\n  const show = () => {\n    dialog.show({\n      id: DIALOG_ID,\n      content: /* @__PURE__ */ jsx(AppLinkDialog, { content, oneLink, displayDesktopQRCode }),\n      primaryButtonText: isMobile ? \"앱으로 이동\" : \"확인\",\n      secondaryButtonText: isMobile ? \"취소\" : \"\",\n      onPrimaryButtonClick: redirectApp\n    });\n  };\n  const hide = () => {\n    dialog.hide(DIALOG_ID, true);\n  };\n  return {\n    show,\n    hide\n  };\n};\nexport {\n  useAppLinkDialog\n};\n","import { useAppLinkDialog } from \"../components/@shared/dialogs/AppLinkDialog/AppLinkDialog.hooks.js\";\nimport { isWebview } from \"../utils/device.js\";\nconst useWithApp = (params) => {\n  const dialog = useAppLinkDialog(params);\n  const withApp = (callback) => async (...args) => {\n    if (!isWebview()) {\n      dialog.show();\n      return;\n    }\n    await callback(...args);\n  };\n  return withApp;\n};\nexport {\n  useWithApp\n};\n","import { useCurrentUser } from \"./useCurrentUser.js\";\nimport { useRedirectLoginDialog } from \"./useRedirectLoginDialog.js\";\nconst useWithLogin = () => {\n  const {\n    logged\n  } = useCurrentUser();\n  const {\n    showRedirectLoginDialog\n  } = useRedirectLoginDialog();\n  const withLogin = (callback) => async (...args) => {\n    if (!logged) {\n      showRedirectLoginDialog();\n      return;\n    }\n    await callback(...args);\n  };\n  return withLogin;\n};\nexport {\n  useWithLogin\n};\n","import { useAnalytics } from \"../../../hooks/analytics/useAnalytics.js\";\nimport { useContentStore } from \"../../../hooks/stores/content/content.store.js\";\nimport { useDialog } from \"../../../hooks/useDialog.js\";\nimport { useIsNotificationRegistered } from \"../../../hooks/useIsNotificationRegistered.js\";\nimport { useNotificationRequirements } from \"../../../hooks/useNotificationRequirements.js\";\nimport { useRequestUserAgreementBottomSheet } from \"../../../hooks/useRequestUserAgreementBottomSheet.js\";\nimport { useWithApp } from \"../../../hooks/useWithApp.js\";\nimport { useWithLogin } from \"../../../hooks/useWithLogin.js\";\nimport { isContentOrigin } from \"../../../utils/location.js\";\nconst NOTIFICATION_AGREEMENTS_API_END_POINT = \"content-detail-page\";\nconst ACCESS_FROM_APP_MESSAGE = \"알림 신청 기능은 APP에서만 사용할 수 있어요\\nAPP에서 다시 시도해 주세요.\";\nconst useNotification = (key, options) => {\n  const requestRequirements = useNotificationRequirements();\n  const {\n    isTargetAppVersion,\n    requestUserAgreementBottomSheet\n  } = useRequestUserAgreementBottomSheet();\n  const trackClickNotificationEvent = useTrackClickNotificationEvent(key);\n  const {\n    isRegistered,\n    markAsRegistered\n  } = useIsNotificationRegistered(key);\n  const dialog = useDialog();\n  const withLogin = useWithLogin();\n  const withApp = useWithApp({\n    content: ACCESS_FROM_APP_MESSAGE\n  });\n  const onNotificationEnabled = () => {\n    var _a;\n    markAsRegistered();\n    if (!(options == null ? void 0 : options.bypassNotificationEventTracking)) {\n      trackClickNotificationEvent();\n    }\n    (_a = options == null ? void 0 : options.onNotificationEnabled) == null ? void 0 : _a.call(options);\n  };\n  const registerNotification = withApp(withLogin(() => {\n    if (isTargetAppVersion) {\n      requestUserAgreementBottomSheet({\n        type: \"CONTENT_DETAIL_PAGE\",\n        onConfirm: onNotificationEnabled\n      });\n    } else {\n      requestRequirements({\n        apiEndpoint: NOTIFICATION_AGREEMENTS_API_END_POINT,\n        onNotificationEnabled\n      });\n    }\n  }));\n  const notifyAlreadyRegistered = () => {\n    dialog.show({\n      title: \"알림 신청이 이미 되어 있어요.\",\n      content: \"잊지 않도록 알림을 보내드릴게요.\",\n      primaryButtonText: \"확인\"\n    });\n  };\n  return {\n    isRegistered,\n    registerNotification,\n    notifyAlreadyRegistered\n  };\n};\nconst useTrackClickNotificationEvent = (key) => {\n  const {\n    trackFirebase,\n    trackAmplitude\n  } = useAnalytics();\n  const trackClickNotificationEvent = () => {\n    if (!isContentOrigin()) {\n      return;\n    }\n    const {\n      contentId\n    } = useContentStore.getState().summary;\n    const properties = {\n      notification_key: key,\n      curr_screen: getCurrentScreen(),\n      content_no: contentId,\n      format_type: \"FRAMER\",\n      target_status: \"on\"\n    };\n    trackFirebase(\"click_notification\", properties);\n    trackAmplitude(\"click_notification\", properties);\n  };\n  return trackClickNotificationEvent;\n};\nconst getCurrentScreen = () => new URL(document.location.href).pathname.substring(1);\nexport {\n  useNotification,\n  useTrackClickNotificationEvent\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { cloneFramerChildren } from \"../../../utils/cloneFramerChildren.js\";\nimport { useNotification } from \"./Notification.hooks.js\";\nimport { ComponentName } from \"../../../styles/ComponentName.js\";\nimport \"react\";\nimport { createWithStyle } from \"../../../styles/createWithStyle.js\";\nimport { css } from \"../../../styles/css.js\";\nconst {\n  classNames,\n  withStyle\n} = createWithStyle(ComponentName.Notification, {\n  container: css`\n    width: 100%;\n    height: auto;\n\n    & > * {\n      width: 100% !important;\n    }\n  `\n});\nconst NotificationInner = ({\n  children,\n  notificationKey,\n  childrenOnRegistered\n}) => {\n  const {\n    isRegistered,\n    registerNotification,\n    notifyAlreadyRegistered\n  } = useNotification(notificationKey);\n  if (isRegistered && childrenOnRegistered) {\n    return cloneFramerChildren(childrenOnRegistered, {\n      onClick: notifyAlreadyRegistered\n    });\n  }\n  return cloneFramerChildren(children, {\n    onClick: registerNotification\n  });\n};\nconst Notification = withStyle((props) => {\n  return /* @__PURE__ */ jsx(\"div\", { className: classNames.container, children: /* @__PURE__ */ jsx(NotificationInner, { ...props }) }, props.notificationKey);\n});\naddPropertyControls(Notification, {\n  notificationKey: {\n    title: \"[필수] 알림 신청 여부 구분 키 값\",\n    description: \"{시리즈 영문명}-{에피소드 영문명}-notification 형태로 입력\\nex. limited-order-keen-themuseumvisitor-notification\",\n    type: ControlType.String\n  },\n  children: {\n    title: \"알림 신청 컴포넌트\",\n    type: ControlType.ComponentInstance\n  },\n  childrenOnRegistered: {\n    title: \"알림 신청 활성화 시 컴포넌트\",\n    type: ControlType.ComponentInstance\n  }\n});\nexport {\n  Notification\n};\n","import{Notification}from\"https://asset.29cm.co.kr/contents/framer/components/primitives/Notification/Notification.js\";// import { Notification } from \"http://localhost:4173/components/primitives/Notification/Notification.js\"\nNotification.displayName=\"Notification\";/**\n * @framerDisableUnlink\n */export default Notification;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Notification\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Notification.map"],"x_google_ignoreList":[25],"mappings":"klCAAmD,CAC7C,GAAoC,GAAQ,CAChD,GAAM,CACJ,UAAA,GACE,IAAe,CACnB,OAAOA,GAAa,EAAM,iBAAiB,IAAQ,6BCLb,CAClC,GAAmB,GACnB,IAAU,EAGP,EAAa,EAAI,GAAK,EAAa,EAAO,SAAS,KAAK,CAFtD,QAEmE,SAExE,EAAgB,GAAQ,CAC5B,IAAM,EAAY,CAAC,EAAI,WAAW,IAAI,CACtC,GAAI,CACF,GAAM,CACJ,SACA,YACE,IAAI,IAAI,EAAY,EAAM,GAAG,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